:root{color-scheme:dark;--site-bg:#0c1119;--site-panel:#131d2b;--site-text:#e8edf4;--site-muted:#aab8ca;--site-border:#2a394c;--site-accent:#8cbfff}*{box-sizing:border-box}body{margin:0;background:var(--site-bg);color:var(--site-text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.6}a{color:var(--site-accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bcd9ff;outline-offset:4px}.skip-link{position:absolute;top:-100px;left:12px;z-index:100;background:#fff;color:#111;padding:8px}.skip-link:focus{top:12px}.discovery-header{display:flex;align-items:center;gap:28px;flex-wrap:wrap;max-width:1280px;margin:auto;padding:24px 32px;border-bottom:1px solid var(--site-border)}.discovery-brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:800;color:var(--site-text)}.brand-light{font-weight:400}.discovery-header nav{display:flex;gap:22px;flex-wrap:wrap;flex:1}.discovery-account{border:1px solid var(--site-border);padding:7px 16px;border-radius:20px}.discovery-content{max-width:1280px;margin:auto;padding:32px}.discovery-intro{padding:24px 0 36px;max-width:1000px}.discovery-intro h1{font-size:clamp(30px,4vw,48px);line-height:1.15;margin:14px 0 18px}.discovery-intro p{font-size:18px;color:var(--site-muted);max-width:800px}.eyebrow{display:block;font-size:12px;letter-spacing:2px;color:var(--site-accent);font-weight:700}.back-link{display:block;margin-bottom:24px}.discovery-game-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}.discovery-game,.discovery-panel{background:var(--site-panel);border:1px solid var(--site-border);border-radius:14px;padding:26px}.discovery-game{display:flex;flex-direction:column}.discovery-game h2{font-size:23px;line-height:1.3}.discovery-game p{color:var(--site-muted);flex:1}.game-emblem{font-size:34px;color:var(--site-accent)}.discovery-panel{margin:24px 0}.discovery-panel h2{margin-top:0}.discovery-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:18px 0}.discovery-button{display:inline-block;border:1px solid #7099cc;background:#19324d;color:#eaf2ff;border-radius:7px;padding:10px 16px;font-weight:650;cursor:pointer;text-align:center}.discovery-button:hover{background:#254665;text-decoration:none}.discovery-button:disabled{opacity:.7;cursor:wait}.summary-list{list-style:none;margin:0;padding:0}.summary-list li{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--site-border);padding:12px 0}.summary-list span{color:var(--site-muted)}.discovery-quests{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:24px}.discovery-quests progress{width:100%;accent-color:var(--site-accent)}.archive-filters{display:flex;flex-direction:column;gap:12px;margin-bottom:28px}.archive-filter-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.archive-filter-sub{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}.filter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.archive-filters input,.archive-filters select{height:42px;background:#111c29;color:var(--site-text);border:1px solid var(--site-border);border-radius:6px;padding:0 12px;max-width:100%}.archive-search{flex:1 1 260px;max-width:440px}.archive-search input{width:100%}.archive-set select{width:240px;text-overflow:ellipsis}.archive-filter-main .discovery-button{height:42px;padding:0 18px}.archive-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(150px * var(--card-zoom,1)),1fr));gap:26px}.archive-grid article{min-width:0}.archive-grid img{display:block;width:100%;height:auto;aspect-ratio:180/250;object-fit:contain;background:#080c13;border-radius:var(--card-radius,7px)}.archive-grid h2,.archive-grid h3{font-size:15px;line-height:1.4;margin:10px 0 5px}.archive-grid p,.archive-grid small{color:var(--site-muted);font-size:12px;margin:4px 0}.pagination{display:flex;justify-content:center;gap:30px;margin:40px 0}.card-placeholder{aspect-ratio:180/250;background:var(--site-panel);display:grid;place-items:center;padding:14px}.breadcrumbs{font-size:13px;margin:10px 0 30px}.card-detail{display:grid;grid-template-columns:minmax(240px,360px) 1fr;gap:48px;align-items:start}.detail-image{display:block;width:100%;height:auto;object-fit:contain}.card-detail h1{font-size:clamp(30px,4vw,45px);line-height:1.15;margin:16px 0}.card-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:16px;margin:25px 0}.card-details dt{color:var(--site-muted);font-size:12px}.card-details dd{margin:0;overflow-wrap:anywhere}.rules-text{white-space:pre-wrap;font-size:17px}.card-lore{color:var(--site-muted);font-style:italic}.site-notice{max-width:1216px;margin:18px auto;padding:14px 20px;border:1px solid var(--site-border);border-radius:8px}.discovery-footer{max-width:1280px;margin:40px auto 0;padding:26px 32px;border-top:1px solid var(--site-border);display:flex;flex-wrap:wrap;gap:20px;color:var(--site-muted)}.discovery-footer small{width:100%;font-size:12px}#root{min-height:0}#root .app{background:transparent}.discovery-content:has(.archive-filters){max-width:none}.discovery-content:has(.arena-app){max-width:none;padding:0}.discovery-content:has(.arena-app)>.discovery-intro{display:none}.archive-filters .card-zoom{display:flex;align-items:center;margin-left:auto;height:42px;border:1px solid var(--site-border);background:#111c29;border-radius:6px}.archive-filters .card-zoom[hidden]{display:none}.card-zoom button{border:0;background:transparent;color:var(--site-text);width:38px;height:40px;font-size:20px;line-height:1;cursor:pointer}.card-zoom button:disabled{opacity:.4;cursor:default}.card-zoom button:not(:disabled):hover{color:var(--site-accent)}.card-zoom output{min-width:46px;text-align:center;font-size:13px;color:var(--site-muted);font-variant-numeric:tabular-nums}.archive-rarities{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:0;margin:0;padding:0}.archive-rarities legend{float:left;margin-right:6px;padding:0}.archive-filters .rarity-chip{display:inline-flex;position:relative;border:1px solid var(--site-border);background:#111c29;border-radius:999px;padding:5px 14px;font-size:14px;cursor:pointer}.archive-filters .rarity-chip:hover{border-color:#7099cc}.archive-filters .rarity-chip input{position:absolute;opacity:0;width:1px;height:1px;min-width:0;margin:0;padding:0;pointer-events:none}.archive-filters .rarity-chip:has(input:checked){background:var(--site-accent);border-color:var(--site-accent);color:#0b0f16;font-weight:700}.archive-filters .rarity-chip:has(input:focus-visible){outline:3px solid #bcd9ff;outline-offset:2px}.pagination-top{margin:-8px 0 28px}@media(max-width:650px){.discovery-header{padding:18px;gap:18px}.discovery-header nav{order:3;flex-basis:100%;gap:16px;font-size:14px}.discovery-account{margin-left:auto}.discovery-content{padding:20px}.discovery-game-grid{grid-template-columns:1fr}.card-detail{grid-template-columns:1fr;gap:24px}.detail-image{max-width:320px;margin:auto}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.archive-filters label,.archive-filters input,.archive-filters select{width:100%;min-width:0}.archive-search,.archive-set{flex-basis:100%;max-width:none}.archive-filters .rarity-chip{width:auto}.discovery-footer{padding:20px}}

/* Preserve the existing tabletop visual shell for server-rendered pages. */
.server-page{line-height:normal;background:#0b1018}.classic-shell .discovery-content{max-width:none;padding:0}.server-signin{margin-left:auto}.server-page [hidden]{display:none!important}.server-page:has(#server-summary:not([hidden])) #root .loading-screen:not([data-load-error]){display:none}.server-page .site-header .back-link{margin-bottom:0}.server-page .site-header a:hover{text-decoration:none}

body[data-lobby-shell]:not([data-lobby-ready]) #root{display:none}#lobby-hero-actions-ssr,#lobby-hero-actions-client{display:contents}/* Keep the server lobby and interactive lobby in the same flow. */
#lobby-tables-ssr,#lobby-tables-client{display:contents}
body:has(#lobby-tables-client) #root .app{min-height:0}
.lobby-section .live-status{min-inline-size:98px}
.lobby-row-placeholder .match-title strong::before{content:"";display:inline-block;width:7em;height:.65em;border-radius:3px;background:#7895ab38}
.lobby-row-placeholder .match-title small{width:11em;border-radius:3px;background:linear-gradient(#7895ab26,#7895ab26) left center / 100% .55em no-repeat}
.lobby-row-placeholder .match-title .table-reference{width:6em}
@media(max-width:360px){.lobby-queue-row .match-row{min-block-size:104px}}
.hero-actions .hero-break{flex-basis:100%;height:0}
.hero-actions .casual-find{text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.hero-actions:has(.casual-recent){container-type:inline-size}
.hero-actions:has(.casual-recent) .tutorial-start{padding:10px 2px;border:0;border-radius:0;font-size:13px;font-weight:600;white-space:nowrap}
.hero-actions .casual-recent{flex-basis:100%;min-block-size:18px;margin-top:-4px;color:var(--muted);font-size:13px;line-height:18px}
@container(max-width:360px){.hero-actions .casual-recent{min-block-size:36px}}

body[data-lobby-shell] #root .app{min-height:0}

body[data-workspace-shell]:not([data-workspace-ready]) #root{position:absolute;visibility:hidden;left:0;top:0;width:100%}body[data-workspace-shell] #root .app{min-height:0}#workspace-static{padding-bottom:0}.workspace-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:24px 20px;min-height:1000px}.workspace-card-placeholder>div{aspect-ratio:2.5/3.5;border:1px solid var(--line);border-radius:7px;background:linear-gradient(145deg,var(--panel2),var(--panel))}.workspace-card-placeholder>span{display:block;height:64px;margin-top:9px}.workspace-pack-placeholder{border:1px solid var(--line);border-radius:10px;background:linear-gradient(145deg,var(--panel2),var(--panel))}@media(max-width:520px){.workspace-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}}

body[data-workspace-shell="shop"] .workspace-pack-placeholder{width:153px;justify-self:center}@media(max-width:520px){body[data-workspace-shell="shop"] .workspace-pack-placeholder{width:77px}}

[data-shop-live-ssr],[data-shop-live-client]{display:contents}body:not([data-workspace-ready]) [data-shop-live-client]{display:none}.history-grid a.history-pack{text-decoration:none}

/* Card archives share the tabletop palette without requiring a client mount. */
.card-page{--site-accent:#58d7bc;--site-muted:#9caab9;line-height:1.6}.card-breadcrumbs{margin:0 0 30px;font-size:13px;line-height:1.6}.card-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:7px 0;list-style:none;padding:0;margin:0}.card-breadcrumbs li{display:flex;align-items:center;color:#9caab9;min-width:0;overflow-wrap:anywhere}.card-breadcrumbs li+li:before{content:'›';color:#536173;margin:0 12px}.card-breadcrumbs a{color:#9caab9}.card-breadcrumbs a:hover{color:#58d7bc}.card-breadcrumbs [aria-current]{color:#e7edf5}.card-page .card-detail{grid-template-columns:minmax(240px,340px) minmax(0,1fr);gap:clamp(28px,5vw,64px)}.card-artwork{padding:20px;background:radial-gradient(ellipse at top,#1b2c32,#101720 75%);border:1px solid #26343f;border-radius:16px}.card-artwork .detail-image{border-radius:var(--card-radius,9px);box-shadow:0 12px 32px #0008}.artwork-caption{display:block;text-align:center;color:#82939f;font-size:11px;margin-top:16px}.card-title{border-bottom:1px solid #26343f;padding:2px 0 24px}.card-page .eyebrow{color:#58d7bc;font-size:10px;letter-spacing:1.8px}.card-page h1{letter-spacing:-1px;margin:10px 0 12px;font-size:clamp(32px,4vw,46px)}.card-set-label{margin:0;font-size:13px;color:#9caab9}.card-set-label a{color:#58d7bc}.card-page .card-details{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:1px;background:#121b25;border:1px solid #26343f;border-radius:10px;overflow:hidden;margin:24px 0}.card-page .card-details>div{background:#121b25;padding:12px 16px}.card-page .card-details dt{text-transform:uppercase;letter-spacing:1px;font-size:10px;color:#8e9fac;margin-bottom:5px}.card-page .card-details dd{font-size:14px;color:#e7edf5;font-weight:550;line-height:1.5}.card-rules{padding:22px 24px;background:#121b25;border:1px solid #26343f;border-radius:12px}.card-page h2{font-size:18px;font-weight:650;letter-spacing:-.2px;margin:0 0 14px}.card-rules h3{font-size:14px;color:#9caab9;margin-top:24px}.card-page .rules-text{font-size:15px;line-height:1.8;margin:0}.card-page .card-lore{font-size:13px;line-height:1.7;margin:20px 0 0;padding-top:16px;border-top:1px solid #26343f}.card-set-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px;padding:18px 22px;border:1px solid #2b4947;background:linear-gradient(110deg,#152b2b,#121b25);border-radius:12px}.card-set-panel p{margin:5px 0 0;font-size:16px}.card-set-panel p a{font-weight:650;color:#58d7bc}.card-set-action{font-size:13px;white-space:nowrap;color:#58d7bc}.card-related{margin-top:48px;padding-top:30px;border-top:1px solid #26343f}.card-related .archive-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:22px}.card-related h2{margin-bottom:24px}.card-related .archive-grid h3{color:#e7edf5}.card-page .site-notice{font-size:13px;line-height:1.6;margin:20px 0}@media(max-width:760px){.card-page .card-detail{grid-template-columns:1fr;gap:26px}.card-artwork{max-width:340px;width:100%;margin:auto}.card-related .archive-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card-breadcrumbs li+li:before{margin:0 8px}.card-rules{padding:18px}.card-set-panel{padding:16px;flex-wrap:wrap}}@media(max-width:400px){.card-related .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.card-page .discovery-intro{padding:0 0 24px}.card-page .discovery-intro h1{margin:0 0 14px}.card-page .discovery-intro p{margin:0;font-size:16px;line-height:1.6}.card-page .archive-grid h2{font-size:15px;line-height:1.4;margin:10px 0 5px}

.alternate-art{margin-top:24px;padding-top:20px;border-top:1px solid var(--site-border)}.alternate-art p,.alternate-art figcaption{font-size:12px;color:var(--site-muted)}.alternate-art figure{margin:16px 0 0}.alternate-art figcaption{text-align:center;margin-top:12px}.alt-art-pill{display:inline-block;padding:2px 8px;margin-bottom:6px;border:1px solid var(--site-border);border-radius:12px;font-size:11px;color:var(--site-accent)}

/* Open PvP tables waiting: Play lights up and carries a count. */
.site-header nav a.play-open, .site-header nav a.active.play-open { color: #ffd166; font-weight: 700; }
.site-header nav a.play-open:hover { color: #ffe29a; }
/* Games with their own website pages (manifest site_nav) have a longer nav: keep the brand whole and let the nav scroll. */
.site-header.has-site-nav .brand-stack { flex-shrink: 0; }
.site-header.has-site-nav nav { min-width: 0; gap: 16px; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 1600px) { .site-header.has-site-nav nav svg { display: none; } }
.open-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ffd166; color: #10161f; font-size: 11px; font-weight: 800; line-height: 1; margin-left: -2px; }

.card-provenance,.card-errata{margin-top:20px;padding:18px 22px;border:1px solid #26343f;border-radius:12px;background:#121b25}.card-provenance p,.card-errata p{font-size:14px;line-height:1.7;margin:0 0 12px}.card-provenance dl,.card-errata dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 12px}.card-provenance dt,.card-errata dt{text-transform:uppercase;letter-spacing:1px;font-size:10px;color:#8e9fac;margin-bottom:4px}.card-provenance dd,.card-errata dd{margin:0;font-size:14px;color:#e7edf5}.card-errata h3{font-size:15px;margin:0 0 6px;color:#e7edf5}.card-errata article+article{margin-top:16px;padding-top:16px;border-top:1px solid #26343f}.card-page .card-provenance .provenance-sources,.card-page .card-errata .errata-source{font-size:12px;color:#9caab9;margin:0}

@media(max-width:760px){body:has(.card-page) .site-header{display:none}.card-page .card-title{padding-bottom:14px}.card-page .card-title .eyebrow,.card-page .card-title .card-subtitle{display:none}.card-page .card-title h1{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.card-page .card-breadcrumbs{margin-bottom:16px}}
.card-faces{display:grid;gap:22px}.card-faces figure{margin:0;min-width:0}.card-faces figcaption{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 10px;margin-top:10px;font-size:12px;color:#9caab9}.card-faces figcaption strong{color:#e7edf5;font-weight:650}.card-faces .is-turned a{display:block;position:relative;aspect-ratio:1559/1110;overflow:hidden;border-radius:var(--card-radius-turned,9px);box-shadow:0 12px 32px #0008}.card-faces .is-turned .detail-image{position:absolute;top:50%;left:50%;width:71.2%;max-width:none;margin:0;translate:-50% -50%;rotate:90deg;box-shadow:none}.card-faces .turn-ccw .detail-image{rotate:-90deg}@media(min-width:761px){.card-page .card-detail:has(.card-faces .is-turned){grid-template-columns:minmax(240px,520px) minmax(0,1fr)}.card-faces:has(.is-turned) figure:not(.is-turned) a{display:block;max-width:300px;margin:auto}}
.hero .first-run{flex:1 1 100%;max-width:500px;padding:17px 20px 15px;border:1px solid #2d5a52;border-radius:14px;background:linear-gradient(150deg,rgba(23,63,61,.6),rgba(17,25,37,.94));box-shadow:0 0 30px rgba(125,228,209,.08)}.first-run-steps{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 13px;padding:0;list-style:none;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:#8b9bac}.first-run-steps li{display:inline-flex;align-items:center;gap:7px}.first-run-steps li::before{content:"";display:inline-grid;place-items:center;box-sizing:border-box;width:15px;height:15px;border:1.5px solid currentColor;border-radius:50%;font-size:9px;font-weight:800;line-height:1}.first-run-steps .is-done{color:#7de4d1}.first-run-steps .is-done::before{content:"✓";color:#0b1018;background:#7de4d1;border-color:#7de4d1}.first-run-steps .is-current{color:#edc88d;font-weight:650}.first-run-steps .is-current::before{box-shadow:0 0 0 3px rgba(237,200,141,.18)}.first-run-steps .is-optional::after{content:"optional";font-size:9.5px;text-transform:none;letter-spacing:0;opacity:.75}.hero .first-run h2{margin:0 0 3px;font-size:21px;font-weight:620;letter-spacing:-.4px}.hero .first-run>p{margin:0 0 15px;font-size:13px;line-height:1.5;color:#a9b9c4}.hero .first-run .primary.large{width:100%;justify-content:center}.first-run-more{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px}.first-run-more .text-button:disabled{opacity:.55;cursor:wait}
.session-chip .report-updates { margin-left: 0; }
.card-craft{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;margin:20px 0;padding:16px 22px;border:1px solid #5b4a22;border-radius:12px;background:linear-gradient(180deg,#1b1809,#120f06)}.card-craft h2{margin:0 0 6px;font-size:18px}.card-craft p{margin:0 0 6px}.card-craft strong{color:#f3d98b}.card-craft-copy{flex:1 1 300px;min-width:0}.card-craft-note{color:var(--site-muted);font-size:14px}.card-craft-note[hidden],.card-craft-status[hidden]{display:none}.card-craft-action{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.card-craft-status{margin:0;font-size:14px;color:#bfe9cf}@media(max-width:650px){.card-craft-action{align-items:stretch;width:100%}}
.deck-counts{font-size:15px!important;color:var(--site-muted)}.deck-filters select{width:200px}.deck-kinds a.rarity-chip{text-decoration:none;color:var(--site-text)}.deck-kinds a.rarity-chip.active{background:var(--site-accent);border-color:var(--site-accent);color:#0b0f16;font-weight:700}.deck-tile h2{overflow-wrap:anywhere;margin-bottom:4px}.deck-tile .deck-byline{flex:0 0 auto;margin:0 0 8px}.deck-tile .deck-description{flex:0 0 auto;color:var(--site-text);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.deck-tile .deck-counts{flex:1;font-size:14px}.deck-tile .deck-tile-pools{flex:0 0 auto;margin:0 0 6px;font-size:13px;font-weight:600;color:var(--site-accent)}.deck-kinds.deck-pools{margin-top:8px}.deck-page .deck-pools{font-size:14px;color:var(--site-muted);margin:0 0 8px}.deck-stats:has(>:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}.discovery-intro h1{overflow-wrap:anywhere}@media(max-width:650px){.deck-filters select{width:100%}}
.deck-page .back-link{margin-bottom:18px}.deck-page .deck-head{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px 48px;align-items:start;margin-bottom:36px}.deck-page .deck-head h1{font-size:clamp(34px,4vw,54px);line-height:1.08;margin:10px 0 14px;overflow-wrap:anywhere}.deck-page .deck-byline{margin:0 0 16px;color:var(--site-muted)}.deck-team{display:flex;flex-wrap:wrap;gap:12px 14px;list-style:none;margin:-4px 0 18px;padding:0}.deck-page .deck-team a{display:flex;flex-direction:column;align-items:center;gap:5px;width:72px;color:var(--site-text);text-decoration:none}.deck-team-face{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;overflow:hidden;border:2px solid #ffffff55;background:#0b0f16;box-shadow:0 2px 8px #0009;font-size:22px;font-weight:700}.deck-team-face img{width:100%;height:100%;object-fit:cover;object-position:50% 18%;transform:scale(2.2);transform-origin:50% 30%}.deck-page .deck-team a:hover .deck-team-face{border-color:var(--site-accent)}.deck-team-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--site-muted)}.deck-page .deck-team a:hover .deck-team-name{color:var(--site-text)}.deck-page .deck-byline strong{color:var(--site-text)}.deck-page .deck-description{color:var(--site-text);font-size:18px;line-height:1.55;max-width:68ch;margin:0 0 12px;overflow-wrap:anywhere}.deck-page .deck-credit{font-size:14px;color:var(--site-muted);margin:0}.deck-page .deck-head-side.discovery-panel{margin:0;padding:18px}.deck-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 16px;text-align:center}.deck-stats div{background:#00000038;border-radius:8px;padding:8px 4px}.deck-stats dd{margin:0;font-size:22px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}.deck-stats dt{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--site-muted)}.deck-page{--deck-like:#f0607e;--deck-like-ink:#1a0b10}.deck-like{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1.5px solid var(--deck-like);background:none;color:var(--deck-like);border-radius:7px;padding:0 12px;min-height:40px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}.deck-like-heart{font-size:17px;line-height:1}.deck-like-count{border-left:1px solid currentColor;padding-left:8px;margin-left:2px;font-variant-numeric:tabular-nums}.deck-page .deck-like:hover{background:#f0607e1f;text-decoration:none}.deck-like:disabled{opacity:.7;cursor:wait}.deck-like[aria-pressed=true]{background:var(--deck-like);color:var(--deck-like-ink)}.deck-page .deck-like[aria-pressed=true]:hover{background:#f37690}.deck-like[aria-pressed=true] .deck-like-heart{animation:deck-like-pop .3s ease-out}@keyframes deck-like-pop{40%{transform:scale(1.35)}}:root[data-reduced-motion] .deck-like[aria-pressed=true] .deck-like-heart{animation:none}.deck-page .deck-primary-row{flex:1 1 100%;display:flex;gap:8px}.deck-primary-row>.discovery-button{flex:1 1 auto;min-width:0}.deck-primary-row>.deck-like{flex:none}.deck-like-nudge{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;border:1px solid #f0607e66;background:#f0607e12;border-radius:8px;padding:10px 12px;margin:0}.deck-like-nudge p{flex:1 1 140px;margin:0;font-size:14px}.deck-page .deck-like-end{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 18px;margin:0 0 32px}.deck-like-end p{flex:1 1 260px;margin:0;font-size:16px;line-height:1.5}.deck-page .deck-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}.deck-action{border:1px solid var(--site-border);background:#ffffff12;color:var(--site-text);border-radius:7px;padding:8px 6px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;flex:1 1 0;min-width:0;white-space:nowrap;text-align:center}.deck-action:hover{border-color:var(--site-accent);text-decoration:none}.deck-action:disabled{opacity:.7;cursor:wait}.deck-action[aria-pressed=true]{background:var(--site-accent);border-color:var(--site-accent);color:#0b0f16}.deck-action.deck-action-minor{flex:1 1 100%;border:0;background:none;padding:2px 0 0;font-size:13px;font-weight:500;color:var(--site-muted)}.deck-action.deck-action-minor:hover{color:var(--site-text);text-decoration:underline}.deck-page .deck-exports{margin-top:8px}.deck-page .deck-exports .deck-action{flex:1 1 100%}.deck-export-note{margin:6px 0 0;font-size:12px;line-height:1.4;color:var(--site-muted)}.deck-action-note,.deck-action-status{flex-basis:100%;margin:0;font-size:13px;text-align:center;color:var(--site-muted)}
.deck-page .deck-body{display:block}.deck-page .deck-main{display:flex;flex-wrap:wrap;gap:0 48px;min-width:0}.deck-page .deck-section{flex:1 1 100%;min-width:0;margin:0 0 32px}.deck-page .deck-section.is-featured{flex:0 1 auto}.deck-page .deck-section h2,.deck-page .deck-versions h2{font-size:22px;margin:0 0 14px}.deck-page .deck-section h2 span{color:var(--site-muted);font-size:.8em;margin-left:4px}.deck-page .deck-group-title{font-size:17px;margin:18px 0 8px}.deck-page .deck-part-title{font-family:inherit;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--site-muted);text-shadow:none;margin:12px 0 8px}.deck-page .deck-group-title span,.deck-page .deck-part-title span{color:var(--site-muted);font-size:.85em;margin-left:4px}.deck-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:16px 14px}.is-featured .deck-cards{display:flex;flex-wrap:wrap}.is-featured .deck-cards li{width:150px}.deck-cards li{position:relative;min-width:0}.deck-cards a{display:block;border-radius:8px}.deck-cards img{display:block;width:100%;height:auto;aspect-ratio:180/250;object-fit:contain;border-radius:var(--card-radius,8px);background:#00000040;box-shadow:0 6px 16px #0006;transition:transform .12s ease}.deck-cards a:hover img{transform:translateY(-4px)}.deck-card-count{position:absolute;right:6px;bottom:6px;min-width:34px;text-align:center;background:#0b0f16eb;color:#fff;font-weight:800;font-size:14px;line-height:1;padding:6px 8px;border-radius:999px;border:1px solid #ffffff4d;pointer-events:none}.deck-card-placeholder{display:grid;place-items:center;aspect-ratio:180/250;padding:10px;text-align:center;background:var(--site-panel);border:1px solid var(--site-border);border-radius:8px;font-size:13px;color:var(--site-text)}.deck-page .deck-primer{flex:1 1 100%;margin:0 0 32px}.deck-primer p{max-width:72ch;margin:0 0 14px;overflow-wrap:anywhere}.deck-primer p:last-child{margin-bottom:0}.deck-page .deck-versions{flex:1 1 100%;margin:0 0 32px;padding:20px;max-width:640px}.deck-page .deck-list{margin:0 0 32px;padding:18px 22px}.deck-page .deck-list h2{margin:0 0 12px}.deck-list-columns{columns:4 230px;column-gap:36px}.deck-list-group{margin:0 0 14px}.deck-list-group:last-child{margin-bottom:0}.deck-list-group li{break-inside:avoid}.deck-list-hint{margin:12px 0 0;font-size:12px;color:var(--site-muted)}.deck-list h3{font-family:inherit;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--site-muted);text-shadow:none;margin:0 0 4px;break-after:avoid}.deck-list h3 span{margin-left:4px}.deck-list h4,.deck-list h5{font-family:inherit;text-shadow:none;margin:8px 0 2px;break-after:avoid}.deck-list h4{font-size:13px;font-weight:700;color:var(--site-text)}.deck-list h5{font-size:12px;font-weight:600;color:var(--site-muted);margin-top:4px}.deck-list h4 span,.deck-list h5 span{margin-left:4px;color:var(--site-muted);font-weight:500}.deck-list ul,.deck-versions ul{list-style:none;margin:0;padding:0}.deck-list li{display:flex;gap:10px;padding:2px 0;font-size:14px;line-height:1.4}.deck-list-count{flex:0 0 1.4em;text-align:right;color:var(--site-muted);font-variant-numeric:tabular-nums}.deck-page .deck-list a{color:var(--site-text)}.deck-page .deck-list a:hover{color:var(--site-accent)}.deck-versions li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #ffffff1a;font-size:14px}.deck-versions li:last-child{border-bottom:0}.deck-versions time{color:var(--site-muted);white-space:nowrap}
@media(max-width:1020px){.deck-page .deck-head{grid-template-columns:1fr;gap:24px}.deck-page .deck-head-side.discovery-panel{max-width:460px}}@media(max-width:650px){.deck-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}.deck-page .deck-section.is-featured{flex-basis:100%}.is-featured .deck-cards li{width:calc((100% - 20px)/3)}.is-featured .deck-cards{gap:12px 10px}.deck-card-count{font-size:12px;min-width:28px;padding:4px 6px}}
.deck-page .deck-byline-stars{color:#ffc94a;font-weight:700}.deck-list-stars{margin-left:auto;padding-left:8px;color:#ffc94a;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.deck-list h3 .deck-list-stars{margin-left:6px;padding:0;font-size:12px}.deck-page .deck-stats-panel{margin:0 0 32px;padding:18px 22px}.deck-page .deck-stats-panel h2{margin:0 0 12px}.deck-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px 40px}.deck-stat-block h3{font-family:inherit;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--site-muted);text-shadow:none;margin:0 0 6px}.deck-stat-block ul{list-style:none;margin:0;padding:0}.deck-stat-block li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:3px 10px;padding:3px 0;font-size:14px;line-height:1.4}.deck-stat-block li b{font-weight:600;font-variant-numeric:tabular-nums}.deck-stat-block li.deck-stat-part{padding-left:14px;color:var(--site-muted)}.deck-stat-total{font-size:30px;font-weight:800;color:#ffc94a;margin:0 0 4px;line-height:1.1}.deck-icon{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;vertical-align:-1px;box-shadow:0 0 0 1px #0008}.deck-icon-orange{background:#ff8a2a}.deck-icon-blue{background:#3ea8ff}.deck-icon-white{background:#eef3f8}.deck-icon-green{background:#6bcf57}.deck-icon-black{background:#15151a;box-shadow:0 0 0 1px #8a8a99}.deck-icon-none{background:transparent;box-shadow:inset 0 0 0 1px #8d9bb0}.deck-stat-bar{flex:1 1 100%;display:block;height:4px;border-radius:2px;background:#ffffff1a;overflow:hidden}.deck-stat-bar i{display:block;height:100%;box-shadow:none}.deck-stat-bar .deck-icon-black{background:#8a8a99}.deck-stat-bar .deck-icon-none{background:#8d9bb0}.card-preview{position:fixed;z-index:60;pointer-events:none}.card-preview .card-side{box-shadow:0 14px 40px #000b}.card-side{position:relative;overflow:hidden;border-radius:var(--card-radius,12px);background:#0b0f16}.card-side img{display:block;width:100%;height:auto;aspect-ratio:180/250;object-fit:contain}.card-side.is-turned{aspect-ratio:1559/1110;border-radius:var(--card-radius-turned,14px)}.card-side.is-turned img{position:absolute;top:50%;left:50%;width:71.2%;max-width:none;translate:-50% -50%;rotate:90deg}.card-side.turn-ccw img{rotate:-90deg}.card-modal{border:0;padding:0;background:none;color:var(--site-text);max-width:96vw;max-height:96vh;overflow:visible}.card-modal::backdrop{background:#05070ce0}.card-modal-frame{display:flex;align-items:center;gap:12px}.card-modal figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}.card-modal-sides{display:flex;align-items:center;justify-content:center;gap:16px;cursor:zoom-out}.card-modal-side{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}.card-modal-side>span{font-size:13px;color:var(--site-muted)}.card-modal .card-side{border-radius:var(--card-radius,14px);box-shadow:0 20px 60px #000c}.card-modal figcaption{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:6px 14px;text-align:center}.card-modal figcaption strong{font-size:18px}.card-modal figcaption span{color:var(--site-muted);font-size:14px}.card-modal figcaption a{color:var(--site-accent);font-weight:600}.card-modal-step,.card-modal-close{border:1px solid #ffffff40;background:#0b0f16cc;color:#fff;border-radius:999px;width:44px;height:44px;font-size:26px;line-height:1;cursor:pointer;flex:0 0 auto}.card-modal-step:hover,.card-modal-close:hover{border-color:var(--site-accent)}.card-modal-step:disabled{visibility:hidden}.card-modal-close{position:absolute;top:-6px;right:-6px;z-index:1;width:40px;height:40px;font-size:24px}

/* Browse decks by character and by card (gallery.html), and the card page's "Decks using this card" panel. */
.deck-roster{margin:0 0 22px}.deck-roster>ul{display:flex;gap:10px 12px;list-style:none;margin:8px 0 12px;padding:0 0 6px;overflow-x:auto;scrollbar-width:thin}.deck-roster li{flex:0 0 auto}.deck-roster a{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;width:76px;color:var(--site-text);text-decoration:none}.deck-roster a:hover .deck-team-face,.deck-roster a[aria-current] .deck-team-face{border-color:var(--site-accent)}.deck-roster a[aria-current] .deck-team-name{color:var(--site-text);font-weight:700}.deck-roster-count{position:absolute;top:0;right:4px;min-width:20px;padding:1px 5px;border-radius:999px;background:var(--site-accent);color:#0b0f16;font-size:11px;font-weight:700;line-height:16px;text-align:center}.deck-roster a{width:96px}.deck-roster .deck-team-name{max-width:96px;text-align:center}.deck-roster-subtitle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:96px;margin-top:-4px;color:var(--site-muted);font-size:11px;line-height:1.25;text-align:center}.deck-roster-search .archive-search{max-width:440px}.deck-roster-search input{height:42px;padding:0 12px}.deck-owned-confirm,.card-craft-confirm{flex-basis:100%;margin-top:4px;padding:12px 14px;border:1px solid #6b5a2b;border-radius:10px;background:#2a2414}.deck-owned-confirm p,.card-craft-confirm p{margin:0 0 10px}.deck-owned-confirm[hidden],.card-craft-confirm[hidden],.card-craft-action [hidden]{display:none}
.deck-tile .deck-tile-team{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 10px;padding:0}.deck-tile .deck-tile-team li{margin:0;padding:0}.deck-tile-team .deck-team-face{width:40px;height:40px;border-width:1px;font-size:15px}
.deck-subject{display:flex;align-items:center;gap:20px}.deck-subject-card img{display:block;width:90px;height:auto;border-radius:var(--card-radius,6px);box-shadow:0 4px 14px #000a}.deck-subject h1{margin-top:6px}
.card-decks{margin-top:20px;padding:16px;border:1px solid #2b4947;background:linear-gradient(110deg,#152b2b,#121b25);border-radius:12px}.card-decks p{margin:5px 0 0;font-size:16px}.card-decks p a{font-weight:650;color:#58d7bc}
.deck-owned{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:14px 24px;margin:0 0 18px;border-color:#5b4a22}.deck-owned-copy{flex:1 1 320px;min-width:0}.deck-owned p{margin:0 0 6px}.deck-owned strong{color:#f3d98b}.deck-owned-missing{list-style:none;margin:8px 0;padding:0;columns:2 260px;column-gap:24px}.deck-owned-missing li{display:flex;gap:10px;padding:2px 0;font-size:14px;line-height:1.4;break-inside:avoid}.deck-owned-missing a{color:var(--site-text)}.deck-owned-missing a:hover{color:var(--site-accent)}.deck-owned-price{margin-left:auto;padding-left:8px;color:var(--site-muted);white-space:nowrap;font-variant-numeric:tabular-nums}.deck-owned-price.is-uncraftable{font-style:italic}.deck-list li.is-missing a{color:var(--site-muted)}.deck-list-missing{align-self:flex-start;margin-left:auto;padding:0 6px;border:1px solid #8a6d2a;border-radius:6px;color:#f3d98b;font-size:11px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.card-decks-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px}.card-decks h2{margin:0;font-size:18px}.card-deck-previews{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:14px 0 0;padding:0}.card-deck-previews a{display:flex;flex-direction:column;gap:4px;height:100%;padding:12px;border:1px solid #2b4947;border-radius:10px;background:#0e1820;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}.card-deck-previews a:hover,.card-deck-previews a:focus-visible{border-color:#58d7bc;transform:translateY(-1px)}.card-deck-faces{display:flex;margin-bottom:4px}.card-deck-faces .deck-team-face{width:40px;height:40px;border-width:1px;font-size:15px;margin-right:-8px}.card-deck-previews strong{font-size:15px;line-height:1.25}.card-deck-previews small{color:var(--site-muted);font-size:12px}.card-deck-view{margin-top:auto;padding-top:6px;font-size:13px;font-weight:650;color:#58d7bc}.deck-stat-note{margin:8px 0 0;font-size:12px;color:var(--site-muted)}.deck-flips li a{color:inherit}
.latest-decks{margin:0 0 48px}.latest-decks .section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:4px}.latest-decks .card-deck-previews{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.deck-stats-grid{display:flex;flex-wrap:wrap;gap:18px 40px}.deck-stat-block{flex:1 1 220px;min-width:0}.deck-stat-block.deck-stat-narrow{flex:0 1 160px}
.deck-zoom{flex:1 1 100%;position:sticky;top:8px;z-index:5;display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-bottom:8px;pointer-events:none}.deck-zoom[hidden]{display:none}.deck-zoom>*{pointer-events:auto}.deck-zoom span{font-size:13px;opacity:.75;margin-right:4px}.deck-zoom button{width:34px;height:34px;border-radius:999px;border:1px solid #ffffff4d;background:#0b0f16eb;color:#fff;font-size:20px;font-weight:700;line-height:1;cursor:pointer}.deck-zoom button:hover:not(:disabled){background:#1d2635}.deck-zoom button:disabled{opacity:.35;cursor:default}
@media(min-width:651px){.deck-page .deck-cards{grid-template-columns:repeat(auto-fill,minmax(calc(130px*var(--deck-card-scale,1)),1fr));column-gap:max(22px,calc(16px*var(--deck-card-scale,1)))}.deck-page .is-featured .deck-cards li{width:calc(150px*var(--deck-card-scale,1))}}@media(max-width:650px){.deck-zoom{display:none}}
.deck-cards a{position:relative}.deck-cards img{position:relative;z-index:1}.deck-cards img.deck-card-under{position:absolute;inset:0;z-index:0;transform:translate(calc(var(--layer)*var(--stack-x,4px)),calc(var(--layer)*-1*var(--stack-y,11px)));filter:brightness(calc(1 - var(--layer)*.12));box-shadow:0 0 0 1px #ffffff59,0 2px 6px #0006;transition:none}.deck-cards li.is-stack .deck-card-count{z-index:2}.deck-cards a:hover img.deck-card-under{transform:translate(calc(var(--layer)*var(--stack-x,4px)),calc(var(--layer)*-1*var(--stack-y,11px)))}
.deck-page{--stack-scale:.7;--stack-y:calc(11px*var(--stack-scale));--stack-x:calc(4px*var(--stack-scale));--part-head:0px}@media(min-width:651px){.deck-page{--stack-scale:var(--deck-card-scale,1)}}.deck-page .deck-cards.has-parts{--part-head:26px}.deck-page .deck-cards li{padding-top:calc(var(--part-head) + var(--stack-room,0)*var(--stack-y))}.deck-page .deck-cards li>.deck-part-title{position:absolute;top:0;left:0;margin:0;white-space:nowrap;line-height:20px}
.card-combines{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:clamp(20px,4vw,44px);align-items:center;margin-top:48px;padding:clamp(18px,3vw,28px);border:1px solid #2b4947;background:linear-gradient(110deg,#152b2b,#121b25);border-radius:16px}.card-combines:has(.card-combines-art.is-wide){grid-template-columns:minmax(220px,420px) minmax(0,1fr)}.card-combines-art img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 12px 32px #0008}.card-combines h2{font-size:clamp(22px,3vw,30px);letter-spacing:-.4px;margin:6px 0 8px}.card-combines h2 a{color:#e7edf5}.card-combines-facts{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 18px;font-size:13px;color:#9caab9}.card-combines-pieces{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:12px;list-style:none;padding:0;margin:0 0 16px}.card-combines-pieces a{display:block;text-align:center;font-size:11px;line-height:1.3;color:#9caab9}.card-combines-pieces img{display:block;width:100%;height:auto;aspect-ratio:180/250;object-fit:contain;margin-bottom:6px;border-radius:var(--card-radius,6px);opacity:.8;transition:opacity .15s}.card-combines-pieces a:hover img,.card-combines-pieces .is-current img{opacity:1}.card-combines-pieces .is-current img{outline:2px solid #58d7bc;outline-offset:2px}.card-combines-pieces .is-current span{color:#58d7bc;font-weight:650}.card-form-detail .detail-image{max-width:100%}.card-forms-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.card-forms-grid img{aspect-ratio:1}@media(min-width:761px){.card-page .card-form-detail.is-wide{grid-template-columns:minmax(260px,560px) minmax(0,1fr)}}@media(max-width:760px){.card-combines,.card-combines:has(.card-combines-art.is-wide){grid-template-columns:1fr}.card-combines-art{max-width:420px}}
/* A Puzzle Foil ("Shimmer Wave", card_styles.py) on a server-rendered card: the positioned art box gets
   .tcg-puzzle-art (and .is-sideways for a landscape card's upright scan). The jigsaw seams and flashing pieces are
   puzzle-foil.svg, drawn from web/src/foil/puzzleFoilGeometry.ts; the gold tint and sweep are below. */
.tcg-puzzle-art{position:relative;isolation:isolate;overflow:hidden;box-shadow:0 0 0 1px #e9d39ab3,0 0 16px #c9a22766}
.tcg-puzzle-art::before,.tcg-puzzle-art::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit}
.tcg-puzzle-art::before{z-index:3;background:url(/playtests/puzzle-foil.svg) 0 0/100% 100% no-repeat}
.tcg-puzzle-art.is-sideways::before{background-image:url(/playtests/puzzle-foil-sideways.svg)}
.tcg-puzzle-art::after{z-index:4;background:linear-gradient(115deg,transparent 35%,#ffffffa0 50%,transparent 65%) 0 0/300% 100%,linear-gradient(135deg,#a6762a33,#fff0c633 45%,#b88a3a33 70%,#ffe9b033);mix-blend-mode:soft-light;animation:tcg-puzzle-art-sweep 5.5s ease-in-out infinite}
@keyframes tcg-puzzle-art-sweep{0%{background-position:120% 0,0 0}60%,100%{background-position:-20% 0,0 0}}
:root[data-reduced-motion] .tcg-puzzle-art::after{animation:none}
