:root{--ink:#d8dec6;--muted:#929f8a;--olive:#b3bc83;--rust:#ac5c47;--dark:#07100c;--line:rgba(163,181,144,.22);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:var(--ink);background:#060d0a;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select,input{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:rgba(16,29,21,.82);transition:background .15s,border-color .15s}button:hover{background:#243a2a;border-color:#8c9d72}button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:2px solid #becb88;outline-offset:3px}button:disabled{opacity:.44;cursor:not-allowed}select{color:var(--ink);background:#111e16;border:1px solid var(--line);border-radius:2px;padding:9px 12px;max-width:100%}input{color:#e4e8d1;background:#0f2016;border:1px solid #6e8057;border-radius:3px;padding:14px;font-size:24px;letter-spacing:.24em;width:100%}h1,h2,h3,p{margin-top:0}button.primary,button.secondary{padding:16px 22px;text-align:center;font-weight:700;min-height:52px;letter-spacing:.02em}.primary{background:#b8bf92;color:#182113;border:1px solid #c0c9a0}.primary:hover{background:#ced4ae;color:#10160c}.secondary{background:rgba(8,19,12,.65)}.text-button{background:none;border:0;padding:5px 0;color:#afb99d;border-bottom:1px solid #52644a}.icon-button{height:38px;min-width:38px;padding:6px;font-size:19px;background:rgba(11,24,15,.70);border-radius:2px}.eyebrow{font-family:ui-monospace,monospace;letter-spacing:.19em;font-size:11px;line-height:1.7;color:var(--muted)}[hidden]{display:none!important}#app{position:relative;width:100vw;height:100dvh;min-height:340px;isolation:isolate;overflow:hidden}#world{position:absolute;inset:0;width:100%;height:100%;touch-action:none;image-rendering:auto;outline:none}#grain{position:absolute;inset:0;pointer-events:none;opacity:.08;background:repeating-linear-gradient(0deg,transparent 0px,transparent 2px,#080d09 3px);z-index:1}#dangerWash{position:absolute;inset:0;box-shadow:inset 0 0 120px 30px #84241c;pointer-events:none;opacity:0;z-index:2;transition:opacity .4s}#topbar{position:absolute;top:0;left:0;right:0;z-index:20;height:64px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#05100bef,transparent);gap:12px}.brand{display:flex;align-items:center;gap:12px;font-size:13px;letter-spacing:.05em;font-weight:650}.brand b{font-weight:300;color:#718360}.brand .series{font:10px ui-monospace,monospace;letter-spacing:.13em;color:#819477}.brand-dot{width:8px;height:8px;border:1px solid #9aa76f;border-radius:50%;box-shadow:0 0 8px #62733155}.top-actions{display:flex;gap:8px;align-items:center}#lang{padding:8px;font-size:12px;max-width:125px;height:37px}#titleScreen{position:absolute;inset:0;z-index:4;overflow:auto;background:linear-gradient(90deg,#06110bf5 0%,#07120be8 30%,#05100b69 65%,#02090730);scrollbar-width:thin}.title-layout{max-width:1440px;margin:0 auto;padding:105px 7vw 75px;display:grid;grid-template-columns:minmax(350px,530px) 1fr;min-height:100%}.tinyline{display:inline-block;width:26px;height:1px;background:var(--olive);vertical-align:middle;margin-right:10px}h1{font-weight:800;font-size:clamp(55px,6.2vw,88px);letter-spacing:-.035em;line-height:1.2;margin:23px 0 7px;color:#d3d9c0;text-shadow:2px 3px 20px #021509}html:not([lang=ko]) h1{font-size:clamp(39px,5vw,69px)}.subtitle{font-size:18px;letter-spacing:.48em;color:#a5b090;margin:0 0 25px}.tagline{white-space:pre-line;font-size:24px;line-height:1.65;font-weight:500;margin-bottom:14px}.intro{font-size:14px;line-height:1.9;max-width:465px;color:#9ca98f;word-break:keep-all}.title-meta{margin:18px 0 20px;color:#7f9479;font-size:11px;letter-spacing:.1em}.start-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:430px}.mode-label{font-size:12px;color:#919f85;align-self:center}.start-controls select{font-size:12px;justify-self:stretch}.start-controls button{grid-column:1/-1}#continueBtn:not([hidden])+button{padding:10px;min-height:40px;background:#162a1b;color:#b7c2a4}.warning{font-size:11px;line-height:1.8;color:#ae9c7d;max-width:430px;margin:14px 0 12px}.title-links{display:flex;gap:28px;font-size:12px}.title-right{position:relative;min-height:480px}.case-stamp{position:absolute;right:8%;top:20px;color:#82917080;border:2px solid #7185675c;padding:10px 22px;font:15px ui-monospace,monospace;line-height:1.5;letter-spacing:.2em;transform:rotate(-8deg)}.vertical-text{position:absolute;right:0;top:36%;writing-mode:vertical-rl;letter-spacing:.22em;font:11px ui-monospace,monospace;color:#7a887961}.recording{position:absolute;bottom:50px;right:15px;color:#819375;font:10px ui-monospace,monospace;letter-spacing:.12em}.recording span,.live-dot{width:5px;height:5px;display:inline-block;border-radius:50%;background:#967545;margin-right:7px}.title-footer{position:absolute;bottom:20px;left:7vw;right:7vw;display:flex;justify-content:space-between;color:#64765f;font:9px ui-monospace,monospace;letter-spacing:.07em;gap:20px;pointer-events:none}
#hud{position:absolute;inset:0;z-index:3;pointer-events:none}.objective{position:absolute;left:32px;top:88px;max-width:370px}.objective h2{font-size:16px;line-height:1.6;margin:5px 0 10px;font-weight:550;text-shadow:0 2px 5px #000}.steps{display:flex;gap:5px}.steps i{height:3px;background:#7a886e3d;width:48px}.steps i.done{background:#a2b27e}.location{position:absolute;right:32px;top:86px;font-size:11px;letter-spacing:.08em;color:#adbaa0;text-shadow:0 1px 3px black}.timecode{font-family:monospace;font-size:10px;color:#819575;margin-left:18px}#crosshair{position:absolute;left:50%;top:48%;width:5px;height:5px;border:1px solid #bec7a3ae;border-radius:50%;transform:translate(-50%,-50%)}#crosshair.active{width:11px;height:11px;border-color:#d9dab4;box-shadow:0 0 12px #bac68744}#threat{position:absolute;bottom:167px;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:.035em;background:#051009a8;padding:8px 16px;border:1px solid #75886630;max-width:90%;text-align:center;line-height:1.5;text-shadow:0 1px 5px #000}.threat-dot{display:inline-block;width:5px;height:5px;background:#809069;margin-right:8px}#threat.chase{color:#ffd9c8;border-color:#9a544bbb;background:#3c1915cc}#threat.chase .threat-dot{background:#d3765c}#interaction{position:absolute;top:57%;left:50%;transform:translateX(-50%);background:#08170ed9;border:1px solid #9dad7959;padding:12px 18px;color:#d8ddbe;font-size:13px;white-space:nowrap;max-width:96%;text-align:center;pointer-events:auto;cursor:pointer}kbd{display:inline-block;border:1px solid #899b69;color:#d8dfb5;padding:3px 7px;margin-right:10px;font-size:11px;background:#213621}#caption{position:absolute;bottom:217px;left:50%;transform:translateX(-50%);text-align:center;max-width:75%;width:max-content;background:#04100ceb;padding:9px 16px;font-size:12px;line-height:1.7;white-space:pre-line;border-left:2px solid #8c9b72}#caption:empty{display:none}.bottom-hud{position:absolute;bottom:60px;left:32px;right:32px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.vitals{display:grid;gap:12px;width:145px;flex-shrink:0}.vitals>div>span{font:9px ui-monospace,monospace;letter-spacing:.16em;color:#a0b08d;display:block;margin-bottom:5px}.meter{height:4px;background:#94a18122;overflow:hidden}.meter i{display:block;height:100%;background:#aebc89;width:100%}.meter.noise i{background:#b5895d;width:0}.inventory{display:flex;gap:7px;pointer-events:auto;flex-wrap:wrap;justify-content:center;max-width:400px}.inv-slot{position:relative;width:49px;height:53px;display:flex;align-items:center;justify-content:center;border:1px solid #7180623b;color:#64715f;background:#08150b7a;font-family:monospace;font-size:21px}.inv-slot.owned{border-color:#9dad7a80;color:#c7d3a0;background:#253923b0}.inv-slot small{position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);font-size:8px;white-space:nowrap;color:#7f9475}.quick-actions{display:flex;gap:7px;pointer-events:auto}.quick-actions button{padding:11px;font-size:12px;min-height:43px}.desktop-guide{position:absolute;bottom:17px;left:32px;color:#8d9c7ec7;font-size:10px;letter-spacing:.01em;line-height:1.6;max-width:75%}#saveStatus{position:absolute;bottom:20px;right:32px;font-size:9px;color:#849773a1;max-width:230px;text-align:right}#touchControls{display:none;pointer-events:auto}#paper{z-index:10;position:absolute;right:28px;top:132px;width:410px;max-width:calc(100% - 28px);max-height:calc(100% - 255px);overflow:auto;background:linear-gradient(135deg,#c1c5a5,#aeb494);color:#243520;padding:21px 25px;box-shadow:0 10px 40px #0009;border:1px solid #dce0bb88;scrollbar-width:thin}.paper-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #43583744;margin-bottom:18px;padding-bottom:7px;font:9px ui-monospace,monospace;letter-spacing:.16em;color:#516347}.paper-top button{background:#9aa38144;color:#263c23;border-color:#576d4950;width:33px;min-width:33px;height:33px}.paper-top button:hover{background:#84957370}#paperTitle{font-size:21px;line-height:1.5;margin:0 0 16px;letter-spacing:-.015em}#paperBody{font-size:14px;line-height:1.9;white-space:normal;word-break:keep-all}#paperBody p{white-space:pre-line}#paperBody .formula{font-size:28px;text-align:center;line-height:1.8;font-family:ui-monospace,monospace;letter-spacing:.1em;background:#223f2e;color:#d4dcbd;border:5px solid #78694d;padding:12px 0;margin:14px 0}#paperBody .sequence{font:24px ui-monospace,monospace;text-align:center;padding:18px 3px;border:1px dashed #4e634188;letter-spacing:.07em;margin:15px 0}#paperBody button{background:#263c22;color:#d6dfba;border:1px solid #526447;padding:12px 18px;min-height:43px}#paperBody button:hover{background:#344e2b}#paperBody label{font-size:12px;font-weight:650;display:block;margin-top:12px;margin-bottom:6px}#paperBody input{background:#dde0c4;color:#26361f;border-color:#5e704d;font-size:24px;letter-spacing:.4em;padding:13px;margin-bottom:10px}#paperBody .logic-row{border-top:1px solid #58724a45;padding:7px 0;display:flex;gap:12px;align-items:center;font-size:13px}#paperBody .logic-row b{border:1px solid #536b4280;padding:4px 8px}#paperWarning{border-top:1px solid #657b5344;margin-top:18px;padding-top:12px;color:#71472c;font-size:10px;line-height:1.6}.answer-buttons{display:flex;gap:8px}.answer-buttons button{flex:1}.paper-error{color:#77351f;background:#79534116;border-left:2px solid #804e37;padding:7px 10px;margin:10px 0;font-size:12px;white-space:pre-line}.notebook-list{display:grid;gap:7px}.notebook-list button{text-align:left;font-size:12px}.map-wrap{background:#101e16;padding:12px;overflow:hidden}.map-wrap canvas{width:100%;height:auto}.legend{font-size:11px;line-height:1.9;display:grid;grid-template-columns:1fr 1fr;gap:4px;color:#d4deba}.return-link{margin-bottom:12px;font-size:10px}
#modalBackdrop{position:absolute;inset:0;z-index:40;display:flex;justify-content:center;align-items:center;background:#020805bc;backdrop-filter:blur(5px);padding:25px}#modal{position:relative;width:550px;max-width:100%;max-height:calc(100dvh - 50px);overflow:auto;background:linear-gradient(130deg,#142619,#0c1911);border:1px solid #667a5159;padding:34px;box-shadow:0 20px 90px #000a;scrollbar-width:thin;outline:none}.modal-x{position:absolute;right:15px;top:13px;z-index:2}#modal h2{font-size:29px;line-height:1.45;letter-spacing:-.01em;margin:10px 35px 20px 0;white-space:pre-line}#modal h3{font-size:15px;line-height:1.6}#modal p{color:#a6b594;font-size:13px;line-height:1.95;white-space:pre-line}#modal .eyebrow{margin-bottom:20px}.modal-actions{display:grid;gap:10px;margin-top:21px}.settings-row{padding:12px 0;border-bottom:1px solid #63795433;display:flex;align-items:center;gap:18px;justify-content:space-between;font-size:13px}.settings-row input[type=checkbox]{width:22px;height:22px;accent-color:#abb681}.settings-row input[type=range]{width:180px;padding:0;accent-color:#abb681}.settings-row span{max-width:55%;line-height:1.5}.file-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.file-actions button{font-size:12px;padding:10px;min-height:41px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin:20px 0}.stats strong{font:25px ui-monospace,monospace;display:block;color:#d2dab6}.stats span{display:block;font-size:10px;color:#8fa078;margin-top:7px}#scare{position:absolute;inset:0;z-index:60;background:#000}#scareCanvas{width:100%;height:100%;display:block}#skipScare{position:absolute;bottom:26px;right:26px;font-size:12px;min-height:44px;padding:10px 16px;background:#06120de6;border-color:#becb8990}#toast{z-index:80;position:absolute;bottom:25px;left:50%;transform:translateX(-50%);background:#0e2115f5;border:1px solid #8b9f6866;padding:13px 20px;box-shadow:0 5px 30px #0008;max-width:85%;font-size:12px;line-height:1.7;text-align:center;pointer-events:none;display:none}#toast.show{display:block}.hidden-cursor{cursor:none}
@media(pointer:coarse),(max-width:850px){#touchControls{display:block}#desktopGuide{display:none}#joystick{position:absolute;bottom:max(27px,env(safe-area-inset-bottom));left:25px;width:119px;height:119px;border-radius:50%;border:1px solid #acb78a50;background:#0b1b1240;touch-action:none;display:grid;place-items:center;box-shadow:inset 0 0 22px #80935517}#stick{width:47px;height:47px;border:1px solid #abb98b85;border-radius:50%;background:#7d8d5c35;pointer-events:none}.touch-buttons{position:absolute;bottom:29px;right:20px;display:grid;grid-template-columns:repeat(3,48px);gap:8px;touch-action:none}.touch-buttons button{height:47px;font-size:20px;border-radius:8px;background:#172a1dc2}.touch-buttons button.active{background:#52633a;border-color:#b2c481}.touch-buttons .touch-interact{grid-column:2/4;font-size:13px;letter-spacing:.05em}.bottom-hud{bottom:172px;left:24px;right:20px;align-items:center}.vitals{width:95px;gap:8px}.inventory{gap:4px;max-width:230px}.inv-slot{width:33px;height:37px;font-size:17px}.inv-slot small{display:none}.quick-actions{position:absolute;right:0;bottom:-163px;display:none}#hud .location{top:87px;font-size:10px}.objective{top:83px;left:23px;max-width:52%}.objective h2{font-size:12px}.objective .eyebrow{font-size:8px}.steps i{width:28px}#threat{bottom:221px;font-size:11px;max-width:95%;width:max-content}#caption{bottom:265px;font-size:11px;max-width:88%}#paper{top:119px;max-height:calc(100% - 293px);right:16px;width:390px;padding:14px 18px}#paperTitle{font-size:18px;margin-bottom:10px}#paperBody{font-size:12px;line-height:1.7}#paperBody .formula{font-size:23px;line-height:1.65}#paperBody .sequence{font-size:19px}#paperWarning{font-size:9px}#interaction{top:51%;font-size:11px;padding:9px 12px;max-width:91%}#interaction kbd{display:none}#saveStatus{bottom:9px;left:50%;right:auto;transform:translateX(-50%);font-size:8px;text-align:center;white-space:nowrap}#topbar{height:58px;padding:0 20px}.brand .series{display:none}.top-actions{gap:5px}#lang{max-width:100px;font-size:11px}.title-layout{padding:100px 7vw 90px;grid-template-columns:minmax(0,440px) 1fr}.title-right .case-stamp{display:none}.title-footer{position:static;padding:0 7vw 20px;font-size:8px}.title-footer span:last-child{display:none}#titleScreen{background:linear-gradient(90deg,#06100bf4,#08140de3 50%,#08140d79)}h1{font-size:62px}.tagline{font-size:21px}.intro{font-size:13px}.subtitle{font-size:15px}.title-meta{margin:15px 0}#modal{padding:27px 23px}#modal h2{font-size:24px}.settings-row input[type=range]{width:145px}#skipScare{bottom:22px;right:18px}}
@media(max-width:500px){.title-layout{display:block;padding:83px 27px 30px}.title-right{display:none}.title-copy h1{font-size:60px;margin-top:17px}html:not([lang=ko]) .title-copy h1{font-size:41px}.title-copy .subtitle{font-size:15px;letter-spacing:.32em;margin-bottom:18px}.tagline{font-size:21px;line-height:1.55;margin-bottom:10px}.intro{font-size:12px;line-height:1.85}.title-meta{font-size:10px;margin:14px 0}.warning{font-size:10px;margin-top:11px}.start-controls{gap:8px}.start-controls button{min-height:48px;padding:12px 16px}.title-links{font-size:11px}.eyebrow{font-size:9px}.brand{font-size:12px;gap:8px}#topbar{padding:0 16px}.icon-button{min-width:34px;width:34px;height:34px;font-size:17px}.top-actions{gap:4px}#lang{max-width:86px;height:34px;font-size:10px}.objective{left:18px;top:75px;max-width:59%}.location{right:18px!important;top:76px!important;max-width:33%;text-align:right;line-height:1.7}.timecode{display:block;margin:3px 0}.bottom-hud{left:18px;right:17px}#paper{left:14px;right:14px;width:auto;max-width:none;top:135px}.paper-top{margin-bottom:11px;padding-bottom:5px}#threat{max-width:96%;font-size:10px;padding:7px 10px}#caption{padding:7px 10px}#modalBackdrop{padding:14px}#modal{max-height:calc(100dvh - 28px);padding:23px 20px}.settings-row{font-size:12px;gap:12px}.settings-row input[type=range]{width:120px}.stats strong{font-size:21px}.stats{gap:7px}}
@media(max-height:520px) and (min-width:600px){#topbar{height:45px}.objective{top:56px;max-width:280px}.objective h2{font-size:11px;margin-bottom:6px}.location{top:57px!important}.bottom-hud{bottom:132px;left:20px;right:20px}.inventory{margin-right:165px}#joystick{width:95px;height:95px;bottom:17px;left:25px}#stick{width:39px;height:39px}.touch-buttons{bottom:17px}.touch-buttons button{height:41px}.touch-buttons{grid-template-columns:repeat(3,43px);gap:6px}#threat{bottom:118px;max-width:45%;font-size:10px;padding:5px 9px}#caption{bottom:160px;max-width:55%}#paper{top:56px;bottom:23px;max-height:none;width:360px;right:176px;left:auto;max-width:calc(100% - 220px)}#interaction{top:45%}#saveStatus{bottom:6px}.title-layout{padding-top:65px}.title-copy h1{font-size:46px}.tagline{font-size:18px}.subtitle{margin-bottom:10px}.intro{font-size:12px}.title-footer{margin-top:0}.title-layout{grid-template-columns:minmax(350px,490px) 1fr}#modal{max-height:calc(100dvh - 22px)}#modalBackdrop{padding:10px}.vitals{width:80px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.inv-slot small{max-width:58px;overflow:hidden;text-overflow:ellipsis;display:block}.touch-buttons button{touch-action:none}#hintBtn,#notebookBtn,#mapBtn{touch-action:manipulation}

.embedded #lang,.embedded #topbar .brand{display:none}.embedded #topbar{justify-content:flex-end}.embedded #app{width:100%;min-height:0}.embedded #paperBody{font-size:14px}.embedded #modal p{font-size:14px}.embedded #importFile{display:none}.embedded .title-footer{position:static;padding:0 7vw 20px}.embedded .title-layout{min-height:0;padding-bottom:30px}