@font-face{font-family:'Game Sans';src:url('./fonts/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--cream:#f7f4e9;--muted:#c5d1bf;--gold:#efcb85;--dark:#10221b;--accent:#c5dfb5;font-family:'Game Sans','Pretendard','Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:16px;color:var(--cream);font-synthesis:none;line-height:1.5;font-weight:500}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#142019}button,a,input,select{-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button:disabled{opacity:.6;cursor:wait}h1,h2,h3,p{margin-top:0}h2{font-size:32px;font-weight:750;letter-spacing:-.02em;line-height:1.35}svg{display:block}.hidden{display:none!important}
#world{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}.grain{position:fixed;inset:0;pointer-events:none;opacity:.025;z-index:2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E")}#vignette{position:fixed;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 64% 40%,transparent 28%,#070d0a70 100%)}body.playing #vignette{background:radial-gradient(ellipse,transparent 55%,#070d0a40)}
.screen{position:fixed;inset:0;z-index:3}#home{padding:0 5.2vw;background:linear-gradient(90deg,#101c16fa 0%,#101c16eb 25%,#101c1673 48%,transparent 72%),linear-gradient(0deg,#101c16 1%,#101c16e0 10%,transparent 34%)}header{height:110px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:13px;align-items:center;color:var(--cream);text-decoration:none;font-size:11px;letter-spacing:1.8px;line-height:1.7}.brand b{font-size:14px;letter-spacing:2.5px}.brandmark{width:44px;height:44px;border:1px solid #d4c69988;display:grid;place-items:center;font-size:28px;color:#e8d5a5}nav{display:flex;gap:30px}nav button{background:none;border:0;padding:12px 0;font-size:15px;font-weight:600}nav span{margin-left:10px;color:var(--gold)}.intro{position:absolute;left:5.2vw;top:23%;max-width:570px}.eyebrow{font-size:13px;color:var(--gold);font-weight:650;letter-spacing:.08em}.eyebrow i{display:inline-block;width:6px;height:6px;background:var(--gold);margin:0 10px 2px 0}.intro h1{font-size:clamp(52px,6.1vw,88px);line-height:1.17;letter-spacing:-.045em;font-weight:800;margin:24px 0 28px}.intro h1 em{font-style:normal}.title-period{color:var(--gold)}.lead{font-size:18px;color:#e1e7d8;line-height:1.8;margin:0 0 30px}.primary{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:58px;padding:14px 24px;border:0;border-radius:5px;background:var(--cream);color:#203326;font-size:17px;font-weight:750;transition:background .2s,transform .2s}.primary:hover{background:#e9d7ae;transform:translateY(-1px)}#playBtn{width:300px;justify-content:flex-start;gap:18px}.play-icon{font-size:14px}.btn-tail{margin-left:auto;font-size:24px;font-weight:500}#playLabel{font-size:20px}.play-meta{display:flex;gap:20px;color:#bdc8b2;font-size:12px;margin-top:16px}.play-meta i{display:inline-block;width:5px;height:5px;background:#c9dfb5;border-radius:50%;margin:0 7px 2px 0}.play-meta>span+span:before{content:'·';padding-right:20px;color:#81977b}.scene-caption{position:absolute;right:7%;top:65%;display:flex;gap:14px;align-items:center}.tiny-cross{font-size:28px;color:var(--gold)}.scene-caption strong{font-size:17px;font-weight:600}.caption-line{width:50px;border-top:1px solid #d7d5b86f;margin-left:10px}footer{position:absolute;left:5.2vw;right:5.2vw;bottom:36px}.timeline{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #b5c2a850}.timeline-item{position:relative;padding:20px 10px 0 0}.timeline-item:before{content:'';position:absolute;left:0;top:-3px;width:5px;height:5px;background:#bad19f}.timeline-item>span{font-size:13px;color:#b6c5ac;font-variant-numeric:tabular-nums}.timeline-item strong{font-size:16px;font-weight:600;display:block;margin-top:8px}.timeline-item small{display:none}
.overlay{position:fixed;inset:0;z-index:20;background:#0b1913ef;backdrop-filter:blur(12px);display:grid;place-items:center}.load-box{width:min(450px,82vw)}.load-box h2{font-size:30px}.load-box p{font-size:15px;color:var(--muted)}.load-bar{height:4px;background:#d2dfbc20;margin:30px 0 20px;border-radius:4px;overflow:hidden}.load-bar i{display:block;background:var(--gold);height:100%;width:0;transition:width .3s}.pause-card{width:min(360px,85vw);display:flex;flex-direction:column;text-align:center;gap:14px}.pause-card h2{margin-bottom:20px}.pause-card small{font-size:13px;color:var(--muted);margin-top:10px}.pause-card>p{font-size:16px;color:var(--muted)}.text-btn{padding:12px;background:transparent;border:0;font-size:16px;color:#d1ddc7}.text-btn:hover{color:var(--gold)}.outline{min-height:50px;padding:12px 20px;background:transparent;border:1px solid #acc69966;border-radius:5px;font-size:16px;font-weight:600}.outline:hover{background:#bdcaac10}kbd{font:650 13px 'Game Sans','Malgun Gothic',sans-serif;display:inline-grid;place-items:center;min-width:24px;padding:3px 7px;line-height:1.5;background:#0a1712;border:1px solid #c4d7b577;border-radius:4px;color:#f4f3de;white-space:nowrap}
/* One active instruction, one contextual action, one pocket bar. */
#hud{position:fixed;inset:0;z-index:4;pointer-events:none}.hud-top{position:absolute;left:30px;right:30px;top:25px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.room-label{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;background:#102119eb;border:1px solid #b2c79c33;border-radius:8px;padding:12px 17px;min-width:170px}.room-label>span{font-size:12px;color:var(--gold);background:#baa46a14;border-radius:3px;padding:2px 6px}.room-label strong{font-size:23px;font-weight:750;letter-spacing:-.02em;line-height:1.25;grid-row:2;grid-column:1/3;margin-top:5px}.room-label small{font-size:13px;color:#c8d4be;grid-row:1;grid-column:2;text-align:right;white-space:nowrap}.hud-right{display:flex;align-items:center;gap:10px;pointer-events:auto}#progress{font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:5px;text-shadow:0 2px 8px #000}.hud-right button{border:1px solid #b6c99f55;background:#102119eb;min-height:44px;padding:7px 12px;border-radius:6px;font-size:18px;display:flex;align-items:center;gap:8px}.hud-right button span{font-size:14px;font-weight:650}.hud-right kbd{border:0;background:#e7d29c18;color:#ead7a2;padding:0;min-width:18px;font-size:14px}.objective{position:absolute;top:136px;left:30px;max-width:min(390px,calc(100vw - 60px));padding:14px 18px;background:#102219f5;border:1px solid #c6d4a837;border-left:3px solid var(--gold);border-radius:7px;display:grid;grid-template-columns:38px 1fr;gap:13px;align-items:center;box-shadow:0 4px 20px #0002}#objectiveIcon{color:var(--gold)}#objectiveIcon svg{width:34px;height:34px}.objective #objectiveLabel{font-size:12px;line-height:1.3;font-weight:650;color:#c7d6b7}.objective p{font-size:18px;font-weight:750;line-height:1.4;margin:4px 0 7px;color:#fbf6df;letter-spacing:-.015em;word-break:keep-all}.quest-steps{display:flex;gap:7px;height:10px;align-items:center}.quest-steps span{width:8px;height:8px;border-radius:50%;background:#c1d1ad33;font-size:7px;color:#13241b;display:grid;place-items:center;font-weight:800;line-height:1}.quest-steps .done{background:#b7d1a0}.quest-steps .current{background:#edcc86;box-shadow:0 0 0 2px #edcc8625}.hud-bottom{position:absolute;bottom:18px;left:0;right:0;display:flex;justify-content:center;gap:23px;font-size:13px;color:#d9e3d0;text-shadow:0 2px 5px #000}.hud-bottom>span{display:flex;align-items:center;gap:7px}
#crosshair{position:absolute;left:50%;top:50%;width:20px;height:20px;transform:translate(-50%,-50%);display:grid;place-items:center}#crosshair:before,#crosshair:after{content:'';position:absolute;background:#fff4dcbf;box-shadow:0 0 3px #07160e}#crosshair:before{width:10px;height:2px}#crosshair:after{height:10px;width:2px}#crosshair.active{border:2px solid #f5d59b;border-radius:50%;width:27px;height:27px}#prompt{position:absolute;top:57%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;background:#102219f5;border:1px solid #d4c38c88;border-radius:8px;padding:12px 20px;min-width:200px;max-width:85vw;box-shadow:0 5px 20px #0003}#prompt>kbd{font-size:22px;min-width:40px;padding:5px 10px;color:#f2d69c;border-color:#dbca9d99}#prompt strong{font-size:18px;font-weight:750;display:block;line-height:1.3}#prompt span{font-size:14px;color:#c6d5b7;display:block;margin-top:4px}
#inventory{position:absolute;bottom:62px;left:50%;transform:translateX(-50%);width:480px;max-width:92vw}.inventory-heading{text-align:center;margin-bottom:8px;min-height:22px}#heldName{display:inline-block;font-size:15px;font-weight:650;color:#f3dfac;text-shadow:0 2px 8px #000}#inventorySlots{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;pointer-events:auto}.item-slot{position:relative;background:#102219ed;border:1px solid #a5be8d66;border-radius:7px;height:78px;padding:8px 4px 6px;color:#b2c49f;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:4px;transition:background .2s,border-color .2s}.item-slot.selected{border:2px solid #efd28b;background:#3c4930f5;box-shadow:0 0 0 2px #e3c9871a}.item-slot.owned{color:#f0e2b8}.item-slot.used{color:#adc69a;background:#1c3021ef}.slot-key{position:absolute;left:6px;top:3px;font-size:12px;font-weight:650;line-height:1.2;color:#c2d2b2}.slot-icon{width:30px;height:30px;opacity:.22}.slot-icon svg{width:100%;height:100%}.owned .slot-icon,.used .slot-icon{opacity:1}.slot-name{font-size:12px;line-height:1.2;font-weight:600;white-space:nowrap}.slot-name:empty{display:none}.slot-check{display:none;position:absolute;right:5px;top:2px;font-size:13px;color:#c6e4ad}.used .slot-check{display:block}.item-slot:not(.owned):not(.used){justify-content:center}.item-slot:not(.owned):not(.used) .slot-icon{width:24px;height:24px}#heldHint{display:none}
#toast{position:absolute;bottom:193px;left:50%;transform:translateX(-50%);opacity:0;transition:opacity .2s;padding:10px 18px;border-radius:6px;border:1px solid #c1d5a957;background:#12271cf5;font-size:15px;font-weight:600;color:#edf0da;max-width:90vw;text-align:center}#toast.show{opacity:1}.item-acquired{position:absolute;left:50%;top:36%;transform:translate(-50%,15px);font-size:24px;font-weight:750;color:#ffe1a3;opacity:0;transition:opacity .25s,transform .4s;text-shadow:0 2px 14px #000}.item-acquired.show{opacity:1;transform:translate(-50%,0)}#chapterTitle{position:absolute;left:50%;top:32%;transform:translateX(-50%);width:max-content;max-width:85vw;min-width:240px;text-align:center;background:#102219e8;border:1px solid #c1d1a830;border-radius:8px;padding:17px 32px;opacity:0;transition:opacity .5s;pointer-events:none}#chapterTitle.show{opacity:1}#chapterTitle>span{font-size:14px;font-weight:600;color:var(--gold)}#chapterTitle h2{font-size:32px;margin:7px 0 0;font-weight:750}#chapterTitle p{display:none}
#observation{position:absolute;right:30px;top:106px;width:265px;background:#102219f5;border:1px solid #bdd2a65f;border-radius:7px;padding:13px 16px}#observation>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:15px}#observation strong{font-size:15px;font-weight:650}#observationPercent{font-size:14px;color:#dce7cd;font-variant-numeric:tabular-nums}#observationHint{display:none}.observation-track{height:4px;margin-top:11px;background:#c7ddab20;border-radius:4px;overflow:hidden}.observation-track i{display:block;width:0;height:100%;background:#d7dcaf}#discovery{position:absolute;right:30px;top:110px;width:325px;max-width:90vw;background:#112a1ff5;border:1px solid #a8c59266;border-radius:8px;padding:17px 20px}#discovery>span{font-size:12px;font-weight:650;color:#cbe1b5}#discovery strong{display:block;font-size:18px;line-height:1.55;font-weight:700;margin:7px 0 8px;color:#f8edcf;word-break:keep-all}#discovery p{font-size:14px;line-height:1.65;color:#cedcc2;margin:0 0 10px;word-break:keep-all}#discovery small{font-size:12px;color:#d2dcbf}#waypoint{position:absolute;display:grid;justify-items:center;gap:5px;z-index:1;color:#ffd995;filter:drop-shadow(0 2px 5px #000);transform:translate(-50%,-50%)}#waypointArrow{font-size:32px;line-height:1;background:#14241ce8;width:43px;height:43px;display:grid;place-items:center;border:1px solid #ddbd75a0;border-radius:50%}#waypointDistance{font-size:13px;font-weight:750;background:#14241cf5;border-radius:4px;padding:1px 6px;font-variant-numeric:tabular-nums}
/* Optional explanations use the same readable type as the game. */
dialog{color:var(--cream);background:#15291f;border:1px solid #a4bf8f70;border-radius:12px;width:min(900px,92vw);max-height:88vh;padding:28px 34px;overflow:auto;box-shadow:0 20px 100px #0007}dialog::backdrop{background:#08170fda;backdrop-filter:blur(7px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.dialog-head .eyebrow{font-size:14px;letter-spacing:.04em}.close{display:grid;place-items:center;min-width:36px;min-height:36px;border:1px solid #adbf9859;border-radius:6px;background:#ffffff04;font-size:28px;line-height:1;color:#e2e6d2}.reader-layout{display:grid;grid-template-columns:1fr 200px;gap:35px}.reader-year{font-size:15px;color:#d9c294;font-weight:650}.reader-content h2{font-size:29px;margin:12px 0 17px}.reader-summary{font-size:20px;font-weight:650;line-height:1.65;color:#f2e9d0;word-break:keep-all}.reader-content h3{font-size:18px;margin:22px 0 9px;color:#e9d4a5}.reader-content p{font-size:16px;line-height:1.85;color:#d4dec9;word-break:keep-all}.reader-content .reader-summary{font-size:20px;line-height:1.65;font-weight:650;color:#f2e9d0}.fact{padding:16px 18px;margin-top:25px;border:1px solid #b1c69355;border-radius:6px;font-size:15px;line-height:1.85;color:#cedcc2}.fact:before{content:'기억할 사실';display:block;font-size:13px;font-weight:700;color:var(--gold);margin-bottom:7px}#experimentResult{padding:13px 16px;border-left:3px solid #bfd49d;background:#c8d3ab0b;color:#dae5cb;font-size:16px;line-height:1.7;border-radius:0 5px 5px 0;margin-bottom:25px;word-break:keep-all}details{font-size:16px;color:#cddcc1}summary{cursor:pointer;padding:13px 0;color:#ebd8a5;font-weight:650}#readerDetails{border-top:1px solid #9ab38344}.reader-aside{position:sticky;top:0;height:max-content;text-align:center}.experiment-art{height:190px;display:grid;place-items:center;background:radial-gradient(#b9d2aa13,transparent 70%)}#experimentCaption{display:block;margin:10px 0 20px;font-size:14px;font-weight:600;color:#d3dfc4}.reader-aside .text-btn{width:100%;border:1px solid #afc79866;border-radius:5px;padding:12px;font-weight:650;color:#f1e8ce}.dialog-desc{font-size:16px;line-height:1.75;color:#cbd7be;margin-bottom:27px}#journal{width:min(750px,92vw)}#journal h2{margin-bottom:10px}.journal-row{display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:16px;padding:17px 0;border-top:1px solid #adbf9938}.journal-row .num{font-size:22px;font-weight:650;color:var(--gold)}.journal-row strong{display:block;font-size:18px;font-weight:650}.journal-row small{display:block;font-size:14px;color:#c0d2b1;margin-top:4px}.journal-row button{background:#cee0b40c;border:1px solid #bdd1a865;border-radius:5px;padding:9px 16px;font-size:15px;font-weight:600}.journal-row.locked{color:#adbaa3}.journal-row.locked .num{color:#a7b49b}.journal-row.locked>span:last-child{font-size:13px;color:#bec9ae}.journey-note{font-size:14px;line-height:1.7;color:#c7d4bb;border-radius:5px;background:#deedc508;padding:14px 17px;margin-top:24px}#sourceList a{display:block;margin:12px 0;font-size:15px;color:#d9cda7;text-decoration:none;overflow-wrap:anywhere}#settings{width:min(510px,92vw)}#settings h2{margin-bottom:20px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #bbcea22f;font-size:16px}.setting-row input[type=range]{width:150px;accent-color:var(--gold)}.setting-row input[type=checkbox]{width:21px;height:21px;accent-color:#bbd49d}.setting-row select{font:inherit;background:#112118;border:1px solid #b6cda072;border-radius:5px;padding:8px 12px;color:var(--cream)}.setting-help{font-size:14px;color:#c3d1b4;line-height:1.8;margin:22px 0 0}.danger{color:#e4bda2}#resetConfirm{font-size:16px;margin-top:12px}#guide{width:min(800px,92vw)}#guide h2{font-size:32px}.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0}.guide-steps>div{border:1px solid #bad09e38;border-radius:7px;padding:18px 15px}.guide-steps b{display:block;font-size:25px;color:#c9b27f}.guide-steps strong{display:block;font-size:18px;margin:13px 0 12px;font-weight:700}.guide-steps p{font-size:14px;line-height:1.9;color:#d0ddc1;margin:0}.guide-steps kbd{font-size:12px}#guidePlay{width:260px;margin-top:25px}#help{width:min(550px,92vw)}.control-grid{display:grid;grid-template-columns:1fr auto;gap:0 25px;align-items:center}.control-grid>span:nth-child(odd){font-size:16px;color:#cbd9bd}.control-grid>*{padding:13px 0;border-bottom:1px solid #acc3912b}.control-grid>kbd{margin:10px 0;padding:4px 12px;border:1px solid #c4d7b577;font-size:15px}.control-grid strong{font-size:16px;font-weight:600}.control-grid>span:nth-child(even){font-size:15px}
#ending{z-index:7;display:grid;place-items:center;background:radial-gradient(ellipse,#193e35f5,#0d2118fa);text-align:center}.ending-inner{max-width:800px;padding:30px}.ending-inner>.eyebrow{font-size:15px;letter-spacing:.05em}.ending-cross{font-size:42px;color:#c2dbae;margin:20px}.ending-inner h2{font-size:48px;font-weight:750;line-height:1.4;margin:12px 0 22px}.ending-inner>p{font-size:18px;line-height:1.8;color:#d0dec5}.ending-pillars{display:flex;justify-content:center;gap:30px;margin:30px 0}.ending-pillars span{font-size:16px;color:#cbdabf}.ending-pillars b{color:#e4dcad;margin-left:10px}.ending-inner .ending-note{font-size:15px;color:#bed1b2;margin:24px}.ending-inner .primary{width:280px;margin:25px auto 8px}#mobileControls{display:none}
@media(max-height:760px) and (min-width:761px){header{height:86px}.intro{top:20%}.intro h1{font-size:64px;margin:16px 0 20px}.lead{margin-bottom:23px;font-size:17px}footer{bottom:25px}.timeline-item{padding-top:16px}.scene-caption{top:60%}}
@media(max-width:760px){#home{padding:0 6vw;background:linear-gradient(90deg,#101c16ef,#101c16b3 60%,#101c1640),linear-gradient(0deg,#101c16 4%,#101c16b0 24%,transparent 80%)}header{height:88px}.brand{font-size:9px;letter-spacing:1.5px}.brand b{font-size:11px}.brandmark{width:37px;height:37px;font-size:25px}nav{gap:16px}nav button{font-size:13px}nav span{margin-left:5px}.intro{left:6vw;top:21%}.eyebrow{font-size:12px}.intro h1{font-size:62px;margin:19px 0 24px}.lead{font-size:16px;max-width:85vw;margin-bottom:25px}.play-meta{font-size:11px;gap:15px}.play-meta>span+span:before{padding-right:15px}#playBtn{width:280px}.scene-caption{display:none}footer{left:6vw;right:6vw;bottom:28px}.timeline-item>span{font-size:10px}.timeline-item strong{font-size:12px;line-height:1.5;max-width:60px}.timeline-item{padding-top:16px}.hud-top{left:16px;right:16px;top:16px;gap:10px}.room-label{padding:10px 12px;min-width:145px;max-width:53vw}.room-label strong{font-size:20px}.room-label small{font-size:12px}.room-label>span{font-size:11px}.hud-right{gap:6px}#progress{font-size:14px;margin-right:2px}.hud-right button{padding:7px;min-height:38px}.hud-right button span{display:none}.hud-right kbd{font-size:13px;min-width:16px}.objective{left:16px;top:119px;max-width:calc(100vw - 32px);grid-template-columns:30px 1fr;gap:10px;padding:12px 15px}.objective p{font-size:17px}#objectiveIcon svg{width:29px;height:29px}#inventory{width:360px;max-width:92vw;bottom:62px}#inventorySlots{gap:5px}.item-slot{height:69px;padding:6px 2px}.slot-name{font-size:11px}.slot-icon{width:26px;height:26px}#heldName{font-size:14px}.hud-bottom{font-size:12px;gap:17px;bottom:19px}#prompt{padding:11px 16px;gap:12px;min-width:190px}#prompt strong{font-size:17px}#prompt span{font-size:13px}#prompt>kbd{font-size:20px}#chapterTitle h2{font-size:28px}#observation{right:16px;top:225px;width:230px}#discovery{right:16px;top:auto;bottom:192px;width:300px;padding:14px 17px}#discovery strong{font-size:16px}#discovery p{font-size:13px}#toast{bottom:180px;font-size:14px}.item-acquired{font-size:22px}dialog{padding:22px;max-height:88vh}.reader-layout{grid-template-columns:1fr;gap:22px}.reader-aside{position:static;display:grid;grid-template-columns:90px 1fr;column-gap:15px;align-items:center}.experiment-art{height:100px;grid-row:1/3}.reader-aside #experimentCaption{margin:0;font-size:14px}.reader-aside .text-btn{grid-column:2;font-size:15px;padding:10px}.reader-content h2{font-size:26px}.reader-content .reader-summary{font-size:19px}.reader-content p{font-size:16px}.reader-content h3{font-size:18px}#experimentResult{font-size:15px}.journal-row{grid-template-columns:26px 1fr auto;gap:11px}.journal-row strong{font-size:17px}.journal-row small{font-size:13px}.journal-row button{font-size:14px;padding:8px 11px}.guide-steps{gap:10px}.guide-steps>div{padding:14px 10px}.guide-steps strong{font-size:16px}.guide-steps p{font-size:13px}.guide-steps kbd{font-size:11px}#guide h2{font-size:28px}.setting-row{font-size:15px;gap:15px}.setting-row input[type=range]{width:130px}.ending-inner h2{font-size:36px}.ending-inner>p{font-size:16px}.ending-inner .ending-note{font-size:14px;margin:18px 0}.ending-pillars{gap:20px;margin:22px 0}.ending-pillars span{font-size:14px}.ending-inner{padding:22px}.control-grid{gap:0 16px}.control-grid>span:nth-child(odd){font-size:15px}.control-grid strong{font-size:15px}}
.touch-device #mobileControls{display:flex;position:absolute;bottom:40px;left:18px;right:18px;justify-content:space-between;align-items:flex-end;pointer-events:none}.touch-device #mobileControls button{pointer-events:auto;touch-action:none;width:46px;height:46px;margin:2px;border:1px solid #c4d1ab99;border-radius:6px;background:#12281ee0;font-size:18px;font-weight:700}.move-pad{text-align:center}.touch-actions{display:flex;gap:4px}.touch-device .hud-bottom{display:none}.touch-device #inventory{bottom:24px;width:350px;max-width:53vw}.touch-device .slot-name{display:none}.touch-device .item-slot{height:53px}.touch-device .slot-icon{width:22px;height:22px}.touch-device .inventory-heading{margin-bottom:5px}.touch-device #heldName{font-size:13px}.touch-device #toast{bottom:150px}.touch-device #discovery{bottom:150px}
@media(max-width:420px){.guide-steps{grid-template-columns:1fr;margin:20px 0;gap:10px}.guide-steps>div{display:grid;grid-template-columns:26px 1fr;gap:5px 12px;padding:12px 14px}.guide-steps b{grid-row:1/3;font-size:23px}.guide-steps strong{font-size:17px;margin:0}.guide-steps p{grid-column:2;font-size:14px}.timeline-item strong{font-size:11px}.timeline-item>span{font-size:9px}.hud-right button{padding:6px}.room-label{min-width:135px}.hud-top{gap:6px}.hud-right{gap:5px}.brandmark{width:32px;height:32px}.brand{gap:9px}.brand b{font-size:10px}nav{gap:13px}nav button{font-size:12px}.intro h1{font-size:57px}.lead{font-size:15px}#progress{font-size:13px}.control-grid{gap:0 12px}}
@media(max-height:620px){header{height:72px}.intro{top:18%}.intro h1{font-size:46px;margin:12px 0 17px}.intro .eyebrow{font-size:11px}.lead{font-size:15px;margin-bottom:18px}.primary{min-height:50px;padding:10px 22px}#playLabel{font-size:18px}.play-meta{margin-top:10px}footer{bottom:20px}.timeline-item{padding-top:12px}.timeline-item strong{font-size:13px;margin-top:4px}.timeline-item>span{font-size:11px}.hud-top{top:14px}.room-label{padding:7px 12px}.room-label strong{font-size:20px}.objective{top:104px;padding:10px 14px}.objective p{font-size:17px}#inventory{bottom:49px;width:410px}.item-slot{height:62px}.slot-icon{width:24px;height:24px}.slot-name{font-size:11px}.inventory-heading{margin-bottom:4px;min-height:18px}#heldName{font-size:13px}.hud-bottom{bottom:12px;font-size:12px}#toast{bottom:155px}#discovery{top:95px;font-size:14px}#discovery strong{font-size:16px}#discovery p{font-size:13px}#observation{top:95px}.ending-cross{margin:10px}.ending-inner h2{font-size:32px;margin:10px 0}.ending-inner>p{font-size:16px}.ending-pillars{margin:15px 0}.ending-inner .ending-note{font-size:14px;margin:16px 0}.ending-inner .primary{margin:15px auto 5px}.ending-inner{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.experiment-art svg{width:180px;height:180px;overflow:visible}.diagram-main{fill:#b4c2920a;stroke:#cdbd8d;stroke-width:2.5;stroke-linejoin:round}.diagram-line{stroke:#b1c597;fill:none;stroke-width:1.4;opacity:.6}.diagram-reveal{fill:none;stroke:#a9d2ae;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:.13;transition:opacity 1s}.done .diagram-reveal{opacity:1}.diagram-threat{fill:#c99d73;opacity:.8;transition:opacity 1.2s,transform 1.2s}.done .diagram-threat{opacity:0;transform:translateY(12px)}.diagram-dot{fill:#9db58b;opacity:.3;transition:opacity 1s,fill 1s}.done .diagram-dot{opacity:1;fill:#b0d8b3}.diagram-bacteria{fill:#c99d73}.diagram-zone{fill:#abc79c0a;stroke:#a8c59b;stroke-width:1;stroke-dasharray:3 5;opacity:.1;transition:opacity 1s}.done .diagram-zone{opacity:1;fill:#abc79c20}.diagram-scan{fill:none;stroke:#bad7b4;stroke-width:2;opacity:.3}.running .diagram-scan{animation:scan 1.2s ease-in-out infinite}.done .diagram-scan{opacity:0}.diagram-connect{stroke:#95b8a1;stroke-width:2;stroke-dasharray:3 6;opacity:.4}.done .diagram-connect{opacity:1;stroke:#b5dbc4}.running .diagram-connect{animation:dash 1s linear infinite}.running svg{filter:drop-shadow(0 0 12px #bdd9a52a)}@keyframes scan{0%,100%{transform:translateY(-35px);opacity:.8}50%{transform:translateY(45px);opacity:.8}}@keyframes dash{to{stroke-dashoffset:-18}}@media(max-width:760px){.experiment-art svg{width:130px;height:130px}}
@media(max-width:760px){.experiment-art svg{width:95px;height:95px}}
#chapters{width:min(700px,92vw)}#chapters h2{font-size:28px}#chapterChoices{display:grid;grid-template-columns:1fr;gap:10px}.chapter-choice{border:1px solid #afc99555;background:#c3d9ae09;border-radius:7px;padding:14px 18px;color:#eee9d7;display:grid;grid-template-columns:35px 1fr;gap:4px 14px;text-align:left;align-items:center}.chapter-choice>span{grid-row:1/3;color:#dec389;font-size:22px;font-weight:650}.chapter-choice strong{font-size:18px;font-weight:700}.chapter-choice small{font-size:14px;color:#c7d8ba}.chapter-choice:hover{border-color:#e4ce92;background:#d9dfaf14}@media(max-width:760px){#chapters h2{font-size:25px}.chapter-choice strong{font-size:17px}.chapter-choice small{font-size:13px}nav{gap:15px}nav button{font-size:13px}.scene-caption{display:none}}@media(max-width:420px){nav{gap:11px}nav button{font-size:11px}.brand{letter-spacing:1px}.brand b{letter-spacing:1.8px}}
/* Device experiences: one camera owner, quiet controls, generous captions. */
.in-experience #hud{visibility:hidden}.in-experience .grain,.in-experience #vignette{display:none}
#experience{position:fixed;inset:0;z-index:40;pointer-events:none;color:#e7eee1;background:linear-gradient(#051b24a8,transparent 23%,transparent 64%,#061b25d9)}#experienceCanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.experience-top{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;gap:16px;padding:25px 36px;background:linear-gradient(#051c25e8,transparent)}.experience-top span{font-size:12px;letter-spacing:.13em;color:#b5d6c4}.experience-top h2{font-size:27px;margin:6px 0;font-weight:750}.experience-buttons{display:flex;gap:10px;align-items:flex-start}.experience-buttons button,.scope-tabs button,#immuneAction{pointer-events:auto;background:#102d36ed;border:1px solid #a1bfa965;color:#e5eee0;border-radius:8px;padding:12px 18px;font-size:15px;font-weight:650;cursor:pointer}.experience-buttons button:hover,.scope-tabs button:hover{background:#31545b}.experience-bottom{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);width:min(760px,92vw);text-align:center;pointer-events:none}.experience-bottom>span{font-size:13px;color:#d8c38d;background:#0b252de0;padding:5px 14px;border-radius:20px}.experience-bottom p{font-size:21px;line-height:1.45;margin:14px auto 16px;text-shadow:0 2px 8px #000;background:#09212bd9;border-radius:10px;padding:12px 18px;width:fit-content;max-width:100%}.experience-bottom>small{display:block;color:#acbbb3;font-size:12px;margin-top:9px}.experience-bottom>small span{margin-left:15px;font-variant-numeric:tabular-nums}.experience-track{height:3px;background:#6d8c803e;margin:18px auto 0;width:90%;border-radius:4px;overflow:hidden}.experience-track i{display:block;height:100%;background:#a9d0bd;width:0}#immuneAction{background:#d7e4bd;color:#1a3836;border:0;font-size:17px;padding:14px 24px;box-shadow:0 8px 40px #0007}#scopeControls{pointer-events:auto;width:fit-content;margin:auto;background:#0e2a32f0;padding:10px 17px;border:1px solid #6f948456;border-radius:10px;display:flex;gap:25px;align-items:center}.scope-tabs{display:flex;gap:5px}.scope-tabs button{padding:8px 13px;font-size:14px}.scope-tabs button[aria-pressed=true]{color:#17382f;background:#b6cdb4}#scopeControls label{font-size:14px;display:flex;gap:10px;align-items:center}#scopeFocus{accent-color:#c6d8a9;width:140px;cursor:ew-resize}#experiencePaused{position:absolute;top:46%;left:50%;transform:translate(-50%,-50%);background:#0b2634e8;padding:26px 45px;border:1px solid #8fae9e88;border-radius:12px;font-size:28px;text-align:center}#experiencePaused small{display:block;font-size:14px;color:#bccdbf;margin-top:10px}.chapter-row{display:grid;grid-template-columns:1fr auto;gap:8px}.chapter-preview{border:1px solid #c5cfa346;border-radius:9px;padding:14px;color:#d4dcba;background:#1b3425;font-size:14px;cursor:pointer}.chapter-preview:hover{background:#39513a}.chapter-row .chapter-choice{width:100%}
@media(max-width:760px){.experience-top{padding:17px}.experience-top h2{font-size:20px}.experience-buttons{gap:5px}.experience-buttons button{padding:9px;font-size:12px}.experience-bottom{bottom:15px}.experience-bottom p{font-size:17px;padding:10px 13px;margin:10px auto}#scopeControls{gap:10px;flex-wrap:wrap;justify-content:center;padding:8px}.scope-tabs button{font-size:12px;padding:7px 10px}#scopeFocus{width:100px}.chapter-preview{font-size:12px;padding:10px}.chapter-row{gap:5px}}
@media(max-height:650px){.experience-top{padding:12px 22px}.experience-top h2{font-size:20px}.experience-bottom{bottom:10px}.experience-bottom p{font-size:16px;margin:8px auto;padding:7px 12px}.experience-track{margin-top:10px}#scopeControls{padding:6px 12px}}
#experiencePaused{top:113px;left:auto;right:36px;transform:none;padding:10px 18px;font-size:17px;z-index:2}#experiencePaused small{font-size:11px;margin-top:5px}#scopeDone{border:0;border-radius:6px;background:#c5d9b3;color:#17392f;padding:10px 12px;font-size:14px;font-weight:700;cursor:pointer}#scopeControls{flex-wrap:wrap;justify-content:center}
@media(max-width:760px){#experiencePaused{right:17px;top:95px}#scopeDone{font-size:12px;padding:8px}.experience-bottom>small{font-size:11px}}
/* Sequential callouts: freeze → draw leader → reveal one compact card. */
.sequential-experience #experienceLine{display:none}.sequential-experience .experience-bottom{bottom:24px}.experience-top{z-index:6}.experience-bottom{z-index:5}#calloutLayer{position:absolute;inset:0;z-index:4;pointer-events:none}#calloutSvg{position:absolute;inset:0;overflow:visible}#calloutLine{stroke-dasharray:1;stroke-dashoffset:1}#calloutCard{position:absolute;box-sizing:border-box;background:rgba(8,23,30,.92);backdrop-filter:blur(9px);border:1px solid #c9d6be55;border-left:3px solid #dcd3a3;border-radius:7px;padding:15px 17px 12px;box-shadow:0 12px 38px #0005;transform-origin:center;pointer-events:auto;color:#eaf0df;will-change:transform,opacity}.callout-heading{display:flex;gap:10px;align-items:center}.callout-heading small{font:600 11px 'Game Sans',sans-serif;color:#bbc8ad;white-space:nowrap}.callout-heading strong{font-size:17px;font-weight:750;color:#e1d8ac}#calloutText{font-size:18px;line-height:1.5;font-weight:520;margin:10px 0 12px;word-break:keep-all;overflow-wrap:anywhere}.callout-footer{display:flex;justify-content:space-between;align-items:center;gap:8px}.callout-footer label{display:flex;gap:6px;align-items:center;font-size:11px;color:#a4b5aa;pointer-events:auto;cursor:pointer}.callout-footer input{accent-color:#d9d4a6;width:13px;height:13px}.callout-footer button{border:0;background:transparent;color:#e1dcba;font-size:13px;font-weight:700;padding:6px 0 6px 10px;cursor:pointer}.callout-footer button:hover{color:white}.callout-read{height:2px;background:#607c6e33;margin-top:7px;border-radius:2px;overflow:hidden}.callout-read i{display:block;height:100%;background:#afc4aa;width:0}#calloutHistory{position:absolute;inset:105px max(25px,calc((100vw - 850px)/2)) 40px;z-index:9;background:#0b232bf7;border:1px solid #b6cab06b;border-radius:12px;padding:25px 30px;overflow:auto;pointer-events:auto;box-shadow:0 0 0 100vmax #07151dcc}.callout-history-head{display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid #a3b79544;padding-bottom:20px}.callout-history-head small{font-size:12px;color:#b3c2a6}.callout-history-head h3{font-size:25px;margin:6px 0 0}.callout-history-head button{border:1px solid #a8bbaa55;border-radius:7px;padding:10px 13px;background:#284039;color:#e6ebd7;font-size:14px;cursor:pointer}#calloutHistoryList{list-style:none;padding:0;margin:0}#calloutHistoryList li{padding:18px 0;border-bottom:1px solid #a3b79533}#calloutHistoryList strong{color:#ded6ae;font-size:16px}#calloutHistoryList p{font-size:17px;line-height:1.65;margin:7px 0 0}.scope-tabs button:disabled,#scopeDone:disabled{opacity:.45;cursor:default}.experience-buttons{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){#calloutCard{padding:12px 14px 10px}#calloutText{font-size:16px;margin:8px 0}.callout-heading strong{font-size:15px}.callout-heading small{font-size:10px}.experience-buttons{gap:4px;max-width:58%}.experience-buttons button{font-size:11px;padding:8px}.sequential-experience .experience-bottom{bottom:13px}#calloutHistory{inset:95px 12px 20px;padding:18px}.callout-history-head h3{font-size:21px}.callout-history-head button{font-size:12px}.callout-history-head{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){#calloutCard{will-change:auto}}
@media(max-width:760px){.experience-top>div:first-child{min-width:0;max-width:45%}.experience-buttons{max-width:55%}.experience-top h2{font-size:18px;line-height:1.25}}
/* Quiet materials, reduced overlay texture, and a brief one-way era dissolve. */
.grain{display:none}#vignette{opacity:.24}#roomTransition{position:fixed;inset:0;z-index:80;background:#222b26;opacity:0;pointer-events:auto}.in-room-transition #hud{visibility:hidden}.room-label,.objective,#inventorySlots .item-slot{box-shadow:none}.room-label,.objective{border-color:#d4d6ba38}.item-slot{border-radius:5px}.hud-right button{box-shadow:none}
