* { box-sizing: border-box; }
:root { color-scheme: dark; --bg: #0b1719; --panel: #102326; --panel-2: #143239; --ink: #effffc; --muted: #9abcb9; --line: rgba(94, 231, 223, .28); --mint: #5ee7df; --gold: #f1d27a; --rose: #ff8b8b; }
html, body { min-height: 100%; }
body { margin: 0; background: radial-gradient(circle at 82% 12%, rgba(94, 231, 223, .22), transparent 30%), linear-gradient(145deg, #0b1719, #142829 58%, #060b0c); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, a { font: inherit; }
.shell { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 30px; }
.topbar, .meta, .controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar { justify-content: space-between; min-height: 56px; margin-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 900; text-decoration: none; }
.brand span { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--mint); border-radius: 8px; background: #092022; color: var(--mint); }
.meta span { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; background: rgba(0, 0, 0, .22); font-weight: 800; }
.layout { display: grid; grid-template-columns: minmax(0, 650px) minmax(300px, 420px); gap: 18px; align-items: start; }
.room, .desk { border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 25, 27, .86); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); padding: clamp(18px, 3vw, 28px); }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(34px, 7vw, 62px); line-height: .95; }
h2 { font-size: clamp(24px, 4vw, 38px); line-height: 1; }
h3 { margin: 18px 0 8px; color: var(--gold); font-size: 14px; text-transform: uppercase; }
.hotspot-grid { display: grid; gap: 10px; margin-top: 22px; }
.cell, .hotspot { min-height: 94px; border-radius: 7px; }
.cell { border: 1px dashed rgba(154, 188, 185, .2); background: rgba(255, 255, 255, .03); }
.hotspot { border: 1px solid rgba(94, 231, 223, .42); color: var(--ink); background: linear-gradient(180deg, #183b40, #10272b); cursor: pointer; text-align: left; padding: 12px; font-weight: 850; }
.hotspot small { display: block; margin-top: 8px; color: var(--muted); font-weight: 700; }
.hotspot.exit { border-color: rgba(241, 210, 122, .65); }
.hotspot.locked { box-shadow: inset 4px 0 0 var(--rose); }
.inventory-list, .clue-log { display: grid; gap: 8px; min-height: 42px; }
.pill, .clue { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: rgba(255, 255, 255, .05); }
.empty { color: var(--muted); }
.code-row { display: grid; gap: 8px; margin-top: 18px; color: var(--muted); font-weight: 850; }
.code-row input { min-height: 46px; border: 1px solid rgba(241, 210, 122, .5); border-radius: 6px; padding: 0 12px; color: var(--ink); background: #081416; font-size: 22px; font-weight: 900; letter-spacing: .12em; }
.status { min-height: 48px; color: #ddfffb; font-weight: 750; }
.controls button { min-height: 44px; border: 0; border-radius: 6px; padding: 0 15px; color: #071415; background: var(--mint); font-weight: 900; cursor: pointer; }
.controls button:nth-child(2) { background: #d8f4ef; }
#unlock-button { background: var(--gold); }
@media (max-width: 840px) { .layout { grid-template-columns: 1fr; } .shell { width: min(100% - 18px, 680px); } .cell, .hotspot { min-height: 76px; } }
