/*
 * Home page layout, shared by baseword.co and kikassist.com (baseword-web#208).
 * Byte-identical in both repos: every colour, font and surface comes from a
 * custom property that brand.css sets. The defaults below are neutral
 * fallbacks, not either brand; brand.css loads after this file and overrides
 * them. See site/TEMPLATE.md.
 */

:root {
  --bg: #111;
  --bg-band: #161616;
  --band-border: #262626;
  --text: #f4f4f4;
  --text-muted: #cfcfcf;
  --text-faint: #b0b0b0;
  --accent: #f27141;
  --accent-ink: #111;
  --eyebrow: var(--accent);
  --link: var(--accent);
  --link-hover: var(--text);
  --cta-bg: var(--accent);
  --cta-ink: var(--accent-ink);
  --cta-weight: 800;

  --font-body: system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-label: var(--font-body);
  --font-tile: var(--font-display);
  --display-weight: 700;
  --display-tracking: 0;
  --label-weight: 400;
  --label-tracking: 2px;
  --label-transform: none;
  --eyebrow-weight: var(--label-weight);
  --eyebrow-size: 13px;
  --h1-size: 56px;
  --h2-size: 44px;
  --h2-small-size: 36px;
  --h3-size: 26px;
  --wordmark-font: var(--font-label);
  --wordmark-size: 22px;
  --wordmark-weight: 400;

  --mascot-ring: #f27141;
  --mascot-bg: #24303a;
  --mascot-ring-width: 3px;

  --plate-bg: rgba(16, 20, 24, .92);
  --plate-border: 1px solid #2a3138;
  --plate-radius: 16px;
  --plate-pad: 0px;
  --plate-inner-bg: transparent;
  --plate-inner-radius: 0px;
  --plate-head-bg: rgba(255, 255, 255, .07);
  --plate-head-rule: 2px solid var(--accent);
  --plate-head-ink: var(--text);
  --plate-head-font: var(--font-label);
  --plate-head-weight: var(--label-weight);
  --plate-head-transform: var(--label-transform);
  --plate-meta-ink: var(--text-faint);
  --plate-circuit: block;
  --plate-chalk: none;
  --plate-clip: none;
  --plate-clip-bg: #e6eaee;
  --plate-clip-border: 3px solid #a9b0b7;
  --plate-body-ink: #fff;

  --card-bg: var(--plate-bg);
  --card-border: var(--plate-border);
  --card-radius: var(--plate-radius);
  --card-title-ink: var(--accent);
  --card-title-font: var(--font-label);
  --card-title-weight: var(--label-weight);

  --hl-ink: var(--accent);
  --hl-weight: 800;
  --hl-ring: none;
  --hl-radius: 0;
  --hl-pad: 0;
  --blank-rule: 2px dashed var(--accent);
  --blank-ink: #fff;

  --tile-bg: #f2e7dc;
  --tile-ink: #111;
  --tile-weight: 400;
  --tile-radius: 10px;

  --btn-border: 1px solid #fff;
  --btn-ink: #fff;
  --btn-font: var(--font-body);
  --btn-weight: 600;

  /* the streak screen */
  --s-card-bg: #161b1f;
  --s-pill-bg: rgba(255, 255, 255, .1);
  --s-gold: #f2bf27;
  --s-check-bg: var(--accent);
  --s-check-ink: #fff;
  --s-dot-bg: rgba(255, 255, 255, .1);
  --s-bar-fill: var(--accent);
  --s-bar-track: rgba(255, 255, 255, .15);

  --swatch-border: #5a646c;
  --pick-border: 2px solid #fff;
  --pick-idle-border: var(--plate-border);
  --pick-bg: var(--plate-bg);
  --lb-avatar-bg: #FFFFFF;
  --lb-avatar-ring: 2px solid var(--mascot-ring);
  --lb-avatar-ink: #1A1A1A;

  --gutter: 24px;
  --max: 1200px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--cta-bg); color: var(--cta-ink); text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-tail { padding-top: 8px; padding-bottom: 80px; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.band { background: var(--bg-band); border-top: 1px solid var(--band-border); border-bottom: 1px solid var(--band-border); }
.band > .wrap { padding-top: 72px; padding-bottom: 72px; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-label); font-weight: var(--eyebrow-weight);
  font-size: var(--eyebrow-size); letter-spacing: 3px; text-transform: var(--label-transform);
  color: var(--eyebrow);
}
.display-1, .display-2, .display-3 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 1.08; overflow-wrap: break-word;
}
.display-1 { font-size: clamp(36px, 8.5vw, var(--h1-size)); line-height: 1.05; }
.display-2 { font-size: clamp(30px, 6.5vw, var(--h2-size)); }
.display-2.small { font-size: clamp(28px, 6vw, var(--h2-small-size)); }
.display-3 { font-size: clamp(22px, 5vw, var(--h3-size)); }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-muted); }
.hero .lead { font-size: 19px; max-width: 520px; }
.lead.small { font-size: 17px; }
.fine { font-size: 14px; color: var(--text-faint); }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

