/* Stand by: restrained game-title presentation, separate from puzzle layout. */
html,body{background:#090b0b;color:var(--paper);font-family:var(--ui);font-size:16px;font-synthesis:none}
button{letter-spacing:.01em;-webkit-tap-highlight-color:transparent}
button,input,select{font-family:var(--ui)}
kbd,#load-text,#location-no,#dialog-kicker,.setting output,.radio h2,.frequency,.knob,.fine-help,.end-content>span,#touch-light,#pause-button{font-family:var(--mono)}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:1px solid #dfc4a2;outline-offset:5px}
#title-screen{padding:0 8.5vw;background:linear-gradient(90deg,#070909f2 0%,#070909d6 26%,#07090969 45%,transparent 74%),linear-gradient(0deg,#050707c9,transparent 24%)}
.title-block{width:min(580px,55vw);max-width:none;margin-top:-3vh}
h1{font:600 clamp(104px,10.7vw,180px)/.93 StandTitle,sans-serif;letter-spacing:-.025em;margin:0;color:#e5e0d4;white-space:nowrap;text-shadow:0 3px 24px #0004;filter:none}
.title-whisper{color:#a8aaa1;font-size:14px;font-weight:400;letter-spacing:.05em;line-height:1.6;margin:23px 0 0 3px}
.menu{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:65px 0 0 5px}
.menu button{position:relative;min-height:48px;min-width:168px;padding:12px 18px 12px 0;text-align:left;font-size:17px;font-weight:400;color:#a5a99f;transition:color .2s,transform .2s}
.menu #start{color:#e4dfd2;font-weight:500}
.menu button::before{content:'';position:absolute;left:-23px;top:calc(50% - 2px);width:8px;height:4px;margin:0;background:var(--amber);opacity:0;transition:opacity .2s}
.menu #start::before{opacity:1}
.menu:has(button:hover) #start:not(:hover)::before,.menu:has(button:focus-visible) #start:not(:focus-visible)::before{opacity:0}
.menu button:hover,.menu button:focus-visible{color:#f4e9da;transform:translateX(3px)}
.menu button:hover::before,.menu button:focus-visible::before{opacity:1}
.loading{margin:24px 0 0 5px;min-height:25px}
#load-text{font-size:11px;letter-spacing:.01em;color:#a6a99e;margin:0 0 12px}
.load-track{width:158px;height:1px;background:#c5bba62a}
.load-track i{background:var(--amber)}
.loaded .loading{visibility:hidden}
.title-footer{position:absolute;left:8.5vw;bottom:max(4.5vh,env(safe-area-inset-bottom));display:flex;gap:27px}
.title-footer button{min-height:44px;padding:0;font-size:12px;color:#989e96}
.title-footer button:hover{color:var(--paper)}
.standby-mark{position:absolute;right:5vw;bottom:calc(max(4.5vh,env(safe-area-inset-bottom)) + 15px);display:flex;align-items:center;gap:12px;color:#a7a89c;font:10px var(--mono);letter-spacing:.1em}
.standby-mark i{width:4px;height:4px;background:#b97b55;box-shadow:0 0 8px #c4723166}
.standby-mark span:last-child{margin-left:18px;color:#8f9388}
#intro{z-index:5;justify-content:center;background:linear-gradient(0deg,#030505b8,transparent 40%)}
.intro-bars{position:absolute;inset:0;border-top:7vh solid #040606;border-bottom:7vh solid #040606;pointer-events:none}
.intro-record{position:absolute;top:11vh;left:6vw;display:flex;flex-direction:column;gap:10px;font:10px/1.5 var(--mono);letter-spacing:.13em;color:#aaa99c}
.intro-record span:last-child{color:#828a82}
.intro-message{position:absolute;bottom:20vh;left:8vw;right:8vw;text-align:center;text-shadow:0 2px 10px #000}
#intro-source{font-size:12px;color:#c0aa8b;letter-spacing:.08em}
#intro-line{font-size:clamp(16px,1.5vw,21px);line-height:1.8;white-space:pre-line;margin:14px auto 0;max-width:620px}
#skip-intro{position:absolute;right:5vw;bottom:9vh;min-height:44px;padding:10px;color:#a7aba2;font-size:12px}
#skip-intro kbd{margin-left:8px;margin-right:0}
#transition-veil{position:fixed;inset:0;background:#050707;opacity:0;pointer-events:none;z-index:9;transition:opacity .42s ease}
#transition-veil.cover{opacity:1}
#location,#top-actions{opacity:1;text-shadow:0 2px 5px #000}
#location-name{font-size:14px;letter-spacing:.04em}
#location-no{color:#a1a89c}
#top-actions{font-size:13px;top:3.5vh}
#top-actions button{min-height:44px;min-width:44px}
#interact{font-size:15px}
#objective{bottom:9vh;width:290px;max-width:40%;font-size:14px;text-shadow:0 2px 4px #000}
#objective small{font-size:11px;letter-spacing:.06em;color:#a6afa1;margin-bottom:6px}
#subtitle{bottom:20vh;width:min(610px,86vw);font-size:15px;line-height:1.8}
#control-hint{font-size:11px;color:#a6afa1;letter-spacing:0;text-shadow:0 2px 3px #000}
#lock-look{bottom:2.1vh;font-size:11px;color:#a6afa1;padding:10px;min-height:44px}
#dialog-kicker{letter-spacing:.04em;color:#a5ac9c}
#close-dialog{font-size:12px;padding:10px 2px;min-height:44px}
h2{font-size:26px;letter-spacing:.015em;font-weight:500}
#dialog-content{font-size:15px}
.paper .note-body{font-size:17px;line-height:1.95}
.paper .note-foot{font-size:12px;color:#4d5444}
.paper button:hover{color:#1a2719}
.menu-list{gap:3px}
.menu-list button{font-size:16px;padding:10px 0;min-height:44px}
.help{font-size:12px;color:#a5af9d;line-height:2}
.setting{font-size:14px}
.setting input[type=range],.setting input[type=checkbox]{accent-color:#b19c7d}
.setting input[type=checkbox]{width:20px;height:20px}
.setting select{min-height:40px;max-width:100%}
.action-button,.nearby-list button,.listen{min-height:44px}
.note-tabs button{font-size:12px;padding:8px 4px;min-height:40px}
.empty-page{font-size:15px}
.journal-entry h3{font-size:18px;font-weight:500}
.journal-entry p{font-size:16px;line-height:1.9}
.journal-meta{font-size:12px;color:#4d5843;letter-spacing:0}
.nearby-list button{font-size:15px}
.radio h2{letter-spacing:.1em;color:#d0cbb5}
.frequency{letter-spacing:.04em}
#tuning{height:24px}
.listen,.radio-status,.radio-action button{font-size:14px}
.fine-help{font-size:11px;color:#b0b7a2;margin-top:8px}
.credits-text{font-size:13px}
.end-content{max-width:600px;max-height:100dvh;overflow:auto;touch-action:pan-y}
.end-brand{font:600 36px StandTitle,sans-serif;letter-spacing:-.02em;margin-bottom:25px;color:#c7c3b6}
.end-content>span{font-size:11px;letter-spacing:.06em;color:#a2ad99}
.end-content h2{font-size:44px;letter-spacing:.04em;margin:26px 0}
.end-content p{font-size:16px;line-height:2;margin-bottom:32px;color:#b9c0ae}
.end-content button{font-size:14px;margin:8px auto;min-height:44px}
body.reduce-motion *,body.reduce-motion *::before{transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){.menu button,.menu button::before,#transition-veil,.load-track i{transition:none}}
@media(pointer:coarse){
 #objective{bottom:195px;left:24px;font-size:14px;max-width:66%;width:250px}
 #subtitle{bottom:auto;top:19%;font-size:14px}
 #interact{top:53%;font-size:14px}
 #touch-use{font-size:14px}
 #touch-light{right:40px;bottom:136px;font-size:14px;width:44px;height:44px}
 #touch-controls small{font-size:10px;color:#b9c2a5a6}
 #skip-intro kbd{display:none}
}
@media(max-width:600px){
 #title-screen{padding:0 9vw;background:linear-gradient(180deg,#050808aa,transparent 36%,#050808bb 68%,#050808ed),linear-gradient(90deg,#05080870,transparent)}
 .title-block{width:100%;max-width:100%;margin-top:0;position:static}
 h1{position:absolute;top:15vh;left:8.5vw;font-size:clamp(76px,21.5vw,126px);letter-spacing:-.025em}
 .title-whisper{position:absolute;top:calc(15vh + 22vw);left:9vw;font-size:12px;margin:17px 0 0;letter-spacing:.02em}
 .menu{position:absolute;left:10vw;bottom:19vh;margin:0}
 .menu button{font-size:17px;min-height:48px}
 .menu button::before{left:-17px;width:6px}
 .loading{position:absolute;left:10vw;bottom:12vh;margin:0}
 .title-footer{left:9vw;bottom:max(3vh,env(safe-area-inset-bottom));gap:24px}
 .title-footer button{font-size:11px}
 .standby-mark{right:8vw;top:6vh;bottom:auto;font-size:9px;gap:8px}
 .standby-mark span:last-child{margin-left:10px}
 .intro-record{left:8vw;font-size:9px}
 .intro-message{bottom:23vh;left:9vw;right:9vw}
 #intro-line{font-size:17px;word-break:keep-all}
 #dialog-box{padding:18px 22px}
 h2{font-size:23px}
 .paper .note-body{font-size:16px}
 .radio-status{font-size:14px}
 .setting{grid-template-columns:1fr 100px 34px;gap:9px;font-size:13px}
 .setting input[type=range]{width:100px}
 .setting select{font-size:16px;max-width:170px}
 .setting.check{grid-template-columns:minmax(0,1fr) auto}
 #top-actions{right:4vw;top:2.8vh;gap:8px}
 #location-name{font-size:14px}
 .end-content h2{font-size:34px}
 .end-content p{font-size:14px}
 #control-hint,.fine-help{font-size:10px}
}
@media(max-height:520px){
 #title-screen{padding:0 8vw}
 .title-block{margin-top:0;width:55vw}
 h1{position:static;font-size:74px}
 .title-whisper{position:static;font-size:12px;margin:15px 0 0 2px}
 .menu{position:static;margin:20px 0 0 3px;gap:0}
 .menu button{font-size:15px;min-height:44px;padding:10px 0}
 .loading{position:absolute;left:auto;bottom:25px;margin:0}
 .title-footer{left:auto;right:5vw;bottom:14px;gap:22px}
 .standby-mark{top:24px;right:5vw;bottom:auto}
 #load-text{font-size:10px}
 #objective{bottom:22px;left:145px;max-width:240px;font-size:12px}
 #objective small{margin-bottom:3px}
 #subtitle{top:13%;bottom:auto;font-size:13px;width:min(600px,70vw)}
 #touch-light{bottom:100px}
 .end-brand{font-size:26px;margin-bottom:10px}
 .end-content h2{font-size:32px;margin:12px 0}
 .end-content p{margin-bottom:10px;font-size:14px}
 .end-content button{margin:0 auto;padding:8px}
 .intro-record{top:12vh}
 .intro-message{bottom:22vh}
 #skip-intro{bottom:8vh}
}
