:root{color-scheme:dark;--bg:#101e23;--panel:#192d33;--line:#31464b;--cream:#f1f2df;--muted:#9bafb0;--yellow:#e9ee91;--teal:#8bcec0;--danger:#f38b73}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--cream);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-size:16px;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--yellow);outline-offset:5px}.app{max-width:1320px;padding:0 48px;margin:auto}.topbar{height:114px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--cream);font-size:23px;font-weight:800;letter-spacing:-1px;line-height:1.15}.brand-icon{font-size:42px;line-height:1;color:var(--yellow);font-family:Georgia,serif;transform:rotate(-20deg)}.brand small{display:block;font-size:10px;letter-spacing:2px;margin-top:6px;font-weight:500;color:var(--muted)}.top-tools{display:flex;align-items:center;gap:10px}.night-label{font-size:13px;margin-right:17px;color:var(--muted)}.icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--cream)}.icon-button svg{width:19px;height:19px}.icon-button:hover{background:#283b40}.icon-button:disabled{opacity:.3}.icon-button.muted .sound-wave{display:none}main{display:grid;grid-template-columns:300px 1fr;gap:52px;padding:44px 0 37px}.mission{padding-top:12px}.eyebrow{font-size:13px;letter-spacing:1.7px;color:var(--teal);display:flex;align-items:center;gap:8px}.eyebrow span{width:5px;height:5px;background:var(--teal);transform:rotate(45deg)}h1{font-size:42px;line-height:1.4;letter-spacing:-2.4px;margin:23px 0 17px;font-weight:800;word-break:keep-all}h1 em{font-style:normal;color:var(--yellow);white-space:nowrap}.intro{color:var(--muted);font-size:16px;line-height:1.8;letter-spacing:-.2px;margin:0}.rules{margin-top:39px;display:grid;gap:25px}.rule{display:flex;gap:16px}.rule-number{width:26px;padding-top:2px;color:#789392;font-family:ui-monospace,monospace;font-size:12px}.rule strong{font-size:15px;font-weight:650}.rule p{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.7;letter-spacing:-.2px}.mission-bottom{display:flex;gap:15px;align-items:center;margin-top:37px;padding-top:22px;border-top:1px solid var(--line)}.tiny-star{font-size:26px;color:var(--yellow)}.mission-bottom p{font-size:13px;line-height:1.8;margin:0;color:#d1ddd5}.mission-bottom p span{color:#819a9c;font-size:12px}.game-shell{border:1px solid #3b5053;border-radius:18px;overflow:hidden;background:var(--panel);box-shadow:0 20px 50px #0002;min-width:0}.game-top{height:58px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;border-bottom:1px solid #405157}.room-label{display:flex;align-items:center;gap:9px;font-size:13px}.room-dot{width:6px;height:6px;border-radius:50%;background:var(--teal)}.room-time{font:11px ui-monospace,monospace;letter-spacing:1px;color:#819a9d;margin-left:10px}.timer{display:flex;align-items:baseline;gap:5px;font:600 20px ui-monospace,monospace;font-variant-numeric:tabular-nums;color:var(--yellow);min-width:96px;justify-content:flex-end}.timer svg{width:17px;height:17px;align-self:center;margin-right:3px}.timer small{font-size:12px;font-weight:400;color:#acbdba}.timer.urgent{color:var(--danger)}.scene{position:relative;aspect-ratio:1.65;background:#152a32;overflow:hidden;isolation:isolate}canvas{display:block;width:100%;height:100%;object-fit:cover}.scene-shade{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 80px #06141b66}.status-bubble{position:absolute;top:21px;left:23px;display:flex;align-items:center;gap:9px;background:#152c31e8;color:#d7eddd;border:1px solid #5e7b704f;border-radius:9px;padding:9px 12px;font-size:12px;transition:background .2s,color .2s}.status-glyph{font:italic 700 15px Georgia,serif;color:var(--yellow)}.scene[data-mood="stirring"] .status-bubble,.scene[data-mood="light"] .status-bubble{background:#553b2ef5;color:#ffcc9a}.scene[data-mood="light"]{box-shadow:inset 0 0 80px #e5723a99}.scene-caption{position:absolute;bottom:17px;left:0;right:0;text-align:center;font-size:13px;text-shadow:0 1px 6px #000;background:#0c2024aa;border-radius:40px;width:max-content;max-width:94%;padding:8px 17px;margin:auto;pointer-events:none}.floating-z{position:absolute;right:29%;top:35%;font:bold italic 22px Georgia,serif;color:#ceddc0;opacity:.8;animation:float 3s ease-in-out infinite;pointer-events:none}.z-two{top:28%;right:25%;font-size:31px;animation-delay:-1s}.z-three{top:19%;right:23%;font-size:19px;animation-delay:-2s}.scene[data-mood="stirring"] .floating-z,.scene[data-mood="light"] .floating-z{display:none}@keyframes float{50%{transform:translateY(-9px);opacity:.4}}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:#09202982;backdrop-filter:blur(4px);z-index:5}.overlay[hidden]{display:none}.start-card{text-align:center;width:min(360px,90%);padding:25px 30px 21px;background:#142e34ed;border:1px solid #8aaba65c;border-radius:14px;box-shadow:0 15px 40px #04151940}.card-kicker{font-size:11px;letter-spacing:3px;color:var(--teal)}h2{font-size:36px;line-height:1.3;letter-spacing:-1.8px;margin:14px 0 12px;color:var(--cream)}.start-card p{font-size:14px;line-height:1.65;color:#b0c3bc;margin:0 0 21px}.primary{width:100%;border:0;background:var(--yellow);color:#22332c;border-radius:8px;min-height:49px;font-size:15px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:18px;box-shadow:0 3px 0 #a9b264;transition:filter .15s,transform .15s}.primary:hover{filter:brightness(1.08);transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:none}.primary span{font-size:18px}.start-note{display:block;font-size:11px;color:#829f9c;margin-top:15px}.console{padding:21px 24px 15px}.meters{display:grid;grid-template-columns:1fr 1fr;gap:29px;margin-bottom:22px}.meter-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#bacbc7;margin-bottom:9px}.meter-label strong{font-family:ui-monospace,monospace;font-size:19px;color:var(--yellow);font-weight:550}.meter-label strong small{font-size:12px;margin-left:3px}.meter-label .awareness-label{font-family:inherit;font-size:12px;font-weight:500;color:var(--teal)}.track{position:relative;height:7px;background:#0b1f25;border-radius:2px;overflow:hidden}.track i{display:block;height:100%;width:0;transition:width .08s linear}.progress-track i{background:var(--yellow)}.danger-track i{background:var(--teal);min-width:2px}.danger-track b{position:absolute;top:0;bottom:0;right:25%;width:2px;background:#c8d6c45c}.shave-button{width:100%;height:58px;border:1px solid #566851;border-radius:8px;background:var(--yellow);color:#243d33;font-weight:750;font-size:16px;display:flex;align-items:center;justify-content:center;gap:11px;box-shadow:0 4px 0 #949d62;user-select:none;touch-action:none;transition:background .15s,transform .08s}.shave-button svg{width:22px;height:22px}.shave-button:disabled{background:#2d4246;border-color:#4b5d5d;color:#859997;box-shadow:0 3px 0 #14252a}.shave-button.held{transform:translateY(3px);box-shadow:0 1px 0 #949d62;background:#d3da77}.shave-button kbd{border:1px solid #6882598c;font-size:10px;padding:4px 6px;border-radius:3px;margin-left:9px;font-weight:500;letter-spacing:1px}.console-foot{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#94adaa;margin-top:13px}.console-foot span:last-child{color:#6e888a}.result-stats{background:#0a22287d;border-radius:7px;padding:10px;font-size:13px;margin:0 0 18px;color:var(--yellow)}.result-stats[hidden]{display:none}.asset-error{position:absolute;inset:0;background:#162e34;display:grid;place-content:center;text-align:center;line-height:1.8;z-index:9}.asset-error[hidden]{display:none}footer{border-top:1px solid var(--line);padding:22px 0 28px;display:flex;justify-content:space-between;font-size:11px;color:#6f8b8d;letter-spacing:.5px}footer i{font-style:normal;padding:0 10px}.game-shell.shaking{animation:shake .35s ease-in-out}@keyframes shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}@media(min-width:1450px){.app{padding:0 34px}.topbar{height:130px}main{padding-top:58px;gap:66px;grid-template-columns:310px 1fr}.scene{aspect-ratio:1.55}}@media(max-width:1100px){.app{padding:0 28px}main{grid-template-columns:250px 1fr;gap:26px}h1{font-size:35px;letter-spacing:-2px}.scene{aspect-ratio:1.3}.rules{gap:20px;margin-top:30px}.mission-bottom{margin-top:26px}.console{padding:20px}.game-top{padding:0 20px}.start-card{padding:22px}.night-label{display:none}}@media(max-width:800px){.app{padding:0 20px;max-width:650px}.topbar{height:85px}.brand{font-size:20px}.brand small{font-size:9px}.brand-icon{font-size:35px}main{display:flex;flex-direction:column;gap:23px;padding:25px 0}.mission{padding:0}.eyebrow{font-size:11px;letter-spacing:1px}h1{font-size:29px;line-height:1.35;letter-spacing:-1.5px;margin:10px 0 0}h1 br{display:none}h1 em{margin-left:7px}.intro,.rules,.mission-bottom{display:none}.game-shell{border-radius:13px}.scene{aspect-ratio:1.35}.game-top{height:51px;padding:0 17px}.console{padding:18px 17px 14px}.room-time{font-size:10px}.meters{gap:25px;margin-bottom:17px}.status-bubble{top:15px;left:15px;font-size:11px;padding:8px 10px}.scene-caption{font-size:12px;bottom:13px}h2{font-size:30px}.start-card{padding:21px 24px 18px;width:290px;max-width:88%}.start-card p{font-size:13px;margin-bottom:18px}.start-note{font-size:10px;margin-top:11px}.primary{min-height:45px}.shave-button{height:57px;font-size:15px}.console-foot{font-size:10px}footer{font-size:10px;padding:19px 0}footer span:first-child{display:none}footer span:last-child{margin:auto}}@media(max-width:390px){.app{padding:0 13px}h1{font-size:26px}.scene{aspect-ratio:1.2}.room-time{display:none}.shave-button kbd{display:none}.console-foot span:last-child{display:none}.start-card{max-width:85%}.top-tools{gap:7px}.icon-button{width:37px;height:37px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.strikes{display:flex;align-items:center;gap:8px;font-size:11px;color:#97adab;margin-left:auto;margin-right:23px}.strikes b{font-weight:500}.strikes #strikeIcons{display:flex;gap:5px}.strikes i{width:7px;height:7px;border-radius:50%;border:1px solid #79918f;display:block}.strikes i.used{background:#f38b73;border-color:#f38b73}.scene[data-mood="light"] .status-glyph{color:#f7a37e}@media(max-width:1000px){.room-time{display:none}.strikes{margin-right:14px}}@media(max-width:430px){.room-label{font-size:12px}.strikes{gap:6px}.game-top{gap:5px}.timer{min-width:82px;font-size:18px}}button.primary:disabled{opacity:.6;cursor:wait}
.brand small{font-size:12px;letter-spacing:1.4px}.night-label,.eyebrow,.room-label,.status-bubble,.meter-label,.rule strong,.rule p{font-size:14px}.room-time,.timer small,.card-kicker,.start-note,.shave-button kbd,.console-foot,.rule-number,.mission-bottom p,.mission-bottom p span,footer,.strikes{font-size:12px}.meter-label .awareness-label{font-size:14px}.scene-caption{font-size:14px}.brand small{margin-top:4px}.start-card p{font-size:15px}@media(max-width:800px){.brand small{font-size:10px}.eyebrow{font-size:12px}.room-label,.status-bubble,.meter-label{font-size:12px}.scene-caption{font-size:12px}.start-note,.console-foot,footer{font-size:12px}.console-foot span:last-child{display:none}.start-card p{font-size:14px}.shave-button kbd{font-size:11px}}
@media(min-width:1450px){.scene{aspect-ratio:1.8}.topbar{height:104px}main{padding-top:36px}}@media(min-width:801px) and (max-height:850px){.topbar{height:85px}main{padding-top:24px;padding-bottom:24px}.scene{aspect-ratio:1.85}.rules{gap:17px;margin-top:25px}.mission-bottom{margin-top:22px}.game-top{height:51px}.console{padding-top:16px;padding-bottom:13px}.meters{margin-bottom:16px}}
#world{touch-action:none;user-select:none;-webkit-user-select:none}#world:focus-visible{outline:2px solid var(--yellow);outline-offset:-3px}.scene.tool-visible #world{cursor:none}.scene .status-bubble{pointer-events:none}.shave-button{cursor:default;box-shadow:none;transition:background .15s}.shave-button.held{transform:none;box-shadow:none;background:#d3da77}.shave-button.inactive{background:#2d4246;border-color:#4b5d5d;color:#859997}.shave-button kbd{font-size:11px}@media(max-width:800px){.shave-button{font-size:13px;gap:7px}.shave-button kbd{display:none}}
.room-time.hairstyle{font-family:inherit;letter-spacing:0;font-size:12px;color:var(--yellow);border-left:1px solid #53635c;padding-left:10px;margin-left:2px}@media(max-width:1100px){.room-label{gap:6px}.room-time.hairstyle{display:inline;font-size:11px;padding-left:7px}.strikes{margin-left:10px;margin-right:9px}.strikes #strikeIcons{display:none}}@media(max-width:430px){.room-label{font-size:11px}.room-time.hairstyle{font-size:10px}.timer{font-size:17px;min-width:75px}.strikes{margin-left:auto;margin-right:5px}}

.stage-banner{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;padding:12px 22px;background:#182e32;border-bottom:1px solid #ffffff12;font-size:12px;color:#a8b9b6}.stage-banner strong{color:#e8eea6;font-weight:600}.restart-campaign{display:block;margin:12px auto 0;border:0;background:transparent;color:#bac6bf;text-decoration:underline;font:inherit;font-size:12px;cursor:pointer}.restart-campaign[hidden]{display:none}.mission-bottom b{font-weight:400}@media(max-width:600px){.stage-banner{padding:10px 14px;font-size:11px;gap:4px 10px}}

/* Keep every result action reachable even inside a short mobile scene. */
.start-card{max-height:calc(100% - 16px);overflow-y:auto;overscroll-behavior:contain}.card-kicker{letter-spacing:1.4px}@media(max-width:430px){.scene{width:100%;min-height:330px}.start-card{padding:14px 16px}.start-card h2{font-size:25px;margin:8px 0}.start-card p{font-size:12px;margin-bottom:12px}.start-note{font-size:10px;margin-top:8px}.result-stats{font-size:11px;margin-bottom:12px;padding:8px}}

.personal-best{flex-basis:100%;font-size:11px;color:#b4c7bc;font-variant-numeric:tabular-nums}
