
:root{color-scheme:dark;--gold:#e2bd75;--teal:#74ded6;--paper:#eee7d7}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden;background:#060a10;font-family:Segoe UI,Arial,sans-serif;color:var(--paper)}
#game{width:100vw;height:100vh;display:block;image-rendering:auto;cursor:crosshair;background:#080b10}
#shade{pointer-events:none;position:fixed;inset:0;background:radial-gradient(ellipse at 50% 42%,transparent 36%,rgba(0,0,0,.45) 100%)}
#hud{position:fixed;inset:0;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:19px 25px 16px;gap:10px;text-shadow:0 2px 8px #000}
#top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.brand{font-size:14px;font-weight:800;letter-spacing:.28em;color:var(--gold)}.sub{font-size:11px;letter-spacing:.2em;color:#c2c7c9;margin-top:5px}.goal{font-size:12px;max-width:360px;text-align:right;color:#dde0da;letter-spacing:.06em;line-height:1.6}
#bottom{display:flex;align-items:end;justify-content:space-between;gap:20px}.stats{display:flex;gap:8px;flex-wrap:wrap}.pill{border:1px solid #bb9b6380;background:#080e16c9;border-radius:4px;min-width:85px;padding:10px 15px;box-shadow:0 0 20px #0006}.pill b{font-size:21px;font-weight:600;color:#f1d19b}.pill span{display:block;font-size:9px;letter-spacing:.17em;color:#a6b4b5;margin-top:3px}.pill.blue b{color:#8ed7fb}.pill.red b{color:#fb897e}.rightbottom{text-align:right;font-size:10px;color:#c5beb0;letter-spacing:.06em;line-height:1.9}
#reticle{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:22px;height:22px;pointer-events:none;opacity:.85}#reticle:before,#reticle:after{content:"";position:absolute;background:#d4efe7aa;box-shadow:0 0 4px #111}#reticle:before{width:1px;height:18px;top:2px;left:10px}#reticle:after{height:1px;width:18px;top:10px;left:2px}
#prompt{position:fixed;top:64%;left:50%;transform:translateX(-50%);background:#071019bf;border:1px solid #e3bb6d70;padding:10px 18px;font-size:12px;letter-spacing:.15em;white-space:nowrap;pointer-events:none;display:none;color:#e5d5ba}#notice{position:fixed;left:50%;top:24%;transform:translateX(-50%);font-size:15px;font-weight:600;letter-spacing:.16em;color:#ffde9a;text-shadow:0 0 12px #000,0 0 24px #9f5f25;pointer-events:none;opacity:0;transition:opacity .25s}
#veil{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:25px;background:linear-gradient(140deg,#02070bed,#0b1214e6 55%,#20180fe9);backdrop-filter:blur(5px);z-index:10}#veil.hidden{display:none}.modal{border:1px solid #b69a677a;box-shadow:0 30px 110px #000;max-width:690px;width:100%;padding:clamp(22px,4vw,46px);background:linear-gradient(160deg,#182125ed,#090e16f5);position:relative}.modal:before{content:"";position:absolute;inset:9px;border:1px solid #c79f3c1e;pointer-events:none}h1{margin:12px 0 0;font:300 clamp(35px,6vw,59px) Georgia,serif;letter-spacing:.055em}h1 em{font-style:normal;color:#dfbf7f}.eyebrow{color:var(--teal);letter-spacing:.3em;font-size:11px;font-weight:700}.lead{font-size:15px;color:#ced2cf;line-height:1.7;max-width:580px;margin-top:16px}.divider{height:1px;background:linear-gradient(90deg,#c09b5c8a,transparent);margin:24px 0}.keys{display:grid;grid-template-columns:1fr 1fr;gap:11px;color:#aab9b9;font-size:12px}.keys b{color:#f1d9a8}.play{padding:15px 24px;margin-top:28px;cursor:pointer;color:#111b1c;background:linear-gradient(120deg,#cda365,#ffe0a0);border:0;border-radius:2px;font-size:12px;font-weight:800;letter-spacing:.18em;transition:transform .16s,filter .16s}.play:hover{transform:translateY(-2px);filter:brightness(1.12)}.jump{background:transparent;border:1px solid #89d8d19c;color:#b2ede4;margin-left:12px}.jump:hover{background:#3a797331}#jump3{border-color:#c29affaa;color:#e4c5ff}#jump3:hover{background:#714cbf44}#jump5{border-color:#91f0a5aa;color:#c8ffd8}#jump5:hover{background:#306e4844}#jump6{border-color:#91e9ffaa;color:#c8f6ff}#jump6:hover{background:#315c7544}#jump7{border-color:#62e4d4aa;color:#b2fff3}#jump7:hover{background:#236c7566}#jump8{border-color:#ffb16faa;color:#ffd4a6}#jump8:hover{background:#7a421e66}#jump9{border-color:#b3a0ffaa;color:#e0d3ff}#jump9:hover{background:#4e3a8b88}#jump10{border-color:#79f7fbba;color:#bbfff8}#jump10:hover{background:#147c8588}.disclaimer{font-size:10px;margin-top:16px;color:#8e9b9e;line-height:1.5}#map{position:fixed;inset:0;pointer-events:none;display:none;align-items:center;justify-content:center;background:#030709b0}#map canvas{width:min(82vw,700px);height:auto;max-height:84vh;border:1px solid #bf985cc7;box-shadow:0 25px 75px #000b;background:#070b0f}#flash{position:fixed;inset:0;background:#f6eee0;opacity:0;pointer-events:none}#corner{position:fixed;top:88px;right:25px;pointer-events:none;opacity:.82}
@media(max-width:700px){#hud{padding:13px}.brand{font-size:12px}.sub,.rightbottom{font-size:9px}.goal{font-size:10px;max-width:145px}.pill{padding:6px 9px;min-width:60px}.pill b{font-size:16px}.pill span{font-size:8px}.keys{grid-template-columns:1fr}#corner{display:none}}
#thermalDisplay{position:fixed;top:90px;left:25px;z-index:5;pointer-events:none;display:none;min-width:195px;padding:12px 15px;border:1px solid #7ed7ec80;background:#061b2bd9;box-shadow:0 0 24px #16497277;color:#b6eaff;font:700 11px Segoe UI,Arial;letter-spacing:.12em}#thermalBar{height:7px;margin:9px 0 7px;border:1px solid #79b9d277;background:#163347}#thermalFill{width:100%;height:100%;background:linear-gradient(90deg,#3b9cd3,#bdf4ff)}#thermalDetail{font-size:10px;color:#9ab9cb;letter-spacing:.07em}
#pressureDisplay{position:fixed;top:90px;left:25px;z-index:5;pointer-events:none;display:none;min-width:224px;padding:12px 15px;border:1px solid #4bd6c6aa;background:#041c27e8;box-shadow:0 0 25px #08a5ba44;color:#b6fff0;font:700 11px Segoe UI,Arial;letter-spacing:.11em}#pressureBar{height:8px;margin:9px 0 7px;border:1px solid #5ed3ce88;background:#0e3441}#pressureFill{width:100%;height:100%;background:linear-gradient(90deg,#ff8161,#27c7dc,#c5fff2)}#pressureDetail{font-size:10px;color:#9dbfc5;letter-spacing:.06em}

/* AIM Labyrinth Mobile M1 — additive input layout; desktop styling remains untouched. */
#touchControls,#touchPortrait,#touchPause{display:none}
html.touch-mode,html.touch-mode body{overscroll-behavior:none;touch-action:none;-webkit-user-select:none;user-select:none}
html.touch-mode #game{touch-action:none;cursor:default;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,177.7778vh);height:min(100vh,56.25vw)}
html.touch-mode #touchControls{display:block;position:fixed;inset:0;pointer-events:none;z-index:7}
html.touch-mode #touchControls button,html.touch-mode #touchStick{pointer-events:auto;touch-action:none;user-select:none;-webkit-tap-highlight-color:transparent}
.touch-top{position:absolute;top:max(7px,env(safe-area-inset-top));right:max(9px,env(safe-area-inset-right));display:flex;gap:7px}
.touch-button{display:flex;align-items:center;justify-content:center;text-align:center;border-radius:14px;border:1px solid #a6c1d777;color:#f1efe8;background:#092032d9;box-shadow:0 6px 23px #000a,inset 0 0 12px #ccf0ff13;font:800 11px Segoe UI,Arial;letter-spacing:.08em;min-width:51px;min-height:44px;padding:8px;touch-action:none}
.touch-button:active,.touch-button.pressed{transform:scale(.94);background:#547580e0}
.touch-button:disabled{opacity:.3}
#touchStick{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:max(20px,env(safe-area-inset-left));width:116px;height:116px;border:2px solid #9fc9d38c;border-radius:50%;background:radial-gradient(circle,#60849e30,#0d1d32a5 70%);box-shadow:0 0 26px #0d9be344,inset 0 0 30px #0b2441;}
#touchStickKnob{position:absolute;left:50%;top:50%;width:55px;height:55px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 40% 30%,#d5f5ed99,#3e7189b0);border:1px solid #b7e7e7bb;box-shadow:0 0 12px #a4d7f088;pointer-events:none}
#touchStickCaption{position:absolute;left:0;right:0;bottom:-12px;text-align:center;font:700 9px Segoe UI;color:#d5e6e4;letter-spacing:.17em;pointer-events:none}
#touchSprint{position:absolute;bottom:max(142px,calc(env(safe-area-inset-bottom) + 142px));left:max(63px,calc(env(safe-area-inset-left) + 63px));min-width:66px;min-height:38px;border-color:#ba9862aa;color:#ffe3aa}
.touch-action-stack{position:absolute;right:max(11px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:flex;gap:7px;align-items:flex-end}
.touch-utilities{display:grid;grid-template-columns:repeat(2,49px);grid-template-rows:repeat(2,43px);gap:6px;align-items:end}
#touchFire{width:90px;height:90px;border-radius:50%;border:2px solid #ffd1a3;background:radial-gradient(circle at 35% 30%,#d17d53,#802e29 75%);font-size:14px;letter-spacing:.1em;box-shadow:0 0 28px #ff8c3d66,inset 0 0 16px #f9d7a544}
#touchF{font-size:10px}
#touchPause{display:none;position:fixed;z-index:20;inset:0;background:#030b12db;backdrop-filter:blur(5px);align-items:center;justify-content:center;padding:18px}
#touchPause.open{display:flex}
.touch-pause-card{width:min(360px,90vw);padding:24px;border:1px solid #d1b27e95;background:linear-gradient(145deg,#1a2d35,#0d121d);box-shadow:0 20px 60px #000d;text-align:center}
.touch-pause-card h2{font:300 34px Georgia,serif;color:#ffe2a5;letter-spacing:.1em;margin:2px 0 14px}
.touch-pause-card p{font-size:12px;color:#b6d5d8;line-height:1.5}
.touch-pause-card button{margin:5px;padding:12px 16px;font-size:12px;letter-spacing:.1em;cursor:pointer;border:1px solid #98c5cb96;color:#ecf9f6;background:#203b47}
.touch-pause-card button:first-of-type{background:linear-gradient(90deg,#c59e61,#f6d497);color:#15232a;border:0;font-weight:800}
#touchPortrait{position:fixed;inset:0;z-index:30;align-items:center;justify-content:center;background:#061018;color:#e5c78d;text-align:center;padding:34px;font:700 20px Segoe UI,Arial;line-height:1.6}
html.touch-mode #hud{padding:8px 11px 8px}
html.touch-mode #top .sub{display:none}
html.touch-mode #hud .brand{font-size:10px;letter-spacing:.17em;white-space:nowrap}
html.touch-mode #hud .goal{position:fixed;top:max(7px,env(safe-area-inset-top));right:118px;max-width:38vw;text-align:right;font-size:9px;line-height:1.35;letter-spacing:.035em}
html.touch-mode #hud #bottom{display:block}
html.touch-mode #hud .stats{position:fixed;top:max(30px,calc(env(safe-area-inset-top) + 30px));left:max(9px,env(safe-area-inset-left));display:flex;flex-wrap:nowrap;gap:4px}
html.touch-mode #hud .pill{min-width:0;padding:3px 6px;background:#080e16b8;border-radius:5px}
html.touch-mode #hud .pill b{font-size:13px}
html.touch-mode #hud .pill span{font-size:7px;letter-spacing:.06em;margin-top:1px}
html.touch-mode #hud .rightbottom{display:none}
html.touch-mode #prompt{top:53%;max-width:65%;white-space:normal;text-align:center;font-size:10px;padding:6px 9px}
html.touch-mode #notice{top:20%;width:74%;font-size:11px;line-height:1.5;text-align:center;letter-spacing:.07em}
html.touch-mode #thermalDisplay,html.touch-mode #pressureDisplay{top:65px;left:max(8px,env(safe-area-inset-left));min-width:0;width:160px;padding:6px 9px;font-size:9px}
html.touch-mode #thermalDetail,html.touch-mode #pressureDetail{font-size:8px}
html.touch-mode #empStatus{right:max(13px,env(safe-area-inset-right)) !important;bottom:113px !important;font-size:10px !important}
html.touch-mode #corner{display:none}
html.touch-mode #veil{padding:8px;align-items:stretch;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
html.touch-mode #veil .modal{margin:auto;max-width:720px;padding:16px;touch-action:pan-y}
html.touch-mode #veil .modal:before{inset:5px}
html.touch-mode #veil h1{font-size:26px;margin:2px 0 5px}
html.touch-mode #veil .lead{font-size:11px;line-height:1.45;margin-top:5px}
html.touch-mode #veil .divider{margin:9px 0}
html.touch-mode #veil .keys{display:none}
html.touch-mode #veil .eyebrow{font-size:8px}
html.touch-mode #veil .play{font-size:10px;margin:4px 3px 3px 0;padding:9px 12px;min-height:38px;letter-spacing:.07em}
html.touch-mode #veil .disclaimer{font-size:9px;margin-top:8px}
html.touch-mode #map{z-index:6}
@media (max-width:670px) and (orientation:landscape){html.touch-mode #touchStick{width:92px;height:92px}html.touch-mode #touchSprint{bottom:119px;left:40px}html.touch-mode #touchFire{width:72px;height:72px}html.touch-mode .touch-button{min-width:43px;min-height:39px;font-size:10px}html.touch-mode .touch-utilities{grid-template-columns:repeat(2,42px);grid-template-rows:repeat(2,38px)}html.touch-mode #hud .pill:nth-last-child(1){display:none}}
@media (orientation:portrait){html.touch-mode #touchPortrait{display:flex}html.touch-mode #touchControls{display:none}}

