/* BattleBytes — Battlegrounds. Tokens first; every color, size and font comes from here. */
/* Brand type (Ace kit, 7 Nov 2026): Archivo Expanded for display, Libre Franklin for text, Alfa Slab One for numbers. All SIL OFL. */
@font-face { font-family: "Archivo Expanded"; font-weight: 600; font-display: swap; src: url("/fonts/archivo-expanded-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo Expanded"; font-weight: 800; font-display: swap; src: url("/fonts/archivo-expanded-800.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-display: swap; src: url("/fonts/libre-franklin-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 500; font-display: swap; src: url("/fonts/libre-franklin-500.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-display: swap; src: url("/fonts/libre-franklin-600.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-display: swap; src: url("/fonts/libre-franklin-700.woff2") format("woff2"); }
@font-face { font-family: "Alfa Slab One"; font-weight: 400; font-display: swap; src: url("/fonts/alfa-slab-one-400.woff2") format("woff2"); }

:root {
  --f-display: "Archivo Expanded", "Arial", sans-serif;
  --f-ui: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --f-num: "Alfa Slab One", "Libre Franklin", serif;

  /* night and plum (brand tokens; ink-3 is a touch lighter than bone-faint so small text passes 4.5:1 on panels) */
  --oak: #17121B; --table: #1E1823; --table-2: #2C2231; --rule: #3A2D42; --rule-2: #4D3E57;
  --ink: #ECE1CA; --ink-2: #BCAB8E; --ink-3: #9C8E7C;
  --brass: #E3B85C; --brass-2: #B0863C; --on-brass: #17121B;
  --top4: #8BE06A; --bot4: #FF6E5C; --first: #E3B85C;
  --t-sm: .8125rem; --t-ui: .9375rem; --t-body: 1.0625rem; --t-lg: 1.3125rem; --t-xl: 1.6875rem; --t-2xl: 2.125rem; --t-3xl: 2.75rem; --t-4xl: 3.5rem;
  --gutter: clamp(16px, 4vw, 40px); --maxw: 1200px; --header-h: 60px;
  --r-tile: 10px; --r-chip: 999px; --r-btn: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* parchment (brand tokens: brass, never gold, on light grounds) */
  --oak: #F5EFE3; --table: #FBF8F2; --table-2: #FFFFFF; --rule: #DDD3C1; --rule-2: #C8BCA6;
  --ink: #241C29; --ink-2: #5E5263; --ink-3: #6A5E6F;
  --brass: #90631A; --brass-2: #B0863C; --on-brass: #FBF8F2;
  --top4: #2F7A1F; --bot4: #B8321F; --first: #90631A;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules (.btn, .tile…) must never beat the hidden attribute */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--oak); color: var(--ink); font: 400 var(--t-body)/1.55 var(--f-ui); font-variant-numeric: tabular-nums; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
.crop { display: block; overflow: hidden; flex: none; }
.crop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(1.625rem, 4.4vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.75rem); }
h3 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0; max-width: 68ch; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--brass); color: var(--on-brass); padding: 6px 10px; z-index: 50; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: color-mix(in srgb, var(--oak) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 28px; width: auto; }
.brand .logo-light, :root[data-theme="light"] .brand .logo-dark { display: none; }
:root[data-theme="light"] .brand .logo-light { display: block; }
@media (max-width: 380px) { .brand img { height: 22px; } }
.site-nav { display: flex; gap: 2px; margin-left: 8px; }
.site-nav a { text-decoration: none; padding: 8px 10px; border-radius: var(--r-btn); color: var(--ink-2); font-size: var(--t-ui); font-weight: 500; }
.site-nav a:hover { color: var(--ink); background: var(--table); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-btn); font: 700 var(--t-ui)/1 var(--f-ui); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-brass { background: var(--brass); color: var(--on-brass); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-brass:hover { background: color-mix(in srgb, var(--brass) 86%, var(--ink)); }
.btn-line { border-color: var(--ink-3); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--table); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-btn); border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--rule-2); }
.nav-toggle { display: none; }
.nav-cta { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: var(--oak); border-bottom: 1px solid var(--rule); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; font-size: var(--t-body); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brass); padding-left: 12px; }
  .header-end .btn-brass { display: none; }
  .site-nav a.nav-cta { display: inline-flex; justify-content: center; margin-top: 14px; padding: 0 16px; border-bottom: 0; border-radius: var(--r-btn); color: var(--on-brass); font-size: var(--t-ui); font-weight: 700; }
}
/* Where the header's Download button folds into the menu, a strip under the header keeps the download in sight on
   every page (the home page and /alpha/ lead with it themselves; /pro/ sells Pro and leaves it out). */
