/* Retro Pickleball platform, in Clubhouse: Ben's pick of the three designs (9 Nov 2026). Its tokens and
   rules stay on html[data-theme="1"] so a later design can sit beside it the same way. Breakpoints follow the device, not the content: 1200 desktop with the full
   nav rail, 840 tablet landscape with an icon rail, below that a phone-style app bar and bottom tabs. */

@font-face { font-family: "Archivo"; src: url(/site/fonts/archivo-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/site/fonts/archivo-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/site/fonts/barlow-condensed-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/site/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/site/fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jersey 25"; src: url(/site/fonts/jersey-25-400.woff2) format("woff2"); font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --rail: 0px; --gut: 18px; --tabbar: 78px;
  --r-common: #6C7686; --r-rare: #2A6FD6; --r-epic: #8A3DE0; --r-legend: #C98A00;
  /* FB (Dilawar): the player's own row, a neon arcade lime rather than the club green, so "you" never
     reads as just another row. Ink stays navy on it: 13:1 against the lime. */
  --you: #B9FF4F; --you-hi: #CCFF7A; --you-edge: #2FD45B; --you-ink: #0C2416; --you-ink-2: #2C4A33;
}
html[data-theme="1"] { /* Clubhouse: a printed club scorecard */
  --bg: #F6F0E0; --ink: #17233A; --ink-2: #55606F; --surface: #FFFCF3; --surface-2: #EFE7D2; --on-surface: #17233A; --on-surface-2: #55606F;
  --primary: #0E5C4C; --primary-hi: #0A4438; --on-primary: #FFFCF3; --accent: #B8381C; --gold: #A87900; --win: #0E6A40; --loss: #B02A1E;
  --rule: #17233A; --rule-card: #D9CFB6; --focus: #B8381C;
  --rail-bg: #FFFCF3; --rail-ink: #17233A; --rail-ink-2: #55606F; --rail-rule: #17233A; --rail-active: #0E5C4C; --rail-on-active: #FFFCF3;
  --panel: #17233A; --panel-ink: #F6F0E0; --panel-ink-2: #C9C6BC;
  --font-body: "Archivo", system-ui, sans-serif; --font-head: "Barlow Condensed", "Arial Narrow", sans-serif; --font-num: "Jersey 25", monospace;
  --h-weight: 700; --h-case: uppercase; --h-track: .01em; --h-scale: 1.12; --btn-size: 20px; --btn-track: .04em;
  --num-scale: 1.3;
  --radius: 4px; --radius-b: 4px; --card-border: 1px solid #17233A; --card-shadow: none; --btn-shadow: none;
  --hero-img: url(/site/img/bg/hero-gold.webp); --hero-tall: url(/site/img/bg/hero-gold-tall.webp); --foot-img: url(/site/img/footer/court-gold.webp);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font-body); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--h-weight); text-transform: var(--h-case); letter-spacing: var(--h-track); line-height: 1.04; text-wrap: balance; }
h1 { font-size: calc(clamp(36px, 8.4vw, 58px) * var(--h-scale)); }
h2 { font-size: calc(clamp(28px, 5.6vw, 42px) * var(--h-scale)); }
h3 { font-size: calc(23px * var(--h-scale)); line-height: 1.12; }
small { font-size: 14px; }
.i { width: 24px; height: 24px; fill: currentColor; flex: none; shape-rendering: crispEdges; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 90; padding: 10px 14px; background: var(--primary); color: var(--on-primary); }
.skip:focus { top: 8px; }
html[data-view="guest"] .only-member, html[data-view="member"] .only-guest { display: none !important; }

/* ---------- Frame ---------- */

.appbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 68px; padding: 0 var(--gut); background: var(--rail-bg); color: var(--rail-ink); border-bottom: 1px solid var(--rail-rule); }
.ab-logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* FB (Dilawar): the stacked logo at exactly 2x. The one-line wordmark read as a thin strip on a phone. */
.ab-word { width: 168px; height: 60px; image-rendering: pixelated; }
.ab-right { display: flex; align-items: center; gap: 10px; flex: none; }
.ab-coins { text-decoration: none; }
.ab-me .av { width: 44px; height: 44px; }

.rail { display: none; }
.page { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); margin-left: var(--rail); container-type: inline-size; }
main { max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }

.tabbar { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--rail-bg); color: var(--rail-ink-2); border-top: 1px solid var(--rail-rule); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 14px; font-weight: 600; color: inherit; }
.tab .i { width: 32px; height: 32px; }
.tab[aria-current="true"] { color: var(--rail-ink); }
.tab[aria-current="page"] { color: var(--rail-ink); box-shadow: inset 0 3px 0 var(--primary); }
html[data-theme="1"] .tab[aria-current="page"] { color: var(--primary); }

.sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 14px var(--gut) calc(24px + env(safe-area-inset-bottom)); border: 0; background: var(--rail-bg); color: var(--rail-ink); overflow-y: auto; }
.sheet::backdrop { background: rgba(0, 0, 0, .5); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 12px; }
.sheet-head img { width: 168px; height: 60px; image-rendering: pixelated; }
.icon-btn { display: grid; place-items: center; width: 52px; height: 52px; }
.sheet-account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sheet-me { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 14px; border: 1px solid var(--rail-rule); border-radius: var(--radius-b); text-decoration: none; }
.sheet-me span:not(.coins) { flex: 1; display: grid; }
.sheet-me .av { width: 56px; height: 56px; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 104px; padding: 12px 14px; border: 1px solid var(--rail-rule); border-radius: var(--radius-b); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.2; }
.tile .i { width: 36px; height: 36px; color: var(--primary); }

