:root{--ink:#111b23;--acid:#e9ff77;--cream:#fffced;--red:#ff583e;--muted:#b9c4c9}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--ink);color:var(--cream);font-family:Arial,"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid white;outline-offset:5px}button:disabled{opacity:.6;cursor:wait}.hidden{display:none!important}#game{width:100%;height:100%;height:100dvh;position:relative;isolation:isolate;overflow:hidden;touch-action:none}#scene{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}.film-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(7,17,25,.48),transparent 25%,transparent 70%,rgba(7,17,25,.7))}.topbar{position:absolute;left:0;right:0;top:0;padding:calc(22px + env(safe-area-inset-top)) 30px 16px;display:flex;align-items:center;justify-content:space-between;z-index:12;pointer-events:none}.brand{font-size:17px;letter-spacing:.13em;font-weight:900;display:flex;align-items:center;gap:10px;text-shadow:0 2px 10px #18232c}.brand-jp{font-weight:600;font-size:12px;letter-spacing:.1em;opacity:.62;border-left:1px solid #ffffff40;padding-left:12px}.eye-logo{color:var(--acid);font-size:25px;line-height:1}.toolbar{display:flex;gap:8px;pointer-events:auto}.icon-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff35;background:#14202970;border-radius:50%;color:var(--cream);font-size:21px}.icon-button.muted{opacity:.5;text-decoration:line-through}.overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:80px 28px 35px;background:#08141c55}.intro-card{width:480px;max-width:100%;margin-right:auto;margin-left:7vw;padding:35px 37px 28px;background:linear-gradient(120deg,#111d27f0,#111d27d9);border:1px solid #e6edfa26;box-shadow:0 20px 80px #0003;position:relative}.intro-card:before{content:"";height:3px;width:64px;position:absolute;left:37px;top:0;background:var(--acid)}.eyebrow{font-size:13px;font-weight:700;letter-spacing:.12em;color:var(--acid);display:flex;align-items:center;gap:9px;margin:0 0 25px}.eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--acid)}.eyebrow>span{margin-left:auto;font-size:12px;color:#95a5b4}h1{font-size:clamp(40px,4.3vw,60px);font-weight:900;letter-spacing:-.055em;line-height:1.3;margin:0 0 24px}h1 em{color:var(--acid);font-style:normal}.intro-lead{font-weight:700;font-size:17px;margin:0 0 12px}.intro-copy{font-size:15px;line-height:1.9;color:#b8c5cf;margin:0 0 28px}.primary{border:0;background:var(--acid);color:var(--ink);padding:18px 22px;width:100%;display:flex;align-items:center;justify-content:space-between;min-height:58px;font-size:17px;font-weight:800;box-shadow:0 4px 0 #aaba4e;transition:transform .1s,filter .1s}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 #aaba4e}.primary:hover{filter:brightness(1.06)}.button-eye{font-size:23px}.howto{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#bac7d2;margin-top:24px}.howto b{font-size:11px;color:#f6f9ed;display:block;letter-spacing:.08em;margin-bottom:5px}.fine{font-size:12px;color:#8f9fac;margin:19px 0 0;line-height:1.5}.intro-caption{position:absolute;right:5vw;bottom:52px;display:flex;gap:14px;font-size:14px;line-height:1.8;letter-spacing:.1em;text-shadow:0 2px 10px black}.cross{font-size:28px;color:var(--acid)}#hud{position:absolute;inset:0;pointer-events:none}.journey{position:absolute;left:30px;top:calc(90px + env(safe-area-inset-top));width:260px}.journey-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;text-shadow:0 2px 10px #000}.journey-top>span:first-child{color:var(--acid);font-weight:700}.journey strong{font-size:28px;margin:0 3px;line-height:1;font-variant-numeric:tabular-nums}.unit{font-size:14px}.route{height:3px;background:#ffffff35;margin-top:12px;position:relative}.route>i{display:block;height:100%;background:var(--acid);width:0}.route>b{width:6px;height:6px;background:var(--acid);position:absolute;right:0;top:-1.5px}#reticle{position:absolute;top:50%;left:50%;width:25px;height:25px;transform:translate(-50%,-50%);border:1px solid #fff7;border-radius:50%;box-shadow:0 1px 6px #0004;transition:border .2s}#reticle i{position:absolute;width:4px;height:4px;background:#fff;border-radius:50%;top:10px;left:10px}#reticle.danger{border-color:var(--red);box-shadow:0 0 15px #ff583e66}#reticle.danger i{background:var(--red)}#warning{position:absolute;left:50%;top:24%;transform:translateX(-50%);width:180px;text-align:center;opacity:0;transition:opacity .1s;font-size:21px;font-weight:900;color:var(--acid);text-shadow:0 2px 5px #000}.danger-line{height:4px;margin-top:10px;background:#ffffff40}.danger-line i{display:block;height:100%;width:0;background:currentColor}#face-mark{position:absolute;border:2px solid var(--acid);border-radius:45%;opacity:0;box-shadow:0 0 16px #efff8b33;transform:translate(-50%,-50%)}#bark{position:absolute;left:50%;top:27%;transform:translateX(-50%);background:var(--cream);padding:13px 19px;white-space:nowrap;color:var(--ink);font-weight:900;font-size:clamp(20px,4vw,36px);border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink);display:none}#bark:after{content:"";position:absolute;bottom:-12px;left:45%;border-top:12px solid var(--cream);border-left:9px solid transparent;border-right:9px solid transparent}#danger-vignette{pointer-events:none;position:absolute;inset:0;z-index:4;box-shadow:inset 0 0 150px 45px #ff342f;opacity:0;transition:opacity .08s}#impact{pointer-events:none;position:absolute;inset:0;background:var(--red);z-index:15;opacity:0}.footing{position:absolute;bottom:150px;left:50%;transform:translateX(-50%);text-align:center;width:250px;opacity:0;transition:opacity .2s;font-size:13px;color:var(--acid);text-shadow:0 2px 4px #000}.footing>div{height:3px;width:120px;background:#ffffff40;margin:8px auto}.footing i{height:100%;display:block;background:var(--acid);width:100%}#footing-hint{font-size:12px;color:#f3f0df}#toast{position:absolute;top:64%;left:50%;transform:translateX(-50%);font-size:16px;font-weight:700;letter-spacing:.06em;color:var(--acid);white-space:nowrap;text-shadow:0 2px 5px #000;opacity:0;transition:opacity .15s}#controls{position:absolute;z-index:6;bottom:calc(25px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(430px,calc(100% - 32px));text-align:center}.control-note{font-size:12px;margin-bottom:14px;color:#f1f4e6;text-shadow:0 2px 3px #000;opacity:.85}.control-row{display:flex;gap:9px}.control-row button{min-height:50px;flex:1;border:1px solid #ffffff50;background:#14212bc9;color:var(--cream);font-size:14px;border-radius:3px;touch-action:none}.control-row button:active,.control-row button.pressed{background:#e9ff7730;border-color:var(--acid)}.control-row .center-button{flex:1.25;background:#e9ff77eb;color:var(--ink);border-color:var(--acid);font-weight:800}.center-button>span{font-size:19px;margin-right:5px}.result-card{width:430px;max-width:100%;padding:32px;background:#111d27ed;border:1px solid #ffffff30;box-shadow:0 20px 80px #0007}.result-card h2{font-size:clamp(28px,4vw,41px);margin:0 0 16px;letter-spacing:-.05em;font-weight:900}.result-card>p:not(.eyebrow){font-size:14px;line-height:1.7;color:#c5d0d8}.result-card .eyebrow{margin-bottom:18px}.result-stats{display:flex;border-top:1px solid #ffffff26;border-bottom:1px solid #ffffff26;margin:26px 0 17px;padding:18px 0}.result-stats>div{width:50%}.result-stats>div+div{border-left:1px solid #ffffff26;padding-left:25px}.result-stats span{display:block;font-size:12px;color:#aebbc6}.result-stats strong{display:block;font-size:36px;font-weight:800;margin-top:4px;font-variant-numeric:tabular-nums}.result-stats strong span{display:inline;font-size:14px;margin-left:5px}.result-card .result-tip{min-height:45px;font-size:13px!important;margin-bottom:21px}.text-button{background:none;border:0;color:#b7c6d0;display:block;margin:25px auto 0;font-size:14px}#pause-panel{z-index:20;background:#08121ba0}#result{background:#07131c7a}body.lost #result-eyebrow{color:var(--red)}body.lost .primary{background:var(--cream);box-shadow:0 4px 0 #929790}
@media(min-width:1100px){.intro-card{margin-left:10vw}.journey{width:290px}.control-note{font-size:13px}}@media(max-width:650px){.topbar{padding:calc(17px + env(safe-area-inset-top)) 18px 10px}.brand{font-size:14px;gap:7px}.brand-jp{display:none}.icon-button{height:36px;width:36px;font-size:19px}.overlay{padding:75px 20px 25px;align-items:center}.intro-card{padding:26px 26px 23px;margin:55px 0 0;width:100%;max-width:390px;background:linear-gradient(135deg,#111d27ef,#111d27dc)}.intro-card:before{left:26px}h1{font-size:clamp(36px,10vw,48px);margin-bottom:18px}.eyebrow{margin-bottom:19px;font-size:12px}.intro-lead{font-size:15px}.intro-copy{font-size:14px;margin-bottom:22px}.howto{margin-top:19px}.fine{font-size:11px;margin-top:15px}.intro-caption{display:none}.journey{left:19px;right:19px;top:calc(74px + env(safe-area-inset-top));width:auto}.journey-top{font-size:12px}.journey strong{font-size:27px}#warning{top:24%;font-size:19px}.result-card{padding:28px 25px}.result-card h2{font-size:33px}#controls{bottom:calc(18px + env(safe-area-inset-bottom))}.control-note{font-size:12px}.footing{bottom:135px}.primary{font-size:16px;min-height:55px}}@media(max-height:620px){.intro-card{padding:19px 27px;margin-top:0;max-width:410px}h1{font-size:35px;margin-bottom:12px}.eyebrow{margin-bottom:12px}.intro-copy{margin-bottom:15px;line-height:1.6}.intro-lead{font-size:14px;margin-bottom:6px}.howto{margin-top:13px}.fine{display:none}.overlay{padding-top:67px}.primary{padding:12px 20px;min-height:45px}#controls{bottom:12px;width:360px}.control-row button{min-height:40px}.control-note{margin-bottom:6px}.footing{bottom:100px}.result-card{padding:24px}.result-stats{margin:15px 0;padding:10px 0}.result-card .result-tip{min-height:0;margin-bottom:16px}#warning{top:26%}.journey{width:210px;top:77px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

#error-panel{z-index:30}
/* Plain arcade typography and worn street colors. */
:root{--ink:#22261f;--acid:#efd45d;--cream:#fff9e6;--red:#d7472e;--muted:#c5c7b6}
body{font-family:"Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
.brand{font-size:14px;letter-spacing:.08em;font-weight:700}.topbar{padding-top:calc(18px + env(safe-area-inset-top))}
.icon-button{border-radius:2px;border:2px solid #292c23;background:#f2e9cf;color:#292c23;box-shadow:2px 2px 0 #292c23;text-shadow:none}
.film-shade{background:linear-gradient(180deg,#14221c44,transparent 25%,transparent 75%,#101c1780)}
#intro{background:linear-gradient(90deg,#17211ed9,transparent 90%);align-items:center}
.intro-card{background:none;border:0;box-shadow:none;width:530px;padding:20px 5px;margin-left:8vw;max-width:100%}.intro-card:before{display:none}
.intro-card .eyebrow{color:#f1e7ce;font-size:14px;letter-spacing:.02em;margin-bottom:18px}
h1{font-size:clamp(44px,5.5vw,76px);line-height:1.15;letter-spacing:-.075em;font-weight:900;transform:rotate(-2deg);margin:0 0 25px;color:#fff9e6;text-shadow:3px 4px 0 #202b26;paint-order:stroke fill;-webkit-text-stroke:1px #fff9e6}h1 em{color:#efd45d;-webkit-text-stroke-color:#efd45d}
.intro-copy{font-size:16px;line-height:1.75;color:#eee9d9;text-shadow:1px 2px 0 #26322c;margin-bottom:30px}
.primary{border:2px solid #292c23;background:#efd45d;color:#292c23;box-shadow:4px 4px 0 #292c23;width:100%;max-width:380px;min-height:55px;justify-content:center;font-size:19px;border-radius:2px;padding:15px 22px;transition:none}.primary:hover{filter:brightness(1.08)}.primary:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #292c23}
.howto{max-width:380px;font-size:13px;justify-content:flex-start;gap:28px;margin-top:25px;color:#e8e6d8}.howto b{font-size:12px;color:#efd45d}.fine{font-size:12px;color:#c4cbbb;margin-top:17px}
.journey{width:230px}.journey-top>span:first-child{font-size:12px;color:#fff6dc}.journey strong{font-weight:900;text-shadow:2px 2px 0 #26322c}.route{height:4px;background:#26332bbb;border:1px solid #eee7cf55}.route>b{display:none}
#reticle{width:5px;height:5px;border:0;border-radius:0;background:#fff9e6;box-shadow:1px 1px 0 #20261e}#reticle i,#reticle b{display:none}#reticle.danger{background:#d7472e;box-shadow:1px 1px 0 #222}
#face-mark{border-radius:0;border-width:2px;box-shadow:none;outline:1px solid #25282066;transform:translate(-50%,-50%) rotate(-3deg)}
#warning{font-size:23px;font-weight:900;letter-spacing:-.03em;text-shadow:2px 2px 0 #273328;top:25%;width:160px}.danger-line{height:5px;margin-top:8px;background:#222b22a0}#danger-vignette{box-shadow:inset 0 0 90px 20px #ae251d}
#controls{width:min(355px,calc(100% - 36px))}.control-row{gap:12px}.control-row button{border:2px solid #262c24;border-radius:2px;background:#f3ebd5ed;color:#262c24;box-shadow:3px 3px 0 #262c24;min-height:49px;font-size:16px;font-weight:700}.control-row .center-button{background:#efd45df0;border-color:#262c24;flex:1.25}.control-row button:active,.control-row button.pressed{background:#d6bd50;border-color:#262c24;transform:translate(2px,2px);box-shadow:1px 1px 0 #262c24}
.control-note{font-size:12px;color:#fff9e6;letter-spacing:0}.result-card{background:#eee6cd;color:#292c23;border:3px solid #292c23;box-shadow:7px 7px 0 #292c23;padding:30px}.result-card .eyebrow{color:#92502f;letter-spacing:.04em;font-size:14px}.result-card h2{font-weight:900;transform:rotate(-2deg);font-size:36px}.result-card>p:not(.eyebrow){color:#555647}.result-stats{border-color:#88866b}.result-stats>div+div{border-color:#aaa58c}.result-stats span{color:#686957}.result-stats strong{color:#292c23}.text-button{color:#4e5346;text-decoration:underline}.result-card .primary{max-width:none}.result-card .result-tip{color:#555647}body.lost .primary{background:#efd45d;box-shadow:4px 4px 0 #292c23}body.lost #result-eyebrow{color:#a33323}
#bark{border:3px solid #292c23;transform:translateX(-50%) rotate(-3deg);box-shadow:4px 4px 0 #292c23;padding:12px 19px;font-weight:900}#toast{font-size:15px;letter-spacing:0;color:#fff8d6;text-shadow:2px 2px 0 #222c22}
@media(max-width:650px){#intro{align-items:center;background:linear-gradient(90deg,#14231ecc,#14231e35)}.intro-card{margin:15px 0 0;padding:15px 10px;max-width:390px}.intro-card .eyebrow{font-size:13px}h1{font-size:clamp(42px,11.5vw,59px);line-height:1.22;margin-bottom:24px}.intro-copy{font-size:15px;margin-bottom:28px}.primary{font-size:18px}.howto{gap:22px;justify-content:space-between}.fine{font-size:12px}.journey{width:auto}.brand{font-size:13px}.result-card{padding:28px 24px}.result-card h2{font-size:32px}}
@media(max-height:620px){.intro-card{margin:0 0 0 7vw;padding:0;max-width:430px}.intro-card .eyebrow{margin-bottom:10px}h1{font-size:39px;margin-bottom:14px}.intro-copy{font-size:14px;line-height:1.5;margin-bottom:15px}.howto{margin-top:15px}.primary{min-height:43px;padding:10px 16px}.result-card{padding:20px 24px}.result-card h2{font-size:30px}.control-row button{min-height:40px}.journey{width:210px}}

#result.loss-screen{z-index:40;background:#000;padding:0;cursor:pointer;animation:loss-black .18s linear both}
#result.loss-screen .result-card{display:contents}
#result.loss-screen .result-card>*{display:none!important}
#result.loss-screen #result-title{display:block!important;margin:0;padding:24px;color:#fff;font-size:clamp(25px,5vw,38px);font-weight:700;letter-spacing:.05em;line-height:1.5;transform:none;text-shadow:none;animation:loss-words .15s .18s linear both}
@keyframes loss-black{from{opacity:0}to{opacity:1}}
@keyframes loss-words{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#result.loss-screen,#result.loss-screen #result-title{animation:none}}

/* Play immediately; retain only information needed during the run. */
#stage,.route,#toast,.result-stats,#result-eyebrow,#result-copy,#result-tip{display:none!important}
.topbar{justify-content:flex-end;padding-top:calc(15px + env(safe-area-inset-top));padding-right:16px}
.icon-button{width:32px;height:32px;font-size:16px;background:#17211e80;color:#fff9e6;border:1px solid #fff9e64d;box-shadow:none;border-radius:2px}
.journey{top:calc(22px + env(safe-area-inset-top));left:18px;right:auto;width:auto}
.journey-top{font-size:13px}.journey strong{font-size:23px}.journey .unit{font-size:13px}
#result:not(.loss-screen) .result-card{width:340px;padding:27px}#result:not(.loss-screen) .result-card h2{font-size:30px;margin-bottom:27px}

/* Anger belongs to the person: a red face and a forehead symbol. */
#warning{position:absolute;top:0;left:0;width:32px;height:32px;margin:0;padding:0;opacity:0;pointer-events:none;transform:translate(-50%,-50%);transition:none;text-shadow:none;filter:drop-shadow(0 1px 1px #fff) drop-shadow(0 0 2px #fff);z-index:3}
#warning svg{display:block;width:100%;height:100%;overflow:visible}#warning path{fill:none;stroke:#dd2824;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}

/* The completed run is measured by its total number of fights. */
#result:not(.loss-screen){padding:24px}
#result:not(.loss-screen) .result-card{width:380px;max-width:100%;text-align:center;padding:28px}
#result:not(.loss-screen) .result-card h2{font-size:27px;margin:0 0 23px;transform:none}
.fight-result{margin:0 0 26px}
.fight-result p{font-size:16px;font-weight:700;margin:0 0 7px;color:#292c23;letter-spacing:.06em}
.fight-result>div{display:flex;justify-content:center;align-items:baseline;gap:8px;color:#b52b25}
#fights-result{font:900 clamp(72px,22vw,116px)/1 Arial,sans-serif;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.fight-result span{font-size:28px;font-weight:800}
@media(max-height:520px){#result:not(.loss-screen){padding:14px}#result:not(.loss-screen) .result-card{padding:16px 24px}#result:not(.loss-screen) .result-card h2{font-size:21px;margin-bottom:12px}.fight-result{margin-bottom:15px}.fight-result p{font-size:14px;margin-bottom:4px}#fights-result{font-size:64px}.fight-result span{font-size:23px}}
