/* Playable Water Race and the growing midway. */
:root { --personal-best-green: #7de7a5; }
.personal-best-time { color: var(--personal-best-green); font-weight: 700; }
.review-banner { min-height: 43px; }
.review-banner > span { white-space: nowrap; }
.site-header nav { gap: clamp(15px, 2.5vw, 32px); }
/* Shared carnival navigation stays global; this small row belongs only to
   Water Race, including its level journey and control guide. */
.water-race-nav { display: none; width: calc(100% - var(--gutter) * 2); max-width: 1180px; margin: 0 auto 8px; align-items: center; gap: 24px; border-bottom: 1px solid #24446e; }
body[data-page='water-race'] .water-race-nav,
body[data-page='levels'] .water-race-nav,
body[data-page='how-to-play'] .water-race-nav { display: flex; }
.water-race-nav > span { margin-right: auto; color: #92b7d5; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.water-race-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; color: #d5e2f3; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.water-race-nav a:hover, .water-race-nav a[aria-current='page'] { color: var(--cyan); border-bottom-color: var(--cyan); }
.journey-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 27px; margin-top: 13px; }
.catalog-invitation { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 25px; padding: 24px 27px; border: 1px solid #2e587f; border-radius: 15px; background: #0b2b56; }
.catalog-invitation b, .catalog-invitation span { display: block; }
.catalog-invitation b { color: var(--yellow); margin-bottom: 7px; font-size: 19px; }
.catalog-invitation span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.games-page { padding-block: 25px 70px; }
body[data-page='water-race'] .review-banner, body[data-page='water-race'] .site-footer { display: none; }
body[data-page='water-race'] .site-header { min-height: 74px; padding-block: 12px; }
body[data-page='water-race'] .header-cta { display: none; }
.game-page { width: 100%; max-width: 1440px; padding: 0 28px 18px; margin: 0 auto; }
.play-heading { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 10px 16px 19px; }
.play-heading > div:nth-child(2) { text-align: center; }
.play-heading .back-link { margin: 0; min-width: 180px; font-weight: 700; }
.play-heading .eyebrow { display: block; margin: 0 0 3px; font-size: 8px; letter-spacing: .2em; }
.play-heading h1 { margin: 0; font-size: 32px; line-height: 1; }
.play-settings { display: flex; gap: 7px; justify-content: flex-end; }
.setting-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 11px; background: #0b2d59; border: 1px solid #2b527b; border-radius: 9px; color: #d0e4f4; font-size: 11px; font-weight: 700; white-space: nowrap; }
.setting-button:hover { border-color: var(--cyan); color: #fff; }
.setting-button[aria-pressed='true'] { color: var(--cyan); }
.carnival-world { --scene-padding: 30px 30px 40px; }
.carnival-world > .game-column { position: relative; width: clamp(360px, calc((100svh - 390px) * .8), 430px); max-width: 430px; border-radius: 18px; box-shadow: 0 0 0 4px #133b62, 0 0 0 6px #d8b459, 0 18px 45px #02122e99; }
.game-topline { min-height: 58px; padding: 10px 15px; background: linear-gradient(110deg, #0c3264, #145882); border: 1px solid #5296a9; border-bottom: none; }
.game-topline b { font-size: 16px; }
.game-topline small { font-size: 7px; margin-bottom: 4px; }
.level-chip { width: 33px; height: 34px; flex-basis: 33px; }
.pause-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #7bc9d17a; border-radius: 9px; color: #fff2a8; background: #0b355f; font-size: 22px; font-weight: 800; }
.pause-button:disabled { opacity: .35; cursor: default; }
.pause-button:not(:disabled):hover { background: #15527c; border-color: var(--yellow); }
.hud { min-height: 70px; padding: 11px 16px 12px; grid-template-columns: 88px minmax(0, 1fr); gap: 15px; border-inline: 1px solid #46788f; }
.motion-cue { min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; color: #d2e9f0; background: #0b2d4b; border-inline: 1px solid #46788f; border-block: 1px solid #244e68; }
.motion-cue > span:first-child { color: #98c2d4; font-size: 7px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.motion-cue b { font-size: 10px; line-height: 1.4; }
.motion-cue-mark { margin-left: auto; color: #84e9ef; font-size: 15px; line-height: 1; }
.motion-cue[data-state='next'] { background: #4e3921; border-block-color: #97773d; }
.motion-cue[data-state='next'] > span:first-child, .motion-cue[data-state='next'] .motion-cue-mark { color: #ffe098; }
.motion-cue[data-state='changing'] { background: #18445c; }
.maya-portrait { display: block; aspect-ratio: 1; object-fit: contain; object-position: center bottom; }
.announcer-credit { min-width: 0; display: flex; align-items: center; gap: 8px; color: #a9c8dc; font-size: 9px; line-height: 1.4; }
.announcer-credit .maya-portrait { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #83d6ed55; border-radius: 50%; background: radial-gradient(circle at center, #1a5271, #102d4b); }
.announcer-credit b { display: block; margin-bottom: 2px; color: #ffe3ae; font-size: 10px; }
.announcer-credit span { display: block; }
.ticket-bar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 12px; border: 1px solid #46788f; border-top: 0; background: #132f48; color: #ffe29c; }
.ticket-symbol { width: 27px; height: 21px; flex: 0 0 27px; fill: #f6cf68; stroke: #b68131; stroke-width: 1.4; }
.ticket-symbol path:last-child { fill: none; stroke: #926426; stroke-dasharray: 2 2; }
.ticket-information { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ticket-information b { font-size: 11px; line-height: 1.2; }
.ticket-information > span { font-size: 9px; line-height: 1.3; color: #bcd5e3; font-variant-numeric: tabular-nums; }
.ticket-bar[data-empty='true'] .ticket-symbol { fill: #7893a5; stroke: #536d83; }
.ticket-bar[data-empty='true'] .ticket-information b { color: #d5e4ee; }
.world-arrival { position: absolute; z-index: 6; inset: 5% 5% auto; text-align: center; pointer-events: none; }
.world-arrival-card { padding: 6cqw 4cqw; border: 2px solid var(--skin-trim, #ddbd68); border-radius: 18px; background: color-mix(in srgb, var(--skin-paper, #fff4d3) 97%, transparent); color: var(--skin-ink, #173e55); box-shadow: 0 10px 28px #07213c66, inset 0 0 0 4px #ffffff55; }
.arrival-crest { display: grid; place-items: center; width: 43px; height: 43px; margin: 0 auto 10px; color: var(--skin-trim, #b18134); }
.arrival-crest .world-sign-crest { display: block; width: 43px; height: 43px; margin: 0; }
.world-arrival .eyebrow { color: var(--skin-ink, #173e55); font-size: 8px; letter-spacing: .12em; opacity: .8; }
.world-arrival h2 { margin: 12px 0; font-size: 7.3cqw; line-height: 1.07; letter-spacing: -.035em; color: var(--skin-ink, #173e55); }
.world-arrival h2 span { color: inherit; }
.world-arrival-card > p:not(.eyebrow) { margin: 10px auto; max-width: 250px; font-size: 11px; line-height: 1.6; }
.arrival-speaker { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; margin-top: 5px; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--skin-ink, #173e55) 25%, transparent); border-radius: 20px; font-size: 9px; line-height: 1.35; text-align: left; }
.arrival-speaker .maya-portrait { width: clamp(32px, 10cqw, 42px); height: clamp(32px, 10cqw, 42px); flex-shrink: 0; }
.arrival-skip { pointer-events: auto; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 7px; color: var(--skin-ink, #173e55); background: #ffffff99; font-size: 10px; font-weight: 700; }
.world-arrival[data-speaking='true'] .arrival-speaker { box-shadow: 0 0 0 3px color-mix(in srgb, var(--skin-trim, #b18134) 22%, transparent); }
.pause-panel .pause-ticket-note { margin: 0 0 13px; font-size: 10px; line-height: 1.5; color: #f6dcaa; }
.ticket-help { color: #bed9e8; }
#ticket-notice:not(:empty) { padding: 8px 12px; border: 1px solid #967e49; border-radius: 8px; color: #ffdf9c; background: #112e4b; }
@media (max-width: 380px) {
  .ticket-bar { padding-inline: 9px; gap: 6px; }
  .ticket-information b { font-size: 10px; }
  .ticket-information > span { font-size: 8px; }
}
.challenge-cue { display: flex; align-items: center; gap: 7px; min-height: 29px; padding: 6px 11px; border: 1px solid #46788f; border-top: 0; background: #103b50; color: #ccf3ef; font-size: 9px; }
.challenge-cue b { font-size: 8px; letter-spacing: .06em; white-space: nowrap; }
.challenge-cue > span:last-child { margin-left: auto; text-align: right; }
.challenge-cue-light { width: 6px; height: 6px; border-radius: 50%; background: #88e7c7; flex: 0 0 6px; }
.challenge-cue[data-state='warning'] { background: #574321; color: #fff0b4; }
.challenge-cue[data-state='warning'] .challenge-cue-light { background: #ffda7b; box-shadow: 0 0 6px #ffd66d; }
.challenge-cue[data-state='closed'] { background: #173952; color: #d6eaff; }
.challenge-cue[data-state='closed'] .challenge-cue-light { border-radius: 1px; background: #afc9e2; }
.target-shutter { position: absolute; z-index: 2; pointer-events: none; max-width: none; overflow: visible; }
.target-shutter .gate-cover, .target-shutter .gate-warning-ring { opacity: 0; }
.target-shutter[data-state='warning'] .gate-warning-ring { opacity: .95; filter: drop-shadow(0 0 5px #ffd66d); }
.target-shutter[data-state='closed'] .gate-cover { opacity: 1; }
.game-stage[data-phase='paused'] .target-shutter, .game-stage[data-phase='won'] .target-shutter, .game-stage[data-phase='lost'] .target-shutter { opacity: .35; }
.hit-feedback[data-zone='blocked'] { color: #e2f1ff; border-color: #9fc8eb; }
.result-speaker { display: block; margin: 2px 0 9px; color: #bcd4e4; font-size: 9px; letter-spacing: .03em; }
.timer > strong { font-size: 32px; }
.timer > strong.is-low { color: #ffac8d; }
.fill-track { margin-top: 8px; height: 13px; }
.game-stage { aspect-ratio: 4/5; touch-action: pan-y; }
.game-stage img { user-select: none; -webkit-user-drag: none; }
.stage-cannon { top: 58.4%; left: 29%; bottom: auto; width: 42%; transform-origin: 50% 85%; will-change: transform; pointer-events: none; }
.stage-clown { width: 44%; pointer-events: none; will-change: left, top; }
.live-stream { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; }
.ready-ribbon { position: absolute; z-index: 3; top: 3%; left: 8%; right: 8%; display: none; }
.ready-ribbon span { font-size: 7px; letter-spacing: .13em; font-weight: 800; }
.ready-ribbon b { display: block; max-width: 100%; margin-top: 4px; font-size: 11px; line-height: 1.4; }
.aim-reticle { position: absolute; z-index: 5; width: 13px; height: 13px; border: 1px solid #ffffffb5; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px #14648b80; pointer-events: none; opacity: .75; }
.aim-reticle::before, .aim-reticle::after { content: ''; position: absolute; background: #fff; opacity: .85; }
.aim-reticle::before { width: 3px; height: 1px; top: 5px; left: 4px; }
.aim-reticle::after { width: 1px; height: 3px; top: 4px; left: 5px; }
.hit-feedback { position: absolute; z-index: 5; top: 3%; left: 8%; right: 8%; width: fit-content; margin-inline: auto; padding: 7px 10px; border: 1px solid #b1f6f2; border-radius: 20px; color: #f3fdff; background: #07375bde; font-size: 9px; font-weight: 800; letter-spacing: .04em; pointer-events: none; }
.hit-feedback[data-zone='red'] { color: #fff094; border-color: #ffe583; }
.countdown-panel { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #092a5260; color: #fff; text-align: center; backdrop-filter: blur(1px); }
.countdown-panel > span { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-shadow: 0 2px 5px #06234a; }
.countdown-panel strong { display: grid; place-items: center; width: 33cqw; height: 33cqw; max-width: 140px; max-height: 140px; margin: 15px 0 14px; background: #0c3265e8; border: 3px solid #ffe66a; border-radius: 50%; color: #ffe66a; font-size: 24cqw; line-height: 1; box-shadow: 0 0 40px #16cfee66; }
.countdown-panel p { max-width: 220px; padding: 8px 13px; border-radius: 8px; background: #072852cc; color: #edfbff; font-size: 12px; line-height: 1.5; }
.pause-panel { position: absolute; z-index: 8; inset: 13% 6% auto; padding: 8cqw 5cqw 4cqw; border: 2px solid #83dbec; border-radius: 20px; background: #08254bf5; box-shadow: 0 15px 35px #04335a99; text-align: center; }
.pause-panel .eyebrow { font-size: 9px; margin-bottom: 12px; }
.pause-panel h2 { margin-bottom: 13px; font-size: 8cqw; }
.pause-panel p { color: #c6dfed; font-size: 12px; line-height: 1.7; }
.pause-panel .result-secondary { display: block; margin-inline: auto; }
.game-stage[data-phase='paused'] .stage-clown, .game-stage[data-phase='won'] .stage-clown, .game-stage[data-phase='lost'] .stage-clown { opacity: .35; }
.result-panel { inset: 4% 5%; }
.result-panel:focus { outline: none; }
.result-panel h2 { font-size: 7.5cqw; }
.result-panel[data-celebration='fast'] h2 { color: var(--yellow); }
.result-panel[data-celebration='improvedBest'] h2 { color: var(--cyan); }
.result-panel[data-personal-best='true'] .result-time strong,
.result-panel[data-personal-best='true'] .result-time span,
.result-panel[data-personal-best='true'] .eyebrow { color: var(--personal-best-green); }
.result-panel > .maya-portrait { width: clamp(68px, 26cqw, 112px); height: clamp(68px, 26cqw, 112px); max-width: 112px; filter: drop-shadow(0 5px 8px #00152d66); }
.sample-caption { max-width: 255px; font-size: 11px; line-height: 1.55; margin: 12px 0 15px; }
.start-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 79px; padding: 12px 14px; background: linear-gradient(180deg, #174b78, #092b55); border: 1px solid #5ba9b5; border-top-color: #8cedee; }
.start-controls b { display: block; font-size: 13px; margin-bottom: 6px; }
.start-controls span { display: block; color: #c0deeb; font-size: 9px; line-height: 1.5; }
.start-controls .button { flex: 0 0 auto; min-height: 45px; font-size: 12px; padding: 11px 15px; }
.start-controls[aria-busy="true"] .button { cursor: wait; opacity: .8; }
.rear-pad { min-height: 79px; border-radius: 0; padding: 13px 19px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline-offset: -5px; }
.rear-pad.is-held { cursor: grabbing; background: linear-gradient(180deg, #12698b, #0b3963); box-shadow: inset 0 0 22px #36e5ed30; }
.rear-pad[aria-disabled='true'] { cursor: default; opacity: .75; }
.rear-pad b { font-size: 14px; }
.pad-direction { display: grid; place-items: center; flex: 0 0 38px; }
.aim-directions { display: block; width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.control-hand .aim-directions { width: 32px; height: 32px; }
.game-footline { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding: 8px 12px; background: #09264a; border: 1px solid #40748b; border-top: 0; border-radius: 0 0 15px 15px; color: #bcdded; font-size: 9px; gap: 10px; }
.carnival-world > .world-sign { position: absolute; top: 54%; left: clamp(28px, 5%, 78px); width: min(21%, 245px); padding: 22px 15px; text-align: center; transform: rotate(-3deg); border: 2px solid #e5c076; border-radius: 12px; background: linear-gradient(160deg, #0c4c6bea, #082950e8); box-shadow: 0 6px 0 #83502c, 0 15px 25px #09214388, inset 0 0 0 4px #326f7999; }
.world-sign::after { content: ''; position: absolute; z-index: -1; width: 12px; height: 300px; top: 100%; left: calc(50% - 6px); background: linear-gradient(90deg, #80532a, #b88945, #80532a); }
.world-sign .eyebrow { margin-bottom: 8px; font-size: 9px; color: #c3f6f2; letter-spacing: .18em; }
.world-sign h2 { margin: 0 0 13px; font-size: clamp(26px, 3vw, 41px); line-height: .97; }
.world-sign > p:not(.eyebrow) { font-size: 11px; color: #ceebe9; line-height: 1.75; margin-bottom: 13px; }
.world-sign-stars { color: #ffe399; letter-spacing: 6px; font-size: 13px; }
.carnival-world > .world-tips { position: absolute; top: 31%; right: clamp(26px, 5%, 75px); width: min(20%, 240px); text-align: center; }
.world-tips > img { position: relative; z-index: 1; width: 80%; margin: 0 auto -15px; filter: drop-shadow(0 8px 7px #06304c66); }
.world-tip-card { padding: 28px 18px 19px; border: 1px solid #71d1dd99; border-radius: 16px; background: linear-gradient(160deg, #083f66ed, #061e45ed); box-shadow: 0 13px 25px #00163466; }
.world-tip-card .aside-kicker { margin-bottom: 9px; font-size: 8px; }
.world-tip-card h2 { margin: 0 0 12px; font-size: clamp(23px, 2.6vw, 34px); line-height: 1.05; }
.world-tip-card > p { margin-bottom: 16px; color: #d1e6ee; font-size: 11px; line-height: 1.7; }
.compact-score { border-top: 1px solid #5a8aa85c; padding-top: 12px; }
.compact-score > span { display: flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 9px; color: #c7dde9; }
.compact-score b { margin-left: auto; color: #edf7ff; font-size: 9px; }
.compact-score i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #ffffff70; }
.red-dot { background: #fc5269; }.white-dot { background: #f1f5f6; }.blue-dot { background: #219bdc; }
.play-help { max-width: 960px; margin: 17px auto 0; padding-inline: 20px; text-align: center; }
.play-help p { font-size: 11px; color: #aac9e0; line-height: 1.8; margin: 0 0 6px; }
.play-help b { color: #d3e6ef; }
.play-help #save-note { font-size: 10px; color: #8fafcc; }
.play-help #audio-note:empty { display: none; }
.play-help .text-link { font-size: 11px; }
.level-tile.is-complete:not([aria-pressed='true']) { border-color: #43ccb8; background: #123e58; }
.level-tile.is-complete > span { color: var(--personal-best-green); font-weight: 700; }
.level-tile.is-complete[aria-pressed='true'] > span { color: #126237; }
.level-tile.is-locked:not([aria-pressed='true']) { opacity: .67; }
.level-tile.is-planned:not([aria-pressed='true']) { background: #0b284f; color: #9dbad3; }

@media (max-width: 1100px) {
  .game-page { padding-inline: 18px; }
  .carnival-world > .world-sign { left: 3%; width: 20%; }
  .carnival-world > .world-tips { right: 3%; width: 20%; }
  .world-tip-card { padding-inline: 12px; }
  .world-sign > p:not(.eyebrow) { font-size: 10px; }
}
@media (max-width: 900px) {
  .carnival-world > .game-column { width: 410px; max-width: 100%; }
  .carnival-world > .world-sign { display: none; }
  .carnival-world > .world-tips { position: relative; top: auto; right: auto; display: flex; align-items: center; width: min(410px, 100%); margin: 28px auto 0; text-align: left; }
  .world-tips > img { display: block; flex: 0 0 88px; width: 88px; height: auto; margin: 0 -5px 0 0; }
  .world-tip-card { flex: 1; min-width: 0; padding: 15px 17px; }
  .world-tip-card .aside-kicker { margin-bottom: 5px; }
  .world-tip-card h2 { margin-bottom: 7px; font-size: 21px; }
  .world-tip-card h2 br { display: none; }
  .world-tip-card h2 span::before { content: ' '; }
  .world-tip-card > p { margin: 0; font-size: 12px; line-height: 1.55; }
  .world-tip-card .compact-score { display: none; }
  .carnival-world { --scene-padding: 31px 65px 42px; }
  .play-heading { padding-inline: 5px; gap: 15px; }
  .play-heading .back-link { min-width: 110px; }
  .play-heading h1 { font-size: 29px; }
}
@media (max-width: 620px) {
  .site-header { flex-direction: column; justify-content: center; gap: 0; padding-top: 13px; padding-bottom: 4px; }
  .site-header nav { width: 100%; justify-content: center; gap: 21px; }
  .site-header nav a { min-height: 44px; font-size: 11px; }
  body[data-page='water-race'] .site-header { flex-direction: row; justify-content: space-between; gap: 10px; min-height: 58px; padding: 7px 18px; }
  body[data-page='water-race'] .site-header .brand { width: 145px; }
  body[data-page='water-race'] .site-header nav { margin: 0; width: auto; gap: 14px; padding: 0; border: none; }
  body[data-page='water-race'] .site-header nav a { font-size: 10px; min-height: 44px; }
  .water-race-nav { width: calc(100% - 34px); gap: 18px; margin-bottom: 0; }
  .water-race-nav > span { font-size: 8px; letter-spacing: .04em; }
  .water-race-nav a { font-size: 11px; }
  .catalog-invitation { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .catalog-invitation b { font-size: 18px; }
  .catalog-invitation span { font-size: 11px; }
  .game-page { padding: 0 0 16px; }
  .play-heading { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 17px 14px; }
  .play-heading .back-link { display: none; }
  .play-heading > div:nth-child(2) { text-align: left; }
  .play-heading h1 { font-size: 27px; }
  .play-heading .eyebrow { font-size: 7px; }
  .play-settings { gap: 5px; }
  .setting-button { min-height: 44px; padding-inline: 9px; font-size: 10px; }
  .carnival-world { --scene-padding: 27px 22px 34px; border-inline: 0; border-radius: 0; box-shadow: none; }
  .carnival-world > .game-column { width: 100%; max-width: 390px; }
  .game-topline { min-height: 55px; padding: 7px 11px; }
  .game-topline b { font-size: 14px; }
  .game-topline small { font-size: 7px; }
  .hud { min-height: 67px; padding: 10px 12px 11px; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .timer > strong { font-size: 30px; }
  .timer > span, .fill-info > div > span { font-size: 7px; }
  .fill-info strong { font-size: 18px; }
  .rear-pad, .start-controls { min-height: 77px; }
  .rear-pad { padding: 12px 15px; }
  .rear-pad b { font-size: 13px; }
  .rear-pad div > span { font-size: 10px; }
  .start-controls { gap: 8px; padding-inline: 10px; }
  .start-controls b { font-size: 11px; }
  .start-controls span { font-size: 8px; }
  .start-controls .button { font-size: 11px; padding-inline: 12px; }
  .ready-ribbon b { font-size: 9px; }
  .ready-ribbon span { font-size: 6px; }
  .game-footline { font-size: 8px; min-height: 29px; padding-inline: 11px; }
  .play-help { padding-inline: 24px; margin-top: 18px; }
  .play-help p { font-size: 10px; }
}
@media (max-width: 370px) {
  .world-tips > img { flex-basis: 64px; width: 64px; }
  .world-tip-card { padding: 13px; }
  .carnival-world { --scene-padding: 23px 17px 30px; }
  .play-heading h1 { font-size: 25px; }
  .setting-button { font-size: 9px; padding-inline: 8px; }
  .start-controls > div { max-width: 160px; }
  .result-panel { padding-inline: 10px; }
  .sample-caption { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-cannon, .stage-clown { will-change: auto; }
}

.level-tile.is-earlier { border-color: #b59862; background: linear-gradient(150deg, #183755, #102a46); }
.level-tile.is-earlier > span { color: #f5dca4; font-size: 9px; }