@media (min-width: 600px) { :root { --gut: 28px; } .sheet-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 840px) {
  :root { --rail: 92px; --gut: 32px; }
  .appbar, .tabbar, .sheet { display: none; }
  .page { padding-bottom: 0; }
  .rail { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--rail); padding: 12px 8px; background: var(--rail-bg); color: var(--rail-ink); border-right: 1px solid var(--rail-rule); overflow-y: auto; scrollbar-width: thin; }
  .rail-logo { display: block; margin: 0 auto 10px; }
  .logo-full { display: none; }
  .logo-mark { width: 52px; height: 52px; }
  /* FB (Dilawar): ball yellow with an ink edge, the hero's play button, so PLAY never blends into the
     green of the selected nav item under it. */
  .rail-play { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; margin-bottom: 8px; background: #FFC234; color: #17120A; border: 2px solid #17233A; border-radius: var(--radius-b); text-decoration: none; font: var(--h-weight) 18px/1 var(--font-head); text-transform: uppercase; box-shadow: 3px 3px 0 #17233A; transition: transform .08s, box-shadow .08s; }
  .rail-play:hover { background: #FFD56E; }
  .rail-play:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #17233A; }
  .rail-nav { display: grid; gap: 2px; }
  .rail-nav hr { width: 60%; margin: 6px auto; border: 0; border-top: 1px solid var(--rail-rule); }
  .nav { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: var(--radius-b); text-decoration: none; font-size: 12px; line-height: 1.1; text-align: center; font-weight: 600; color: var(--rail-ink-2); }
  .nav:hover { color: var(--rail-ink); background: color-mix(in srgb, var(--rail-ink) 8%, transparent); }
  .nav[aria-current="page"] { background: var(--rail-active); color: var(--rail-on-active); }
  /* A sub-page keeps its parent lit, softer than the page you are on. */
  .nav[aria-current="true"] { background: color-mix(in srgb, var(--rail-active) 24%, transparent); }
  .rail-account, .rail-me { display: none !important; }
}
@media (min-width: 1200px) {
  :root { --rail: 236px; --gut: 44px; }
  .rail { padding: 14px 14px 16px; }
  .rail-logo { margin: 2px auto 14px; }
  .logo-full { display: block; width: 168px; height: auto; }
  .logo-mark { display: none; }
  .rail-play { flex-direction: row; justify-content: center; gap: 10px; min-height: 58px; font-size: 24px; margin-bottom: 12px; }
  .nav { flex-direction: row; gap: 12px; padding: 0 12px; min-height: 42px; font-size: 16px; text-align: left; }
  .nav.minor { min-height: 36px; font-size: 15px; }
  .rail-nav hr { width: 100%; }
  .rail-account { display: grid !important; gap: 8px; margin-top: auto; padding-top: 12px; }
  .rail-account .btn { min-height: 46px; font-size: 18px; }
  html[data-view="guest"] .rail-account { display: grid !important; }
  html[data-view="member"] .rail-account { display: none !important; }
  html[data-view="member"] .rail-me { display: flex !important; }
  .rail-me { align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: auto; padding: 10px; border: 1px solid var(--rail-rule); border-radius: var(--radius-b); text-decoration: none; }
  .rail-me .av { width: 44px; height: 44px; }
  .rail-me span:not(.coins) { display: grid; line-height: 1.2; }
  .rail-me small { color: var(--rail-ink-2); }
}

/* ---------- Pieces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border: 2px solid transparent; border-radius: var(--radius-b); font: var(--h-weight) var(--btn-size)/1 var(--font-head); text-transform: uppercase; letter-spacing: var(--btn-track); text-decoration: none; white-space: nowrap; transition: transform .08s, background .12s; }
.btn:active { transform: translateY(2px); }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--btn-shadow); }
.btn.primary:hover { background: var(--primary-hi); }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn.lg { min-height: 62px; padding: 0 30px; font-size: calc(var(--btn-size) + 3px); }
.btn.sm { min-height: 46px; padding: 0 16px; font-size: calc(var(--btn-size) - 2px); }
.btn.block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; white-space: nowrap; font-weight: 600; text-underline-offset: 3px; }
.coins { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-num); font-size: calc(18px * var(--num-scale)); }
.coins b { font-weight: inherit; }
.coins .i { width: 22px; height: 22px; color: var(--gold); }
.appbar .coins .i, .rail .coins .i, .sheet .coins .i, .foot-panel .coins .i { color: #F4C81F; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; border: 1px solid currentColor; }
.tag .i { width: 16px; height: 16px; }
.rar { font-size: 13px; font-weight: 600; }
.rar.r0 { color: var(--r-common); } .rar.r1 { color: var(--r-rare); } .rar.r2 { color: var(--r-epic); } .rar.r3 { color: var(--r-legend); }
html[data-theme="1"] .rar.r3 { color: #8F6400; }

.card { background: var(--surface); color: var(--on-surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-title h3 { display: flex; align-items: center; gap: 8px; }
.card-title .i { color: var(--primary); }
.card .sub, .card p { color: var(--on-surface-2); }
.card p b { color: var(--on-surface); }
.g2, .g3, .g4 { display: grid; gap: 18px; }
/* .g3.dense holds mini tables that need more than a third of a tablet screen. */
@media (min-width: 700px) and (max-width: 999px) { .g3.dense { grid-template-columns: minmax(0, 1fr); } }
/* Fixed column counts, not auto-fit: auto-fit left a lone card on its own row (4 cards went 3 + 1). */
.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.split { display: grid; gap: 18px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }

.sec { padding-block: 34px; }
/* Hub shortcuts: icon above the label, so the long word "Invitationals" fits a narrow column. */
.quick .card { padding: 14px; }
.quick .card-title h3 { display: grid; gap: 6px; font-size: min(calc(20px * var(--h-scale)), 18px); }
.sec.bare { padding-block: 0; border: 0; }
.sec.bare .sec-head { margin-bottom: 12px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sub { color: var(--ink-2); margin-top: 6px; max-width: 62ch; }
html[data-theme="1"] .sec { border-top: 1px solid var(--rule); }
html[data-theme="1"] .sec:first-of-type { border-top: 0; }
@media (min-width: 840px) { .sec { padding-block: 48px; } }

.pagehead { display: grid; gap: 18px; padding-block: 26px 18px; }
.ph-copy { display: grid; justify-items: start; gap: 10px; min-width: 0; }
.pagehead h1 { display: flex; align-items: center; gap: 12px; }
.h-ic { width: .9em; height: .9em; color: var(--primary); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.ph-art { min-width: 0; }
@media (min-width: 900px) {
  .pagehead:has(.ph-art) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}
.ph-banner { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: var(--card-border); box-shadow: var(--card-shadow); }

.av { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; background: var(--surface-2); flex: none; }
.av.lg { width: 112px; height: 112px; }
.list { display: grid; }
.row { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 66px; padding: 8px 2px; border-top: 1px solid var(--rule-card); }
.row:first-child { border-top: 0; }
.row.match { grid-template-columns: 42px minmax(0, 1fr) auto; }
.pos { font-family: var(--font-num); font-size: calc(19px * var(--num-scale)); text-align: center; color: var(--on-surface-2); }
.who { display: grid; min-width: 0; line-height: 1.25; }
.who a, .who b { font-weight: 600; color: var(--on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--on-surface-2); }
.val { font-family: var(--font-num); font-size: calc(21px * var(--num-scale)); color: var(--on-surface); }
.val i { font-style: normal; opacity: .55; padding-inline: 2px; }
.row.me { background: var(--you); margin-inline: -18px; padding-inline: 20px; border-top-color: var(--you-edge);
  box-shadow: inset 5px 0 0 var(--you-edge), 0 0 0 1px var(--you-edge), 0 0 16px color-mix(in srgb, var(--you) 70%, transparent); position: relative; z-index: 1; }
.row.me .pos, .row.me .val, .row.me .who a, .row.me .who b { color: var(--you-ink); }
.row.me .who small { color: var(--you-ink-2); font-weight: 600; }
.row.me + .row { border-top-color: var(--you-edge); }
/* Below the top 20 the player's row sits outside the table, under it, with its own label. */
.you-out { margin-top: 14px; }
.you-label { margin-bottom: 4px; font: var(--h-weight) 15px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--on-surface-2); }
.you-out .row.me { border-top: 0; }
.pod.me .av { border: 3px solid var(--you-edge); box-shadow: 0 0 0 3px var(--you), 0 0 16px var(--you); }
.pod.me b { color: var(--you-ink); background: var(--you); padding: 0 6px; border-radius: var(--radius-b); }
.you-tag { font: var(--h-weight) 13px/1 var(--font-head); font-style: normal; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; color: var(--you); background: var(--you-ink); border-radius: var(--radius-b); }
.res .i { width: 26px; height: 26px; }
.res { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-b); font: var(--h-weight) 22px/1 var(--font-head); color: #fff; }
.res.w { background: #0E6A40; } .res.l { background: #B02A1E; }
/* One row however many stats there are, so three never break into 2 + 1. Four is too tight on a phone. */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
@media (max-width: 559px) { .stats:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 12px; background: var(--surface-2); border-radius: var(--radius-b); }
.stat b { display: block; font: 400 calc(30px * var(--num-scale))/1.05 var(--font-num); color: var(--on-surface); }
.stat span { font-size: 14px; color: var(--on-surface-2); }
.meter { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--primary); }
.bars { display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 10px; color: var(--on-surface-2); font-size: 15px; }
.bars b { color: var(--on-surface); font: 400 calc(18px * var(--num-scale)) var(--font-num); text-align: right; }

.tablist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding: 2px; }
.tablist::-webkit-scrollbar { display: none; }
.tablist button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: var(--radius-b); white-space: nowrap; font-weight: 600; border: 2px solid transparent; color: var(--ink-2); }
.tablist button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tablist button:hover:not([aria-selected="true"]) { border-color: var(--ink-2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 auto; min-height: 52px; min-width: 64px; padding: 0 14px; border: 2px solid var(--rule-card); border-radius: var(--radius-b); font-weight: 600; color: var(--on-surface); background: var(--surface); }
.seg button[aria-checked="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
/* Team colour swatches on the new-career form: the colour is the button, the tick is the choice. */
.seg button.swatch { flex: 0 0 52px; min-width: 52px; padding: 0; background: var(--sw); border-color: var(--rule-card); }
.seg button.swatch[aria-checked="true"] { background: var(--sw); border-color: var(--on-surface); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--on-surface); }
/* Home page mini board: five rows, no podium. */
.board.mini .list .row { padding-block: 6px; }
/* Earned achievements on /rewards. */
.ach.got { border-color: var(--primary); }
.ach:not(.got) > div:first-child { opacity: .5; }

.field { display: grid; gap: 6px; font-weight: 600; color: var(--on-surface); }
.field small { font-weight: 400; color: var(--on-surface-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: 0 14px; border: 2px solid var(--rule-card); border-radius: var(--radius-b); background: var(--surface); color: var(--on-surface); font: 400 17px var(--font-body); }
.field textarea { min-height: 130px; padding-block: 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; border-top: 1px solid var(--rule-card); }
.toggle:first-of-type { border-top: 0; }
.toggle span small { display: block; color: var(--on-surface-2); }
.toggle input { appearance: none; position: relative; flex: none; width: 56px; height: 32px; margin: 0; border-radius: 99px; background: var(--surface-2); border: 2px solid var(--on-surface-2); cursor: pointer; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--on-surface-2); transition: left .12s; }
.toggle input:checked { background: var(--primary); border-color: var(--primary); }
.toggle input:checked::after { left: 27px; background: var(--on-primary); }

.faq details { border-top: 1px solid var(--rule-card); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq p { padding-bottom: 16px; }

/* Device frames */
.phone { width: 220px; padding: 8px; background: #0B0F1A; border: 2px solid #313B5C; border-radius: 30px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); flex: none; }
.phone img { width: 100%; height: auto; border-radius: 22px; }
.tablet { padding: 12px; background: #0B0F1A; border: 2px solid #313B5C; border-radius: 22px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.tablet img { width: 100%; height: auto; border-radius: 8px; }
.laptop > div { padding: 12px 12px 14px; background: #0B0F1A; border: 2px solid #313B5C; border-radius: 16px 16px 0 0; }
.laptop img { width: 100%; height: auto; }
.laptop::after { content: ""; display: block; height: 18px; margin-inline: -5%; background: linear-gradient(#3A4466, #1B2138); border-radius: 0 0 16px 16px; }
.shelf { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 20px; scroll-snap-type: x proximity; }
.shelf > * { scroll-snap-align: start; }

/* Landing hero: the game's own main-menu picture, graded to the theme. */
.hero { position: relative; width: 100cqw; margin-left: calc(50% - 50cqw); color: #fff; background: var(--hero-tall) center top / cover no-repeat #0A0E1A; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(8, 12, 26, .42), rgba(8, 12, 26, .1) 34%, rgba(8, 12, 26, .78)); }
.hero-in { display: grid; gap: 22px; max-width: 1240px; margin-inline: auto; padding: 26px var(--gut) 34px; }
.hero-copy { display: grid; justify-items: center; gap: 12px; text-align: center; }
.hero-mark { width: min(84vw, 420px); height: auto; filter: drop-shadow(0 6px 0 rgba(8, 12, 26, .4)); }
.hero-line { font: var(--h-weight) calc(24px * var(--h-scale))/1.1 var(--font-head); text-transform: var(--h-case); text-shadow: 0 2px 0 rgba(8, 12, 26, .6); }
.hero-note { max-width: 44ch; font-size: 17px; text-shadow: 0 1px 2px rgba(8, 12, 26, .9); }
.hero .cta { justify-content: center; width: 100%; }
.hero .btn { flex: 1 1 200px; max-width: 320px; }
.hero .btn.ghost { color: #fff; background: rgba(8, 12, 26, .45); }
/* On art the main button is the ball's yellow in every theme: Clubhouse green disappears into the dusk sky. */
.hero .btn.primary, .scene-sign .btn.primary { background: #FFC234; color: #17120A; }
.hero .btn.primary:hover, .scene-sign .btn.primary:hover { background: #FFD56E; }
.screen { position: relative; align-self: center; padding: 10px; background: #0B0F1A; border: 2px solid #3A4466; border-radius: 16px; box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.screen video, .screen img { width: 100%; height: auto; border-radius: 8px; background: #111; }
.screen figcaption { position: absolute; left: 22px; top: 22px; padding: 2px 8px; font-size: 13px; font-weight: 600; background: rgba(8, 12, 26, .72); border-radius: 4px; }
.hero-cast { position: absolute; right: 12px; bottom: -14px; display: flex; }
.hero-cast .av { width: 58px; height: 58px; margin-left: -12px; border: 3px solid #0B0F1A; animation: bob 2.8s ease-in-out infinite; }
.hero-cast .av:nth-child(2) { animation-delay: .35s; } .hero-cast .av:nth-child(3) { animation-delay: .7s; } .hero-cast .av:nth-child(4) { animation-delay: 1.05s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (min-width: 1000px) {
  .hero { background-image: var(--hero-img); background-position: center 30%; min-height: min(78vh, 680px); display: grid; align-items: center; }
  .hero::before { background: linear-gradient(90deg, rgba(8, 12, 26, .7), rgba(8, 12, 26, .2) 62%, rgba(8, 12, 26, .35)); }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center; width: 100%; padding-block: 40px; }
  .hero-copy { justify-items: start; text-align: left; }
  .hero .cta { justify-content: flex-start; }
}

/* Mode cards */
.mode { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mode-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B0F1A; }
.mode-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .3s; }
.mode:hover .mode-art img { transform: scale(1.04); }
.mode-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.mode-body p { flex: 1; }
.mode-body ul { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--on-surface-2); }
.mode-body li { display: flex; align-items: center; gap: 5px; }
.mode-body li .i { width: 20px; height: 20px; color: var(--primary); }
.mode-body .btn { margin-top: 6px; }

/* Rankings and leagues */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; margin-bottom: 8px; }
.pod { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.pod .av { width: 64px; height: 64px; }
.pod.p1 .av { width: 84px; height: 84px; border: 3px solid var(--primary); }
.pod b { font-weight: 600; }
.pod span { font-family: var(--font-num); font-size: calc(18px * var(--num-scale)); }
.pod i { display: grid; place-items: start center; width: 100%; padding-top: 8px; font: 400 calc(28px * var(--num-scale)) var(--font-num); color: #fff; background: #124A91; border-radius: var(--radius-b) var(--radius-b) 0 0; }
.pod.p1 i { height: 96px; background: #C98A00; } .pod.p2 i { height: 68px; background: #6C7686; } .pod.p3 i { height: 50px; background: #A5582A; }
.zone { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 14px; font-weight: 600; border-radius: var(--radius-b); margin-block: 6px; }
.zone.up { color: #0B5A37; background: #CFF0DD; } .zone.down { color: #8E2015; background: #F9D8D2; }
.division { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.division li { display: grid; justify-items: center; gap: 4px; padding: 10px 2px; border-radius: var(--radius-b); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--on-surface); text-align: center; }
.division li .i { width: 30px; height: 30px; }
.division li[aria-current="true"] { background: var(--primary); color: var(--on-primary); }
.timer { display: flex; gap: 8px; }
.timer div { min-width: 62px; padding: 8px 4px; text-align: center; background: var(--surface-2); border-radius: var(--radius-b); }
.timer b { display: block; font: 400 calc(26px * var(--num-scale))/1 var(--font-num); color: var(--on-surface); }
.timer span { font-size: 13px; color: var(--on-surface-2); }

/* Rewards */
/* The daily reward's week: seven days in one row even in the hub's narrow column, so the cells are slim. */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal li { display: grid; justify-items: center; gap: 2px; padding: 9px 0; border-radius: var(--radius-b); background: var(--surface-2); font-size: 12px; color: var(--on-surface-2); text-align: center; white-space: nowrap; min-width: 0; }
.cal li .i { width: 22px; height: 22px; color: var(--gold); }
.cal li b { font: 400 calc(17px * var(--num-scale))/1.1 var(--font-num); color: var(--on-surface); }
/* Day 7 is the week's big one. */
.cal li:last-child:not(.today) { box-shadow: inset 0 0 0 2px var(--gold); }
.cal li.done { opacity: .62; }
.cal li.today { background: var(--primary); color: var(--on-primary); }
.cal li.today b, .cal li.today .i { color: inherit; }
.ach { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; }
.ach > div:first-child { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-b); background: var(--surface-2); color: var(--on-surface); }
.ach .i { width: 32px; height: 32px; }
.ach h3 { font-size: calc(20px * var(--h-scale)); }
.ach p { font-size: 15px; }
.ach.got > div:first-child { background: var(--primary); color: var(--on-primary); }
.ach:not(.got) > div:first-child { opacity: .6; }

/* Shop */
.item { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.item-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface-2); padding: 12px; }
.item-art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.item-art img.pix { image-rendering: pixelated; }
.item-art .av { height: 100%; width: auto; aspect-ratio: 1; }
.item.r1 .item-art { background: color-mix(in srgb, var(--r-rare) 18%, var(--surface)); }
.item.r2 .item-art { background: color-mix(in srgb, var(--r-epic) 18%, var(--surface)); }
.item.r3 .item-art { background: color-mix(in srgb, var(--r-legend) 26%, var(--surface)); }
.item-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 14px 14px; }
.item-body p { flex: 1; font-size: 15px; line-height: 1.35; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }

/* Profile */
.id-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.id-card .av { width: 112px; height: 112px; }
.id-card h1, .id-card h2, .id-card h3 { overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ribbons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ribbons li { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; background: var(--surface-2); border-radius: var(--radius-b); text-align: center; font-size: 15px; font-weight: 600; color: var(--on-surface); }
.ribbons .i { width: 36px; height: 36px; color: var(--gold); }
.ribbons .off { color: var(--on-surface-2); font-weight: 400; }
.ribbons .off .i { color: var(--on-surface-2); opacity: .6; }

/* Slots, schedule, steps */
.slot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 84px; padding: 10px 2px; border-top: 1px solid var(--rule-card); }
.slot:first-child { border-top: 0; }
.slot .av { width: 60px; height: 60px; }
.slot.empty .av-empty { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 2px dashed var(--on-surface-2); color: var(--on-surface-2); }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; background: var(--primary); color: var(--on-primary); border-radius: 50%; font: 400 calc(22px * var(--num-scale)) var(--font-num); }
.steps b { display: block; color: var(--on-surface); }
.ctrl dl { display: grid; }
.ctrl dl > div { display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; border-top: 1px solid var(--rule-card); }
.ctrl dl > div:first-child { border-top: 0; }
.ctrl dt { color: var(--on-surface-2); }
.ctrl dd { font-weight: 600; text-align: right; }
kbd { display: inline-block; min-width: 30px; padding: 1px 7px; text-align: center; font: 600 14px/1.5 var(--font-body); background: var(--surface-2); border: 1px solid var(--rule-card); border-bottom-width: 2px; border-radius: 4px; }
.wizard { max-width: 560px; margin-inline: auto; padding-block: 26px 40px; }
.wizard-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.wizard-steps li { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); }
.wizard-steps li.on { background: var(--primary); }
.wizard fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.wizard legend { padding: 0; margin-bottom: 4px; font: var(--h-weight) calc(30px * var(--h-scale))/1.08 var(--font-head); text-transform: var(--h-case); }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 3px solid transparent; border-radius: var(--radius-b); background: var(--surface-2); color: var(--on-surface); font-size: 14px; font-weight: 600; }
.pick button[aria-checked="true"] { border-color: var(--primary); }
.pick .av { width: 72px; height: 72px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--on-surface-2); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--rule-card); }
.check-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.check-table th, .check-table td { padding: 11px 8px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule-card); }
.check-table th { font-weight: 600; color: var(--on-surface-2); font-size: 14px; border-top: 0; }
.check-table a { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.status-dot .i { width: 18px; height: 18px; }
.prose { max-width: 70ch; display: grid; gap: 12px; }
.prose h2 { margin-top: 12px; font-size: calc(26px * var(--h-scale)); }
.prose p, .prose li { color: var(--on-surface-2); }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed currentColor; border-radius: var(--radius-b); font-size: 15px; }
.banner .i { flex: none; }
.news { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; }
.news img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news div { display: grid; gap: 6px; padding: 14px 16px 16px; }
.news small { color: var(--on-surface-2); }
.big-404 { display: grid; justify-items: center; gap: 14px; padding-block: 40px; text-align: center; }
.big-404 img { width: min(70vw, 280px); height: auto; border-radius: var(--radius); }

/* Device showcase: one account, three screens. */
.devices { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.devices .phone { width: 34vw; max-width: 170px; margin-left: -56px; position: relative; z-index: 2; }
.syncs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 16px; margin-top: 12px; }
.syncs li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--on-surface); }
.syncs .i { color: var(--win); }

/* ---------- The footer scene ----------
   FB (Dilawar): a render at up to 80% transparency, so the court only just shows through. The shot sits on
   its own layer at the same size, which keeps the ball lined up with the court at every crop. */
.foot { position: relative; margin-top: 30px; }
.scene { position: relative; height: min(max(430px, 37.68cqw), 680px); overflow: hidden; background: linear-gradient(var(--bg), var(--panel)); }
.scene-art { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
.scene-court, .scene-shot { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.scene-court { background-image: var(--foot-img); opacity: .3; }
.scene-shot { background-image: url(/site/img/footer/shot.webp); opacity: .75; animation: incoming 5s ease-in-out infinite alternate; }
@keyframes incoming { from { transform: translate(-1.2%, -1.6%); } to { transform: translate(1.2%, 1.6%); } }
.scene-sign { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding-top: 20px; }
.scene-sign img { width: clamp(220px, 24cqw, 336px); height: auto; filter: drop-shadow(0 4px 0 rgba(8, 12, 26, .35)); }
.foot-panel { background: var(--panel); color: var(--panel-ink); padding: 30px var(--gut) 26px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; max-width: 1240px; margin-inline: auto; }
.f-col h2 { font-size: calc(21px * var(--h-scale)); margin-bottom: 6px; color: #F4C81F; }
.f-col a { display: block; padding-block: 8px; color: var(--panel-ink-2); text-decoration: none; }
.f-col a:hover { color: var(--panel-ink); text-decoration: underline; }
.foot-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 1240px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--panel-ink) 22%, transparent); font-size: 15px; color: var(--panel-ink-2); }
.foot-end b { color: var(--panel-ink); }
.foot-end ul { display: flex; align-items: center; gap: 18px; margin-left: auto; }
/* Terms and Privacy are links, Cookie settings is a button that opens a dialog. All three get the same box,
   so they share one baseline and one 44px touch target instead of the button sitting lower. */
.foot-end li > a, .foot-end li > .linkish { display: inline-flex; align-items: center; min-height: 44px; color: inherit; line-height: 1.2; }
.foot-end li > a:hover, .foot-end li > .linkish:hover { color: var(--panel-ink); }
/* On a phone the row wraps under the left-aligned copyright, so the links start on the left edge with it
   rather than hanging off the right. */
@media (max-width: 599px) { .foot-end ul { flex-wrap: wrap; width: 100%; margin-left: 0; gap: 4px 22px; } }

/* Follow us and Share sit between the link columns and the legal row, one band, so neither reads as a
   stray link in a column. The brand marks keep their own shapes; only the colour follows the panel. */
.foot-social { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; max-width: 1240px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--panel-ink) 22%, transparent); }
.foot-social h2 { font-size: calc(21px * var(--h-scale)); margin-bottom: 10px; color: #F4C81F; }
.f-follow ul { display: flex; flex-wrap: wrap; gap: 10px; }
.f-follow a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 16px 6px 12px; border: 1px solid color-mix(in srgb, var(--panel-ink) 30%, transparent); border-radius: var(--radius-b); color: var(--panel-ink); text-decoration: none; font-weight: 600; line-height: 1.1; }
.f-follow a:hover { background: color-mix(in srgb, var(--panel-ink) 10%, transparent); }
.f-follow .mark { width: 24px; height: 24px; }
.f-follow span { display: grid; }
.f-follow small { font-size: 13px; font-weight: 400; color: var(--panel-ink-2); }
.f-share .btn { color: var(--panel-ink); }

/* The studio credit. FB (Dilawar): the same panel as on Ben's own site, in its colours: a dark navy card
   with a thin cyan rim, the RixlSoft wordmark in white and cyan with a cyan dot, and the enquiry button
   as an inset box ending in a red square. Square corners on purpose, unlike the rest of this site. The
   site's gradient is laid over an opaque navy here, because our footer is green, not near-black. On a
   phone the button drops under the name at full width. */
.credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; max-width: 1240px; margin: 18px auto 0; padding: 14px 18px; border: 1px solid rgba(0, 200, 240, .3); background: linear-gradient(135deg, rgba(0, 200, 240, .1), rgba(5, 17, 32, .7)), #0B1A26; color: #F4F1EA; }
.credit-l { display: grid; gap: 2px; }
.credit-k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9B978F; }
.credit-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; font-size: 18px; font-weight: 600; color: #F4F1EA; }
.credit-n i { font-style: normal; font-size: 14px; color: #9B978F; }
.rixl { display: inline-flex; align-items: center; font: 900 25px/1 var(--font-body); letter-spacing: -.01em; color: #fff; text-decoration: none; }
.rixl b { font-weight: 900; color: #fff; }
.rixl em { font-style: normal; font-weight: 900; color: #00C8F0; }
.rixl::after { content: ""; width: 5px; height: 5px; margin-left: 3px; background: #00C8F0; }
.rixl:hover { text-decoration: underline; text-decoration-color: #00C8F0; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.credit-b { display: inline-flex; align-items: center; gap: 5px 13px; min-height: 46px; padding: 9px 10px 9px 18px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #F4F1EA; font-size: 14px; text-decoration: none; line-height: 1.25; }
.credit-b span { color: #9B978F; }
.credit-b b { font-weight: 700; color: #F4F1EA; }
.credit-b em { display: grid; place-items: center; flex: none; width: 29px; height: 29px; background: #E5281C; color: #F4F1EA; font-style: normal; font-size: 14px; transition: transform .12s; }
.credit-b:hover { background: rgba(255, 255, 255, .11); }
.credit-b:hover em { transform: translate(2px, -2px); }
@media (max-width: 599px) {
  .credit-b { width: 100%; flex-wrap: wrap; }
  .credit-b span { flex-basis: 100%; }
  .credit-b em { margin-left: auto; }
}

/* The share dialog: copy the link, or hand it to one of the usual apps. */
.share-to { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.share-to a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 2px solid var(--rule-card); border-radius: var(--radius-b); color: var(--on-surface); text-decoration: none; font-weight: 600; }
.share-to a:hover { background: var(--surface-2); }
.share-to .i, .share-to .mark { width: 24px; height: 24px; }
/* The sheet's Share tile is a button among links, so it drops the button chrome to match them. */
button.tile { width: 100%; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }

/* ---------- Round 2: wayfinding, stores, ads, shop preview, checkout, auth ---------- */
.backbar { padding-top: 14px; margin-bottom: -18px; position: relative; z-index: 1; }
.backbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-right: 14px; font-weight: 600; color: inherit; text-decoration: none; }
.backbar a:hover span { text-decoration: underline; }
.backbar .i { width: 26px; height: 26px; }
.linkish { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 18px; border: var(--card-border); border-radius: var(--radius); background: var(--surface); color: var(--on-surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.modal::backdrop { background: rgba(6, 10, 24, .6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }

.mark { flex: none; width: 28px; height: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; min-width: 176px; padding: 6px 16px 6px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; background: #0B0D14; color: #fff; text-decoration: none; }
.store:hover { background: #1B1F2C; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 12px; letter-spacing: .02em; opacity: .85; }
.store b { font-size: 20px; font-weight: 600; }
.foot-apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1240px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--panel-ink) 22%, transparent); }
.foot-apps h2 { font-size: calc(21px * var(--h-scale)); color: #F4C81F; }

/* Ad units keep the standard IAB sizes, so a network's creative drops straight in. */
.ad { display: grid; gap: 4px; width: 100%; min-width: 0; }
.ad-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.card .ad-top { color: var(--on-surface-2); }
.ad-top a { color: inherit; }
.ad-body { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--rule-card); border-radius: var(--radius-b); background: var(--surface); color: var(--on-surface); text-decoration: none; }
.ad-body:hover { background: var(--surface-2); }
.ad-logo { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--radius-b); background: var(--surface-2); color: var(--on-surface); }
.ad-logo .i { width: 32px; height: 32px; }
.ad-copy { display: grid; min-width: 0; line-height: 1.25; }
.ad-copy span { color: var(--on-surface-2); }
.ad-cta { flex: none; margin-left: auto; padding: 8px 12px; border-radius: var(--radius-b); background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 15px; white-space: nowrap; }
.ad-leaderboard { max-width: 728px; margin-inline: auto; }
.ad-leaderboard .ad-body { min-height: 90px; }
.ad-rectangle { max-width: 300px; margin-inline: auto; }
.ad-rectangle .ad-body { min-height: 250px; flex-direction: column; justify-content: center; text-align: center; }
.ad-rectangle .ad-logo { width: 84px; height: 84px; }
.ad-rectangle .ad-logo .i { width: 52px; height: 52px; }
.ad-rectangle .ad-cta { margin: 6px auto 0; }
.ad-banner { max-width: 320px; margin-inline: auto; }
.ad-banner .ad-body { min-height: 50px; padding: 4px 8px; gap: 8px; font-size: 14px; }
.ad-banner .ad-logo { width: 38px; height: 38px; }
.ad-banner .ad-logo .i { width: 24px; height: 24px; }
.ad-banner .ad-copy span { display: none; }
.ad-banner .ad-cta { padding: 5px 8px; font-size: 13px; }
html[data-ads="off"] .ad { display: none; }
.ad-slot { margin-top: 30px; }

.pips { display: inline-flex; gap: 4px; }
.pips i { width: 14px; height: 14px; border: 2px solid var(--on-surface-2); border-radius: 2px; }
.pips i.on { background: var(--gold); border-color: var(--gold); }
.sb { display: grid; grid-template-columns: 84px minmax(0, 1fr) 46px; align-items: center; gap: 8px; min-height: 30px; font-size: 15px; font-weight: 600; color: var(--on-surface); }
.sb-track { height: 12px; overflow: hidden; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule-card); }
.sb-track i { display: block; height: 100%; background: var(--primary); }
.sb b { text-align: right; font: 400 calc(18px * var(--num-scale)) var(--font-num); }
.sbs { display: grid; gap: 2px; }

/* Shop cards are buttons, because a tap opens the preview rather than a new page. */
.shop-grid { display: grid; gap: 18px; align-items: start; }
.shop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.shop-cards .item { width: 100%; padding: 0; text-align: left; font: inherit; color: var(--on-surface); cursor: pointer; }
.shop-cards .item:hover { filter: brightness(1.04); }
.shop-cards .item[aria-pressed="true"] { outline: 3px solid var(--primary); outline-offset: 1px; }
.item-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.shop-cards .item-foot { margin-top: auto; padding-top: 8px; min-height: 40px; }
.shop-cards .tag { font-size: 13px; }
.pv { display: none; }
.pv-body { display: grid; gap: 12px; }
.pv-top { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: center; }
.pv-art { display: grid; place-items: center; aspect-ratio: 1; padding: 8px; border-radius: var(--radius-b); background: var(--surface-2); }
.pv-art img { width: 100%; height: 100%; object-fit: contain; }
.pv-art img.pix { image-rendering: pixelated; }
.pv-top h3 { margin-block: 4px; }
.pv-top p { font-size: 15px; line-height: 1.35; }
.pv-box { padding: 12px; border: 1px solid var(--rule-card); border-radius: var(--radius-b); }
.pv-box h4 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; letter-spacing: .06em; color: var(--on-surface-2); }
.pv-box h4 .i { width: 22px; height: 22px; }
.pv-box small { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--on-surface-2); }
.pv-cta { display: grid; gap: 8px; }
.pv-cta > div { display: grid; gap: 8px; }
.pv-cta p { font-size: 15px; }
.pv-cta .pair { grid-template-columns: 1fr 1fr; }
.pv-equipped { display: grid; place-items: center; min-height: 52px; border-radius: var(--radius-b); background: var(--surface-2); font-weight: 700; letter-spacing: .04em; color: var(--on-surface); }
.pv-sheet { align-self: end; }
@container (min-width: 860px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .pv { display: block; position: sticky; top: 20px; }
}

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pack { position: relative; display: grid; justify-items: center; gap: 2px; padding: 18px 12px 14px; text-align: center; text-decoration: none; }
.pack > .i { width: 56px; height: 56px; color: var(--gold); }
.pack b { font: 400 calc(30px * var(--num-scale)) var(--font-num); }
.pack small { color: var(--on-surface-2); }
.pack .btn { width: 100%; margin-top: 10px; pointer-events: none; }
.pack .tag { position: absolute; top: 8px; right: 8px; font-size: 13px; }
.pack.best { outline: 3px solid var(--gold); outline-offset: -3px; }
.noads { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 12px; }
.noads > .i { width: 44px; height: 44px; }
@media (max-width: 560px) { .noads { grid-template-columns: auto minmax(0, 1fr); } .noads .btn { grid-column: 1 / -1; } }

.wizard.wide { max-width: 980px; }
.checkout { display: grid; gap: 18px; align-items: start; }
@container (min-width: 800px) { .checkout { grid-template-columns: minmax(0, 1fr) 320px; } }
.order { display: grid; gap: 10px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; }
.order-line.total { padding-top: 10px; border-top: 1px solid var(--rule-card); font-weight: 700; color: var(--on-surface); }
.ok-big { display: grid; place-items: center; width: 84px; height: 84px; margin-inline: auto; border-radius: 50%; background: color-mix(in srgb, var(--win) 18%, var(--surface)); color: var(--win); }
.ok-big.warn { background: var(--surface-2); color: var(--on-surface); }
.ok-big .i { width: 52px; height: 52px; }
.pay-note { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--on-surface-2); }
.pay-note .i { flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth { display: grid; gap: 18px; max-width: 980px; margin-inline: auto; padding-block: 26px 40px; }
.auth-art { display: none; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); color: var(--panel-ink); }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art div { position: absolute; inset: auto 0 0; display: grid; gap: 8px; padding: 60px 22px 22px; background: linear-gradient(transparent, rgba(6, 10, 24, .88)); color: #fff; }
.auth-art li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.auth-art .i { flex: none; color: #F4C81F; }
.auth-card { width: 100%; max-width: 520px; margin-inline: auto; padding: 22px; }
@container (min-width: 820px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .auth-art { display: block; min-height: 560px; }
}
.auth .wizard { padding: 0; }
.auth fieldset, .flow { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-head { display: grid; gap: 6px; }
.auth-head h1, .auth legend { padding: 0; font: var(--h-weight) calc(30px * var(--h-scale))/1.08 var(--font-head); text-transform: var(--h-case); }
.auth-center { text-align: center; justify-items: center; }
.social { display: grid; gap: 8px; }
.social .btn { justify-content: center; background: var(--surface); color: var(--on-surface); border-color: var(--rule-card); }
/* "Continue with Google" in the uppercase head font is wider than a 320px card, and a fieldset will not
   shrink below its content, so it pushed the whole form past the card edge. It wraps there instead. */
.social .btn { padding: 0 14px; white-space: normal; line-height: 1.15; text-align: center; }
.wizard fieldset { min-width: 0; }
.or { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--on-surface-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule-card); }
html[data-oauth] [data-auth] [data-step="email"] { display: none !important; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 8px; font-size: 16px; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--win); }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.row-between a { display: inline-flex; align-items: center; min-height: 44px; }
.pw { position: relative; }
.pw input { padding-right: 56px; }
.pw button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--on-surface-2); cursor: pointer; }
.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: 14px; font-weight: 400; color: var(--on-surface-2); }
.pw-rules li { display: flex; align-items: center; gap: 4px; }
.pw-rules .i { width: 18px; height: 18px; }
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.code input { width: 100%; min-width: 0; height: 60px; padding: 0; text-align: center; border: 2px solid var(--rule-card); border-radius: var(--radius-b); background: var(--surface); color: var(--on-surface); font: 400 calc(30px * var(--num-scale)) var(--font-num); }
.code input:focus { border-color: var(--focus); outline: none; }
/* Live sign-in (roadmap B5). Errors read in the loss red the results use; a busy form dims its buttons. */
.auth-note { margin: 0; color: #B02A1E; font-size: 15px; font-weight: 600; }
.auth-small { color: var(--on-surface-2); font-size: 14px; text-align: center; }
.auth [aria-busy="true"] .btn.primary { opacity: .7; cursor: progress; }
.pick button:disabled { opacity: .55; cursor: not-allowed; }
.pick span { display: inline-flex; align-items: center; gap: 3px; }
.pick span .i { width: 14px; height: 14px; }
/* A page the head script is already leaving (a guest on /hub, a member on /signin) never flashes. */
html[data-leaving] body { visibility: hidden; }

/* Sponsors */
.spot { display: grid; gap: 18px; padding: 0; overflow: hidden; }
.spot-art { position: relative; min-height: 180px; background: var(--panel); }
.spot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-body { display: grid; gap: 10px; justify-items: start; padding: 0 18px 18px; }
@container (min-width: 760px) { .spot { grid-template-columns: 1.1fr 1fr; align-items: center; } .spot-art { min-height: 280px; } .spot-body { padding: 18px; } }
.offer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; container-type: inline-size; }
.offer-head { display: flex; align-items: center; gap: 12px; }
.offer-head > div { min-width: 0; overflow-wrap: anywhere; }
/* Logo + gap + "Courtline Clubs" on one line measured ~242px, and the 2- and 4-up grids give a card
   123-224px of content up to 1440 wide: the row pushed /sponsors 24px sideways at 375 and wrapped names on
   desktop. Stack the head on the card's own width, not the screen's, so a wider grid gets the row back. */
@container (max-width: 239px) { .offer-head { flex-direction: column; align-items: flex-start; gap: 8px; } .offer-head .ad-logo { width: 48px; height: 48px; } }
.offer-head .ad-logo { width: 60px; height: 60px; }
.offer-head small { display: block; color: var(--on-surface-2); }
.offer-price { font: var(--h-weight) calc(24px * var(--h-scale))/1.1 var(--font-head); color: var(--on-surface); }
.offer .btn { margin-top: auto; }
.formats { display: grid; gap: 18px; }
.formats > div { display: grid; gap: 8px; }
.formats h3 { font-size: calc(20px * var(--h-scale)); }
.formats .ad { display: grid; }

.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: center; }
.vs > div { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.vs .av { width: 96px; height: 96px; }
.vs > b { font: 400 calc(30px * var(--num-scale)) var(--font-num); color: var(--on-surface-2); }
.searching { display: grid; justify-items: center; gap: 10px; padding-block: 18px; text-align: center; }
.searching .i { width: 56px; height: 56px; animation: turn 1.6s steps(8) infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.linkbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.linkbox input { min-width: 0; width: 100%; min-height: 52px; padding: 0 12px; border: 2px solid var(--rule-card); border-radius: var(--radius-b); background: var(--surface-2); color: var(--on-surface); font: inherit; }

/* Live rankings: loading rows, the empty and error states, and the count under the table. */
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.board-head p { font-size: 15px; }
.board-empty { display: grid; justify-items: center; gap: 10px; padding: 26px 8px; text-align: center; }
.board-empty > .i { width: 52px; height: 52px; color: var(--primary); }
.board-empty p { max-width: 36ch; }
.row.skel i { display: block; height: 12px; margin: 4px 0; border-radius: 4px; background: var(--surface-2); }
.row.skel .who i:first-child { width: 60%; height: 14px; } .row.skel .who i + i { width: 40%; }
.row.skel .val i { width: 48px; height: 18px; }
.row.skel .av { display: block; }
.board[aria-busy=true] .row.skel { animation: blink 1.2s steps(3) infinite; }
@keyframes blink { 50% { opacity: .45; } }
.row.gap { display: block; min-height: 0; padding: 2px 0; text-align: center; color: var(--on-surface-2); letter-spacing: .3em; }
.board-more { margin-top: 12px; text-align: center; font-size: 14px; }
/* Rows and podium places that open a player: the name is the link, stretched over the whole row so the
   tap target is the row, while a screen reader still hears one link with the player's name. */
.row.link, .pod.link { position: relative; }
.row.link .who a::after, .pod.link b a::after { content: ''; position: absolute; inset: 0; }
.row.link:hover, .pod.link:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.row.me.link:hover { background: var(--you-hi); }
.row.link:has(a:focus-visible), .pod.link:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.row.link a:focus-visible, .pod.link a:focus-visible { outline: 0; }
.pod b a { color: inherit; text-decoration: none; }
.find { display: grid; gap: 10px; margin-bottom: 18px; }
.find-note { font-size: 14px; color: var(--on-surface-2); }
.find[aria-busy=true] .find-note { animation: blink 1.2s steps(3) infinite; }
/* The player page draws its loading state with the same grey bars as the rankings. */
.id-card.skel .av { display: block; background: var(--surface-2); border-radius: 50%; }
.id-card.skel i { display: block; height: 14px; margin: 8px 0; width: 50%; border-radius: 4px; background: var(--surface-2); }
.id-card.skel i:first-child { height: 26px; width: 70%; }
.player[aria-busy=true] .skel, .player[aria-busy=true] .row.skel { animation: blink 1.2s steps(3) infinite; }
/* The side column is too narrow for four numbers in a row, and a record like 30-11 needs the width. */
.stats.two { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pod b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Friends and settings (roadmap A13, B10, B15). Row buttons sit right and wrap under the name on a phone. */
.btn.danger { background: var(--loss); color: #FFFCF3; box-shadow: var(--btn-shadow); }
.btn.danger:hover { background: color-mix(in srgb, var(--loss) 85%, #000); }
.friends .btn:disabled, .fr-ctl .btn:disabled, [data-acct] .btn:disabled, [data-delete] .btn:disabled, [data-contact] .btn:disabled { opacity: .6; cursor: progress; }
.friends[aria-busy=true] .row.skel { animation: blink 1.2s steps(3) infinite; }
.auth-note.ok { color: var(--win); }
.fr-ctl { display: contents; }
.fr-ctl .auth-note { flex-basis: 100%; }
.friends > .auth-note { margin-bottom: 14px; }
.friends .row.match .cta { justify-content: flex-end; gap: 8px; }
.friends .tag .i, .fr-ctl .tag .i { width: 14px; height: 14px; }
@container (max-width: 520px) { .friends .row.match { grid-template-columns: 42px minmax(0, 1fr); } .friends .row.match .cta { grid-column: 2; justify-content: flex-start; } }

/* ---------- Ranked, leagues, countries ---------- */
/* A country as two letters in a pill (title carries the name): Windows draws flag emoji as letters anyway. */
.cc { display: inline-flex; align-items: center; flex: none; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--rule-card); background: var(--surface-2); color: var(--on-surface-2); font: 600 11px/1.3 var(--font-body); letter-spacing: .04em; vertical-align: middle; }
.who .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pod .cc { justify-self: center; }
.board-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.field.mini { flex: 1 1 160px; max-width: 260px; gap: 4px; font-size: 14px; }
.field.mini select { min-height: 44px; font-size: 16px; padding: 0 10px; }
.zone .i { width: 18px; height: 18px; }
.rk-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.rk-num b { font: 400 calc(46px * var(--num-scale))/1 var(--font-num); color: var(--on-surface); }
.rk-num span { color: var(--on-surface-2); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.facts li { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-b); background: var(--surface-2); }
.facts span { font-size: 13px; color: var(--on-surface-2); }
.facts b { font: 400 calc(22px * var(--num-scale))/1.1 var(--font-num); color: var(--on-surface); }
.rk-stakes b.up { color: #0B7A45; } .rk-stakes b.down { color: #B23324; }
.rk-note { margin-top: 10px; font-size: 14px; color: var(--on-surface-2); }
/* A 16-character pixel-ish name and its country pill don't fit side by side on a phone: the pill wraps under. */
.vs [data-n] { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; max-width: 100%; overflow-wrap: anywhere; }
/* Win and Loss side by side, the format under them at every width, so the card reads the same everywhere. */
.rk-stakes { grid-template-columns: 1fr 1fr; }
.rk-stakes li:last-child { grid-column: 1 / -1; }
.rk-stakes [data-rk-fmt] { font-size: calc(20px * var(--num-scale)); }
.vs small { color: var(--on-surface-2); }
.tiers .row { min-height: 52px; }
.tiers .row.me { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .scene-shot, .hero-cast .av, .searching .i, .board[aria-busy=true] .row.skel, .find[aria-busy=true] .find-note, .friends[aria-busy=true] .row.skel, .player[aria-busy=true] .skel { animation: none; }
  .btn, .mode-art img { transition: none; }
}

/* /sponsors, the page for brands. Its samples are drawn, not .ad slots (those hide while ads are off). */
.spon-list { display: grid; gap: 10px; margin-top: 12px; }
.spon-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--on-surface-2); }
.spon-list .i { width: 20px; height: 20px; margin-top: 2px; color: var(--win); }
.spon-list b { color: var(--on-surface); }
.spon-formats { display: grid; gap: 18px; }
.spon-formats .card { display: grid; grid-template-rows: auto 1fr; }
.spon-formats .mock-ad { align-self: center; }
.spon-size { font: 400 15px var(--font-body); color: var(--ink-2); white-space: nowrap; }
@media (min-width: 900px) {
  .spon-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spon-formats .card:first-child { grid-column: 1 / -1; }
}

/* FB (Dilawar): drawn samples instead of empty slots. Each brand colour reads two custom properties, and the
   colourway picker in "Your products in the game" swaps them for the whole page, so a brand sees every sample
   in its own colours at once. :has() needs no script; a browser without it keeps coral. */
body { --brand: #E8492A; --brand-2: #9E2C14; }
body:has(.spon-cw input[value="teal"]:checked) { --brand: #14968E; --brand-2: #0A5A55; }
body:has(.spon-cw input[value="violet"]:checked) { --brand: #7347D6; --brand-2: #432A8C; }
body:has(.spon-cw input[value="sky"]:checked) { --brand: #2A7FD9; --brand-2: #174C88; }

/* Pixel sprites: one class per palette letter (lib/sponsor-art.mjs). */
.pix { display: block; height: auto; image-rendering: pixelated; }
.pix .ink { fill: #17233A; } .pix .wh { fill: #FFFCF3; } .pix .yl { fill: #FFC234; } .pix .hi { fill: #FFF1B8; }
.pix .gd { fill: #C98A00; } .pix .ba { fill: #D7F24A; } .pix .bd { fill: #93AE22; } .pix .hn { fill: #2B3A67; }
.pix .br, .cr .br { fill: var(--brand); } .pix .brd { fill: var(--brand-2); }

/* Sample creatives. SVG, so a 728-wide unit shrinks onto a phone without its text spilling out. */
.spon-format-head { display: flex; gap: 14px; align-items: center; }
.spon-format-head h3 { margin: 0; }
.spon-format-head .sub { margin: 4px 0 0; }
.where { flex: none; width: 84px; height: auto; }
.where .wh-frame { fill: var(--surface-2); stroke: var(--rule-card); stroke-width: 1.5; }
.where .wh-rule { stroke: var(--rule-card); stroke-width: 1.5; }
.where .wh-box { fill: var(--rule-card); }
.where .wh-on { fill: var(--brand); }
.mock-ad { display: grid; gap: 4px; margin: 16px auto 0; width: 100%; }
.mock-leaderboard { max-width: 728px; }
.mock-rectangle { max-width: 300px; }
.mock-banner { max-width: 320px; }
.mock-ad figcaption { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.2; color: var(--on-surface-2); }
.mock-ad figcaption span:last-child { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.cr { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 16px rgba(23, 35, 58, .18); }
.cr .cr-bg { fill: #17233A; }
.cr .cr-line { stroke: #FFFCF3; stroke-opacity: .12; stroke-width: 2; fill: none; }
.cr text { font-family: var(--font-head); }
.cr .cr-logo { font: 400 21px var(--font-num); fill: #FFFCF3; letter-spacing: .06em; }
.cr .cr-h { font-weight: 700; fill: #FFFCF3; }
.cr .cr-s { fill: #C9D2E6; }
.cr .cr-cta-bg { fill: #FFC234; }
.cr .cr-cta { font-weight: 700; font-size: 20px; fill: #17233A; letter-spacing: .04em; }

/* The in-game placements as small phone screens. */
.spon-game { display: grid; align-content: start; }
/* Was .mini, which also matched the home page .board.mini and the .field.mini pickers and painted them dark. */
.mini-phone { display: grid; align-content: start; gap: 10px; width: 100%; max-width: 210px; aspect-ratio: 9 / 16; margin: 14px auto 0; padding: 12px; box-sizing: border-box; background: #0F1830; border: 6px solid #0B0F1A; border-radius: 22px; color: #FFFCF3; font-family: var(--font-head); text-align: center; overflow: hidden; }
.mini-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mini-tag { padding: 1px 6px; border-radius: 3px; background: #FFFCF3; color: #17233A; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.mini-skip { padding: 2px 8px; border: 1px solid rgba(255, 252, 243, .5); border-radius: 99px; }
.mini-fill { display: grid; place-items: center; min-height: 0; }
.mini-fill .cr { box-shadow: none; }
.mini-foot { margin: 0; font-size: 13px; color: #9FB0D3; }
.mini-score { display: grid; gap: 2px; padding: 12px 6px; background: #17233A; border: 2px solid #313B5C; border-radius: 10px; }
.mini-score small { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #9FB0D3; }
.mini-score b { font: 400 44px/1 var(--font-num); }
.mini-score span { font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--you); }
.mini-xp { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.mini-xp li { padding: 2px 8px; border-radius: 99px; background: #26324F; }
.mini-banner { display: grid; justify-items: start; gap: 3px; margin-top: auto; align-self: end; }
.mini-phone:has(.mini-banner) { grid-template-rows: auto auto 1fr; }
.mini-phone:has(.mini-fill) { grid-template-rows: auto 1fr auto; }
.mini-phone:has(.mini-offer) { grid-template-rows: 1fr auto auto; padding-bottom: 28px; }
.mini-offer { display: grid; justify-items: center; align-content: center; gap: 6px; }
.mini-offer .pix { width: 60px; }
.mini-offer b { font: 400 34px/1 var(--font-num); color: #FFC234; }
.mini-offer span { font-size: 15px; line-height: 1.25; color: #C9D2E6; }
.mini-offer i { font-style: normal; font-weight: 700; color: #FFFCF3; }
.mini-btn { justify-self: center; margin-top: 8px; padding: 8px 26px; background: #FFC234; color: #17233A; border: 2px solid #17233A; border-radius: 6px; box-shadow: 3px 3px 0 #000; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.mini-no { font-size: 13px; color: #9FB0D3; text-decoration: underline; }

/* Colourway picker. */
.spon-cw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; padding: 0; border: 0; }
.spon-cw legend { display: flex; align-items: center; gap: 8px; float: left; margin-right: 6px; font-weight: 700; }
.spon-cw legend .i { width: 20px; height: 20px; color: var(--gold); }
.spon-cw label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 2px solid var(--rule-card); border-radius: 99px; background: var(--surface); cursor: pointer; font-weight: 600; }
.spon-cw label:has(input:checked) { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.spon-cw label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.spon-cw input { position: absolute; opacity: 0; pointer-events: none; }
.spon-sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); }

/* The match screenshot with sample branding. Positions are percentages of the 520x1125 capture, and the text
   is sized in container units so it scales with the frame. */
.spon-court { align-items: center; margin-bottom: 18px; }
.spon-shot-frame { width: min(300px, 100%); margin: 0 auto; }
.spon-shot { position: relative; container-type: inline-size; }
.spon-shot img { display: block; }
.cb { position: absolute; display: flex; align-items: center; justify-content: space-around; gap: 4cqw; overflow: visible; font: 400 5cqw/1 var(--font-num); letter-spacing: .08em; text-transform: uppercase; color: #FFFCF3; white-space: nowrap; }
.cb b { font-weight: 400; }
.cb-pres { top: 6.75%; left: 22%; width: 56%; height: 1.75%; justify-content: center; gap: 1.6cqw; background: #17233A; border: 1px solid var(--brand); border-top: 0; border-radius: 0 0 6px 6px; font-size: 2.7cqw; color: #C9D2E6; }
.cb-pres b { color: #FFFCF3; }
.cb-far { top: 22.2%; height: 3.1%; width: 42%; background: var(--brand); box-shadow: inset 0 -.8cqw 0 var(--brand-2); }
.cb-l { left: 5%; } .cb-r { right: 5%; }
.cb-net { top: 45%; left: 11%; width: 82%; height: 1.7%; background: var(--brand); font-size: 3.4cqw; }
.cb-near { top: 70.9%; left: 4%; width: 78%; height: 3%; background: var(--brand); box-shadow: inset 0 -.8cqw 0 var(--brand-2); }
.cb[data-n]::before { content: attr(data-n); position: absolute; left: -2.5cqw; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 6.4cqw; height: 6.4cqw; border-radius: 50%; background: #FFC234; color: #17233A; border: .5cqw solid #17233A; font: 400 4.4cqw/1 var(--font-num); letter-spacing: 0; }
.cb-pres[data-n]::before { left: -8cqw; }
.spon-pins { display: grid; gap: 12px; margin: 14px 0; padding: 0; list-style: none; counter-reset: pin; }
.spon-pins li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; counter-increment: pin; }
.spon-pins li::before { content: counter(pin); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFC234; color: #17233A; border: 2px solid #17233A; font: 400 20px/1 var(--font-num); }
.spon-pins span { color: var(--on-surface-2); }

/* The gear set. */
.spon-kit-card { margin-bottom: 18px; }
.spon-kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .spon-kit { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.spon-kit li { display: grid; grid-template-rows: 96px auto auto; justify-items: center; gap: 2px; padding: 14px 6px 12px; background: var(--surface-2); border-radius: var(--radius-b); text-align: center; }
.spon-kit .pix { align-self: center; width: auto; max-width: 84%; max-height: 92px; }
.spon-kit .pix-paddle { height: 92px; } .spon-kit .pix-ball { height: 46px; } .spon-kit .pix-shoe { height: 44px; }
.spon-kit .pix-shirt { height: 64px; } .spon-kit .pix-cap { height: 40px; } .spon-kit .pix-bag { height: 58px; }
.spon-kit b { margin-top: 6px; font-family: var(--font-head); font-size: 19px; text-transform: uppercase; }
.spon-kit span { font-size: 13px; line-height: 1.25; color: var(--on-surface-2); }

/* Shop card, event and challenge mocks, in the game's dark panel style. */
.spon-extras .card { display: grid; align-content: start; }
.mock-shop, .mock-event, .mock-chal { position: relative; display: grid; justify-items: center; gap: 4px; margin-top: 14px; padding: 16px 14px; background: #17233A; color: #FFFCF3; border: 2px solid #0B0F1A; border-radius: 12px; box-shadow: 4px 4px 0 rgba(23, 35, 58, .25); font-family: var(--font-head); text-align: center; }
.mock-shop small, .mock-event small, .mock-chal small { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #9FB0D3; }
.ms-tag { position: absolute; top: 10px; left: 10px; padding: 2px 7px; border-radius: 3px; background: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mock-shop .pix { height: 96px; width: auto; margin-block: 8px 6px; }
.ms-name { font-size: 22px; text-transform: uppercase; }
.ms-kind { font-size: 14px; color: #9FB0D3; }
.ms-stats { display: grid; gap: 4px; width: 100%; margin: 8px 0 4px; }
.ms-stats div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; }
.ms-stats dt { font-size: 14px; text-align: left; color: #C9D2E6; }
.ms-stats dd { margin: 0; height: 8px; background: #26324F; border-radius: 2px; }
.ms-stats i { display: block; height: 100%; width: calc(var(--n) * 20%); background: var(--you); border-radius: 2px; }
.ms-buy { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 6px; }
.ms-buy .coins { color: #FFC234; }
.ms-btn { padding: 6px 16px; background: #FFC234; color: #17233A; border: 2px solid #0B0F1A; border-radius: 6px; font-weight: 700; font-size: 16px; text-transform: uppercase; }
.ms-store { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: #C9D2E6; }
.ms-store .i { width: 15px; height: 15px; }
.me-art { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-bottom: 8px; }
.me-art .pix-trophy { height: 84px; width: auto; } .me-art .pix-ribbon { height: 66px; width: auto; }
.mock-event b, .mock-chal > b { font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.mock-event span { font-size: 15px; line-height: 1.3; color: #C9D2E6; font-family: var(--font-body); }
.mc-bar { width: 100%; height: 12px; margin-top: 10px; background: #26324F; border-radius: 3px; overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--you); }
.mc-count { justify-self: end; font: 400 18px/1 var(--font-num); color: #C9D2E6; }
.mc-prize { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 10px; background: #0F1830; border-radius: 8px; text-align: left; font-size: 15px; line-height: 1.2; color: #C9D2E6; }
.mc-prize .pix { height: 34px; width: auto; flex: none; }
.mc-prize b { color: #FFFCF3; text-transform: uppercase; }

/* /sponsors: the partner ad portal, drawn as a sample admin screen inside a dark band. */
.portal-band { display: grid; gap: 22px; padding: 22px 16px; background: #17233A; color: #FFFCF3; border: 2px solid #0B0F1A; border-radius: 14px; box-shadow: 6px 6px 0 rgba(23, 35, 58, .2); }
.portal-intro p { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: #DCE3F0; max-width: 62ch; }
.portal-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FFC234; color: #17233A; font: 600 16px/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.portal-badge .i { width: 18px; height: 18px; }
.portal { margin: 0; min-width: 0; background: #0F1830; border: 2px solid #0B0F1A; border-radius: 12px; overflow: hidden; font-family: var(--font-head); color: #FFFCF3; }
.portal figcaption { padding: 8px 14px 10px; font: 400 13px var(--font-body); color: #8E9AB3; border-top: 1px solid #22314F; }
.pt-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0B0F1A; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.pt-dots { display: flex; gap: 5px; }
.pt-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2C3A58; }
.pt-who { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #C9D2E6; text-transform: none; }
.pt-logo { width: 18px; height: 18px; border-radius: 4px; background: var(--brand); box-shadow: inset -4px -4px 0 var(--brand-2); }
.pt-body { display: grid; }
.pt-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #22314F; }
.pt-nav span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; font-size: 15px; color: #A9B5CC; }
.pt-nav .on { background: #22314F; color: #FFFCF3; box-shadow: inset 3px 0 0 var(--brand); }
.pt-nav .i { width: 16px; height: 16px; }
.pt-main { display: grid; gap: 12px; padding: 12px; min-width: 0; }
.pt-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pt-stats > div { display: grid; gap: 2px; padding: 9px 10px; background: #17233A; border-radius: 8px; }
.pt-stats small { font-size: 13px; color: #8E9AB3; text-transform: uppercase; letter-spacing: .06em; }
.pt-stats b { font: 400 28px/1 var(--font-num); }
.pt-spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 4px; }
.pt-spark i { flex: 1; height: calc(var(--h) * 8%); background: var(--brand); border-radius: 1px; opacity: .85; }
.pt-spark i:last-child { opacity: 1; background: #FFC234; }
.pt-build { display: grid; gap: 12px; }
.pt-form { display: grid; gap: 8px; align-content: start; }
.pt-tabs { display: flex; gap: 4px; }
.pt-tabs span { flex: 1; padding: 6px 4px; text-align: center; font-size: 14px; border-radius: 6px; background: #17233A; color: #A9B5CC; white-space: nowrap; }
.pt-tabs .on { background: var(--brand); color: #FFFCF3; }
.pt-field { display: grid; gap: 3px; }
.pt-field small { font-size: 13px; color: #8E9AB3; text-transform: uppercase; letter-spacing: .06em; }
.pt-field > span { padding: 7px 10px; background: #FFFCF3; color: #17233A; border-radius: 6px; font: 400 15px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-field .pt-sw { display: flex; gap: 6px; padding: 6px 10px; }
.pt-sw i { width: 22px; height: 22px; border-radius: 4px; border: 2px solid #0B0F1A; }
.pt-sw i.br { background: var(--brand); }
.pt-go { display: flex; gap: 8px; margin-top: 4px; }
.pt-btn { flex: 1; padding: 9px 8px; text-align: center; border-radius: 6px; background: #FFC234; color: #17233A; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 3px 0 #B8861A; }
.pt-btn.ghost { background: transparent; color: #FFFCF3; border: 2px solid #3A4A6B; box-shadow: none; }
.pt-preview { display: grid; gap: 6px; align-content: start; justify-items: center; padding: 10px; background: repeating-conic-gradient(#141F38 0 25%, #182440 0 50%) 0 0 / 16px 16px; border-radius: 8px; }
.pt-preview small { justify-self: start; font-size: 13px; color: #8E9AB3; text-transform: uppercase; letter-spacing: .06em; }
.pt-preview .cr { width: 100%; max-width: 300px; height: auto; display: block; }
.pt-camps { display: grid; gap: 6px; }
.pt-camps > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n s" "w s"; gap: 0 10px; align-items: center; padding: 8px 10px; background: #17233A; border-radius: 8px; }
.pt-camps b { grid-area: n; font-size: 17px; font-weight: 500; }
.pt-camps span { grid-area: w; font: 400 13px var(--font-body); color: #8E9AB3; }
.pt-st { grid-area: s; padding: 4px 9px; border-radius: 999px; font-style: normal; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.pt-live { background: #1F7A4D; color: #DDFBE9; }
.pt-sched { background: #2C3A58; color: #C9D2E6; }
.pt-draft { background: transparent; color: #A9B5CC; border: 1px dashed #4A5A7B; }
.portal-feats { margin-top: 18px; }
.portal-note { display: grid; gap: 16px; align-items: center; margin-top: 18px; }
.portal-note p { margin: 8px 0 0; }
@media (min-width: 900px) {
  .portal-band { grid-template-columns: minmax(0, 1fr); padding: 30px; }
  .pt-body { grid-template-columns: 170px minmax(0, 1fr); }
  .pt-nav { flex-direction: column; flex-wrap: nowrap; border-bottom: 0; border-right: 1px solid #22314F; padding: 14px 10px; }
  .pt-main { padding: 16px; gap: 14px; }
  .pt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-build { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .pt-camps > div { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; grid-template-areas: "n w s"; }
  .portal-note { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Admin (/admin) ---------- */
/* A working tool: dense tables that scroll sideways inside their card, never the page. */
.adm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 40px; min-width: 0; }
.adm [data-adm-body], .adm .card { min-width: 0; }
.adm-wait { margin: 0; color: var(--ink-2); }
.adm-lead { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.adm-stats { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-stats li { background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 10px 12px; }
.adm-stats b { display: block; font: 400 calc(28px * var(--num-scale)) / 1 var(--font-num); }
.adm-stats span { color: var(--ink-2); font-size: 14px; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.adm-bar button, .adm-act { font: 600 14px/1 var(--font-body); padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
.adm-bar button[aria-pressed=true] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.adm-act.warn { color: var(--loss); border-color: var(--loss); }
.adm-act:disabled { opacity: .5; cursor: default; }
.adm-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font: 600 12px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.adm-table td { padding: 8px; border-bottom: 1px solid var(--rule-card); vertical-align: top; white-space: nowrap; }
.adm-table td.wrap { white-space: normal; min-width: 260px; max-width: 520px; overflow-wrap: anywhere; }
.adm-table tr.is-flagged td { background: color-mix(in srgb, var(--loss) 8%, transparent); }
.adm-table a { color: var(--primary); }
.adm-table small { display: block; color: var(--ink-2); }
.adm-table details summary { cursor: pointer; }
.adm-table pre { margin: 6px 0 0; white-space: pre-wrap; font-size: 12px; max-height: 200px; overflow: auto; }
.adm-pill { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--surface-2); }
.adm-pill.bad { background: var(--loss); color: #fff; }
@media (min-width: 840px) { .adm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
