@font-face{font-family:BlambotFXProTightBB;src:url(/ha/fonts/BlambotFXProTightBB.ttf)format("truetype");font-weight:400 900;font-style:normal;font-display:swap}@font-face{font-family:BlambotFXProLightBB;src:url(/ha/fonts/BlambotFXProLightBB.ttf)format("truetype");font-weight:400 700;font-style:normal;font-display:swap}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ha-board-bg:url(/ha/remastered/board-bg.png);--ha-header-bar:url(/ha/remastered/header-bar.png);--ha-tile-rack:url(/ha/remastered/tile-rack.png);--ha-btn-submit:url(/ha/remastered/btn-submit.png);--ha-btn-submit-pressed:url(/ha/remastered/btn-submit-pressed.png);--ha-btn-submit-dis:url(/ha/remastered/btn-submit-dis.png);--ha-btn-back:url(/ha/remastered/btn-back.png);--ha-btn-help:url(/ha/remastered/btn-help.png);--ha-btn-settings:url(/ha/remastered/btn-settings.png);--ha-btn-sound-on:url(/ha/remastered/btn-sound-on.png);--ha-btn-sound-off:url(/ha/remastered/btn-sound-off.png);--ha-vs-badge:url(/ha/remastered/vs-badge.png);--ha-ap-wheel-bg:url(/ha/remastered/ap-wheel-bg.png);--ha-ap-gem:url(/ha/remastered/ap-gem.png);--ha-replay-bar:url(/ha/remastered/replay-bar.png);--ha-hp-bg:url(/ha/remastered/hp-bg.png);--ha-hp-bar:url(/ha/remastered/hp-bar.png);--ha-reticle-attack:url(/ha/remastered/reticle-attack.png);--ha-reticle-ally:url(/ha/remastered/reticle-ally.png);--ha-door-closed:url(/ha/remastered/door-closed.png);--ha-door-open:url(/ha/remastered/door-open.png);--ha-banner-me:url(/ha/remastered/player-banner-me.png);--ha-banner-foe:url(/ha/remastered/player-banner-foe.png);--ha-games-row:url(/ha/remastered/games-row.png);--ha-stat-hp:url(/ha/remastered/stat-hp.png);--ha-stat-atk:url(/ha/remastered/stat-atk.png);--ha-stat-def:url(/ha/remastered/stat-def.png);--ha-stat-move:url(/ha/remastered/stat-move.png);--ha-stat-range:url(/ha/remastered/stat-range.png);--slate-0:#1b242d;--slate-1:#25313d;--slate-2:#344454;--slate-3:#4a5c6d;--slate-border:#111820;--slate-highlight:#ffffff29;--stone-1:#575346;--stone-2:#3a372e;--stone-3:#24221c;--night:#162238;--night-2:#1e314f;--night-3:#294166;--sky-top:#1b2c47;--sky-bottom:#121d30;--paper:#fbf5e6;--paper-2:#efe4c8;--paper-3:#e2d1a8;--panel:linear-gradient(180deg, #fffdf7 0%, #f7edd4 100%);--panel-dark:linear-gradient(180deg, #243756 0%, #19273f 100%);--bevel:#d4bf94;--trim:#8a6632;--ink:#1c2838;--ink-2:#4a5a70;--cream:#fdf8ec;--cream-2:#cbd6e6;--hair:#1c283824;--hair-2:#1c283842;--gold:#f59e0b;--gold-hi:#fcd34d;--gold-deep:#b45309;--brass-ink:#2b1803;--me:#2563eb;--me-hi:#60a5fa;--me-ink:#1d4ed8;--enemy:#ea580c;--enemy-hi:#fb923c;--enemy-ink:#c2410c;--heal:#16a34a;--heal-hi:#4ade80;--heal-ink:#15803d;--danger:#dc2626;--danger-deep:#991b1b;--mana:#0ea5e9;--mana-hi:#7dd3fc;--focus:#fbbf24;--radius:12px;--radius-sm:8px;--tap:42px;--safe-t:env(safe-area-inset-top,0px);--safe-r:env(safe-area-inset-right,0px);--safe-b:env(safe-area-inset-bottom,0px);--safe-l:env(safe-area-inset-left,0px);--hud-top-h:52px;--hud-strip-h:32px;--hud-bot-h:84px;--sq-btn:44px;--display:"BlambotFXProTightBB", "Lilita One", "Nunito", "Avenir Next", system-ui, -apple-system, sans-serif;--display-light:"BlambotFXProLightBB", "BlambotFXProTightBB", "Nunito", "Avenir Next", system-ui, -apple-system, sans-serif;--sans:"Nunito", "Avenir Next", system-ui, -apple-system, sans-serif;font-family:var(--sans);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-size:16px;font-weight:700;line-height:1.35}:root[data-art-mode=classic]{--ha-board-bg:url(/ha/classic/board-bg.png);--ha-header-bar:url(/ha/classic/header-bar.png);--ha-tile-rack:url(/ha/classic/tile-rack.png);--ha-btn-submit:url(/ha/classic/btn-submit.png);--ha-btn-submit-pressed:url(/ha/classic/btn-submit-pressed.png);--ha-btn-submit-dis:url(/ha/classic/btn-submit-dis.png);--ha-btn-back:url(/ha/classic/btn-back.png);--ha-btn-help:url(/ha/classic/btn-help.png);--ha-btn-settings:url(/ha/classic/btn-settings.png);--ha-btn-sound-on:url(/ha/classic/btn-sound-on.png);--ha-btn-sound-off:url(/ha/classic/btn-sound-off.png);--ha-vs-badge:url(/ha/classic/vs-badge.png);--ha-ap-wheel-bg:url(/ha/classic/ap-wheel-bg.png);--ha-ap-gem:url(/ha/classic/ap-gem.png);--ha-replay-bar:url(/ha/classic/replay-bar.png);--ha-hp-bg:url(/ha/classic/hp-bg.png);--ha-hp-bar:url(/ha/classic/hp-bar.png);--ha-reticle-attack:url(/ha/classic/reticle-attack.png);--ha-reticle-ally:url(/ha/classic/reticle-ally.png);--ha-door-closed:url(/ha/classic/door-closed.png);--ha-door-open:url(/ha/classic/door-open.png);--ha-banner-me:url(/ha/classic/player-banner-me.png);--ha-banner-foe:url(/ha/classic/player-banner-foe.png);--ha-games-row:url(/ha/classic/games-row.png);--ha-stat-hp:url(/ha/classic/stat-hp.png);--ha-stat-atk:url(/ha/classic/stat-atk.png);--ha-stat-def:url(/ha/classic/stat-def.png);--ha-stat-move:url(/ha/classic/stat-move.png);--ha-stat-range:url(/ha/classic/stat-range.png)}@media (height<=540px) and (orientation:landscape){:root,:root[data-art-mode=remastered],:root[data-art-mode=classic]{--hud-top-h:34px;--hud-strip-h:22px;--hud-bot-h:52px;--sq-btn:34px;--tap:32px}}*{box-sizing:border-box}html,body{background:var(--slate-0);height:100%;color:var(--cream);margin:0}body{overscroll-behavior:none;background:radial-gradient(80% 60% at 50% 35%,#4a5c6d47 0%,#0000 70%),linear-gradient(#1a232d 0%,#10161d 100%) fixed}#root{min-height:100%}h1,h2,h3{line-height:1.1;font-family:var(--display);font-synthesis:none;letter-spacing:.01em;margin:0;font-weight:400}h1{font-size:1.85rem}h2{font-size:1.25rem}p{margin:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.muted{color:var(--cream-2)}.small{font-size:.85rem}.error{color:#fca5a5;font-weight:800}.me-text{color:var(--me-ink)}.foe-text{color:var(--enemy-ink)}.row{flex-wrap:wrap;gap:8px;display:flex}.row>.btn{flex:1}.stack{flex-direction:column;gap:12px;display:flex}.num,.hp-num,.stats,.chip,.pips,.stat-grid dd,.stat-pill,.stat-chip{font-variant-numeric:tabular-nums lining-nums}.btn{appearance:none;min-height:var(--tap);color:var(--ink);font-family:var(--display);font-synthesis:none;letter-spacing:.015em;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;background:linear-gradient(#fff 0%,#f3e8ce 100%);border:2px solid #b89f6d;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-size:.98rem;font-weight:400;text-decoration:none;transition:transform 80ms,box-shadow 80ms,background .12s;display:inline-flex;box-shadow:inset 0 1px #fff,0 3px #947843,0 5px 10px #0a122038}.btn:hover:not(:disabled){background:linear-gradient(#fff 0%,#f9f1de 100%);border-color:#9e8147}.btn:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px #fff,0 1px #947843,0 2px 4px #0a122033}.btn:disabled{opacity:.45;cursor:default;box-shadow:none}.btn.primary{color:var(--brass-ink);text-shadow:0 1px #ffffff73;background:linear-gradient(#fde068 0%,#f59e0b 58%,#d97706 100%);border-color:#9a4406;box-shadow:inset 0 1px #ffffffa6,0 4px #92400e,0 6px 14px #0f172a52}.btn.primary:hover:not(:disabled){background:linear-gradient(#fef08a 0%,#fbbf24 58%,#ea580c 100%)}.btn.primary:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px #ffffffa6,0 2px #92400e}.btn.danger{color:#fff;text-shadow:0 1px 2px #00000059;background:linear-gradient(#f87171 0%,#dc2626 60%,#b91c1c 100%);border-color:#7f1d1d;box-shadow:inset 0 1px #ffffff59,0 3px #7f1d1d,0 5px 10px #0a122040}.btn.big{min-height:50px;padding:0 22px;font-size:1.12rem}.btn.small{border-radius:8px;min-height:34px;padding:0 12px;font-size:.88rem}.btn.link{box-shadow:none;color:var(--me-ink);font-family:var(--sans);background:0 0;border-color:#0000;font-weight:800;text-decoration:underline}.btn.link:hover:not(:disabled){color:var(--me);background:0 0}.btn.icon{width:var(--tap);padding:0;font-size:1.35rem;line-height:1}.btn.on{border-color:var(--heal-ink);color:var(--heal-ink);background:linear-gradient(#dcfce7 0%,#bbf7d0 100%)}.btn.inline{min-height:0;box-shadow:none;color:var(--me-ink);font-size:inherit;background:0 0;border:none;padding:0;text-decoration:underline;display:inline}.btn:focus-visible,.ha-sq-btn:focus-visible,.tile:focus-visible,.card-btn:focus-visible,.game-row:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.ha-sq-btn{width:var(--sq-btn);height:var(--sq-btn);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;filter:drop-shadow(0 2px 4px #0000008c);background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:none;padding:0;transition:transform .11s}.ha-sq-btn:hover:not(:disabled){transform:translateY(-1px)scale(1.03)}.ha-sq-btn:active:not(:disabled){transform:translateY(1px)scale(.95)}.ha-sq-btn:disabled{opacity:.45;cursor:default}.ha-sq-btn.back{background-image:var(--ha-btn-back)}.ha-sq-btn.settings{background-image:var(--ha-btn-settings)}.ha-sq-btn.help{background-image:var(--ha-btn-help)}.ha-sq-btn.sound{background-image:var(--ha-btn-sound-on)}.ha-sq-btn.sound.muted{background-image:var(--ha-btn-sound-off);filter:drop-shadow(0 2px 4px #0000008c)grayscale(.5)}.ha-slate-panel{border-radius:var(--radius);color:var(--cream);background:linear-gradient(#3c4d5e 0%,#24303c 100%);border:2px solid #121921;box-shadow:inset 0 1px #fff3,0 4px 14px #0000008c}.ha-header-plate{background:var(--ha-header-bar) center / 100% 100% no-repeat}.input{width:100%;min-height:var(--tap);color:var(--ink);font:inherit;background:#fff;border:2px solid #c2ab7c;border-radius:10px;padding:0 14px;font-size:16px;font-weight:700;box-shadow:inset 0 2px 4px #1c283814}.input::placeholder{color:#8795a8}.input:focus{border-color:var(--me);outline:none;box-shadow:0 0 0 3px #2563eb40}.input.small{min-height:36px;color:var(--ink-2)}.select-mini{background:var(--slate-1);border:1px solid var(--slate-3);color:#fff;cursor:pointer;border-radius:6px;min-width:0;max-width:100%;padding:4px 8px;font-family:inherit;font-size:.78rem}.card,.paper,.info,.hint,.guide-entry,.hover-tip,.toast,dialog.sheet{background:var(--panel);color:var(--ink);border:2px solid var(--bevel);border-radius:14px;box-shadow:inset 0 1px #fff,0 4px #a68b56,0 12px 28px #080f1c5c}.card,.paper{padding:18px}.card .muted,.paper .muted,dialog.sheet .muted,.info .muted,.guide-entry .muted,dialog.guide-sheet .guide-entry .muted,.legend .muted,.game-row .muted{color:var(--ink-2)}.card .error,.paper .error,dialog.sheet .error{color:var(--danger)}.badge{color:var(--brass-ink);font-family:var(--display);letter-spacing:.02em;white-space:nowrap;background:linear-gradient(#fde068 0%,#f59e0b 100%);border:1.5px solid #b45309;border-radius:999px;align-items:center;padding:4px 12px;font-size:.82rem;font-weight:400;display:inline-flex;box-shadow:0 2px #b4530959}.badge.quiet{color:var(--ink-2);box-shadow:none;background:#fff;border-color:#cbd5e1}.badge.win{color:#fff;background:linear-gradient(#4ade80 0%,#16a34a 100%);border-color:#15803d}.chip,.tag{color:var(--ink);font-family:var(--sans);white-space:nowrap;background:#fff;border:1.5px solid #1c283833;border-radius:999px;align-items:center;padding:2px 8px;font-size:.75rem;font-weight:800;display:inline-flex}.tag.warn{background:var(--danger);border-color:var(--danger-deep);color:#fff}.mock-flag{z-index:50;top:calc(var(--safe-t) + 2px);letter-spacing:.1em;background:var(--gold);color:var(--brass-ink);opacity:.85;pointer-events:none;border-radius:999px;padding:1px 7px;font-size:10px;font-weight:900;position:fixed;left:50%;transform:translate(-50%)}.deco-rule{color:var(--gold-hi);align-items:center;gap:8px;display:flex}.deco-rule:before,.deco-rule:after{content:"";background:linear-gradient(90deg,#0000,#fcd34d80,#0000);flex:1;height:2px}dialog.sheet{width:min(92vw,480px);max-width:100%;max-height:calc(100dvh - 20px - var(--safe-t) - var(--safe-b));overscroll-behavior:contain;border:3px solid #c8b082;flex-direction:column;gap:12px;margin:auto;padding:20px 22px;display:flex;overflow:auto;box-shadow:inset 0 1px #fff,0 6px #8a6d3b,0 24px 60px #050a14a6}dialog.sheet:not([open]){display:none}dialog.sheet::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0a12209e}dialog.sheet h2{color:var(--ink);font-size:1.4rem}dialog.sheet .btn.link{color:var(--ink-2)}@media (height<=540px){dialog.sheet{gap:8px;padding:14px 16px}}.menu-graphics-box{background:#281e140f;border:1.5px solid #d4bf94;border-radius:10px;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.menu-graphics-label{font-family:"BlambotFXProTightBB", var(--display);color:var(--ink);justify-content:space-between;align-items:center;font-size:1.05rem;display:flex}.menu-graphics-sub{font-family:var(--sans);color:var(--ink-2);font-size:.78rem;font-weight:400}.art-mode-options{gap:8px;display:flex}.art-mode-choice{color:var(--ink);font-family:var(--sans);cursor:pointer;background:linear-gradient(#fffdfa 0%,#f5ebd3 100%);border:2px solid #c5ae7e;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:8px;padding:10px 12px;font-size:.9rem;font-weight:700;transition:all .14s;display:flex;box-shadow:0 2px 4px #0000001a}.art-mode-choice:hover{border-color:#f59e0b;transform:translateY(-1px)}.art-mode-choice.active{color:#78350f;background:linear-gradient(#fef3c7 0%,#fde68a 100%);border-color:#d97706;box-shadow:inset 0 1px #fff,0 0 0 2px #f59e0b66,0 3px 6px #00000026}.art-mode-choice .choice-badge{font-family:"BlambotFXProTightBB", var(--display);color:#f8fafc;background:#334155;border-radius:4px;padding:2px 6px;font-size:.8rem;font-weight:800;line-height:1;display:inline-block}.art-mode-choice.active .choice-badge{color:#fffbeb;background:#b45309}.invite-code{font-family:var(--display);letter-spacing:.22em;text-align:center;border:2.5px dashed var(--gold-deep);color:var(--ink);-webkit-user-select:all;user-select:all;font-variant-numeric:tabular-nums;background:#fff;border-radius:12px;padding:8px 12px;font-size:2rem}.note{color:var(--heal-ink);font-weight:800}.preview-lines{font-variant-numeric:tabular-nums;flex-direction:column;gap:5px;margin:0;padding-left:20px;font-weight:800;display:flex}.result{text-align:center;align-items:center}dialog.sheet .result-title,.result-title{text-shadow:0 2px #1c283826;font-size:clamp(2rem,6vh,2.8rem)}.result.won .result-title{color:var(--me-ink)}.result.lost .result-title{color:var(--enemy-ink)}.result .btn{width:100%}.details-head{align-items:center;gap:14px;display:flex}.details-head .stats{white-space:normal;color:var(--ink-2);margin-top:2px;font-size:.86rem;font-weight:800}.buff-list{color:var(--heal-ink);margin:0;padding-left:18px;font-weight:700}.hover-tip{z-index:60;pointer-events:none;flex-direction:column;gap:3px;max-width:240px;padding:9px 12px;font-size:.82rem;line-height:1.3;display:flex;position:fixed}.hover-tip strong{font-family:var(--display);font-size:.96rem;font-weight:400}.hover-tip .tip-stats{color:var(--ink-2);font-size:.78rem;font-weight:800}@media (hover:none){.hover-tip{display:none}}.toast{z-index:40;left:50%;top:calc(var(--safe-t) + 12px);border-left:6px solid var(--gold);width:max-content;max-width:min(75vw,480px);padding:9px 16px;font-size:.92rem;font-weight:800;line-height:1.3;animation:.18s ease-out toast-in;position:fixed;transform:translate(-50%)}.toast.error{border-color:#fecaca;border-left-color:var(--danger);color:#7f1d1d;background:#fef2f2}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-10px)}}.crew-me{--pc-coat:#2563eb;--pc-coat-2:#1d4ed8;--pc-trim:#fef3c7;--pc-pants:#334155;--pc-hat:#cbd5e1;--pc-band:#2563eb;--pc-base:#2563eb;--pc-ink:#1c2838}.crew-foe{--pc-coat:#ea580c;--pc-coat-2:#c2410c;--pc-trim:#ffedd5;--pc-pants:#431407;--pc-hat:#cbd5e1;--pc-band:#ea580c;--pc-base:#ea580c;--pc-ink:#1c2838}.pc{display:block;overflow:visible}.pc-figure,.pc-body,.pc-head,.pc-hat,.pc-arm,.pc-prop,.pc-smoke,.pc-shutter{transform-box:fill-box}.pc-figure,.pc-body{transform-origin:50% 100%}.pc-hat{transform-origin:15% 100%}.pc-arm{transform-origin:8% 40%}.pc-shutter{transform-origin:50% 0}.crew-dot{background:radial-gradient(circle at 35% 35%, var(--me-hi), var(--me));width:13px;height:13px;box-shadow:0 0 0 1.5px var(--me-ink);border:2px solid #fff;border-radius:50%;flex:none;display:inline-block}.crew-dot.foe{background:radial-gradient(circle at 35% 35%, var(--enemy-hi), var(--enemy));box-shadow:0 0 0 1.5px var(--enemy-ink);border-color:#fff;border-radius:3px;transform:rotate(45deg)scale(.88)}.framed{background:radial-gradient(circle at 50% 30%,#fff,#e6edf5);border:2.5px solid #94a3b8;border-radius:10px;flex:none;place-items:center;display:inline-grid}.framed.me{border:3px solid var(--me);background:radial-gradient(circle at 50% 30%,#fff,#dbeafe);border-radius:50%}.framed.foe{border:3px solid var(--enemy);background:radial-gradient(circle at 50% 30%,#fff,#ffedd5);border-radius:6px}.framed.downed .pc-figure{transform:translate(18px,3px)rotate(-80deg)scale(.85)}.framed.downed{filter:grayscale(.7)}::view-transition-old(root){animation-duration:.18s}::view-transition-new(root){animation-duration:.18s}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.arena-stage{isolation:isolate;contain:layout paint;background:radial-gradient(90% 85% at 50% 48%,#635f4f 0%,#444036 58%,#26241e 100%);flex:1;place-items:center;width:100%;height:100%;display:grid;position:relative;overflow:hidden;container-type:size}.board-stage{--avail-w:calc(100cqw - max(16px, var(--safe-l) + var(--safe-r)));--top-reserve:calc(max(4px, var(--safe-t)) + var(--hud-top-h) + 2px + var(--hud-strip-h) + 2px);--bot-reserve:calc(max(2px, calc(var(--safe-b) * .45)) + var(--hud-bot-h) + 2px);--avail-h:calc(100cqh - var(--top-reserve) - var(--bot-reserve));--grid-w:max(220px, min(var(--avail-w), calc(var(--avail-h) * 1.9843)));--grid-h:calc(var(--grid-w) / 1.9843);width:var(--grid-w);height:var(--grid-h);transform:translateY(calc((var(--top-reserve) - var(--bot-reserve)) * .5));position:relative}.board-bg-layer{background-image:var(--ha-board-bg);pointer-events:none;z-index:0;background-position:0 0;background-repeat:no-repeat;background-size:100% 100%;width:114.679%;height:170.68%;position:absolute;top:-31.11%;left:-7.339%;-webkit-mask-image:linear-gradient(90deg,#0000 0%,#000 7% 93%,#0000 100%);mask-image:linear-gradient(90deg,#0000 0%,#000 7% 93%,#0000 100%)}[data-art-mode=classic] .board-bg-layer{background-image:url(/ha/classic/board-bg.png)}[data-art-mode=remastered] .board-bg-layer{background-image:url(/ha/remastered/board-bg.png)}.board-citadel.left,.board-citadel.right,.frame-sunburst{display:none}.board{z-index:1;aspect-ratio:1.9843;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#3a362c59;border-radius:3px;gap:2px;width:100%;height:100%;padding:0;display:grid;position:relative;box-shadow:0 0 0 1.5px #2a271fa6,inset 0 1px 4px #00000059}.board:after{content:"";z-index:1;pointer-events:none;background:radial-gradient(at 32% 4%,#ffd26e29,#0000 38%),radial-gradient(at 68% 4%,#ffd26e29,#0000 38%),radial-gradient(#0000 65%,#0f0e0a2e);border-radius:3px;position:absolute;inset:0}.tile{appearance:none;font:inherit;cursor:pointer;touch-action:none;background:linear-gradient(#e1dcc638 0%,#c3bea547 100%);border:none;border-radius:2px;min-width:0;min-height:0;margin:0;padding:0;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffff61,inset 0 -2px #4440346b,inset 0 0 0 .5px #ffffff38}.board>.tile.k-plain:nth-of-type(2n){background:linear-gradient(#a8a38a47 0%,#8e897257 100%);box-shadow:inset 0 1px #ffffff47,inset 0 -2px #38342a7a,inset 0 0 0 .5px #ffffff29}.tile:disabled{cursor:default}.tile.flowers:before,.tile.bush:before,.tile.bush:after{display:none}.tile.k-spawn{background:radial-gradient(circle,#38bdf838 0%,#c8c2ac52 72%);box-shadow:inset 0 1px #ffffff73,inset 0 -2px #44403480}.tile.k-spawn.mine{box-shadow:inset 0 0 0 2px #2563eba6, inset 0 -2px 0 var(--me-ink)}.tile.k-spawn.theirs{box-shadow:inset 0 0 0 2px #ea580ca6, inset 0 -2px 0 var(--enemy-ink)}.tile.k-power{background:radial-gradient(circle,#fb923c3d 0%,#c3bca24d 74%)}.tile.k-ward{background:radial-gradient(circle,#38bdf838 0%,#c3bca24d 74%)}.tile.k-siege{background:radial-gradient(circle,#7dd3fc42 0%,#c3bca24d 74%)}.tile.k-blocked{cursor:not-allowed;background:radial-gradient(circle at 50% 55%,#47556961 0%,#948e7859 75%)}.tile-rune{pointer-events:none;filter:drop-shadow(0 2px 3px #00000059);place-items:center;width:74%;height:74%;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tile-glyph{pointer-events:none;width:100%;height:100%;display:block}.tile.k-spawn .tile-rune,.tile.k-blocked .tile-rune{width:82%;height:82%}.tile-sign{clip:rect(0, 0, 0, 0);white-space:nowrap;opacity:0;pointer-events:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tile.sel{box-shadow:inset 0 0 0 3px var(--focus), inset 0 -2px 0 var(--gold-deep);background-color:#facc1547}.tile.over{background-color:#ffffff52;box-shadow:inset 0 0 0 3.5px #fff}.tile.hl-move,.tile.hl-deploy{background:radial-gradient(circle,#86efac7a 0%,#22c55e52 100%);box-shadow:inset 0 0 0 2.5px #86efac,inset 0 -2px #15803d}.tile.hl-move:after,.tile.hl-deploy:after{content:"";z-index:2;background:#ffffffe0;border-radius:50%;position:absolute;inset:36%;box-shadow:0 0 0 2px #22c55e,0 2px 5px #00000059}.tile.hl-item{background:radial-gradient(circle,#fde04773 0%,#eab30847 100%);box-shadow:inset 0 0 0 3px #fde047,inset 0 -2px #ca8a04}.tile.hl-deploy,.tile.hl-item{animation:1.4s ease-in-out infinite glow}.tile.hl-attack{background:radial-gradient(circle,#f871716b 0%,#dc262647 100%);box-shadow:inset 0 0 0 3px #ef4444,inset 0 -2px #991b1b}.tile.hl-heal{background:radial-gradient(circle,#4ade8073 0%,#16a34a47 100%);box-shadow:inset 0 0 0 3px #22c55e,inset 0 -2px #15803d}.tile.hl-area{background:radial-gradient(circle,#fb923c7a 0%,#dc262659 100%);box-shadow:inset 0 0 0 3px #ef4444,inset 0 -2px #991b1b}.tile.hl-focus{box-shadow:inset 0 0 0 3.5px var(--focus);filter:brightness(1.15)}@keyframes glow{0%,to{opacity:.82}50%{opacity:1}}.pieces,.fx-layer{pointer-events:none;position:absolute;inset:0}.pieces{z-index:2}.fx-layer{z-index:3}.piece-slot,.fx-slot{place-items:center;display:grid;position:absolute;overflow:visible}.fx-slot{pointer-events:none}.unit,.banner{place-items:center;width:100%;height:100%;display:grid;position:relative;overflow:visible}.unit-art,.banner-art{filter:drop-shadow(0 5px 4px #0a0f1c94);pointer-events:none;width:125%;height:125%;transform:translateY(-12%)}.unit.downed{filter:grayscale(.85)brightness(.65);opacity:.7}.unit.downed .pc-figure{transform:translate(6px,12px)rotate(-45deg)scale(.85)}.unit.dragging{opacity:.35;filter:grayscale(.45);transform:scale(.95)}.stars{color:#fde047;text-shadow:0 0 3px #000;justify-content:space-between;align-items:center;width:60%;height:22%;font-size:clamp(9px,2.3cqmin,16px);animation:1.6s linear infinite orbit;display:flex;position:absolute;top:18%;left:50%;transform:translate(-50%)}.stars i{font-style:normal}.stars i:nth-child(2){transform:translateY(-40%)}@keyframes orbit{0%,to{transform:translate(-50%)rotate(0)scaleX(1)}50%{transform:translate(-50%)rotate(0)scaleX(-1)}}.unit-name{display:none}.hp-gauge,.hp{z-index:5;pointer-events:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;display:flex;position:absolute;left:50%;transform:translate(-50%)}.unit-slot .hp-gauge,.unit-slot .hp{width:clamp(52px,80%,64px);height:14px;top:-15px;bottom:auto}.banner-slot .hp-gauge,.banner-slot .hp{width:clamp(62px,86%,74px);height:15px;top:auto;bottom:2px}.hp-track{background:linear-gradient(#090e18 0%,#172235 100%);border:1.5px solid #2d3e58;border-radius:999px;width:100%;height:100%;transition:border-color .16s;position:relative;overflow:hidden;box-shadow:inset 0 2px 4px #000000e6,0 2px 6px #000000b3}.hp-gauge.me .hp-track{border-color:#3b82f6;box-shadow:inset 0 2px 4px #000000e6,0 0 6px #3b82f673,0 2px 6px #000000b3}.unit-slot:not(:has(.unit.foe)) .hp-track{border-color:#3b82f6;box-shadow:inset 0 2px 4px #000000e6,0 0 6px #3b82f673,0 2px 6px #000000b3}.banner-slot:not(:has(.banner.foe)) .hp-track{border-color:#3b82f6;box-shadow:inset 0 2px 4px #000000e6,0 0 6px #3b82f673,0 2px 6px #000000b3}.hp-gauge.foe .hp-track{border-color:#ef4444;box-shadow:inset 0 2px 4px #000000e6,0 0 6px #ef444473,0 2px 6px #000000b3}.unit-slot:has(.unit.foe) .hp-track{border-color:#ef4444;box-shadow:inset 0 2px 4px #000000e6,0 0 6px #ef444473,0 2px 6px #000000b3}.banner-slot:has(.banner.foe) .hp-track{border-color:#ef4444;box-shadow:inset 0 2px 4px #000000e6,0 0 6px #ef444473,0 2px 6px #000000b3}.hp-fill{border-radius:999px;height:100%;transition:width .35s cubic-bezier(.4,0,.2,1);position:absolute;top:0;bottom:0;left:0}.hp-gauge.me .hp-fill{background:linear-gradient(#4ade80 0%,#22c55e 50%,#15803d 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #22c55e99}.unit-slot:not(:has(.unit.foe)) .hp-fill{background:linear-gradient(#4ade80 0%,#22c55e 50%,#15803d 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #22c55e99}.banner-slot:not(:has(.banner.foe)) .hp-fill{background:linear-gradient(#4ade80 0%,#22c55e 50%,#15803d 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #22c55e99}.hp-gauge.me .hp-fill.mid{background:linear-gradient(#fde047 0%,#eab308 50%,#a16207 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #eab30899}.unit-slot:not(:has(.unit.foe)) .hp-fill.mid{background:linear-gradient(#fde047 0%,#eab308 50%,#a16207 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #eab30899}.banner-slot:not(:has(.banner.foe)) .hp-fill.mid{background:linear-gradient(#fde047 0%,#eab308 50%,#a16207 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #eab30899}.hp-gauge.me .hp-fill.lo{background:linear-gradient(#f87171 0%,#ef4444 50%,#991b1b 100%);animation:1.2s ease-in-out infinite alternate ha-hp-critical-pulse;box-shadow:inset 0 1px #ffffff8c,0 0 10px #ef4444cc}.unit-slot:not(:has(.unit.foe)) .hp-fill.lo{background:linear-gradient(#f87171 0%,#ef4444 50%,#991b1b 100%);animation:1.2s ease-in-out infinite alternate ha-hp-critical-pulse;box-shadow:inset 0 1px #ffffff8c,0 0 10px #ef4444cc}.banner-slot:not(:has(.banner.foe)) .hp-fill.lo{background:linear-gradient(#f87171 0%,#ef4444 50%,#991b1b 100%);animation:1.2s ease-in-out infinite alternate ha-hp-critical-pulse;box-shadow:inset 0 1px #ffffff8c,0 0 10px #ef4444cc}.hp-gauge.foe .hp-fill{background:linear-gradient(#f87171 0%,#ef4444 50%,#991b1b 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #ef444499}.unit-slot:has(.unit.foe) .hp-fill{background:linear-gradient(#f87171 0%,#ef4444 50%,#991b1b 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #ef444499}.banner-slot:has(.banner.foe) .hp-fill{background:linear-gradient(#f87171 0%,#ef4444 50%,#991b1b 100%);box-shadow:inset 0 1px #ffffff8c,0 0 8px #ef444499}.hp-gauge.foe .hp-fill.lo{background:linear-gradient(#fca5a5 0%,#dc2626 50%,#7f1d1d 100%);animation:1.2s ease-in-out infinite alternate ha-hp-critical-pulse;box-shadow:inset 0 1px #ffffff8c,0 0 10px #dc2626cc}.unit-slot:has(.unit.foe) .hp-fill.lo{background:linear-gradient(#fca5a5 0%,#dc2626 50%,#7f1d1d 100%);animation:1.2s ease-in-out infinite alternate ha-hp-critical-pulse;box-shadow:inset 0 1px #ffffff8c,0 0 10px #dc2626cc}.banner-slot:has(.banner.foe) .hp-fill.lo{background:linear-gradient(#fca5a5 0%,#dc2626 50%,#7f1d1d 100%);animation:1.2s ease-in-out infinite alternate ha-hp-critical-pulse;box-shadow:inset 0 1px #ffffff8c,0 0 10px #dc2626cc}@keyframes ha-hp-critical-pulse{0%,to{opacity:.8}50%{opacity:1}}.hp-gloss{pointer-events:none;background:linear-gradient(#ffffff73 0%,#ffffff0d 80%,#0000 100%);border-radius:999px 999px 0 0;height:48%;position:absolute;top:0;left:0;right:0}.hp-text{z-index:3;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.hp-num{box-shadow:none;font-family:"BlambotFXProTightBB", var(--display);letter-spacing:.04em;color:#fff;-webkit-text-stroke:2px #070b13;paint-order:stroke fill;text-shadow:0 1px 3px #000000e6,0 0 4px #000c;-webkit-user-select:none;user-select:none;pointer-events:none;background:0 0;border:none;padding:0;font-size:11px;font-weight:800;line-height:1;position:static;transform:none}@media (height<=540px){.unit-slot .hp-gauge,.unit-slot .hp{width:clamp(40px,72%,52px);height:11px;top:-12px}.banner-slot .hp-gauge,.banner-slot .hp{width:clamp(50px,80%,62px);height:12px;bottom:2px}.hp-num{-webkit-text-stroke:1.5px #070b13;font-size:9px}}.down-tag{z-index:4;color:#fef08a;font-family:"BlambotFXProTightBB", var(--display);letter-spacing:.08em;background:#0f172af0;border:1.5px solid #eab308;border-radius:999px;padding:2px 8px;font-size:clamp(10px,1.8cqmin,12px);font-weight:700;line-height:1.1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 3px 8px #000c,0 0 8px #eab30859}.buffs{z-index:3;flex-direction:column;gap:2px;display:flex;position:absolute;top:4px;right:1px}.buff{border:1.5px solid var(--gold);background:#0f172ad9;border-radius:4px;place-items:center;width:clamp(14px,2.8cqmin,19px);height:clamp(14px,2.8cqmin,19px);padding:1px;font-style:normal;display:grid;box-shadow:0 1px 3px #00000073}.buff .bf-icon{width:100%;height:100%}.raided-stamp{z-index:2;border:2px solid var(--danger);color:var(--danger-deep);font-family:"BlambotFXProTightBB", var(--display);letter-spacing:.04em;background:#fffbebf0;border-radius:4px;padding:1px 5px;font-size:clamp(9px,2.4cqmin,15px);line-height:1.2;position:absolute;top:48%;left:50%;transform:translate(-50%,-50%)rotate(-14deg)}.speakeasy .pc-shutter{opacity:0;transform:scaleY(0)}.speakeasy.raided .pc-shutter{opacity:1;transform:none}.speakeasy.raided .pc-window{fill:#3a3326}.banner.fallen{filter:saturate(.5)brightness(.8)}.target-mark{background:var(--ha-reticle-attack) center / contain no-repeat;box-shadow:none;filter:drop-shadow(0 2px 6px #ef4444a6);border:none;border-radius:50%;animation:1.2s ease-in-out infinite target-pulse;position:absolute;inset:-4%}.target-mark.heal{background:var(--ha-reticle-ally) center / contain no-repeat;filter:drop-shadow(0 2px 6px #22c55ea6)}@keyframes target-pulse{50%{transform:scale(.92)}}.preview-tag{z-index:5;color:#fff;font-family:"BlambotFXProTightBB", var(--display);font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 2px #000;background:linear-gradient(#ff8c1a 0%,#e62e00 100%);border:2px solid #000;border-radius:6px;padding:1px 6px;font-size:clamp(13px,3.2cqmin,20px);animation:1s ease-in-out infinite pulse;position:absolute;top:-22px;box-shadow:0 3px 8px #00000080}@keyframes pulse{50%{transform:scale(1.12)}}.ghost{pointer-events:none;position:absolute}.fx.floater{font-family:"BlambotFXProTightBB", var(--display);font-variant-numeric:tabular-nums;-webkit-text-stroke:2px #000;paint-order:stroke fill;text-shadow:0 3px #000,0 0 6px #000000d9;white-space:nowrap;letter-spacing:.02em;font-size:clamp(18px,4.4cqmin,32px);font-weight:900}.fx.floater.tone-damage{background:linear-gradient(#ff8c1a 0%,#e62e00 100%);color:#ff5c1a;-webkit-text-stroke:2px #000;text-shadow:0 3px #000;-webkit-background-clip:text;background-clip:text}.fx.floater.tone-heal{color:#4ade80;-webkit-text-stroke:2px #052e16;text-shadow:0 3px #000}.fx.floater.tone-info{color:#fde047;font-size:clamp(13px,2.8cqmin,20px)}.fx.steam,.fx.dust{background:radial-gradient(circle at 28% 72%, var(--puff) 0 20%, transparent 22%), radial-gradient(circle at 70% 70%, var(--puff) 0 22%, transparent 24%), radial-gradient(circle at 50% 50%, var(--puff) 0 26%, transparent 28%), radial-gradient(circle at 36% 34%, var(--puff) 0 16%, transparent 18%), radial-gradient(circle at 66% 32%, var(--puff) 0 14%, transparent 16%);border-radius:50%;width:100%;height:100%}.fx.steam{--puff:#f1f5f9e0}.fx.dust{--puff:#b49a74e0}.fx.sparkle,.fx.glint{letter-spacing:.3em;text-shadow:0 0 4px #000;place-items:center;width:100%;height:100%;font-size:clamp(12px,3cqmin,22px);display:grid}.fx.sparkle:before{content:"✦ ✧ ✦";color:#86efac}.fx.glint:before{content:"✦";color:#fef08a;font-size:1.8em}.fx.boom{mix-blend-mode:screen;background:radial-gradient(circle,#fffbeb 0 14%,#fde047 26%,#f97316 46%,#dc2626a6 62%,#0000 72%);border-radius:50%;width:100%;height:100%}.fx.boom.small{width:80%;height:80%}.fx.tracer{transform-origin:0;background:linear-gradient(90deg,#0000,#fde047 35%,#fff);border-radius:2px;height:3px;position:absolute;top:-1.5px;left:0;box-shadow:0 0 6px #f59e0b}.fx.projectile{width:24px;height:24px;position:absolute;top:-12px;left:-12px}.fx.projectile svg,.fx.item-fx svg{width:100%;height:100%;display:block}.fx.item-fx{filter:drop-shadow(0 2px 3px #0000008c);width:80%;height:80%}.ha-floating-drag-layer{z-index:10000;pointer-events:none;will-change:left, top;place-items:center;width:0;height:0;display:grid;position:fixed;top:0;left:0;transform:translate(0,0)}.ha-floating-shadow{pointer-events:none;background:radial-gradient(#0c121cc7 0%,#0c121c73 48%,#0c121c00 76%);border-radius:50%;width:56px;height:20px;animation:1.6s ease-in-out infinite alternate ha-shadow-float;position:absolute;top:-10px;left:-28px}@keyframes ha-shadow-float{0%{opacity:.85;transform:scale(1)}50%{opacity:.58;transform:scale(.82)}to{opacity:.8;transform:scale(.94)}}.ha-floating-avatar{pointer-events:none;filter:drop-shadow(0 14px 18px #000000a6)drop-shadow(0 0 10px #fbbf24bf);place-items:center;width:82px;height:82px;animation:1.6s ease-in-out infinite alternate ha-float-sway;display:grid;position:absolute;bottom:0;left:50%}@keyframes ha-float-sway{0%{transform:translate(calc(-50% - 6px),-32px)rotate(-6deg)scale(1.18)}50%{transform:translate(-50%,-40px)rotate(0)scale(1.24)}to{transform:translate(calc(6px - 50%),-34px)rotate(6deg)scale(1.18)}}.ha-floating-avatar.is-item{filter:drop-shadow(0 12px 16px #0009)drop-shadow(0 0 14px #38bdf8bf);width:72px;height:72px;animation:1.6s ease-in-out infinite alternate ha-item-float-sway}@keyframes ha-item-float-sway{0%{transform:translate(calc(-50% - 5px),-28px)rotate(-7deg)scale(1.15)}50%{transform:translate(-50%,-36px)rotate(0)scale(1.22)}to{transform:translate(calc(5px - 50%),-30px)rotate(7deg)scale(1.15)}}.ha-floating-avatar svg,.ha-floating-avatar img{object-fit:contain;width:100%;height:100%;display:block}.game-shell{background:#1a232d;width:100dvw;height:100dvh;display:flex;position:fixed;inset:0;overflow:hidden}.desktop-games-sidebar{display:none}@media (width>=1180px) and (height>=640px){.desktop-games-sidebar{z-index:30;color:#f1f5f9;background:linear-gradient(#273441 0%,#19222b 100%);border-right:2px solid #0f151b;flex-direction:column;flex:none;width:278px;height:100%;transition:width .16s;display:flex;box-shadow:4px 0 18px #00000073}.desktop-games-sidebar.collapsed{width:44px;overflow:hidden}}.sidebar-head{background:linear-gradient(180deg, #2a3746eb 0%, #19222bf5 100%), var(--ha-header-bar) center / 100% 100% no-repeat;border-bottom:1.5px solid #0f151b;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:8px 10px;display:flex;box-shadow:inset 0 1px #ffffff24}.desktop-games-sidebar.collapsed .sidebar-head{justify-content:center;padding:8px 4px}.sidebar-title{font-family:var(--display);letter-spacing:.04em;color:var(--gold-hi,#fcd34d);text-shadow:0 1px 2px #000c;white-space:nowrap;text-overflow:ellipsis;font-size:.98rem;overflow:hidden}.desktop-games-sidebar.collapsed .sidebar-title,.desktop-games-sidebar.collapsed .sidebar-body,.desktop-games-sidebar.collapsed .sidebar-actions,.desktop-games-sidebar.collapsed .sidebar-list{display:none}.sidebar-toggle,.sidebar-toggle-btn{appearance:none;color:#e2e8f0;width:28px;height:28px;font-family:var(--display);cursor:pointer;background:linear-gradient(#334353 0%,#1e2833 100%);border:1.5px solid #526478;border-radius:6px;flex:none;place-items:center;font-size:.95rem;transition:border-color .14s,background .14s,transform .1s;display:inline-grid;box-shadow:inset 0 1px #ffffff26,0 2px 4px #0006}.sidebar-toggle:hover,.sidebar-toggle-btn:hover{border-color:var(--gold-hi,#fcd34d);color:#fff}.sidebar-toggle:active,.sidebar-toggle-btn:active{transform:scale(.94)}.sidebar-body{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4b5d70 #151d25;flex-direction:column;flex:1;gap:10px;min-height:0;padding-bottom:14px;display:flex;overflow-y:auto}.sidebar-body::-webkit-scrollbar{width:6px}.sidebar-body::-webkit-scrollbar-track{background:#151d25}.sidebar-body::-webkit-scrollbar-thumb{background:#4b5d70;border-radius:999px}.sidebar-actions{background:#0f151b59;border-bottom:1px solid #ffffff14;padding:8px 10px;display:flex}.sidebar-actions .btn{flex:1}.sidebar-list{overscroll-behavior:contain;flex-direction:column;flex:1;gap:12px;min-height:0;padding:0 8px 14px;display:flex;overflow-y:auto}.sidebar-section{flex-direction:column;gap:6px;padding:0 8px;display:flex}.sidebar-section-title{font-family:var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--gold-hi,#fcd34d);justify-content:space-between;align-items:center;padding:0 4px;font-size:.74rem;display:flex}.sidebar-game-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.sidebar-game-row,.sidebar-row{appearance:none;color:#f1f5f9;text-align:left;width:100%;font:inherit;cursor:pointer;background:linear-gradient(#2b3847 0%,#1e2833 100%);border:1.5px solid #354556;border-radius:9px;align-items:center;gap:8px;padding:7px 9px;text-decoration:none;transition:border-color .14s,background .14s,transform .1s;display:flex;box-shadow:inset 0 1px #ffffff14,0 2px 6px #00000052}.sidebar-game-row:hover,.sidebar-row:hover{background:linear-gradient(#324152 0%,#232f3c 100%);border-color:#6b7f94}.sidebar-game-row.current,.sidebar-row.current{background:linear-gradient(90deg,#f59e0b38 0%,#2c3a4af5 55%,#1e2833 100%);border-color:#fbbf24;box-shadow:inset 0 1px #fde04747,0 0 10px #f59e0b52}.sidebar-game-row.hot,.sidebar-row.hot{border-left:4px solid #f59e0b}.sidebar-faction-icon{object-fit:contain;background:#0f172aa6;border-radius:5px;flex:none;width:24px;height:24px;padding:2px}.sidebar-game-info,.sidebar-row-info{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.sidebar-game-name,.sidebar-opp{font-family:var(--display);color:#f8fafc;white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:400;overflow:hidden}.sidebar-game-meta,.sidebar-meta{color:#94a3b8;white-space:nowrap;text-overflow:ellipsis;font-size:.72rem;font-weight:700;overflow:hidden}.sidebar-empty{text-align:center;color:#94a3b8;padding:16px 8px;font-size:.78rem}.game{-webkit-user-select:none;user-select:none;touch-action:manipulation;flex:1;min-width:0;height:100%;padding:0;display:flex;position:relative;overflow:hidden}.ha-hud-top{top:max(4px, var(--safe-t));left:max(8px, var(--safe-l));right:max(8px, var(--safe-r));height:var(--hud-top-h,48px);z-index:30;pointer-events:none;isolation:isolate;backface-visibility:hidden;contain:layout style;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;display:grid;position:absolute;transform:translateZ(0)}.ha-hud-corner{pointer-events:auto;align-items:center;gap:6px;display:flex}.ha-hud-corner.left{justify-content:flex-start}.ha-hud-corner.right{justify-content:flex-end}.ha-hud-corner .btn.icon{width:var(--sq-btn,40px);height:var(--sq-btn,40px);min-height:var(--sq-btn,40px);flex:none}.ha-hud-corner .back-dock-btn{background:var(--ha-btn-back) center / contain no-repeat;box-shadow:none;color:#0000;cursor:pointer;filter:drop-shadow(0 2px 4px #0000008c);border:none;transition:transform .12s}.ha-hud-corner .back-dock-btn:active{transform:scale(.92)}.ha-hud-corner .sound-toggle-btn{background:var(--ha-btn-sound-on) center / contain no-repeat;box-shadow:none;color:#0000;cursor:pointer;filter:drop-shadow(0 2px 4px #0000008c);border:none;transition:transform .12s}.ha-hud-corner .sound-toggle-btn.muted{background-image:var(--ha-btn-sound-off);filter:drop-shadow(0 2px 4px #0000008c)grayscale(.4)}.ha-hud-corner .sound-toggle-btn:active{transform:scale(.92)}.ha-hud-corner .help-dock-btn{background:var(--ha-btn-help) center / contain no-repeat;box-shadow:none;color:#0000;cursor:pointer;filter:drop-shadow(0 2px 4px #0000008c);border:none;transition:transform .12s}.ha-hud-corner .help-dock-btn:active{transform:scale(.92)}.ha-hud-corner .settings-dock-btn{background:var(--ha-btn-settings) center / contain no-repeat;box-shadow:none;color:#0000;cursor:pointer;filter:drop-shadow(0 2px 4px #0000008c);border:none;transition:transform .12s}.ha-hud-corner .settings-dock-btn:active{transform:scale(.92)}.ha-hud-corner .art-mode-toggle-btn{min-width:var(--sq-btn,40px);height:var(--sq-btn,40px);background:linear-gradient(#324152 0%,#19222b 100%);border:2px solid #6b7f94;border-radius:9px;padding:0 7px;box-shadow:inset 0 1px #ffffff2e,0 2px 5px #0000008c}.ha-hud-corner .art-mode-toggle-btn.is-hd{border-color:#f59e0b;box-shadow:inset 0 1px #ffffff47,0 0 8px #f59e0b73,0 2px 5px #0000008c}.vs-ribbon{pointer-events:auto;width:100%;max-width:min(720px,100%);height:var(--hud-top-h,48px);grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);justify-self:center;align-items:center;display:grid}.vs-side{align-items:center;min-width:0;height:100%;display:flex;position:relative}.vs-side.me{flex-direction:row}.vs-side.foe{flex-direction:row-reverse}.vs-portrait{height:calc(var(--hud-top-h,48px) - 2px);aspect-ratio:1;z-index:2;background:linear-gradient(#334155,#1e293b);border:2px solid #0f172a;border-radius:6px;flex:none;place-items:center;padding:2px;display:grid;overflow:hidden;box-shadow:0 2px 6px #0009}.vs-side.me .vs-portrait{border-color:#3b82f6;box-shadow:0 0 0 1px #0f172a,0 2px 6px #0009}.vs-side.foe .vs-portrait{border-color:#ef4444;box-shadow:0 0 0 1px #0f172a,0 2px 6px #0009}.vs-portrait img,.vs-portrait svg{object-fit:contain;width:100%;height:100%;display:block}.vs-banner-box{min-width:0;height:calc(var(--hud-top-h,48px) * .84);flex-direction:column;flex:1;justify-content:center;gap:2px;padding:2px 12px 2px 8px;display:flex;position:relative}.vs-side.me .vs-banner-box{margin-left:-4px;padding:2px 14px 2px 10px}.vs-side.foe .vs-banner-box{margin-right:-4px;padding:2px 10px 2px 14px}.vs-banner-box:before{content:"";pointer-events:none;z-index:0;backface-visibility:hidden;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;position:absolute;inset:0}.vs-side.me .vs-banner-box:before{background-image:var(--ha-banner-me);transform:scaleX(-1)translateZ(0)}.vs-side.foe .vs-banner-box:before{background-image:var(--ha-banner-foe);transform:translateZ(0)}.vs-banner-inner{z-index:1;flex-direction:column;justify-content:center;gap:2px;width:100%;min-width:0;height:100%;display:flex;position:relative;overflow:hidden}.vs-name-row{z-index:1;justify-content:space-between;align-items:center;gap:6px;min-width:0;display:flex;position:relative}.vs-side.foe .vs-name-row{flex-direction:row-reverse}.vs-player-name,.vs-name{font-family:var(--display);color:#fff;text-shadow:0 1px 2px #000,0 0 4px #000000d9;white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:.92rem;line-height:1.05;overflow:hidden}.vs-mini-chip,.vs-chip{color:#e2e8f0;font-family:var(--sans);font-variant-numeric:tabular-nums;white-space:nowrap;background:#0f172ac7;border:1px solid #fff3;border-radius:999px;flex:none;padding:0 5px;font-size:.65rem;font-weight:800;line-height:1.35}.vs-center{z-index:3;flex-direction:column;flex:none;justify-content:center;align-items:center;width:120px;min-width:120px;max-width:120px;margin:0 -8px;display:flex;position:relative}.ha-vs-shield{background:var(--ha-vs-badge) center / contain no-repeat;filter:drop-shadow(0 2px 4px #000000a6);width:34px;height:26px}.vs-turn-pill{color:#e2e8f0;font-family:var(--display);letter-spacing:.04em;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;background:linear-gradient(#1e293b 0%,#0f172a 100%);border:1.5px solid #475569;border-radius:999px;max-width:100%;margin-top:-4px;padding:1px 8px;font-size:.68rem;line-height:1.25;overflow:hidden;box-shadow:0 2px 6px #000000a6}.vs-turn-pill.go{color:#1c1917;background:linear-gradient(#fef08a 0%,#fde047 55%,#f59e0b 100%);border-color:#78350f;box-shadow:0 0 10px #fde0478c,0 2px 6px #000000a6}.ha-stat-strip{top:calc(max(4px, var(--safe-t)) + var(--hud-top-h,48px) + 2px);backface-visibility:hidden;height:calc(var(--hud-strip-h,28px) - 2px);max-width:calc(100% - 24px - var(--safe-l) - var(--safe-r));z-index:25;white-space:nowrap;color:#f8fafc;scrollbar-width:none;background:linear-gradient(#2e3b49f5 0%,#19222bfa 100%);border:1.5px solid #6b7f94;border-radius:8px;align-items:center;gap:6px;padding:2px 8px;display:inline-flex;position:absolute;left:50%;overflow-x:auto;transform:translate(-50%);box-shadow:0 2px 4px #0000006b}.ha-stat-strip::-webkit-scrollbar{display:none}.strip-icon,.strip-icon-btn{appearance:none;cursor:pointer;background:0 0;border:none;flex:none;place-items:center;width:22px;height:22px;padding:0;display:inline-grid}.strip-icon img,.strip-icon svg,.strip-icon-btn img,.strip-icon-btn svg{object-fit:contain;width:100%;height:100%;display:block}.strip-name{font-family:var(--display);color:#f8fafc;text-shadow:0 1px 2px #000c;font-size:.84rem}.strip-name.me-text{color:#93c5fd}.strip-name.foe-text{color:#fca5a5}.strip-stats{flex:none;align-items:center;gap:6px;display:inline-flex}.strip-stat{font-variant-numeric:tabular-nums;color:#f1f5f9;align-items:center;gap:3px;font-size:.76rem;font-weight:800;display:inline-flex}.strip-stat-icon,.strip-stat img{object-fit:contain;width:14px;height:14px;display:block}.strip-stat-val{line-height:1}.strip-effect{color:#bae6fd;border-left:1px solid #ffffff29;padding-left:6px;font-size:.74rem;font-weight:700}.strip-buff{color:#bbf7d0;background:#16a34a47;border:1px solid #4ade8073;border-radius:999px;align-items:center;gap:2px;padding:1px 6px;font-size:.68rem;font-weight:800;display:inline-flex}.strip-swap-btn{appearance:none;color:#fff;font-family:var(--display);cursor:pointer;background:linear-gradient(#0284c7 0%,#0369a1 100%);border:1px solid #38bdf8;border-radius:6px;flex:none;padding:1px 7px;font-size:.72rem}.strip-swap-btn:hover{border-color:#fde047}.strip-btn{appearance:none;color:#e2e8f0;cursor:pointer;background:#1e293b;border:1px solid #6b7f94;border-radius:50%;flex:none;place-items:center;width:20px;height:20px;padding:0;font-size:.7rem;font-weight:800;line-height:1;display:inline-grid}.strip-btn:hover{border-color:var(--gold-hi,#fcd34d);color:#fff}.ha-hud-bottom{bottom:max(2px, calc(var(--safe-b) * .45));left:max(8px, var(--safe-l));right:max(8px, var(--safe-r));height:var(--hud-bot-h,88px);z-index:20;pointer-events:none;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:8px;display:grid;position:absolute}.ha-hud-bottom.is-replay,.ha-hud-bottom.is-waiting,.ha-hud-bottom.is-finished{justify-content:center;align-items:flex-end;display:flex}.ha-bottom-left{pointer-events:auto;align-items:flex-end;gap:6px;display:flex}.academy-door{cursor:pointer;background:0 0;border:none;flex:none;justify-content:center;align-items:center;width:52px;height:74px;padding:0;transition:transform .14s,filter .14s;display:flex;position:relative}.academy-door-img,.door-img{object-fit:contain;filter:drop-shadow(0 3px 6px #000000a6);pointer-events:none;width:100%;height:100%}.door-bag-count{font-family:var(--display);color:#1c1917;text-shadow:0 1px #ffffffa6;pointer-events:none;font-variant-numeric:tabular-nums;font-size:.9rem;font-weight:800;line-height:1;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.academy-door.swap-ready,.academy-door.drag-over,.academy-door.over{filter:drop-shadow(0 0 10px #fbbf24d9)drop-shadow(0 4px 8px #000000b3);transform:scale(1.07)}.ap-wheel-dock{align-items:flex-end;gap:4px;display:flex}.ap-wheel-btn{cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;place-items:center;width:64px;height:64px;padding:0;transition:transform .12s;display:grid;position:relative}.ap-wheel-btn:active:not(:disabled){transform:scale(.95)}.ap-wheel-btn:disabled{cursor:default}.ap-wheel-btn .ap-wheel{background:var(--ha-ap-wheel-bg) center / 100% 100% no-repeat, radial-gradient(circle at 50% 50%, #1e293b 0 58%, #64748b 60% 72%, #0f172a 74%);border-radius:50%;flex:none;place-items:center;width:100%;height:100%;display:grid;position:relative;box-shadow:0 5px 14px #0000008c,inset 0 1px 2px #ffffff59}.ap-wheel-bg{object-fit:contain;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.ap-wedges{pointer-events:none;border-radius:50%;position:absolute;inset:14%}.ap-wedge{--wedge-rot:0deg;transform-origin:0 100%;width:44%;height:44%;transform:translate(0%, -100%) rotate(var(--wedge-rot));background:var(--ha-ap-gem) left bottom / contain no-repeat;opacity:.16;filter:grayscale()brightness(.45);pointer-events:none;transition:opacity .16s,filter .16s,transform .16s;position:absolute;top:50%;left:50%}.ap-wedge:first-of-type{--wedge-rot:-18deg}.ap-wedge:nth-of-type(2){--wedge-rot:54deg}.ap-wedge:nth-of-type(3){--wedge-rot:126deg}.ap-wedge:nth-of-type(4){--wedge-rot:198deg}.ap-wedge:nth-of-type(5){--wedge-rot:270deg}.ap-wedge img,.ap-gem-img{object-fit:contain;width:100%;height:100%;display:block}.ap-wedge.on,.ap-wedge.lit,.ap-wedge.active{opacity:1;filter:drop-shadow(0 0 6px #38bdf8eb)brightness(1.1)}.ap-wedge.spent{opacity:.15;filter:grayscale()brightness(.4)}.ap-wheel-count,.ap-wheel .ap-count{z-index:2;font-family:var(--display);color:#fff;-webkit-text-stroke:2px #090d16;paint-order:stroke fill;text-shadow:0 2px 3px #000;font-variant-numeric:tabular-nums;font-size:1.25rem;line-height:1;position:relative}.ap-undo-arrow{object-fit:contain;pointer-events:none;z-index:4;filter:drop-shadow(0 2px 4px #000000bf);width:24px;height:24px;position:absolute;bottom:2px;left:-6px}.ap-reset-pill{appearance:none;color:#f8fafc;font-family:var(--display);cursor:pointer;background:linear-gradient(#334155 0%,#1e293b 100%);border:1.5px solid #6b7f94;border-radius:999px;padding:3px 8px;font-size:.72rem;transition:border-color .12s,transform .1s;box-shadow:0 2px 6px #00000080}.ap-reset-pill:hover{border-color:var(--gold-hi,#fcd34d)}.ap-reset-pill:active{transform:translateY(1px)}.ha-hud-bottom .tile-rack-wrap{pointer-events:auto;width:clamp(290px,50vw,520px);max-width:100%;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;flex:initial;background:0 0;border:none;border-radius:0;place-self:end center;padding:0 12px 4px;display:block;position:relative}.ha-hud-bottom .tile-rack-wrap:before,.ha-hud-bottom .tile-rack-shelf{content:"";background:var(--ha-tile-rack) center bottom / 100% 100% no-repeat;pointer-events:none;z-index:0;filter:drop-shadow(0 4px 10px #000000a6);height:62%;position:absolute;bottom:0;left:0;right:0}.ha-hud-bottom .tile-rack-wrap:has(.tile-rack-shelf):before{display:none}.ha-hud-bottom .hand{z-index:2;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:none;width:100%;max-width:100%;padding:0;position:relative}.ha-hud-bottom .cards{z-index:2;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:4px;margin:0;padding:0;list-style:none;display:grid;position:relative}.ha-hud-bottom .rack-slot{height:calc(var(--hud-bot-h,88px) - 2px);justify-content:center;align-items:flex-end;min-width:0;display:flex}.ha-hud-bottom .card-btn{box-shadow:none;cursor:grab;filter:drop-shadow(0 3px 5px #0009);background:0 0;border:none;border-radius:0;flex-direction:column;justify-content:flex-end;align-items:center;width:100%;height:100%;min-height:0;padding:0 2px 6px;transition:transform .14s cubic-bezier(.2,.9,.3,1.2),filter .14s;display:flex;overflow:visible}.ha-hud-bottom .card-btn:before,.ha-hud-bottom .card-btn:after{display:none}.ha-hud-bottom .card-btn:hover:not(:disabled){box-shadow:none;filter:drop-shadow(0 0 6px #fbbf2499)drop-shadow(0 6px 8px #000000a6);background:0 0;border:none;transform:translateY(-5px)scale(1.06)}.ha-hud-bottom .card-btn.selected{box-shadow:none;filter:drop-shadow(0 0 8px #fbbf24)drop-shadow(0 4px 6px #000000bf);background:0 0;border:none;transform:translateY(-9px)scale(1.1)}.ha-hud-bottom .card-btn.dragging{opacity:.32;filter:grayscale(.5);transform:scale(.94)}.ha-hud-bottom .card-art{filter:none;background:0 0;border-radius:0;place-items:end center;width:92%;height:92%;margin-top:0;display:grid}.ha-hud-bottom .rack-tile-img{object-fit:contain;object-position:center bottom;filter:none;width:100%;height:100%}.ha-hud-bottom .card-header,.ha-hud-bottom .card-icon,.ha-hud-bottom .card-name,.ha-hud-bottom .card-stats{display:none}.rack-empty-slot{background:#0f172a59;border:1px dashed #94a3b840;border-radius:6px;width:78%;height:52%;margin-bottom:6px;box-shadow:inset 0 2px 4px #00000073}.ha-hud-bottom .tile-rack-wrap .bag-count{display:none}.ha-bottom-right{pointer-events:auto;align-items:flex-end;display:flex}.ha-submit-btn{background-color:#0000;background-image:var(--ha-btn-submit);cursor:pointer;filter:drop-shadow(0 3px 8px #000000a6);background-position:50%;background-repeat:no-repeat;background-size:contain;border:none;width:86px;height:60px;padding:0;transition:transform .12s,filter .12s,opacity .12s;position:relative}.ha-submit-btn:active:not(:disabled){background-image:var(--ha-btn-submit-pressed);transform:scale(.95)}.ha-submit-btn:disabled{background-image:var(--ha-btn-submit-dis);opacity:.72;cursor:not-allowed}.ha-submit-btn.ready-pulse{animation:1.6s ease-in-out infinite ha-submit-ready-glow}@keyframes ha-submit-ready-glow{0%,to{filter:drop-shadow(0 0 8px #38bdf8a6)drop-shadow(0 3px 8px #000000a6)}50%{filter:drop-shadow(0 0 14px #34d399e6)drop-shadow(0 4px 10px #000000b3);transform:scale(1.03)}}.ha-submit-btn.victory{animation:1.4s ease-in-out infinite ha-submit-victory-glow}@keyframes ha-submit-victory-glow{0%,to{filter:drop-shadow(0 0 10px #fbbf24cc)drop-shadow(0 3px 8px #000000a6)}50%{filter:drop-shadow(0 0 18px #fde047)drop-shadow(0 4px 12px #000000bf);transform:scale(1.05)}}.submit-count-badge{color:#0f172a;min-width:22px;height:22px;font-family:var(--display);pointer-events:none;background:linear-gradient(#fde047 0%,#f59e0b 100%);border:2px solid #0f172a;border-radius:999px;place-items:center;padding:0 5px;font-size:.78rem;font-weight:800;display:inline-grid;position:absolute;top:-4px;right:-4px;box-shadow:0 2px 5px #0000008c}.replay-dock,.match-finished-dock,.waiting-dock-inner{pointer-events:auto;color:#f8fafc;background:linear-gradient(#2e3b49f5 0%,#19222bfa 100%);border:2px solid #d4af37;border-bottom:3.5px solid #785317;border-radius:12px;box-shadow:inset 0 1px #ffffff29,0 6px 20px #000000b3}.replay-dock{flex:1;justify-content:space-between;align-items:center;gap:14px;max-width:760px;min-height:60px;padding:6px 16px;display:flex;position:relative}.replay-dock-info{flex-direction:column;gap:3px;min-width:0;display:flex}.replay-dock-header{font-family:var(--display);align-items:center;gap:10px;display:flex}.replay-dock-badge{color:#ff9d42;text-transform:uppercase;letter-spacing:.5px;text-shadow:0 1px 3px #000000d9;font-size:.94rem;font-weight:700}.replay-dock-step{color:#e2e8f0;font-variant-numeric:tabular-nums;background:#0006;border:1px solid #ffffff26;border-radius:999px;padding:1px 8px;font-size:.82rem;font-weight:700}.replay-dock-hint{color:#94a3b8;font-size:.72rem;font-style:italic}.replay-dock-desc{font-family:var(--sans);color:#f8fafc;text-shadow:0 1px 2px #000000e6;white-space:nowrap;text-overflow:ellipsis;max-width:min(500px,46vw);font-size:.92rem;font-weight:600;overflow:hidden}.replay-dock-controls{flex:none;align-items:center;gap:6px;display:flex}.replay-btn{font-family:var(--display);min-height:36px;padding:0 12px;font-size:.86rem;font-weight:700}.replay-btn.replay-skip{color:#fff;text-shadow:0 1px 2px #0009;background:linear-gradient(#38bdf8 0%,#0284c7 100%);border-color:#0369a1}.waiting-dock{flex:1;justify-content:center;align-items:center;max-width:640px;min-height:60px;display:flex}.waiting-dock-inner{justify-content:space-between;align-items:center;gap:16px;width:100%;padding:8px 18px;display:flex}.waiting-dock-text{flex-direction:column;gap:2px;min-width:0;display:flex}.waiting-dock-title{font-family:var(--display);color:#f1f5f9;letter-spacing:.03em;font-size:1.08rem;font-weight:800}.waiting-dock-sub{font-family:var(--sans);color:#cbd5e1;font-size:.8rem}.waiting-spinner{border:3px solid #fff3;border-top-color:#38bdf8;border-radius:50%;flex-shrink:0;width:24px;height:24px;animation:.9s linear infinite waiting-spin;display:inline-block}@keyframes waiting-spin{to{transform:rotate(360deg)}}.match-finished-dock{flex:1;justify-content:space-between;align-items:center;gap:16px;max-width:760px;min-height:62px;padding:8px 18px;display:flex;position:relative}.match-finished-info{flex-direction:column;gap:3px;min-width:0;display:flex}.match-finished-badge{font-family:var(--display);letter-spacing:.04em;text-transform:uppercase;align-items:center;gap:6px;font-size:1.25rem;font-weight:800;display:inline-flex}.match-finished-badge.won{color:#fef08a;text-shadow:0 0 12px #eab308cc,0 2px 4px #000c}.match-finished-badge.lost{color:#f87171;text-shadow:0 0 12px #ef4444cc,0 2px 4px #000c}.match-finished-desc{font-family:var(--sans);color:#cbd5e1;font-size:.84rem}.match-finished-actions{flex:none;align-items:center;gap:10px;display:flex}.match-finished-actions .match-result-btn{color:#f1f5f9;background:#ffffff1f;border:1.5px solid #ffffff59;min-height:40px;padding:0 14px;font-size:.86rem}.match-finished-actions .match-back-btn{min-height:40px;padding:0 16px;font-size:.9rem}@media (height<=540px) and (orientation:landscape){.ha-hud-top{--sq-btn:36px;gap:4px}.ha-hud-corner{gap:4px}.vs-ribbon{height:var(--hud-top-h,34px)}.vs-portrait{height:32px}.vs-banner-box{height:28px;padding:1px 10px 1px 8px}.vs-player-name,.vs-name{font-size:.76rem}.vs-mini-chip,.vs-chip{padding:0 4px;font-size:.58rem}.vs-center{width:92px;min-width:92px;max-width:92px}.ha-vs-shield{width:28px;height:22px}.vs-turn-pill{padding:0 6px;font-size:.6rem}.ha-stat-strip{top:calc(max(4px, var(--safe-t)) + var(--hud-top-h,34px) + 2px);height:var(--hud-strip-h,22px);gap:4px;padding:1px 6px;font-size:.72rem}.strip-name,.strip-stat,.strip-effect{font-size:.72rem}.ha-hud-bottom,.ha-bottom-left{gap:4px}.academy-door{width:38px;height:52px}.door-bag-count{font-size:.74rem;bottom:2px}.ap-wheel-btn{width:46px;height:46px}.ap-wheel-btn .ap-wheel-count{font-size:.95rem}.ap-undo-arrow{width:18px;height:18px;left:-4px}.ha-hud-bottom .tile-rack-wrap{width:clamp(248px,46vw,350px);padding:0 8px 2px}.ha-hud-bottom .tile-rack-shelf{height:68%}.ha-hud-bottom .cards{gap:3px}.ha-hud-bottom .rack-slot{height:calc(var(--hud-bot-h,52px) - 2px)}.ha-hud-bottom .card-btn{padding:0 1px 3px}.ha-submit-btn{width:58px;height:42px}.submit-count-badge{min-width:18px;height:18px;font-size:.68rem}.replay-dock,.match-finished-dock,.waiting-dock-inner{gap:8px;min-height:42px;padding:3px 10px}.replay-dock-badge,.match-finished-badge,.waiting-dock-title{font-size:.84rem}.replay-dock-desc,.match-finished-desc,.waiting-dock-sub{font-size:.7rem}.replay-dock-hint{display:none}.replay-btn,.match-finished-actions .match-result-btn,.match-finished-actions .match-back-btn{min-height:28px;padding:0 8px;font-size:.74rem}}.page{max-width:1180px;padding:calc(16px + var(--safe-t)) calc(22px + var(--safe-r)) calc(20px + var(--safe-b)) calc(22px + var(--safe-l));box-sizing:border-box;flex-direction:column;gap:14px;width:100%;margin:0 auto;display:flex}@media (width<=640px){.page{padding:calc(12px + var(--safe-t)) max(10px, var(--safe-r)) calc(16px + var(--safe-b)) max(10px, var(--safe-l));gap:12px}}.page.center{text-align:center;justify-content:center;align-items:center;min-height:100dvh}.skyline{display:none}.onboarding{grid-template-columns:minmax(0,1.25fr) minmax(300px,400px);align-items:center;gap:32px;min-height:100dvh;display:grid}@media (width<=860px){.onboarding{padding-top:calc(10px + var(--safe-t));grid-template-columns:1fr;align-content:center;gap:18px}.onboarding-form{width:100%;max-width:400px;margin:0 auto}}.brand{text-align:center;flex-direction:column;align-items:center;gap:12px;min-width:0;display:flex}.brand-crest{flex-direction:column;align-items:center;gap:6px;display:flex}.brand-mark{filter:drop-shadow(0 6px 14px #00000080);width:clamp(56px,14vh,92px);height:auto}.crest-subtitle{color:var(--gold-hi);letter-spacing:.14em;background:#fcd34d24;border:1.5px solid #fcd34d7a;border-radius:999px;padding:3px 12px;font-size:.74rem;font-weight:900;display:inline-block}.brand h1{color:#fff;text-shadow:0 3px #0f172a,0 6px 20px #0000008c;font-size:clamp(2.1rem,6.8vh,3.6rem);line-height:1}.brand .tagline{color:var(--cream-2);max-width:44ch;font-size:.96rem}.ha-faceoff-banner{background:#141e28;border:2px solid #55687d;border-radius:14px;width:min(100%,560px);overflow:hidden;box-shadow:inset 0 1px #fff3,0 0 0 1px #0f151b,0 12px 28px #0000008c}.ha-faceoff-img{object-fit:cover;object-position:center 25%;width:100%;height:auto;max-height:clamp(110px,22vh,200px);display:block}.hero-showcase{background:linear-gradient(#2e3b49eb 0%,#19222bf5 100%);border:1.5px solid #55687d;border-radius:14px;justify-content:center;align-items:flex-end;gap:clamp(8px,1.5vw,16px);margin-top:4px;padding:12px 18px 10px;display:flex;box-shadow:inset 0 1px #ffffff24,0 10px 26px #0000007a}.hero-pedestal{flex-direction:column;align-items:center;gap:4px;width:clamp(48px,7vw,76px);display:flex}.hero-pedestal.featured{width:clamp(58px,8.2vw,90px);transform:translateY(-4px)}.hero-figure-wrap{aspect-ratio:1;filter:drop-shadow(0 4px 6px #0000008c);width:100%}.hero-label{font-family:var(--display);color:var(--cream);letter-spacing:.02em;text-shadow:0 1px 2px #000;font-size:.74rem}.onboarding-form{color:#f8fafc;background:linear-gradient(#2b3847 0%,#1b242e 100%);border:2px solid #55687d;border-bottom:4px solid #0f151b;border-radius:14px;box-shadow:inset 0 1px #ffffff29,0 14px 32px #00000085}.onboarding-form .form-header{flex-direction:column;gap:4px;display:flex}.onboarding-form .form-header h2{color:var(--gold-hi);text-shadow:0 2px #0f172a}.onboarding-form .muted{color:#cbd5e1}.onboarding-form .btn.link{color:#93c5fd}@media (height<=540px) and (orientation:landscape){.onboarding{padding-top:calc(8px + var(--safe-t));padding-bottom:calc(10px + var(--safe-b));grid-template-columns:minmax(0,1.15fr) minmax(260px,340px);gap:16px}.brand{gap:6px}.brand-mark{width:44px}.brand h1{font-size:1.7rem}.brand .tagline{font-size:.82rem}.ha-faceoff-img{max-height:92px}.hero-showcase{gap:6px;padding:6px 10px}.hero-pedestal{width:42px}.hero-pedestal.featured{width:50px}.onboarding-form{gap:8px;padding:12px 14px}}.lobby{flex-direction:column;gap:16px;width:100%;min-height:100dvh;display:flex}.lobby-topbar{background:linear-gradient(180deg, #2e3b49f0 0%, #19222bf7 100%), var(--ha-header-bar) center / 100% 100% no-repeat;border:1.5px solid #5d7085;border-bottom:3px solid #0f151b;border-radius:14px;justify-content:space-between;align-items:center;gap:16px;padding:12px 18px;display:flex;box-shadow:inset 0 1px #ffffff2e,0 6px 18px #00000073}.lobby-topbar-brand{align-items:center;gap:12px;min-width:0;display:flex}.lobby-topbar-actions{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:8px;display:flex}.lobby-topbar-actions .btn.small{white-space:nowrap}.lobby-topbar-actions .btn.link.signout-btn,.signout-btn{color:var(--cream-2);white-space:nowrap;background:#0f172a8f;border:1.5px solid #55687d;border-radius:8px;padding:0 10px;text-decoration:none}.lobby-topbar-actions .btn.link.signout-btn:hover:not(:disabled),.signout-btn:hover:not(:disabled){color:#fff;background:#25313de6;border-color:#7c92a8}.lobby-crest{filter:drop-shadow(0 3px 6px #00000080);flex-shrink:0}.title{color:#fff;text-shadow:0 2px #0f172a;font-size:clamp(1.2rem,3.5vw,1.8rem)}.lobby-mobile-tabs{display:none}.lobby-grid{grid-template-columns:minmax(290px,370px) minmax(0,1fr);align-items:start;gap:20px;width:100%;display:grid}.lobby-side{top:calc(14px + var(--safe-t));background:linear-gradient(#2a3644f2 0%,#171f28fa 100%);border:1.5px solid #55687d;border-bottom:3px solid #0f151b;border-radius:14px;flex-direction:column;gap:12px;padding:16px;display:flex;position:sticky;box-shadow:inset 0 1px #ffffff24,0 8px 24px #0000006b}.lobby-side-head{border-bottom:1px solid #ffffff1a;justify-content:space-between;align-items:baseline;gap:8px;padding-bottom:6px;display:flex}.lobby-panel-title{font-family:var(--display);color:var(--gold-hi);text-shadow:0 1px 2px #000000b3;margin:0;font-size:1.15rem}.lobby-games{flex-direction:column;gap:16px;min-width:0;display:flex}.lobby-games-header{flex-wrap:wrap;gap:10px;display:flex}.faction-select-card{background:#10171fb8;border:1.5px solid #3c4d60;border-radius:12px;flex-direction:column;gap:8px;padding:10px 12px;display:flex}.faction-select-header{flex-direction:column;gap:4px;display:flex}.faction-card-title{font-family:var(--display);letter-spacing:.08em;color:var(--gold-hi);font-size:.72rem}.faction-passive-pill{color:var(--cream-2);font-size:.74rem;line-height:1.25}.faction-passive-pill strong{color:#fff}.faction-tabs-row{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}@media (width<=520px){.faction-tabs-row{grid-template-columns:repeat(2,1fr);gap:6px}}.faction-tab{color:#fff;cursor:pointer;text-align:left;box-sizing:border-box;background:linear-gradient(#2d3b4a 0%,#1d2732 100%);border:1.5px solid #435568;border-radius:8px;align-items:center;gap:6px;min-width:0;padding:6px 8px;transition:border-color .14s,background .14s,box-shadow .14s;display:flex}.faction-tab:hover{background:linear-gradient(#374759 0%,#24303e 100%);border-color:#7c90a6}.faction-tab.selected{border-color:var(--tab-color,var(--gold-hi));background:linear-gradient(135deg,#30445cf5,#16202cfa);box-shadow:0 0 10px #fcd34d59}.faction-tab-icon{object-fit:contain;flex-shrink:0;width:22px;height:22px}.faction-tab-name{font-family:var(--display);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:.72rem;overflow:hidden}.lobby-faceoff{background:#141e28;border:2px solid #55687d;border-radius:12px;position:relative;overflow:hidden;box-shadow:0 6px 16px #00000073}.lobby-faceoff-img{object-fit:cover;object-position:center 22%;width:100%;height:clamp(86px,14vh,118px);display:block}.lobby-faceoff-badge{color:var(--cream);text-shadow:0 1px 2px #000;background:#0a0f18d9;border:1px solid #fcd34d73;border-radius:999px;padding:2px 8px;font-size:.68rem;font-weight:700;position:absolute;bottom:6px;right:8px}.lobby-roster{background:#0f161ebf;border:1.5px solid #3c4d60;border-radius:12px;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px 6px 6px;display:grid}.roster-mini{text-align:center;flex-direction:column;align-items:center;gap:2px;min-width:0;display:flex}.roster-mini span{color:var(--cream-2);white-space:nowrap;text-overflow:ellipsis;min-width:0;max-width:100%;font-size:clamp(.58rem,1.8vw,.66rem);font-weight:800;overflow:hidden}.actions-row{flex-direction:column;gap:10px;display:flex}.practice-group{flex-direction:column;gap:6px;display:flex}.bot-faction-picker{background:#0f161ea6;border:1px solid #3c4d60;border-radius:8px;justify-content:space-between;align-items:center;gap:6px;min-width:0;padding:4px 10px;display:flex}.select-mini{color:#fff;cursor:pointer;background:#1e293b;border:1px solid #475569;border-radius:6px;min-width:0;max-width:100%;padding:4px 8px;font-family:inherit;font-size:.78rem}.join-form{gap:8px;display:flex}.lobby-foot{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;padding-top:4px;display:flex}.lobby-foot .btn.link{color:var(--cream-2)}.push-toggle{flex-direction:column;gap:6px;display:flex}.guide-link{text-decoration:none}.guide-link .q,.help-btn{font-family:var(--display)}.game-list h2{font-family:var(--display);color:var(--gold-hi);text-shadow:0 2px #00000073;align-items:center;gap:8px;margin-bottom:8px;font-size:1.05rem;display:flex}.game-list h2:after{content:"";background:linear-gradient(90deg,#fcd34d59,#0000);flex:1;height:2px}.count{min-width:22px;height:22px;color:var(--gold-hi);font-family:var(--sans);background:#fcd34d33;border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:.78rem;font-weight:900;display:inline-flex}.game-list ul{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.game-row{background:linear-gradient(180deg, #2e3b49f0 0%, #19222bfa 100%), var(--ha-games-row,url(/ha/remastered/games-row.png)) center / 100% 100% no-repeat;color:#f8fafc;width:100%;min-height:66px;font:inherit;text-align:left;cursor:pointer;box-sizing:border-box;border:2px solid #536579;border-left:6px solid #6b7f94;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:12px 16px;text-decoration:none;transition:transform 80ms,border-color .12s,box-shadow .12s;display:flex;position:relative;box-shadow:inset 0 1px #ffffff24,0 3px #0f151b,0 6px 14px #080f1c59}.game-row:hover{border-color:#8297ad;transform:translateY(-1px);box-shadow:inset 0 1px #fff3,0 4px #0f151b,0 8px 18px #080f1c73}.game-row.hot{background:linear-gradient(90deg, #f59e0b33 0%, #2a3745f0 55%, #19222bfa 100%), var(--ha-games-row,url(/ha/remastered/games-row.png)) center / 100% 100% no-repeat;border-left-color:var(--gold)}.game-row .muted{color:#cbd5e1}.game-row-factions{flex-shrink:0;align-items:center;gap:4px;display:flex}.game-row-faction-icon{object-fit:contain;background:#0f151b8c;border:1px solid #ffffff1a;border-radius:6px;width:28px;height:28px;padding:2px}.game-row-vs{color:#94a3b8;font-size:.7rem;font-weight:800}.row-main{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.row-main strong{font-family:var(--display);color:#fff;text-shadow:0 1px 2px #000000a6;text-overflow:ellipsis;white-space:nowrap;font-size:1.08rem;font-weight:400;overflow:hidden}.empty{text-align:center;color:#f8fafc;background:linear-gradient(#2b3847 0%,#1b242e 100%);border:2px solid #55687d;border-bottom:4px solid #0f151b;border-radius:14px;flex-direction:column;gap:6px;padding:28px 20px;display:flex}.empty h2{color:var(--gold-hi)}.empty .muted{color:#cbd5e1}@media (width<=860px){.lobby-topbar{flex-wrap:wrap;gap:10px;padding:10px 14px}.lobby-topbar-actions{border-top:1px solid #ffffff1a;justify-content:flex-end;gap:6px;width:100%;padding-top:8px}.lobby-topbar-actions .btn.small{min-height:30px;padding:0 8px;font-size:.76rem}.lobby-mobile-tabs{background:#111820e6;border:1.5px solid #55687d;border-radius:12px;grid-template-columns:1fr 1fr;gap:6px;padding:4px;display:grid}.lobby-mobile-tab{min-height:42px;font-family:var(--display);color:var(--cream-2);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:6px 12px;font-size:.95rem;font-weight:800;transition:background .15s,color .15s,box-shadow .15s;display:flex}.lobby-mobile-tab.active{color:#fff;text-shadow:0 1px 2px #00000080;background:linear-gradient(#f59e0b 0%,#d97706 100%);box-shadow:0 2px 8px #f59e0b66}.tab-badge{color:#fff;background:#ffffff40;border-radius:999px;padding:2px 7px;font-size:.72rem;font-weight:800}.tab-badge.hot{color:#fff;background:#ef4444}.lobby-grid{grid-template-columns:1fr}.lobby-side{gap:10px;padding:12px;position:static}.lobby-side.mobile-hidden,.lobby-games.mobile-hidden{display:none}.lobby-side.mobile-active,.lobby-games.mobile-active{display:flex}.lobby-games-header{grid-template-columns:1fr 1fr;gap:8px;display:grid}}.guide-page{max-width:1040px}.guide{flex-direction:column;gap:18px;display:flex}.guide-top{align-items:center;gap:12px;display:flex}.guide-top h1{color:#fff;text-shadow:0 2px #0f172a;font-size:1.8rem}.guide-nav{flex-wrap:wrap;gap:8px;display:flex}.guide-nav a{color:#f8fafc;font-family:var(--display);background:linear-gradient(#2d3b4a 0%,#1e2833 100%);border:1.5px solid #55687d;border-radius:999px;padding:6px 14px;font-size:.88rem;text-decoration:none;transition:border-color .12s;box-shadow:inset 0 1px #ffffff24,0 2px 4px #00000059}.guide-nav a:hover{border-color:var(--gold-hi)}.guide-filter-bar{color:#f1f5f9;background:linear-gradient(#2b3847 0%,#1b242e 100%);border:1.5px solid #55687d;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;display:flex}.guide-filter-label{text-transform:uppercase;letter-spacing:.05em;color:#cbd5e1;font-weight:700}.guide-filter-btn{color:#f1f5f9;cursor:pointer;background:#1e293b;border:1.5px solid #475569;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.8rem;font-weight:700;transition:border-color .12s,background .12s;display:inline-flex}.guide-filter-btn:hover{border-color:var(--gold-hi)}.guide-filter-btn.active{color:#fff;background:linear-gradient(#3b82f6 0%,#1d4ed8 100%);border-color:#93c5fd;box-shadow:0 2px 6px #00000059}.guide-filter-icon{object-fit:contain;width:16px;height:16px}.guide-section{flex-direction:column;gap:10px;scroll-margin-top:12px;display:flex}.guide-section>h2{color:var(--gold-hi);text-shadow:0 2px #00000059;align-items:center;gap:10px;display:flex}.guide-section>h2:after{content:"";background:linear-gradient(90deg,#fcd34d66,#0000);flex:1;height:2px}.how-list{background:var(--panel);color:var(--ink);border:2px solid var(--bevel);box-sizing:border-box;border-radius:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:8px 30px;margin:0;padding:16px 16px 16px 36px;display:grid}@media (width<=640px){.how-list{gap:8px 16px;padding:12px 14px 12px 28px}}.guide-factions-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:16px;display:grid}.guide-faction-card{background:var(--panel);border:2px solid var(--bevel);border-radius:14px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 4px 14px #00000040}.guide-faction-splash-wrap{background:#0f172a;width:100%;height:140px;position:relative;overflow:hidden}.guide-faction-splash{object-fit:cover;object-position:center 30%;width:100%;height:100%}.guide-faction-emblem-badge{background:#0f172ad9;border:1.5px solid #fcd34d80;border-radius:10px;justify-content:center;align-items:center;width:44px;height:44px;padding:4px;display:flex;position:absolute;top:8px;right:8px;box-shadow:0 4px 8px #0006}.guide-faction-emblem{object-fit:contain;width:100%;height:100%}.guide-faction-content{flex-direction:column;gap:10px;padding:16px;display:flex}.guide-faction-header{flex-direction:column;gap:2px;display:flex}.guide-faction-title-row{align-items:center;gap:10px;display:flex}.guide-faction-icon{object-fit:contain;width:34px;height:34px}.guide-faction-title-row h3{color:var(--ink);margin:0;font-size:1.25rem}.faction-tagline-text{color:var(--ink-2);margin:0;font-size:.8rem;font-style:italic}.guide-faction-lore{color:var(--ink);margin:0;font-size:.86rem;line-height:1.35}.guide-faction-passive{border-left:4px solid var(--gold-hi);color:var(--ink);background:#fcd34d26;border-radius:8px;padding:8px 10px;font-size:.82rem;line-height:1.3}.passive-badge{text-transform:uppercase;letter-spacing:.05em;color:#854d0e;margin-bottom:2px;font-size:.68rem;font-weight:800;display:block}.guide-faction-roster-preview,.guide-faction-items-preview{flex-direction:column;gap:4px;display:flex}.guide-roster-icons,.guide-items-icons{flex-wrap:wrap;gap:8px;display:flex}.guide-roster-unit-link,.guide-item-link{color:var(--ink);background:#0000000a;border-radius:6px;flex-direction:column;align-items:center;gap:2px;padding:4px;text-decoration:none;transition:transform .1s;display:flex}.guide-roster-unit-link:hover,.guide-item-link:hover{background:#00000014;transform:translateY(-2px)}.small-name{white-space:nowrap;text-overflow:ellipsis;text-align:center;max-width:60px;font-size:.66rem;font-weight:700;overflow:hidden}.guide-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px;display:grid}.guide-entry{grid-template-columns:62px minmax(0,1fr);gap:12px;padding:14px;display:grid}.guide-icon{background:radial-gradient(circle at 50% 30%,#fff,#e6edf5);border:2.5px solid #94a3b8;border-radius:12px;width:62px;height:62px;padding:4px}.guide-entry.tone-unit .guide-icon{border-color:var(--me);background:radial-gradient(circle at 50% 30%,#fff,#dbeafe);border-radius:50%}.guide-text{flex-direction:column;gap:6px;min-width:0;display:flex}.guide-entry-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.guide-text h3{color:var(--ink);font-size:1.16rem}.guide-text h3 .muted{font-family:var(--sans);letter-spacing:.06em;text-transform:uppercase;font-size:.76rem;font-weight:800}.guide-badge-faction{color:var(--ink);background:#0000000d;border:1px solid #cbd5e1;border-radius:999px;flex:none;align-items:center;gap:4px;padding:2px 8px;font-size:.72rem;font-weight:700;display:inline-flex}.guide-text .look{color:var(--ink-2);font-size:.86rem;font-style:italic}.guide-text .how{color:var(--ink-2);font-size:.88rem}.stat-grid{flex-wrap:wrap;gap:5px;margin:0;display:flex}.stat-grid>div{border:1px solid var(--hair);background:#fff;border-radius:6px;align-items:baseline;gap:5px;padding:2px 8px;font-size:.8rem;display:flex}.stat-grid dt{color:var(--ink-2);font-weight:800}.stat-grid dd{color:var(--ink);margin:0;font-weight:900}.legend{background:var(--panel);color:var(--ink);border:2px solid var(--bevel);border-radius:14px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;padding:14px;display:grid}.legend>div{align-items:center;gap:10px;font-size:.9rem;display:flex}.legend-buffs{justify-content:center;gap:4px;width:44px;display:flex}.legend-buffs .buff{width:20px;height:20px}dialog.guide-sheet{width:min(96vw,1020px);max-height:calc(100dvh - 24px);color:var(--ink);background:#f5ebd4;padding:0}dialog.guide-sheet .guide{padding:0 18px 22px}dialog.guide-sheet .guide-top{z-index:2;border-bottom:1px solid var(--hair);background:#f5ebd4;padding:12px 0 10px;position:sticky;top:0}dialog.guide-sheet .guide-top h1,dialog.guide-sheet .guide-section>h2{color:var(--ink);text-shadow:none}dialog.guide-sheet .guide-section{scroll-margin-top:64px}.rotate-overlay{display:none}@media (orientation:portrait) and (width<=680px){.game-shell .rotate-overlay{z-index:999;padding:calc(24px + var(--safe-t)) 28px calc(24px + var(--safe-b));text-align:center;background:linear-gradient(#1e2a36 0%,#111820 100%);flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:fixed;inset:0;box-shadow:inset 0 0 40px #000000a6}}.rotate-card{background:linear-gradient(#324252 0%,#1e2833 100%);border:2px solid #d4af37;border-radius:16px;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:340px;padding:26px 22px;display:flex;box-shadow:inset 0 1px #ffffff29,0 12px 32px #000000a6}.rotate-overlay h1{color:var(--gold-hi);text-shadow:0 2px #0f172a;font-size:1.85rem}.rotate-overlay p{color:var(--cream-2);max-width:28ch}.rotate-phone{width:112px;height:112px;color:var(--gold-hi);filter:drop-shadow(0 4px 10px #0009);animation:2.4s ease-in-out infinite turn-phone}@keyframes turn-phone{0%,20%{transform:rotate(0)}50%,80%{transform:rotate(-90deg)}to{transform:rotate(0)}}.rotate-back-btn{appearance:none;border:2px solid var(--gold);min-height:40px;color:var(--gold-hi);font-family:var(--display);cursor:pointer;background:linear-gradient(#2d3b4a 0%,#1b242e 100%);border-radius:10px;justify-content:center;align-items:center;margin-top:6px;padding:0 18px;font-size:.96rem;text-decoration:none;display:inline-flex;box-shadow:0 4px 12px #00000073}.rotate-back-btn:hover{border-color:var(--gold-hi);color:#fff}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms;animation-duration:.01ms;animation-iteration-count:1}}
