body {
  margin: 0;
  background: #0f172a;
  color: white;
  font-family: Arial, sans-serif;
}

.game-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #38bdf8;
}

.top-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #334155;
}

.task-section,
.event-log {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

#task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task {
  background: #334155;
  padding: 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task button {
  background: #22c55e;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.actions button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

#coffee-btn {
  background: #f59e0b;
}

#deploy-btn {
  background: #ef4444;
  color: white;
}

#ai-btn {
  background: #8b5cf6;
  color: white;
}

#log-output {
  height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-item {
  background: #334155;
  padding: 10px;
  border-radius: 8px;
}

.hidden {
  display: none;
}

#game-over {
  text-align: center;
  background: #7f1d1d;
  padding: 30px;
  border-radius: 14px;
}

#game-over button {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}