/* BLUE HOUSE RADIO / KHOK PHI LOK */
:root{color-scheme:dark;--paper:#e9e2cf;--muted:#a7ad9d;--red:#c94937;--redlight:#ef7862;--ink:#0c100e;--line:#343d32;--green:#b9c596;--font:"Anuphan",Tahoma,sans-serif;--serif:"Noto Serif Thai",Georgia,serif;--mono:"IBM Plex Mono",monospace}
*{box-sizing:border-box}html{background:var(--ink);scroll-behavior:smooth}body{margin:0;color:var(--paper);font-family:var(--font);font-size:16px}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #f2ce89;outline-offset:5px}button{color:inherit}button[hidden],[hidden]{display:none!important}h1,h2,p{margin:0}.skip{position:absolute;left:12px;top:-100px;z-index:100;background:#eee;color:#111;padding:12px}.skip:focus{top:12px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);line-height:1.6}.red-dot,.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--redlight);margin-right:9px;box-shadow:0 0 15px #d6433655}.grain{position:absolute;inset:0;pointer-events:none;z-index:7;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23noise)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.landing{position:relative;min-height:100svh;isolation:isolate;overflow:hidden;display:flex;flex-direction:column}.landing-image,.ending-image{position:absolute;inset:0;z-index:-2;background:url("./assets/scene-grandmother.webp") center/cover no-repeat}.landing-image{filter:saturate(.5) brightness(.52);transform:scale(1.035)}.landing:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,13,11,.95),rgba(8,13,11,.58) 48%,rgba(8,13,11,.08)),linear-gradient(0deg,#0c100e,transparent 35%)}.landing-top{display:flex;justify-content:space-between;align-items:center;margin:30px 5%}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:12px;letter-spacing:2px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid #8f9a79;font-size:19px;letter-spacing:-1px}.brand small{display:block;margin-top:3px;font-family:var(--mono);font-size:9px;color:#a1aa92;letter-spacing:1px}.tape-tag{font:10px var(--mono);color:#a7ae9b;letter-spacing:1px}.landing-copy{width:690px;max-width:90%;margin:35px 0 35px 9%;position:relative;z-index:10}.landing h1{font-family:var(--serif);font-size:clamp(62px,8.5vw,125px);font-weight:500;line-height:1.1;letter-spacing:-3px;margin:25px 0 10px;text-shadow:0 5px 35px #0009}.landing h1 span{color:var(--redlight)}.subtitle{font:clamp(22px,3vw,34px) var(--serif);margin:13px 0 24px}.synopsis{font-size:16px;color:#c2c7b4;line-height:1.9}.landing-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn{min-height:49px;padding:12px 23px;border:1px solid #7d866e;background:transparent;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:35px;text-decoration:none;transition:background .2s,transform .2s}.btn:hover{transform:translateY(-2px)}.btn.primary{background:var(--red);border-color:var(--red);color:#fff6e7}.btn.primary:hover{background:#da5945}.btn.outline:hover{background:#dde7c411}.landing-details{display:flex;gap:22px;margin:27px 0 12px;color:#c3c9b5;font-size:12px}.landing-details span+span:before{content:"·";margin-right:22px;color:#a46343}.small-note{font-size:12px;line-height:1.9;color:#929d88}.boot-status{font-size:11px;color:#d9b783;margin-top:12px}.landing-bottom{margin:auto 5% 28px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-family:var(--serif);font-size:12px;color:#a6ae9b;position:relative;z-index:10}.text-link{border:0;background:none;color:#b7c5a1;padding:10px 0;text-decoration:none;font-size:12px;text-underline-offset:5px}.text-link:hover{text-decoration:underline;color:#ecebd8}
.game{max-width:1920px;margin:auto;min-height:100svh}.game-header{height:66px;padding:0 3%;display:flex;align-items:center;gap:22px;background:#0b100e;border-bottom:1px solid #27332b}.game-brand{font:21px var(--mono);text-decoration:none;letter-spacing:-2px;white-space:nowrap}.game-brand span{font:16px var(--serif);letter-spacing:0;margin-left:12px}.progress-meta{font-size:11px;color:#a6b49d;flex:1}.toolbar{display:flex;gap:7px;align-items:center}.tool{border:1px solid #3a4638;background:#131b15;display:flex;align-items:center;gap:8px;padding:9px 12px;min-height:40px;font-size:12px;white-space:nowrap}.tool:hover{background:#253025}.tool[aria-pressed=true]{border-color:var(--redlight);color:#ffb0a1;background:#431d19}.tool b{font:10px var(--mono);display:inline-grid;place-items:center;min-width:16px;color:#bfd4a3}.tool.compact{width:40px;justify-content:center;font-size:18px;padding:6px}
.scene-window{height:min(57vw,570px);min-height:260px;position:relative;overflow-x:auto;overflow-y:hidden;background:#050907;scrollbar-width:thin;scrollbar-color:#5c634b #111a12;overscroll-behavior-x:contain}.scene-plane{position:relative;width:100%;height:100%;min-width:100%;overflow:hidden;isolation:isolate}.scene-image{position:absolute;width:100%;height:100%;object-fit:cover;inset:0;filter:saturate(.58) brightness(.62);transition:filter .7s}.scene-tone{position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,#08110d7d,transparent 45%),#12343c36;mix-blend-mode:multiply;pointer-events:none}.scene-vignette{position:absolute;inset:0;z-index:6;pointer-events:none;box-shadow:inset 0 0 130px 30px #0008;background:linear-gradient(180deg,#07100a85,transparent 26%,transparent 80%,#0c100e)}.scene-heading{position:absolute;top:24px;left:3%;z-index:10;pointer-events:none;max-width:70%;text-shadow:0 2px 12px #000}.scene-heading h2{font-family:var(--serif);font-size:clamp(20px,2.4vw,32px);font-weight:500;margin:5px 0}.scene-kicker{color:#c0c8ae}.vision-status{position:absolute;right:3%;top:28px;padding:7px 12px;border:1px solid #e77f6b;color:#ffd3ba;background:#431b1abf;z-index:10;font-size:11px}.vision-overlay{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:0;box-shadow:inset 0 0 70px 8px #b31a2566;background:linear-gradient(90deg,#e74e3b22,transparent 30%,transparent 70%,#e74e3b22);transition:opacity .4s}.vision .vision-overlay{opacity:1}.vision .scene-image{filter:saturate(.2) brightness(.8) contrast(1.1)}.ghost-image{position:absolute;bottom:8%;left:50%;width:25%;max-height:90%;object-fit:contain;object-position:bottom;transform:translateX(-50%);z-index:4;filter:brightness(.78) saturate(.6) drop-shadow(0 6px 24px #0008);pointer-events:none;animation:appear 1.1s both}.vision .ghost-image{filter:brightness(.96) saturate(.55) drop-shadow(0 0 14px #d45c4a35)}.ghost-image.kind{filter:brightness(.85) saturate(.55) drop-shadow(0 0 30px #ede0ac28)}.threat .ghost-image{animation:approach 16s linear forwards;transform-origin:center bottom;z-index:8}.threat .scene-window{box-shadow:inset 0 0 35px #b52e32}.fog{position:absolute;z-index:2;inset:15% -25% -20%;background:radial-gradient(ellipse at 50% 80%,#a8bab330,transparent 60%);pointer-events:none;animation:drift 28s ease-in-out infinite alternate;opacity:.5}.fog-two{animation-delay:-12s;animation-duration:35s;opacity:.3;transform:scaleX(-1)}.hotspots{position:absolute;inset:0;z-index:9}.hotspot{position:absolute;transform:translate(-50%,-50%);min-width:44px;min-height:44px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#f2e3c2;isolation:isolate}.hotspot:before{content:"";position:absolute;width:26px;height:26px;border:1px solid #e4d6b392;border-radius:50%;background:#121b13a8;box-shadow:0 0 0 6px #b0bd8915;z-index:-1}.hotspot>span{font:13px var(--mono)}.hotspot small{position:absolute;left:50%;top:42px;transform:translateX(-50%);font-size:11px;white-space:nowrap;background:#0b160de0;padding:5px 10px;border:1px solid #68745478;max-width:230px}.hotspot:hover:before,.hotspot:focus-visible:before{background:#a3412f;border-color:#f0caa2}.hotspot.found:before{border-color:#a7bb87;background:#52613cb8}.hotspot.secret:before{border-color:#f39a81}.hotspot.secret small{color:#ffc8b5}.scene-loading{position:absolute;inset:0;z-index:15;background:#08100bd9;display:grid;place-items:center;color:#b7c4a9;font-size:14px}.scene-toast{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);padding:9px 17px;background:#101b13ef;border:1px solid #7f8d63;z-index:20;font-size:12px;max-width:90%;text-align:center}.pan-hint{display:none;position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:12;font-size:10px;padding:5px 10px;color:#c3ccbc;background:#0e160bb8;pointer-events:none}
.game-content{padding:18px 5% 24px;max-width:1500px;margin:auto}.scene-status{display:flex;justify-content:space-between;gap:18px;font-size:10px;color:#86967e;border-bottom:1px solid var(--line);padding-bottom:12px;letter-spacing:.3px}.story-panel{padding:20px 0 16px;max-width:1050px;min-height:116px}.speaker{font-size:11px;color:#d59579;margin-bottom:8px;letter-spacing:.6px}.story-panel #story-text{font-size:16px;line-height:1.85;white-space:pre-line}.choice-list{display:flex;flex-wrap:wrap;gap:10px}.choice{border:1px solid #424b38;background:#182118;color:#dce1cc;min-height:45px;padding:12px 18px;text-align:left;font-size:13px;line-height:1.65;transition:background .2s,border .2s;display:flex;align-items:center;gap:12px}.choice .number{font:10px var(--mono);color:#93a282;display:inline-block;border-right:1px solid #465039;padding-right:12px}.choice:hover{background:#283024;border-color:#a1ac80}.choice.main{background:#893c2e;border-color:#b85c44;color:#fff0dc}.choice.main .number{color:#f2bea4;border-color:#ba6a4d}.choice.inspect{background:#101913}.choice.route{background:#3e4a29;border-color:#a5b177}.choice.wide{width:100%;justify-content:center}.destination-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:4px}.destination{position:relative;overflow:hidden;min-height:115px;padding:17px 17px 15px;text-align:left;background:#1d271d;border:1px solid #394633;display:flex;flex-direction:column;gap:6px;isolation:isolate}.destination:before{content:"";position:absolute;inset:0;background:var(--thumb) center/cover;opacity:.17;z-index:-2;transition:opacity .3s}.destination:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#111b11b8,transparent);z-index:-1}.destination:hover{border-color:#bdc49c}.destination:hover:before{opacity:.35}.destination .dest-index{font:10px var(--mono);color:#b5c09c;display:flex;justify-content:space-between}.destination .dest-title{font:18px var(--serif);color:#e5e6d3}.destination .dest-hint{font-size:11px;color:#a6b29a;line-height:1.5}.dest-visited{font-family:var(--font);color:#d3aa86}.scene-footer{display:flex;justify-content:space-between;margin-top:18px;border-top:1px solid var(--line);padding-top:6px}.escape-meter{margin-top:14px;color:#f5a08c}.escape-meter>div:first-child{display:flex;align-items:center;justify-content:space-between;font-size:12px}.escape-meter strong{font:20px var(--mono)}.meter-track{height:3px;margin-top:7px;background:#54281e}.meter-track i{height:100%;display:block;background:#ee8067;width:100%;transform-origin:left center}
.dialog{padding:34px;max-width:560px;width:calc(100% - 36px);max-height:90svh;overflow:auto;color:var(--paper);background:#131b14;border:1px solid #586249;box-shadow:0 20px 90px #0009}.dialog::backdrop{background:#050b09ce;backdrop-filter:blur(6px)}.dialog h2{font:27px var(--serif);font-weight:500;margin:14px 0}.dialog>p:not(.eyebrow){font-size:13px;line-height:1.9;color:#b5c1ab}.dialog-close{position:absolute;right:12px;top:10px;background:none;border:0;font-size:28px;padding:0 9px;color:#a9b29e}.settings{margin:20px 0 14px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #34412d;padding:14px 0;font-size:12px}.setting-row input[type=checkbox]{accent-color:#d05a43;width:19px;height:19px}.volume-row input{width:140px;accent-color:#c36449}.dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:25px}.journal{max-width:660px}.journal-entry{border-top:1px solid #36432e;padding:16px 0}.journal-entry h3{font-size:15px;font-weight:500;margin:4px 0 8px}.journal-entry p{font-size:13px;line-height:1.8;color:#afbaa3}.journal-entry small{font:9px var(--mono);color:#aabb8b}.journal-route{border-left:2px solid #bd7855;padding-left:14px;margin:18px 0}.empty-journal{padding:25px 0;color:#9bab8d;font-size:14px;line-height:1.8}
.ending{min-height:100svh;position:relative;isolation:isolate;padding:10vh 10%;display:flex;align-items:center}.ending-image{filter:brightness(.58) saturate(.65)}.ending-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#08100cf0,rgba(9,17,12,.4)),linear-gradient(0deg,#080e0b,transparent)}.ending-copy{max-width:690px}.ending h2{font:clamp(38px,6vw,68px) var(--serif);font-weight:500;line-height:1.4;margin:18px 0 25px}.ending #ending-text p{font-size:16px;line-height:1.95;margin:0 0 15px;color:#d5dac8}.ending-stat{font-size:11px;color:#a8b88f;border-top:1px solid #586045;padding-top:20px;margin:24px 0}.ending-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.ending.loss .ending-image{filter:brightness(.2) saturate(.2)}.ending.loss h2{color:#e9a08b}.noscript,.fatal-error{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;gap:24px;background:#0c160e;padding:30px;flex-direction:column}.fatal-error p{text-align:center}
@keyframes drift{from{transform:translateX(-5%) scale(1)}to{transform:translateX(6%) scale(1.15)}}@keyframes appear{from{opacity:0;filter:blur(9px) brightness(.6);transform:translateX(-50%) translateY(14px)}to{opacity:1}}@keyframes approach{from{transform:translateX(-50%) scale(1)}to{transform:translateX(-50%) scale(1.65)}}.reduced-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(min-width:1600px){.scene-window{height:620px}.landing-copy{margin-top:7vh}}@media(max-width:900px){.game-header{gap:10px;padding:0 16px}.game-brand span{display:none}.progress-meta{font-size:10px}.game-content{padding:15px 22px 24px}.scene-window{height:48vw;min-height:280px}.destination-grid{grid-template-columns:repeat(2,1fr)}.scene-heading{left:22px}.landing-copy{margin-left:7%}.tape-tag{font-size:8px}.landing h1{font-size:90px}.landing h1 span{display:block}.landing .subtitle{margin-top:12px}.synopsis{font-size:15px}}
@media(max-width:600px){.landing-top{margin:22px 6%}.tape-tag{display:none}.landing-copy{margin:25px 6%;max-width:88%;width:auto}.landing h1{font-size:76px;line-height:1.15;margin:18px 0}.landing h1 span{display:inline}.subtitle{font-size:23px}.synopsis{font-size:14px}.landing-actions{margin-top:23px}.landing-actions .btn{width:100%;gap:15px;justify-content:space-between}.landing-details{gap:12px;font-size:11px;margin-top:24px}.landing-details span+span:before{margin-right:12px}.landing-bottom{margin:15px 6% 24px;align-items:flex-start;flex-direction:column;gap:8px}.landing:after{background:linear-gradient(90deg,#08100bd9,#08100b77),linear-gradient(0deg,#0b130d,transparent 70%)}.landing-image{background-position:58% center}.game-header{height:58px;gap:10px;padding:0 12px}.game-brand{font-size:18px}.progress-meta{display:none}.toolbar{margin-left:auto;gap:5px}.tool{font-size:11px;gap:5px;padding:8px;min-height:38px}.tool.compact{width:36px}.scene-window{height:46svh;min-height:280px;max-height:430px}.scene-plane{width:calc(46svh * 2.35);min-width:658px;max-width:1011px}.scene-heading{top:16px;left:16px;max-width:80%;position:sticky;height:0;transform:translateY(calc(-46svh + 16px));margin-bottom:0}.scene-heading h2{font-size:23px}.scene-heading .eyebrow{font-size:9px}.scene-vignette{box-shadow:inset 0 0 80px 10px #0007}.vision-status{top:78px;right:12px;font-size:9px;position:sticky;float:right;margin-top:calc(-46svh + 78px)}.pan-hint{display:block;position:sticky;left:50%;width:max-content;margin-top:-37px;bottom:14px}.scene-toast{position:sticky;left:50%;width:max-content;margin-top:-58px;bottom:28px}.scene-loading{position:sticky;inset:auto;height:46svh;margin-top:-46svh}.game-content{padding:12px 16px 22px}.scene-status{font-size:9px;gap:10px}.story-panel{padding:16px 0;min-height:110px}.story-panel #story-text{font-size:14px;line-height:1.85}.choice-list{display:grid;grid-template-columns:1fr;gap:8px}.choice{width:100%;padding:11px 13px;font-size:12px;min-height:46px}.destination-grid{gap:8px}.destination{padding:13px;min-height:119px}.destination .dest-title{font-size:16px;line-height:1.6}.destination .dest-hint{font-size:10px}.dest-index{font-size:9px!important}.scene-footer .text-link{font-size:10px}.dialog{padding:28px 22px}.dialog h2{font-size:24px}.setting-row{font-size:11px}.volume-row input{width:100px}.ending{padding:10vh 7%}.ending #ending-text p{font-size:14px}.ending-actions{flex-direction:column;align-items:stretch}.ending-actions .text-link{text-align:center}.hotspot small{font-size:10px}.hotspot:before{width:29px;height:29px}}
@media(max-height:550px) and (orientation:landscape){.game-header{height:50px}.scene-window{height:62vh;min-height:200px}.scene-plane{width:100%;min-width:100%;max-width:none}.scene-heading{position:absolute;transform:none;top:14px;height:auto}.pan-hint{display:none}.vision-status{position:absolute;margin:0;top:20px}.landing{min-height:640px}.scene-loading{position:absolute;margin:0;inset:0;height:auto}.scene-toast{position:absolute;margin:0}.story-panel{min-height:90px}.game-content{padding-top:10px}.scene-vignette{box-shadow:inset 0 0 60px 15px #0008}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}


/* Keep labels fixed while portrait players pan the scene underneath. */
.scene-frame{position:relative;overflow:hidden}.scene-heading{top:24px;left:3%;position:absolute;height:auto;transform:none;margin:0}.scene-toast{position:absolute;left:50%;bottom:28px;margin:0}.scene-loading{position:absolute;inset:0;height:auto;margin:0}.vision-status{position:absolute;right:3%;top:28px;float:none;margin:0}.pan-hint{position:absolute;left:50%;bottom:14px;margin:0}.paused .ghost-image{animation-play-state:paused!important}.calm.threat .ghost-image{animation:appear 1s both}
@media(max-width:600px){.scene-heading{top:16px;left:16px;max-width:calc(100% - 32px)}.scene-heading h2{font-size:21px}.vision-status{top:88px;right:12px}.scene-loading{inset:0;height:auto}.scene-toast{bottom:40px;max-width:88%;width:max-content}.pan-hint{display:block}.tool{min-height:42px}.tool.compact{min-width:40px}.scene-heading .eyebrow{font-size:9px}}
@media(max-height:550px) and (orientation:landscape){.pan-hint{display:none}.vision-status{top:20px}.scene-heading{top:14px}}
