.play {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.center { text-align: center; }
.intro { display: grid; gap: 16px; margin-top: 8vh; }
.intro h1 { font-size: 1.75rem; margin: 0; }
.intro p { margin: 0; }
.intro .chip { justify-self: start; }

.question { display: grid; gap: 16px; animation: slide-in .25s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } }
.q-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .875rem; font-weight: 600; }
.progress, .timer { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill, .timer-fill { height: 100%; background: var(--accent); transform-origin: left; }
.timer { height: 10px; }
.timer-fill { background: var(--good); }
.timer-fill.urgent { background: var(--bad); }
.q-image { width: 100%; max-height: 40vh; object-fit: contain; border-radius: var(--radius); background: var(--surface-2); }
.q-text { font-size: clamp(1.25rem, 5vw, 1.625rem); margin: 0; }

.options { display: grid; gap: 10px; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--tap);
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.option:hover { border-color: var(--accent); }
.option:active { transform: scale(.99); }
.option-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 700;
  font-size: .875rem;
}
.locked .option { cursor: default; }
.locked .option:not(.picked):not(.correct) { opacity: .6; }
.option.picked { border-color: var(--accent); }
.option.correct { border-color: var(--good); background: var(--good-bg); }
.option.correct .option-key { background: var(--good); color: var(--surface); }
.option.wrong { border-color: var(--bad); background: var(--bad-bg); }
.option.wrong .option-key { background: var(--bad); color: var(--surface); }
.option:disabled { color: var(--text); }

.number-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.number-form input { min-height: var(--tap); font-size: 1.25rem; }
.number-form .btn { min-height: var(--tap); }

.feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  animation: slide-in .2s ease-out;
}
.feedback > div { display: grid; }
.feedback strong { font-size: 1.125rem; }
.feedback.good { background: var(--good-bg); color: var(--good); }
.feedback.bad { background: var(--bad-bg); color: var(--bad); }
.feedback .btn { flex: none; }

.results { text-align: center; }
.results > p { margin: 0; }
.big-score { font-size: 4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.rank { font-size: 1.25rem; font-weight: 700; margin: 12px 0 24px !important; }
.results h2 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.board { list-style: none; counter-reset: rank; margin: 0 0 16px; padding: 0; text-align: left; }
.board li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.board li::before { content: counter(rank); width: 1.5em; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.board li:nth-child(odd) { background: var(--surface-2); }
.board li.me { outline: 2px solid var(--accent); }
.board .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .pts { font-weight: 700; font-variant-numeric: tabular-nums; }

.feedback.neutral { background: var(--surface-2); color: var(--text); }

.review { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.review li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--bad);
  background: var(--surface-2);
}
.review li.good { border-left-color: var(--good); }
.review p { margin: 0; grid-column: 1; }
.review .review-q { font-weight: 600; }
.review .pts { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
