*{box-sizing:border-box}body{margin:0;background:#101c29;color:#f6f2df;font-family:'DM Sans',sans-serif;overflow:hidden}header{height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;border-bottom:1px solid #ffffff12;font-size:11px;letter-spacing:2px}.brand{color:#e7edcb;text-decoration:none;font-weight:700;font-size:14px}button{font:inherit;cursor:pointer;color:inherit;background:#ffffff08;border:1px solid #ffffff24;border-radius:9px;padding:11px 18px}button:hover{background:#ffffff18}button:focus-visible{outline:3px solid #d9ee9d}main{position:relative;height:calc(100dvh - 165px);min-height:350px}.intro{position:absolute;left:4%;top:8%;pointer-events:none;z-index:1}.eyebrow{font-size:9px;letter-spacing:2.2px;color:#bfd6ae;font-weight:700}h1{font-family:Outfit,sans-serif;font-size:clamp(44px,6.5vw,96px);line-height:.93;letter-spacing:-5px;margin:22px 0}h1 span{display:block;color:#d9ee9d}.intro p{color:#91a6b4;line-height:1.8;font-size:13px}#game{width:100%;height:100%}canvas{width:100%;height:100%;display:block}aside{position:absolute;right:4%;top:10%;width:190px;pointer-events:none}.stat{padding:20px 0;border-bottom:1px solid #ffffff16}.stat small{display:block;color:#91a6b4;font-size:10px;letter-spacing:2px}.stat strong{display:block;font-family:Outfit,sans-serif;font-size:29px;margin-top:10px}#lives{color:#f4a697;letter-spacing:5px}.power{display:flex;gap:13px;margin-top:32px}.power>span{color:#d9ee9d;font-size:28px}.power b{font-size:12px}.power p{color:#91a6b4;font-size:11px;line-height:1.7}footer{height:75px;border-top:1px solid #ffffff12;display:flex;align-items:center;justify-content:space-between;margin:0 4%;color:#91a6b4;font-size:10px;letter-spacing:1px}footer>div{display:flex;align-items:center;gap:6px}footer span{margin-left:8px}kbd{border:1px solid #ffffff30;border-radius:5px;padding:6px 9px;color:#d9ee9d}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#101c2940;backdrop-filter:blur(3px);z-index:3}#overlay[hidden]{display:none}.card{max-width:380px;text-align:center;padding:35px;background:#172839ee;border:1px solid #c5dfc833;border-radius:20px;box-shadow:0 25px 80px #0007}.card h2{font:600 34px Outfit,sans-serif;margin:18px 0}.card p{font-size:13px;line-height:1.8;color:#b2c1c9}.card button{background:#d9ee9d;color:#24372c;width:100%;margin-top:16px;font-weight:700}#touch{position:fixed;bottom:85px;left:20px;text-align:center;z-index:2;display:none}#touch button{width:44px;height:40px;padding:5px;background:#1e3445e8;margin:2px}@media(max-width:900px){header{height:65px}header>span{display:none}main{height:calc(100dvh - 135px)}.intro{top:20px}.intro .eyebrow,.intro p{display:none}h1{font-size:38px;letter-spacing:-2px;margin:0}.intro h1 span{display:inline}aside{top:75px;right:4%;width:110px}.stat{padding:10px 0}.stat strong{font-size:20px}.power{display:none}footer>span,footer>div{display:none}footer{justify-content:flex-end;height:70px}#touch{display:block}}

/* Immersive view: keep the corridors clear and the HUD compact. */
.intro{display:none}main{height:calc(100dvh - 145px)}header{height:70px}aside{top:18px;right:22px;width:170px;background:#101c29d9;padding:4px 18px 16px;border:1px solid #ffffff18;border-radius:14px;pointer-events:none}.stat{padding:10px 0}.stat strong{font-size:24px}.power{margin-top:14px}.view-badge{position:absolute;top:22px;left:24px;font-size:10px;letter-spacing:2px;background:#101c29dd;border:1px solid #ffffff22;padding:12px 16px;border-radius:30px}.view-badge span{color:#d9ee9d;margin-left:12px}.map-panel{position:absolute;left:24px;bottom:22px;padding:14px;background:#101c29e8;border:1px solid #ffffff25;border-radius:14px;pointer-events:none}.map-panel small{display:block;font-size:9px;letter-spacing:2px;color:#bdcfa9;margin-bottom:10px}.map-panel canvas{width:180px;height:144px}.map-panel>span{display:block;margin-top:8px;font-size:10px;color:#fff2bb}#touch{touch-action:none}#touch button{touch-action:none;user-select:none}footer{height:75px}#game{background:#101c29}@media(max-width:900px){main{height:calc(100dvh - 140px)}aside{top:65px;right:12px;width:115px;padding:4px 12px 12px}.stat small{font-size:8px}.stat strong{font-size:20px}.map-panel{left:12px;bottom:auto;top:65px;padding:8px}.map-panel canvas{width:120px;height:96px}.map-panel small{font-size:8px;letter-spacing:1px}.view-badge{left:12px;top:15px;font-size:9px}#touch{bottom:85px}.card{margin:12px}}

#sound{margin-left:auto;margin-right:10px;font-size:14px;letter-spacing:0}header>span{margin-left:24px}.brand{white-space:nowrap}.card p{font-size:16px}.card .eyebrow{font-size:12px}@media(max-width:500px){header{padding:0 12px}.brand{font-size:12px}header button{padding:10px;font-size:12px}#sound{font-size:12px;margin-right:6px}.card{padding:24px}}

#canvas{touch-action:none;cursor:grab}#canvas:active{cursor:grabbing}.map-panel[hidden]{display:none}#map-toggle{font-size:14px;letter-spacing:0;margin-left:auto;margin-right:8px}#sound{margin-left:0}#turn-hint{font-size:12px;letter-spacing:.4px;pointer-events:none}.look-buttons{display:flex;gap:4px;margin-top:8px}#touch .look-buttons button{width:auto;font-size:12px;padding:8px}.brand{font-size:14px}header>span{display:none}aside{width:140px}.power{display:none}@media(max-width:600px){header{gap:5px}.brand{font-size:11px;letter-spacing:1px}#map-toggle,#sound,header button{font-size:11px;padding:8px;margin-right:0}.view-badge{max-width:calc(100% - 24px)}aside{width:96px;top:58px;right:8px}.stat strong{font-size:18px}#turn-hint{font-size:11px}.map-panel{top:auto;bottom:12px;left:auto;right:8px}#touch{left:8px;bottom:82px}}
