*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;width:100%;height:100dvh;overflow:hidden;background:#06080e;color:#e2e8f0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:none;user-select:none;touch-action:none}#game-canvas{display:block;width:100%;height:100dvh}.hidden{display:none!important}.hud-root{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:20}.hud-bar{pointer-events:auto;height:calc(48px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));background:#080c14db;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid rgba(56,189,248,.28);display:flex;align-items:center;justify-content:space-between;gap:8px}.hud-brand{font-weight:800;font-size:14px;letter-spacing:.08em;color:#f8fafc;white-space:nowrap}.hud-badge{color:#38bdf8}.hud-stats{display:flex;align-items:center;gap:8px;min-width:0}.stat-pill{display:flex;align-items:center;gap:5px;background:#0f172ae6;border:1px solid #1e293b;border-radius:6px;padding:4px 8px;font-size:12px;white-space:nowrap}.stat-lbl{color:#64748b;font-size:10px}.energy-track{display:inline-block;width:58px;height:9px;background:#1e293b;border-radius:4px;overflow:hidden}.energy-fill{display:block;height:100%;width:100%;background:#22c55e;transition:width .15s ease}.hud-menu-btn{min-width:44px;min-height:44px;background:#1e293b;color:#f8fafc;border:1px solid #334155;border-radius:8px;font-size:18px;cursor:pointer}.hud-status-banner{position:fixed;top:calc(54px + env(safe-area-inset-top));left:50%;transform:translate(-50%);background:#0a0f1acc;border:1px solid rgba(56,189,248,.35);border-radius:999px;padding:4px 14px;font-size:11px;letter-spacing:.05em;color:#bae6fd;max-width:92vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hud-drawer-backdrop{pointer-events:auto;position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:30}.hud-drawer{pointer-events:auto;position:fixed;top:0;right:0;width:min(86vw,340px);height:100dvh;padding:calc(14px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));background:#0f172a;border-left:1px solid #334155;z-index:40;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.drawer-head{display:flex;align-items:center;justify-content:space-between;font-weight:700;color:#38bdf8}.drawer-close{min-width:44px;min-height:44px;background:#1e293b;color:#fff;border:1px solid #334155;border-radius:8px;font-size:16px;cursor:pointer}.drawer-meta{background:#0b1120;border:1px solid #1e293b;border-radius:8px;padding:10px 12px;display:grid;gap:6px;font-size:12px}.drawer-actions{display:grid;gap:8px}.drawer-actions button{min-height:44px;background:#1e293b;color:#f8fafc;border:1px solid #334155;border-radius:8px;padding:10px 12px;font-family:inherit;font-size:13px;text-align:left;cursor:pointer}.drawer-actions .btn-accent{background:#0284c7;border-color:#38bdf8;font-weight:700;text-align:center}.drawer-help{font-size:11px;line-height:1.55;color:#94a3b8;border-top:1px solid #1e293b;padding-top:10px}.touch-controls{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:25}.touch-dpad{pointer-events:auto;position:fixed;left:max(12px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:6px;opacity:.72}.t-mid{display:flex;gap:38px}.t-btn{min-width:48px;min-height:48px;border-radius:12px;background:#0f172ac7;border:1px solid rgba(148,163,184,.45);color:#f8fafc;font-size:16px;touch-action:none}.touch-actions{pointer-events:auto;position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(2,auto);gap:8px;opacity:.78}.t-act{min-width:58px;min-height:48px;border-radius:12px;background:#0f172ad1;border:1px solid rgba(148,163,184,.45);color:#f8fafc;font-family:inherit;font-weight:700;font-size:12px;touch-action:none}.t-act-primary{grid-column:span 2;background:#0e7490e0;border-color:#38bdf8}.t-btn.active,.t-act.active{background:#0284c7;border-color:#7dd3fc}.selector-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:radial-gradient(circle at top,#0e1e3af5,#06080efa);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}.selector-card{width:min(94vw,680px);max-height:92dvh;overflow-y:auto;background:#0f172a;border:1px solid #334155;border-radius:14px;padding:20px;box-shadow:0 24px 60px #000000a6}.selector-eyebrow{font-size:11px;color:#38bdf8;letter-spacing:.08em}.selector-title{margin:6px 0 8px;font-size:clamp(26px,5vw,38px);letter-spacing:.06em}.selector-title span{color:#38bdf8}.selector-sub{margin:0 0 16px;font-size:13px;line-height:1.5;color:#94a3b8}.game-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}.game-card{text-align:left;padding:14px;border-radius:10px;background:#111827;border:2px solid #1f2937;color:#e2e8f0;font-family:inherit;cursor:pointer}.game-card.active{border-color:#38bdf8;background:#0e749038}.gc-year{font-size:11px;color:#38bdf8;margin-bottom:4px}.gc-name{font-size:17px;font-weight:800;margin-bottom:6px}.gc-desc{font-size:12px;color:#94a3b8;line-height:1.4}.selector-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}.opt-field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#94a3b8}.opt-field select{min-height:44px;background:#1e293b;color:#f8fafc;border:1px solid #334155;border-radius:8px;padding:8px 10px;font-family:inherit;font-size:14px}.selector-actions{display:flex;flex-wrap:wrap;gap:10px}.btn-start{flex:1;min-height:48px;background:#0284c7;color:#fff;border:1px solid #38bdf8;border-radius:10px;font-family:inherit;font-weight:800;font-size:15px;letter-spacing:.06em;cursor:pointer}.btn-debug{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;background:#1e293b;color:#e2e8f0;border:1px solid #334155;border-radius:10px;text-decoration:none;font-size:13px}.debug-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#06080eeb;padding:12px;display:flex;flex-direction:column}.debug-modal .debug-panel{height:100%;display:flex;flex-direction:column;gap:10px}.debug-modal .debug-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;background:#111827;padding:10px;border:1px solid #334155;border-radius:8px}.debug-modal .debug-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.debug-modal select,.debug-modal input,.debug-modal button{min-height:36px;background:#1e293b;color:#f8fafc;border:1px solid #334155;border-radius:6px;padding:4px 8px;font-family:inherit;font-size:12px;cursor:pointer}.debug-modal .btn-accent{background:#0284c7;border-color:#38bdf8}.debug-modal .debug-body{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.debug-modal canvas{max-width:100%;max-height:68dvh;image-rendering:pixelated;border:2px solid #334155}.debug-modal .debug-exits{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.debug-modal .debug-info{font-size:12px;color:#94a3b8;text-align:center}@media(max-width:640px){.hide-xs,.hide-sm{display:none}.game-cards,.selector-options{grid-template-columns:1fr}}@media(max-width:900px){.hide-sm{display:none}}
