:root{--bg-dark: #09080f;--panel-bg: rgba(17, 15, 28, .92);--panel-border: rgba(148, 163, 184, .24);--gold: #facc15;--gold-dim: #ca8a04;--emerald: #34d399;--cyan: #38bdf8;--crimson: #f87171;--violet: #c084fc;--text-main: #f1f5f9;--text-muted: #94a3b8}*{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;height:100%;background:var(--bg-dark);color:var(--text-main);font-family:Segoe UI,system-ui,-apple-system,sans-serif;overflow:hidden;-webkit-user-select:none;user-select:none}#game-container{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at center,#181426,#09080f 75%)}#game-container canvas{image-rendering:pixelated;image-rendering:crisp-edges;box-shadow:0 0 40px #000000d9}#ui-root{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:20;display:flex;flex-direction:column;justify-content:space-between}.pointer-auto{pointer-events:auto}.pixel-icon{image-rendering:pixelated;image-rendering:crisp-edges;display:inline-block;vertical-align:middle}.hg-topbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 10px;background:linear-gradient(180deg,#0b0a13f5,#110f1ce0);border-bottom:1px solid var(--panel-border);pointer-events:auto;flex-wrap:nowrap;white-space:nowrap;overflow-x:auto}.hg-stats-group{display:flex;align-items:center;gap:5px;flex-wrap:nowrap}.hg-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:6px;background:#1e1b2ee6;border:1px solid rgba(148,163,184,.22);font-size:11.5px;font-weight:600}.hg-pill.gold{color:var(--gold);border-color:#facc1559}.hg-pill.lives{color:#fda4af;border-color:#f8717159}.hg-pill.wave{color:var(--cyan);border-color:#38bdf859}.hg-pill.aura-on{color:#86efac;border-color:#34d39999;box-shadow:0 0 10px #34d39933}.hg-pill.aura-off{color:var(--text-muted);opacity:.65}.hg-forecast{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:6px;background:#27203aeb;border:1px solid rgba(192,132,252,.35);font-size:12px}.hg-forecast.boss{background:#7f1d1dd9;border-color:#f87171cc;color:#fecaca}.hg-forecast-quest{padding:2px 7px;border-radius:4px;background:#facc1538;border:1px solid var(--gold);color:#fef08a;font-weight:700;font-size:11px}.hg-trait-tag{padding:1px 5px;border-radius:4px;font-size:10px;font-weight:700;background:#0f172acc;border:1px solid rgba(255,255,255,.2)}.hg-trait-tag.air{color:#e879f9;border-color:#c084fc}.hg-trait-tag.stealth{color:#a5b4fc;border-color:#818cf8}.hg-trait-tag.armored{color:#cbd5e1;border-color:#94a3b8}.hg-trait-tag.chill{color:#7dd3fc;border-color:#38bdf8;background:#0c4a6eb8}.hg-affix-badge{padding:2px 7px;border-radius:4px;font-size:10.5px;font-weight:800;letter-spacing:.2px;background:#0f172aeb;border:1.5px solid #fb923c;color:#fb923c;box-shadow:0 0 10px #fb923c40}.hg-controls{display:flex;align-items:center;gap:6px}.hg-btn{cursor:pointer;border:1px solid rgba(148,163,184,.32);background:#252138;color:var(--text-main);border-radius:6px;padding:5px 10px;font-size:12px;font-weight:600;transition:transform .08s ease,background .12s ease,border-color .12s ease}.hg-btn:hover:not(:disabled){background:#342f4f;border-color:#ffffff73}.hg-btn:active:not(:disabled){transform:scale(.97)}.hg-btn:disabled{opacity:.38;cursor:not-allowed}.hg-btn.active{background:#1d4ed8;border-color:#60a5fa;color:#fff}.hg-btn.gold{background:linear-gradient(180deg,#eab308,#b45309);border-color:#fef08a;color:#111827;font-weight:800}.hg-btn.gold:hover:not(:disabled){filter:brightness(1.1)}.hg-btn.emerald{background:linear-gradient(180deg,#10b981,#047857);border-color:#a7f3d0;color:#052e16;font-weight:800}.hg-btn.soul-unlocked{background:linear-gradient(180deg,#7e22ce,#581c87);border-color:#e879f9;color:#faf5ff;box-shadow:0 0 12px #c084fc73}.hg-quest-bar{position:fixed;top:46px;left:264px;right:268px;margin:0 auto;max-width:520px;background:linear-gradient(180deg,#422006f2,#1e140af2);border:2px solid var(--gold);border-radius:10px;padding:6px 12px;box-shadow:0 0 24px #facc1566;cursor:pointer;pointer-events:auto;z-index:30}.hg-forecast-strip{position:fixed;top:44px;left:264px;right:268px;display:flex;justify-content:center;pointer-events:none;z-index:24}.hg-forecast-strip .hg-forecast{pointer-events:auto}.hg-quest-bar.focused{box-shadow:0 0 28px #facc15d9;border-color:#fef08a}.hg-quest-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:#fef08a;margin-bottom:5px}.hg-quest-track{height:12px;background:#0f172ad9;border-radius:6px;overflow:hidden;border:1px solid rgba(250,204,21,.45);position:relative}.hg-quest-hp{height:100%;background:linear-gradient(90deg,#f59e0b,#facc15);transition:width .15s linear}.hg-quest-sh{position:absolute;top:0;left:0;height:4px;background:#38bdf8}.hg-right-dock{position:fixed;top:52px;right:10px;width:248px;max-height:calc(100vh - 64px);overflow-y:auto;display:flex;flex-direction:column;gap:8px;pointer-events:auto;z-index:25}.hg-card-panel{background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:10px;padding:8px 10px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.hg-panel-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);margin-bottom:6px;display:flex;justify-content:space-between;align-items:center}.hg-coin-tray{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-bottom:8px}.hg-coin-cell{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px 3px;border-radius:6px;background:#0f172ab8;border:1px solid rgba(148,163,184,.22);cursor:pointer;transition:border-color .12s ease,transform .08s ease,box-shadow .12s ease}.hg-coin-cell:hover{border-color:var(--gold);box-shadow:0 0 10px #facc1566;transform:translateY(-1px)}.hg-coin-cell.guide-active{border-color:#fef08a;box-shadow:0 0 12px #facc15a6}.hg-coin-info-dot{position:absolute;top:2px;right:3px;font-size:9px;line-height:1;color:#fef08ab8;pointer-events:none}.hg-coin-cell.has-coin{border-color:#facc158c;background:#2a2212a6}.hg-coin-count{font-size:12px;font-weight:800;font-family:monospace}.hg-forge-trigger{width:100%;padding:9px 10px;border-radius:8px;font-size:13px;font-weight:800;cursor:pointer;border:2px solid #64748b;background:linear-gradient(180deg,#2d2846,#1e1a30);color:var(--text-main);display:flex;align-items:center;justify-content:space-between}.hg-forge-trigger.ready{border-color:var(--gold);background:linear-gradient(180deg,#166534,#064e3b);color:#fef08a;box-shadow:0 0 16px #facc1580,inset 0 0 8px #34d39959}.hg-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--gold);color:#111827;font-size:12px;font-weight:900}.hg-upg-row{padding:5px 6px;border-radius:6px;background:#0f172a8c;border-left:3px solid var(--cyan);margin-bottom:5px}.hg-upg-row.human{border-left-color:#60a5fa}.hg-upg-row.elf{border-left-color:#34d399}.hg-upg-row.beastkin{border-left-color:#a3e635}.hg-upg-head{display:flex;justify-content:space-between;font-size:11px;font-weight:700;margin-bottom:4px}.hg-upg-btns{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.hg-upg-btn{padding:3px 2px;font-size:10px;font-weight:700;border-radius:4px;border:1px solid rgba(148,163,184,.25);background:#1e293b;color:#e2e8f0;cursor:pointer;line-height:1.15}.hg-upg-btn:hover:not(:disabled){background:#334155;border-color:var(--gold);color:#fef08a}.hg-upg-btn:disabled{opacity:.32;cursor:not-allowed}.hg-poker-dock{position:fixed;bottom:10px;left:50%;transform:translate(-54%);width:min(640px,calc(100vw - 290px));background:#0e0c18f0;border:2px solid rgba(250,204,21,.45);border-radius:12px;padding:10px 14px;box-shadow:0 12px 36px #000000c7;pointer-events:auto;z-index:28}.hg-poker-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;font-weight:700}.hg-cards-row{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:8px}.hg-card{position:relative;height:112px;border-radius:8px;background:linear-gradient(160deg,#1f1b33,#131120);border:2px solid #475569;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:transform .1s ease,border-color .12s ease,box-shadow .12s ease}.hg-card.has-art{background:#100e1b;padding-bottom:18px}.hg-card-art{width:60px;height:84px;object-fit:none}.hg-card.red{border-color:#f87171;background:linear-gradient(160deg,#3b1420,#1c0c14);color:#fca5a5}.hg-card.black{border-color:#94a3b8;background:linear-gradient(160deg,#1e2436,#0f1320);color:#e2e8f0}.hg-card:hover:not(.used){transform:translateY(-4px);box-shadow:0 6px 16px #facc1559;border-color:var(--gold)}.hg-card.used{opacity:.72;cursor:default}.hg-card-rank{font-size:24px;font-weight:900;line-height:1}.hg-card-suit{font-size:26px;line-height:1.05}.hg-card-tag{position:absolute;bottom:4px;font-size:10px;font-weight:700;padding:1px 6px;border-radius:4px;background:#0000008c;color:#fef08a}.hg-card.used .hg-card-tag{color:#94a3b8}.hg-preview-box{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;background:#1e1b2ee6;border:1px solid rgba(148,163,184,.25);font-size:12px}.hg-hints{margin-top:5px;font-size:11px;color:#fde047}.hg-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#05040ac2;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;pointer-events:auto;z-index:60}.hg-modal{width:min(760px,94vw);max-height:88vh;background:#141222;border:2px solid rgba(250,204,21,.5);border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 64px #000000d9}.hg-modal-forge{width:min(880px,95vw);max-height:94vh}.hg-modal-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#1d1930;border-bottom:1px solid var(--panel-border)}.hg-modal-tabs{display:flex;gap:6px;padding:8px 14px;background:#171426;border-bottom:1px solid var(--panel-border)}.hg-tab-btn{padding:6px 12px;border-radius:6px;border:1px solid rgba(148,163,184,.28);background:#221e36;color:var(--text-muted);font-size:12px;font-weight:700;cursor:pointer}.hg-tab-btn.active{background:linear-gradient(180deg,#eab308,#b45309);border-color:#fef08a;color:#111827}.hg-modal-body{padding:12px 14px;overflow-y:auto;flex:1}.hg-forge-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}.hg-race-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.hg-page-summary{font-size:11.5px;color:#94a3b8;white-space:nowrap}.hg-page-summary strong{color:#fef08a}.hg-pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(148,163,184,.22)}.hg-page-numbers{display:flex;align-items:center;gap:6px}.hg-page-btn{position:relative;min-width:32px;height:30px;padding:0 8px;border-radius:6px;border:1px solid rgba(148,163,184,.32);background:#221e36;color:#cbd5e1;font-size:12px;font-weight:800;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease}.hg-page-btn:hover{background:#332e4f;border-color:#ffffff80;color:#fff}.hg-page-btn.active{background:linear-gradient(180deg,#eab308,#b45309);border-color:#fef08a;color:#111827}.hg-page-btn.has-ready:not(.active){border-color:#facc15a6;color:#fef08a}.hg-page-dot{position:absolute;top:3px;right:3px;width:5px;height:5px;border-radius:50%;background:#34d399;box-shadow:0 0 5px #34d399}.hg-page-btn.active .hg-page-dot{background:#111827;box-shadow:none}.hg-page-nav{padding:5px 12px;font-size:11.5px}.hg-race-pill{padding:4px 10px;border-radius:999px;border:1px solid rgba(148,163,184,.3);background:#1e1b2ed9;color:#cbd5e1;font-size:11.5px;font-weight:700;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease}.hg-race-pill:hover{border-color:#ffffff80;color:#fff}.hg-race-pill.active{background:#facc1533;border-color:var(--gold);color:#fef08a}.hg-race-pill.human.active{background:#3b82f640;border-color:#60a5fa;color:#bfdbfe}.hg-race-pill.elf.active{background:#10b98140;border-color:#34d399;color:#a7f3d0}.hg-race-pill.beastkin.active{background:#84cc1638;border-color:#a3e635;color:#ecfccb}.hg-recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hg-recipe-card{background:#1b182d;border:1px solid rgba(148,163,184,.25);border-radius:8px;padding:6px 8px;display:flex;flex-direction:column;gap:5px}.hg-recipe-card.craftable{border-color:#facc15b3;box-shadow:0 0 12px #facc1529}.hg-recipe-top{display:flex;align-items:center;gap:7px}.hg-recipe-row1{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 7px;border-radius:6px;background:#0a0912a6;border:1px solid rgba(148,163,184,.16)}.hg-recipe-row1.dimmed{opacity:.48}.hg-coin-slots{display:flex;align-items:center;gap:4px}.hg-coin-slot{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:2px solid #475569;background:#0f172a;opacity:.38;filter:grayscale(.8);cursor:pointer;transition:border-color .12s ease,transform .08s ease,opacity .12s ease,box-shadow .12s ease}.hg-coin-slot:hover{opacity:1;filter:none;border-color:#fef08a;transform:scale(1.08);box-shadow:0 0 10px #facc158c}.hg-coin-slot.lit{opacity:1;filter:none;border-color:var(--gold);box-shadow:0 0 10px #facc15b3}.hg-coin-pill-btn{cursor:pointer;transition:border-color .12s ease,box-shadow .12s ease}.hg-coin-pill-btn:hover{border-color:var(--gold);box-shadow:0 0 8px #facc1573}#hg-coin-guide-slot{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:80}.hg-coin-guide-popover{position:fixed;width:356px;max-width:calc(100vw - 24px);max-height:calc(100vh - 60px);overflow-y:auto;background:linear-gradient(180deg,#1b1730,#120f21);border:2px solid var(--gold);border-radius:12px;padding:11px 13px;box-shadow:0 18px 48px #000000e0,0 0 22px #facc1547;pointer-events:auto;font-size:12px;color:var(--text-main)}.hg-cg-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid rgba(148,163,184,.22)}.hg-cg-method{background:#0f172ab8;border:1px solid rgba(148,163,184,.22);border-radius:8px;padding:8px 9px;margin-bottom:7px}.hg-cg-method-head{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:4px}.hg-cg-example-row{display:flex;align-items:center;gap:5px;margin-top:6px;flex-wrap:wrap}.hg-mini-card{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:24px;padding:0 5px;border-radius:5px;font-family:Consolas,monospace;font-size:12px;font-weight:900;border:1.5px solid #64748b;background:#1e293b}.hg-mini-card.red{background:#3b1320;border-color:#f87171;color:#fecaca}.hg-mini-card.black{background:#171d2e;border-color:#94a3b8;color:#e2e8f0}.hg-cg-heroes{display:flex;flex-direction:column;gap:4px;margin-top:6px}.hg-cg-hero-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 7px;border-radius:6px;background:#1e1b2ebf;border:1px solid rgba(148,163,184,.16);font-size:11px}.hg-cg-tip{margin-top:8px;padding:6px 8px;border-radius:7px;background:#34d3991a;border:1px solid rgba(52,211,153,.3);color:#a7f3d0;font-size:11px;line-height:1.4}.hg-normal-merge-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 8px;border-radius:6px;border:1px solid rgba(148,163,184,.22);background:#0f172a99;color:var(--text-muted);font-size:11px;font-weight:700;cursor:not-allowed;opacity:.45}.hg-normal-merge-btn.ready{opacity:1;cursor:pointer;color:#ecfdf5;background:linear-gradient(90deg,#065f46e6,#14532de6);border-color:var(--emerald);box-shadow:0 0 14px #34d39980}.hg-normal-merge-btn.ready:hover{filter:brightness(1.12)}.hg-sell-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 9px;border-radius:7px;background:#181527e6;border:1px solid rgba(148,163,184,.2);margin-bottom:6px;font-size:12px}.hg-inspector{position:fixed;bottom:12px;left:12px;width:240px;background:var(--panel-bg);border:1px solid rgba(56,189,248,.45);border-radius:10px;padding:8px 10px;font-size:11.5px;pointer-events:auto;z-index:26}.hg-telemetry{position:fixed;top:48px;left:10px;background:#020617e6;border:1px solid rgba(52,211,153,.45);border-radius:8px;padding:7px 9px;font-family:Consolas,monospace;font-size:10.5px;color:#6ee7b7;line-height:1.42;pointer-events:auto;z-index:50;width:242px}.hg-toast-stack{position:fixed;top:262px;left:10px;width:244px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;pointer-events:none;z-index:75}.hg-toast{padding:6px 10px;border-radius:7px;font-size:11.5px;font-weight:700;line-height:1.35;max-width:100%;background:#0f172af0;border:1px solid rgba(148,163,184,.4);color:#f8fafc;box-shadow:0 6px 18px #0000008c}.hg-gold-svg{display:inline-block;vertical-align:-2px;flex-shrink:0}@media(max-width:1024px){.hg-right-dock{width:212px;right:6px}.hg-poker-dock{width:min(560px,calc(100vw - 236px));transform:translate(-56%)}.hg-quest-bar,.hg-forecast-strip{left:224px;right:224px}.hg-toast-stack{width:210px}}.hg-toast.gold{border-color:var(--gold);color:#fef08a;background:#422006f0}.hg-toast.good{border-color:var(--emerald);color:#a7f3d0;background:#064e3beb}.hg-toast.warn{border-color:#fb923c;color:#fed7aa;background:#431407eb}.hg-toast.danger{border-color:var(--crimson);color:#fecaca;background:#7f1d1df0}
