#hallways-game.hw-game{--hw-paper:#e5dcc9;--hw-brass:#c2a472;margin:76px 0 44px;padding:0;color:var(--hw-paper);background:#080a09;isolation:isolate;outline-offset:8px;scroll-margin-top:18px;max-width:100%}
#hallways-game *,#hallways-game *::before,#hallways-game *::after{box-sizing:border-box}
#hallways-game [hidden]{display:none!important}
#hallways-game .hw-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:0 0 23px;border-bottom:1px solid #b69b6238}
#hallways-game .hw-eyebrow{margin:0 0 10px;color:var(--hw-brass);font:500 10px/1.4 Inter,system-ui,sans-serif;letter-spacing:.24em;text-transform:uppercase}
#hallways-game #hw-title{margin:0;color:var(--hw-paper);font:400 clamp(26px,4.2vw,49px)/1.04 Georgia,serif;letter-spacing:-.025em;text-transform:none}
#hallways-game #hw-title em{font-weight:400;color:#ad9d85}
#hallways-game .hw-premise{margin:0 0 2px;color:#a9a395;font:400 12px/1.7 Inter,system-ui,sans-serif;text-align:right}
#hallways-game .hw-stage{position:relative;overflow:hidden;background:#0b0d0c;height:clamp(370px,62vh,560px);min-width:0;box-shadow:0 24px 70px #0009}
#hallways-game canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}
#hallways-game .hw-hud{position:absolute;z-index:2;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 25px 40px;background:linear-gradient(#050706d9,transparent);pointer-events:none;text-shadow:0 2px 4px #000}
#hallways-game .hw-hud-label{display:block;margin-bottom:7px;font:500 9px/1.2 Inter,system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#b9ad98}
#hallways-game .hw-hud strong{display:block;font:400 17px/1.3 Georgia,serif;color:#eee4cf}
#hallways-game .hw-traces{text-align:right}
#hallways-game .hw-overlay{position:absolute;z-index:3;inset:0;display:flex;align-items:center;padding:clamp(24px,5vw,62px);background:linear-gradient(90deg,#070908f5,#080b09cf 36%,#080b0940 75%,#080b0920)}
#hallways-game .hw-overlay-content{max-width:440px}
#hallways-game .hw-overline{margin:0 0 15px;color:#b7a279;font:500 9px/1.5 Inter,system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase}
#hallways-game .hw-overlay h3{margin:0 0 19px;max-width:430px;color:#f0e5d0;font:400 clamp(30px,4vw,49px)/1.08 Georgia,serif;letter-spacing:-.035em;text-transform:none}
#hallways-game .hw-overlay-content>p:not(.hw-overline):not(.hw-start-note){margin:0 0 20px;max-width:360px;color:#bfb8a9;font:400 12px/1.8 Inter,system-ui,sans-serif}
#hallways-game button{appearance:none;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;border:1px solid #88724c;color:#e6d9bd;background:#111612;font:500 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.03em;min-height:44px;border-radius:0}
#hallways-game button:hover{color:#fff2d6;border-color:#d2b986;background:#20281f}
#hallways-game button:active,#hallways-game button.is-held{background:#d1b780;color:#10140e}
#hallways-game button:disabled{opacity:.48;cursor:default}
#hallways-game button:focus-visible,#hallways-game canvas:focus-visible,#hallways-game:focus-visible{outline:2px solid #ead3a0;outline-offset:4px}
#hallways-game .hw-enter{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-height:49px;padding:14px 20px;border-color:#b39762;background:#c4ad7d;color:#14170f;font-weight:600}
#hallways-game .hw-enter:hover{background:#e5ce9e;color:#080b08}
#hallways-game .hw-enter span{font-size:19px}
#hallways-game .hw-start-note{margin:13px 0 0;color:#898b7b;font:400 9px/1.6 Inter,system-ui,sans-serif}
#hallways-game .hw-edge{position:absolute;inset:0;pointer-events:none;z-index:4;border:1px solid #c2a47230;box-shadow:inset 0 0 50px #0002}
#hallways-game .hw-objective{position:relative;z-index:1;display:flex;align-items:baseline;justify-content:space-between;gap:16px;min-height:56px;padding:17px 0 10px;border-bottom:1px solid #ac96632b}
#hallways-game .hw-loop{flex-shrink:0;color:#c5ad80;font:400 10px/1.6 Inter,system-ui,sans-serif;letter-spacing:.04em}
#hallways-game .hw-objective p{margin:0;color:#a4aa9b;font:400 11px/1.6 Inter,system-ui,sans-serif;text-align:right}
#hallways-game .hw-controls{display:flex;gap:22px;align-items:center;justify-content:space-between;padding:16px 0 6px}
#hallways-game .hw-keyboard-help{margin:0;color:#8c9285;font:400 10px/1.9 Inter,system-ui,sans-serif}
#hallways-game .hw-keyboard-help span{color:#d5ccba;margin-right:5px;font-size:9px;letter-spacing:.08em}
#hallways-game .hw-actions{display:flex;align-items:center;gap:13px;margin-left:auto}
#hallways-game .hw-dash{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 5px;min-width:81px;min-height:65px;padding:8px 13px;border-color:#80734f}
#hallways-game .hw-dash>span{font-size:25px;line-height:1}
#hallways-game .hw-dash small{grid-column:1/-1;color:#a39a80;font-size:8px;letter-spacing:.1em;text-transform:uppercase}
#hallways-game .hw-management{display:flex;gap:7px}
#hallways-game .hw-management button{padding:8px 11px;min-width:62px;border-color:#4a4f40;color:#b5b7a9}
#hallways-game .hw-footnote{margin:13px 0 0;max-width:650px;color:#757b6c;font:400 9px/1.7 Inter,system-ui,sans-serif}
#hallways-game .hw-pad{display:none;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:4px;flex-shrink:0}
#hallways-game .hw-pad button{padding:0;min-height:44px;font-size:22px;color:#c9c9b4;border-color:#4b5848;background:#111913}
#hallways-game .hw-pad [data-action="up"]{grid-column:2;grid-row:1}
#hallways-game .hw-pad [data-action="left"]{grid-column:1;grid-row:2}
#hallways-game .hw-pad [data-action="right"]{grid-column:3;grid-row:2}
#hallways-game .hw-pad [data-action="down"]{grid-column:2;grid-row:3}
#hallways-game .hw-pad-centre{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:center;color:#5e705a;font-size:16px}
#hallways-game[data-game-state="playing"] .hw-stage{cursor:crosshair}
#hallways-game[data-game-state="won"] .hw-overlay{background:linear-gradient(90deg,#080b08a8,transparent 80%);align-items:flex-end;padding-bottom:32px}
#hallways-game[data-game-state="won"] .hw-overlay-content{max-width:360px}
#hallways-game[data-game-state="won"] .hw-overlay h3{font-size:32px;margin-bottom:10px;text-shadow:0 2px 15px #000}
#hallways-game[data-game-state="won"] .hw-start-note,#hallways-game[data-game-state="won"] .hw-overline{display:none}
@media(max-width:700px){
#hallways-game.hw-game{margin-top:48px;scroll-margin-top:10px}
#hallways-game .hw-heading{gap:10px;padding-bottom:16px;align-items:flex-start}
#hallways-game .hw-eyebrow{font-size:8px;letter-spacing:.14em;margin-bottom:8px}
#hallways-game #hw-title{font-size:29px;max-width:230px}
#hallways-game #hw-title em{display:block}
#hallways-game .hw-premise{font-size:9px;max-width:100px;line-height:1.7}
#hallways-game .hw-stage{height:clamp(340px,53svh,450px)}
#hallways-game .hw-hud{padding:15px 15px 35px}
#hallways-game .hw-hud-label{font-size:7px;letter-spacing:.13em;margin-bottom:5px}
#hallways-game .hw-hud strong{font-size:14px}
#hallways-game .hw-overlay{padding:55px 22px 22px;background:linear-gradient(90deg,#070908eb,#080b09a0);align-items:center}
#hallways-game .hw-overlay h3{font-size:32px;margin-bottom:14px}
#hallways-game .hw-overlay-content>p:not(.hw-overline):not(.hw-start-note){font-size:10px;line-height:1.7;margin-bottom:16px}
#hallways-game .hw-overline{font-size:8px;margin-bottom:12px}
#hallways-game .hw-start-note{font-size:8px;max-width:220px}
#hallways-game .hw-objective{display:block;min-height:66px;padding:12px 0 9px}
#hallways-game .hw-objective p{margin-top:4px;text-align:left;font-size:10px}
#hallways-game .hw-loop{font-size:9px}
#hallways-game .hw-pad{display:grid}
#hallways-game .hw-keyboard-help{display:none}
#hallways-game .hw-controls{gap:12px;padding-top:11px}
#hallways-game .hw-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:134px}
#hallways-game .hw-dash{min-width:90px;min-height:59px}
#hallways-game .hw-management{gap:5px}
#hallways-game .hw-management button{padding:7px;min-width:58px;font-size:9px}
#hallways-game .hw-footnote{font-size:8px;margin-top:10px}
#hallways-game[data-game-state="won"] .hw-overlay{align-items:flex-end;padding:20px}
#hallways-game[data-game-state="won"] .hw-overlay h3{font-size:28px}
}
@media(max-width:360px){#hallways-game #hw-title{font-size:25px}#hallways-game .hw-premise{max-width:78px;font-size:8px}#hallways-game .hw-overlay h3{font-size:28px}#hallways-game .hw-overlay{padding:52px 17px 18px}#hallways-game .hw-pad{gap:2px}#hallways-game .hw-actions{max-width:115px}#hallways-game .hw-management{gap:3px}#hallways-game .hw-management button{min-width:52px;font-size:8px;padding:5px}}
@media(prefers-reduced-motion:reduce){#hallways-game *,#hallways-game *::before,#hallways-game *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#hallways-game .hw-stage{padding-top:58px}
#hallways-game .hw-hud{padding-top:12px;padding-bottom:12px;background:#0a0d0bed;min-height:58px}
#hallways-game[data-game-state="won"] .hw-hud{background:linear-gradient(#0a0d0bd9,transparent)}
