/* v0.47.1: unified CRT shell and NONA PDA. Fonts are remote CSS only. */
:root, :root[data-theme="dark"] {
 --shell-bg:#090d0b; --shell-panel:#101712; --shell-raised:#172019; --shell-input:#0b100c;
 --shell-text:#c1d2bc; --shell-sub:#91a18b; --shell-accent:#afcea3; --shell-line:#394c37;
 --shell-danger:#db8980; --shell-screen:#0c140d; --shell-screen-text:#b3d5a8;
 --shell-metal:#303730; --shell-metal-edge:#51594d; --shell-key:#485045; --shell-key-text:#ced7c4;
 --shell-shadow:#0009; --shell-grid:#9ebc8d16; --pixel:'Galmuri11', 'Malgun Gothic', monospace;
 --ui-bg:var(--shell-bg); --ui-surface:var(--shell-panel); --ui-surface-2:var(--shell-raised);
 --ui-text:var(--shell-text); --ui-sub:var(--shell-sub); --ui-accent:var(--shell-accent); --ui-border:var(--shell-line);
 --pix-bg:var(--shell-bg); --pix-panel:var(--shell-panel); --pix-elevated:var(--shell-raised); --pix-text:var(--shell-text); --pix-muted:var(--shell-sub); --pix-accent:var(--shell-accent); --pix-border:var(--shell-line); --pix-focus:var(--shell-accent); --pix-danger:var(--shell-danger);
 --mono:var(--pixel);
 color-scheme:dark;
}
:root[data-theme="light"] {
 --shell-bg:#e7e8df; --shell-panel:#f1f2e9; --shell-raised:#e1e5d8; --shell-input:#f7f8f1;
 --shell-text:#283b29; --shell-sub:#596a53; --shell-accent:#385d36; --shell-line:#a6b39a;
 --shell-danger:#ae4038; --shell-screen:#dfe7ce; --shell-screen-text:#314b28;
 --shell-metal:#c4c6b7; --shell-metal-edge:#919788; --shell-key:#b6baaa; --shell-key-text:#344330;
 --shell-shadow:#44533c33; --shell-grid:#465b3a13;
 --ui-bg:var(--shell-bg); --ui-surface:var(--shell-panel); --ui-surface-2:var(--shell-raised); --ui-text:var(--shell-text); --ui-sub:var(--shell-sub); --ui-accent:var(--shell-accent); --ui-border:var(--shell-line);
 --pix-bg:var(--shell-bg); --pix-panel:var(--shell-panel); --pix-elevated:var(--shell-raised); --pix-text:var(--shell-text); --pix-muted:var(--shell-sub); --pix-accent:var(--shell-accent); --pix-border:var(--shell-line); --pix-focus:var(--shell-accent); --pix-danger:var(--shell-danger);
 color-scheme:light;
}
*{box-sizing:border-box;scrollbar-width:none!important;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html,body{background:var(--shell-bg)!important;color:var(--shell-text)!important;max-width:100%;margin:0}
body{font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:13px}
:root .hidden{display:none!important}
:root :is(button,input,select,textarea){font-family:inherit}
:root :is(button,summary){cursor:pointer}
:root button:disabled{cursor:not-allowed;opacity:.44}
:root :is(button,input,textarea,select,summary):focus-visible{outline:2px solid var(--shell-accent)!important;outline-offset:3px}
:root #game-shell{background:var(--shell-bg)!important;color:var(--shell-text);min-height:100dvh}
:root #game-shell :is(button,.tag){color:var(--shell-text)!important;background:var(--shell-raised)!important;border:1px solid var(--shell-line)!important;border-radius:3px!important;box-shadow:none;text-shadow:none;font-family:var(--pixel);font-size:11px}
:root #game-shell :is(button:not(:disabled):hover){background:var(--shell-panel)!important;border-color:var(--shell-accent)!important}
:root #game-shell :is(input,select,textarea){background:var(--shell-input)!important;color:var(--shell-text)!important;border:1px solid var(--shell-line)!important;box-shadow:none;border-radius:3px!important}
:root #game-shell :is(.panel,.left-module,.v07-card,.v17-info,.research-card,.module-item,.evidence-item,.request-entry,.social-row,.cache-item,.nearby-job,.scene-deck,.scene-module,.scene-choice,.network-notice,.growth-v42,.growth-card,.readiness-v46,.medical-v43,.legacy-entry-v44,.legacy-cache-v44,.party-panel,.moderation-v47,.medical-triage){background:var(--shell-panel)!important;color:var(--shell-text)!important;border-color:var(--shell-line)!important;box-shadow:none!important;border-radius:3px!important}
:root #game-shell :is(.panel,.left-module,.scene-deck,.terminal-screen) :is(h1,h2,h3,h4,strong,b){color:var(--shell-text)!important;text-shadow:none}
:root #game-shell :is(.panel,.left-module,.scene-deck,.terminal-screen) :is(p,small,.muted,.module-caption){color:var(--shell-sub)!important}
:root #game-shell :is(h2,h3,h4,.micro-label,.module-head,.sector-cap,.scene-choice-heading,.terminal-screen-title){font-family:var(--pixel);letter-spacing:.025em}
:root #game-shell .module-caption{font-size:12px;line-height:1.8}
:root #game-shell .micro-label{font-size:9px;color:var(--shell-sub);opacity:.82}
:root #game-shell .tag{font-size:10px;padding:5px 7px}
:root #game-shell :is(.meter-track,.progress-bar,.terminal-meter,.research-bar,.clock-progress){background:var(--shell-raised)!important;border-radius:0!important}
:root #game-shell :is(.meter-fill,.progress-fill,.terminal-vital .terminal-meter i,.tiny-meter i b,.research-bar span){background:var(--shell-accent)!important;box-shadow:none}
/* Top bar: brand/connection, segment clock, exactly two compact utility controls. */
:root #game-shell .topbar{height:70px;padding:8px 24px;border:0;border-bottom:1px solid var(--shell-line);background:var(--shell-bg);position:relative;z-index:25;box-shadow:none}
:root #game-shell .topbar-left{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
:root #game-shell .brand{font:700 25px var(--pixel);letter-spacing:.16em;color:var(--shell-accent);line-height:1.15}
:root #game-shell .connection{font:9px var(--pixel);color:var(--shell-sub);line-height:1.3;display:flex;align-items:center;gap:6px;padding:0}
:root #game-shell .connection i{width:4px;height:4px;background:var(--shell-accent);box-shadow:none;border-radius:0}
:root #game-shell .connection.offline i{background:var(--shell-sub);opacity:.5}
:root #game-shell .topbar-right{display:flex;gap:16px;align-items:center}
:root #game-shell .server-time{display:flex!important;align-items:center;gap:3px;padding:0 10px;color:var(--shell-accent);font-family:monospace}
.seg-digit{display:inline-block;position:relative;width:12px;height:22px}
.seg{position:absolute;display:block;background:var(--shell-accent);opacity:.09;clip-path:polygon(15% 0,85% 0,100% 50%,85% 100%,15% 100%,0 50%)}
.seg.on{opacity:1}.seg-a,.seg-d,.seg-g{width:10px;height:2px;left:1px}.seg-a{top:0}.seg-g{top:10px}.seg-d{bottom:0}
.seg-b,.seg-c,.seg-e,.seg-f{width:2px;height:9px}.seg-b{right:0;top:1px}.seg-c{right:0;bottom:1px}.seg-e{left:0;bottom:1px}.seg-f{left:0;top:1px}.seg-colon{font-size:22px;line-height:1;margin:0 3px}
:root #game-shell #theme-toggle{width:36px;height:36px;border:0!important;background:transparent!important;color:var(--shell-accent)!important;font:26px Georgia,serif;display:grid;place-items:center;padding:0}
:root #game-shell #logout-button{width:32px;height:32px;border:1px solid color-mix(in srgb,var(--shell-danger) 60%,transparent)!important;color:var(--shell-danger)!important;font:24px monospace;background:color-mix(in srgb,var(--shell-danger) 7%,var(--shell-bg))!important;padding:0;border-radius:3px!important}
.logout-anchor{position:relative}
:root #game-shell .desktop-popup{position:absolute;right:0;top:42px;width:min(290px,85vw);z-index:1000;background:var(--shell-panel);color:var(--shell-text);padding:14px;border:1px solid var(--shell-line);box-shadow:6px 8px 0 var(--shell-shadow);font-size:12px}
.desktop-popup header{display:flex;align-items:center;justify-content:space-between;font:10px var(--pixel);border-bottom:1px solid var(--shell-line);padding-bottom:9px}
:root #game-shell #logout-cancel{width:25px;min-height:25px;padding:0;font-size:20px}
.desktop-popup p{line-height:1.9}.desktop-popup #logout-confirm{width:100%;min-height:36px}
/* Desktop layout. Hidden scrollbar does NOT disable wheel, touch or keyboard scroll. */
:root #game-shell .workspace{display:grid;grid-template-columns:246px minmax(350px,1fr) 350px;gap:20px;max-width:1700px;width:100%;height:calc(100dvh - 70px);margin:auto;padding:20px 24px 16px;align-items:stretch}
:root #game-shell :is(.left-sidebar,.main-column,.right-sidebar){display:block!important;position:relative;top:auto;border:0;background:transparent;min-width:0;padding:0;max-height:none;height:100%;overflow:auto;overscroll-behavior:contain;grid-column:auto;grid-row:auto}
:root #game-shell .left-sidebar{padding-right:2px}
:root #game-shell .sector-cap{height:auto;padding:0 0 11px;border-bottom:1px solid var(--shell-line);margin:0 0 12px;font:12px var(--pixel);color:var(--shell-accent)}
:root #game-shell .left-module{padding:13px 11px;margin:14px 0 0;border:1px solid var(--shell-line)}
:root #game-shell .module-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-bottom:9px;position:relative}
:root #game-shell .module-head>span{font-size:9px;display:block;width:100%;color:var(--shell-sub)}
:root #game-shell .module-head>strong{font-size:12px;font-weight:400}
:root #game-shell .main-column{padding:0 2px 20px}
:root #game-shell .breadcrumbs{font:10px var(--pixel);margin:0 0 13px;color:var(--shell-sub)}
:root #game-shell .location-section{padding:20px;margin:16px 0 0}
:root #game-shell .location-section.scene-active{padding:12px}
:root #game-shell :is(.location-section h2,.actions-section h2){font-size:19px}
:root #game-shell .place-description{color:var(--shell-text)!important;font-size:14px;line-height:1.9;margin:12px 0 19px}
:root #game-shell .scene-heading{background:var(--shell-raised)!important;color:var(--shell-text);border-color:var(--shell-line);gap:8px;flex-wrap:wrap}
:root #game-shell .scene-heading button{padding:8px;font-size:10px}
:root #game-shell .scene-deck #scene-root{padding:14px 3px}
:root #game-shell .scene-module small{font-size:12px;line-height:1.7}
:root #game-shell .scene-module{padding:12px;min-height:100px}
:root #game-shell .scene-choice{font:12px var(--pixel);padding:13px 10px;min-height:54px}
:root #game-shell .scene-choice-heading strong{font:14px var(--pixel)}
:root #game-shell .scene-choice-heading span{font-size:9px;color:var(--shell-sub)}
:root #game-shell .scene-choice::before,:root #game-shell .scene-module::before{filter:grayscale(.7) sepia(.2);opacity:.8}
:root #game-shell .environment-strip,:root #game-shell .field-status-strip{background:transparent!important;border-color:var(--shell-line)!important;color:var(--shell-sub)!important;font-size:11px;line-height:1.8;gap:5px;flex-wrap:wrap}
:root #game-shell .environment-strip *{color:var(--shell-sub)!important}
:root #game-shell .result-ticker{background:var(--shell-input)!important;border:1px solid var(--shell-line);border-left:2px solid var(--shell-accent);padding:12px 14px;color:var(--shell-text)}
:root #game-shell .result-line{font-size:13px;line-height:1.8;color:var(--shell-text)}
:root #game-shell .result-heading{font:10px var(--pixel);color:var(--shell-accent)}
/* Theme-colored outline scenery, no old saturated landscape paint. */
:root #game-shell .world-banner{height:172px!important;min-height:172px;background:var(--shell-screen)!important;border:1px solid var(--shell-line);border-radius:3px;box-shadow:none;isolation:isolate}
:root #game-shell .world-banner::before,:root #game-shell .world-banner::after{display:none!important}
:root #game-shell .banner-sky{background:none!important;inset:0;position:absolute;opacity:.5}
.landscape-wire{height:100%;width:100%;fill:none;stroke:var(--shell-accent);stroke-width:1.2}
:root #game-shell .banner-content{padding:24px;position:relative;background:linear-gradient(90deg,var(--shell-screen) 0%,transparent 90%);height:100%;width:100%}
:root #game-shell .world-banner :is(h1,p,.banner-eyebrow,.banner-corner){color:var(--shell-screen-text)!important;text-shadow:none!important}
:root #game-shell .world-banner h1{font:25px var(--pixel);margin:12px 0 10px}
:root #game-shell .world-banner p{font-size:12px;max-width:80%;line-height:1.6}
:root #game-shell .banner-eyebrow{font:9px var(--pixel);letter-spacing:.1em}
:root #game-shell .banner-corner{font:8px var(--pixel);bottom:10px;right:12px;opacity:.6}
/* SUPPORT profile: consistent single-line indicators. */
:root #game-shell .profile-panel{padding:12px 11px;border:1px solid var(--shell-line)}
:root #game-shell .profile-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 0 8px;font:10px var(--pixel)}
#profile-code{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
:root #game-shell .settings-gear{width:27px;height:27px;flex:none;font:19px sans-serif;padding:0;border:0!important;background:transparent!important}
:root #game-shell .profile-row{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:5px 0 10px}
:root #game-shell #profile-initial{margin:0 auto 10px;width:136px;height:136px;overflow:hidden;border:1px solid var(--shell-line)!important;background:var(--shell-raised)!important;border-radius:0;padding:5px}
:root #game-shell #profile-initial .profile-portrait{width:100%;height:100%;object-fit:contain;border:0;box-shadow:none;image-rendering:auto;background:transparent}
:root #game-shell .portrait-empty{background:transparent;color:var(--shell-accent);display:grid;place-items:center;box-shadow:none;border:0}
.portrait-empty svg{width:100%;height:100%;max-width:100%}
:root #game-shell #profile-name{font:18px var(--pixel);margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root #game-shell #equipped-title{font:10px var(--pixel);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;background:none;padding:0;color:var(--shell-sub)}
:root #game-shell .support-xp{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;font:10px var(--pixel);margin:11px 0}
:root #game-shell .support-xp #xp-value{font:9px monospace}
:root #game-shell .support-condition,:root #game-shell .support-activity{font:10px var(--pixel);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 0;color:var(--shell-sub)}
:root #game-shell .support-activity{padding-bottom:12px;margin-bottom:8px;border-bottom:1px dashed var(--shell-line);color:var(--shell-accent)}
:root #game-shell .support-meter{display:grid;grid-template-columns:55px minmax(0,1fr) 59px;align-items:center;gap:7px;margin:11px 0;font:10px var(--pixel);white-space:nowrap}
:root #game-shell .support-meter b{font:10px monospace;text-align:right}
:root #game-shell .meter-track{height:5px;border:0;margin:0}
:root #game-shell .left-bag-space{font:10px var(--pixel);padding:12px 0 0;border:0;border-top:1px solid var(--shell-line);margin:14px 0 0;white-space:nowrap;color:var(--shell-text)}
/* Schematic terrain and zoom. */
:root #game-shell .radar-canvas{aspect-ratio:1;width:100%;height:auto;background:var(--shell-input);border:1px solid var(--shell-line);overflow:hidden;border-radius:0;margin:0}
:root #game-shell .radar-canvas svg{width:100%;height:100%;max-height:none;display:block}
.map-zoom-tools{position:absolute;right:0;bottom:-2px;display:flex;gap:4px}
:root #game-shell .map-zoom-tools button{width:26px;min-height:26px;padding:0;font:18px monospace}
.map-grid-line{fill:none;stroke:var(--shell-grid);stroke-width:1}
.terrain-lines{fill:none;stroke:var(--shell-accent);stroke-width:1;opacity:.14}.terrain-lines .map-river{stroke-width:7;opacity:.55}
:root #game-shell .route-edge{stroke:var(--shell-accent);stroke-width:1.3;opacity:.65;stroke-dasharray:3 3}
:root #game-shell .route-point{fill:var(--shell-accent);stroke:var(--shell-accent);stroke-width:1.1}
:root #game-shell .route-point.active{fill:var(--shell-accent);stroke:var(--shell-text)}
:root #game-shell .route-point.discovered{opacity:.65}
:root #game-shell .route-point text{font:9px var(--pixel);fill:var(--shell-text);stroke:var(--shell-input);stroke-width:3px;paint-order:stroke fill;stroke-linejoin:round}
:root #game-shell .friend-pin{fill:var(--pin);stroke:var(--shell-screen);stroke-width:1.5}
.map-key{font-size:10px;line-height:1.9;color:var(--shell-sub);margin-top:7px}.map-key summary{font-family:var(--pixel)}.map-key small{display:block;font-size:9px;line-height:1.7;padding-top:4px}
/* Nearby explorers + personal assistant. */
:root #game-shell .person-row{display:flex;gap:9px;padding:11px 0;align-items:flex-start;border-bottom:1px solid var(--shell-line);min-height:70px}
:root #game-shell .person-portrait{width:40px;height:40px;object-fit:cover;image-rendering:auto;border:1px solid var(--shell-line);box-shadow:none;background:var(--shell-raised)}
:root #game-shell .person-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
:root #game-shell .person-meta>strong{font:11px var(--pixel);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root #game-shell .person-meta>small{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-actions{display:flex;gap:3px;flex-wrap:nowrap;margin-top:4px}
:root #game-shell .person-actions button{padding:4px 5px;font-size:9px;min-height:25px;white-space:nowrap;background:transparent!important}
:root #game-shell #here-presence-summary{font:9px var(--pixel);line-height:1.8;margin:10px 0 0;color:var(--shell-sub)}
:root #game-shell .rescue-priority{color:var(--shell-danger)!important;border-color:var(--shell-danger)!important;background:color-mix(in srgb,var(--shell-danger) 7%,var(--shell-panel))!important}
:root #game-shell #ai-missions .mission-panel{display:block!important;border:0!important;background:none!important;margin:6px 0 0;padding:0}
:root #game-shell .mission-row{font-size:11px;border-color:var(--shell-line);color:var(--shell-text);gap:8px;line-height:1.6}
:root #game-shell .mission-row.done{opacity:.5}
:root #game-shell .ai-report p{font-size:12px;line-height:1.7;margin:10px 0 4px}
:root #game-shell .ai-report small{font:9px var(--pixel);line-height:1.8}
:root #game-shell .side-link{width:100%;margin-top:10px;padding:9px;font-size:10px}
/* NONA_P.D.A. molded casing, recessed display, physical exterior keys. */
:root #game-shell .field-terminal{height:100%;width:100%;min-height:590px;max-height:none;border-radius:20px 20px 34px 34px!important;padding:18px 16px 21px!important;border:1px solid var(--shell-metal-edge)!important;background:linear-gradient(120deg,var(--shell-metal-edge),var(--shell-metal) 16%,var(--shell-metal) 80%,var(--shell-metal-edge))!important;box-shadow:inset 0 0 0 4px var(--shell-metal),inset 0 -6px 0 #0003,0 8px 16px var(--shell-shadow)!important;position:relative}
:root #game-shell .field-terminal::before,:root #game-shell .field-terminal::after{content:'+';display:grid;place-items:center;color:var(--shell-metal);background:var(--shell-metal-edge);box-shadow:inset 0 1px 2px #0006;border:0;width:8px;height:8px;top:7px;left:8px;font:9px monospace;border-radius:50%}
:root #game-shell .field-terminal::after{right:8px;left:auto}
:root #game-shell .terminal-bezel{display:flex;flex-direction:column;height:100%;min-height:0;background:none;border:0;padding:0}
:root #game-shell .terminal-status{display:flex;align-items:center;justify-content:space-between;gap:7px;color:var(--shell-screen-text)!important;background:var(--shell-screen)!important;border:2px solid color-mix(in srgb,var(--shell-metal-edge) 50%,#000);border-bottom:1px solid var(--shell-line);border-radius:8px 8px 0 0;padding:10px 9px;font:9px var(--pixel);text-shadow:none;min-height:34px}
:root #game-shell .terminal-status b{font-weight:400;color:var(--shell-screen-text)!important;font-size:10px;letter-spacing:.02em}
.pda-status-right{display:flex;gap:10px;align-items:center}.pda-battery{height:11px;width:23px;border:1px solid currentColor;display:flex;padding:2px;gap:2px;position:relative}.pda-battery::after{content:'';position:absolute;right:-3px;top:2px;width:2px;height:5px;background:currentColor}.pda-battery i{flex:1;background:currentColor}
:root #game-shell .terminal-display{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 10px 20px!important;background:repeating-linear-gradient(0deg,transparent 0px,transparent 3px,var(--shell-grid) 4px),var(--shell-screen)!important;color:var(--shell-screen-text)!important;border:2px solid color-mix(in srgb,var(--shell-metal-edge) 50%,#000);border-top:0;border-radius:0 0 8px 8px;box-shadow:inset 0 2px 12px #0002!important;text-shadow:none}
:root #game-shell .terminal-screen{color:var(--shell-screen-text)!important;padding:0;background:none!important}
:root #game-shell .terminal-screen>h3{font:17px var(--pixel);margin:12px 0 18px}
:root #game-shell .terminal-screen-title{color:var(--shell-sub)!important;background:transparent!important;border:0;padding:4px 0;font:9px var(--pixel)}
:root #game-shell .terminal-home-clock{display:grid;grid-template-columns:35% minmax(0,1fr);align-items:center;gap:5px;aspect-ratio:2.35/1;width:100%;min-height:0;margin:0 0 22px;padding:10px 6px;background:transparent!important;border:0;border-bottom:1px solid var(--shell-line);border-radius:0;box-shadow:none!important;text-align:left}
.pda-ring{position:relative;aspect-ratio:1;width:100%;display:grid;place-items:center}.pda-ring svg{width:100%;height:100%;position:absolute;inset:0;fill:none;stroke-width:4}.ring-track{stroke:var(--shell-accent);opacity:.15}.ring-progress{stroke:var(--shell-accent)}.pda-ring b{font:12px monospace;color:var(--shell-screen-text)!important}
.pda-timer-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.pda-timer-copy small{font:8px var(--pixel);letter-spacing:.04em;white-space:nowrap;color:var(--shell-sub)}
:root #game-shell .pda-timer-copy strong{font:26px 'Courier New',monospace;color:var(--shell-screen-text)!important;letter-spacing:-.04em;white-space:nowrap}
.pda-timer-copy span{font:10px var(--pixel);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--shell-sub)}
:root #game-shell .terminal-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:19px 7px;padding:0 1px;margin:0;background:none}
:root #game-shell .terminal-apps button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;width:100%;min-width:0;min-height:80px;padding:8px 0!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:7px!important;position:relative}
:root #game-shell .terminal-apps button::after{display:none!important}
:root #game-shell .terminal-apps button:hover{border:1px solid var(--shell-line)!important;background:var(--shell-grid)!important}
:root #game-shell .terminal-apps button b{font:10px var(--pixel);color:var(--shell-screen-text)!important;white-space:nowrap}
:root #game-shell .terminal-apps button .app-icon{width:37px;height:37px;display:block;border:0!important;border-radius:0;background:var(--shell-screen-text)!important;opacity:.9;image-rendering:pixelated;mask-position:center;mask-size:contain;mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat}
.app-icon-health{mask-image:url('/assets/pixel/ico_health.png')}.app-icon-journal{mask-image:url('/assets/pixel/ico_journal.png')}.app-icon-map{mask-image:url('/assets/pixel/ico_map.png')}.app-icon-inventory{mask-image:url('/assets/pixel/ico_inventory.png')}.app-icon-message{mask-image:url('/assets/pixel/ico_message.png')}.app-icon-base{mask-image:url('/assets/pixel/ico_base.png')}.app-icon-codex{mask-image:url('/assets/pixel/ico_codex.png')}
:root #game-shell .terminal-dock-physical{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:13px;margin:0;padding:18px 7px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;position:relative;bottom:auto;flex:none}
:root #game-shell .terminal-dock-physical button{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;height:54px;padding:6px 0!important;background:linear-gradient(var(--shell-key),var(--shell-metal))!important;color:var(--shell-key-text)!important;border:1px solid var(--shell-metal-edge)!important;border-bottom:3px solid color-mix(in srgb,var(--shell-metal) 80%,#000)!important;border-radius:9px 9px 14px 14px!important;box-shadow:inset 0 1px 1px #ffffff18,0 3px 1px #0004!important}
:root #game-shell .terminal-dock-physical button:active{transform:translateY(2px);box-shadow:inset 0 2px 3px #0004!important}
:root #game-shell .terminal-dock-physical button svg{width:21px;height:21px;fill:none;stroke:var(--shell-key-text);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:root #game-shell .terminal-dock-physical button span{font:8px var(--pixel);color:var(--shell-key-text)!important;letter-spacing:0}
:root #game-shell .unread-indicator{width:6px;height:6px;background:var(--shell-accent);border:1px solid var(--shell-screen);box-shadow:0 0 0 1px var(--shell-accent);right:20%;top:7px}
:root #game-shell .terminal-display :is(.terminal-contact,.thread-row,.message-bubble,.bag-collapsible,.codex-entry,.codex-prep,.terminal-organ-card,.terminal-body-metric,.terminal-health-stat,.readiness-row,.growth-stats-grid,.v9-option,.v17-card,.social-v45-card){background:var(--shell-panel)!important;color:var(--shell-text)!important;border-color:var(--shell-line)!important;box-shadow:none!important}
:root #game-shell .terminal-body-metric .terminal-meter i{filter:saturate(.5)}
:root #game-shell .bag-grid{border-color:var(--shell-line)!important}.bag-grid [style*="--item-hue"]{filter:saturate(.65)}
:root #game-shell .contact-pin-row{display:flex;align-items:stretch;gap:6px;margin:9px 0;min-width:0}
:root #game-shell .contact-pin-row .terminal-contact{flex:1;min-width:0;margin:0;grid-template-columns:36px minmax(0,1fr);text-align:left;gap:5px 8px;padding:8px;font-size:11px}
:root #game-shell .terminal-contact .contact-portrait{grid-row:1/span 2;width:36px;height:36px}
:root #game-shell .terminal-contact strong,:root #game-shell .terminal-contact small{grid-column:2;overflow:hidden;text-overflow:ellipsis}
.pin-color-label{display:flex;flex-direction:column;justify-content:center;align-items:center;font:9px var(--pixel);gap:4px;width:29px}
:root #game-shell .pin-color-label input[type="color"]{padding:2px;min-height:25px;width:25px;height:25px;cursor:pointer}
/* Popup windows: no backdrop, no screen-wide blocking overlay. */
:root .desktop-settings{position:fixed;margin:0;padding:15px 14px;z-index:70;background:var(--shell-panel)!important;color:var(--shell-text)!important;border:1px solid var(--shell-line)!important;border-radius:4px;box-shadow:5px 6px 0 var(--shell-shadow),0 12px 25px var(--shell-shadow);overflow:auto;font-size:12px;max-width:calc(100vw - 20px)}
:root .desktop-settings::backdrop{background:none}
:root .desktop-settings .dialog-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--shell-line);padding-bottom:11px;margin-bottom:13px;gap:8px}
:root .desktop-settings .dialog-header h2{font:13px var(--pixel);margin:0;color:var(--shell-accent)!important}
:root .desktop-settings :is(p,small,.profile-summary span){color:var(--shell-sub)!important;line-height:1.8}
:root .desktop-settings :is(h3,strong,label){color:var(--shell-text)!important}
:root .desktop-settings h3{font:12px var(--pixel);margin:14px 0 8px}
:root .desktop-settings :is(button,input,select,textarea){font-size:11px;min-height:34px;padding:7px;border:1px solid var(--shell-line)!important;background:var(--shell-input)!important;color:var(--shell-text)!important;border-radius:3px!important;max-width:100%}
:root .desktop-settings button:hover{background:var(--shell-raised)!important}
:root .desktop-settings .dialog-close{width:26px;min-height:26px;height:26px;padding:0;font:19px monospace;color:var(--shell-danger)!important}
.settings-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:16px}
:root .desktop-settings .settings-tabs button{font:10px var(--pixel);padding:6px 0}
:root .desktop-settings .settings-tabs button.active{border-bottom:2px solid var(--shell-accent)!important;background:var(--shell-raised)!important}
:root .desktop-settings .profile-summary{background:none!important;border:0;border-bottom:1px solid var(--shell-line);padding:7px 0;display:flex;justify-content:space-between;gap:8px}
:root .desktop-settings .portrait-settings{background:none;border:0;padding:12px 0;margin:7px 0}
:root .desktop-settings input[type="file"]{width:100%;font-size:10px}
.inline-form{display:flex;gap:6px;margin:7px 0}.inline-form input{min-width:0;flex:1}.inline-form button{flex:none}
:root .desktop-settings .achievement-profile{border:0;background:none;padding:0;margin:0}
:root .desktop-settings :is(.achievement-card,.achievement-equipped,.account-settings){background:var(--shell-raised)!important;border-color:var(--shell-line)!important;color:var(--shell-text)!important;padding:10px;border-radius:3px}
:root .desktop-settings .achievement-list{max-height:none;overflow:visible}
.accessibility-preferences{display:flex;gap:8px;margin-top:12px}
.invite-code{display:block;margin:15px 0;padding:18px 10px;text-align:center;letter-spacing:.2em;border:1px dashed var(--shell-line);font:19px monospace;color:var(--shell-accent)}
#invite-feedback,#alias-feedback{display:block;min-height:16px;line-height:1.8;margin-top:5px}
/* AUTHENTICATION: physical CRT frame, common screen for every step. */
:root #login-screen.login-screen{display:flex;align-items:center;justify-content:center;min-height:100dvh;height:auto;padding:42px 18px;background:radial-gradient(ellipse at 50% 40%,var(--shell-raised),var(--shell-bg) 68%)!important;position:relative;overflow:auto}
.crt-monitor{width:min(780px,100%);padding:18px 24px 12px;background:linear-gradient(145deg,var(--shell-metal-edge),var(--shell-metal) 30%,var(--shell-metal) 85%,var(--shell-metal-edge));border:1px solid var(--shell-metal-edge);border-radius:24px 24px 32px 32px;box-shadow:inset 2px 2px 3px #ffffff1a,inset -2px -3px 4px #0005,0 25px 80px #0005;position:relative}
.monitor-rim{display:flex;justify-content:space-between;padding:0 8px 12px;color:var(--shell-key-text);font:8px var(--pixel);letter-spacing:.12em}
.monitor-lamp{color:var(--shell-accent);text-shadow:0 0 6px #a0d59f55}
:root #login-screen .login-card{position:relative;width:100%;padding:34px 40px 18px;background:repeating-linear-gradient(0deg,transparent 0,transparent 3px,var(--shell-grid) 4px),radial-gradient(ellipse at center,var(--shell-panel),var(--shell-screen))!important;color:var(--shell-screen-text);border:9px solid color-mix(in srgb,var(--shell-metal) 55%,#000);border-radius:27px/17px;box-shadow:inset 0 0 45px #0004!important;backdrop-filter:none;max-height:calc(100dvh - 148px);overflow:auto;margin:0}
.auth-brand{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 32px;font-family:var(--pixel)}
.auth-brand>span{font-size:32px;letter-spacing:.13em;color:var(--shell-accent)}
.auth-brand small{font-size:8px;letter-spacing:.08em;color:var(--shell-sub)}
:root #login-screen h1{font:19px/1.9 var(--pixel);margin:0 0 15px;letter-spacing:0;color:var(--shell-screen-text)!important}
:root #login-screen .auth-story{font:12px/2 var(--pixel);color:var(--shell-sub)!important;margin:10px 0 26px;word-break:keep-all}
:root #login-screen .auth-fields{display:grid;gap:8px;margin:0;padding:0}
:root #login-screen label{font:11px var(--pixel);color:var(--shell-text)!important;margin-top:7px}
:root #login-screen .crt-input{position:relative;display:flex;align-items:center;width:100%;background:var(--shell-input);border:1px solid var(--shell-line);min-height:44px;border-radius:2px}
:root #login-screen .crt-input:focus-within{border-color:var(--shell-accent)}
:root #login-screen .crt-input input{flex:1;min-width:0;width:100%;margin:0;min-height:42px;padding:12px 13px;background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important;color:var(--shell-screen-text)!important;font:13px var(--pixel);caret-color:transparent}
:root #login-screen input::placeholder{color:var(--shell-sub);opacity:.65}
.input-prefix{font:12px var(--pixel);padding-left:13px;color:var(--shell-sub)}
.input-cursor{display:none;position:absolute;top:50%;transform:translateY(-50%);width:8px;height:15px;background:var(--shell-accent);opacity:.8;pointer-events:none;animation:caret-blink 1.1s steps(1,end) infinite}
.crt-input:focus-within .input-cursor{display:block}
.block-cursor{display:inline-block;width:9px;height:16px;background:var(--shell-accent);vertical-align:-1px;margin-left:7px;animation:caret-blink 1.1s steps(1,end) infinite}
@keyframes caret-blink{0%,48%{opacity:.85}49%,100%{opacity:0}}
:root #login-screen button{font:11px var(--pixel);border:1px solid var(--shell-line);background:var(--shell-raised);color:var(--shell-text);padding:11px 14px;border-radius:2px;min-height:38px}
:root #login-screen button:hover{border-color:var(--shell-accent);background:var(--shell-panel)}
:root #login-screen .auth-submit{display:flex;justify-content:center;align-items:center;gap:12px;min-height:45px;width:100%;padding:12px;background:var(--shell-accent)!important;color:var(--shell-bg)!important;border:1px solid var(--shell-accent)!important;font:13px var(--pixel);margin-top:10px}
:root #login-screen .auth-submit:hover{filter:brightness(1.07)}
.auth-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin:15px 0 12px}
:root #login-screen .remember-label{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:9px;margin:0}
:root #login-screen :is(.remember-label,.recovery-ack) input{width:13px;height:13px;min-height:13px;accent-color:var(--shell-accent);margin:0}
.auth-footer>div{display:flex;flex-direction:column;gap:7px;align-items:flex-end}
:root #login-screen .auth-footer button,:root #login-screen .auth-back,:root #login-screen .auth-text-button{font-size:9px;min-height:22px;border:0;background:none;padding:1px 0;color:var(--shell-sub);text-decoration:underline;text-underline-offset:4px}
.auth-device-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 0 0;margin-top:21px;border-top:1px solid var(--shell-line);font:7px var(--pixel);color:var(--shell-sub);letter-spacing:.05em;opacity:.65}
.monitor-chin{display:flex;align-items:center;justify-content:space-between;padding:17px 10px 6px;font:7px var(--pixel);color:var(--shell-key-text);letter-spacing:.11em}
.monitor-chin i{width:56px;height:8px;background:repeating-linear-gradient(90deg,#0004 0,#0004 2px,transparent 2px,transparent 5px)}.monitor-chin b{border:1px solid var(--shell-metal-edge);border-radius:50%;padding:7px;box-shadow:inset 0 1px 2px #0005;font-size:5px}
.id-check-row{display:flex;align-items:stretch;gap:7px}.id-check-row .crt-input{flex:1;min-width:0}
:root #login-screen #username-check{width:44px;padding:0;font:20px monospace}.id-check-row button.verified{background:var(--shell-accent)!important;color:var(--shell-bg)!important}
:root #login-screen :is(#username-availability,.auth-note){color:var(--shell-sub);font-size:10px;line-height:1.7;min-height:0}
:root #login-screen .field-error{color:var(--shell-danger)!important;font-size:11px;line-height:1.7;margin:0}
:root #login-screen .field-error:empty{display:none}
:root #login-screen #login-error:not(:empty){border-left:2px solid var(--shell-danger);padding:7px 10px;margin-top:14px}
#signup-explorer-code{font-family:monospace;font-size:18px;color:var(--shell-accent)}
.onboarding-story{border-left:1px solid var(--shell-line);padding-left:14px;margin:14px 0 20px}.onboarding-story p{font-size:12px;line-height:1.9;color:var(--shell-sub)!important;word-break:keep-all}
:root #login-screen .auth-question{font:12px/1.9 var(--pixel);color:var(--shell-text)!important;margin:20px 0 14px}
.signup-portrait-row{display:flex;gap:12px;align-items:center;margin:14px 0 0;min-width:0}.signup-portrait-preview{width:74px;height:74px;flex:none;border:1px solid var(--shell-line);padding:5px;background:var(--shell-input);color:var(--shell-accent)}.signup-portrait-preview>svg,.signup-portrait-preview>img{width:100%;height:100%;object-fit:contain}
.signup-portrait-row label{flex:1;min-width:0}.signup-portrait-row label small{display:block;margin:7px 0;font:9px monospace;color:var(--shell-sub)}
:root #login-screen #signup-portrait{max-width:100%;width:100%;font-size:10px;color:var(--shell-sub);min-height:28px;background:none;padding:0;border:0}
:root #login-screen #signup-portrait-clear{padding:0;min-height:26px;width:26px;height:26px;font:20px monospace}
:root #login-screen .growth-create{padding:13px;border:1px solid var(--shell-line);background:transparent;margin:14px 0}
:root #login-screen .growth-create legend{font:11px var(--pixel);padding:0 5px;color:var(--shell-text)}
#register-growth-total{display:inline-block;margin-left:8px;font:11px monospace;color:var(--shell-accent)}
:root #login-screen .growth-create-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
:root #login-screen .growth-create-grid label{display:flex;flex-direction:column;gap:8px;font-size:10px;margin:0}
:root #login-screen :is(select,.growth-create-grid select){width:100%;color:var(--shell-screen-text)!important;background:var(--shell-input)!important;border:1px solid var(--shell-line);min-height:35px;border-radius:2px;font:12px var(--pixel);padding:8px}
.growth-create-grid small{font-size:9px;color:var(--shell-sub);white-space:nowrap}
:root #login-screen .auth-notice{font-size:11px;line-height:1.9;color:var(--shell-sub)!important;margin:12px 0}
.auth-actions{display:flex;align-items:center;gap:9px;margin-top:12px}.auth-actions>button:first-child{flex:none}.auth-actions>.auth-submit{flex:1;margin:0!important}
:root #login-screen .recovery-code-large{display:block;max-width:100%;overflow-wrap:anywhere;padding:24px 14px;margin:20px 0 10px;border:1px dashed var(--shell-line);font:17px/1.7 'Courier New',monospace;text-align:center;letter-spacing:.1em;color:var(--shell-accent);user-select:all}
:root #login-screen .recovery-ack{display:flex;align-items:center;gap:8px;line-height:1.7;font-size:11px;margin:20px 0}
:root #login-screen .auth-back{margin-top:16px;display:block}
:root .recovery-dialog{background:var(--shell-panel)!important;color:var(--shell-text)!important;border-color:var(--shell-line)!important}
/* Accessibility and responsive desktop/tablet/handheld layouts. */
:root[data-motion="reduced"] :is(.block-cursor,.input-cursor){animation:none!important;opacity:.8}
@media(prefers-reduced-motion:reduce){.block-cursor,.input-cursor{animation:none!important;opacity:.8}}
:root[data-readability="large"] #game-shell :is(.place-description,.result-line,.module-caption){font-size:16px!important}
@media(max-width:1200px){:root #game-shell .workspace{grid-template-columns:220px minmax(320px,1fr) 312px;gap:13px;padding:16px}:root #game-shell .field-terminal{padding:17px 12px 18px!important}:root #game-shell .pda-timer-copy strong{font-size:23px}:root #game-shell .location-section{padding:16px}}
@media(max-width:980px){:root #game-shell .workspace{grid-template-columns:minmax(0,1fr) 340px;height:auto;align-items:start}:root #game-shell .left-sidebar{grid-column:1/-1;grid-row:1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;overflow:visible;height:auto}:root #game-shell .left-sidebar>.sector-cap{grid-column:1/-1;margin:0}:root #game-shell .left-module{margin:0;min-width:0}:root #game-shell .main-column{grid-column:1;grid-row:2;height:auto;overflow:visible}:root #game-shell .right-sidebar{grid-column:2;grid-row:2;height:740px;overflow:visible}:root #game-shell .profile-panel{height:100%}:root #game-shell #profile-initial{width:100px;height:100px}:root #game-shell .support-meter{grid-template-columns:49px minmax(12px,1fr) 56px;gap:4px;font-size:9px}:root #game-shell .person-row{flex-wrap:wrap}:root #game-shell .person-meta{width:100%;flex:auto}}
@media(max-width:740px){
 :root #game-shell .topbar{height:64px;padding:9px 13px}:root #game-shell .brand{font-size:22px}:root #game-shell .topbar-right{gap:9px}
 :root #game-shell .workspace{display:flex;flex-direction:column;gap:18px;padding:14px 12px 85px;height:auto;overflow:visible}
 :root #game-shell .main-column{order:0;width:100%;height:auto;overflow:visible}:root #game-shell .right-sidebar{order:1;width:100%;height:690px;max-width:430px;align-self:center;overflow:visible}:root #game-shell .left-sidebar{order:2;display:grid!important;grid-template-columns:1fr 1fr;width:100%;height:auto;overflow:visible}
 :root #game-shell .left-profile-holder{grid-column:1!important}:root #game-shell .left-module{grid-column:auto!important}:root #game-shell .left-sidebar>.sector-cap{grid-column:1/-1}
 :root #game-shell .person-row{flex-wrap:nowrap}:root #game-shell .person-meta{width:auto;flex:1}
 :root #game-shell #profile-initial{width:110px;height:110px}:root #game-shell .support-meter{grid-template-columns:50px minmax(12px,1fr) 52px;font-size:9px}
 :root #game-shell .field-terminal{min-height:0;height:100%}:root #game-shell .terminal-display{min-height:0}
 :root #game-shell .terminal-apps{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px 8px}:root #game-shell .pda-timer-copy strong{font-size:28px}
 :root #game-shell .mobile-jump{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:50;background:var(--shell-panel);border-top:1px solid var(--shell-line);padding:9px 12px calc(9px + env(safe-area-inset-bottom));gap:8px;margin:0}
 :root #game-shell .mobile-jump button{flex:1;min-height:38px}:root #game-shell .mobile-jump button[aria-current="true"]{border-color:var(--shell-accent)!important}
 :root #game-shell .world-banner{height:152px!important;min-height:152px}.settings-pane{min-width:0}
 :root #login-screen.login-screen{padding:18px 10px;align-items:center}.crt-monitor{padding:12px 12px 9px;border-radius:18px}:root #login-screen .login-card{padding:24px 22px 16px;border-width:6px;max-height:calc(100dvh - 106px)}
 :root #login-screen h1{font-size:16px}.auth-brand{margin-bottom:25px}.auth-brand>span{font-size:27px}:root #login-screen .auth-story{font-size:11px}.monitor-chin{padding:11px 4px 3px}
}
@media(max-width:430px){
 :root #game-shell .left-sidebar{grid-template-columns:1fr}:root #game-shell .left-profile-holder,:root #game-shell .left-module{grid-column:1!important}:root #game-shell .profile-panel{padding:14px 18px}:root #game-shell #profile-initial{width:136px;height:136px}:root #game-shell .support-meter{grid-template-columns:60px 1fr 60px;font-size:11px}:root #game-shell .radar-canvas{max-height:300px}
 :root #game-shell .topbar .server-time{padding:0 3px}:root #game-shell .topbar-right{gap:6px}:root #game-shell .terminal-body-layout{grid-template-columns:100px minmax(0,1fr)!important}
 :root #game-shell .scene-module-grid{grid-template-columns:1fr}:root #game-shell .scene-choices{grid-template-columns:1fr}:root #game-shell .location-section{padding:14px}
 :root #game-shell .result-line{grid-template-columns:1fr}:root #game-shell .terminal-skill-layout{grid-template-columns:1fr!important}
 :root #login-screen .login-card{padding:22px 15px 16px;border-width:5px}.auth-brand small{font-size:7px}.auth-footer{gap:5px}:root #login-screen .remember-label{font-size:8px}:root #login-screen .auth-footer button{font-size:8px}
 :root #login-screen .growth-create-grid{grid-template-columns:1fr 1fr;gap:12px}.auth-device-footer{font-size:6px;gap:4px}
 :root #game-shell .terminal-apps button b{font-size:10px}:root #game-shell .terminal-apps .app-icon{width:34px;height:34px}:root #game-shell .pda-timer-copy strong{font-size:24px}
}
/* Layout inspection corrections: keep utilities on the right and meters visible. */
:root #game-shell .topbar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;border-bottom:0!important}
:root #game-shell .topbar-left{flex:0 1 auto}
:root #game-shell .topbar-right{margin-left:auto;flex:0 0 auto}
:root #game-shell .meter-fill{height:100%!important;display:block!important;min-height:5px}
:root #game-shell .world-banner{position:relative!important;overflow:hidden}
:root #game-shell .banner-corner{position:absolute!important;left:auto!important;right:12px!important;bottom:9px!important;z-index:2}
:root #game-shell .banner-content{margin:0!important}
:root #game-shell .section-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
:root #game-shell .module-head{justify-content:flex-start}
:root #game-shell .module-head>strong{margin:0}
:root #game-shell .route-point.active circle{fill:var(--shell-accent)!important;stroke:var(--shell-text)!important;filter:none!important}
:root #game-shell .route-point.visited :is(circle,rect){fill:var(--shell-accent);stroke:var(--shell-accent);filter:none}
:root #game-shell .route-point.visited rect[fill="none"]{fill:none}
:root #game-shell .route-point.discovered :is(circle,path){fill:none;stroke:var(--shell-sub);filter:none}
:root #game-shell .result-latest{background:var(--shell-raised)!important;border-color:var(--shell-line)!important;color:var(--shell-text)!important}
:root #game-shell .result-latest *{color:var(--shell-text)!important}
:root #game-shell .environment-strip{display:flex;align-items:center;gap:8px}
:root #game-shell :is(.field-terminal,.location-section,.left-profile-holder){scroll-margin-top:16px}

.logout-note{display:block;font-size:10px;line-height:1.8;color:var(--shell-sub);margin:0 0 12px}