/* ---------- mascot: always a circle with the brand's ring ---------- */
.mascot {
  display: block; flex: none; border-radius: 50%; overflow: hidden;
  border: var(--mascot-ring-width) solid var(--mascot-ring); background: var(--mascot-bg);
}
.mascot img, .mascot picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.mascot-44 { width: 44px; height: 44px; }
.mascot-64 { width: 64px; height: 64px; }
.mascot-72 { width: 72px; height: 72px; }
.mascot-84 { width: 84px; height: 84px; }
.mascot-96 { width: 96px; height: 96px; }
.mascot-140 { width: 140px; height: 140px; border-width: 4px; }

/* ---------- header ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand-mark { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark:hover { color: var(--text); }
.wordmark { font-family: var(--wordmark-font); font-size: var(--wordmark-size); font-weight: var(--wordmark-weight); letter-spacing: 1px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: var(--nav-weight, 400); }
.nav-link { color: var(--text); text-decoration: none; }
.nav-link:hover { color: var(--link); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 12px; }
.btn-cta { background: var(--cta-bg); color: var(--cta-ink); font-weight: var(--cta-weight); padding: 12px 20px; }
.btn-cta:hover { color: var(--cta-ink); filter: brightness(1.08); }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-art { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.hero-plate-wrap { position: relative; width: 100%; max-width: 480px; }
.hero-peek { position: absolute; right: -14px; bottom: -30px; z-index: 2; pointer-events: none; }

/* the clipboard clip some brands draw on the hero plate */
.plate-clip {
  display: var(--plate-clip); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 44px; border-radius: 10px; z-index: 2;
  background: var(--plate-clip-bg); border: var(--plate-clip-border);
}

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { display: block; height: 48px; width: auto; }

/* ---------- plate: the track's surface (Hull Plate / chalkboard) ---------- */
.plate {
  background: var(--plate-bg); border: var(--plate-border); border-radius: var(--plate-radius);
  padding: var(--plate-pad); overflow: hidden; min-width: 0;
}
.plate-inner { background: var(--plate-inner-bg); border-radius: var(--plate-inner-radius); height: 100%; display: flex; flex-direction: column; }
.plate-head {
  background: var(--plate-head-bg); border-bottom: var(--plate-head-rule); color: var(--plate-head-ink);
  padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
}
.plate-title {
  font-family: var(--plate-head-font); font-weight: var(--plate-head-weight);
  text-transform: var(--plate-head-transform); font-size: 14px; letter-spacing: 2px;
}
.plate-meta { font-size: 13px; color: var(--plate-meta-ink); }
.plate-body { position: relative; padding: 22px 22px 8px; }
.plate-circuit { display: var(--plate-circuit); position: absolute; left: 0; top: 0; width: 100%; height: 10px; }
.plate-circuit path { fill: none; stroke: var(--accent); stroke-opacity: .18; stroke-width: 1; }
.plate-chalk { display: var(--plate-chalk); position: absolute; right: 12px; top: 6px; width: 64px; height: 40px; }
.plate-chalk path, .plate-chalk circle { fill: none; stroke: var(--plate-body-ink); stroke-opacity: .35; stroke-width: 2; stroke-linecap: round; }

