:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#121715;color:#e8eee9}*{box-sizing:border-box}body{max-width:850px;margin:auto;padding:24px;line-height:1.6}h1{font-size:clamp(30px,5vw,48px);margin:0}h2{font-size:20px}.eyebrow{color:#c7d59b;letter-spacing:.08em}button{font:inherit;padding:9px 14px;min-height:44px;cursor:pointer;background:#29382f;color:#fff;border:1px solid #829489;border-radius:6px}button:disabled{opacity:.5;cursor:not-allowed}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}#map{display:grid;gap:4px;max-width:450px}.cell{aspect-ratio:1;display:grid;place-items:center;border:1px solid #64746a;background:#253029;font-size:22px}.player{border:3px solid #d6e6a2}.fog{background:#0c100e;color:#aeb9b1}#status{padding:14px;border-left:3px solid #d6e6a2;background:#1d2821}footer{margin-top:30px;color:#bbc9bf}a{color:#d6e6a2}:focus-visible{outline:3px solid #f0d775;outline-offset:3px}.skip{position:absolute;top:-100px}.skip:focus{top:0;background:#121715;padding:10px}@media(max-width:480px){body{padding:16px}.cell{font-size:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Geographic renderer and Google Maps markers. */
#map.geographic-map{display:block;max-width:none;width:100%;height:clamp(360px,60vh,600px);overflow:hidden;border:1px solid #64746a;border-radius:12px;background:#101a17}
.geographic-map svg{display:block;width:100%;height:100%}.map-pin{font-size:28px;line-height:1;filter:drop-shadow(0 2px 2px #0008)}#map-status{font-size:14px;color:#d6e6a2}#coordinates{font-family:monospace;color:#c5d0c8}

/* Legacy RPG media, with readable controls and native health semantics. */
.hud{display:flex;align-items:center;gap:16px;background:#ede8da;color:#29251e;border:4px double #8c826b;border-radius:10px;padding:16px;margin:16px 0}.hud p{margin:0 0 8px}.hud meter{width:min(240px,100%);height:22px}#inventory button{display:flex;align-items:center;gap:8px}picture img{object-fit:contain;vertical-align:middle}.map-pin img{width:36px;height:36px;object-fit:contain}#outcome{padding:16px;border:1px solid #e5cf8c;background:#29382f;font-weight:bold}button{touch-action:manipulation}#moves{position:sticky;bottom:0;padding:10px;background:#121715ed;z-index:1}@media(max-width:480px){.hud{padding:10px}.hud p{font-size:14px}#moves{gap:6px}#moves button{flex:1;padding:8px}}

/* Map-first RPG layout. Overlays are siblings of the SDK-owned map DOM. */
body{max-width:1440px;padding:20px 28px}header{display:flex;align-items:baseline;gap:20px;flex-wrap:wrap}header h1{font-family:Georgia,serif;color:#d8b19b;font-size:clamp(28px,4vw,42px)}header .eyebrow{margin:0}header>p:last-child{flex-basis:100%;margin:0 0 8px}#world-source{font-size:13px;color:#aebdaf;margin:8px 0}#map-status{margin:6px 0}#status{padding:9px 14px;margin:10px 0}.actions{margin:10px 0}#level{margin:12px 0 4px}#coordinates{margin:4px 0 10px;font-size:12px}
.map-stage{position:relative;isolation:isolate;border:3px double #8c826b;border-radius:12px;overflow:hidden;background:#101a17}#map.geographic-map{height:clamp(540px,72vh,900px);border:0;border-radius:0}.map-stage #map:not(.geographic-map){margin:140px auto 20px;width:100%;max-width:450px}
.map-stage .hud{position:absolute;z-index:1;top:14px;right:14px;width:285px;max-width:calc(100% - 28px);margin:0;padding:12px;gap:10px;box-shadow:0 3px 15px #0005;pointer-events:none}.hud p{font-size:13px;line-height:1.6}.hud img{flex-shrink:0}.hud meter{width:100%;max-width:180px}
.map-bag{position:absolute;z-index:2;left:14px;top:14px;width:240px;max-height:calc(100% - 65px);overflow:auto;background:#171e19f5;border:4px double #a09478;border-radius:9px;box-shadow:0 4px 18px #0006;overscroll-behavior:contain}.map-bag h2{margin:0;padding:10px 14px;font-family:Georgia,serif;color:#e9d7b6;font-size:20px;border-bottom:1px solid #6f7762}.map-bag summary{cursor:pointer;padding:12px;font-weight:600;background:#303c30;min-height:44px}.map-bag details+details{border-top:1px solid #7c8068}.map-bag .actions{display:flex;flex-direction:column;padding:10px;margin:0;gap:6px}.map-bag button{width:100%;text-align:left;font-size:14px;padding:7px 10px}.map-bag picture img{width:30px;height:30px}.map-bag p{font-size:13px;margin:10px 12px}summary:focus-visible{outline:3px solid #f0d775;outline-offset:-3px}#moves{position:static;background:transparent;padding:0}footer{font-size:13px;margin-top:20px}
@media(max-width:799px){body{padding:12px}header{gap:5px 14px}header>p:last-child{font-size:14px}#map.geographic-map{height:650px;height:clamp(520px,78svh,760px)}.map-stage .hud{top:10px;right:10px;left:10px;width:auto;max-width:none;padding:8px}.hud img{width:32px;height:44px}.hud p{font-size:12px;margin:0}.hud meter{height:16px}.map-bag{top:auto;bottom:38px;left:10px;width:210px;max-height:48%}.map-bag h2{font-size:16px;padding:6px 10px}.map-bag summary{padding:10px}.map-stage #map:not(.geographic-map){margin-top:115px;margin-bottom:170px}.map-bag button{font-size:13px}#moves button{min-height:48px}#game>p:last-of-type{font-size:13px}}

.guest-label{align-self:center;font-size:13px;color:#c7d59b}.inventory-row,.shop-row{display:flex;gap:6px;align-items:center}.map-bag .inventory-row .item-information{display:flex;align-items:center;gap:6px;flex:1;min-width:0;background:transparent;border-color:transparent}.map-bag .inventory-row>button:last-child{width:auto;flex-shrink:0}.map-bag .shop-row>button:first-child{flex:1}.map-bag .shop-row>button:last-child{width:44px;flex-shrink:0}.item-information span{overflow-wrap:anywhere}dialog{color:#eee9da;background:#1d2821;border:3px double #b9aa88;border-radius:12px;padding:24px;max-width:min(420px,calc(100% - 32px));box-shadow:0 15px 70px #0009}dialog::backdrop{background:#0009}dialog h2{text-transform:capitalize;margin-top:0}dialog p{line-height:1.7}dialog button{min-width:90px}

/* Restore the original New Tegomin horror identity without animated UI effects. */
@font-face{font-family:'New Tegomin';src:url('media/fonts/NewTegomin-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
:root{font-family:'New Tegomin',Georgia,serif;color-scheme:dark;background:#100605;color:#eee2d8}
body{background:linear-gradient(#090302ce,#100503e8),url('media/cover.jpeg') center/cover fixed;min-height:100vh}
header{justify-content:center;text-align:center;border-bottom:3px double #744b43;padding-bottom:10px}header h1{font-family:inherit;letter-spacing:.12em;color:#bd2822;text-shadow:2px 3px 0 #210000;font-weight:400}header .eyebrow{color:#a99587;letter-spacing:.12em}header>p:last-child{color:#c7b2a4}
button,summary{font-family:inherit}button{background:#2c0d0b;border:2px outset #8d776d;border-radius:3px;color:#f1e7dc}button:hover:not(:disabled){background:#4b1712}button:disabled{opacity:.5}a,.guest-label,#map-status{color:#cdb6a3}#world-source,footer{color:#b59b8c}#status{background:#200b09e8;border-left-color:#a2221b}#coordinates{color:#bfa99b}.map-stage{border:7px double #8a776b;background:#120604;border-radius:9px}
.map-bag{background:linear-gradient(#230906eb,#160302f5),url('media/cover.jpeg') center/cover;border:7px double #8c8077;border-radius:8px}.map-bag h2{font-family:inherit;font-weight:400;color:#f4ece3;text-align:center;letter-spacing:.12em;border-bottom-color:#938275}.map-bag summary{background:#e4dccf;color:#2b1310;border-bottom:1px solid #5a3e33}.map-bag summary:hover{background:#f4e8d3}.map-bag .inventory-row .item-information{color:#f0e0d0}.map-bag .inventory-row .item-information:hover{background:#38110b}.map-bag p{color:#d4bdae}
.map-stage .hud{display:block;width:235px;max-width:calc(100% - 28px);background:#f6f0df;color:#2d211a;border:7px double #82786a;border-radius:12px;padding:10px 14px}.stat-row{display:flex;align-items:center;gap:10px;min-height:37px}.stat-row picture img{width:34px;height:34px;object-fit:contain}.health-readout{flex:1;min-width:0;text-align:center;font-size:12px}.hud meter{display:block;width:100%;max-width:none;height:16px;accent-color:#ba1717}.hud meter::-webkit-meter-bar{background:#d3c4b4;border:1px solid #564037;border-radius:10px}.hud meter::-webkit-meter-optimum-value{background:#bd1b16}.hud meter::-moz-meter-bar{background:#bd1b16}.hud #steps-value{font-size:12px;margin:2px 0;text-align:right}.missing-key{opacity:.35;filter:grayscale(1)}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.radar-panel{position:absolute;right:14px;bottom:38px;z-index:1;width:300px;max-height:220px;overflow:auto;border:5px double #8c8077;border-radius:10px;background:#090b08f2;color:#d7dfbc}.radar-panel[hidden]{display:none}.radar-panel summary{min-height:44px;cursor:pointer;padding:8px 12px;background:#171c11;color:#c2d998;letter-spacing:.12em}.radar-content{display:flex;align-items:center;padding:8px;gap:8px}#radar-art img{width:90px;height:90px}#radar-targets{flex:1;font-size:13px;max-height:130px;overflow:auto}.radar-target{display:flex;align-items:center;gap:6px;padding:3px 0;text-transform:capitalize}.radar-target img{width:28px;height:28px}
dialog{font-family:inherit;background:linear-gradient(#230906,#100403);border:7px double #8f7b6a;color:#ecddcc}dialog h2{color:#d7b09b}#outcome{background:#290b09;border:3px double #a88065}
@media(max-width:799px){header h1{font-size:30px}.map-stage .hud{left:auto;right:8px;top:8px;width:180px;padding:6px 10px;border-width:5px}.stat-row{min-height:27px;gap:6px}.stat-row picture img{width:25px;height:25px}.stat-row span{font-size:12px}.health-readout{font-size:11px}.hud #steps-value{font-size:10px}.radar-panel{right:8px;top:205px;bottom:auto;width:180px;max-height:150px}.radar-content{padding:4px;gap:4px}#radar-art img{width:42px;height:42px}#radar-targets{font-size:10px;max-height:85px}.radar-target img{width:20px;height:20px}.radar-panel summary{padding:6px 8px}.map-bag{width:210px;max-height:40%;left:8px;bottom:38px}.map-stage #map:not(.geographic-map){margin-top:190px;margin-bottom:190px}}

/* Compact unified overlays and a separate touch-first composition. */
.status-panels{position:absolute;z-index:2;right:10px;top:10px;display:flex;align-items:flex-start;gap:8px;max-width:calc(100% - 20px);pointer-events:none}.status-panels>*{pointer-events:auto}.map-stage .hud{position:static;width:184px;max-width:none;padding:7px 10px;border-width:5px;border-radius:8px;flex-shrink:0;pointer-events:none}.stat-row{min-height:30px;gap:7px}.stat-row picture img{width:36px;height:36px}.stat-row>span:last-child{font-size:13px}.hud #steps-value{font-size:10px;margin:0}.health-readout{font-size:11px}.hud meter{height:13px}
.status-panels .radar-panel{position:static;width:210px;max-height:186px;flex-shrink:0;border-width:5px;border-radius:8px;order:-1}.radar-panel summary{min-height:36px;font-size:14px;padding:5px 8px}.radar-content{gap:5px;padding:5px}#radar-art img{width:58px;height:58px}#radar-targets{font-size:11px;max-height:122px}.radar-target img{width:30px;height:30px}
.map-bag{left:10px;top:10px;width:208px;max-height:calc(100% - 56px);border-width:5px;border-radius:8px}.map-bag h2{font-size:16px;padding:6px 8px}.map-bag summary{font-size:13px;min-height:36px;padding:6px 9px}.map-bag .actions{gap:4px;padding:6px}.map-bag button{padding:4px 6px;font-size:12px;min-height:40px}.map-bag .inventory-row .item-information{gap:4px;padding:3px 1px}.map-bag picture img{width:36px;height:36px}.map-bag .inventory-row>button:last-child{padding:5px}.map-bag p{font-size:12px;margin:6px 8px}.map-pin img{width:42px;height:42px}
#map.geographic-map{background:#000}.geographic-map svg{background:#000}.cell.fog{background:#000;color:#000}.map-stage{background:#000}#moves{position:absolute;z-index:3;right:12px;bottom:38px;display:grid;grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px;gap:4px;margin:0;padding:0;background:transparent}#moves button{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:8px;background:#210b08e8;border:2px solid #b69b87;font-family:system-ui,sans-serif;font-size:23px;padding:0;box-shadow:0 2px 8px #0008}#moves [data-dy="-1"]{grid-column:2;grid-row:1}#moves [data-dx="-1"]{grid-column:1;grid-row:2}#moves [data-dy="1"]{grid-column:2;grid-row:2}#moves [data-dx="1"]{grid-column:3;grid-row:2}
.game-over{position:absolute;inset:0 0 32px;z-index:6;display:grid;place-items:center;text-align:center;padding:20px;background:radial-gradient(ellipse,#100000b3,#610000dc);animation:death-fade 1.2s ease-out}.game-over[hidden]{display:none}.game-over>div{padding:26px;max-width:400px;background:#100000ed;border:5px double #a34032;box-shadow:0 10px 70px #000}.game-over h2{font-size:clamp(34px,7vw,64px);font-weight:400;letter-spacing:.1em;color:#e33122;text-shadow:0 4px 15px #a00000;margin:0 0 14px}.game-over p{color:#dec6b8}.game-over button{min-height:48px}@keyframes death-fade{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.game-over{animation:none}}
@media(max-width:799px){
 body{padding:8px}header h1{font-size:26px}header .eyebrow{font-size:11px}header>p:last-child{font-size:12px}#world-source{font-size:10px}#map-status{font-size:11px}#status{font-size:12px;margin:6px 0;padding:7px 9px}#play>.actions{gap:6px}#play>.actions button{padding:6px 10px;font-size:13px}.guest-label{font-size:10px}#level{font-size:16px}#coordinates{font-size:10px}
 #map.geographic-map{height:clamp(590px,82svh,840px)}.map-stage{border-width:4px}.status-panels{left:6px;right:6px;top:6px;max-width:none;gap:6px;justify-content:space-between}.map-stage .hud{width:148px;padding:4px 7px;border-width:4px}.stat-row{min-height:25px;gap:5px}.stat-row picture img{width:30px;height:30px}.stat-row>span:last-child{font-size:11px}.health-readout{font-size:10px}.hud #steps-value{font-size:9px}.status-panels .radar-panel{width:calc(100% - 154px);max-width:170px;max-height:163px;border-width:4px}.radar-panel summary{font-size:12px;min-height:36px}.radar-content{padding:3px;gap:2px;align-items:flex-start}#radar-art img{width:30px;height:30px}#radar-targets{font-size:10px;max-height:115px}.radar-target{gap:3px;padding:2px 0}.radar-target img{width:25px;height:25px}
 .map-bag{top:auto;bottom:38px;left:6px;width:174px;max-height:38%;border-width:4px}.map-bag h2{font-size:13px;padding:5px}.map-bag summary{min-height:44px;font-size:12px;padding:10px 7px}.map-bag .actions{padding:4px;gap:3px}.map-bag button{min-height:44px;font-size:11px;padding:3px}.map-bag picture img{width:32px;height:32px}.map-bag .inventory-row .item-information{gap:2px}.map-bag .inventory-row>button:last-child{padding:3px}.map-bag .shop-row>button:last-child{width:38px}.map-bag .inventory-row>button:last-child{min-width:38px}#moves{right:6px;bottom:42px;grid-template-columns:44px 44px 44px;gap:3px}#moves button{border-radius:50%;background:#2b0b07ef}.map-stage #map:not(.geographic-map){margin-top:180px;margin-bottom:190px}
}
@media(max-width:359px){.map-bag{width:146px}#moves{grid-template-columns:42px 42px 42px;gap:2px;right:4px}#moves button{width:42px;min-width:42px}.map-bag .item-information{flex-wrap:wrap}.status-panels .radar-panel{width:calc(100% - 150px)}}
