/* Readable game UI; scenery and the bridge finale keep their palette. */
:root{--numbers:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace}
.score-box strong,.final-score>strong,.result-stats strong,.best-label strong,.football-counter strong,.book-counter strong,.score-table td,.initials-row input,#meter-reading{font-family:var(--numbers);font-variant-numeric:tabular-nums;letter-spacing:0;font-weight:800}
.score-box{padding:6px 9px 5px;min-width:75px}.score-box strong{font-size:30px;line-height:1.1}.score-box>span{font-family:Arial,Helvetica,sans-serif;font-size:9px;letter-spacing:1px}.hud{gap:10px}.football-counter strong{font-size:20px}.book-counter strong{font-size:13px}.hearts{gap:4px}.journey-label{font-family:Arial,Helvetica,sans-serif;font-size:9px;font-weight:700;line-height:1.3}.journey-label>span{background:#241c20c9;padding:3px 5px;border-radius:2px;text-shadow:none}.journey{top:87px}.journey-track{margin-top:5px;height:5px}
.stage-banner{position:absolute;top:124px;left:14px;right:14px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;background:#fff3dbef;color:#39291f;border:2px solid #66482c;box-shadow:3px 3px 0 #241c2060;text-align:center;pointer-events:none;will-change:opacity}.stage-banner>span:first-child{font-family:Arial,Helvetica,sans-serif;font-weight:800;font-size:9px;letter-spacing:2px;color:#946127}.stage-banner strong{font-family:var(--display);font-size:24px;line-height:1.05;font-weight:700;letter-spacing:.4px}.stage-banner>span:last-child{font-family:Arial,Helvetica,sans-serif;font-size:11px;line-height:1.3;color:#654c37}.play-surface[data-paused=true] .stage-banner{display:none}
.toast{font-family:Arial,Helvetica,sans-serif;font-weight:800;font-size:15px;letter-spacing:0;top:132px;line-height:1.3;padding:8px 12px}.meter-heading{gap:8px;align-items:center}.meter-heading>span{font-size:20px}.meter-heading #meter-reading{font-size:18px;white-space:nowrap;color:#4b3429}.meter-instruction{font-family:Arial,Helvetica,sans-serif;font-size:10px;font-weight:800;text-align:center;margin:4px 0 13px;letter-spacing:.6px;color:#4b3429}.meter{height:32px}.meter-labels{font-family:Arial,Helvetica,sans-serif;font-size:8px;letter-spacing:0}.meter i{width:5px}.meter-panel .primary-button{font-size:21px}
.final-score>strong{font-size:58px}.result-stats strong{font-size:24px}.result-stats span{font-family:Arial,Helvetica,sans-serif;font-size:9px;font-weight:700;letter-spacing:0}.result-screen>p{font-family:Arial,Helvetica,sans-serif;font-size:10px;font-weight:600;line-height:1.4}.result-run-summary{font-family:Arial,Helvetica,sans-serif;font-size:8px}.result-run-summary b{font-family:var(--numbers)}.score-table td{font-size:22px}.score-table td:first-child{font-size:17px}.best-label strong{font-size:17px}.ready-screen h2{font-size:38px}.ready-screen>p{font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:700}.ready-tip{font-family:Arial,Helvetica,sans-serif;font-size:9px}.soundtrack-credit{font-size:11px;color:#654c37;line-height:1.6}.graphics-button,.sound-button{font-size:11px}
@media(max-width:700px){.score-box strong{font-size:27px}.score-box{padding:5px 7px 4px;min-width:68px}.hud{gap:8px}.journey{top:81px}.journey-label{font-size:8px}.football-counter strong{font-size:18px}.book-counter strong{font-size:12px}.stage-banner{top:116px;left:11px;right:11px;padding:10px 6px}.stage-banner strong{font-size:21px}.stage-banner>span:last-child{font-size:10px}.ready-screen h2{font-size:32px}.ready-screen>p{font-size:11px}.final-score>strong{font-size:49px}.result-stats strong{font-size:21px}.meter-heading #meter-reading{font-size:15px}.meter-heading>span{font-size:18px}.meter-instruction{font-size:9px;margin-bottom:11px}.meter-labels{font-size:7px}.toast{font-size:13px;top:125px}.graphics-button,.sound-button{font-size:10px}.best-label strong{font-size:15px}}
@media(max-width:370px){.score-box strong{font-size:22px}.score-box{padding:4px 6px;min-width:60px}.hud{gap:6px}.football-counter strong{font-size:16px}.book-counter strong{font-size:11px}.hearts{gap:3px;font-size:17px}.pause-button{width:29px;height:29px}.stage-banner strong{font-size:19px}.stage-banner>span:last-child{font-size:9px}.stage-banner{padding:9px 5px}.meter-heading #meter-reading{font-size:13px}.meter-heading>span{font-size:16px}.result-stats strong{font-size:18px}.result-stats span{font-size:8px}}
@media(max-width:700px) and (max-height:760px){.journey{top:73px}.stage-banner{top:104px}.stage-banner strong{font-size:18px}.stage-banner>span:first-child{font-size:8px}.stage-banner>span:last-child{font-size:9px}.ready-screen h2{font-size:28px}.ready-screen>p{font-size:10px}.final-score>strong{font-size:43px}.result-stats strong{font-size:18px}.result-screen>p{font-size:8px}.toast{top:114px;font-size:12px}.meter{height:27px}.meter-instruction{font-size:8px}}
@media(prefers-reduced-motion:reduce){.stage-banner{will-change:auto}}
/* Align the bridge overlay with the canvas coordinates, at every frame size. */
.play-surface{container-type:inline-size}
.bridge-screen{padding:0;background:linear-gradient(0deg,#2f291c8c,transparent 50%)}
.bridge-screen>.pill{position:absolute;top:16%;max-width:92%;font-size:clamp(7px,2.2cqw,11px);line-height:1.2;padding:clamp(5px,1.5cqw,8px) clamp(7px,2cqw,12px)}
.bridge-screen h2{position:absolute;top:21.5%;left:0;right:0;margin:0;font-size:clamp(16px,7.5cqw,42px);line-height:1.05}
.bridge-screen .mayor-quote{position:absolute;left:2.5%;bottom:54.5%;width:70%;max-width:none;margin:0;padding:clamp(4px,1.5cqw,7px) clamp(5px,1.7cqw,8px);font-family:Arial,Helvetica,sans-serif;font-size:clamp(9px,2.4cqw,12px);font-weight:700;line-height:1.25;text-align:center;isolation:isolate}
.bridge-screen .mayor-quote span{margin-top:clamp(2px,.6cqw,3px);font-family:Arial,Helvetica,sans-serif;font-size:clamp(5px,1.7cqw,8px);line-height:1.3;letter-spacing:.7px}
.bridge-screen .mayor-quote:after{left:calc(7.5cqw - 5px);bottom:-6px;width:10px;height:10px;border-width:0 2px 2px 0;box-sizing:border-box;z-index:-1}
.bridge-screen .bridge-bottom{position:absolute;left:4%;right:4%;bottom:4%;width:auto;margin:0}
.bridge-screen .bridge-bottom p{font-family:Arial,Helvetica,sans-serif;font-size:clamp(9px,2.5cqw,12px);margin-bottom:clamp(8px,2.6cqw,14px)}
@container(max-width:300px){.bridge-screen>.pill{top:14%}.bridge-screen .mayor-quote{width:82%}.bridge-screen .mayor-quote:after{bottom:-5px}}
/* A dedicated touch target adds jumping without changing lane-tap timing. */
.game-controls .control-center{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;white-space:normal}
.game-controls .jump-button{width:min(180px,100%);height:44px;min-height:44px;border:2px solid #4b3429;background:#edc25b;color:#38291f;box-shadow:2px 2px 0 #30241c66;font-family:var(--display);font-size:23px;font-weight:700;letter-spacing:.5px;line-height:1.1;padding:4px 10px;touch-action:manipulation}
.game-controls .jump-button:disabled{opacity:.65;cursor:default}
.game-controls #control-label{line-height:1.3;white-space:normal}.game-controls #control-label strong{font-size:10px;letter-spacing:.5px}.game-controls #control-label span{font-family:Arial,Helvetica,sans-serif;font-size:8px;letter-spacing:0;color:#cfb897}
@media(max-width:370px){.game-controls{gap:7px}.game-controls .jump-button{font-size:19px}.game-controls #control-label strong{font-size:9px}.game-controls #control-label span{font-size:7px}}

@media(max-width:700px) and (max-height:760px){.arcade,.embed-mode .arcade{max-width:calc((100dvh - 216px)*.75 + 14px)}}

/* Plain lettering for the time-sensitive throw control. */
.meter-panel .primary-button{font-family:Arial,Helvetica,sans-serif;font-size:18px;font-weight:800;letter-spacing:.5px;line-height:1.2}
