* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #111827;
  color: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 480px;
}

.screen { display: none; }
.screen.active { display: block; }

/* ── Landing ──────────────────────────────────── */
.landing-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.landing-sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ── Progress dots ────────────────────────────── */
.progress-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #374151;
  flex-shrink: 0;
}
.dot-active  { background: #6366f1; }
.dot-green   { background: #22c55e; }
.dot-yellow  { background: #eab308; }
.dot-red     { background: #ef4444; }

/* ── Round counter ────────────────────────────── */
.round-counter {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

/* ── Card ─────────────────────────────────────── */
.card {
  background: #1f2937;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 14px;
}

/* ── Category chip ────────────────────────────── */
.category-chip {
  display: inline-block;
  background: #374151;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ── Question text ────────────────────────────── */
.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* ── Number input ─────────────────────────────── */
.guess-input {
  width: 100%;
  background: #111827;
  border: 2px solid #374151;
  border-radius: 10px;
  color: #f9fafb;
  font-size: 1.5rem;
  padding: 12px 16px;
  text-align: center;
  outline: none;
  margin-bottom: 6px;
  -moz-appearance: textfield;
}
.guess-input:focus { border-color: #6366f1; }
.guess-input::placeholder { color: #4b5563; }
.guess-input::-webkit-outer-spin-button,
.guess-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.guess-formatted {
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
  min-height: 1.4em;
  margin-bottom: 14px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover    { opacity: 0.88; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary  { background: #6366f1; color: #fff; }
.btn-secondary { background: #374151; color: #f9fafb; }

/* ── Result screen ────────────────────────────── */
.result-score {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.result-question {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 18px;
  line-height: 1.45;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #374151;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: #9ca3af; font-size: 0.875rem; }
.result-value { font-weight: 600; }

/* ── Score colors ─────────────────────────────── */
.score-green  { color: #22c55e; }
.score-yellow { color: #eab308; }
.score-red    { color: #ef4444; }

/* ── Final results ────────────────────────────── */
.final-title {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.final-total-score {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
}

.rounds-list { margin-bottom: 4px; }

.round-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #374151;
}
.round-row:last-child { border-bottom: none; }
.round-emoji    { font-size: 1.1rem; flex-shrink: 0; }
.round-category { flex: 1; color: #d1d5db; font-size: 0.875rem; }
.round-guesses  { color: #6b7280; font-size: 0.8rem; flex-shrink: 0; }
.round-score    { font-weight: 600; font-size: 0.875rem; flex-shrink: 0; }

/* ── Error screen ─────────────────────────────── */
.error-text {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