/* the app's track header: "Data Track 1 ▸", underlined, and the text-size control */
.track-name {
  display: inline-flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: 1px;
  text-transform: none; color: var(--track-name-ink, var(--plate-head-ink));
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.track-name svg { width: 9px; height: 11px; fill: currentColor; }
.text-size { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--font-body); font-weight: 700; color: var(--track-name-ink, var(--plate-head-ink)); }
.text-size span:nth-child(1) { font-size: 12px; }
.text-size span:nth-child(2) { font-size: 16px; }
.text-size span:nth-child(3) { font-size: 22px; }

.track-text {
  font-family: var(--track-font, var(--font-body)); font-weight: var(--track-weight, 400);
  font-size: var(--track-size, 19px); line-height: 1.7; color: var(--plate-body-ink);
}
.hl {
  color: var(--hl-ink); font-weight: var(--hl-weight); border: var(--hl-ring);
  border-radius: var(--hl-radius); padding: var(--hl-pad);
  text-decoration: var(--hl-underline, none); text-underline-offset: 5px; text-decoration-thickness: 2px;
}
/* the missing word: "( 7 )" over a rule, its letter count inside */
.blank {
  border-bottom: var(--blank-rule); padding: 0 2px; color: var(--blank-ink); white-space: nowrap;
  font-family: var(--font-body); font-weight: 700; font-size: 1.15em; line-height: 1;
}
.blank-n { padding: 0 .75em; }
.blank.solved {
  border-bottom: 0; padding: 0; color: var(--hl-ink); font-family: inherit; font-weight: var(--hl-weight); font-size: 1em;
  text-decoration: var(--hl-underline, none); text-underline-offset: 5px; text-decoration-thickness: 2px;
}

/* the word being built sits over a rule; the letters wait below it */
.build-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 64px;
  margin: 10px 22px 0; padding-top: 16px; border-top: 1px solid var(--plate-rule, rgba(255, 255, 255, .2));
}
.tiles-note {
  text-align: center; padding: 8px 22px 0; font-family: var(--note-font, var(--font-label));
  font-size: 12px; letter-spacing: 1px; color: var(--text-faint);
}
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 22px 8px; }
.tile {
  width: clamp(34px, 10.5vw, 48px); height: clamp(36px, 11vw, 50px); border-radius: var(--tile-radius);
  background: var(--tile-bg); color: var(--tile-ink); border: var(--tile-border, 0);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-tile); font-weight: var(--tile-weight); font-size: clamp(19px, 5.6vw, 24px);
  cursor: pointer; transition: transform .15s;
}
button.tile:hover { transform: translateY(-2px); }
/* a used letter leaves its tile behind, empty, as in the app */
.tile.used { color: transparent; border-color: transparent; cursor: default; transform: none; }
.tile.built {
  width: clamp(30px, 9vw, 40px); height: clamp(32px, 9.5vw, 42px); font-size: clamp(17px, 5vw, 21px); cursor: default;
  background: var(--built-bg, var(--tile-bg)); color: var(--built-ink, var(--tile-ink)); border: var(--built-border, var(--tile-border, 0));
}
.tile.wrong { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .tile.wrong { animation: none; } }

/* Hint (two thirds) and Shuffle (one third) under a rule, as in the app */
.plate-actions { display: flex; gap: 12px; margin: 10px 22px 0; padding: 14px 0 22px; border-top: 1px solid var(--plate-rule, rgba(255, 255, 255, .2)); }
/* leave the corner to the peeking mascot so it never covers a button */
.track-plate .plate-actions { padding-right: 70px; }
.btn-plate {
  flex: 1; height: 54px; border-radius: var(--btn-radius, 14px); border: var(--btn-border); background: var(--btn-bg, transparent); color: var(--btn-ink);
  font-family: var(--btn-font); font-weight: var(--btn-weight); font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; min-width: 0;
}
.btn-plate:hover { filter: brightness(1.15); }
.btn-hint { flex: 2; }
.btn-hint img { width: 43px; height: 30px; object-fit: contain; flex: none; }
.hint-count { margin-left: 6px; white-space: nowrap; }
.btn-shuffle img { width: 28px; height: 28px; }

