/* Bike Quiz: shared site shell, stable stage, compact opening, results. */
[hidden] { display: none!important; }
.quiz-main { padding-bottom: 38px; }
.quiz-intro { display: flex; align-items: end; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; gap: 16px; }
.quiz-kicker,.eyebrow { font: 700 10px/1.4 "montserrat",Arial,sans-serif; letter-spacing: .14em; }
.quiz-kicker { color: var(--accent); margin: 0 0 9px; }
.quiz-intro h1 { font: 800 clamp(42px,5.4vw,76px)/1 "montserrat",Arial,sans-serif; letter-spacing: -.055em; margin: 0; font-size: clamp(32px,3.8vw,58px); }
.quiz-intro h1 span { color: var(--accent); }
.quiz-deck { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.rules-link { font-size: 13px; border-bottom: 1px solid #666; padding-bottom: 6px; white-space: nowrap; }
.rules-link span { color: var(--accent); padding-left: 16px; }
.game { border: 1px solid #363636; background: #151515; scroll-margin-top: 90px; }
.game-topline { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #363636; font: 700 10px/1.4 "montserrat",Arial,sans-serif; letter-spacing: .13em; color: #c1beb8; padding: 12px 20px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.game-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; }
.stage-column { min-width: 0; background: white; display: flex; flex-direction: column; }
.stage { position: relative; background: #fff; overflow: hidden; flex: none; min-height: 0; width: 100%; aspect-ratio: 3/2; }
.stage video,.stage>img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage video { pointer-events: none; }
.answer-photo { opacity: 0; transition: opacity 1.5s ease; }
.answer-photo.visible { opacity: 1; }
.stage-tag { position: absolute; top: 22px; left: 24px; color: #797979; font: 700 9px/1.4 "montserrat",Arial,sans-serif; letter-spacing: .14em; z-index: 1; }
.stage-pause { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #ffffffea; color: #222; padding: 20px; }
.stage-pause strong { font-size: 24px; }
.stage-pause .quiz-button { width: auto; padding-inline: 34px; }
.photo-caption { position: absolute; bottom: 2%; left: 0; right: 0; text-align: center; color: #141414; background: linear-gradient(0deg,#fff,transparent); padding-top: 14px; }
.photo-caption span { display: block; color: #777; font: 700 9px "montserrat",Arial,sans-serif; letter-spacing: .15em; }
.photo-caption strong { display: block; font: 800 clamp(16px,2vw,24px)/1.2 "montserrat",Arial,sans-serif; margin-top: 7px; letter-spacing: -.025em; }
.stage-bottom { display: flex; justify-content: space-between; gap: 15px; background: #f2f1ee; color: #6c6b67; font-size: 11px; min-height: 34px; padding: 9px 16px; }
.play-panel { padding: 28px 24px; min-width: 0; min-height: 610px; }
.clock-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.eyebrow { display: block; color: #aaa7a1; font-size: 9px; }
.clock { font: 700 59px/1.1 "montserrat",Arial,sans-serif; letter-spacing: -.07em; margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
.clock .seconds { font-size: 21px; font-weight: 400; letter-spacing: 0; color: #8d8b87; margin-left: 5px; }
.score-mini { text-align: right; padding-top: 1px; }
.score-mini strong { display: block; font: 700 26px/1.2 "montserrat",Arial,sans-serif; margin-top: 14px; font-variant-numeric: tabular-nums; }
.score-mini small { font: 400 13px Arial,sans-serif; color: #85837e; }
.timer-track { height: 4px; background: #36332e; overflow: hidden; }
.timer-track span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; will-change: transform; }
.panel-section { padding-top: 28px; }
.panel-section h2,.panel-section legend { font: 700 21px/1.25 "montserrat",Arial,sans-serif; letter-spacing: -.03em; margin: 0 0 13px; }
.panel-section p { color: #b3b0aa; font-size: 14px; line-height: 1.6; margin: 0 0 23px; }
.panel-section b { color: #f5f3ee; font-weight: 600; }
.quiz-button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 52px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: #101010; font: 800 13px/1.2 "montserrat",Arial,sans-serif; padding: 15px; cursor: pointer; transition: background .15s,transform .15s; }
.quiz-button:not(:disabled):hover { background: #ff9148; border-color: #ff9148; transform: translateY(-1px); }
.quiz-button:disabled { opacity: .42; cursor: default; }
.panel-section .control-note { font-size: 11px; line-height: 1.6; color: #8f8c86; margin: 15px 0 0; }
.panel-section fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
.panel-section .locked-note { color: var(--accent); font-size: 12px; margin-bottom: 15px; }
.choices { display: grid; gap: 8px; margin-bottom: 20px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #444; background: #1b1b1b; cursor: pointer; min-height: 48px; font-size: 13px; }
.choice:hover { border-color: #888; }
.choice:has(input:checked) { border-color: var(--accent); background: #ff771b12; }
.choice input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); margin: 0; }
.choice .letter { color: #96938d; font: 700 10px Arial,sans-serif; }
.choice:has(input:checked) .letter { color: var(--accent); }
.round-strip { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #363636; flex-wrap: wrap; padding: 14px 20px; gap: 12px; }
.round-strip>div { display: flex; gap: 20px; align-items: center; min-width: 0; flex: 1; flex-wrap: wrap; }
.round-strip>p { font-size: 11px; line-height: 1.5; color: #96928b; margin: 0; text-align: right; flex-shrink: 0; }
.scorecard { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.scorecard li { border: 1px solid #555; min-height: 36px; display: grid; place-items: center; font: 700 12px "montserrat",Arial,sans-serif; color: #aaa; min-width: 44px; padding: 4px 7px; }
.scorecard li.current { border-color: var(--accent); color: var(--accent); }
.scorecard li.correct { color: #a4d3ad; border-color: #5c8d65; }
.scorecard li.incorrect { color: #ee9b85; border-color: #9b5f4e; }
.result-badge { display: inline-block; font: 700 10px "montserrat",Arial,sans-serif; letter-spacing: .1em; color: #a4d3ad; margin-bottom: 14px; }
.result-badge.miss { color: #ee9b85; }
.points-earned { border-top: 1px solid #383838; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.points-earned strong { font: 700 35px "montserrat",Arial,sans-serif; color: var(--accent); }
.points-earned span { color: #aaa; font-size: 8px; letter-spacing: .1em; }
.summary-score { font: 700 64px/1.2 "montserrat",Arial,sans-serif; color: var(--accent); letter-spacing: -.06em; }
.summary-score span { font-size: 19px; color: #aaa; letter-spacing: 0; }
.text-button { color: var(--accent); background: none; border: 0; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
#media-error { color: #f1ad93; font-size: 13px; }
button:focus-visible,a:focus-visible,input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.stage button:focus-visible { outline-color: #222; }
.primary-nav [aria-current="page"] { color: var(--accent); }
.stage .title-opening { z-index: 2; object-fit: contain; background: white; padding: 18px; }
.start-bike-button { position: relative; min-height: 64px; margin-top: 54px; margin-bottom: 28px; padding: 15px 12px 15px 76px; justify-content: center; font-size: 22px; letter-spacing: -.035em; white-space: nowrap; overflow: visible; }
.start-bike-button .start-watch { position: absolute; width: 100px; height: 132px; object-fit: contain; left: -12px; bottom: -16px; filter: drop-shadow(0 4px 4px #0007); }
.start-bike-button #start-label { position: relative; z-index: 1; }
.know-button { position: relative; min-height: 66px; padding-left: 88px; font-size: 24px; margin-top: 32px; margin-bottom: 32px; overflow: visible; }
.stop-sign { position: absolute; width: 108px; height: 118px; object-fit: contain; left: -16px; top: 50%; transform: translateY(-50%); filter: drop-shadow(0 3px 3px #0005); }
.next-control { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.next-control .quiz-button { pointer-events: none; }
.next-arrow { display: block; width: 150px; height: 100px; object-fit: contain; margin: 18px auto 0; filter: drop-shadow(0 5px 3px #0008); transition: transform .15s ease; }
.next-control:hover .next-arrow { transform: translateX(7px); }
.game .quiz-button,.game .text-button { font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
#next-instruction { margin-top: 18px; line-height: 1.6; }
.opening-screen { position: relative; z-index: 2; background: #fff; padding-bottom: 10px; }
.opening-art { position: relative; aspect-ratio: auto; height: clamp(220px,32vh,320px); }
.stage .opening-art .title-opening { padding: 6px 16px 30px; }
.opening-subtitle { position: absolute; z-index: 3; left: 12px; right: 12px; margin: 0; text-align: center; color: #111; font: 800 clamp(16px,1.7vw,28px)/1.2 "montserrat",Arial,sans-serif; letter-spacing: -.035em; font-size: clamp(16px,1.5vw,23px); bottom: 5px; }
.opening-how-to { display: grid; background: #0b0b0b; color: #f5f3ee; scroll-margin-top: 100px; padding: 16px; gap: 16px; grid-template-columns: 1fr 2.5fr; margin: 0 10px; }
.opening-how-to .quiz-kicker { font-size: 8px; margin: 0 0 12px; }
.opening-how-to h2 { font: 800 clamp(18px,1.7vw,26px)/1.15 "montserrat",Arial,sans-serif; letter-spacing: -.035em; margin: 0; font-size: clamp(16px,1.5vw,21px); }
.opening-how-to ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; gap: 12px; }
.opening-how-to li>span { font: 400 22px/1 "montserrat",Arial,sans-serif; color: #716b61; font-size: 18px; }
.opening-how-to h3 { font: 700 11px/1.3 "montserrat",Arial,sans-serif; margin: 8px 0 5px; }
.opening-how-to li p { font-size: 11px; line-height: 1.6; color: #aaa69f; margin: 0; }
.challenge-results { padding: 64px 30px; text-align: center; scroll-margin-top: 90px; background: radial-gradient(ellipse at top,#352418 0,#151515 70%); }
.challenge-results h2 { font: 800 clamp(44px,7vw,96px)/1.1 "montserrat",Arial,sans-serif; letter-spacing: -.05em; margin: 12px 0 18px; color: #f5f3ee; overflow-wrap: anywhere; }
.challenge-results .summary-score { font-size: clamp(48px,6vw,76px); }
.results-count { color: #b3b0aa; font-size: 16px; margin: 12px 0 30px; }
.result-bands { display: grid; grid-template-columns: 3fr 4fr 3fr; gap: 6px; max-width: 700px; margin: 0 auto; }
.result-bands>div { padding: 16px 8px; border-top: 4px solid #49443e; color: #96928b; background: #ffffff04; }
.result-bands strong,.result-bands span { display: block; }
.result-bands strong { font: 700 14px "montserrat",Arial,sans-serif; }
.result-bands span { font-size: 12px; margin-top: 7px; }
.result-bands .active { border-color: var(--accent); background: #ff771b16; color: #ff9148; }
.results-recommendation { max-width: 700px; margin: 34px auto; font: 600 clamp(19px,2.2vw,28px)/1.5 "montserrat",Arial,sans-serif; letter-spacing: -.025em; color: #f5f3ee; }
.results-actions { display: flex; justify-content: center; gap: 16px; max-width: 690px; margin: 0 auto; }
.results-actions .quiz-button { flex: 1; text-decoration: none; }
.results-actions #restart { background: transparent; color: var(--accent); }
.challenge-results .control-note { font-size: 12px; color: #96928b; margin: 26px 0 0; }
.game.is-opening .play-panel { min-height: 0; padding: 20px; }
.game.is-opening .clock { font-size: 50px; margin-bottom: 10px; }
.game.is-opening .panel-section { padding-top: 20px; }
.game.is-opening .panel-section h2 { font-size: 19px; }
.game.is-opening .start-bike-button { margin-top: 40px; margin-bottom: 24px; min-height: 58px; }
@media(min-width:1500px) {
  .game-grid { grid-template-columns: minmax(0,1fr) 380px; }
  .play-panel { padding: 34px; }
  .panel-section { padding-top: 36px; }
  .start-bike-button { font-size: 25px; padding-left: 85px; }
  .start-bike-button .start-watch { width: 112px; height: 148px; }
  .game .quiz-button,.game .text-button { font-size: 25px; }
}
@media(max-width:1100px) {
  .opening-how-to { grid-template-columns: 1fr 2.5fr; gap: 12px; }
  .opening-how-to h2 { font-size: 16px; }
  .opening-how-to .quiz-kicker { margin-bottom: 8px; }
}
@media(max-width:1050px) {
  .game-grid { grid-template-columns: minmax(0,1fr) 310px; }
  .play-panel { padding: 22px 20px; }
  .primary-nav { gap: 14px; font-size: .79rem; }
}
@media(max-width:900px) {
  .game-grid { grid-template-columns: 1fr; }
  .play-panel { min-height: 480px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .stage { flex: none; min-height: 0; aspect-ratio: 3/2; }
}
@media(max-width:760px) {
  .quiz-intro { align-items: start; padding-top: 18px; padding-bottom: 18px; }
  .quiz-intro h1 { font-size: 32px; }
  .quiz-kicker { font-size: 8px; letter-spacing: .1em; }
  .quiz-deck { font-size: 14px; max-width: 280px; margin-top: 14px; }
  .rules-link { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; aspect-ratio: 3/2; flex: none; }
  .stage-tag { font-size: 7px; top: 13px; left: 13px; }
  .stage-bottom { padding: 10px 13px; font-size: 10px; }
  .play-panel { padding: 22px; }
  .clock { font-size: 44px; margin-bottom: 12px; }
  .score-mini strong { font-size: 24px; margin-top: 10px; }
  .panel-section { padding-top: 21px; }
  .panel-section h2,.panel-section legend { font-size: 19px; }
  .panel-section p { margin-bottom: 16px; }
  .choices { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice { padding: 10px 8px; font-size: 12px; gap: 7px; }
  .choice .letter { display: none; }
  .round-strip { padding: 17px 20px; }
  .round-strip>div { gap: 12px; display: block; flex-basis: 100%; }
  .round-strip>p { font-size: 10px; text-align: left; }
  .game-topline { padding: 12px 15px; font-size: 8px; }
  .primary-nav { font-size: 1.1rem; }
  .photo-caption strong { font-size: 14px; }
  .photo-caption span { font-size: 7px; }
  .stage .title-opening { padding: 10px; }
  .start-bike-button { font-size: 24px; padding-left: 85px; margin-top: 52px; min-height: 62px; }
  .start-bike-button .start-watch { width: 105px; height: 138px; }
  .know-button { font-size: 23px; padding-left: 78px; }
  .stop-sign { width: 94px; height: 104px; left: -13px; }
  .next-arrow { width: 130px; height: 86px; }
  .game .quiz-button,.game .text-button { font-size: 24px; }
  .scorecard { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 12px; gap: 6px; }
  .scorecard li { min-width: 0; padding: 4px; }
  .opening-art { aspect-ratio: auto; height: 230px; }
  .stage .opening-art .title-opening { padding: 8px 8px 32px; }
  .opening-subtitle { font-size: 17px; bottom: 8px; }
  .opening-how-to { padding: 22px 18px; margin: 0 10px; grid-template-columns: 1fr; }
  .opening-how-to ol { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .opening-how-to li { align-items: flex-start; gap: 14px; display: block; }
  .opening-how-to h3 { font-size: 12px; margin: 7px 0 5px; }
  .opening-how-to li p { font-size: 11px; }
  .opening-how-to li>span { min-width: 28px; }
  .challenge-results { padding: 38px 20px; }
  .results-actions { flex-direction: column; }
  .result-bands strong { font-size: 11px; }
  .result-bands span { font-size: 10px; }
  .result-bands>div { padding-inline: 4px; }
  .challenge-results .quiz-kicker { font-size: 9px; }
}
@media(max-width:480px) {
  .round-strip { align-items: flex-start; flex-direction: column; gap: 12px; }
  .round-strip>p { text-align: left; }
  .round-strip>div { flex-wrap: wrap; }
  .scorecard { flex-wrap: wrap; }
}
@media(max-width:360px) {
  .start-bike-button { font-size: 19px; padding-left: 68px; }
  .start-bike-button .start-watch { width: 90px; height: 118px; left: -12px; }
  .know-button { font-size: 19px; padding-left: 65px; }
  .stop-sign { width: 82px; height: 94px; }
  .game .quiz-button,.game .text-button { font-size: 19px; }
}
@media(prefers-reduced-motion:reduce) {
  .answer-photo { transition: none; }
  .quiz-button { transition: none; }
  .next-arrow { transition: none; }
}

.game.is-opening .stage { aspect-ratio: 3/2; }
.game.is-opening .opening-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.game.is-opening .opening-art { flex: 1; min-height: 0; height: auto; }
.game.is-opening .opening-how-to { flex-shrink: 0; }
@media (max-width:600px) {
  .game.is-opening .stage { aspect-ratio: auto; }
  .game.is-opening .opening-screen { position: relative; }
  .game.is-opening .opening-art { flex: none; height: 230px; }
}
