:root{--ink:#202c30;--accent:#e4c680;--white:#edf0ec}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#aeb9bc;font-family:Inter,'Noto Sans JP','Hiragino Kaku Gothic ProN',Meiryo,system-ui,sans-serif;user-select:none;-webkit-user-select:none;overscroll-behavior:none;color:var(--white)}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}#game{width:100%;height:100%;display:block;touch-action:none}.hidden{display:none!important}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(#16252a60,transparent 26%,transparent 65%,#1522276b);z-index:1;transition:box-shadow .3s}.danger-near .vignette{box-shadow:inset 0 -70px 100px #8a2c2755}#hud{position:fixed;top:max(24px,env(safe-area-inset-top));left:30px;right:30px;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;text-shadow:0 1px 8px #14242975}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.stage-block strong,.survivor-block strong{font-size:44px;line-height:1.15;font-weight:800;letter-spacing:-2px;font-variant-numeric:tabular-nums}.stage-total{font-size:15px;margin-left:7px;opacity:.6}.survivor-block{text-align:right}.survivor-block small{font-size:12px;margin-left:5px}.initial-count{display:block;opacity:.6;font-size:8px;letter-spacing:2px;margin-top:5px}.pips{display:flex;gap:4px;margin-top:8px}.pips i{display:block;width:10px;height:2px;background:#ffffff35}.pips .done{background:#dce2dc}.pips .current{background:var(--accent);height:4px;margin-top:-1px}.timer-box{text-align:center;width:104px;background:#243236b5;border:1px solid #e7ece233;border-radius:5px;padding:8px 12px 9px;backdrop-filter:blur(8px);text-shadow:none}.timer-box>span{font-size:9px;letter-spacing:1px}.timer-box strong{font-size:30px;display:block;font-variant-numeric:tabular-nums;line-height:1.2;font-weight:700}.time-track{margin-top:5px;height:2px;background:#ffffff25}.time-track i{display:block;height:100%;background:var(--accent);transform-origin:left}.timer-box.urgent{border-color:#d39272;background:#5e3430cc}.utility{position:fixed;right:28px;top:136px;display:flex;gap:7px;z-index:8}.utility button{width:35px;height:35px;border:1px solid #ffffff40;border-radius:4px;background:#233236b5;color:white;font-size:17px;display:flex;align-items:center;justify-content:center;gap:3px}.utility button span{font-size:8px}.utility #sound{width:50px}.stage-callout{position:fixed;top:140px;left:31px;z-index:3;pointer-events:none;text-shadow:0 2px 7px #18232b80;transition:opacity .3s}.stage-callout>span{font-size:9px;letter-spacing:2px;color:var(--accent)}.stage-callout h2{font-size:20px;font-weight:600;letter-spacing:2px;margin:6px 0 5px}.stage-callout small{font-size:9px;letter-spacing:1px;opacity:.8}.player-tag{position:fixed;z-index:2;pointer-events:none;transform:translate(-50%,-100%);padding:3px 7px;font-size:9px;font-weight:900;letter-spacing:1px;color:var(--ink);background:var(--accent);border-radius:2px}.player-tag span{position:absolute;left:calc(50% - 3px);bottom:-4px;width:6px;height:6px;transform:rotate(45deg);background:var(--accent)}.announcement{position:fixed;left:0;right:0;top:39%;text-align:center;z-index:5;pointer-events:none;font-size:clamp(40px,7vw,80px);font-weight:800;letter-spacing:4px;text-shadow:0 3px 20px #15222cb0}.result-strip{position:fixed;z-index:4;top:128px;left:50%;transform:translateX(-50%);background:#1e3038db;border:1px solid #dfd2a15c;box-shadow:0 8px 25px #101e2c25;padding:10px 22px;border-radius:3px;font-size:13px;letter-spacing:1px;white-space:nowrap;pointer-events:none}.controls{position:fixed;left:50%;transform:translateX(-50%);bottom:max(26px,env(safe-area-inset-bottom));width:min(390px,calc(100% - 36px));z-index:4;pointer-events:none}.controls>p{font-size:10px;letter-spacing:.5px;text-align:center;margin:0 0 9px;text-shadow:0 1px 4px #122029}.run-status{display:flex;align-items:center;gap:10px;padding:11px 15px;border:1px solid #ffffff45;border-radius:4px;background:#233238c9;backdrop-filter:blur(8px);font-size:12px}.status-arrow{font-size:20px;color:var(--accent)}#goalStatus{flex:1}#remainingDistance{font-size:11px;opacity:.75;font-variant-numeric:tabular-nums}.run-status.locked{border-color:#d3b978;background:#3e3a2de0}.danger{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;letter-spacing:1px;margin:0 auto 9px;color:#f0dac0;width:max-content;padding:4px 9px;border-radius:3px;background:#28373a99}.danger i{width:5px;height:5px;background:#c89c6d;border-radius:50%}.danger.close{background:#713b30df;color:#ffe1cf}.danger.close i{background:#ffab7b;animation:blink .6s infinite}.joystick{position:fixed;width:108px;height:108px;transform:translate(-50%,-50%);z-index:7;pointer-events:none;border:1px solid #e3e8dc85;border-radius:50%;background:#28353d3b;backdrop-filter:blur(2px)}.joystick>span{position:absolute;top:6px;left:calc(50% - 5px);font-size:14px;opacity:.7}.joystick i{position:absolute;left:calc(50% - 21px);top:calc(50% - 21px);width:42px;height:42px;border-radius:50%;background:#d4bf8dcc;border:2px solid #ece7d3aa;box-shadow:0 3px 14px #13212e30}.overlay{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center}.title-screen{justify-content:flex-start;background:linear-gradient(90deg,#15262cec,#16262cc2 40%,#16262c25 100%)}.title-content{margin-left:9vw;width:510px;padding:36px 0}.title-eyebrow{font-size:9px;letter-spacing:3px;display:flex;align-items:center;gap:10px;opacity:.9;margin-bottom:24px}.title-eyebrow i{width:6px;height:6px;background:var(--accent)}h1{font-size:clamp(40px,4.7vw,62px);font-weight:800;letter-spacing:1px;line-height:1.25;margin:0 0 24px}h1 span{color:var(--accent)}.tagline{font-size:14px;line-height:1.9;letter-spacing:2px;opacity:.9;margin:0 0 27px}.title-rule{font-size:11px;line-height:2.1;letter-spacing:.5px;border-top:1px solid #ffffff25;padding-top:17px;margin-bottom:23px;max-width:365px}.title-rule b{font-weight:500;color:var(--accent)}.primary{width:100%;max-width:365px;display:flex;justify-content:space-between;align-items:center;background:var(--accent);color:#243238;border:0;border-radius:3px;padding:0 22px;height:58px;font-size:15px;font-weight:800;letter-spacing:1px;box-shadow:0 4px 15px #0e1e2828}.primary>span{font-size:24px}.primary:hover{filter:brightness(1.07)}.primary:active{transform:translateY(1px)}.keyboard-note{font-size:9px;letter-spacing:.3px;opacity:.7;margin:16px 0 0}.small-rule{font-size:9px;opacity:.48;margin:8px 0 0}.title-bottom{position:absolute;bottom:22px;left:4vw;right:4vw;display:flex;justify-content:space-between;font-size:8px;letter-spacing:3px;opacity:.55}.end-screen,#pauseScreen{background:#14262ac9;backdrop-filter:blur(7px)}.end-card{width:min(430px,calc(100% - 36px));background:#e6e8df;color:#263238;padding:32px;border-radius:5px;border:1px solid #ffffff8a;box-shadow:0 20px 80px #0a161e50}.end-eyebrow{font-size:9px;font-weight:800;letter-spacing:2px;opacity:.6}.end-card h2{font-size:29px;letter-spacing:-1px;line-height:1.4;margin:19px 0 11px}.end-card>p{font-size:12px;line-height:1.9;margin:0 0 20px;color:#4a5659}.end-stats{display:flex;gap:25px;border-top:1px solid #25303825;border-bottom:1px solid #25303825;margin-bottom:18px;padding:16px 0}.end-stats>div{flex:1}.end-stats span{display:block;font-size:10px;opacity:.65}.end-stats strong{font-size:32px;font-weight:700;font-variant-numeric:tabular-nums}.end-stats small{font-size:12px}.end-history{display:flex;gap:6px;margin:14px 0 24px}.end-history span{display:grid;place-content:center;background:#25313815;width:27px;height:25px;font-size:10px;color:#25313855}.end-history .pass{background:#476555;color:#eef1e8}.end-history .fail{background:#8b5147;color:#eef1e8}.text-button{border:0;background:none;color:#465154;display:block;margin:18px auto 0;font-size:11px;text-decoration:underline;text-underline-offset:4px}.loading,.error{position:fixed;inset:0;z-index:30;background:#243237;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px}.loading p{font-size:11px;letter-spacing:2px}.loader{width:30px;height:30px;border:2px solid #ffffff25;border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}.error p{font-size:12px;margin-bottom:25px}body.title #hud,body.title #pause,body.title #stageCallout,body.title #controls,body.title #playerTag,body.title #resultStrip,body.title .joystick{display:none}body.title .utility{top:25px;right:25px;z-index:12}body.ended #controls,body.ended #stageCallout,body.ended #resultStrip{display:none}@keyframes spin{to{transform:rotate(360deg)}}@keyframes blink{50%{opacity:.25}}
@media(max-width:600px){#hud{top:max(19px,env(safe-area-inset-top));left:18px;right:18px}.stage-block strong,.survivor-block strong{font-size:36px}.stage-total{font-size:12px}.eyebrow{font-size:8px}.timer-box{width:87px;padding:7px 9px}.timer-box strong{font-size:27px}.timer-box>span{font-size:8px}.pips{gap:3px}.pips i{width:8px}.utility{right:17px;top:113px;gap:6px}.utility button{width:31px;height:31px}.utility #sound{width:46px}.stage-callout{left:19px;top:118px}.stage-callout h2{font-size:17px;letter-spacing:1px}.stage-callout>span{font-size:8px}.stage-callout small{font-size:8px}.result-strip{top:185px;padding:9px 14px;font-size:11px}.controls{bottom:max(23px,env(safe-area-inset-bottom))}.controls>p{font-size:9px}.run-status{font-size:11px;padding:9px 13px}.title-screen{align-items:flex-end;background:linear-gradient(0deg,#15262cf5 0%,#15262ccf 36%,#15262c72 70%,#15262c20 100%)}.title-content{margin:0;width:100%;padding:25px 28px 54px}.title-eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:17px}h1{font-size:42px;line-height:1.22;margin-bottom:16px;letter-spacing:0}.tagline{font-size:12px;line-height:1.8;letter-spacing:1px;margin-bottom:16px}.title-rule{padding-top:12px;font-size:10px;margin-bottom:16px;line-height:1.9}.primary{height:54px;font-size:14px;max-width:100%}.keyboard-note{font-size:8px;margin-top:14px}.small-rule{font-size:8px;margin-top:7px}.title-bottom{bottom:17px;left:28px;right:28px;font-size:7px;letter-spacing:1.5px}.end-card{padding:28px 25px}.end-card h2{font-size:26px}.end-history{gap:5px}.end-history span{width:24px}.announcement{font-size:44px}.danger{font-size:9px}}
@media(max-height:700px) and (max-width:600px){.title-content{padding-bottom:41px}.title-eyebrow{margin-bottom:11px}h1{font-size:35px;margin-bottom:12px}.tagline{margin-bottom:10px}.title-rule{padding-top:9px;margin-bottom:13px}.title-bottom{bottom:13px}.primary{height:50px}.small-rule{font-size:7px}.end-card{padding:23px}.end-card h2{margin-top:14px}}
@media(orientation:landscape) and (max-height:540px){#hud{top:14px}.stage-block strong,.survivor-block strong{font-size:30px}.stage-callout{top:105px}.utility{top:105px}.title-content{padding:16px 0;margin-left:7vw;width:410px}.title-eyebrow{margin-bottom:10px}h1{font-size:33px;line-height:1.11;margin-bottom:12px}.tagline{font-size:10px;line-height:1.5;margin-bottom:10px}.tagline br{display:none}.title-rule{font-size:9px;padding-top:8px;margin-bottom:12px}.primary{height:45px}.keyboard-note{margin-top:10px}.title-bottom{display:none}.controls{bottom:13px;width:340px}.run-status{padding:6px 13px}.controls>p{margin-bottom:6px}.result-strip{top:105px;font-size:11px}.end-card{width:470px;padding:20px}.end-card h2{margin:11px 0 7px}.end-card>p{margin-bottom:12px}.end-stats{padding:9px 0;margin-bottom:10px}.end-history{margin:9px 0 14px}.text-button{margin-top:12px}}

/* Read the next question during the uninterrupted connecting walk. */
.stage-callout{display:none}.question-panel{position:fixed;z-index:4;top:118px;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 32px));padding:8px 15px;background:#203139ed;border:1px solid #e4c68077;border-radius:5px;text-align:center;pointer-events:none;box-shadow:0 4px 16px #15202735}.question-panel>span{display:block;color:var(--accent);font-size:8px;letter-spacing:2px}.question-panel>strong{display:block;font-size:17px;margin:3px 0 6px}.question-choices{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:700}.question-choices span{flex:1;white-space:nowrap}.question-choices i{font-size:10px;font-weight:400;font-style:normal;color:#e4c68099}.question-panel.preview{border-color:var(--accent);background:#203139fa}.result-strip{top:225px}.utility{top:auto;bottom:130px}body.title #questionPanel,body.ended #questionPanel{display:none}body.title .utility{bottom:auto}@media(max-width:600px){.question-panel{top:110px;padding:7px 9px}.question-panel>strong{font-size:15px}.question-choices{font-size:15px}.result-strip{top:208px;font-size:10px}}@media(orientation:landscape) and (max-height:540px){.question-panel{top:94px;width:350px;padding:5px 12px}.question-panel>strong{font-size:13px;margin:2px 0 4px}.question-choices{font-size:14px}.result-strip{top:180px}.utility{top:auto;bottom:25px}}

.question-choices span{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4;text-wrap:balance}

.question-panel.three-choice{width:min(520px,calc(100% - 18px))}.three-choice .question-choices{gap:4px;font-size:clamp(11px,2.5vw,15px)}.three-choice .question-choices i{font-size:8px;flex:none}.three-choice .question-choices span{white-space:nowrap;font-size:clamp(10px,2.3vw,15px)}

.friend-choices{display:flex;justify-content:space-around;gap:24px;margin:6px auto 0;pointer-events:none}.friend-choices figure{margin:0;padding:5px;background:#1e3039;border:1px solid #e4c680;border-radius:8px;color:#fff5d8;text-align:center;font-weight:bold}.friend-choices img{display:block;width:86px;height:86px;object-fit:cover;border-radius:4px}.friend-choices figcaption{font-size:13px;padding-top:4px}.friend-choices.hidden{display:none}@media(max-height:600px){.friend-choices{margin-top:3px}.friend-choices img{width:58px;height:58px}}

.end-card #endTitle{font-size:clamp(22px,5.8vw,29px);text-wrap:balance}.end-card .end-question{font-size:16px;font-weight:700;line-height:1.6;margin:0 0 12px;padding:12px 0;border-bottom:1px solid #26323830;color:#263238}.end-question.hidden{display:none}
.share-button{width:100%;height:46px;margin:0 0 10px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border:1px solid #2f484e;border-radius:3px;background:#294149;color:#f3f3e9;font-weight:700}.share-button span{font-size:21px}.share-status{min-height:0;margin:0!important;color:#355c4d!important;text-align:center}.share-status:not(:empty){margin:0 0 8px!important}.end-card:has(.share-button) .end-history{margin-bottom:14px}

/* High-contrast, readable prompts without showing the city through the text. */
.question-panel,.question-panel.preview{width:min(540px,calc(100% - 28px));padding:12px 16px;background:#2d4b58;border-color:#f1d38f;box-shadow:0 5px 20px #07171b65,inset 0 2px 0 #ffe5a033}
.question-panel>span{font-size:10px;letter-spacing:1.5px}
.question-panel>strong{font-size:24px;font-weight:800;color:#fff;line-height:1.45;letter-spacing:.02em;text-wrap:balance;margin:5px 0 11px}
.question-choices{font-size:19px;gap:10px;align-items:stretch;color:#fff5db}
.question-choices span{padding:7px 8px;background:#ffffff0d;border:1px solid #ffffff25;border-radius:4px;display:flex;align-items:center;justify-content:center}
.question-choices i{align-self:center;color:#e4c680}
@media(max-width:600px){.question-panel{padding:10px 12px}.question-panel>strong{font-size:21px;margin:5px 0 9px}.question-choices{font-size:17px;gap:7px}.question-choices span{padding:6px}}
@media(orientation:landscape) and (max-height:540px){.question-panel,.question-panel.preview{width:min(520px,calc(100% - 40px));padding:7px 12px}.question-panel>strong{font-size:18px;line-height:1.3;margin:3px 0 6px}.question-choices{font-size:16px}.question-choices span{padding:4px 6px}}

/* Status follows the actual prompt height, including wrapped text and portraits. */
#questionPanel .result-strip{position:static;top:auto;bottom:auto;left:auto;right:auto;transform:none;max-width:100%;margin:10px 0 0;padding:8px 10px;background:#203f35;border:1px solid #b6d8b880;border-radius:4px;box-shadow:none;white-space:normal;text-wrap:balance;font-size:13px;line-height:1.5;letter-spacing:0;color:#efffed}
@media(max-width:600px){#questionPanel .result-strip{font-size:12px;margin-top:8px;padding:6px 8px}}
@media(orientation:landscape) and (max-height:540px){#questionPanel .result-strip{font-size:11px;margin-top:6px;padding:4px 8px}}

#questionPanel .result-strip{background:#f2d78c;color:#172d32;border:2px solid #fff0bc;padding:10px 12px;box-shadow:0 5px 22px #0005;animation:result-pop .18s ease-out}#questionPanel .result-strip strong{display:block;font-size:clamp(32px,8vw,46px);font-weight:900;line-height:1.05;font-variant-numeric:tabular-nums}#questionPanel .result-strip small{font-size:16px;margin-left:8px}#questionPanel .result-strip span{display:block;margin-top:5px;font-size:13px;font-weight:700;line-height:1.4}#endDescription{white-space:pre-line;line-height:1.8;font-weight:700}@keyframes result-pop{from{opacity:0;scale:.94}to{opacity:1;scale:1}}@media(orientation:landscape) and (max-height:540px){#questionPanel .result-strip{padding:5px 8px}#questionPanel .result-strip strong{font-size:28px}#questionPanel .result-strip span{font-size:11px}}@media(prefers-reduced-motion:reduce){#questionPanel .result-strip{animation:none}}

/* Main title instruction: a bright, readable two-line callout. */
.title-rule{display:block;max-width:460px;margin:0 0 20px;padding:14px 16px;background:#c5edf0;color:#153b49;border:2px solid #ecfeff;border-radius:6px;box-shadow:0 6px 22px #0b1a2355;font-size:20px;font-weight:800;line-height:1.45;letter-spacing:0;text-shadow:none}.title-rule span{display:block}.title-rule strong{display:block;font-size:25px;font-weight:900;line-height:1.45}@media(max-width:600px){.title-rule{padding:11px 12px;margin-bottom:16px;font-size:18px}.title-rule strong{font-size:22px}}@media(orientation:landscape) and (max-height:540px){.title-rule{padding:7px 11px;margin-bottom:10px;font-size:15px}.title-rule strong{font-size:19px}}
