:root{color-scheme:dark;--bg:#071925;--panel:#0e2434;--line:#233e50;--text:#eaf5ff;--muted:#9cb4c5;--blue:#2393d0;--yellow:#ffdb60}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 30% 0,#133b54 0,transparent 60%),var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.shell{max-width:1130px;margin:auto;padding:24px 28px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:26px}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:white;font-size:27px;font-weight:650;letter-spacing:-1.2px}.brand-icon{color:#52b9f3;font-size:31px}.arcade{font-size:11px;letter-spacing:2px;margin-left:12px;border-left:1px solid #466171;padding-left:18px;color:#9cbbcd}button{font:inherit;cursor:pointer;border:1px solid #355369;background:#163447;color:var(--text);border-radius:7px;padding:9px 15px;font-weight:650;transition:background .15s,transform .15s}button:hover{background:#24516d}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}.icon-button{font-size:13px}main{display:grid;grid-template-columns:minmax(0,672px) minmax(250px,1fr);gap:28px}.title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:750;color:#75bee9;margin:0 0 6px}h1{font-size:38px;line-height:1.1;letter-spacing:-1.8px;margin:0;font-weight:800}h1 span{color:var(--yellow)}.floor-tag{font-size:10px;letter-spacing:1.4px;color:var(--muted);border:1px solid #35566b;padding:6px 12px;border-radius:6px;text-align:center}.floor-tag b{display:block;font-size:22px;color:white;letter-spacing:1px}.hud{display:flex;justify-content:space-between;background:#0b202f;border:1px solid var(--line);border-radius:10px 10px 0 0;padding:12px 20px;font-size:10px;letter-spacing:1.5px;color:var(--muted)}.hud strong{display:block;font:700 23px/1.3 ui-monospace,monospace;letter-spacing:1px;color:var(--text)}.hud strong.life{color:var(--yellow);font-size:20px}.board-wrap{position:relative;border:1px solid #33566c;border-top:none;overflow:hidden;background:#102d3b;aspect-ratio:1;border-radius:0 0 10px 10px;box-shadow:0 15px 50px #0004}canvas{display:block;width:100%;height:100%}.overlay{position:absolute;inset:0;background:#071925c9;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px}.overlay[hidden]{display:none}.overlay-card{text-align:center;max-width:440px;padding:28px 18px}.badge{font-size:10px;letter-spacing:2px;color:var(--yellow);font-weight:750}h2{margin:0;font-size:19px;letter-spacing:-.4px}.overlay h2{font-size:clamp(32px,4vw,54px);line-height:1.06;letter-spacing:-2px;margin:18px 0}.overlay p{color:#bed0dc;font-size:15px}.primary{background:var(--yellow);color:#102433;border:0;padding:13px 27px;box-shadow:0 4px 0 #b58f25}.primary:hover{background:#ffe992}.overlay .primary{margin:12px 0}.small{font-size:12px!important}#entry label{font-size:11px;letter-spacing:2px;display:block;margin-top:15px}#score-form{display:flex;gap:10px;align-items:center;justify-content:center}input{background:#071925;color:white;border:1px solid #62849a;border-radius:6px;width:105px;font:700 27px ui-monospace,monospace;letter-spacing:5px;text-align:center;padding:10px;text-transform:uppercase}.banner{position:absolute;left:20px;right:20px;top:40%;padding:22px;background:#071925ed;border:1px solid #fadd67;border-radius:10px;text-align:center;color:#ffdf72;font-weight:700;font-size:20px;pointer-events:none}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;font-size:12px;color:var(--muted)}.toolbar button{font-size:12px;padding:6px 10px}.toolbar>div{display:flex;gap:6px}kbd{font:inherit;color:#d2e8f5}.panel{border:1px solid var(--line);background:linear-gradient(135deg,#132f42,#0c2231);border-radius:12px;padding:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.panel-heading span{font-size:10px;letter-spacing:1px;background:#213d4d;color:#a9c9dc;padding:3px 6px;border-radius:4px}.subtle{font-size:12px;color:var(--muted);margin:6px 0 15px}.table-head{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#80a1b5;border-bottom:1px solid var(--line);padding:10px 0}ol{padding:0;margin:0;list-style:none;max-height:273px;overflow:auto}ol li{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #213b4e;font:650 15px ui-monospace,monospace}ol li span:first-child{font-size:11px;color:#7496ac;min-width:18px}ol li:first-child{color:var(--yellow)}ol li strong{margin-left:auto}ol li.empty{font:14px/1.6 system-ui;color:var(--muted);padding:24px 0;border:0}.field-guide{margin-top:18px}.field-guide .eyebrow{font-size:10px;margin-bottom:20px}.enemy{display:flex;align-items:center;gap:12px;margin-bottom:18px}.enemy b{display:block;font-size:13px}.enemy small{display:block;color:var(--muted);font-size:11px}.avatar{display:grid;place-items:center;width:33px;height:36px;border-radius:8px 8px 3px 3px;color:#132432;font:800 11px ui-monospace,monospace;box-shadow:inset 0 -9px #0002}.red{background:#f87882}.purple{background:#b59afa}.orange{background:#f6af66}.green{background:#71d2bb}.legend{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;font-size:12px;color:#d7e8f4}.field-guide .subtle{margin:12px 0 0}.touch-pad{display:none;text-align:center;margin-top:18px}.touch-pad button{width:62px;height:47px;margin:3px;touch-action:none;font-size:19px}#status{color:#ffdf83;font-size:13px;min-height:19px;margin:10px 0 0}footer{display:flex;justify-content:space-between;color:#7793a7;font-size:11px;border-top:1px solid var(--line);margin-top:24px;padding-top:18px}@media(pointer:coarse){.touch-pad{display:block}}@media(max-width:850px){main{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.shell{padding:18px}h1{font-size:30px}.panel{padding:16px}.toolbar .desktop{display:none}}@media(max-width:680px){main{grid-template-columns:1fr}.shell{padding:12px}header{padding:8px 0 15px;margin-bottom:20px}.brand{font-size:24px}.arcade{font-size:9px}.title-row{margin-bottom:14px}h1{font-size:32px}.hud{padding:10px 14px}.hud strong{font-size:21px}aside{display:grid;grid-template-columns:1fr;gap:16px}.field-guide{margin-top:0}.touch-pad{display:block}.overlay-card{padding:15px 5px}.overlay h2{font-size:39px}.overlay p{font-size:13px}.overlay .small{font-size:10px!important}footer span{max-width:170px;text-align:right}.toolbar{font-size:10px}.toolbar button{font-size:11px}.panel-heading h2{font-size:20px}.enemy b{font-size:15px}.enemy small,.subtle{font-size:13px}}

/* Office Halloween party */
:root{--yellow:#ffb45d}body{background:radial-gradient(ellipse at 20% 0,#27344e 0,transparent 65%),var(--bg)}.eyebrow{color:#e2adf3}.arcade{color:#ffbd73;letter-spacing:1.3px}.party-guide{margin-top:18px;font-size:14px}.party-guide p{margin:8px 0 14px}.party-guide b{color:#ffd19a}.avatar{font-size:12px}.banner{font-size:17px;padding:14px;top:19%;border-color:#bb89e0;background:#2c234af2}.overlay h2{font-size:clamp(30px,3.7vw,49px)}

canvas.pickup-key{display:inline-block;width:24px;height:24px;vertical-align:middle;margin-right:5px}.party-guide p{line-height:1.9}@media(max-width:680px){.arcade{margin-left:5px;padding-left:8px;font-size:8px;letter-spacing:1px}.icon-button{padding:8px;font-size:11px;white-space:nowrap}.brand{font-size:23px}}
/* Version 5: peripheral power cue and messages outside the maze. */
.party-sign{background:linear-gradient(110deg,#402846,#6b3444,#402846);border:1px solid #d38a57;text-align:center;padding:9px 10px;color:#ffcf76;position:relative;overflow:hidden}.party-sign:before,.party-sign:after{content:'◆';position:absolute;top:7px;font-size:25px;color:#c993df}.party-sign:before{left:16px}.party-sign:after{right:16px}.party-sign span{display:block;font-weight:900;font-size:22px;line-height:1.05;letter-spacing:3px}.party-sign small{font-size:10px;letter-spacing:2px;color:#ead2f2}.notice-strip{position:relative;min-height:58px;display:flex;align-items:center;justify-content:center;background:#101f32;text-align:center;padding:7px 12px;font-size:14px;color:#d4b5e9}.notice-strip #banner{position:static;inset:auto;background:none;border:0;border-radius:0;padding:0;margin:0;box-shadow:none;line-height:1.3;font-size:14px;color:#ffe4ae}.notice-strip:has(#banner:not([hidden])) #floor-name{display:none}.coffee-mode{height:68px;position:relative;display:flex;align-items:center;gap:10px;padding:8px 16px;background:#182c3b;color:#9db3c3;border:2px solid #365269;overflow:hidden}.coffee-symbol{font-size:32px}.coffee-mode strong{display:block;font-size:16px;line-height:1.1}.coffee-mode small{font-size:11px}.coffee-mode b{margin-left:auto;font:900 31px ui-monospace,monospace}.coffee-mode.active{background:#ffdf60;color:#152f40;border-color:#fff3b3;box-shadow:0 0 25px #ffdf6070}.coffee-mode.active strong{font-size:24px}.coffee-mode.active small{font-weight:850;letter-spacing:1px}.coffee-mode.active b{font-size:39px}.coffee-mode #coffee-bar{position:absolute;bottom:0;left:0;height:5px;width:100%;background:#a35e1d;transform-origin:left;transform:scaleX(0)}.board-wrap.caffeinated{border:4px solid #ffdf60;box-shadow:0 0 32px #ffdf6090,inset 0 0 15px #ffdf6040}.board-wrap{border-top:1px solid #33566c}.hud{border-radius:10px 10px 0 0}.coffee-mode.active .coffee-symbol{filter:drop-shadow(0 0 4px #fff)}@media(max-width:680px){.party-sign span{font-size:18px;letter-spacing:2px}.party-sign small{font-size:9px}.coffee-mode{height:62px;padding:7px 10px;gap:6px}.coffee-mode.active strong{font-size:21px}.coffee-mode.active b{font-size:33px}.coffee-symbol{font-size:27px}.notice-strip{min-height:60px}.notice-strip #banner{font-size:13px}}

canvas.monster-key{display:block;width:48px;height:54px;flex:0 0 48px;background:#142736;border:1px solid #345166;border-radius:7px}.enemy{gap:10px;margin-bottom:12px}
.board-wrap.caffeinated{border-width:1px;outline:4px solid #ffdf60;outline-offset:-4px}
/* Build 6: fit the playing surface to the viewport. */
.shell{max-width:1100px;padding:10px 16px}header{padding-bottom:8px;margin-bottom:8px}.brand{font-size:23px}.brand-icon{font-size:25px}.audio-controls{display:flex;gap:6px}.icon-button{padding:6px 9px;font-size:12px}.title-row{margin-bottom:6px}h1{font-size:29px}.title-row .eyebrow{font-size:9px;margin-bottom:3px}.floor-tag{padding:2px 9px;font-size:9px}.floor-tag b{font-size:19px}.hud{padding:6px 12px}.hud strong{font-size:20px}.hud strong.life{font-size:17px}.notice-strip{min-height:30px;padding:4px 8px;font-size:12px}.notice-strip #banner{font-size:12px}.effects-bar{display:grid;grid-template-columns:1fr 1fr;gap:3px}.coffee-mode{height:46px;padding:4px 7px;gap:5px}.coffee-symbol{font-size:21px}.coffee-mode strong,.coffee-mode.active strong{font-size:15px;line-height:1.1}.coffee-mode small,.coffee-mode.active small{font-size:9px;letter-spacing:0}.coffee-mode b,.coffee-mode.active b{font-size:25px}.coffee-mode #coffee-bar,.coffee-mode #meeting-bar{height:3px}.coffee-mode #meeting-bar{position:absolute;bottom:0;left:0;width:100%;background:#69469d;transform-origin:left;transform:scaleX(0)}.meeting-mode.active{color:#25103e;background:#d4a8ff;border-color:#eed5ff;box-shadow:0 0 20px #b77af575}.board-wrap.meeting-active{outline:4px solid #cc95ff;outline-offset:-4px;box-shadow:0 0 28px #b370f590}.board-wrap.meeting-active.caffeinated{outline-color:#cc95ff;box-shadow:0 0 28px #b370f590,0 0 0 4px #ffdf60}.toolbar{margin-top:7px}#status{margin:4px 0 0;min-height:16px}.party-sign{padding:7px 8px;margin-bottom:12px}.party-sign span{font-size:17px;letter-spacing:1px}.party-sign small{font-size:9px}.party-sign:before,.party-sign:after{display:none}footer{margin-top:14px;padding-top:9px}.panel{padding:15px}.overlay-card{padding:12px}.overlay h2{font-size:clamp(26px,3vw,43px)}.overlay p{font-size:13px}.overlay .primary{margin:6px 0}.overlay .small{font-size:10px!important}
@media(min-width:851px){main{grid-template-columns:minmax(360px,min(672px,calc(100svh - 310px))) minmax(260px,330px);gap:20px;justify-content:center}.game{min-width:0}.leaderboard ol{max-height:160px}.panel .subtle{margin-bottom:9px}.enemy{margin-bottom:7px}canvas.monster-key{width:40px;height:45px;flex-basis:40px}}
@media(min-width:681px) and (max-width:850px){main{grid-template-columns:minmax(0,1fr) 245px;gap:12px}h1{font-size:25px}.coffee-mode strong,.coffee-mode.active strong{font-size:12px}.coffee-symbol{display:none}}
@media(max-width:680px){.shell{padding:8px}header{padding:3px 0 6px;margin-bottom:6px}.brand{font-size:20px}.brand-icon{font-size:21px}.arcade{display:none}.icon-button{font-size:11px;padding:6px 8px}.game{width:min(100%,calc(100svh - 300px));min-width:260px;margin:auto}.title-row{margin-bottom:4px}h1{font-size:25px}.title-row .eyebrow{font-size:8px;letter-spacing:1px}.hud{padding:5px 8px;letter-spacing:1px}.hud strong{font-size:18px}.floor-tag{padding:1px 6px}.floor-tag b{font-size:18px}.notice-strip{min-height:32px}.notice-strip #banner{font-size:11px}.effects-bar{gap:2px}.coffee-mode{height:44px;padding:3px 5px;gap:4px}.coffee-symbol{display:none}.coffee-mode strong,.coffee-mode.active strong{font-size:14px}.coffee-mode small,.coffee-mode.active small{font-size:9px}.coffee-mode b,.coffee-mode.active b{font-size:24px}.toolbar{margin-top:5px}.touch-pad{margin-top:4px}.touch-pad button{height:39px;width:57px;margin:2px;font-size:16px}.overlay h2{font-size:28px;letter-spacing:-1px;margin:10px 0}.overlay-card{padding:7px 3px}.overlay p{font-size:12px;margin:8px 0}.overlay .primary{padding:10px 18px}.overlay .small{font-size:9px!important}aside{margin-top:12px}.party-sign{margin-bottom:0}.party-guide{margin-top:0}}
