:root{--font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--bg-dark:#050814;--panel-bg:#0f172ad9;--border-glow:#38bdf84d;--text-main:#f8fafc;--text-muted:#94a3b8;--accent:#38bdf8;--accent-purple:#a855f7}*{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;margin:0;padding:0}html{-webkit-text-size-adjust:100%;overscroll-behavior:none;font-size:clamp(11px,1.6vmin + 4px,16px)}html,body,#root{background:var(--bg-dark);width:100%;height:100%;color:var(--text-main);font-family:var(--font-family);overflow:hidden}.game-shell{touch-action:none;background:radial-gradient(circle,#0f172a 0%,#050814 100%);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;inset:0}.game-stage{background:#070b19;border:1px solid #ffffff1f;width:min(100vw,177.778dvh);height:min(100dvh,56.25vw);position:relative;overflow:hidden;box-shadow:0 20px 60px #000000bf}.phaser-canvas-host{touch-action:none;width:100%;height:100%}.phaser-canvas-host canvas{touch-action:none;display:block}.game-ui-layer{pointer-events:none;flex-direction:column;justify-content:space-between;padding:14px 18px;display:flex;position:absolute;inset:0}.hud-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.hud-stats-left{background:var(--panel-bg);border:1px solid var(--border-glow);border-radius:10px;align-items:center;gap:12px;padding:8px 12px;display:flex}.bar-group{width:145px}.bar-label{justify-content:space-between;margin-bottom:4px;font-size:.72rem;font-weight:700;display:flex}.shield-tag{color:#c084fc}.progress-track{background:#ffffff1f;border-radius:999px;height:8px;overflow:hidden}.progress-fill{height:100%;transition:width .12s ease-out}.hp-fill{background:linear-gradient(90deg,#ef4444,#f43f5e)}.exp-fill{background:linear-gradient(90deg,#10b981,#34d399)}.weapon-pill{color:#7dd3fc;background:#38bdf824;border:1px solid #38bdf859;border-radius:6px;padding:5px 10px;font-size:.75rem;font-weight:700}.overdrive-pill{color:#fef08a;background:#f9731640;border:1px solid #fb923ca6;border-radius:6px;padding:5px 10px;font-size:.75rem;font-weight:800}.hud-center-alerts{flex-direction:column;align-items:center;gap:8px;display:flex}.event-banner{color:#fef08a;background:#0f172ae6;border:1px solid #facc158c;border-radius:999px;padding:7px 16px;font-size:.84rem;font-weight:700;box-shadow:0 6px 20px #00000073}.hud-stats-right{pointer-events:auto;align-items:center;gap:8px;display:flex}.stat-chip{background:var(--panel-bg);color:var(--text-muted);border:1px solid #ffffff1f;border-radius:8px;padding:6px 10px;font-size:.76rem}.stat-chip strong{color:#fff;margin-left:4px}.hud-btn{color:#e2e8f0;cursor:pointer;background:#1e293be6;border:1px solid #ffffff2e;border-radius:8px;padding:6px 10px;font-size:.75rem;font-weight:600}.hud-btn.active{color:#38bdf8;border-color:#38bdf8}.boss-bar-wrap{background:#180a23e0;border:1px solid #e879f980;border-radius:10px;align-self:center;width:min(560px,80%);padding:8px 14px}.boss-title{color:#f0abfc;justify-content:space-between;margin-bottom:5px;font-size:.8rem;display:flex}.boss-track{background:#ffffff1a;border-radius:999px;height:10px;overflow:hidden}.boss-fill{background:linear-gradient(90deg,#a855f7,#ec4899);height:100%;transition:width .1s ease-out}.hud-bottom{pointer-events:auto;justify-content:center;gap:10px;display:flex}.skill-slot{font:inherit;background:var(--panel-bg);color:#fff;text-align:center;cursor:pointer;border:1px solid #ffffff2e;border-radius:10px;min-width:105px;padding:7px 10px;transition:transform .12s}.skill-slot.ready:hover{transform:translateY(-2px)}.skill-slot.locked{opacity:.45;cursor:not-allowed}.skill-slot.cooling{opacity:.72}.skill-key{color:#94a3b8;font-size:.65rem;font-weight:800}.skill-name{margin:2px 0;font-size:.8rem;font-weight:700}.skill-status{color:#38bdf8;font-size:.7rem}.skill-cd-bar{background:#ffffff1f;border-radius:999px;height:4px;margin-top:4px;overflow:hidden}.skill-cd-fill{background:#38bdf8;height:100%;transition:width .1s linear}.modal-backdrop{pointer-events:auto;z-index:50;background:#030712d6;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.modal-card{text-align:center;background:#0f172af5;border:1px solid #38bdf859;border-radius:16px;width:min(640px,92%);max-height:92dvh;padding:22px 26px;overflow-y:auto;box-shadow:0 24px 64px #000000a6}.concept-section{background:#020617a6;border:1px solid #a855f747;border-radius:10px;margin-bottom:10px;padding:10px 12px}.concept-grid{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.concept-card{color:#fff;text-align:left;cursor:pointer;background:#1e293bd9;border:1px solid #ffffff24;border-radius:8px;padding:8px 10px;transition:border-color .15s,background .15s}.concept-card.selected{background:#38bdf829;border-color:#38bdf8}.concept-top{justify-content:space-between;align-items:center;margin-bottom:3px;font-size:.84rem;display:flex}.concept-badge{color:#7dd3fc;background:#38bdf826;border-radius:999px;padding:2px 6px;font-size:.66rem;font-weight:700}.concept-bonus{color:#cbd5e1;font-size:.72rem}.build-summary-bar{color:#94a3b8;background:#020617a6;border:1px solid #ffffff1a;border-radius:8px;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:12px;padding:8px 12px;font-size:.78rem;display:flex}.build-summary-bar strong{color:#38bdf8}.upgrade-card{color:#fff;text-align:center;cursor:pointer;background:#1e293beb;border:1px solid #ffffff29;border-radius:12px;padding:20px 14px 16px;transition:transform .15s,border-color .15s;position:relative}.upgrade-card.recommended{box-shadow:0 0 18px #facc152e}.recommend-tag{color:#0f172a;white-space:nowrap;background:linear-gradient(90deg,#f59e0b,#eab308);border-radius:999px;padding:2px 10px;font-size:.68rem;font-weight:900;position:absolute;top:-9px;left:50%;transform:translate(-50%)}.upgrade-short-tag{color:#38bdf8;background:#38bdf824;border:1px solid #38bdf859;border-radius:999px;margin-bottom:8px;padding:3px 10px;font-size:.76rem;font-weight:800;display:inline-block}.upgrade-modal{width:min(820px,92%)}.game-badge{color:#38bdf8;background:#38bdf829;border:1px solid #38bdf866;border-radius:999px;margin-bottom:10px;padding:4px 10px;font-size:.74rem;font-weight:800;display:inline-block}.game-badge.danger{color:#fb7185;background:#f43f5e29;border-color:#f43f5e73}.modal-card h1{background:linear-gradient(90deg,#f8fafc,#38bdf8);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin-bottom:10px;font-size:1.9rem}.modal-card h2{margin-bottom:12px;font-size:1.45rem}.menu-desc{color:var(--text-muted);margin-bottom:18px;font-size:.92rem;line-height:1.55}.controls-grid{color:#cbd5e1;text-align:left;background:#02061799;border:1px solid #ffffff14;border-radius:10px;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:20px;padding:12px;font-size:.8rem;display:grid}.keybind-section{background:#020617a6;border:1px solid #38bdf840;border-radius:10px;margin-bottom:12px;padding:12px}.keybind-header{color:#94a3b8;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:.76rem;display:flex}.keybind-reset-btn{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #fff3;border-radius:6px;padding:2px 8px;font-size:.7rem}.keybind-grid{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.keybind-btn{color:#fff;cursor:pointer;background:#1e293be6;border:1px solid #ffffff29;border-radius:8px;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;display:flex}.keybind-btn.listening{background:#facc1524;border-color:#facc15}.kb-label{color:#cbd5e1;font-size:.72rem}.kb-key{color:#38bdf8;font-size:.88rem;font-weight:800}.keybind-error{color:#fb7185;margin-top:8px;font-size:.74rem}.primary-cta{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#0ea5e9);border:none;border-radius:10px;padding:12px 26px;font-size:1rem;font-weight:700}.primary-cta:hover{filter:brightness(1.1)}.secondary-cta{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:10px;padding:12px 22px;font-size:.95rem;font-weight:600}.modal-actions{justify-content:center;gap:12px;display:flex}.upgrade-grid{grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px;display:grid}.upgrade-card:hover{border-color:#38bdf8;transform:translateY(-4px)}.upgrade-card.rarity-rare{border-color:#38bdf880}.upgrade-card.rarity-epic{border-color:#c084fcb3}.upgrade-icon{margin-bottom:6px;font-size:2rem}.upgrade-rarity{color:#7dd3fc;margin-bottom:6px;font-size:.68rem;font-weight:800}.upgrade-card h3{margin-bottom:8px;font-size:1rem}.upgrade-card p{color:var(--text-muted);font-size:.82rem;line-height:1.45}.result-stats{grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0 22px;display:grid}.result-stats>div{background:#02061799;border:1px solid #ffffff1a;border-radius:8px;flex-direction:column;gap:4px;padding:10px;display:flex}.result-stats span{color:var(--text-muted);font-size:.75rem}.result-stats strong{color:#38bdf8;font-size:1.15rem}.records-bar{color:var(--text-muted);background:#facc1514;border:1px solid #facc1547;border-radius:10px;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin-bottom:10px;padding:7px 10px;font-size:.78rem;display:flex}.records-bar strong{color:#fde68a;margin-left:3px}.settings-row{flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:12px;display:flex}.toggle-btn{font:inherit;color:#cbd5e1;cursor:pointer;background:#1e293be6;border:1px solid #ffffff2e;border-radius:8px;padding:7px 12px;font-size:.78rem;font-weight:700}.toggle-btn.on{color:#7dd3fc;border-color:#38bdf8}.new-record-banner{color:#422006;background:linear-gradient(90deg,#fde047,#f59e0b);border-radius:999px;margin-top:4px;padding:5px 14px;font-size:.9rem;font-weight:800;display:inline-block}.new-badge{color:#422006;background:#fde047;border-radius:4px;margin-left:4px;padding:1px 5px;font-size:.62rem;font-style:normal;font-weight:900}.result-stats small{color:var(--text-muted);font-size:.68rem}.upgrade-hotkey{color:#94a3b8;border:1px solid #94a3b880;border-radius:4px;padding:0 5px;font-size:.7rem;font-weight:800;position:absolute;top:8px;left:10px}.dash-slot{cursor:pointer}.rotate-hint{display:none}@media (orientation:portrait) and (pointer:coarse){.rotate-hint{z-index:100;text-align:center;color:#e2e8f0;pointer-events:none;background:#050814f0;flex-direction:column;justify-content:center;align-items:center;gap:10px;font-size:1.1rem;font-weight:700;display:flex;position:fixed;inset:0}.rotate-hint div{font-size:3rem}}.is-touch .hud-bottom{flex-wrap:wrap;justify-content:flex-end;align-self:flex-end;gap:8px;max-width:72%}.is-touch .skill-slot{min-width:64px;min-height:52px;padding:6px 8px}.is-touch .skill-name{display:none}.is-touch .dash-slot .skill-name{display:block}.is-touch .hud-btn,.is-touch .toggle-btn{min-width:38px;min-height:38px}.is-touch .keybind-section{display:none}@media (height<=520px){.game-ui-layer{padding:6px 10px}.hud-stats-left{gap:8px;padding:5px 8px}.bar-group{width:108px}.optional-chip,.weapon-pill{display:none}.modal-card{padding:12px 16px}.modal-card h1{margin-bottom:6px;font-size:1.3rem}.menu-desc{margin-bottom:8px;font-size:.8rem}.controls-grid,.concept-bonus{display:none}.upgrade-card{padding:14px 8px 10px}.upgrade-icon{font-size:1.4rem}}.modal-card>.primary-cta{z-index:2;position:sticky;bottom:-14px;box-shadow:0 0 0 10px #0f172af5,0 -8px 14px 4px #0f172af5}
