body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #2563eb 0%, #0f172a 55%);
  color: #f8fafc;
  text-align: center;
  min-height: 100vh;
}

#welcome-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 20px;
}

#welcome-screen h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#welcome-screen p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 360px;
  line-height: 1.5;
}

#app-screen {
  padding: 30px 10px 50px;
  min-height: 100vh;
}

#choice-screen,
#quiz-screen {
  background: rgba(15, 23, 42, 0.96);
  padding: 28px 24px;
  border-radius: 20px;
  width: min(92%, 520px);
  margin: 20px auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

#result-screen {
  width: auto;
  margin: 20px;
  padding: 0;
  background: none;
  box-shadow: none;
}

#choice-screen h2,
#quiz-screen h2 {
  margin-top: 0;
  font-size: 1.7rem;
  color: #e2e8f0;
}

.intro {
  color: #cbd5e1;
  opacity: 0.95;
  margin-top: 10px;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

button {
  background: #22c55e;
  border: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  color: white;
  transition: transform 0.18s ease, background 0.18s ease;
  min-width: 140px;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.25);
}

button:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

#plan-panel ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.result-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 15px;
  justify-items: center;
  align-items: start;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

#plan-panel,
#timer-panel {
  background: rgba(15, 23, 42, 0.96);
  padding: 24px 18px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  width: 100%;
}

#plan-panel {
  max-width: 350px;
}

#timer-panel {
  max-width: 280px;
}

#plan-panel h2,
#timer-panel h2 {
  margin-top: 0;
  font-size: 1.7rem;
  color: #e2e8f0;
}

@media (max-width: 750px) {
  .result-container {
    grid-template-columns: 1fr;
  }
  
  #plan-panel {
    max-width: none;
  }
  
  #timer-panel {
    max-width: none;
  }
}

.timer-display {
  font-size: 3.5rem;
  font-weight: bold;
  color: #22c55e;
  margin: 30px 0 20px;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
}

#timer-value {
  display: inline-block;
  min-width: auto;
}

.timer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 0 28px;
}

.adjust-btn {
  background: #3b82f6;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  color: white;
  transition: transform 0.18s ease, background 0.18s ease;
  min-width: 50px;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}

.adjust-btn:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
}

.adjust-btn:disabled {
  background: #4b5563;
  cursor: not-allowed;
  opacity: 0.5;
}

#time-label {
  font-size: 1.1rem;
  color: #cbd5e1;
  min-width: 100px;
}

.secondary-btn {
  background: #8b5cf6;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  color: white;
  transition: transform 0.18s ease, background 0.18s ease;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.25);
}

.secondary-btn:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
  text-align: left;
}

#result-screen li {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  line-height: 1.6;
}

#result-screen p {
  margin: 16px 0 0;
  color: #e2e8f0;
}

h1, h2 {
  font-weight: 800;
}

.hidden {
  display: none;
}