/* ---------- how to play ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.step-plate .plate-head { padding: 12px 18px; }
.step-plate .plate-title { font-size: 13px; }
.step-body { display: flex; align-items: center; gap: 14px; padding: 18px; }
.step-body p { font-size: 16px; line-height: 1.55; color: var(--step-ink, var(--text-muted)); }

/* ---------- cards (perks, features) ---------- */
.card { background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card p { font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.card-title { font-family: var(--card-title-font); font-weight: var(--card-title-weight); font-size: 15px; letter-spacing: 1px; color: var(--card-title-ink); }
.card-title.plain { font-family: var(--font-body); font-weight: 800; font-size: 17px; letter-spacing: 0; color: var(--text); }
.grid-4 .card { padding: 20px; gap: 8px; }

/* ---------- two-column rows ---------- */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.split-center { align-items: center; }
.split-main { flex: 1 1 520px; }
.split-side { flex: 1 1 320px; min-width: 0; }
.split-preview { flex: 1 1 380px; }
.split-wide { flex: 2 1 560px; min-width: 0; }
/* side by side, the preview stays in view while the grid scrolls past */
@media (min-width: 721px) { .theme-preview { align-self: flex-start; position: sticky; top: 24px; } }

/* ---------- streak: the app's streak screen ---------- */
.streak-screen { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.s-card { background: var(--s-card-bg); border: var(--s-card-border, 0); border-radius: 14px; padding: 20px; min-width: 0; }
.s-top { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px 20px; }
.s-count { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.s-number { display: flex; align-items: center; gap: 16px; }
.flame { width: 38px; height: 50px; flex: none; }
.flame-out { fill: #F7B529; }
.flame-in { fill: #E8541E; }
.big-number { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--streak-number-size, 88px); line-height: 1; color: var(--streak-number-ink, var(--text)); }
.s-caption, .s-next-title, .s-label, .s-medal-name { font-family: var(--s-title-font, var(--font-label)); font-weight: var(--s-title-weight, 400); letter-spacing: 1px; }
.s-caption { font-size: 20px; color: var(--s-gold); }
.s-pill { background: var(--s-pill-bg); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; }

.s-next-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.s-next-title { font-size: 18px; }
.s-reward { color: var(--s-gold); font-weight: 700; font-size: 16px; }
.s-bar { height: 12px; border-radius: 6px; background: var(--s-bar-track); margin: 16px 0 14px; overflow: hidden; }
.s-bar span { display: block; height: 100%; border-radius: inherit; background: var(--s-bar-fill); }
.s-note { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.s-label { align-self: flex-start; background: var(--s-card-bg); border-radius: 10px; padding: 10px 16px; margin-top: 6px; font-size: 14px; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.day-dot {
  width: 42px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--s-dot-bg);
  display: flex; align-items: center; justify-content: center; color: var(--s-check-ink);
}
.day.done .day-dot { background: var(--s-check-bg); }
.day-dot svg, .ms-dot svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.s-medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.s-medal { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; text-align: center; }
.s-medal-art { position: relative; width: 88px; max-width: 100%; }
.s-medal-art img { display: block; width: 100%; height: auto; }
.s-medal:not(.earned) .s-medal-art img { filter: grayscale(.6) brightness(.6); }
.s-lock {
  position: absolute; right: -4px; bottom: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: #0D0D0D; border: 2px solid #FFFFFF; color: #FFFFFF; display: flex; align-items: center; justify-content: center;
}
.s-lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.s-medal-name { font-size: 15px; overflow-wrap: anywhere; }
.s-medal-status { font-size: 14px; font-weight: 700; color: var(--s-gold); }
.s-medal.earned .s-medal-status { color: var(--text); }

.milestones { display: flex; flex-direction: column; gap: 14px; }
.ms { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; }
.ms-dot {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--s-dot-bg);
  display: flex; align-items: center; justify-content: center; color: var(--s-check-ink);
}
.ms.reached .ms-dot { background: var(--s-check-bg); }
.ms.next .ms-dot { background: transparent; border: 3px solid var(--s-gold); }
.ms-days { flex: 1; min-width: 0; }
.ms-pay { font-weight: 700; }
.ms.next .ms-pay { color: var(--s-gold); }

.perks { display: flex; flex-direction: column; gap: 16px; }

.share-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.share-plate { flex: 0 1 340px; }
.share-plate .plate-head { padding: 12px 18px; }
.share-plate .plate-title { font-size: 13px; }
.share-body { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.share-medal { width: 88px; height: 88px; object-fit: contain; }
.share-days { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 32px; }
.share-line { font-size: 15px; color: var(--text-muted); }
.share-link { font-size: 13px; color: var(--accent); }
.share-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------- themes ---------- */
.theme-preview .preview-body { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.theme-preview .track-text { font-size: 18px; text-align: center; }
.tiles-themed { padding: 0; }
.tiles-themed .tile { background: var(--t-surface); color: var(--t-tile-ink); border: 2px solid var(--t-primary); cursor: default; }
.swatch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; font-size: 13px; color: var(--text-faint); }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--swatch-border); flex: none; }
.swatch.sm { width: 14px; height: 14px; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; align-content: start; }
.theme-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px;
  border-radius: 14px; cursor: pointer; background: var(--pick-bg); border: var(--pick-idle-border);
  color: var(--text); font-family: var(--font-body); text-align: center;
}
.theme-card[aria-pressed="true"] { border: var(--pick-border); }
.theme-card:hover { filter: brightness(1.12); }
.theme-name { font-weight: 800; font-size: 14px; }
.theme-swatches { display: flex; gap: 6px; }
.theme-unlock { font-size: 12px; color: var(--text-faint); }

/* ---------- leaderboard ---------- */
.lb-rows { padding: 6px 0; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { width: 28px; flex: none; font-family: var(--font-display); font-weight: var(--display-weight); color: var(--accent); text-align: center; }
/* a player's badge: the whole icon on a white disc in the brand's ring */
.lb-avatar {
  width: 40px; height: 40px; flex: none; box-sizing: border-box; border-radius: 50%; overflow: hidden;
  background: var(--lb-avatar-bg); border: var(--lb-avatar-ring); color: var(--lb-avatar-ink);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.lb-avatar img { width: 100%; height: 100%; padding: 3px; box-sizing: border-box; object-fit: contain; }
.lb-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stats { text-align: right; font-size: 13px; color: var(--text-faint); line-height: 1.3; white-space: nowrap; }
.lb-stats strong { display: block; font-size: 15px; color: var(--text); }
.lb-empty { padding: 18px 20px; color: var(--text-faint); font-size: 14px; }

/* ---------- download ---------- */
.download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.download-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--band-border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--text-faint); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-links a { color: var(--text-faint); }
.footer-links a:hover { color: var(--link); }
.social { display: inline-flex; gap: 14px; }
.social a { display: inline-flex; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.lang-picker select {
  background: var(--bg); color: var(--text-faint); border: 1px solid var(--band-border);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px;
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
  .hero { gap: 48px; padding-top: 24px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-tail { padding-bottom: 56px; }
  .band > .wrap { padding-top: 56px; padding-bottom: 56px; }
  /* the theme cards become one swipeable row under the preview, so a pick stays in view */
  .theme-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .theme-card { flex: 0 0 136px; scroll-snap-align: start; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .wordmark { font-size: calc(var(--wordmark-size) * .85); }
  .site-header { gap: 12px; }
  .brand-mark { gap: 10px; }
  .btn-cta { padding: 10px 12px; font-size: 14px; }
  .hero-peek { right: -6px; bottom: -26px; width: 80px; height: 80px; }
  .plate-head { padding: 12px 16px; }
  .plate-body { padding: 18px 16px 6px; }
  .tiles { gap: 6px; padding: 16px 12px 6px; }
  .tiles-themed { padding: 0; }
  .track-text { font-size: 17px; }
  .s-card { padding: 16px; }
  .big-number { font-size: calc(var(--streak-number-size, 88px) * .75); }
  .s-medals { gap: 6px; }
  .s-medal { padding: 12px 4px; }
  .s-medal-name { font-size: 13px; }
  .s-medal-status { font-size: 12px; }
  .day-dot { width: 36px; }
  .build-row { margin: 8px 16px 0; }
  .plate-actions { margin: 8px 16px 0; padding: 12px 0 18px; }
  .track-plate .plate-actions { padding-right: 64px; }
  .mascot-140 { width: 112px; height: 112px; }
  .theme-preview .preview-body { padding: 20px 16px; }
  .step-body { padding: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
