.access-toolbar,.demo-playback{position:fixed;z-index:6;top:calc(var(--game-header-height, 124px) + 8px);left:16px;right:16px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;pointer-events:none}.demo-playback{top:12px}.access-toolbar button,.demo-playback button,.touch-controls button,.text-play-panel button{pointer-events:auto;min-height:44px;padding:9px 14px;border:1px solid #b7c9cc;border-radius:8px;color:#f5f7fa;background:#19343e;font:14px/1.4 system-ui;cursor:pointer}.access-toolbar button:focus-visible,.demo-playback button:focus-visible,.touch-controls button:focus-visible,.text-play-panel button:focus-visible{outline:3px solid #ffd68e;outline-offset:2px}.touch-controls button[data-held]{background:#466979}.access-toolbar button:disabled,.touch-controls:disabled{opacity:.65}.touch-controls{position:fixed;z-index:5;bottom:12px;left:12px;right:12px;margin:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:8px;border:0;border-radius:10px;background:#122b36ed;color:#fff;font:12px/1.5 system-ui;max-width:650px;margin-inline:auto}.touch-controls button{touch-action:none;user-select:none;min-width:60px}.touch-controls legend{background:#122b36;padding:3px 8px;border-radius:6px}.touch-controls[hidden],.text-play-panel[hidden]{display:none}body:has(.touch-controls:not([hidden])) .bottom{bottom:150px}body:has(.touch-controls:not([hidden])) .sound-toggle{bottom:154px}.access-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body.text-play{overflow:auto;height:auto;background:#102530}.text-play canvas#view{position:fixed;visibility:hidden}.text-play #interface,.text-play .touch-controls{display:none}.text-play .access-toolbar{position:sticky;top:0;left:auto;padding:12px;background:#102530}.text-play-panel{max-width:900px;margin:auto;padding:16px 24px 40px;color:#f5f7fa;background:#102530;font:16px/1.65 system-ui}.text-play-panel h1{font-size:28px}.text-play-panel li{margin-bottom:10px}.text-actions{display:flex;flex-wrap:wrap;gap:10px}.text-actions button[aria-disabled]{opacity:.65}@media(max-width:720px){.access-toolbar{left:10px;right:10px;gap:6px}.access-toolbar button{padding-inline:10px;font-size:12px}body:has(.touch-controls:not([hidden])) .bottom{bottom:230px}body:has(.touch-controls:not([hidden])) .bottom>:not(:first-child){display:none}body:has(.touch-controls:not([hidden])) .brief{max-width:none;padding:8px 12px}body:has(.touch-controls:not([hidden])) .brief .controls{display:none}body:has(.touch-controls:not([hidden])) .sound-toggle{bottom:200px;right:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto;transition:none;animation:none}}.demo-playback{display:flex;gap:8px;flex-wrap:wrap;position:fixed;z-index:5;top:12px;right:12px;left:auto}.data-values{position:fixed;top:68px;right:12px;padding:10px;color:#f5f7fa;background:#102530;font:14px/1.6 system-ui}.data-values table{border-collapse:collapse}.data-values td,.data-values th{padding:3px 14px;text-align:left}html:has(body.text-play),body.text-play>main{height:auto;overflow:visible}.text-play-panel h1{line-height:1.25;letter-spacing:-.5px}.fine-actions{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:12px}.fine-actions input{width:20px;height:20px}.face-direction{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.face-direction select{min-height:44px;font:inherit;border:1px solid #b7c9cc;border-radius:6px;padding:6px;color:#f5f7fa;background:#19343e}@media(max-width:720px){body:has(.access-toolbar) .topbar{flex-direction:column;gap:8px;padding:12px 18px}body:has(.access-toolbar) .eyebrow{letter-spacing:2px;font-size:9px;margin-bottom:6px}body:has(.access-toolbar) .stats{width:100%;justify-content:space-between;padding:8px 12px}body:has(.access-toolbar) .topbar h1{margin-bottom:0}.access-toolbar button{padding-inline:8px}}@media(min-width:600px)and (max-height:500px){body:has(.access-toolbar) .topbar{flex-direction:row;align-items:center;gap:12px;padding:8px 16px}body:has(.access-toolbar) .topbar h1{font-size:22px;margin:0}body:has(.access-toolbar) .topbar .eyebrow,body:has(.access-toolbar) .subtitle{display:none}body:has(.access-toolbar) .stats{width:auto;padding:4px 12px;gap:20px}body:has(.access-toolbar) .stat strong{font-size:16px}body:has(.touch-controls:not([hidden])) .bottom{bottom:12px;left:12px;right:380px}body:has(.touch-controls:not([hidden])) .bottom>:not(:first-child),body:has(.touch-controls:not([hidden])) .brief .controls,body:has(.touch-controls:not([hidden])) .brief .label{display:none}body:has(.touch-controls:not([hidden])) .brief{padding:8px 12px;max-width:100%}body:has(.touch-controls:not([hidden])) #message{margin:0;font-size:12px}body:has(.touch-controls:not([hidden])) .sound-toggle{top:64px;bottom:auto;right:12px}.touch-controls{left:auto;right:8px;bottom:8px;width:360px;gap:4px;padding:6px}.touch-controls button{min-width:54px;padding:6px 10px;font-size:12px}.touch-controls legend{font-size:11px}}*{box-sizing:border-box}html,body,body>main{margin:0;height:100%;overflow:hidden}body{--ink: #ecf1e8;--muted: #aab9bf;--accent: #f9bc60;--panel: rgba(18, 32, 43, .91);font-family:Inter,Segoe UI,sans-serif;color:var(--ink);background:#182733}canvas#view{display:block;width:100%;height:100%}canvas#view:focus-visible{outline:3px solid var(--accent);outline-offset:-4px}#interface{position:fixed;inset:0;pointer-events:none}.topbar{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:flex-start;padding:28px 34px;background:var(--panel);gap:24px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:3px;font-weight:700;color:var(--accent);margin-bottom:9px}h1{font-size:32px;line-height:1;letter-spacing:-1.3px;margin:0 0 9px;font-weight:750}.subtitle{font-size:12px;color:var(--muted)}.stats{display:flex;gap:24px;padding:15px 24px;border:1px solid #ffffff20;border-radius:14px;background:var(--panel);backdrop-filter:blur(12px)}.stat{min-width:65px}.stat label{display:block;text-transform:uppercase;font-size:9px;letter-spacing:1.7px;color:var(--muted);margin-bottom:4px}.stat strong{font-size:23px;font-variant-numeric:tabular-nums;font-weight:650}.stat small{font-size:11px;color:var(--muted);margin-left:4px}.bottom{position:absolute;bottom:26px;left:34px;right:34px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.brief{max-width:445px;border-left:3px solid var(--accent);padding:16px 20px;background:var(--panel);border-radius:0 12px 12px 0}.brief .label{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--accent)}#message{font-size:14px;line-height:1.5;margin:8px 0 12px;min-height:21px}.controls{font-size:11px;color:var(--muted);line-height:2}kbd{font-family:inherit;font-size:10px;background:#ffffff13;border:1px solid #ffffff28;border-bottom-width:2px;border-radius:4px;padding:2px 5px;color:var(--ink);white-space:nowrap}button{pointer-events:auto;border:1px solid #ffffff30;border-radius:8px;padding:9px 13px;background:#ffffff09;color:var(--ink);font:inherit;font-size:11px;cursor:pointer}button:hover{background:#ffffff20}button:focus-visible{outline:2px solid var(--accent)}.map{width:152px;height:152px;padding:12px;background:var(--panel);border:1px solid #ffffff20;border-radius:14px}.map svg{width:100%;height:100%}.map-caption{position:absolute;right:0;bottom:164px;text-transform:uppercase;letter-spacing:2px;font-size:9px;color:var(--muted)}#outcome{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);background:var(--panel);border:1px solid var(--accent);padding:26px 40px;border-radius:16px;text-align:center;min-width:290px;box-shadow:0 20px 80px #0005}#outcome[hidden]{display:none}#outcome h2{font-size:28px;margin:0 0 10px}#outcome p{font-size:13px;color:var(--muted)}.crosshair{position:absolute;left:50%;top:50%;width:5px;height:5px;border:1px solid #f5d59b;transform:translate(-50%,-50%);border-radius:50%;box-shadow:0 0 15px #ffdaac}.sword{position:absolute;bottom:-90px;right:23%;width:34px;height:320px;background:linear-gradient(90deg,#718897,#e5ebdf 45%,#8a9eac 50%,#456276);clip-path:polygon(50% 0,100% 15%,100% 73%,85% 76%,85% 100%,15% 100%,15% 76%,0 73%,0 15%);transform:rotate(22deg);transform-origin:bottom;transition:transform .11s;filter:drop-shadow(0 0 12px #000)}.sword.swing{transform:rotate(-40deg) translate(-120px,-35px)}body[data-game=lantern-dungeon]{--accent: #e8bb75;--panel: rgba(15, 23, 34, .93)}body[data-game=lantern-dungeon] h1{font-family:Georgia,serif;font-weight:400;letter-spacing:.3px}body[data-game=skybound]{--accent: #ffd68e;--panel: rgba(28, 70, 77, .92)}body[data-game=skybound] h1{font-size:39px;font-weight:850;letter-spacing:-2px}.progress{width:150px;height:7px;background:#ffffff25;border-radius:6px;margin:8px 0}.progress span{display:block;height:100%;background:var(--accent);border-radius:6px;width:0}#diagnostic{position:absolute;top:105px;left:34px;color:#ffb7a5;font-size:12px;max-width:600px;white-space:pre-wrap}@media(max-width:720px){.topbar{padding:18px}.stats{gap:12px;padding:12px}.stat{min-width:38px}.stat strong{font-size:19px}h1{font-size:25px}.subtitle{display:none}.bottom{left:18px;right:18px;bottom:18px}.brief{padding:12px;max-width:70vw}.map{width:105px;height:105px}.map-caption{bottom:116px}.controls{font-size:10px}.sword{right:13%}body[data-game=skybound] h1{font-size:29px}}.sound-toggle{position:absolute;right:34px;bottom:28px}.sound-toggle[aria-pressed=false]{opacity:.6}
