:root{font-family:ui-sans-serif,system-ui,sans-serif;color:#eee9dd;background:#091316;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{display:block}button{font:inherit;cursor:pointer;color:inherit}#hud{position:fixed;inset:0;pointer-events:none;padding:28px 34px;background:radial-gradient(ellipse,transparent 45%,#0008)}.top{display:flex;justify-content:space-between;align-items:start}.label{font-size:11px;letter-spacing:3px;color:#bbd7d4}.title{font-size:23px;margin-top:7px}.pill{padding:12px 17px;border:1px solid #bbd7d433;border-radius:50px;background:#06101699;font-size:13px}#cross{position:absolute;top:50%;left:50%;width:4px;height:4px;border-radius:50%;background:#fff9;box-shadow:0 0 8px #fff5}#prompt{position:absolute;top:57%;width:calc(100% - 68px);text-align:center;color:#f2d991;font-size:16px}#hint{position:absolute;bottom:34px;left:34px;font-size:12px;color:#acc3c4;line-height:1.9}.overlay{position:fixed;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#041015e8,#04101580 65%,#04101533);padding:28px}.card{width:min(620px,100%);margin-right:25vw}.eyebrow{font-size:11px;letter-spacing:4px;color:#e3bc73}h1{font-size:clamp(45px,7vw,88px);line-height:1.02;font-weight:500;letter-spacing:-3px;margin:26px 0}p{max-width:420px;color:#c1d1d0;line-height:1.7;font-size:16px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}button{border:1px solid #adc8c433;background:#0d232acc;border-radius:9px;padding:14px 22px}button.primary{background:#eed6a4;color:#172025;border-color:transparent}button:hover{filter:brightness(1.15)}.foot{font-size:11px;margin-top:28px;color:#94aaa9;letter-spacing:1px}#sound{position:fixed;right:28px;bottom:28px;font-size:12px;z-index:3}#status{position:fixed;bottom:87px;left:34px;color:#f1d39a;font-size:14px;pointer-events:none}.hidden{display:none!important}@media(max-width:700px){.card{margin:0}#hud{padding:20px}h1{letter-spacing:-2px}#hint{left:20px;bottom:20px;max-width:65%}.title{font-size:18px}}#place{font-size:12px;color:#b5ccca;margin-top:9px}.pill{line-height:1.8}.pill small{color:#e5c895}#modes{display:flex;gap:7px;flex-wrap:wrap;margin-top:22px}#modes button{font-size:13px;padding:10px 15px}#modes button[aria-pressed=true]{background:#8aa5a0;color:#10282b;border-color:#b4ccc5}#mode-info{font-size:12px;color:#c9bc9d;margin-top:10px}.card{width:min(670px,100%)}h1{font-size:clamp(42px,6vw,76px);margin:20px 0}.overlay{overflow:auto}.foot{line-height:1.6}#status{bottom:130px;max-width:calc(100% - 80px);line-height:1.5}.atmosphere-settings{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.atmosphere-settings button{font-size:12px;padding:9px 13px}.volume{display:flex;gap:12px;align-items:center;margin-top:16px;font-size:12px;color:#c8d7d1}.volume input{accent-color:#e7ca92;width:150px}#director{max-width:440px;margin-top:16px;font-size:13px;color:#b9cdca}#director summary{cursor:pointer}#director label{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:12px 0}select{background:#153038;color:#e4e4d8;padding:8px;border:1px solid #93b3ac66;border-radius:6px}#director button{padding:9px 14px;font-size:12px}#mobile-controls{display:none}body,canvas{touch-action:none;overscroll-behavior:none}.overlay{touch-action:pan-y}button{touch-action:manipulation}.touch #mobile-controls{display:block;position:fixed;inset:0;pointer-events:none;z-index:2}.touch:has(#menu:not(.hidden)) #mobile-controls{display:none}.touch #hint{display:none}.touch #sound{top:calc(env(safe-area-inset-top,0px) + 80px);bottom:auto;right:16px;padding:8px 12px}.touch #hud{padding:calc(env(safe-area-inset-top,0px) + 12px) 16px}.touch .label{font-size:9px;letter-spacing:1px}.touch .title{font-size:18px}.touch #place{max-width:55vw;font-size:10px}.touch .pill{font-size:11px;padding:8px 12px}.touch #prompt{top:auto;bottom:180px;left:15%;width:70%;font-size:14px}.touch #status{left:20px;bottom:155px;max-width:80vw;font-size:12px}#joystick{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 22px);left:calc(env(safe-area-inset-left,0px) + 25px);width:125px;height:125px;border-radius:50%;background:#17313899;border:1px solid #c3d2c555;pointer-events:auto;touch-action:none}#stick{position:absolute;top:50%;left:50%;width:50px;height:50px;transform:translate(-50%,-50%);border-radius:50%;background:#c4cdbc88;border:1px solid #e6e4c2aa}.touch-actions{position:absolute;right:calc(env(safe-area-inset-right,0px) + 16px);bottom:calc(env(safe-area-inset-bottom,0px) + 18px);display:grid;grid-template-columns:repeat(2,auto);gap:8px;pointer-events:auto}.touch-actions button{padding:14px 12px;min-height:48px;font-size:12px;background:#15323ce6;touch-action:none}#touch-pause{position:absolute;right:16px;top:calc(env(safe-area-inset-top,0px) + 125px);pointer-events:auto;font-size:12px;padding:8px 12px}.touch-look-hint{position:absolute;right:25px;bottom:135px;font-size:10px;color:#b4c4c2}.touch .card{margin:0 auto;max-width:550px}.touch .overlay{padding:24px;align-items:start}.touch h1{font-size:44px;margin:18px 0}.touch .card p{font-size:13px;line-height:1.5}.touch .actions,.touch .foot{margin-top:16px}.touch #mode-info{font-size:11px}@media(orientation:landscape)and (max-height:500px){.touch #prompt{bottom:150px}.touch #sound{top:80px}.touch #touch-pause{top:122px}.touch #status{bottom:145px}.touch #joystick{width:110px;height:110px;bottom:16px}.touch .overlay{padding:16px 8vw}.touch h1{font-size:36px}.touch .card{max-width:700px}.touch #modes{margin-top:12px}}#station-panel{position:fixed;inset:0;z-index:10;display:grid;place-items:end center;padding:24px;background:#06151988;touch-action:manipulation}.station-card{width:min(760px,100%);background:#0c2026ed;border:1px solid #bbceb855;padding:20px;border-radius:16px;color:#e8dfc9}#station-panel h2{font-weight:500;font-size:24px;margin:8px 0}#station-close{float:right;font-size:12px;padding:9px 13px}#piano-keys{display:flex;gap:4px;margin:22px 0 12px}#piano-keys button{background:#eee6d1;color:#203237;flex:1;min-width:0;padding:30px 0 16px;border-radius:0 0 7px 7px}#piano-keys button span{display:block;font-size:11px;margin-top:14px}#piano-keys button.pressed{background:#d1b47b;transform:translateY(5px)}#last-note{font-size:12px;color:#cabf9f}#feed-buttons{display:flex;gap:7px;flex-wrap:wrap}#station-panel.cctv{background:linear-gradient(transparent 50%,#081719dd);pointer-events:none}#station-panel.cctv .station-card{pointer-events:auto}#camera-message{font-size:15px;color:#e5ba8a;min-height:25px}.station:not(.camera-station) #mobile-controls,.station #sound,.station #prompt,.station #hint{display:none!important}.swimming #hud{box-shadow:inset 0 -45px 90px #2b9ab73b}@media(max-width:700px){#station-panel{padding:10px}.station-card{padding:14px}#piano-keys button{padding:24px 0 12px}#piano-keys{gap:2px}#station-close{font-size:10px}#station-panel p{font-size:12px}}@media(max-height:500px){#station-panel{padding:10px}.station-card{padding:12px}#piano-keys{margin:12px 0 8px}#piano-keys button{padding:15px 0 8px}#station-panel p{margin:8px 0;font-size:12px}}#feed-buttons{max-height:150px;overflow-y:auto}#feed-buttons button{padding:8px 10px;font-size:12px}#feed-buttons button[aria-pressed=true]{background:#adbd98;color:#10252a}@media(max-height:500px){#feed-buttons{max-height:88px}#cctv-panel h2{font-size:18px}#camera-message{min-height:18px;margin:6px 0}}#monitor-banner{position:absolute;top:18px;left:50%;transform:translate(-50%);padding:10px 18px;background:#07181ef2;border:1px solid #9cbdbb66;border-radius:9px;font-size:12px;text-align:center;max-width:90%;width:max-content}.camera-station #station-panel{box-shadow:inset 0 0 0 10px #03090d}.camera-station #station-close{background:#eed6a4;color:#172025;font-weight:600}.touch.camera-station .touch-actions,.touch.camera-station .touch-look-hint{display:none}.touch.camera-station .station-card{width:calc(100% - 150px);margin-left:150px}.touch.camera-station #monitor-banner{top:10px;font-size:10px;max-width:66%}@media(max-width:500px){.touch.camera-station .station-card{width:100%;margin:0}.touch.camera-station #station-panel{padding-bottom:160px}.touch.camera-station #feed-buttons{max-height:95px}}.touch #touch-use{grid-column:1 / -1;background:#eed6a4;color:#172025;border-color:transparent;font-size:15px;min-height:50px;max-width:220px}.touch button:disabled{opacity:.5;cursor:default}.touch #touch-use:disabled{background:#17313d;color:#bbccce;border:1px solid #adc8c455}.touch .touch-actions{width:220px;grid-template-columns:1fr 1fr}.touch .touch-actions button{min-height:44px;padding:11px 8px}.touch #prompt{bottom:200px}.touch .touch-look-hint{bottom:190px}.touch #status{bottom:215px}.station-toolbar{display:flex;gap:8px;justify-content:flex-end;position:sticky;top:0;z-index:1;background:#0c2026;padding-bottom:10px}#station-close{float:none;background:#eed6a4;color:#172025}#station-pause{font-size:12px;padding:10px 14px}.station-card{max-height:calc(100dvh - 60px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;touch-action:pan-y;overscroll-behavior:contain}.touch #station-close,.touch #station-pause{min-height:44px;font-size:13px;padding:10px 14px}.touch #feed-buttons button{min-height:44px;font-size:12px}.touch #feed-buttons{max-height:140px;touch-action:pan-y;overscroll-behavior:contain}.touch.station #touch-pause{display:none}.touch #station-panel{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));padding-right:calc(10px + env(safe-area-inset-right,0px));padding-left:calc(10px + env(safe-area-inset-left,0px))}.touch .station-card p{font-size:12px;line-height:1.5}.touch #camera-message:empty{display:none}.touch #piano-keys button{min-width:44px;min-height:64px}.touch #piano-keys{overflow-x:auto;touch-action:pan-x;padding-bottom:6px}.touch #piano-keys button span{margin-top:8px}.touch.camera-station .station-card{max-height:calc(100dvh - 65px)}.touch.camera-station #station-panel{pointer-events:none}.touch.camera-station .station-card{pointer-events:auto}@media(orientation:portrait){.touch #piano-keys{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));overflow:visible}.touch.camera-station #station-panel{padding-bottom:165px}.touch.camera-station .station-card{max-height:calc(100dvh - 220px);width:100%;margin:0}.touch #station-panel:not(.cctv){padding-bottom:20px}.touch .touch-actions{width:190px}.touch #touch-use{font-size:14px}.touch #prompt{left:15px;width:calc(100% - 30px);bottom:205px}.touch .top .title{font-size:16px}}@media(orientation:landscape)and (max-height:450px){.touch #station-panel{padding-top:48px}.touch .station-card{padding:10px}.touch #station-panel h2{font-size:18px;margin:4px 0}.touch #station-panel p{margin:6px 0}.touch #feed-buttons{max-height:100px}.touch #monitor-banner{font-size:9px;padding:7px 12px}.touch #station-close,.touch #station-pause{min-height:44px}.touch .touch-actions{width:210px;bottom:calc(10px + env(safe-area-inset-bottom,0px))}.touch #prompt{bottom:180px}.touch .touch-look-hint{display:none}}#secret-home{pointer-events:auto;display:block;background:none;border:0;padding:0;text-align:left;color:inherit;font-weight:inherit;min-height:36px}.touch #secret-home{min-height:44px}#cheat-panel{z-index:40;background:#061015d9}#cheat-panel .card{margin:0;max-width:560px;background:#11272d;padding:24px;border:1px solid #8ca7a866;border-radius:14px;max-height:calc(100dvh - 30px);overflow:auto}#cheat-panel input{display:block;width:100%;font:inherit;padding:14px;background:#06171c;color:#f0e6cc;border:1px solid #b0c9c5;border-radius:8px;margin-top:8px}#cheat-panel button{min-height:44px}#cheat-message{font-size:13px;min-height:24px}#cheat-disable{margin-top:18px}.cheat-open #mobile-controls,.cheat-open #sound{display:none!important}.touch #cheat-panel{padding:12px;align-items:center}.touch #cheat-panel .card{padding:18px}.touch #cheat-panel h2{font-size:22px;margin:0 0 12px}.touch #cheat-panel p{font-size:13px}.touch #cheat-panel .actions{margin-top:14px}#secret-badge{font-size:10px;color:#edc294}#secret-menu{font-size:12px;padding:9px 13px;margin-top:12px}#cheat-panel .card{display:flex;flex-direction:column;width:min(680px,100%);overflow:hidden}#cheat-panel .cheat-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}#cheat-panel .actions{flex-shrink:0;margin-top:12px;gap:8px}#cheat-panel .actions button{padding:10px 16px}#cheat-panel .cheat-entry label{font-size:13px}#cheat-panel input{font-size:22px;letter-spacing:4px;margin:7px 0 10px;padding:10px 14px}#cheat-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#cheat-keypad button{min-height:44px;padding:8px;font-size:18px}#cheat-keypad button[data-code-key=clear]{font-size:11px}#cheat-panel #cheat-message{font-size:12px;line-height:1.4;min-height:18px;margin:10px 0 0}#cheat-panel #cheat-disable{margin-top:0}#cheat-panel h2{margin:0 0 10px}.touch #cheat-panel .cheat-description{font-size:12px;line-height:1.5}.touch #cheat-panel .card{max-height:calc(100dvh - 24px)}@media(orientation:landscape)and (max-height:550px){#cheat-panel .cheat-body{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px}#cheat-keypad{grid-template-columns:repeat(6,1fr);gap:5px}#cheat-panel .cheat-description{margin:0}#cheat-panel .card{padding:14px}#cheat-panel .actions{justify-content:flex-end}#cheat-panel input{margin-bottom:6px}#cheat-panel #cheat-message{margin-top:6px}}#storm-hud{position:fixed;top:110px;left:50%;transform:translate(-50%);z-index:5;display:flex;align-items:center;gap:12px;max-width:90vw;width:max-content;padding:10px 16px;border:1px solid #e7d09077;border-radius:12px;background:#182b2de8;color:#f6e1b5;font-size:14px;pointer-events:none}#shelter-arrow{display:block;font-size:30px;line-height:1;flex-shrink:0}#storm-message{max-width:330px}.touch #storm-hud{top:95px;font-size:12px;padding:8px 12px;max-width:85vw}.cheat-open #storm-hud,html:has(#menu:not(.hidden)) #storm-hud{display:none}#egg-journal{pointer-events:auto;display:block;padding:4px 0;margin-top:4px;border:0;background:transparent;font-size:11px;color:#d9c799;min-height:32px}#egg-panel{z-index:35;background:#061015de}#egg-panel .card{margin:0;width:min(580px,100%);max-height:calc(100dvh - 24px);overflow:auto;background:#11272d;border:1px solid #aeb99066;border-radius:14px;padding:20px;touch-action:pan-y}#egg-panel h2{font-size:26px;font-weight:500;margin:16px 0}#egg-panel p{font-size:14px;line-height:1.6}#egg-panel details{font-size:13px;color:#b5c9c2}#egg-panel summary{cursor:pointer;padding:12px 0}#egg-sources{display:flex;gap:14px;flex-wrap:wrap}#egg-sources a{color:#eed6a4;padding:10px 0}#egg-actions,#egg-list{display:flex;gap:10px;flex-wrap:wrap}#egg-list button{width:100%;text-align:left}#egg-panel button{min-height:44px}#egg-result{color:#eed6a4}.egg-toolbar{position:sticky;top:-20px;background:#11272d;padding:8px 0;z-index:1}.egg-open #mobile-controls,.egg-open #sound,.egg-open #storm-hud{display:none!important}.touch #egg-panel{padding:12px;align-items:center}.touch #egg-panel .card{padding:14px}.touch #egg-panel h2{font-size:22px}.touch #egg-journal{font-size:10px;min-height:28px}html:has(#cheat-panel:not(.hidden)) #egg-journal{pointer-events:none}#cross{display:none}.touch #cross,.looking #cross{display:block}#update-game{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:50%;transform:translate(-50%);z-index:100;background:#eed6a4;color:#172025;max-width:90vw;font-size:13px;padding:12px}#update-game[hidden]{display:none}#pause-game{position:fixed;right:28px;bottom:88px;z-index:3;font-size:12px}.touch #pause-game{display:none}#restart{border-color:#eed6a4;color:#eed6a4;min-height:44px}.touch #touch-jump{grid-column:1 / -1;background:#36535b}.touch .touch-look-hint{bottom:245px}.touch #prompt{bottom:250px}#touch-tag{display:none}.touch.pursuit-active #touch-tag{display:block}#pursuit-hud{position:fixed;top:150px;left:50%;transform:translate(-50%);z-index:4;background:#153544d9;padding:10px 14px;border-radius:8px;color:#f1d9a4;font-size:13px;max-width:80vw;pointer-events:none}#online-panel{position:fixed;top:205px;left:24px;z-index:5;max-width:min(340px,calc(100vw - 48px));font-size:12px;color:#e6e5cf;background:#102b35e8;border:1px solid #9fc3c344;border-radius:10px}#online-panel summary{padding:10px 12px;cursor:pointer;min-height:40px;box-sizing:border-box}#online-panel .online-body{padding:0 12px 12px;max-height:45dvh;overflow:auto}#online-roster{padding-left:18px;max-height:150px;overflow:auto}#online-roster li{margin:7px 0}#online-panel button{min-height:44px;margin:3px;padding:8px;font-size:12px}#online-panel p{line-height:1.45}#online-panel[open]{box-shadow:0 4px 30px #0008}.touch #online-panel{top:170px;left:16px;max-width:calc(100vw - 32px)}.touch #online-panel summary{max-width:260px;font-size:11px}.touch #online-panel .online-body{max-height:40dvh}.touch #online-panel[open]{z-index:30}@media(orientation:landscape)and (max-height:500px){.touch #online-panel{top:82px;left:16px}.touch #online-panel summary{max-width:280px;padding:8px}.touch #online-panel .online-body{max-height:55dvh}}.touch.pursuit-active #pursuit-hud{top:220px}@media(orientation:landscape)and (max-height:500px){.touch.pursuit-active #pursuit-hud{top:130px;left:16px;transform:none;max-width:40vw;font-size:11px}}#entrance-controls{position:fixed;z-index:12;left:50%;top:max(90px,env(safe-area-inset-top));transform:translate(-50%);text-align:center;background:#102528ed;border:1px solid #8daaa166;border-radius:14px;padding:8px;max-width:90vw;pointer-events:auto}#entrance-controls[hidden]{display:none}#entrance-state{display:block;color:#eceddb;font-size:12px;margin-bottom:6px}#entrance-controls>div{display:flex;gap:8px}#entrance-controls button{min-height:46px;padding:8px 14px;font-size:14px;white-space:nowrap;border:2px solid transparent}#entrance-close{background:#a92e35;color:#fff}#entrance-open{background:#237a50;color:#fff}#entrance-controls button:disabled{opacity:.5;border-color:#fff9}@media(max-height:500px){#entrance-controls{top:8px}#entrance-controls button{min-height:44px;padding:6px 12px}}body>canvas{position:fixed;inset:0;max-width:100vw;max-height:100dvh}#phase-badge{font-size:10px;color:#aee4e4}#island-map{position:fixed;right:28px;bottom:148px;z-index:6;font-size:12px;min-height:44px}#island-panel{z-index:34;background:#091c24ed;place-items:center;padding:18px}#island-panel .card{margin:0;width:min(680px,100%);max-height:calc(100dvh - 36px);overflow:auto;padding:20px;background:#15343a;border:1px solid #b2cac277;border-radius:16px;touch-action:pan-y}#island-panel h2{font-size:26px;font-weight:500;margin:0 0 12px}#island-panel p{font-size:13px;line-height:1.55;max-width:100%}.island-destinations,.island-events{display:flex;flex-wrap:wrap;gap:8px}#island-panel button{font-size:13px;padding:10px 14px;min-height:44px}#island-panel .island-destinations button{background:#31565c}#island-close{position:sticky;bottom:0;display:block;margin:16px 0 0;box-shadow:0 0 0 8px #15343a}#island-panel-message{font-size:13px;color:#efd09a;margin-top:10px}#island-hud{position:fixed;top:110px;left:50%;transform:translate(-50%);z-index:6;padding:10px 14px;border-radius:10px;background:#163d41eb;color:#f0e0b7;font-size:13px;max-width:80vw;text-align:center;pointer-events:none}#island-dig{position:fixed;bottom:25px;left:50%;transform:translate(-50%);z-index:6;min-height:48px;background:#967342;color:#fff;font-size:14px}#island-hud[hidden],#island-dig[hidden],#island-map[hidden]{display:none}html:has(#island-panel:not(.hidden)) #mobile-controls,html:has(#island-panel:not(.hidden)) #entrance-controls{display:none!important}html:has(#menu:not(.hidden)) #island-dig,html:has(#cheat-panel:not(.hidden)) #island-map,html:has(#egg-panel:not(.hidden)) #island-map{display:none}.touch #island-map{inset:222px auto auto 16px;padding:8px 12px}.touch #island-dig{left:25px;transform:none;bottom:160px;padding:10px 22px}.touch #island-hud{top:280px;width:300px;max-width:85vw;font-size:12px}@media(orientation:landscape)and (max-height:550px){#island-panel .card{padding:14px}#island-panel p{font-size:12px;margin:8px 0}.island-destinations{gap:5px}#island-panel button{padding:8px 10px}#island-close{margin-top:10px}.touch #island-map{top:130px}.touch #island-dig{bottom:140px}.touch #island-hud{top:110px;max-width:34vw}}#island-panel h3{font-size:16px;font-weight:500;margin:18px 0 10px}#island-inventory{font-size:12px;color:#d7e7df;margin-bottom:10px}#island-panel .card{scroll-padding-bottom:80px}#giant-badge{font-size:10px;color:#efd6a0}#battle-hud{position:fixed;inset:0;z-index:6;pointer-events:none;padding:22px;color:#edf1e8}#battle-hud button{pointer-events:auto;min-height:44px}.battle-top{display:flex;align-items:center;gap:20px;width:min(620px,calc(100% - 220px));margin:auto}.battle-meter{flex:1;min-width:0}.battle-meter>span{display:block;font-size:12px;margin-bottom:6px}.battle-hearts{display:flex;gap:4px;font-size:clamp(18px,2.5vw,26px);line-height:1.1;color:#ed9d8f}.battle-hearts .heart-empty{color:#8498a7}#battle-rival-health{color:#efc086}#battle-clock{font-size:24px;font-variant-numeric:tabular-nums}#battle-cue{position:absolute;left:50%;top:105px;transform:translate(-50%);text-align:center;width:80%;font-size:18px;color:#ffe0a3}#battle-help{position:absolute;bottom:30px;left:30px;font-size:13px;line-height:1.7}#battle-exit{position:absolute;top:22px;right:22px;font-size:12px;background:#102c3bea}#battle-result{pointer-events:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(470px,calc(100% - 28px));padding:24px;border:1px solid #b4d1c866;background:#142d3af5;border-radius:16px;text-align:center}#battle-result h2{font-size:28px;margin-top:0}#battle-result p{font-size:14px}#battle-result button{margin:5px}#battle-aim{position:absolute;left:50%;top:50%;width:8px;height:8px;border:1px solid #fff9;border-radius:50%;transform:translate(-50%,-50%)}.battle-hit{box-shadow:inset 0 0 70px #df99744d}.battle-active #hud,.battle-active #island-map,.battle-active #island-dig,.battle-active #island-hud,.battle-active #online-panel,.battle-active #storm-hud,.battle-active #pursuit-hud,.battle-active #status{display:none!important}.battle-active #menu{z-index:7}.battle-active #menu .card>:not(h1):not(#intro):not(.actions){display:none}.battle-active #menu #cozy,.battle-active #battle-open{display:none}.battle-active #touch-use,.battle-active #touch-drop,.battle-active #touch-flash,.battle-active #touch-run{display:none!important}.touch.battle-active #touch-tag{display:block!important;background:#c77d66;color:#fff}.touch.battle-active .touch-actions{width:180px}.touch.battle-active #battle-help{display:none}.touch.battle-active #battle-cue{font-size:14px;top:90px}.touch.battle-active #battle-hud{padding:12px}.touch.battle-active .battle-top{width:calc(100% - 160px);margin:0;gap:10px}.touch.battle-active #battle-exit{top:12px;right:12px;padding:10px;font-size:11px}.touch.battle-active #battle-clock{font-size:20px}.touch.battle-active #battle-result{max-height:calc(100dvh - 80px);overflow:auto;touch-action:pan-y}.touch.battle-active #battle-result p{font-size:12px}.touch.battle-active #battle-result h2{font-size:24px}@media(orientation:portrait){.touch.battle-active .battle-top{width:100%;padding-top:52px}.touch.battle-active #battle-cue{top:140px}.touch.battle-active #battle-exit{right:12px;top:12px}.touch.battle-active #battle-result{top:45%}}#battle-lobby{pointer-events:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 95px);overflow:auto;background:#152d3bf5;border:1px solid #accdc166;border-radius:16px;padding:22px;touch-action:pan-y}#battle-lobby h2{font-size:26px;margin:0 0 12px}#battle-lobby p{font-size:14px;margin:10px 0}#battle-lobby label{display:block;font-size:13px;margin:15px 0 8px}.battle-room-line{font-size:14px;display:flex;align-items:center;gap:16px}#battle-room-code{font-size:36px;letter-spacing:5px;color:#f1cd8f}.battle-join-line{display:flex;gap:8px}#battle-room-input{min-width:0;width:100%;font:inherit;font-size:24px;background:#0a1b27;color:#f1e9d6;border:1px solid #adc8c466;border-radius:8px;padding:8px 12px}.battle-lobby-open #mobile-controls,.battle-lobby-open #battle-help,.battle-lobby-open #battle-aim{display:none!important}#battle-lobby-message{min-height:24px}.touch #battle-lobby{padding:16px}.touch #battle-lobby h2{font-size:23px}.touch #battle-lobby p{font-size:12px}.touch #battle-room-code{font-size:30px}.touch #battle-lobby label{margin-top:10px}@media(orientation:landscape)and (max-height:450px){.touch #battle-lobby{width:min(590px,calc(100% - 80px));max-height:calc(100dvh - 80px);padding:14px}.touch #battle-lobby h2{font-size:20px;margin-bottom:6px}.touch #battle-lobby p{margin:5px 0}.touch #battle-room-code{font-size:27px}.touch .battle-join-line{max-width:400px}.touch #battle-lobby label{margin-top:6px}}#battle-opponent-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#realm-portal{position:fixed;top:95px;left:50%;transform:translate(-50%);z-index:11;min-height:44px;background:#46564deb;border-color:#b9d99c;font-size:13px}#realm-portal[hidden],#realm-hud[hidden]{display:none}#realm-hud{position:fixed;top:155px;left:50%;transform:translate(-50%);max-width:90vw;background:#122820db;color:#dce9b3;padding:8px 14px;border-radius:8px;font-size:12px;pointer-events:none;z-index:4;text-align:center}.touch.zombie-realm #touch-tag{display:block;background:#52663d}.battle-active #realm-portal,.battle-active #realm-hud,html:has(#menu:not(.hidden)) #realm-portal,html:has(#menu:not(.hidden)) #realm-hud{display:none!important}@media(orientation:landscape)and (max-height:550px){#realm-portal{top:65px;max-width:45vw;padding:9px 14px}#realm-hud{top:115px;font-size:11px;max-width:42vw}}.touch.zombie-disguise #touch-tag{display:block;background:#52663d;color:#eff3df}#secret-map-button{position:fixed;right:28px;bottom:208px;z-index:6;min-height:44px;font-size:13px;background:#293f35eb;border-color:#ced6a766}#secret-map-button[hidden],#secret-map-waypoint[hidden]{display:none}#secret-map-panel{position:fixed;inset:0;z-index:45;background:#051619ec;padding:20px;display:grid;place-items:center;touch-action:manipulation}.secret-map-card{width:min(1150px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:#142d30;border:1px solid #b3c49c66;border-radius:18px;padding:18px;overflow:hidden}.secret-map-card header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.secret-map-card h2{font-size:24px;font-weight:500;margin:0 0 4px}.secret-map-card p{font-size:13px;line-height:1.45;margin:0;max-width:none}.secret-map-card button{min-height:44px;padding:9px 13px;font-size:12px}#secret-map-close{background:#eed6a4;color:#172b2b;flex-shrink:0}.secret-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;min-height:0;gap:16px}.secret-map-board{min-height:0;position:relative;border:1px solid #9db69a55;border-radius:10px;overflow:hidden;background:#28483c;align-self:start}.secret-map-tools{display:flex;gap:5px;padding:6px;flex-wrap:wrap;background:#17362eee}.secret-map-tools button{background:#304c3b;padding:7px 10px}#secret-map-drawing{display:block;width:100%;height:auto;max-height:calc(100dvh - 230px);aspect-ratio:1040/890}.map-pin{cursor:pointer}.map-pin.selected>circle{stroke:#fff0ab;stroke-width:2}.map-pin text{pointer-events:none;font-family:system-ui,sans-serif;font-weight:600}.map-pin:focus{outline:none}.map-pin:focus>circle{stroke:#fff0ab;stroke-width:3}.secret-map-key{font-size:11px;padding:7px 12px;background:#17362eee;color:#e6e3b9}.secret-map-layout aside{display:flex;flex-direction:column;min-height:0;overflow:hidden}#secret-map-selected{background:#324b3a;color:#f4deaa;border-radius:8px;padding:10px;margin-bottom:8px;flex-shrink:0}#secret-map-places{overflow:auto;display:grid;align-content:start;gap:6px;min-height:0;touch-action:pan-y;overscroll-behavior:contain}#secret-map-places button{text-align:left;background:#203e39}#secret-map-places button[aria-pressed=true]{background:#e5d3a2;color:#17322e}.secret-map-card footer{font-size:12px;color:#b8cab4;margin-top:12px}#secret-map-waypoint{position:fixed;top:95px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:10px;background:#13322bed;border:1px solid #b0ca9055;border-radius:12px;padding:6px 8px 6px 14px;color:#efdfac;z-index:7;font-size:13px;max-width:65vw}#map-direction{font-size:30px;line-height:1;display:block}#map-clear-route{min-width:44px;min-height:44px;padding:5px;font-size:20px;background:transparent}.secret-map-open #mobile-controls,.secret-map-open #entrance-controls,.secret-map-open #realm-portal,.secret-map-open #island-map,.secret-map-open #online-panel,.secret-map-open #pause-game{display:none!important}.touch #secret-map-button{left:16px;right:auto;bottom:165px;padding:9px 12px}.touch #secret-map-panel{padding:10px}.touch .secret-map-card{padding:12px;max-height:calc(100dvh - 20px)}.touch #secret-map-waypoint{top:80px;max-width:55vw;font-size:11px}.touch #map-direction{font-size:26px}@media(max-width:650px){.secret-map-layout{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) minmax(120px,.7fr);gap:10px}.secret-map-card header{margin-bottom:8px}.secret-map-card h2{font-size:20px}.secret-map-card footer{font-size:10px;margin-top:8px}.secret-map-board{align-self:stretch;display:flex;flex-direction:column}#secret-map-drawing{min-height:0;flex:1;max-height:40dvh}#secret-map-places{grid-template-columns:1fr 1fr}#secret-map-selected{padding:7px;font-size:12px}#secret-map-panel{padding:10px}.secret-map-card{padding:12px;max-height:calc(100dvh - 20px)}}@media(orientation:landscape)and (max-height:550px){#secret-map-panel{padding:8px}.secret-map-card{padding:10px;max-height:calc(100dvh - 16px)}.secret-map-card header{margin-bottom:6px}.secret-map-card h2{font-size:18px}.secret-map-card footer{font-size:10px;margin-top:6px}.secret-map-layout{grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:1fr;gap:10px}.secret-map-board{align-self:stretch;display:flex;flex-direction:column}.secret-map-tools{padding:3px}.secret-map-tools button{padding:5px 8px}#secret-map-drawing{flex:1;min-height:0;max-height:calc(100dvh - 190px)}.secret-map-key{padding:4px 8px}.touch #secret-map-button{left:155px;bottom:18px}.touch #secret-map-waypoint{top:65px;max-width:48vw}}.secret-map-card header,.secret-map-card footer{flex-shrink:0}.secret-map-layout{flex:1}.secret-map-board{align-self:stretch;display:flex;flex-direction:column}#secret-map-drawing{flex:1;min-height:0}.secret-map-tools,.secret-map-key{flex-shrink:0}.secret-map-tools button{min-width:44px}.map-pin text{pointer-events:auto}.map-key-person,.map-target-person{color:#98e3ba}.map-key-player,.map-target-player{color:#91bcff}.map-key-zombie,.map-target-zombie{color:#ef9e83}html:has(#entrance-controls:not([hidden])) #secret-map-waypoint,html:has(#realm-portal:not([hidden])) #secret-map-waypoint{top:auto;bottom:170px}@media(orientation:portrait){.touch:has(#entrance-controls:not([hidden])) #secret-map-waypoint,.touch:has(#realm-portal:not([hidden])) #secret-map-waypoint{bottom:310px;max-width:80vw}}@media(orientation:landscape)and (max-height:550px){.touch:has(#entrance-controls:not([hidden])) #secret-map-waypoint,.touch:has(#realm-portal:not([hidden])) #secret-map-waypoint{bottom:18px;max-width:40vw}}#prison-portal{position:fixed;top:95px;left:calc(50% + 48px);z-index:11;min-height:44px;background:#3c324be8;border-color:#c1a3d5;font-size:12px}#prison-hud{position:fixed;top:102px;left:50%;transform:translate(-50%);z-index:4;max-width:85vw;background:#263c36eb;padding:9px 15px;border-radius:8px;color:#e6dfbc;text-align:center;font-size:12px;pointer-events:none}#prison-portal[hidden],#prison-hud[hidden]{display:none}#realm-portal{min-width:44px}#prison-cell-door{position:fixed;bottom:125px;left:50%;transform:translate(-50%);z-index:11;min-width:44px;min-height:48px;background:#475e53f5;font-size:14px;max-width:52vw}#prison-cell-door[hidden]{display:none}.secret-map-open #prison-cell-door,.cheat-open #prison-cell-door,.battle-active #prison-cell-door,html:has(#menu:not(.hidden)) #prison-cell-door{display:none!important}@media(orientation:portrait){.touch #prison-cell-door{bottom:290px;max-width:80vw}}html:has(#prison-portal:not([hidden])) #realm-portal{left:calc(50% - 90px);max-width:150px}.secret-map-open #prison-portal,.secret-map-open #prison-hud,.cheat-open #prison-portal,.cheat-open #prison-hud,.battle-active #prison-portal,.battle-active #prison-hud,html:has(#menu:not(.hidden)) #prison-portal,html:has(#menu:not(.hidden)) #prison-hud{display:none!important}@media(orientation:landscape)and (max-height:550px){#prison-portal{top:65px;max-width:35vw;padding:9px 12px}#prison-hud{top:70px;max-width:50vw;font-size:11px}}.map-target-hazard{color:#ffbd91!important}.secret-map-key{flex-wrap:wrap}#online-health{font-size:12px;color:#f3bb99;margin-top:7px;max-width:200px}#online-health[hidden]{display:none}#creator-open{position:fixed;right:24px;bottom:235px;z-index:11;min-height:44px;background:#594c6aea}#creator-open[hidden],#creator-flight[hidden]{display:none}.creator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.creator-grid button{min-height:54px}#creator-clue .card{max-width:580px}#creator-answer{font-family:monospace;font-size:25px;letter-spacing:5px;color:#f3d2a3}#creator-flight{position:fixed;bottom:310px;right:24px;display:flex;gap:8px;z-index:11}#creator-flight button{min-width:50px;min-height:50px;font-size:24px}html:not(.touch) #creator-flight{bottom:290px}.creator-menu #mobile-controls,.creator-menu #creator-open,.creator-menu #creator-flight,.creator-menu #realm-portal,.creator-menu #prison-portal,.creator-menu #prison-cell-door,.creator-menu #online-panel,.creator-menu #secret-map-button,.creator-menu #island-map,.creator-menu #pause-game,.creator-special #island-map,.creator-special #secret-map-button,.creator-special #realm-portal,.creator-special #prison-portal,.creator-special #prison-cell-door,.creator-special #entrance-controls,.creator-special #realm-hud,.creator-special #secret-map-waypoint,.creator-special #online-panel{display:none!important}.secret-map-open #creator-open,.secret-map-open #creator-flight,.cheat-open #creator-open,.cheat-open #creator-flight,.battle-active #creator-open,.battle-active #creator-flight,html:has(#menu:not(.hidden)) #creator-open,html:has(#menu:not(.hidden)) #creator-flight{display:none!important}@media(orientation:portrait){.touch #creator-open{right:16px;bottom:245px}.touch #creator-flight{bottom:305px;right:16px}}@media(orientation:landscape)and (max-height:550px){.touch #creator-open{left:210px;right:auto;bottom:18px}.touch #creator-flight{left:210px;right:auto;bottom:76px}.creator-grid{gap:7px;margin:10px 0}.creator-grid button{min-height:46px}}#observation-settings{margin-top:18px;font-size:13px;line-height:1.5;color:#c2d0d2}#observation-settings summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0}#observation-settings p{font-size:13px;line-height:1.5}#observation-settings label{display:flex;gap:10px;align-items:center;margin:10px 0;min-height:44px;flex-wrap:wrap}#observation-settings input[type=checkbox]{width:24px;height:24px}#observation-settings select{min-height:44px;max-width:100%}.snow-base-active #island-map,.snow-base-active #island-hud,.snow-base-active #island-dig,.snow-base-active #secret-map-button,.snow-base-active #secret-map-waypoint,.snow-base-active #realm-portal,.snow-base-active #realm-hud,.snow-base-active #prison-portal,.snow-base-active #prison-cell-door,.snow-base-active #entrance-controls,.snow-base-active #online-panel,.snow-base-active #creator-open,.snow-base-active #creator-flight,.snow-base-active #touch-tag,.snow-base-active #touch-drop,.snow-base-active #battle-open{display:none!important}#snow-base-mask{position:fixed;top:calc(95px + env(safe-area-inset-top,0px));left:50%;transform:translate(-50%);z-index:12;min-height:44px;max-width:70vw;font-size:13px;background:#35484ded;padding:10px 15px}#snow-base-mask[hidden]{display:none}.touch #snow-base-mask{top:calc(115px + env(safe-area-inset-top,0px));max-width:60vw}@media(orientation:landscape)and (max-height:550px){.touch #snow-base-mask{top:14px;max-width:45vw}}#quick-settings{margin:16px 0;padding:14px;border:1px solid #adc8c455;border-radius:12px;background:#17333b}#quick-settings .quick-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}#quick-settings button{min-height:44px;padding:10px 13px;font-size:13px}#quick-settings label{display:block;font-size:13px;color:#e6d7b6;margin:8px 0}#quick-settings select{display:block;width:100%;min-height:44px;font:inherit;font-size:14px}#quick-settings #music-title{font-size:12px;margin-top:8px;min-height:18px;color:#c9d9d5}#quick-settings .volume{display:flex;margin:8px 0 0;align-items:center;flex-wrap:wrap;gap:8px}#quick-settings .volume input{flex:1;min-width:110px}#quick-settings button:disabled,#quick-settings select:disabled{opacity:.6}@media(orientation:landscape)and (max-height:550px){#menu #intro{display:none}#quick-settings{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin:10px 0;padding:10px}#quick-settings .quick-buttons{grid-row:1 / 4;margin:0;align-content:start}#quick-settings>label:not(.volume){margin:0}#quick-settings #music-title{margin:0}#quick-settings .volume{grid-column:1 / -1;margin:0}}html:has(#menu:not(.hidden)) :is(#snow-base-mask,#hud,#status,#sound,#pause-game,#island-map,#island-hud,#secret-map-button,#secret-map-waypoint,#online-panel,#entrance-controls,#storm-hud,#pursuit-hud){visibility:hidden!important;pointer-events:none!important}#menu{z-index:20;background:linear-gradient(110deg,#07191bf5,#10272bec 65%,#10272bb8);align-items:start;scrollbar-gutter:stable;padding:36px max(24px,6vw)}#menu .card{margin:0 auto;width:min(680px,100%);padding-bottom:24px}#menu h1{font-size:clamp(38px,6vw,64px);line-height:1.06;letter-spacing:-1.5px;margin:18px 0}#menu #intro{font-size:16px;max-width:540px;line-height:1.6}#menu .actions{margin:20px 0;gap:10px}#menu .actions button{min-height:48px}.menu-section{border-top:1px solid #bbd7d42e;margin-top:14px;padding-top:4px}.menu-section>summary{cursor:pointer;min-height:48px;padding:14px 0;line-height:1.4;color:#e4d8bb}.menu-section p{max-width:580px;font-size:14px;line-height:1.6}#menu .foot{letter-spacing:0;font-size:12px;margin-top:20px}button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #efcf91;outline-offset:4px}@media(max-width:700px){#menu{padding:24px 20px}#menu .card{max-width:550px}#menu #intro{font-size:15px}#menu #modes{gap:6px}#menu #modes button{min-height:44px;padding:10px 12px}.menu-section>summary{font-size:15px}}@media(orientation:landscape)and (max-height:550px){#menu{padding:16px 6vw}#menu h1{font-size:36px}#menu h1 br{display:none}#menu #intro{max-width:100%;margin:8px 0}#menu #modes{margin-top:12px}#menu .actions{margin:14px 0}}#tag-hud{position:fixed;inset:0;z-index:6;color:#eff4ed;pointer-events:none;padding:16px}#tag-hud[hidden],#tag-hud [hidden]{display:none!important}#tag-hud button,#tag-hud input{pointer-events:auto;min-height:44px}#tag-top{display:flex;align-items:center;gap:12px;max-width:900px;margin:auto;padding:8px 12px;background:#142d3aec;border-radius:12px}#tag-role{flex:1;font-size:15px}#tag-timer{font-size:24px;font-variant-numeric:tabular-nums}#tag-exit{font-size:12px;padding:10px}#tag-cue{text-align:center;margin:12px auto;font-size:16px;max-width:85vw;text-shadow:0 1px 4px #000}#tag-countdown{position:absolute;top:35%;left:50%;transform:translate(-50%);font-size:clamp(32px,8vw,82px);font-weight:700;text-align:center;color:#ffe2a3;text-shadow:0 2px 12px #000;max-width:85vw}#tag-members{position:absolute;bottom:12px;left:50%;transform:translate(-50%);width:min(650px,55vw);text-align:center;font-size:12px;color:#ffe6ba;text-shadow:0 2px 5px #000}#tag-lobby,#tag-finish{pointer-events:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 160px);overflow:auto;touch-action:pan-y;padding:22px;background:#142d3af7;border:1px solid #c0ded066;border-radius:16px}#tag-lobby h2,#tag-finish h2{font-size:25px;margin:0 0 12px}#tag-lobby h3{font-size:16px;margin:16px 0 8px}#tag-lobby p,#tag-finish p{font-size:13px;line-height:1.55;margin:10px 0}#tag-code{font-size:28px;letter-spacing:4px;color:#ffe1a6}#tag-join-form label{display:block;font-size:13px;margin:12px 0 6px}#tag-join-form>div,.tag-votes{display:flex;gap:8px}#tag-code-input{width:100%;min-width:0;border:1px solid #9ebbb7;border-radius:8px;background:#0c202a;color:#fff2d8;padding:8px 12px;font:inherit;font-size:22px}#tag-roster{font-size:13px;line-height:1.65;padding-left:20px}#tag-notice{min-height:20px}.tag-votes>button{flex:1;font-size:13px}.tag-votes>[aria-pressed=true]{background:#8ea9a1;color:#0b252a}.tag-active #hud,.tag-active #status,.tag-active #online-panel,.tag-active #online-health,.tag-active #island-map,.tag-active #island-dig,.tag-active #island-hud,.tag-active #storm-hud,.tag-active #pursuit-hud,.tag-active #realm-portal,.tag-active #realm-hud,.tag-active #prison-portal,.tag-active #prison-hud,.tag-active #prison-cell-door,.tag-active #creator-open,.tag-active #creator-flight,.tag-active #snow-base-mask,.tag-active #touch-use,.tag-active #touch-drop,.tag-active #touch-flash,.tag-active #touch-tag,.tag-lobby #mobile-controls{display:none!important}.tag-active #menu{z-index:8}.tag-active #battle-open,.tag-active #tag-open,.tag-active #secret-menu,.tag-active #secret-home{display:none!important}.touch.tag-active #tag-members{display:none}.touch.tag-active #tag-top{gap:6px;padding:7px}.touch.tag-active #tag-role{font-size:12px}.touch.tag-active #tag-cue{font-size:12px;margin:6px auto}.touch.tag-active #tag-hud{padding:8px}.touch.tag-active #tag-countdown{top:35%;font-size:40px}.touch.tag-active #tag-lobby,.touch.tag-active #tag-finish{max-height:calc(100dvh - 120px);padding:16px}.touch.tag-active #tag-lobby h2{font-size:21px}@media(orientation:landscape)and (max-height:500px){#tag-lobby,#tag-finish{width:min(680px,calc(100% - 60px));max-height:calc(100dvh - 105px);padding:14px}#tag-lobby h2{font-size:20px}#tag-lobby p{font-size:12px;margin:6px 0}#tag-roster{columns:2;margin:8px 0}#tag-lobby h3{margin-top:10px}#tag-members{display:none}}.tag-active #modes,.tag-active #mode-info,.tag-active #cozy,.tag-active #environment-settings,.tag-active #time-of-day,.tag-active #world-guide,.tag-active #restart{display:none!important}#tag-friend-rooms{display:grid;gap:8px}#tag-friend-rooms button{width:100%;min-height:48px;text-align:left;font-size:14px}#tag-you{color:#eed6a4}#tag-manual{margin-top:14px;padding:10px 0;border-top:1px solid #b8c9bf33}#tag-manual summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px}#tag-rooms-empty{color:#c1d1d0}#tag-manual[open]{padding-bottom:10px}.creator-backrooms:not(.creator-menu):not(.tag-active) #online-panel{display:block!important}
