@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }
:root {
  --red: #c8102e;
  --navy: #0b2545;
  --cream: #fff8ee;
  --ink: #14263a;
  --gold: #f2b134;
  --muted: #4a5664;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #87c9f0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; overscroll-behavior: none; }
button, a { touch-action: manipulation; }
button { font: inherit; }
button, a { -webkit-user-select: none; user-select: none; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { color: var(--navy); background: var(--gold); }
a { text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.no-script { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; padding: 32px; background: var(--navy); color: var(--cream); text-align: center; font-size: 22px; line-height: 1.5; }
button:disabled { cursor: wait; }
.load-status { margin: 12px 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
#graphics-error { z-index: 100; }
#graphics-error p { font-size: 18px; line-height: 1.55; }
#game { position: fixed; inset: 0; }
#game canvas { display: block; width: 100%; height: 100%; touch-action: none; -webkit-user-select: none; user-select: none; }

/* Keep the score and next action above the road; reserve the bottom for thumbs. */
#hud { position: fixed; top: calc(12px + var(--safe-t)); left: calc(12px + var(--safe-l)); right: calc(96px + var(--safe-r)); height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px; z-index: 5; pointer-events: none; border-radius: 14px; background: var(--navy); color: #fff; font-variant-numeric: tabular-nums; box-shadow: 0 5px 18px #0b254526; }
.hud-left { color: #ff8ca0; font-size: 28px; font-weight: 800; white-space: nowrap; letter-spacing: 1px; }
.hud-center { color: #fff; font-size: 38px; font-weight: 900; line-height: 1; white-space: nowrap; }
.hud-center .unit { margin-left: 3px; font-size: 18px; font-weight: 700; }
.hud-right { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hud-right .label { color: #e0eaf4; font-size: 13px; line-height: 1; font-weight: 700; }
#signs { color: var(--gold); font-size: 28px; font-weight: 900; line-height: 1; }
.pause { position: fixed; top: calc(12px + var(--safe-t)); right: calc(12px + var(--safe-r)); z-index: 7; min-width: 72px; height: 72px; padding: 10px; border: 0; border-radius: 14px; background: var(--cream); color: var(--navy); font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 18px #0b254526; }
.run-hint { position: fixed; top: calc(100px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; justify-content: center; gap: 3px; width: max-content; max-width: min(calc(100vw - 32px), 460px); max-height: 100px; padding: 10px 18px; border-radius: 12px; background: var(--navy); color: #fff; text-align: center; line-height: 1.2; pointer-events: none; box-shadow: 0 4px 16px #0b25451f; }
#hint-action { font-size: 18px; font-weight: 800; }
#hint-obstacle { font-size: 20px; font-weight: 800; line-height: 1.2; white-space: pre-line; }
#hint-obstacle:empty { display: none; }
.run-hint.tutorial { padding: 6px 14px; }
.run-hint.tutorial #hint-action { font-size: 16px; line-height: 1.2; font-weight: 650; }
.run-hint.sign-wave { width: max-content; max-width: min(calc(100vw - 32px), 360px); height: auto; max-height: 125px; gap: 4px; padding: 10px 18px; border: 3px solid var(--navy); border-radius: 8px; background: var(--cream); color: var(--navy); box-shadow: 0 4px 16px #0b254533; }
.run-hint.sign-wave #hint-action { font-size: 20px; line-height: 1.1; font-weight: 900; }
.run-hint.sign-wave #hint-obstacle { color: var(--red); font-size: 18px; line-height: 1.2; font-weight: 900; }
.run-hint.urgent { background: var(--cream); color: var(--navy); box-shadow: 0 0 0 3px var(--gold), 0 4px 16px #0b25451f; }
.power-status { position: fixed; bottom: calc(var(--footer-height, 30px) + 100px); left: 50%; transform: translateX(-50%); z-index: 6; max-width: min(calc(100vw - 150px), 360px); padding: 9px 16px; border-radius: 12px; background: var(--gold); color: var(--navy); font-size: 16px; line-height: 1.2; font-weight: 900; text-align: center; pointer-events: none; }
.touch-controls { position: fixed; bottom: calc(var(--footer-height, 30px) + 12px); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); z-index: 7; display: flex; justify-content: space-between; gap: 20px; pointer-events: none; -webkit-user-select: none; user-select: none; }
.control-pair { display: flex; gap: 8px; pointer-events: none; }
.touch-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: clamp(64px, 18vw, 88px); height: 76px; padding: 5px 3px; border: 2px solid #fff; border-radius: 14px; background: var(--navy); color: #fff; font-size: 13px; line-height: 1.1; font-weight: 800; cursor: pointer; pointer-events: auto; touch-action: none; box-shadow: 0 4px 14px #0b25454d; }
.touch-btn svg { width: 30px; height: 30px; flex: none; }
.pause-mark svg { width: 44px; height: 44px; }
.touch-btn.action-btn { background: var(--red); }
#jump { background: var(--gold); color: var(--navy); border-color: var(--navy); }
.touch-btn:active, .touch-btn.pressed { transform: translateY(2px); background: var(--gold); color: var(--navy); }

/* Game feedback. */
#bubble { position: fixed; left: 50%; top: 34%; transform: translate(-50%, -50%); max-width: 80vw; padding: 12px 18px; border: 3px solid var(--navy); border-radius: 16px; background: #fff; color: var(--navy); font-size: 23px; line-height: 1.2; font-weight: 900; text-align: center; z-index: 6; pointer-events: none; }
#bubble:after { content: ""; position: absolute; left: 50%; bottom: -17px; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--navy); }
#flash { position: fixed; inset: 0; z-index: 4; background: var(--red); opacity: 0; pointer-events: none; transition: opacity .12s; }
#flash.on { opacity: .45; }
#stamp { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; pointer-events: none; }
#stamp span { display: block; border: 8px solid var(--red); border-radius: 10px; padding: 8px 20px; background: var(--cream); color: var(--red); font-size: clamp(28px, 8vw, 72px); line-height: 1.1; text-align: center; font-weight: 900; text-transform: uppercase; transform: rotate(-14deg) scale(3); opacity: 0; animation: slam .45s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes slam { to { transform: rotate(-14deg) scale(1); opacity: 1; } }

/* Start, pause, and results retain the campaign sign's cream, navy, and red. */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: calc(68px + var(--safe-t)) calc(20px + var(--safe-r)) calc(var(--footer-height, 30px) + 24px) calc(20px + var(--safe-l)); z-index: 10; background: #0b2545dc; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y pinch-zoom; scrollbar-color: var(--gold) var(--navy); scrollbar-width: thin; }
.card { flex: none; margin: auto 0; width: 100%; max-width: 540px; padding: 30px; border-radius: 16px; background: var(--cream); box-shadow: 0 16px 48px #0005; text-align: center; }
.start-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .9fr); max-width: 1060px; padding: 0; overflow: hidden; text-align: left; }
.start-scene { display: flex; flex-direction: column; min-width: 0; background: var(--navy); }
.start-card h1 { position: relative; z-index: 1; margin: 0; padding: 28px 32px 24px; color: var(--cream); font-size: clamp(64px, 7.7vw, 96px); line-height: .94; text-align: left; }
.start-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 30px; }
.start-panel .premise { margin: 0 0 20px; max-width: 34ch; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.start-panel .personal-best { justify-content: space-between; margin: 0 0 12px; }
.start-panel .controls { margin: 18px 0 4px; font-size: 16px; line-height: 1.5; }
.start-panel .hint { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.start-panel .sign-badge { align-self: flex-start; margin-top: 24px; }
h1, h2, h3, h4 { text-wrap: balance; }
h1, .hud-center, #signs, .stat .num, #play { font-family: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 800; }
h1 { margin: 0; color: var(--navy); font-size: clamp(48px, 7vw, 68px); font-weight: 800; letter-spacing: -.025em; line-height: .98; text-transform: uppercase; }
h2 { margin: 0 0 22px; color: var(--navy); font-size: clamp(25px, 5vw, 32px); font-weight: 900; letter-spacing: -.025em; line-height: 1.15; }
h3 { margin: 24px 0 12px; color: var(--navy); font-size: 17px; font-weight: 800; line-height: 1.2; }
.premise { margin: 18px auto 20px; max-width: 40ch; color: var(--ink); font-size: 18px; line-height: 1.45; }
.start-art { position: relative; flex: 1; min-height: 350px; width: 100%; overflow: hidden; isolation: isolate; background: #a7d5e8 url("assets/art/backdrop.webp") center 65% / cover no-repeat; }
.start-runner { position: absolute; bottom: 0; aspect-ratio: 1; background-repeat: no-repeat; background-size: 200% 200%; background-position: 0 0; }
.start-trump { z-index: 1; height: 80%; right: -3%; bottom: 4%; background-image: url("assets/art/trump.webp"); }
.start-eric { z-index: 2; height: 96%; left: -2%; bottom: 0; background-image: url("assets/art/eric.webp"); }
.sign-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; max-width: 100%; padding: 10px 14px; border: 2px solid var(--navy); border-radius: 6px; background: #fff; text-align: center; }
.badge-l1, .badge-l3 { color: var(--navy); font-family: "Barlow Condensed", sans-serif; font-size: 24px; line-height: 1.05; font-weight: 800; }
.badge-l2 { color: var(--muted); font-size: 12px; line-height: 1.3; font-weight: 800; }
.badge-l3 { color: var(--red); }
.controls { margin: 24px auto 16px; max-width: 42ch; color: var(--navy); font-size: 16px; line-height: 1.5; font-weight: 650; }
.hint { margin: 18px auto 0; max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.5; }
.personal-best { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.personal-best strong { color: var(--navy); font-size: 17px; font-variant-numeric: tabular-nums; }
.pause-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--navy); color: var(--cream); }
.pause-card .premise { margin-bottom: 18px; }
.pause-card .controls { margin: 0 0 22px; padding: 14px 0; border-top: 1px solid #d8d3c9; border-bottom: 1px solid #d8d3c9; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; justify-content: center; appearance: none; min-height: 56px; padding: 15px 18px; border: 0; border-radius: 12px; font-size: 18px; line-height: 1.2; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn.primary { width: 100%; background: var(--red); color: #fff; box-shadow: 0 5px 14px #c8102e24; }
#play { min-height: 68px; gap: 12px; font-size: 30px; font-weight: 800; }
#play::before { content: ""; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid currentColor; }
.btn.donate { width: 100%; background: var(--navy); color: #fff; }
.btn.ghost { width: 100%; margin-top: 12px; border: 2px solid var(--navy); background: transparent; color: var(--navy); }
.btn:not(:disabled):not([aria-disabled="true"]):active { transform: translateY(2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 1; background: #e7e0d5; color: var(--muted); box-shadow: none; cursor: wait; }
#play:disabled::before { display: none; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.actions:has(.donate.hidden) { grid-template-columns: 1fr; }
.share-status { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Receipts are readable rows, with room for bilingual labels. */
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 22px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid #d8d3c9; }
.stat { flex: 1; min-width: 0; }
.stat .num { display: block; color: var(--navy); font-size: 48px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .lbl { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.3; }
.hits { list-style: none; margin: 0; padding: 0; text-align: left; }
.hits li { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 13px 0; border-bottom: 1px solid #d8d3c9; color: var(--navy); font-size: 16px; line-height: 1.3; font-weight: 700; cursor: pointer; }
.hits li .count { flex: none; padding: 3px 7px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 13px; }
.hits li .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hits li.empty { color: var(--muted); font-weight: 500; cursor: default; }
.hits li .go { margin-left: auto; color: var(--red); font-size: 14px; line-height: 1.3; font-weight: 700; text-align: right; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: calc(20px + var(--safe-t)) calc(20px + var(--safe-r)) calc(20px + var(--safe-b)) calc(20px + var(--safe-l)); background: #061529cf; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; scrollbar-color: var(--gold) var(--navy); }
.modal-card { position: relative; flex: none; width: 100%; max-width: 540px; margin: auto 0; padding: 30px; border-radius: 16px; background: var(--cream); text-align: left; box-shadow: 0 16px 48px #0005; }
.modal-card h4 { margin: 0 34px 18px 0; color: var(--navy); font-size: 25px; line-height: 1.15; font-weight: 900; }
.modal-card p { margin: 0 0 18px; color: var(--ink); font-size: 18px; line-height: 1.55; }
.modal-card .src { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.modal-card .src a { color: var(--red); overflow-wrap: anywhere; }
.close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #e8e3db; color: var(--navy); font-size: 30px; line-height: 1; cursor: pointer; }

/* Read every sign at your own pace, including the sources behind each obstacle. */
#guide { z-index: 60; padding-top: var(--safe-t); scroll-padding-top: 150px; }
#receipt { z-index: 70; }
.guide-card { max-width: 740px; }
.guide-header { position: sticky; top: 0; z-index: 1; background: var(--cream); padding-top: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 3px solid var(--navy); }
.guide-header h2 { margin: 0; font-size: clamp(26px, 5vw, 34px); line-height: 1.1; text-align: left; }
#guide-close { flex: none; min-height: 44px; max-width: 120px; padding: 10px 12px; border: 2px solid var(--navy); border-radius: 10px; background: var(--cream); color: var(--navy); font-size: 16px; line-height: 1.2; font-weight: 800; cursor: pointer; }
.guide-section { margin-top: 30px; }
.guide-section h3 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; text-align: left; }
.guide-sign { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 440px; margin: 0 auto 18px; padding: 20px 16px; border: 3px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy); text-align: center; font-size: clamp(22px, 5vw, 30px); line-height: 1.2; font-weight: 900; }
.guide-card .guide-sign > * { display: block; margin: 0; font: inherit; }
.guide-card .guide-sign > :nth-child(2) { font-size: 18px; font-weight: 800; }
.guide-card .guide-sign > :last-child { color: var(--red); }
.guide-item { margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid #c2c7cc; border-radius: 0; background: transparent; overflow-wrap: anywhere; }
.guide-card .guide-name { display: block; margin: 0 0 10px; color: var(--navy); font-size: 23px; line-height: 1.25; font-weight: 800; }
.guide-card .guide-action { display: inline-block; margin: 0 0 12px; padding: 7px 10px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 16px; line-height: 1.3; font-weight: 800; }
.modal-card .guide-copy { margin: 0 0 14px; color: var(--ink); font-size: 18px; line-height: 1.55; }
.modal-card .guide-copy:last-child { margin-bottom: 0; }
.guide-source { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 2px solid var(--red); border-radius: 8px; background: #fff; color: var(--red); font-size: 16px; line-height: 1.25; font-weight: 800; cursor: pointer; }
@media (max-width: 360px) {
  .guide-header { flex-direction: column; gap: 14px; }
  #guide-close { max-width: none; }
  .guide-item { padding: 16px 14px; }
}

/* Persistent utilities stay outside the card and clear the thumb controls. */
.lang { position: fixed; top: calc(12px + var(--safe-t)); right: calc(12px + var(--safe-r)); z-index: 40; min-width: 48px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--cream); color: var(--navy); font-size: 15px; font-weight: 800; cursor: pointer; }
.playing .lang { top: auto; bottom: calc(var(--footer-height, 30px) + 100px); }
footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 7px 12px calc(7px + var(--safe-b)); background: var(--navy); color: #fff; font-size: 12px; line-height: 1.4; text-align: center; }
footer:empty { display: none; }
@media (hover: hover) {
  .btn.primary:not(:disabled):not([aria-disabled="true"]):hover, .touch-btn.action-btn:hover { background: #a40e26; }
  .btn.donate:hover, .touch-btn:not(.action-btn):hover { background: #163c68; }
  .btn.ghost:not(:disabled):not([aria-disabled="true"]):hover, .pause:hover, .lang:hover, .close:hover { background: #eadfce; }
  .hits li:not(.empty):hover { color: var(--red); background: #f4ecdf; }
}
@media (min-width: 700px) {
  #hud { max-width: 470px; }
  .touch-controls { left: max(24px, calc(50% - 350px)); right: max(24px, calc(50% - 350px)); }
}
@media (max-width: 480px) {
  .screen { padding-left: calc(14px + var(--safe-l)); padding-right: calc(14px + var(--safe-r)); }
  .card { padding: 24px 20px; }
  #hud { gap: 8px; padding: 10px 12px; }
  .hud-left { font-size: 25px; letter-spacing: 0; }
  .hud-center { font-size: 42px; }
  .hud-center .unit { font-size: 15px; }
  .hud-right .label { font-size: 12px; }
  #signs { font-size: 26px; }
  .premise { font-size: 17px; margin-top: 16px; }
  .modal-card { padding: 26px 20px; }
}
@media (max-width: 360px) {
  #hud { right: calc(82px + var(--safe-r)); padding: 10px; gap: 5px; }
  .pause { min-width: 60px; padding: 8px; font-size: 14px; }
  .hud-left { font-size: 22px; }
  .hud-center { font-size: 36px; }
  .hud-center .unit { font-size: 13px; }
  .hud-right .label { font-size: 11px; }
  #signs { font-size: 24px; }
  .touch-controls { left: 8px; right: 8px; gap: 10px; }
  .control-pair { gap: 6px; }
  .touch-btn { width: 64px; font-size: 12px; }
  .card { padding: 22px 16px; }
  .stat .num { font-size: 31px; }
  .stat .lbl { font-size: 12px; }
}
@media (max-height: 600px) {
  .touch-btn { height: 64px; }
  .playing .lang { bottom: calc(var(--footer-height, 30px) + 88px); }
  .power-status { bottom: calc(var(--footer-height, 30px) + 88px); }
}
@media (max-height: 480px) and (min-width: 600px) {
  #hud { height: 58px; max-width: 360px; }
  .pause { height: 58px; }
  .hud-center { font-size: 32px; }
  .hud-left { font-size: 26px; }
  .run-hint { top: calc(82px + var(--safe-t)); padding: 7px 14px; }
  #hint-action { font-size: 16px; }
  #hint-obstacle { font-size: 18px; }
  .touch-controls { left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); }
  .touch-btn { width: 72px; height: 58px; }
  .playing .lang { bottom: calc(var(--footer-height, 30px) + 82px); }
  .power-status { bottom: calc(var(--footer-height, 30px) + 82px); }
  #bubble { top: 42%; font-size: 19px; }
  .screen { padding-top: 18px; }
  .start-card { max-width: 900px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.guide-item:has(.guide-preview) { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.guide-preview { grid-column: 1; grid-row: 1 / 4; display: block; width: 120px; height: 100px; object-fit: contain; background: #eee8dc; border-radius: 12px; }
.guide-item:has(.guide-preview) > :not(.guide-preview) { grid-column: 2; }
.guide-item .guide-source { justify-self: start; }
@media (max-width: 480px) { .guide-item:has(.guide-preview) { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; } .guide-preview { width: 84px; height: 90px; } }



/* The illustrated chase stays connected to the controls, across screen sizes. */
.results #over-headline { font-family: "Barlow Condensed", sans-serif; font-size: clamp(32px, 5vw, 42px); line-height: 1.08; font-weight: 800; }
.results h3 { text-align: left; }
.pause-card h2 { font-family: "Barlow Condensed", sans-serif; font-size: 42px; line-height: 1.05; font-weight: 800; }
#receipt .modal-card { padding-top: 34px; }
#receipt-title { padding-right: 14px; }
@media (hover: hover) {
  #jump:hover { background: #ffd06b; color: var(--navy); }
  .guide-source:hover { background: var(--red); color: #fff; }
}
@media (max-width: 759px) {
  .start-card { display: block; max-width: 520px; padding: 0; }
  .start-card h1 { padding: 18px 22px 16px; font-size: clamp(42px, 10.5vw, 64px); text-align: center; }
  .start-art { flex: none; min-height: 0; height: clamp(130px, 38vw, 174px); background-position: center 62%; }
  .start-trump { right: 10%; bottom: 0; }
  .start-eric { left: 13%; bottom: 0; }
  .start-panel { padding: 22px; }
  .start-panel .premise { margin-bottom: 16px; font-size: 17px; line-height: 1.45; }
  .start-panel .sign-badge { align-self: center; margin-top: 20px; }
  .start-panel .controls { margin-top: 14px; }
  .start-panel .hint { font-size: 14px; }
}
@media (max-width: 360px) {
  .start-panel { padding: 18px; }
  .start-card h1 { padding: 16px 12px; font-size: 42px; }
  .start-art { height: 110px; }
  .start-panel .premise { font-size: 16px; }
  #play { min-height: 62px; font-size: 28px; }
  .personal-best { font-size: 13px; }
  .hits li { gap: 7px; font-size: 15px; }
  .hits li .go { font-size: 13px; }
}
@media (max-height: 650px) and (max-width: 599px) {
  #start { padding-top: calc(60px + var(--safe-t)); }
  .start-card h1 { padding: 14px 12px; }
  .start-art { height: 84px; }
  .start-trump { right: 16%; }
  .start-eric { left: 20%; }
  .start-panel { padding-top: 16px; }
  .start-panel .premise { margin-bottom: 12px; }
}
@media (max-height: 480px) and (min-width: 760px) {
  .start-card { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
  .start-card h1 { padding: 24px; font-size: 64px; }
  .start-art { min-height: 240px; }
  .start-panel { padding: 24px; }
}

/* Short screens keep the pause instructions and Resume button within easy reach. */
@media (max-height: 650px) {
  .pause-card { padding-top: 22px; padding-bottom: 22px; }
  .pause-card .pause-mark { display: none; }
  .pause-card h2 { margin-bottom: 12px; font-size: 36px; }
  .pause-card .premise { margin-top: 0; margin-bottom: 14px; font-size: 16px; }
  .pause-card .controls { margin-bottom: 18px; padding: 12px 0; }
}
