:root{color-scheme:light;--ink:#272a25;--paper:#faf5e9;--red:#be4937;--green:#42775e;--line:#d8cbb5;--muted:#706451;--gold:#aa761e;--radius:20px}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:wait;opacity:.48}
a{color:var(--green)}
button:focus-visible,a:focus-visible,canvas:focus-visible,summary:focus-visible{outline:3px solid #247382;outline-offset:4px}
[hidden]{display:none!important}
.shell{max-width:1160px;margin:auto;padding:24px 28px 32px}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:18px;min-width:0}
.cross{color:#805b37;flex:0 0 32px;line-height:0;transform:rotate(-7deg)}.cross svg{width:32px;height:42px}
.brand-name{min-width:0;flex:1}.brand h1{font-size:clamp(16px,2.3vw,25px);letter-spacing:-.025em;line-height:1.05;margin:0;font-weight:950}.brand em{font-style:normal;color:var(--red)}.brand p{font-size:10px;letter-spacing:.14em;font-weight:700;margin:6px 0 0;color:var(--muted)}
.brand-tools{display:flex;align-items:center;gap:8px}.icon-button{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex-shrink:0;min-width:44px;min-height:44px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fffaf0;color:var(--ink);font-size:20px;line-height:1.1}.icon-button small{font-size:7px;font-weight:850;letter-spacing:.03em}.icon-button:hover{border-color:#8d8068;background:#f0e5cf}.icon-button:disabled{opacity:.4;cursor:default}#pause:disabled{display:none}
.journey-bar{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:5px 16px;width:100%;padding:12px 16px;margin:0 0 18px;background:#efe6d0;color:#66512e;border:1px solid #d3bf91;border-radius:14px;text-align:left;font-size:12px;font-weight:800}.journey-bar:hover{background:#e7dcc2;border-color:#a28a54}.journey-bar small{grid-row:2;grid-column:1/3;font-size:10px;font-weight:650;color:#71603f;overflow-wrap:anywhere}.journey-open{grid-column:3;grid-row:1/3;font-size:10px;letter-spacing:.05em}#journey-titles{white-space:nowrap}
.hud{display:grid;grid-template-columns:1fr .75fr 1fr;gap:12px;margin-bottom:12px;align-items:center}.small-label{display:block;font-size:10px;letter-spacing:.12em;font-weight:850;color:var(--muted)}.hud strong{display:block;font-size:26px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.045em}.hud small{font-size:11px;font-weight:550;letter-spacing:0;color:var(--muted)}.lives{text-align:center}.lives strong{color:var(--red);font-size:24px;letter-spacing:3px}.score-hud{text-align:right}.score-hud strong>span:first-child{color:var(--gold)}
.progress{position:relative;height:5px;border-radius:20px;background:#e5dac6;overflow:hidden;margin-bottom:14px}.progress>div{height:100%;width:0;background:var(--green);transition:width .1s linear}#pacer-marker{position:absolute;inset-block:0;width:5px;transform:translateX(-50%);background:#b6781d;box-shadow:0 0 0 1px #fff9e8;pointer-events:none}
.stage{position:relative;height:min(65svh,560px);min-height:260px;border:2px solid #453f32;border-radius:var(--radius);overflow:hidden;background:#deebe4;isolation:isolate}canvas{display:block;width:100%;height:100%;touch-action:none;-webkit-tap-highlight-color:transparent;cursor:pointer}#game{position:absolute;inset:0}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(250,245,233,.94);overflow:auto}.eyebrow,.section-kicker{font-size:10px;font-weight:850;letter-spacing:.13em;color:var(--muted);margin:0 0 10px}.primary,.secondary{font:inherit;cursor:pointer;display:block;width:100%;text-align:center;text-decoration:none;border-radius:12px;min-height:44px;border:0;font-weight:850}.primary{padding:14px 18px;background:var(--red);color:#fffaf0;box-shadow:0 4px 0 #843626}.primary:hover{background:#a73a2c}.primary small,.secondary small{display:block;font-size:11px;font-weight:600;margin-top:3px}.secondary{padding:12px 14px;background:#efe7d7;color:var(--ink);border:1px solid var(--line)}.secondary:hover{background:#e8ddc7}.text-button{font:inherit;min-height:44px;color:var(--green);border:0;padding:8px 4px;background:none;text-decoration:none;font-weight:800;cursor:pointer}.text-button:hover{text-decoration:underline}.text-button small{display:block;font-size:10px;font-weight:600;margin-top:3px}
/* The entrance is a small marathon poster, with the choices beside the art. */
body:not(.preview)[data-phase=ready] .stage{height:auto;min-height:0}
body:not(.preview)[data-phase=ready] .hud,body:not(.preview)[data-phase=ready] .progress,body:not(.preview)[data-phase=ready] .bottom,body:not(.preview)[data-phase=ready] .controls,body:not(.preview)[data-phase=ready] .feel-controls{display:none}
#intro{position:relative;inset:auto;display:block;padding:0;background:var(--paper);overflow:visible}
.intro-card{display:grid;grid-template-columns:1.06fr 1fr;max-width:none;width:100%;text-align:left}
.intro-poster{position:relative;overflow:hidden;padding:32px;background:#e9e4ce;background-image:radial-gradient(circle at 88% 10%,#fff7e0 0 15%,transparent 15.2%),repeating-linear-gradient(120deg,transparent 0 42px,#d3cba92a 42px 43px)}
.intro-poster:after{content:"";position:absolute;left:0;right:0;bottom:0;height:9px;background:repeating-linear-gradient(90deg,var(--green) 0 24px,transparent 24px 48px)}
.race-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}.race-name{display:block;font-size:clamp(24px,3.3vw,38px);font-weight:950;letter-spacing:-.045em;line-height:1}.race-year{display:block;font-size:clamp(42px,5.8vw,66px);font-weight:950;line-height:.95;color:var(--red);letter-spacing:-.065em;transform:rotate(-5deg)}
.poster-art{position:relative;height:272px;margin-top:22px}.poster-art:before{content:"";position:absolute;width:230px;height:230px;border:1px dashed #8a9574;border-radius:50%;right:-10px;top:14px}.poster-manifesto{position:relative;z-index:1;margin:0;top:16px;font-size:clamp(38px,5.2vw,59px);font-weight:950;letter-spacing:-.065em;line-height:.96;color:#3d5140;pointer-events:none}.poster-manifesto span{color:var(--red)}.poster-manifesto em{font-family:Georgia,serif;font-weight:750;color:#3f6550}
.intro-runner{position:absolute;right:-34px;bottom:-12px;width:290px;height:290px;object-fit:contain;transform:rotate(2deg);filter:drop-shadow(0 10px 0 #434c2e12)}
.distance-stamp{position:absolute;left:5px;bottom:12px;display:grid;place-content:center;width:98px;height:98px;border:2px solid #5a7051;border-radius:50%;color:#465b40;transform:rotate(-12deg);text-align:center;background:#e9e4ce}.distance-stamp b{font-size:23px;letter-spacing:-.06em}.distance-stamp small{font-size:7px;font-weight:850;letter-spacing:.06em}
.poster-caption{position:relative;margin:18px 0 4px;font:italic 19px Georgia,serif;color:#4d5d42}.poster-caption span{display:block;font:600 11px system-ui;margin-top:5px}
.intro-actions{padding:36px;display:flex;flex-direction:column;justify-content:center;min-width:0}.intro-actions .section-kicker{color:var(--red)}.intro-actions h3{font-size:clamp(30px,4vw,45px);letter-spacing:-.055em;line-height:1;margin:0 0 24px;font-weight:950}.intro-actions h3 small{display:block;font-size:12px;line-height:1.5;letter-spacing:0;font-weight:600;margin-top:10px;color:var(--muted)}
.intro-audio{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:-8px 0 18px}.intro-audio button{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#f4eddd;color:#62553f;font-size:10px;font-weight:850;letter-spacing:.04em}.intro-audio button[aria-pressed=true]{background:#e0e9d7;border-color:#84a180;color:#356147}.intro-audio small{font-size:10px;color:var(--muted)}
.howto{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}.howto>span{display:grid;grid-template-columns:30px 1fr;column-gap:7px;align-items:center}.howto i{grid-row:1/3;font-size:30px;font-style:normal;color:var(--green);line-height:1}.howto b{font-size:12px}.howto small{font-size:9px;font-weight:650;color:var(--muted);white-space:nowrap}
.run-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-height:66px}.run-choice b{display:block;font-size:15px;letter-spacing:.025em}.run-choice small{font-size:11px}.choice-duration{display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:10px}.choice-duration>span{font-size:24px}.finish-note{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.05em;color:#705624;margin:10px 4px 18px}.finish-note b{font-size:15px;letter-spacing:0}#start-quick{background:#fffaf0}.intro-explore{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);margin-top:24px;padding-top:12px}.intro-explore .text-button{font-size:9px;text-align:left;color:var(--muted)}.intro-explore small{font-size:9px}.intro-tagline{font-size:8px;letter-spacing:.06em;color:var(--muted);margin:15px 0 0}.intro-tagline small{display:block;letter-spacing:0;font-size:9px;margin-top:4px}#loading{font-size:11px;text-align:center;color:var(--green);margin:12px 0 0}
.pause-card{text-align:center;max-width:390px;width:100%;padding:24px}.pause-card h2{font-size:48px;letter-spacing:-.05em;margin:0}.pause-card>p:not(.eyebrow){font-size:12px;margin:12px 0 24px;color:var(--muted)}
/* A result is a full page, so score and support never sit in a tiny scroll box. */
body:has(#result:not([hidden])) .stage{height:auto;min-height:0}
#result{position:relative;inset:auto;display:block;padding:28px;background:var(--paper);overflow:visible}
.result-card{width:100%;max-width:none;text-align:center}.result-heading{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.result-heading h2{font-size:clamp(46px,7vw,78px);font-weight:950;letter-spacing:-.06em;line-height:1;margin:0;color:var(--green)}#result-distance{font-size:11px;color:var(--muted);margin:8px 0 0}#result-sample{font-size:10px;font-weight:800;color:var(--red)}
.result-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:30px}.result-summary{min-width:0}.result-next{min-width:0;text-align:left;padding:24px;background:#e9e8d8;border:1px solid #d0d4bc;border-radius:16px;align-self:start}.result-next h3{font-size:clamp(32px,4vw,46px);font-weight:950;line-height:.95;letter-spacing:-.05em;margin:0 0 18px}.result-next h3 em{font-family:Georgia,serif;color:var(--green)}.support-intro{font-size:13px;margin:0 0 18px;color:#535d49}.support-intro span{display:block;font-size:11px;margin-top:4px}
#result-audience{height:86px;margin:0 0 12px;cursor:default;touch-action:auto}#result-score{display:block;font-size:clamp(53px,8vw,87px);line-height:1.05;font-weight:950;letter-spacing:-.065em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.finish-award{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f1e1b3;border:1px solid #d9b86d;border-radius:10px;padding:12px;margin:16px 0 10px;color:#74511c;font-size:11px;font-weight:800}.finish-award b{font-size:25px;letter-spacing:-.025em;white-space:nowrap}
.score-breakdown{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:var(--muted);margin:10px 0 16px}.score-breakdown b{font-size:12px}.result-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}.result-stats span{display:block}.result-stats small{display:block;font-size:8px;font-weight:800;color:var(--muted);letter-spacing:.07em}.result-stats b{display:block;font-size:23px;font-variant-numeric:tabular-nums;letter-spacing:-.03em;margin-top:3px}#result-bonus{font-size:10px;color:var(--green);margin:12px 0}
.earned-titles{margin:20px 0 12px}.earned-titles .section-kicker{font-size:9px}#title-main{width:100%;padding:12px;background:#f3e6c6;border:1px solid #cfad68;border-radius:12px;color:#6e4b23}#title-main strong{display:block;font-size:18px;line-height:1.2}#title-main small{font-size:11px}#title-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}.title-badge{min-height:36px;font-size:10px;font-weight:800;border:1px solid #9bb091;background:#e5eddd;color:#3c6447;border-radius:8px;padding:8px}.title-total{font-size:10px;color:var(--muted);margin:10px 0}.title-total b{color:#74511c;font-size:15px;margin-left:6px}.collection-link{width:100%;font-size:11px}.collection-link small{display:inline;margin-left:6px}
.support-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.support-links .support{display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:14px;min-height:72px;padding:12px 7px}.support-links .support small{font-size:9px;letter-spacing:.03em;margin:0}.support-en{background:var(--green);box-shadow:0 4px 0 #2b543e}.support-en:hover{background:#34634c}.support-instagram{grid-column:1/-1;background:#f7f3e7;color:#62506c;border:1px solid #b6a7ba;box-shadow:none}.support-instagram:hover{background:#ebe0e9}.support-links .support-instagram{flex-direction:row;align-items:center;gap:12px;min-height:48px;font-size:12px}
.screenshot-hint{margin:22px 0 9px;font-size:9px;font-weight:850;letter-spacing:.05em;color:var(--muted)}.screenshot-hint span{display:block;font-size:10px;font-weight:550;letter-spacing:0;margin-top:4px}.result-share{display:grid;grid-template-columns:1fr 1fr;gap:8px}.result-share .secondary{font-size:10px;padding:10px 5px;background:#f8f4e9}.run-again{margin-top:18px;background:var(--ink);border-color:var(--ink);color:var(--paper);font-size:13px}.run-again:hover{background:#41473a}.save-note{font-size:10px;line-height:1.6;color:var(--muted);text-align:center;margin:12px 0}#share-status:empty{display:none}
.result-journey{padding:12px;margin:14px 0 0;background:#eee4cc;border:1px solid #d3bc8c;border-radius:10px;display:grid;grid-template-columns:1fr auto;text-align:left;gap:5px;font-size:10px}.result-journey strong{font-size:12px}.result-journey>span{text-align:right;font-variant-numeric:tabular-nums}.result-journey>small,.result-journey>b,.result-journey>button{grid-column:1/-1}.result-journey>b{color:var(--green)}.result-journey>small{font-size:9px}.result-journey>button{font-size:10px;text-align:left}
.bottom{display:flex;align-items:center;gap:20px;margin:14px 0 10px}.energy{flex:1;min-width:0}.energy-label{display:flex;justify-content:space-between;gap:8px;font-size:10px;font-weight:850;color:var(--muted);margin-bottom:6px}.energy-track{height:10px;border:1px solid #b8a889;background:#eee2cc;border-radius:9px;overflow:hidden}.energy-track>div{height:100%;width:100%;background:var(--green);transition:width .08s linear}.inventory{display:flex;gap:18px;align-items:center;font-size:21px}.inventory b{font-size:15px;min-width:14px;display:inline-block}.inventory .carrying{color:#b57725}
.move-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}.move-guide>div{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:#f1e8d7;min-height:50px;transition:background .15s,border-color .15s}.move-guide>div>span{grid-row:1/3;font-size:10px;font-weight:850;color:#716148}.move-guide span small{display:block;font-size:8px;font-weight:650}.move-guide strong{font-size:12px;line-height:1.25;color:#514b3d}.move-guide>div>small{font-size:9px;color:#716148}.move-guide .opportunity{background:#e1ecda;border-color:#87a778}.move-guide .opportunity strong{color:#2e6046}.move-guide.busy{opacity:.6}body:not(.in-run) .move-guide,.preview .move-guide{display:none}
.controls{font-size:9px;text-align:center;letter-spacing:.02em;color:var(--muted);margin:8px 0}.controls span{margin:0 12px}.feel-controls{display:flex;justify-content:center;gap:10px;margin:12px 0}.feel-controls button{min-height:36px;padding:7px 14px;border:1px solid var(--line);border-radius:999px;background:#f4eddd;color:#62553f;font-size:10px;font-weight:850;letter-spacing:.04em}.feel-controls button[aria-pressed=true]{background:#e0e9d7;border-color:#84a180;color:#356147}
/* A compact play layout gives the field the remaining viewport height. */
body.in-run:not(.preview) .shell{height:100svh;min-height:460px;display:grid;grid-template-rows:auto auto auto minmax(160px,1fr) auto auto auto;gap:9px;padding:14px 24px}
body.in-run:not(.preview) .brand,body.in-run:not(.preview) .hud,body.in-run:not(.preview) .progress,body.in-run:not(.preview) .bottom,body.in-run:not(.preview) .move-guide,body.in-run:not(.preview) .feel-controls{margin:0}
body.in-run:not(.preview) .stage{height:auto;min-height:0}body.in-run .journey-bar,body.in-run .controls,body.in-run .site-footer{display:none}
body:has(#result:not([hidden])) .hud,body:has(#result:not([hidden])) .progress,body:has(#result:not([hidden])) .bottom,body:has(#result:not([hidden])) .controls,body:has(#result:not([hidden])) .feel-controls{display:none}
.site-footer{max-width:720px;margin:34px auto 0;text-align:center;color:var(--muted);font-size:12px;line-height:1.7;padding:22px 20px 0;border-top:1px solid var(--line)}.site-footer>p:first-child{font-size:clamp(21px,4vw,30px);font-weight:950;letter-spacing:-.04em;color:var(--ink);margin:0 0 12px}.site-footer nav{display:flex;justify-content:center;gap:12px 24px;flex-wrap:wrap;margin:14px 0}.site-footer a{font-size:12px;font-weight:800;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:4px}.footer-note{font-size:10px}.preview .site-footer{display:none}
/* Help and collectible title cards. Native dialogs retain focus and Escape. */
dialog{color:var(--ink);background:var(--paper);border:2px solid #5c5746;border-radius:20px;padding:24px;max-height:calc(100svh - 32px);overflow:auto;width:min(820px,calc(100vw - 32px));overscroll-behavior:contain}dialog::backdrop{background:#20281bd1;backdrop-filter:blur(4px)}dialog>header{display:flex;align-items:center;gap:12px;position:sticky;top:-24px;z-index:3;background:var(--paper);margin:-24px -24px 22px;padding:18px 24px;border-bottom:1px solid var(--line)}dialog>header h2{font-size:20px;letter-spacing:-.03em;margin:0;flex:1}dialog>header>.icon-button{margin-left:auto}dialog>header .eyebrow{font-size:8px;margin-bottom:4px}dialog h2 small{font-size:11px;font-weight:600;color:var(--muted);display:inline-block;margin-left:8px}.title-guide-note{font-size:11px;line-height:1.65;color:var(--muted)}#collection-back{font-size:10px;white-space:nowrap;padding:7px}
#howto-dialog{width:min(680px,calc(100vw - 32px))}.help-lead{font:italic 26px Georgia,serif;color:var(--green);margin:0 0 22px}.help-lead span{display:block;font:550 12px system-ui;color:var(--muted);margin-top:7px}.help-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.help-controls article{padding:18px;background:#e5ebd8;border:1px solid #aaba96;border-radius:12px}.help-controls article>b{display:block;font-size:37px;line-height:1;color:var(--green)}.help-controls h3{font-size:18px;letter-spacing:.02em;margin:10px 0}.help-controls h3 small{font-size:10px;font-weight:600}.help-controls p,.help-rules p{font-size:12px;margin:5px 0;color:#565e4b}.help-controls p span,.help-rules p span{display:block;font-size:11px;margin-top:5px}.help-rules{list-style:none;margin:0;padding:0}.help-rules li{display:flex;align-items:flex-start;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}.help-rules li>span{font-size:26px;line-height:1.25;flex:0 0 32px}.help-rules strong{font-size:12px;letter-spacing:.03em}.help-keyboard{font-size:10px;color:var(--muted);text-align:center;margin:20px 0}#help-done{max-width:340px;margin:0 auto}
.profile-card{padding:24px;background:#eee1c0;border:1px solid #ccb279;border-radius:14px;text-align:center}.profile-card h3{margin:5px 0;font-size:clamp(25px,4vw,36px);letter-spacing:-.045em;line-height:1.15}.profile-card>p:not(.eyebrow){margin:7px 0;font-size:12px;color:#705b37}.profile-numbers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.profile-numbers b{display:block;font-size:clamp(26px,5vw,42px);font-variant-numeric:tabular-nums;letter-spacing:-.05em;line-height:1.2;overflow-wrap:anywhere}.profile-numbers small{display:block;font-size:10px;margin-top:5px;color:#705b37}.collection-track{display:block;overflow:hidden;height:7px;background:#ded1b8;border-radius:10px}.collection-track>span{display:block;height:100%;background:var(--title-color,#937438);border-radius:inherit;transition:width .4s}.profile-counts{font-size:11px}#rank-next{line-height:1.6}#collection-target{margin:16px 0}.goal-card{width:100%;min-height:52px;font:750 12px system-ui;background:#e1ebd7;border:1px solid #9aaf8a;border-radius:10px;color:#356147;padding:14px;cursor:pointer}
.personal-bests{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.personal-bests>div{display:flex;flex-direction:column;gap:10px;background:#fffaf0;border:1px solid var(--line);border-radius:12px;padding:16px}.personal-bests strong{font-size:11px;color:#6b5940}.personal-bests span{font-size:10px;display:flex;justify-content:space-between;gap:8px}.personal-bests b{font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:30px}.collection-heading h3{font-size:14px;margin:0}.collection-heading>div{display:flex;gap:6px}.collection-heading button{font-size:10px;padding:10px;border-radius:8px}.collection-heading button[aria-pressed=true]{background:#e0e9d7;color:#356147}
#title-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-title{font:inherit;text-align:left;display:flex;align-items:flex-start;gap:12px;min-width:0;padding:16px;border:1px solid #cdbd9f;border-radius:12px;background:#eee6d6}.catalog-title:hover{border-color:var(--title-color);background:#f7ecda;transform:translateY(-2px)}.catalog-body{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.catalog-title .collection-seal{font-size:28px;line-height:1.3;flex:0 0 30px}.catalog-title strong{font-size:14px;color:var(--title-color);overflow-wrap:anywhere}.catalog-title span{font-size:11px;font-weight:650}.catalog-title small{font-size:10px;line-height:1.55;color:var(--muted)}.catalog-title .catalog-status{font-size:8px;letter-spacing:.05em}.catalog-title .collection-track{margin-top:5px;width:100%;height:4px}.title-reward{font-size:13px;color:#705a2f}.catalog-title.earned{background:#e5eddc;border-color:#9db58b}.catalog-title.locked{background:#eee8dc}.catalog-title.locked .collection-seal{opacity:.6}.complete-banner{background:#efd27f;border:1px solid #c79b35;border-radius:10px;padding:14px;text-align:center;font-weight:800;font-size:12px}.sample-note{font-size:10px;background:#f3ddb5;color:#74551b;border-radius:7px;padding:8px;text-align:center}
.history-panel{margin-top:22px;font-size:11px}.history-panel summary{font-weight:800;padding:14px 7px;min-height:44px;cursor:pointer}#run-history{list-style:none;padding:0;margin:4px 0}#run-history li{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 7px;border-bottom:1px solid var(--line)}#run-history small{font-size:10px;color:var(--muted)}
.title-screen{text-align:center;max-width:620px;margin:auto}.title-screen>.eyebrow{color:var(--title-color);margin:7px 0 14px}.title-screen h3{margin:18px 0 4px;color:var(--title-color);font-size:clamp(27px,5vw,42px);font-weight:950;line-height:1.05;letter-spacing:-.045em;overflow-wrap:anywhere}.title-name-ja{font-size:15px;font-weight:750;margin:8px 0 18px}.title-screen .title-story{font:italic 22px Georgia,serif;margin:13px 0;color:var(--title-color)}.title-story-ja{font-size:12px;color:var(--muted);margin:5px 0 18px}#title-art{width:100%;height:auto;aspect-ratio:600/320;border:1px solid #cbb99e;border-radius:15px;cursor:default;touch-action:auto;background:var(--title-wash)}.title-screen.locked #title-art{filter:saturate(.3)}.title-proof{display:flex;flex-direction:column;gap:9px;background:var(--title-wash);border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0}.title-proof p{margin:0;font-size:12px;line-height:1.6}.title-proof b{font-size:12px;color:var(--title-color)}.title-proof small{font-size:10px;color:var(--muted)}.title-screen .primary{max-width:400px;margin:14px auto;background:var(--title-color);box-shadow:0 3px 0 #786046;font-size:12px}.title-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:8px}.title-pagination .secondary{width:100px;font-size:11px}.title-pagination span{font-size:11px;color:var(--muted)}.title-pagination button:disabled{opacity:.35;cursor:default}.title-screen>.secondary{font-size:12px;margin-top:14px}
.preview-panel{text-align:center;margin-bottom:18px;padding:18px;background:#efe7d7;border:1px solid var(--line);border-radius:14px}.preview-panel nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.preview-panel button{font:750 10px system-ui;min-height:38px;padding:8px 11px;border:1px solid #c9b99b;border-radius:8px;background:#faf5e9;color:#66553b}.preview-panel button[aria-pressed=true]{background:var(--red);color:#fffaf0;border-color:var(--red)}.preview-panel p:not(.eyebrow){font-size:12px;margin:14px 0;line-height:1.7}.preview-panel>a{font-size:11px;min-height:44px;display:inline-flex;align-items:center}.preview-panel .preview-freeze{margin-right:12px;background:#fffaf0}.preview-panel .preview-freeze[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.preview .hud,.preview .progress,.preview .bottom,.preview .controls,.preview #pause,.preview .journey-bar,.preview #help-button{display:none}.preview .stage{height:min(57svh,480px);min-height:240px}
@media(max-width:760px){.shell{padding:16px}.intro-card{grid-template-columns:1fr}.intro-poster{padding:24px}.race-title{justify-content:flex-start;gap:24px}.race-name{font-size:26px}.race-year{font-size:52px}.poster-art{height:194px;margin-top:12px}.poster-art:before{width:180px;height:180px;right:8%;top:0}.poster-manifesto{font-size:48px;top:10px}.intro-runner{width:226px;height:226px;right:5%;bottom:-15px}.distance-stamp{left:auto;right:-6px;bottom:0;width:78px;height:78px;z-index:2}.distance-stamp b{font-size:19px}.distance-stamp small{font-size:6px}.poster-caption{margin:12px 0 2px;font-size:17px}.intro-actions{padding:24px}.intro-actions h3{font-size:34px;margin-bottom:18px}.intro-actions .section-kicker{font-size:9px;margin-bottom:8px}.howto{margin-bottom:20px}.result-layout{grid-template-columns:1fr;gap:22px}.result-summary{max-width:520px;width:100%;margin:auto}.result-next{max-width:520px;width:100%;margin:auto;padding:22px}.result-next h3{font-size:40px}.result-next h3 br{display:none}.result-next h3 em:before{content:" "}#result{padding:24px}.result-heading{padding-bottom:16px}.site-footer{margin-top:26px}.journey-open{font-size:9px}}
@media(max-width:480px){.shell{padding:12px}.brand{gap:9px;margin-bottom:14px}.brand h1{font-size:16px;max-width:190px}.brand p{font-size:8px;letter-spacing:.07em;margin-top:5px}.cross{flex-basis:26px}.cross svg{width:26px;height:35px}.brand-tools{gap:5px}.brand-tools .icon-button{width:44px}.brand-tools .icon-button small{display:none}.journey-bar{grid-template-columns:1fr auto;gap:5px 8px;padding:11px 12px;font-size:11px;margin-bottom:14px}.journey-bar small{grid-column:1/-1;font-size:9px}.journey-open{display:none}.stage{border-radius:16px}.intro-poster{padding:20px}.race-name{font-size:23px}.race-year{font-size:45px}.race-title{justify-content:space-between;gap:8px}.poster-art{height:165px;margin-top:10px}.poster-art:before{width:160px;height:160px;right:4px}.poster-manifesto{font-size:40px}.intro-runner{width:198px;height:198px;right:-20px;bottom:-17px}.distance-stamp{right:0;bottom:-2px;width:67px;height:67px}.distance-stamp b{font-size:17px}.distance-stamp small{font-size:5px}.poster-caption{font-size:15px}.poster-caption span{font-size:10px}.intro-actions{padding:22px 20px}.intro-actions h3{font-size:30px}.intro-actions h3 small{font-size:11px;margin-top:7px}.howto{gap:8px}.howto small{font-size:8px}.howto>span{column-gap:5px;grid-template-columns:26px 1fr}.howto i{font-size:26px}.run-choice{min-height:62px;padding:12px}.run-choice b{font-size:13px}.run-choice small{font-size:10px}.choice-duration{gap:8px;font-size:9px}.intro-explore{gap:6px;margin-top:22px}.intro-explore .text-button{font-size:8px}.intro-explore small{font-size:8px}.hud{gap:8px}.hud strong{font-size:23px}.hud small{font-size:9px}.small-label{font-size:8px}.lives strong{font-size:20px;letter-spacing:1px}.bottom{gap:12px}.inventory{font-size:19px;gap:12px}.energy-label{font-size:8px}.move-guide{gap:8px}.move-guide>div{column-gap:7px;padding:7px 8px}.move-guide strong{font-size:10px}.move-guide>div>small{font-size:8px}.move-guide>div>span{font-size:9px}.feel-controls button{font-size:9px;min-height:32px}.result-heading h2{font-size:52px}#result{padding:18px 14px}#result-score{font-size:63px}.result-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}.result-stats b{font-size:21px}.finish-award{font-size:9px;padding:10px}.finish-award b{font-size:23px}.result-next{padding:20px 16px}.result-next h3{font-size:33px}.support-links .support{font-size:13px}.support-links .support small{font-size:8px}.collection-link small{display:block;margin-left:0}.result-journey{grid-template-columns:1fr;gap:4px}.result-journey>span{text-align:left}.site-footer{padding:20px 4px 0;font-size:11px}.site-footer nav{gap:5px 16px}.site-footer a{font-size:11px}body.in-run:not(.preview) .shell{padding:10px 12px;gap:8px}dialog{padding:18px;width:calc(100vw - 24px);max-height:calc(100svh - 24px);border-radius:16px}dialog>header{top:-18px;margin:-18px -18px 18px;padding:14px 18px;gap:8px}dialog>header h2{font-size:16px}dialog h2 small{font-size:9px;margin-left:3px}#howto-dialog{width:calc(100vw - 24px)}.help-lead{font-size:22px}.help-controls{gap:10px}.help-controls article{padding:14px 12px}.help-controls p{font-size:11px}.help-controls p span{font-size:10px}.help-rules li{gap:12px}.help-rules strong{font-size:10px}.help-rules p{font-size:11px}.profile-card{padding:18px 14px}.profile-numbers{margin:16px 0}.profile-numbers small{font-size:8px}.personal-bests{gap:10px}.personal-bests>div{padding:12px 10px}.personal-bests span{font-size:8px}.personal-bests b{font-size:14px}.personal-bests strong{font-size:9px}.collection-heading{align-items:flex-start;flex-direction:column;gap:8px;margin-top:24px}.collection-heading h3{font-size:12px}#title-catalog{grid-template-columns:1fr}.catalog-title{padding:15px}.title-screen h3{font-size:30px}.title-screen .title-story{font-size:20px}.title-proof{padding:13px}.title-pagination{gap:12px}.preview-panel{padding:14px 10px}.preview-panel button{min-height:36px;font-size:9px;padding:7px 9px}}
@media(max-width:350px){.brand h1{font-size:14px}.cross{flex-basis:22px}.cross svg{width:22px;height:32px}.brand p{font-size:7px}.brand-tools{gap:4px}.hud strong{font-size:21px}.hud small{font-size:8px}.poster-manifesto{font-size:36px}.intro-runner{width:180px;height:180px;right:-27px}.distance-stamp{width:61px;height:61px}.howto{grid-template-columns:1fr 1fr}.howto small{font-size:7px}.choice-duration{font-size:8px}.run-choice b{font-size:12px}.result-stats small{font-size:7px}.result-share .secondary{font-size:9px}.move-guide>div{column-gap:5px;padding:7px 5px}.move-guide strong{font-size:9px}}
@media(max-height:480px) and (min-width:650px){.shell{padding:12px 18px}.brand{margin-bottom:12px}.brand h1{font-size:20px}.brand p{font-size:8px}.intro-card{grid-template-columns:1fr 1fr}.intro-poster{padding:22px}.race-title{gap:16px}.race-name{font-size:24px}.race-year{font-size:44px}.poster-art{height:195px}.poster-manifesto{font-size:45px}.intro-runner{width:220px;height:220px;right:-30px;bottom:-16px}.distance-stamp{width:73px;height:73px;right:auto;left:0}.poster-caption{font-size:15px}.intro-actions{padding:22px}.intro-actions h3{font-size:31px;margin-bottom:18px}.howto{margin-bottom:18px}.run-choice{min-height:60px}.intro-explore{margin-top:18px}.intro-tagline{margin-top:10px}body.in-run:not(.preview) .shell{height:100svh;min-height:300px;padding:8px 14px;gap:7px;grid-template-columns:minmax(0,1fr) 164px;grid-template-rows:auto 5px minmax(60px,1fr) auto auto}body.in-run:not(.preview) .brand{grid-row:1;grid-column:1;min-height:42px;gap:8px}body.in-run:not(.preview) .brand h1{font-size:17px}body.in-run:not(.preview) .brand p{display:none}body.in-run:not(.preview) .cross svg{height:30px;width:24px}body.in-run:not(.preview) .brand-tools .icon-button{min-width:36px;min-height:36px;padding:4px;font-size:17px}body.in-run:not(.preview) .brand-tools small{display:none}body.in-run:not(.preview) .hud{grid-row:1;grid-column:2;gap:4px;grid-template-columns:1fr .75fr 1fr}body.in-run:not(.preview) .hud strong{font-size:14px}body.in-run:not(.preview) .hud small{display:none}body.in-run:not(.preview) .small-label{font-size:6px;letter-spacing:.03em}body.in-run:not(.preview) .lives strong{font-size:13px;letter-spacing:0}body.in-run:not(.preview) .progress{grid-row:2;grid-column:1/-1}body.in-run:not(.preview) .stage{grid-column:1;grid-row:3/6;min-height:0;border-radius:14px}body.in-run:not(.preview) .bottom{grid-column:2;grid-row:3;align-self:start;display:flex;flex-direction:column;gap:14px;padding:10px 8px;background:#eee5d2;border-radius:10px}body.in-run:not(.preview) .energy{width:100%}body.in-run:not(.preview) .energy-label{font-size:7px}body.in-run:not(.preview) .inventory{font-size:18px;gap:18px}body.in-run:not(.preview) .move-guide{grid-column:2;grid-row:4;grid-template-columns:1fr;gap:6px}body.in-run:not(.preview) .move-guide>div{min-height:40px;padding:5px 8px}body.in-run:not(.preview) .move-guide strong{font-size:10px}body.in-run:not(.preview) .move-guide>div>small{font-size:8px}body.in-run:not(.preview) .feel-controls{grid-column:2;grid-row:5;gap:5px}body.in-run:not(.preview) .feel-controls button{font-size:8px;min-height:32px;padding:5px 7px;letter-spacing:0}.pause-card{padding:15px}.pause-card h2{font-size:35px}.pause-card>p:not(.eyebrow){margin:7px 0 14px;font-size:10px}.result-layout{grid-template-columns:1.1fr 1fr;gap:24px}.result-next h3{font-size:31px}.result-next h3 br{display:block}.result-next h3 em:before{content:none}#result{padding:24px}.result-heading h2{font-size:55px}.preview .stage{height:60svh;min-height:210px}.preview-panel{padding:12px}.preview-panel button{min-height:34px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.catalog-title:hover{transform:none}}
body[data-effects=low] .catalog-title:hover{transform:none}
.intro-poster .intro-runner{right:-3px}
body.preview:has(#result:not([hidden])) .stage{height:auto;min-height:0}
@media(max-width:480px){.poster-art{height:145px}.intro-poster .intro-runner{right:-8px;width:185px;height:185px}.poster-manifesto{font-size:37px}.poster-manifesto em{font-size:29px}.intro-actions h3{font-size:26px}}
@media(max-width:350px){.poster-manifesto em{font-size:26px}}
@media(max-width:480px){.distance-stamp{left:0;right:auto;bottom:-5px;display:flex;align-items:baseline;gap:5px;width:auto;height:auto;border:0;border-radius:0;transform:none;background:transparent}.distance-stamp b{font-size:12px}.distance-stamp small{font-size:6px;letter-spacing:.03em}}
.catalog-title,.title-screen{--title-ink:color-mix(in srgb,var(--title-color,#937438) 65%,#222822)}
.catalog-title strong,.title-screen h3,.title-screen .title-story,.title-proof b,.title-screen>.eyebrow{color:var(--title-ink)}
.title-screen .primary{background:var(--title-ink)}
.result-share .secondary span{white-space:nowrap}.result-share .secondary small{font-size:9px;margin-top:4px}
/* Native selection protection is deliberately explicit on HUD descendants. */
#game,.hud,.hud *,.progress,.progress *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
html.game-active,html.game-active body,html.game-active .shell,html.game-active .shell *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
#game{-webkit-user-drag:none;touch-action:none}

.finale-award{margin:12px 0;padding:12px 16px;border:1px solid #c7a254;border-radius:12px;background:#f1e4bd;color:#82572d;font-weight:900;letter-spacing:.025em}.finale-award small{display:block;margin-top:5px;font-size:10px;font-weight:800;letter-spacing:.03em}
.loading-track{height:4px;margin-top:7px;overflow:hidden;border-radius:8px;background:var(--line)}.loading-track>div{height:100%;width:0;background:var(--green);transition:width .15s linear}#loading-count{margin-left:8px;font-variant-numeric:tabular-nums}#loading>.secondary{margin-top:10px;font-size:11px}
#share-status a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:3px 4px;padding:6px 10px;font-weight:800;font-size:11px}
/* Small optional goals stay beside the stamina bar, away from the road. */
.run-insights{display:none;grid-template-columns:1fr auto;gap:3px 12px;margin-top:6px;font-size:9px;font-weight:750;line-height:1.35;color:var(--muted);font-variant-numeric:tabular-nums}
.run-insights #perfect-live{grid-column:1/-1;color:var(--green)}.run-insights #perfect-live[data-complete=true]{color:#9d671c}
body.in-run .run-insights{display:grid}.run-insights #daily-live{grid-column:1/-1;font-size:8px;font-weight:600;overflow-wrap:anywhere}.run-insights #clean-boost[data-level="1"],.run-insights #clean-boost[data-level="2"],.run-insights #clean-boost[data-level="3"]{color:var(--green)}#pace-status[data-ahead=true]{color:var(--green)}#pace-status[data-ahead=false]{color:var(--muted)}
.daily-card{margin-top:18px;background:#eaf0e1;border:1px solid #b4c3a5;border-radius:11px;color:#355a43;text-align:left}.daily-card summary{cursor:pointer;padding:12px 14px;min-height:44px;list-style:none}.daily-card summary::-webkit-details-marker{display:none}.daily-kicker{display:block;font-size:8px;font-weight:850;letter-spacing:.08em}.daily-card strong{display:block;font-size:12px;margin:4px 0}.daily-card summary small{font-size:9px;display:block}.daily-card summary:after{content:'DETAILS / 条件 ＋';display:block;margin-top:6px;font-size:8px;font-weight:800;color:#55705b}.daily-card[open] summary:after{content:'CLOSE / 閉じる −'}.daily-card>p{margin:0;padding:0 14px 12px;font-size:11px;line-height:1.65}.daily-card .daily-footnote{font-size:8px;line-height:1.6;color:#53654e;border-top:1px solid #c8d2ba;padding-top:10px}.daily-card .daily-footnote span{font-size:9px}
.daily-collection{margin-top:18px;border:1px solid #b4c3a5;border-radius:12px;background:#eaf0e1;padding:16px;color:#355a43}.daily-collection .section-kicker{font-size:9px;color:#53654e}.daily-collection>strong{font-size:25px;font-weight:900;letter-spacing:-.04em}.daily-collection>p{font-size:11px;line-height:1.65;margin:8px 0}.daily-collection>small{font-size:9px;color:#53654e}#daily-stamp-dates{max-height:90px;overflow:auto;font-variant-numeric:tabular-nums}
.daily-result{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#eee8d9;text-align:left}.daily-result.stamped{background:#e5edd9;border-color:#9bb78b;color:#355a43}.daily-result>strong{font-size:11px}.daily-result>p{font-size:10px;line-height:1.65;margin:7px 0}.daily-result>small{display:block;font-size:9px;color:var(--muted)}
@media(max-width:480px){.run-insights{font-size:8px;gap:3px 6px}.run-insights #daily-live{font-size:8px}.daily-card summary{padding:11px}.daily-card strong{font-size:11px}.feel-controls{gap:5px}.feel-controls button{padding-inline:7px}}
@media(max-height:480px) and (min-width:650px){.run-insights{grid-template-columns:1fr;font-size:8px;gap:5px}.run-insights #daily-live{font-size:7px}.feel-controls{flex-wrap:wrap}body.in-run:not(.preview) .feel-controls button{font-size:7px;padding-inline:4px;min-width:44px;min-height:30px}}

@media(max-height:360px) and (min-width:650px){body.in-run:not(.preview) .bottom{gap:7px;padding:7px 8px}body.in-run:not(.preview) .run-insights #daily-live{display:none}body.in-run:not(.preview) .run-insights{font-size:7px;gap:3px}body.in-run:not(.preview) .move-guide>div{min-height:32px;padding:4px 7px}body.in-run:not(.preview) .move-guide>div>small{display:none}body.in-run:not(.preview) .move-guide>div>span{grid-row:1;font-size:8px}body.in-run:not(.preview) .move-guide strong{font-size:9px}}
@media(max-height:480px) and (min-width:650px){body.in-run:not(.preview) .feel-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}body.in-run:not(.preview) .feel-controls button{min-width:0;min-height:32px;padding:3px 2px;font-size:7px;line-height:1.25}}

.move-guide>div.boss-warning{border-color:#c64b39;background:#f8e4d7;color:#a33f31}.move-guide>div.boss-warning small{color:#963e31}
