/* One game surface: mode, combo, quote and two choices. */
body.simplified .design-shell { min-height: 100svh; grid-template-rows: auto 1fr; padding-bottom: 35px; }
body.simplified .site-header, body.simplified .topbar { position: relative; padding-bottom: 18px; }
body.simplified .wordmark { font-size: 30px; }
body.simplified .game-area, body.simplified .game { display: block; width: min(100%, 650px); max-width: 650px; margin: auto; padding: 45px 0; }
body.simplified .page { min-height: 100svh; }
body.simplified .keyboard-help, body.simplified .round-line, body.simplified .card-top { display: none; }
body.simplified .answer-zone { min-height: 0; }
/* Both states share one grid row, so the choices match the reveal's height. */
.answer-zone { display: grid; }
body.simplified .choices, body.simplified .feedback { grid-area: 1 / 1; align-self: stretch; }
body.simplified .choice, body.simplified .feedback { min-height: 84px; }
body.simplified .feedback-copy { min-height: 36px; }
body.simplified .feedback:not(.visible) { display: grid; visibility: hidden; pointer-events: none; }
body.simplified .choices[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
body.simplified .quote-card { min-height: 260px; }
.quote-card.can-advance { cursor: pointer; touch-action: manipulation; }
body.simplified .quote-text { padding-block: 30px; }
.challenge-controls { margin-bottom: 20px; font-family: "Segoe UI", Arial, sans-serif; }
.challenge-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.challenge-toolbar .mode-picker { grid-column: 1; grid-row: 1; justify-self: start; }
.challenge-toolbar .run-status { grid-column: 3; grid-row: 1; justify-self: end; }
.mode-picker { display: inline-flex; gap: 4px; border: 0; padding: 0; border-radius: 0; }
.mode-picker button { min-height: 42px; padding: 9px 13px; font: inherit; font-size: 12px; border: 0; border-radius: 7px; background: transparent; color: inherit; opacity: .6; cursor: pointer; }
.mode-picker button:first-child { margin-left: -13px; }
.mode-picker button[aria-pressed="true"] { font-weight: 700; opacity: 1; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.mode-picker button:disabled { cursor: wait; }
.combo-panel { flex: none; width: auto; min-width: 103px; padding: 0; border: 0; border-radius: 0; }
.run-status { display: flex; align-items: flex-start; gap: 14px; }
.run-status.is-daily .combo-panel { min-width: 76px; }
.combo-heading { display: flex; align-items: center; justify-content: end; min-height: 26px; }
.daily-strikes { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; height: 40px; margin: 0; gap: 12px; }
.strike { display: inline-flex; flex: none; width: 40px; height: 40px; color: #a9a1b4; }
.strike svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; }
.strike.used { color: var(--strike-ink, #b83246); }
.strike.used circle { fill: color-mix(in srgb, var(--strike-ink, #b83246), transparent 87%); }
.daily-best { display: block; margin-top: 5px; text-align: right; font-size: 10px; line-height: 1.2; opacity: .65; white-space: nowrap; font-variant-numeric: tabular-nums; }
.after-hours, .blue-note { --strike-ink: #ffb1b1; }
.combo-heading strong { font-size: 19px; font-weight: 650; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
#combo-progress { display: block; width: 100%; height: 3px; margin-top: 7px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; background: #8883; }
#combo-progress::-webkit-progress-bar { background: #8883; }
#combo-progress::-webkit-progress-value { background: var(--accent, #7550ed); transition: width .2s; }
#combo-progress::-moz-progress-bar { background: var(--accent, #7550ed); }
.combo-panel.perfect-run strong { color: var(--accent, #638358); }
.daily-lobby { padding: 48px 0 32px; text-align: center; }
.daily-lobby h2 { margin: 0 0 12px; font: inherit; font-size: 30px; font-weight: 700; letter-spacing: -.06em; }
.daily-lobby p { margin: 0 0 25px; font-size: 12px; line-height: 1.7; opacity: .7; }
#daily-start-form { display: flex; justify-content: center; gap: 9px; max-width: 430px; margin: auto; }
#player-name { flex: 1; min-width: 120px; min-height: 46px; padding: 11px 13px; color: inherit; background: transparent; border: 1px solid #8888; border-radius: 7px; font: inherit; font-size: 13px; }
#player-name::placeholder { color: inherit; opacity: .5; }
.challenge-action { min-height: 46px; padding: 11px 19px; font: inherit; font-size: 13px; font-weight: 650; border: 0; border-radius: 7px; background: var(--challenge-ink, #292c29); color: var(--challenge-surface, #fff); cursor: pointer; }
.challenge-error { padding: 13px 0 0; margin: 0; font-size: 12px; line-height: 1.6; }
.daily-idle .quote-stack, .daily-idle .answer-zone { display: none; }
body.simplified .feedback { align-items: center; gap: 11px; padding: 18px 20px; }
body.simplified .feedback-title { margin-top: 0; margin-bottom: 4px; font-size: 14px; }
body.simplified .feedback-detail { font-size: 11px; line-height: 1.5; }
body.simplified .next { min-height: 44px; font-size: 12px; padding: 10px 17px; }
.reveal-sources summary { cursor: pointer; width: fit-content; max-width: 100%; list-style: none; }
.reveal-sources summary::-webkit-details-marker { display: none; }
.reveal-sources summary::after { content: " ↗"; opacity: .6; }
.reveal-sources summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.reveal-sources .music-links { margin-top: 5px; }
.leaderboard { margin: 24px 0 0; border: 0; font-family: "Segoe UI", Arial, sans-serif; }
.leaderboard > summary { width: fit-content; margin: auto; padding: 11px 14px; cursor: pointer; font-size: 11px; font-weight: 500; opacity: .65; list-style: none; }
.leaderboard > summary::-webkit-details-marker { display: none; }
.leaderboard > summary::after { content: " +"; }
.leaderboard[open] > summary::after { content: " −"; }
.leaderboard-content { padding: 15px 0 0; margin-top: 7px; border-top: 1px solid #8884; }
.leaderboard-heading { display: flex; justify-content: end; align-items: center; }
#leaderboard-day { display: none; }
.leaderboard-heading button { min-height: 40px; padding: 0; font: inherit; font-size: 10px; color: inherit; background: none; border: 0; cursor: pointer; opacity: .7; }
#leaderboard-status { margin: 0 0 12px; font-size: 11px; opacity: .65; }
.streak-chart { width: 100%; }
.streak-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.streak-chart svg:focus-visible { outline: 2px solid var(--accent, #7550ed); outline-offset: 4px; border-radius: 6px; }
.chart-grid { stroke: currentColor; stroke-opacity: .1; stroke-width: 1; }
.chart-axis { stroke: currentColor; stroke-opacity: .4; stroke-width: 1; }
.chart-tick { fill: currentColor; opacity: .7; font: 11px "Segoe UI", Arial, sans-serif; }
.chart-axis-title { fill: currentColor; font: 12px "Segoe UI", Arial, sans-serif; font-weight: 600; }
.chart-bar { fill: currentColor; fill-opacity: .3; }
.chart-bar.selected { fill-opacity: .65; }
.chart-bar.your-streak { fill: var(--accent, #7550ed); fill-opacity: 1; }
.chart-cursor { stroke: currentColor; stroke-opacity: .2; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.streak-chart-value { margin: 3px 0 0; text-align: center; font-size: 11px; min-height: 18px; font-variant-numeric: tabular-nums; }
.leaderboard-note { font-size: 9px; opacity: .6; line-height: 1.7; margin: 13px 0 0; }
.compact-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.compact-actions > .sound-toggle { font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; }
.more-menu { position: relative; font-family: "Segoe UI", Arial, sans-serif; font-weight: 400; letter-spacing: normal; }
.more-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; font-size: 17px; cursor: pointer; list-style: none; letter-spacing: 2px; border-radius: 50%; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary:hover { background: #8882; }
.more-menu-content { position: absolute; right: 0; top: calc(100% + 9px); z-index: 20; width: 240px; padding: 13px 18px; border: 1px solid #8885; border-radius: 12px; background: var(--challenge-surface, #fff); color: var(--challenge-ink, #292c29); box-shadow: 0 12px 35px #0002; }
body.simplified .more-menu-content > a, body.simplified .more-menu-content > button { display: flex; justify-content: start; gap: 9px; width: 100%; min-height: 39px; padding: 7px 0; font: inherit; font-size: 12px; color: inherit; border: 0; background: none; text-decoration: none; cursor: pointer; }
body.simplified .more-menu-content > a:hover, body.simplified .more-menu-content > button:hover { text-decoration: underline; }
.more-menu-content .catalog-status, .more-menu-content .challenge-date, .more-menu-content .daily-reset { margin: 10px 0 0; font-size: 9px; line-height: 1.6; opacity: .6; }
.more-menu-content .catalog-status { padding-top: 10px; border-top: 1px solid #8884; }
.after-hours { --challenge-ink: #b9f8cf; --challenge-surface: #0c1111; }
.blue-note { --challenge-ink: #f7f1d5; --challenge-surface: #2344e8; }
.candy-club { --challenge-ink: #8b1c39; --challenge-surface: #fffdf5; }
.margins { --challenge-ink: #263c31; --challenge-surface: #f5f0e5; }
.split-decision { --challenge-ink: #152d48; --challenge-surface: #fff3db; }
.pocket-arcade { --challenge-ink: #173c39; --challenge-surface: #f5f4df; }
.common-ground { --challenge-ink: #302d36; --challenge-surface: #faf9f6; }
.page { --challenge-ink: #252038; --challenge-surface: #f5f1fc; }

@media (max-width: 640px) {
  body.simplified .design-shell { padding-top: 17px; }
  body.simplified .wordmark { font-size: 28px; }
  body.simplified .game-area, body.simplified .game { padding: 28px 0; }
  body.simplified .quote-card { min-height: 254px; }
  .challenge-toolbar { gap: 8px; }
  .challenge-toolbar .mode-picker button, .daily-idle .challenge-toolbar .mode-picker button { padding-inline: 5px; margin-left: 0; font-size: 11px; }
  .daily-idle .challenge-toolbar .combo-panel { min-width: 64px; }
  .combo-panel { width: auto; min-width: 94px; }
  .run-status { gap: 10px; }
  .run-status.is-daily .combo-panel { min-width: 64px; }
  .daily-strikes { height: 36px; gap: 8px; }
  .strike { width: 36px; height: 36px; }
  .combo-heading strong { font-size: 18px; }
  .daily-lobby { padding-block: 36px 25px; }
  .daily-lobby h2 { font-size: 27px; }
  .daily-lobby p { font-size: 11px; }
  #daily-start-form { gap: 8px; }
  .challenge-action { padding-inline: 15px; }
  body.simplified .feedback { padding: 16px; }
  body.simplified .feedback-title { font-size: 13px; }
  body.simplified .next { margin-top: 3px; }
}
@media (max-width: 380px) {
  .challenge-toolbar { gap: 6px; }
  .daily-strikes { height: 28px; gap: 4px; }
  .strike { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { #combo-progress::-webkit-progress-value { transition: none; } }
