@import"https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Caesar+Dressing&family=Walter+Turncoat&display=swap";:root{--bg: #0b0d10;--bg-elev: #12161b;--panel: #141a21;--surface: #1a212ab4;--text: #e9eef5;--muted: #9aa7b5;--bg-image: url(/assets/background-D0i5MiaQ.png);--card-bg: var(--surface);--panel-bg: var(--panel);--text-muted: var(--muted);--border-strong: 1px solid rgba(255,255,255,.14);--success-bg: rgba(52,199,89,.12);--danger-bg: rgba(239,68,68,.12);--warning-bg: rgba(245,158,11,.12);--info-bg: rgba(79,140,255,.12);--primary: #4f8cff;--primary-600: #3e79e6;--primary-700: #3166c7;--success: #34c759;--danger: #ef4444;--warning: #f59e0b;--border: 1px solid rgba(255,255,255,.08);--radius-sm: 8px;--radius: 12px;--radius-lg: 16px;--shadow-1: 0 1px 2px rgba(0,0,0,.35);--shadow-2: 0 8px 24px rgba(0,0,0,.35);--space-1: 6px;--space-2: 10px;--space-3: 14px;--space-4: 18px;--space-5: 24px;--space-6: 32px;--font-display: "Caesar Dressing", system-ui, sans-serif;--font-body: "Walter Turncoat", cursive, system-ui, sans-serif;--font-numeric: "Bungee Spice", sans-serif;--font-sans: var(--font-body);--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;--fs-0: 12px;--fs-1: 13px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 22px;--fs-6: 28px}@media(prefers-color-scheme:light){:root{--bg: #f7f9fc;--bg-elev: #ffffff;--panel: #ffffff;--surface: #ffffff;--text: #0b1220;--muted: #5b6776;--border: 1px solid rgba(15,18,32,.08);--shadow-1: 0 1px 2px rgba(15,18,32,.06);--shadow-2: 0 8px 24px rgba(15,18,32,.12)}}.caesar-dressing-regular{font-family:Caesar Dressing,system-ui;font-weight:400;font-style:normal}.bungee-spice-regular{font-family:Bungee Spice,sans-serif;font-weight:400;font-style:normal}.walter-turncoat-regular{font-family:Walter Turncoat,cursive;font-weight:400;font-style:normal}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}html,body{margin:0;padding:0}body{background:var(--bg) var(--bg-image) center/cover no-repeat fixed;color:var(--text);font:400 var(--fs-3)/1.5 var(--font-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4{margin:0 0 var(--space-3);font-weight:600;font-family:var(--font-display)}h1{font-size:var(--fs-6);letter-spacing:-.02em}h2{font-size:var(--fs-5);letter-spacing:-.01em}h3{font-size:var(--fs-4)}h4{font-size:var(--fs-3)}p{margin:0 0 var(--space-3)}small,.small{font-size:var(--fs-1);color:var(--muted)}code,kbd,pre{font-family:var(--font-mono);font-size:.95em}pre{background:var(--surface);padding:var(--space-3);border-radius:var(--radius);overflow:auto}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.app-bg{position:fixed;inset:0;z-index:0;pointer-events:none}.app-bg__image{position:absolute;inset:0;background:var(--bg) var(--bg-image) center/cover no-repeat;opacity:.9}.app-bg__canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}.app-shell{position:relative;z-index:2}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.container{max-width:1100px;margin:0 auto;padding:var(--space-5) var(--space-4)}.container-full{width:100%;margin:0;padding:var(--space-5) var(--space-4)}.grid{display:grid;gap:var(--space-5);grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.simple-grid{display:grid;gap:var(--grid-gap, var(--space-4))}.stack{display:flex;flex-direction:column;gap:var(--stack-gap, var(--space-3))}.stack--start{align-items:flex-start}.stack--center{align-items:center}.stack--end{align-items:flex-end}.stack--stretch{align-items:stretch}.row{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}.flex-between{display:flex;align-items:center;justify-content:space-between}.flex-wrap{flex-wrap:wrap}.gap-1{gap:var(--space-1)}.gap-2{gap:var(--space-2)}.gap-3{gap:var(--space-3)}.gap-4{gap:var(--space-4)}.gap-5{gap:var(--space-5)}.gap-6{gap:var(--space-6)}.p-2{padding:var(--space-2)}.p-3{padding:var(--space-3)}.p-4{padding:var(--space-4)}.p-5{padding:var(--space-5)}.w-full{width:100%}.text-muted{color:var(--text-muted)}.text-sm{font-size:var(--fs-1)}.is-success{background:var(--success-bg)}.is-danger{background:var(--danger-bg)}.is-warning{background:var(--warning-bg)}.is-info{background:var(--info-bg)}.card{background:var(--card-bg);border:var(--border);border-radius:var(--radius-lg);padding:var(--space-4)}.card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.card__titles{display:grid;gap:4px}.card__title{margin:0;font-size:var(--fs-4);font-family:var(--font-display)}.card__subtitle{margin:0;color:var(--muted);font-size:var(--fs-2)}.card__actions{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}.card--muted{background:var(--panel-bg)}.card--warning{border-color:#f59e0b40;background:#f59e0b0f}.badge{display:inline-flex;align-items:center;gap:.35rem;padding:2px 8px;border-radius:999px;border:var(--border);background:var(--panel-bg);font-size:var(--fs-1);color:var(--muted)}.error{color:var(--danger);font-size:var(--fs-2)}.list{display:grid;gap:var(--space-2);background:var(--surface);border:var(--border);border-radius:var(--radius);padding:var(--space-2)}.list-item{background:transparent;border-radius:var(--radius);padding:var(--space-3)}.list-item.active{outline:2px solid rgba(79,140,255,.35);background:#4f8cff0d}button,.btn{appearance:none;border-radius:var(--radius);padding:10px 14px;font-weight:600;cursor:pointer;border:var(--border);background:var(--bg-elev);color:var(--text);box-shadow:var(--shadow-1);transition:transform .06s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease}.btn-primary,.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn-secondary{background:var(--bg-elev);color:var(--text)}.btn-danger,.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-ghost{background:transparent;border:var(--border);box-shadow:none;color:var(--text)}button:hover,.btn:hover{background:color-mix(in oklab,var(--primary) 20%,var(--bg-elev))}.btn-primary:hover,.btn.primary:hover{background:var(--primary-600)}.btn-danger:hover,.btn.danger:hover{background:color-mix(in oklab,var(--danger) 85%,#000 0%)}button:active,.btn:active{transform:translateY(1px);box-shadow:none}button:disabled,.btn:disabled{opacity:.6;cursor:not-allowed}button:focus-visible,.btn:focus-visible{outline:2px solid color-mix(in oklab,var(--primary) 60%,transparent);outline-offset:2px}input[type=text],input[type=search],input[type=number],input[type=email],select,textarea,.form-control{width:100%;max-width:480px;padding:10px 12px;border-radius:var(--radius);border:var(--border);background:var(--bg-elev);color:var(--text);outline:none;box-shadow:var(--shadow-1);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}select,.form-control[type=select]{cursor:pointer}input::placeholder,textarea::placeholder,.form-control::placeholder{color:var(--muted)}input:focus,select:focus,textarea:focus,.form-control:focus{border-color:color-mix(in oklab,var(--primary) 60%,transparent);box-shadow:0 0 0 3px color-mix(in oklab,var(--primary) 30%,transparent)}label{font-size:var(--fs-2);color:var(--muted)}fieldset{border:none;padding:0;margin:0}.field{display:grid;gap:var(--space-1);color:var(--muted)}.field__label{font-size:var(--fs-2);font-weight:600}.field__hint{font-size:var(--fs-1);color:var(--muted)}.topbar{display:flex;justify-content:space-between;align-items:center;padding:var(--space-3) var(--space-5);background:var(--panel-bg);border-bottom:var(--border);position:sticky;top:0;z-index:980}.topbar__nav{display:flex;gap:var(--space-3);align-items:center}.topbar__link{font-weight:600;font-size:var(--fs-2);color:var(--muted);text-decoration:none;padding:6px 10px;border-radius:var(--radius);transition:color .16s ease,background .16s ease}.topbar__link:hover{color:var(--text)}.topbar__link.is-active{color:var(--text);background:#4f8cff1f;border:1px solid rgba(79,140,255,.24)}.topbar__auth{display:flex;gap:var(--space-2);align-items:center}.topbar__auth input{min-width:140px}.topbar__error{font-size:var(--fs-1);color:var(--danger)}.match-panel{margin-top:var(--space-5);display:grid;gap:var(--space-4);padding:var(--space-4);background:var(--surface);border:var(--border);border-radius:var(--radius-lg)}.match-panel__header{display:flex;flex-wrap:wrap;gap:var(--space-3);justify-content:space-between;align-items:center}.match-panel__title{margin:0;font-size:var(--fs-5)}.match-panel__subtitle{margin:4px 0 0;font-size:var(--fs-2);color:var(--muted);max-width:42ch}.match-panel__badge{display:grid;gap:4px;padding:var(--space-2);border-radius:var(--radius);border:var(--border);background:var(--panel)}.match-panel__badge-label{font-size:var(--fs-1);color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.match-panel__badge-value{font-weight:600;font-size:var(--fs-3)}.match-panel__empty{margin:0;padding:var(--space-3);border-radius:var(--radius);background:#ffffff0f;border:1px dashed rgba(255,255,255,.18);color:var(--muted)}.match-panel__content{display:grid;gap:var(--space-3)}@media(min-width:720px){.match-panel__content{grid-template-columns:repeat(2,minmax(0,1fr))}}.match-panel__player{display:grid;gap:var(--space-3);padding:var(--space-4);border-radius:var(--radius-lg);border:var(--border);background:var(--surface)}.match-panel__player--a{border-color:#4f8cff4d}.match-panel__player--b{border-color:#ef444433}.match-panel__player-head{display:flex;gap:var(--space-3);align-items:center}.match-panel__avatar{width:48px;height:48px;border-radius:999px;display:grid;place-items:center;font-weight:700;font-size:var(--fs-4);background:var(--panel);border:var(--border);color:var(--text)}.match-panel__avatar--secondary{background:#ef444426;border-color:#ef444459}.match-panel__player-head h3{margin:0;font-size:var(--fs-4)}.match-panel__player-head p{margin:2px 0 0;font-size:var(--fs-2);color:var(--muted)}.match-panel__field{display:grid;gap:var(--space-1);color:var(--muted);font-size:var(--fs-2)}.match-panel__field select{width:100%}.match-panel__error{margin:0;padding:var(--space-2) var(--space-3);border-radius:var(--radius);background:#ef444414;border:1px solid rgba(239,68,68,.24)}.match-panel__actions{display:flex;justify-content:flex-end;gap:var(--space-2)}.game-card-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;width:100%}:root{--hand-fade: 24px}.game-card-row--hand{justify-content:flex-start;gap:clamp(18px,3vw,24px);flex-wrap:nowrap;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;padding:10px 0 16px;mask-image:linear-gradient(to right,transparent 0,#000 var(--hand-fade),#000 calc(100% - var(--hand-fade)),transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--hand-fade),#000 calc(100% - var(--hand-fade)),transparent 100%)}.game-card-row--hand .game-card{scroll-snap-align:start}.hand-layout{display:contents;margin-top:clamp(20px,3vh,32px)}.hand-side,.hand-center{min-width:0}.hand-side{display:flex;justify-content:center;align-items:stretch}.hand-center{display:flex;justify-content:center}.hand-center>.sandbox-panel{flex:1 1 auto;min-width:0;width:100%;max-width:100%}.hand-center .game-card-row{justify-content:center;max-width:100%}.hand-side .game-card{width:clamp(var(--card-min, 120px),var(--card-pref, 15vw),var(--card-max, 180px));max-width:clamp(var(--card-min, 120px),var(--card-pref, 15vw),var(--card-max, 180px))}@media(max-width:768px){.hand-side,.hand-center{width:100%;max-width:100%}}.game-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:clamp(var(--card-min, 120px),var(--card-pref, 15vw),var(--card-max, 180px));max-width:clamp(var(--card-min, 120px),var(--card-pref, 15vw),var(--card-max, 180px));aspect-ratio:2 / 3;padding:var(--space-3);border-radius:var(--radius-lg);background:var(--surface);border:var(--border);cursor:default;-webkit-user-select:none;user-select:none;transition:transform .16s ease,border-color .2s ease}.game-card-row .game-card{flex:0 1 auto}@media(hover:hover){.game-card:hover{transform:translateY(-2px)}}.game-card:active{transform:translateY(0) scale(.98)}.game-card.is-selected{outline:2px solid rgba(79,140,255,.35)}.game-card.is-targetable{outline:2px dashed rgba(242,177,55,.5);cursor:pointer}.game-card.is-clickable{cursor:pointer}.game-card.is-disabled{opacity:.5;cursor:not-allowed}.game-card-row:not(.game-card-row--hand){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,22vw),1fr));gap:clamp(10px,2vw,18px);justify-items:center;align-items:start}.game-card-row:not(.game-card-row--hand) .game-card{--card-min: 140px;--card-pref: 17vw;--card-max: 210px}.gc-image-placeholder{width:100%;flex:1 1 auto;min-height:80px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:var(--radius);background:var(--panel);color:var(--muted);font-size:clamp(2.2rem,3.5vw,3.2rem);font-weight:700;letter-spacing:.08em;text-transform:uppercase;overflow:hidden}.gc-stats{margin-top:8px;display:flex;align-items:center;justify-content:center;gap:var(--space-2);flex-wrap:wrap}.gc-stat-chip{padding:4px 8px;gap:6px;background:var(--panel)}.gc-stat-chip .stat-chip__icon{width:16px;height:16px}.gc-stat-chip .stat-chip__value{font-size:var(--fs-3)}.gc-cost-chip{background:#f2b13729}.gc-stat{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;border:var(--border);background:var(--panel);font-weight:700;font-family:var(--font-numeric)}.gc-stats--deck .gc-stat{background:#4f8cff1f}.gc-stats--grave .gc-stat{background:#ef44441f}.gc-stat-icon{font-size:1.1em}.gc-header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}.gc-name{font-weight:700;font-size:clamp(1.1rem,2vw,1.3rem);letter-spacing:-.01em;font-family:var(--font-display)}.gc-sub{width:100%;display:flex;justify-content:center;gap:8px;color:var(--muted);font-size:var(--fs-2);text-transform:uppercase;letter-spacing:.08em}.gc-prop{font-weight:600}.gc-qty{margin-left:auto;font-weight:600}.toast-stack{position:fixed;right:var(--space-4);bottom:var(--space-4);display:grid;gap:var(--space-2);z-index:999}.toast{display:flex;align-items:center;gap:var(--space-2);min-width:240px;max-width:360px;padding:var(--space-3) var(--space-4);border-radius:var(--radius);background:var(--panel);border:var(--border);color:var(--text);font-size:var(--fs-2)}.toast--error{border-color:#ef444459;background:#ef44441f}.toast__close{border:none;background:transparent;color:inherit;font-size:var(--fs-4);margin-left:auto;cursor:pointer}.toast__close:focus-visible{outline:2px solid color-mix(in oklab,var(--primary) 70%,transparent);outline-offset:2px;border-radius:var(--radius)}.match-debug-overlay{position:fixed;top:var(--space-6);right:var(--space-4);z-index:950;display:grid;gap:4px;padding:var(--space-3);border-radius:var(--radius);border:var(--border);background:var(--panel);color:var(--text);font-size:var(--fs-1);max-width:240px}.match-debug-overlay strong{font-weight:700}.grave-modal-backdrop{position:fixed;inset:0;background:#0a0e1899;display:flex;align-items:center;justify-content:center;padding:var(--space-6);z-index:1200}.grave-modal{width:min(90vw,720px);max-height:80vh;overflow:auto;background:var(--surface);border:var(--border);border-radius:var(--radius-lg);padding:var(--space-5);display:grid;gap:var(--space-4);grid-template-rows:auto 1fr}.grave-modal__header{position:sticky;top:0;background:inherit;z-index:1;border-bottom:var(--border);padding-bottom:var(--space-2);display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}.grave-modal__close{border:none;background:transparent;color:var(--muted);font-size:2rem;line-height:1;cursor:pointer}.grave-modal__close:focus-visible{outline:2px solid color-mix(in oklab,var(--primary) 70%,transparent);outline-offset:2px;border-radius:var(--radius)}.grave-modal__content{overflow:auto}.grave-modal__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.match-hub{margin-top:var(--space-4);display:grid;gap:var(--space-3)}.match-hub__notice{padding:var(--space-3);border-radius:var(--radius);border:1px solid rgba(79,140,255,.24);background:#4f8cff14;font-size:var(--fs-2)}.match-sandbox{--card-min: 120px;--card-pref: 15vw;--card-max: 180px;margin:var(--space-4) auto;display:grid;gap:var(--space-3);background:var(--surface);border:var(--border);border-radius:var(--radius-lg);padding:var(--space-4);max-width:100%}.match-sandbox__toolbar{display:flex;flex-direction:column;gap:var(--space-3)}@media(min-width:720px){.match-sandbox__toolbar{flex-direction:row;align-items:flex-start;justify-content:space-between}}.match-sandbox__title{margin:0;font-size:var(--fs-5)}.match-sandbox__subtitle{margin:4px 0 0;font-size:var(--fs-2);color:var(--muted);max-width:46ch}.match-sandbox__toolbar-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}.match-sandbox__input{min-width:220px}.match-sandbox__status{margin:0;padding:var(--space-2) var(--space-3);border-radius:var(--radius);background:#4f8cff1a;border:1px solid rgba(79,140,255,.2);font-size:var(--fs-2)}.match-sandbox__status--error{background:#ef44441a;border-color:#ef444442}.match-sandbox__layout{display:grid;gap:clamp(var(--space-3),1.6vw,var(--space-4));grid-template-columns:1fr 2.2fr 1fr;align-items:start}@media(max-width:1040px){.match-sandbox__layout{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}.sandbox-panel{display:grid;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius-lg);border:var(--border);background:var(--surface);align-content:flex-start;position:relative}@media(hover:hover){.sandbox-panel:hover{transform:none}}.sandbox-panel--span-3{grid-column:1 / -1}.sandbox-panel--ally{border-color:#4f8cff40}.sandbox-panel--opponent{border-color:#ef444433}.sandbox-panel--stat{position:sticky;top:var(--space-4);z-index:2}@media(min-width:1040px)and (min-height:640px){.sandbox-panel--ally,.sandbox-panel--opponent{position:sticky;top:var(--space-4);align-self:start;max-height:calc(100vh - 140px);overflow:auto;overscroll-behavior:contain}}.sandbox-panel--count,.sandbox-panel--turn{text-align:center;justify-items:center}.sandbox-panel--stat{justify-items:flex-start;position:sticky;top:var(--space-4);z-index:2}.sandbox-panel--stat.is-clickable{cursor:pointer}.sandbox-panel--stat.is-targetable{border-color:color-mix(in oklab,var(--warning) 50%,transparent);outline:2px dashed rgba(242,177,55,.4)}.sandbox-panel--stat.is-selected{outline:2px solid color-mix(in oklab,var(--warning) 65%,transparent)}.sandbox-panel--align-start{justify-items:flex-start;text-align:left}.sandbox-panel--align-end{justify-items:flex-end;text-align:right}.sandbox-panel--active{border-color:#4f8cff73}.sandbox-panel__title{font-size:var(--fs-3);font-weight:700;letter-spacing:-.01em}.sandbox-panel__subtitle{font-size:var(--fs-2);color:var(--muted)}.sandbox-panel__label{font-size:var(--fs-2);color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.sandbox-panel__values{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}.sandbox-chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border-radius:999px;font-size:var(--fs-2);font-weight:600;font-family:var(--font-numeric);letter-spacing:.02em;background:var(--panel);border:var(--border)}.sandbox-chip:before{content:"";display:inline-block;width:18px;height:18px;background-size:contain;background-position:center;background-repeat:no-repeat;filter:drop-shadow(0 0 2px rgba(0,0,0,.4))}.sandbox-chip--hp{background:#ef44441f}.sandbox-chip--mana{background:#4f8cff1f}.sandbox-chip--armor{background:#f2b1371f}.sandbox-chip--shield{background:#4f8cff1a}.sandbox-chip--hp:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHqElEQVR4nO1ZfUxUVx49j9qKiHzUqhUYpDKwVlxFWissLbC4QIevUmB2qdhtm4bSGreuyC4kuxbjP9KkNZvGpnXFLbEfZtFss80am2zj0tj+UawrNVWkWqtj69eKumuxRIWz+d15b5jBmXFmEMlm30lOMjN593fPOe/e++67A5gwYcKECRMmTJgwYcKECRMmQsQdADIBPAlgBYBaAPNx6yC1lum1pY8svc9xRzSAlwGcAUAvPAmgAcCkEGpLm9UAvvVR+6zet2gYF+S5G0+4K4o5URb+YnoSa2bGMT483F3sUQBpQdRO09uo9taICC6bGc/Vd1u5NCyR8Zjkqq05NYiWMYMFQDmA3wJoBbBGPmvAgAi4f9I9bLUs4UdpVewvKCGLi13ctWgRF0RFGWL/A2BJAP3l69cyIzqanZmZHjWZX0JGVfET/JQPItYIQbQ0AvgVgBYAvwFQCiAhVNMagBoAuwEM+RiCLI1J4XZrNT+cW8WBIk/zBn949FHWxsUZba7cJAQx3y/XPpWQwKs2m9ealKAnV3EQ1azHbK/adIr2jwD8XPcUEJJ046pIZGQkCwoK2LhyJZtWrOD0qVPV79mRFm632rnDaue5vFLvQnUOFRezPjHRuFs/+AghX9M0CYjPJSaqNv5q8ielpGZXIVQjQdW+d9o0Nj3/PBufeYYFmZmMjIhwD0OCmHUz84s1Tfu3NLBYLNy4cSOvXL5MnjtHOhw8tHs3NU3jpLAJfOu+x5T5T9Mr/QsNLITgzBuc9jgJO8+inBG4g2FhY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h/HnhQk7QNFVzW3p6wOaF5/bv59OVlWrbK0xOcL4p6p7EW5Pu1S+ek0Z1dXXD68L58z7n160MQQ5RDPMvpaQEZd5FeaLp872ustIIQDwFjIpAd4cGRdCtCKElJUXVaAnVvLC319uuT061AkaMpmnqZGarzHvB1avkyZNjFoK8EwzabLxus/FoXp6H+TnBmHfb97evW2e8An8fyuFpg7Fo5ObmctWqVWxqaGDT8uVseuEFFze1to46hL8+8ADv1DQunzXrhgXPn3nZ+LhrUXz2Wa5atow5GRnui96vESJWG4cVviinMN8fPjyqEOosFudhxty5AZu/3NOj+vanTR/FciNHhakA7Hqht6XwvHnz2Nraqvjhjh0BTYfNSWU+Q7hcVMTPZb0Jctjvamtj64svKs6zWg3jb+taRfPduMUoU9vOoqKAFsdgQghpzrstdsYGR9/TjBlS1YtQbCz75MRI0N9/04Ux/WYhhLrgHTqkzMuZX8wUZzsAVowx9khHOTk57OnpcYZw5kzoIYRqXvb23d3sef999wWvE7cBVve/xOR/AxkRsTEx6qzAFye7ndEPh2Dnd5Ge5oVyrb9ailFRI8/9TwNIxm1CPIC39D01Q6ERwpakMlrDhs2HwEv6G20cxglRAGKDoMV417j3zkhFt716YpC1pO//ScQC6HK7i136b/9XmAhgqU6PPylMmDBhwoQJEyZMmDBhwoQJExhL/BeDfvmAbVmO7QAAAABJRU5ErkJggg==)}.sandbox-chip--mana:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHjElEQVR4nO2Ye1CU5xWHv9Zk2vhHZqoiJrGp1stoJppYO+pktLEmpmqMEYFFxYwxEydqY22SSVoTDAbvRqJRQUBugUUQFVRAtKCgwF7ZRakKgnfERe677LLiAk/nXYVKrMiuLJN0/M38Zvabbxiec+Z85z3nlaQn+omqXGb5u7D0c5XB26o1eFs10s9RN+aax9yUNbYKi9898T8XaE1+vmpTvY+y3kc8V+6R/AwxUv21SMn+3CWJkhF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l7HttTMED1cQ9LuT7HDPsFv83jlcyeYJZ/jovTIGB9nuHlJtrTK4m7qNo/JOpNeMdOaJqw9xe9C+w95dA+8uIwncHYnl2Acz+2wTQas4YZ/ejY/kzy+ln4LE1Ye4PRAL+OhEdC/tpXpoPE2D4mgaGEuVGIn7RCMXg5nTs80TPdET/X/qPw+luVoB3zAWAAAAAElFTkSuQmCC)}.sandbox-chip--armor:before,.sandbox-chip--shield:before{background-image:url(/assets/ico_shield-BQZH0lR7.png)}.sandbox-chip--keyword{background:var(--panel);border:var(--border);font-size:var(--fs-1);padding:6px 10px;font-weight:500}.sandbox-panel__keywords{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}.sandbox-panel__metric{display:grid;gap:4px;justify-items:center}.sandbox-panel__value{font-size:var(--fs-6);font-weight:700}.sandbox-panel__meta{font-size:var(--fs-2);color:var(--muted)}.sandbox-meta-line{display:inline-flex;align-items:center;gap:8px;color:var(--muted)}.sandbox-meta-line code{font-size:var(--fs-1)}.sandbox-panel__footer{font-size:var(--fs-2);color:var(--muted)}.sandbox-panel__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.sandbox-panel__head h4{margin:0;font-size:var(--fs-3)}.sandbox-panel__badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:4px 10px;border-radius:999px;background:var(--panel);border:var(--border);font-size:var(--fs-1)}.sandbox-panel--cards{gap:var(--space-3);width:100%}.sandbox-empty{margin:0;font-size:var(--fs-2);color:var(--muted)}.sandbox-muted{color:var(--muted)}.sandbox-panel--actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-2);align-items:center}.sandbox-panel--hand-backs{display:grid;gap:var(--space-3);align-content:flex-start}.sandbox-panel--hand{display:grid;gap:var(--space-3);width:100%}.sandbox-hand-backs{width:100%}.sandbox-card-back{width:clamp(var(--card-min, 120px),var(--card-pref, 15vw),var(--card-max, 180px));max-width:clamp(var(--card-min, 120px),var(--card-pref, 15vw),var(--card-max, 180px));aspect-ratio:2 / 3;border-radius:var(--radius-lg);border:var(--border);background:var(--panel);display:grid;place-items:center;color:#4f8cffd9;font-size:clamp(2.4rem,4vw,3.2rem);flex:0 0 auto}.sandbox-panel--actions button{flex:0 0 auto}.sandbox-active-player{display:inline-flex;align-items:center;gap:var(--space-2)}.sandbox-active-player strong{font-weight:700}.sandbox-active-player code{font-size:var(--fs-1);opacity:.8}.game-card--grave{opacity:.9;filter:saturate(.9)}.game-card--grave-summary{cursor:pointer;transition:transform .16s ease,border-color .16s ease;border-style:dashed}.game-card--grave-summary:hover{transform:translateY(-2px);border-color:#ef444473}.game-card:focus-visible,.sandbox-panel:focus-visible{outline:2px solid color-mix(in oklab,var(--primary) 70%,transparent);outline-offset:2px;border-radius:var(--radius-lg)}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.toolbar{display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:center;justify-content:space-between}.toolbar__titles{display:grid;gap:6px;min-width:0}.toolbar__title{margin:0;font-size:var(--fs-5);letter-spacing:-.01em;font-family:var(--font-display)}.toolbar__subtitle{margin:0;color:var(--muted);font-size:var(--fs-2);max-width:72ch}.toolbar__actions{display:flex;gap:var(--space-2);align-items:center;flex-wrap:wrap}.empty-state{display:grid;gap:var(--space-2);align-items:center;justify-items:center;text-align:center;padding:var(--space-4);border-radius:var(--radius);border:var(--border);background:var(--panel-bg)}.empty-state__icon{font-size:2rem}.empty-state__title{margin:0;font-size:var(--fs-4)}.empty-state__desc{margin:0;color:var(--muted);max-width:56ch}.empty-state__action{margin-top:var(--space-2)}.deck-toolbar{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center;justify-content:space-between}.deck-meta{color:var(--muted)}.deck-filters{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}.deck-grid{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.deck-card{display:grid;gap:var(--space-2);padding:var(--space-2);border-radius:var(--radius);border:var(--border);background:var(--panel-bg)}.deck-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-2)}.deck-card__name{font-weight:700;font-size:var(--fs-3);letter-spacing:-.01em;font-family:var(--font-display)}.deck-card__sub{color:var(--muted);font-size:var(--fs-2)}.deck-card__qty{align-self:flex-start}.deck-card__stats{display:flex;gap:var(--space-2);flex-wrap:wrap}.deck-card__controls{display:flex;gap:var(--space-2);align-items:flex-start;flex-wrap:wrap}.deck-card__controls .field{flex:1;min-width:140px}.deck-card__controls input[type=number]{height:46px;font-size:var(--fs-3)}.deck-card__controls input[type=number]::-webkit-inner-spin-button,.deck-card__controls input[type=number]::-webkit-outer-spin-button{width:18px;height:28px}@media(max-width:680px){.deck-card__controls{flex-direction:column;align-items:stretch}}.stat-chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:6px 10px;border-radius:999px;border:var(--border);background:var(--panel-bg);font-size:var(--fs-2);font-weight:600}.stat-chip__icon{width:18px;height:18px;object-fit:contain}.stat-chip__value{font-family:var(--font-numeric);letter-spacing:.02em;color:#fff}.stat-chip--cost{background:#f2b13724}.deck-builder__actions{display:flex;gap:var(--space-2);flex-wrap:wrap}@media(max-width:640px){.deck-builder__actions{width:100%}.deck-builder__actions button{flex:1;min-width:0;width:100%}}.deck-builder__form{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.deck-builder__add{display:grid;gap:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end}.deck-actions{display:flex;gap:var(--space-2);flex-wrap:wrap}.deck-builder__layout{display:grid;gap:var(--space-3);grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:start}@media(max-width:1200px){.deck-builder__layout{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}}@media(max-width:960px){.deck-builder__layout{grid-template-columns:1fr}}.deck-builder__sidebar{display:grid;gap:var(--space-3);align-self:start;position:sticky;top:var(--space-3)}@media(max-width:960px){.deck-builder__sidebar{position:static}}.deck-preview{border:var(--border);border-radius:var(--radius-lg);padding:var(--space-4);background:var(--panel-bg);min-height:220px}.deck-preview__header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-2)}.deck-preview__name{font-weight:700;font-size:var(--fs-4);letter-spacing:-.01em;font-family:var(--font-display)}.deck-preview__sub{color:var(--muted);font-size:var(--fs-2)}.deck-preview__text{margin:var(--space-2) 0;color:var(--text)}.deck-preview__keywords{display:flex;flex-wrap:wrap;gap:6px}.deck-card--empty{opacity:.5}.deck-composition{border:var(--border);border-radius:var(--radius-lg);padding:var(--space-4);background:var(--panel-bg);display:grid;gap:var(--space-2)}.deck-composition__list{display:grid;gap:var(--space-2)}.deck-composition__list--muted{opacity:.65}.deck-composition__item{display:flex;justify-content:space-between;align-items:center;padding:var(--space-2);border-radius:var(--radius);border:var(--border);background:var(--surface)}.deck-composition__pool-title{margin:var(--space-2) 0 0;font-size:var(--fs-2);color:var(--muted)}.deck-catalog__controls{display:grid;gap:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;margin-bottom:var(--space-3)}.deck-catalog__refresh{display:grid;gap:6px;justify-items:flex-start}.deck-catalog__grid{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.deck-catalog__card{display:grid;gap:var(--space-2)}.deck-catalog__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.collection-filters{display:grid;gap:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.collection-grid{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.collection-card{display:grid;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius);border:var(--border);background:var(--panel-bg)}.collection-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-2)}.collection-card__name{font-weight:700;font-size:var(--fs-4);letter-spacing:-.01em;font-family:var(--font-display)}.collection-card__sub{color:var(--muted);font-size:var(--fs-2)}.collection-card__stats{display:flex;gap:var(--space-2);flex-wrap:wrap}.collection-card__text{margin:0;color:var(--text);font-size:var(--fs-2)}.collection-card__keywords{display:flex;flex-wrap:wrap;gap:6px}.collection-card__footer{margin-top:var(--space-1)}.hero{position:relative;overflow:hidden;padding:clamp(32px,6vw,64px);border-radius:var(--radius-lg);border:var(--border);background:linear-gradient(135deg,#4f8cff2e,#141a21cc);box-shadow:var(--shadow-2)}.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(79,140,255,.18),transparent 40%),radial-gradient(circle at 80% 30%,rgba(239,68,68,.18),transparent 40%);pointer-events:none;opacity:.7}.hero__title{margin:0;font-size:clamp(48px,8vw,80px);letter-spacing:.06em;text-transform:uppercase;color:#f8fafc;text-shadow:0 8px 28px rgba(0,0,0,.35)}.hero__subtitle{margin:12px 0 20px;max-width:48ch;font-size:var(--fs-3);color:var(--muted)}.hero__actions{display:flex;gap:var(--space-2);flex-wrap:wrap}.leaderboard-controls{display:grid;gap:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:end;margin-bottom:var(--space-3)}.leaderboard-meta{align-self:center}.leaderboard-table{display:grid;gap:var(--space-2)}.leaderboard-row{display:grid;grid-template-columns:80px 2fr repeat(2,minmax(90px,110px)) 120px 1.6fr;align-items:center;padding:var(--space-3);border:var(--border);border-radius:var(--radius);background:var(--panel-bg);gap:var(--space-2)}.leaderboard-row--head{background:transparent;border-color:transparent;color:var(--muted);text-transform:uppercase;font-size:var(--fs-2);letter-spacing:.03em;padding-bottom:var(--space-1)}.leaderboard-rank{font-family:var(--font-numeric);font-size:var(--fs-5);font-weight:700}.leaderboard-name{font-family:var(--font-display);font-size:var(--fs-4);letter-spacing:-.01em}.leaderboard-id{margin-top:2px}.leaderboard-stat{font-family:var(--font-numeric);font-weight:700}.leaderboard-stat.muted{color:var(--muted)}.leaderboard-winrate .badge{font-family:var(--font-numeric)}.leaderboard-last{color:var(--muted);font-size:var(--fs-2)}.leaderboard-row--gold{background:linear-gradient(90deg,rgba(255,215,0,.12),transparent)}.leaderboard-row--silver{background:linear-gradient(90deg,rgba(192,192,192,.1),transparent)}.leaderboard-row--bronze{background:linear-gradient(90deg,rgba(205,127,50,.12),transparent)}@media(max-width:900px){.leaderboard-row,.leaderboard-row--head{grid-template-columns:64px 1.6fr 1fr;grid-template-areas:"rank player player" "rank meta meta" "wins wins rate" "loss loss last";row-gap:6px}.leaderboard-col-rank,.leaderboard-rank{grid-area:rank}.leaderboard-col-player{grid-area:player}.leaderboard-col-win,.leaderboard-stat:nth-of-type(1){grid-area:wins}.leaderboard-col-loss,.leaderboard-stat:nth-of-type(2){grid-area:loss}.leaderboard-col-rate,.leaderboard-winrate{grid-area:rate}.leaderboard-col-last,.leaderboard-last{grid-area:last}.leaderboard-id{grid-area:meta}.leaderboard-row{align-items:start}}@media(max-width:600px){.leaderboard-controls{grid-template-columns:1fr}.leaderboard-row,.leaderboard-row--head{grid-template-areas:"rank player" "wins rate" "loss last" "meta meta"}}