.dl-strip { display: none; }
@media (max-width: 980px) {
  .dl-strip { display: block; background: var(--table); border-bottom: 1px solid var(--rule); }
  .dl-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
  .dl-strip p { min-width: 0; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.35; text-wrap: balance; }
  .dl-strip strong { color: var(--ink); font-weight: 600; }
  .dl-strip .btn { flex: none; }
}
.mock-strip { background: var(--table-2); color: var(--ink-2); font-size: var(--t-sm); text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid var(--rule); }

/* page head */
.page-head { padding: clamp(32px, 6vw, 64px) 0 24px; }
.page-head p { color: var(--ink-2); margin-top: 12px; font-size: var(--t-lg); line-height: 1.45; max-width: 60ch; }
.data-note, .page-head .data-note { margin-top: 14px; color: var(--ink-3); font-size: var(--t-sm); line-height: 1.5; }
.section { padding: 32px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head a { font-size: var(--t-ui); color: var(--ink-2); }

/* placement scale: the 1–8 track that every stat sits on */
.scale { --v: 4.5; position: relative; width: 132px; height: 22px; flex: none; }
.scale::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: linear-gradient(90deg, var(--top4) 0 50%, var(--bot4) 50% 100%); opacity: .35; border-radius: 2px; }
.scale i { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; left: calc((var(--v) - 3) / 3 * 100%); background: var(--dot, var(--ink)); box-shadow: 0 0 0 3px var(--table); }
.scale b { position: absolute; top: 14px; font: 500 10px/1 var(--f-ui); color: var(--ink-3); transform: translateX(-50%); }
.scale b:nth-of-type(1) { left: 0; transform: none; } .scale b:nth-of-type(2) { left: 50%; } .scale b:nth-of-type(3) { right: 0; left: auto; transform: none; }
.scale.good { --dot: var(--top4); } .scale.bad { --dot: var(--bot4); }

/* distribution: eight finishing places as a tiny histogram */
.dist { display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 2px; width: 120px; height: 28px; flex: none; }
.dist span { background: var(--top4); border-radius: 2px 2px 0 0; min-height: 2px; }
.dist span:nth-child(n+5) { background: var(--bot4); }

/* the lobby: eight seats, the signature list */
.lobby { list-style: none; margin: 0; padding: 0; counter-reset: seat; }
.seat { position: relative; display: grid; grid-template-columns: 44px 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 6px; border-bottom: 1px solid var(--rule); text-decoration: none; }
a.seat:hover { background: var(--table); }
.seat .rank { font: 400 var(--t-2xl)/1 var(--f-num); color: var(--ink-3); text-align: right; }
.seat:nth-child(-n+4) .rank { color: var(--top4); }
.seat:first-child .rank { color: var(--first); }
.portrait { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--table-2); box-shadow: 0 0 0 2px var(--rule-2); }
.seat:first-child .portrait { box-shadow: 0 0 0 2px var(--first); }
.portrait .crop { width: 100%; height: 100%; }
.seat-name { min-width: 0; }
.seat-name strong { display: block; font-size: var(--t-body); font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-name span { display: block; color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-stat { display: flex; align-items: center; gap: 16px; }
.avg { font: 400 var(--t-xl)/1 var(--f-num); min-width: 3.2ch; text-align: right; }
.avg small { display: block; font: 400 var(--t-sm)/1.2 var(--f-ui); color: var(--ink-3); margin-top: 3px; }
@media (max-width: 640px) {
  .seat-name strong, .seat-name span { white-space: normal; }
  .avg { font-size: var(--t-lg); }
  .seat { grid-template-columns: 30px 44px minmax(0, 1fr) auto; gap: 10px; }
  .seat .rank { font-size: var(--t-xl); }
  .portrait { width: 44px; height: 44px; }
  .seat-stat .scale, .seat-stat .dist { display: none; }
}

/* home */
.home-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); padding: clamp(32px, 6vw, 72px) 0 40px; align-items: start; }
/* Hero headings size to their own column: "Battlegrounds" is 8.65em wide in Archivo Expanded 800, so 10.8cqi keeps the
   longest word inside the column at every width (it broke mid-word at 68px in a 480px column). */
.home-hero > :first-child, .product-hero > :first-child { container-type: inline-size; }
.home-hero h1 { font-size: clamp(1.75rem, 10.8cqi, 4.25rem); }
.home-hero .lede { margin-top: 18px; font-size: var(--t-lg); color: var(--ink-2); line-height: 1.45; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home-hero .actions { margin-top: 26px; }
.lobby-card { background: var(--table); border: 1px solid var(--rule); border-radius: 14px; padding: 6px 4px 4px; }
.lobby-card header { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px 8px; color: var(--ink-2); font-size: var(--t-sm); border-bottom: 1px solid var(--rule); }
.lobby-card header strong { color: var(--ink); font-size: var(--t-ui); }
.lobby-card .seat:last-child { border-bottom: 0; }
@media (max-width: 880px) { .home-hero { grid-template-columns: minmax(0, 1fr); } .home-hero h1 { font-size: clamp(1.75rem, 10.8cqi, 3.25rem); } }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* tribes strip */
.tribes { display: flex; flex-wrap: wrap; gap: 8px; }
.tribe-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-chip); background: var(--table); border: 1px solid var(--rule); text-decoration: none; font-size: var(--t-ui); }
.tribe-chip .crop { width: 28px; height: 28px; border-radius: 50%; }
.tribe-chip small { color: var(--ink-3); }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 18px; position: sticky; top: var(--header-h); background: var(--oak); z-index: 5; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: var(--r-chip); border: 1px solid var(--ink-3); background: transparent; color: var(--ink-2); font: 500 var(--t-ui)/1 var(--f-ui); cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--oak); border-color: var(--ink); }
.search { min-height: 36px; min-width: 0; flex: 1 1 200px; max-width: 280px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--ink-3); background: var(--table); color: var(--ink); font: 400 var(--t-ui) var(--f-ui); }
.filters .spacer { flex: 1; }
.filters label { color: var(--ink-3); font-size: var(--t-sm); }
@media (max-width: 760px) {
  .filters { position: static; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .filters [data-filter] { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .filters [data-filter]::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
  .search { max-width: none; }
}
select.chip { padding-right: 28px; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238C806E'/%3E%3C/svg%3E") no-repeat right 12px center; }

/* tier groups (meta tiers S–D) */
.tier-group { display: grid; grid-template-columns: 64px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.tier-label { font: 400 var(--t-3xl)/1 var(--f-num); padding-top: 14px; color: var(--ink-3); }
.tier-group[data-tier="S"] .tier-label { color: var(--first); }
.tier-group[data-tier="A"] .tier-label { color: var(--top4); }
.tier-group .lobby .seat:last-child { border-bottom: 0; }
.tier-group .seat .rank { font-size: var(--t-lg); }
@media (max-width: 640px) { .tier-group { grid-template-columns: 1fr; } .tier-label { font-size: var(--t-2xl); padding: 14px 0 4px; } }

/* stars for tavern tier */
.stars { display: inline-flex; gap: 1px; color: var(--brass); vertical-align: -1px; }
.stars svg { width: 12px; height: 12px; }

/* minion tiles */
.tier-row { padding: 22px 0 8px; }
.tier-row h2 { display: flex; align-items: center; gap: 12px; font-size: var(--t-xl); margin-bottom: 14px; }
.tier-row h2 small { font: 400 var(--t-ui) var(--f-ui); color: var(--ink-3); white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--table); border: 1px solid var(--rule); border-radius: var(--r-tile); overflow: hidden; text-decoration: none; }
.tile:hover { border-color: var(--rule-2); }
.tile .art { position: relative; aspect-ratio: 4 / 3; background: var(--table-2); overflow: hidden; }
.tile .art .crop { width: 100%; height: 100%; }
.tile .art .stats { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; }
.atk, .hp { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; display: grid; place-items: center; font: 700 var(--t-ui)/1 var(--f-ui); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.atk { background: #8F6A1F; } .hp { background: #8E2F3F; }
.tile .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile .name { font-weight: 700; line-height: 1.25; }
.tile .meta { color: var(--ink-3); font-size: var(--t-sm); }
.tile .text { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
.tile .text strong { color: var(--ink); font-weight: 700; }
.tile[hidden] { display: none; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-ui); }
table.data th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: var(--t-sm); padding: 10px 10px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
table.data th button { all: unset; cursor: pointer; }
table.data th button:focus-visible { outline: 2px solid var(--brass); }
table.data th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 9px; }
table.data th[aria-sort="descending"] button::after { content: " ▼"; font-size: 9px; }
table.data td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data td.num, table.data th.num { text-align: right; }
table.data .thing { display: flex; align-items: center; gap: 12px; min-width: 220px; }
table.data .thing .crop { width: 44px; height: 44px; border-radius: 8px; }
table.data .thing > span:not(.crop) { color: var(--ink-2); font-size: var(--t-sm); max-width: 52ch; }
table.data .thing > span > strong { display: block; color: var(--ink); }
table.data .thing > span > span { display: block; color: var(--ink-2); font-size: var(--t-sm); max-width: 52ch; }
table.data tr[hidden] { display: none; }

/* comps */
.comp { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.comp .grade { font: 400 var(--t-3xl)/1 var(--f-num); color: var(--ink-3); }
.comp[data-tier="S"] .grade { color: var(--first); } .comp[data-tier="A"] .grade { color: var(--top4); }
.comp h3 { font-size: var(--t-xl); }
.comp .why { color: var(--ink-2); margin-top: 6px; font-size: var(--t-ui); }
.comp .cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-card { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: var(--r-chip); background: var(--table); border: 1px solid var(--rule); font-size: var(--t-sm); text-decoration: none; }
.mini-card .crop { width: 26px; height: 26px; border-radius: 50%; }
.mini-card.core { border-color: var(--brass-2); }
.comp .side { text-align: right; display: grid; justify-items: end; gap: 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--r-chip); font-size: var(--t-sm); border: 1px solid var(--rule-2); color: var(--ink-2); }
@media (max-width: 640px) { .comp { grid-template-columns: 40px minmax(0, 1fr); } .comp .side { grid-column: 2; justify-items: start; text-align: left; } }

/* detail pages */
.detail-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px 0 24px; }
.detail-head .big-art { width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--rule-2); }
.detail-head .big-art.square { border-radius: 16px; }
.detail-head .big-art .crop { width: 100%; height: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 18px; }
.fact { display: grid; gap: 2px; }
.fact b { font: 400 var(--t-2xl)/1 var(--f-num); }
.fact b .stars svg { width: 20px; height: 20px; }
.fact-text b { font: 700 var(--t-lg)/1.2 var(--f-ui); }
.fact-text b a { text-decoration-thickness: 1px; }
.fact span { color: var(--ink-3); font-size: var(--t-sm); }
.fact .stars { color: var(--brass); }
.power { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--brass); background: var(--table); border-radius: 0 8px 8px 0; max-width: 64ch; }
.power .power-name { display: block; margin-bottom: 4px; font-weight: 700; color: var(--ink); }
.crumbs { padding-top: 20px; font-size: var(--t-sm); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
@media (max-width: 640px) { .detail-head { grid-template-columns: 1fr; gap: 18px; } .detail-head .big-art { width: 128px; } }

/* overlay product */
.product-hero { padding: clamp(40px, 7vw, 88px) 0 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .product-hero { grid-template-columns: minmax(0, 1fr); } }
.product-hero h1 { font-size: clamp(1.625rem, 10.8cqi, 2.75rem); }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule-2); background: var(--table-2); }
.shot figcaption { margin-top: 8px; color: var(--ink-3); font-size: var(--t-sm); line-height: 1.45; max-width: 72ch; }
.shots { display: grid; gap: 28px; max-width: 960px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }
.feature h3 { font-size: var(--t-lg); margin-bottom: 6px; }
.feature p { color: var(--ink-2); }
.note-box { border: 1px dashed var(--rule-2); border-radius: 10px; padding: 16px 18px; color: var(--ink-2); font-size: var(--t-ui); max-width: 72ch; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); max-width: 68ch; }
.price-card { border: 1px solid var(--brass-2); border-radius: 14px; padding: 24px; background: var(--table); max-width: 420px; }
.price-card .big { font: 400 var(--t-3xl)/1 var(--f-num); margin: 6px 0 10px; }
.waitlist { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.waitlist input { flex: 1 1 200px; min-height: 40px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--rule-2); background: var(--oak); color: var(--ink); font: inherit; }

/* prose */
.prose { max-width: 70ch; padding-bottom: 48px; }
.prose h2 { margin: 36px 0 12px; font-size: var(--t-xl); }
.prose p, .prose ul { margin: 0 0 14px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose code { overflow-wrap: anywhere; font-size: .92em; }

/* patch */
.change { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.change .crop { width: 52px; height: 52px; border-radius: 8px; }
.change .what { color: var(--ink-2); font-size: var(--t-ui); }
.change .tag { font-size: var(--t-sm); padding: 2px 10px; border-radius: var(--r-chip); white-space: nowrap; }
@media (max-width: 640px) { .change { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; } .change .crop { width: 44px; height: 44px; grid-row: span 2; } .change .tag { grid-column: 2; justify-self: start; } }
.tag.buff { background: color-mix(in srgb, var(--top4) 18%, transparent); color: var(--ink); }
.tag.buff::before, .tag.nerf::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--top4); }
.tag.nerf::before { background: var(--bot4); }
.tag.nerf { background: color-mix(in srgb, var(--bot4) 18%, transparent); color: var(--ink); }
.tag.new { background: color-mix(in srgb, var(--brass) 20%, transparent); color: var(--brass); }
.tag.changed { background: var(--table-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }

/* footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--rule); padding: 36px 0 44px; color: var(--ink-2); font-size: var(--t-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid nav strong { color: var(--ink); font-size: var(--t-ui); }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.legal-line { margin-top: 28px; color: var(--ink-3); max-width: 90ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* alpha */
.wrap.narrow { max-width: 820px; }
.steps { list-style: none; counter-reset: step; margin: 8px 0 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 22px 0 26px 64px; border-top: 1px solid var(--rule); }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 400 var(--t-xl)/1 var(--f-num); color: var(--on-brass); background: var(--brass); }
.steps h2 { font-size: var(--t-xl); margin-bottom: 12px; }
.steps p + p { margin-top: 10px; }
.hint { color: var(--ink-3); font-size: var(--t-sm); margin-top: 10px; max-width: 62ch; }
.plain-list { margin: 0; padding-left: 1.2em; color: var(--ink-2); max-width: 72ch; }
.plain-list li { margin-bottom: 8px; }
table.data.features td.c, table.data.features th.c { text-align: center; white-space: nowrap; }
table.data.features .yes { color: var(--top4); font-size: 12px; }
table.data.features .no { color: var(--ink-3); }
.seat.unranked { grid-template-columns: 56px minmax(0, 1fr) auto; padding-left: 14px; }
.avg .plus { color: var(--ink-3); margin: 0 2px; }
@media (max-width: 640px) { .seat.unranked { grid-template-columns: 44px minmax(0, 1fr) auto; } .steps > li { padding-left: 54px; } .steps > li::before { width: 38px; height: 38px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* minion art: newer card crops sit on white, which showed as a strip at the tile edges at scale(1.3) */
.tile .art .crop img, .big-art.square .crop img, .change .crop img { transform: scale(1.45); }
/* features table: the Free/Pro headers may wrap on phones */
@media (max-width: 640px) { table.data.features th.c, table.data.features td.c { white-space: normal; padding-inline: 4px; } }
/* deck tracker facts row */
.facts-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.facts-row li { padding: 5px 12px; border-radius: var(--r-chip); background: var(--table); border: 1px solid var(--rule); color: var(--ink-2); font-size: var(--t-sm); }
/* tracker promo at the end of card pages */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin: 40px 0 8px; padding: 22px 24px; border-radius: 14px; background: var(--table); border: 1px solid var(--rule); }
.promo h2 { font-size: var(--t-xl); margin-bottom: 6px; }
.promo p { color: var(--ink-2); max-width: 60ch; margin: 0; }
.checksum code { overflow-wrap: anywhere; font-size: .92em; }
.promo .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-head .facts-row { margin-top: 14px; }
.shot figcaption strong { display: block; color: var(--ink); font-size: var(--t-ui); margin-bottom: 2px; }
[data-copy-link] { display: flex; width: fit-content; }
/* smallest phones: hero rows give the name every spare pixel ("Fungalmancer Flurgl" was cut at 320px) */
@media (max-width: 400px) { .seat { grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 6px; padding-right: 8px; } .seat.unranked { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; padding-left: 8px; } .portrait { width: 40px; height: 40px; } }
.steps .note-box { margin-top: 10px; }
.steps .btn { line-height: 1.2; padding-block: 8px; }
.steps .btn-line { text-align: left; }
/* Pro keys shop */
.shop { display: grid; gap: 16px; margin-bottom: 8px; }
.plans { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-body { display: grid; gap: 2px; padding: 16px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--table); height: 100%; }
.plan input:checked + .plan-body { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); background: var(--table-2); }
.plan input:focus-visible + .plan-body { outline: 2px solid var(--brass); outline-offset: 2px; }
.plan-len { font-weight: 700; }
.plan-price { font: 400 var(--t-2xl)/1.1 var(--f-num); }
.plan-per { color: var(--ink-3); font-size: var(--t-sm); }
.accept { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.accept input { margin-top: 4px; accent-color: var(--brass); }
.shop .btn { justify-self: start; }
.nowrap { white-space: nowrap; }
@media (max-width: 359px) { .plan-price { font-size: clamp(1.4rem, 8.5vw, var(--t-2xl)); } .plan-body { padding: 14px 10px; } }
/* hype headlines, in the promo reel's voice: uppercase, the line's key words in brass (on their own line in an h1) */
h1.hype { text-transform: uppercase; line-height: 1.02; letter-spacing: 0; }
h1.hype em, .hype-sm em { font-style: normal; color: var(--brass); }
h1.hype em { display: block; }
/* Archivo Expanded caps run about 0.94em a letter: "BATTLEGROUNDS." (14) must fit its column on one line at every width */
.home-hero h1.hype { font-size: clamp(1.25rem, 8cqi, 4.25rem); }
.promo h2.hype-sm { font-size: clamp(1.25rem, 6vw, var(--t-xl)); }
.product-hero h1.hype { font-size: clamp(1.25rem, 7cqi, 3.25rem); }
.hype-sm { text-transform: uppercase; letter-spacing: 0; }
/* the promo reel and the feature loops (muted; static/js/app.js plays them while on screen) */
.reel { position: relative; margin: 0; }
.reel video, .feature-media video, .feature-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--rule-2); background: var(--table-2); }
/* the reel's sound: a speaker in the top corner of the video (its captions and badge sit along the bottom) */
.sound-toggle { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; cursor: pointer; }
.sound-toggle:hover { background: rgb(0 0 0 / .75); }
.sound-toggle svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .sound-toggle { width: 32px; height: 32px; right: 6px; top: 6px; } .sound-toggle svg { width: 18px; height: 18px; } }
@media (max-width: 359px) { .sound-toggle { width: 28px; height: 28px; right: 4px; top: 4px; } .sound-toggle svg { width: 16px; height: 16px; } }
/* the look switcher under "Six looks" */
.looks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.looks button { padding: 5px 12px; border-radius: var(--r-chip); border: 1px solid var(--rule-2); background: transparent; color: var(--ink-2); font: 600 var(--t-sm)/1.3 var(--f-ui); cursor: pointer; }
.looks button[aria-pressed="true"] { background: var(--brass); border-color: transparent; color: var(--on-brass); }
/* phones: the home reel right under the buttons (the text column's children join the hero grid) */
@media (max-width: 880px) {
  .home-hero:has(> .hero-text) { container-type: inline-size; }
  .home-hero > .hero-text { display: contents; }
  .home-hero > .hero-text > * { order: 5; }
  .home-hero > .hero-text > h1 { order: 1; }
  .home-hero > .hero-text > .actions { order: 2; }
  .home-hero > .hero-text > p:first-of-type { order: 3; }
  .home-hero > .hero-media { order: 4; }
}
.sound-toggle .on, .sound-toggle[aria-pressed="true"] .off { display: none; }
.sound-toggle[aria-pressed="true"] .on { display: inline; }
video[data-loop]:not([controls]) { cursor: pointer; }
/* deck tracker features: one visual and one line a row, the visual on alternate sides; stacked on phones */
.features-list { display: grid; gap: clamp(40px, 7vw, 96px); margin: clamp(32px, 6vw, 72px) 0 clamp(16px, 3vw, 32px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img { aspect-ratio: auto; object-fit: initial; }
.feature h2 { font-size: clamp(1.375rem, 3vw, var(--t-2xl)); }
.feature p { margin: 12px 0 0; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 760px) { .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .feature:nth-child(even) .feature-media { order: 0; } }
.badge { display: inline-block; margin-left: 2px; padding: 0 8px; border-radius: var(--r-chip); border: 1px solid var(--rule-2); font: 700 .75rem/1.6 var(--f-ui); color: var(--ink-2); white-space: nowrap; vertical-align: 1px; }
.badge.pro { background: var(--brass); border-color: transparent; color: var(--on-brass); }
