/* ToolBrace Arena
   Look: a tool-shop workbench. Steel-gray surface, white work cards, ink type,
   one loud color (safety yellow). Type: Archivo (wide, for display), Public Sans
   (reading), IBM Plex Mono (labels, numbers on plates). */

:root {
  --bg: #edf0f2;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --surface-3: #e7ebee;
  --ink: #11171d;
  --ink-2: #36414c;
  --muted: #5d6975;
  --line: #d3dae0;
  --line-strong: #a9b4be;
  --accent: #ffc21a;
  --accent-strong: #f2b000;
  --accent-ink: #11171d;
  --accent-soft: rgba(255, 194, 26, 0.18);
  --link: #1d4ed8;
  --focus: #1d4ed8;
  --shadow: 0 1px 2px rgba(17, 23, 29, 0.06), 0 10px 28px rgba(17, 23, 29, 0.07);
  --shadow-lg: 0 2px 4px rgba(17, 23, 29, 0.06), 0 22px 48px rgba(17, 23, 29, 0.12);

  /* charts: one series, validated against both surfaces */
  --series-1: #2a78d6;
  --series-1-wash: rgba(42, 120, 214, 0.1);
  --grid: #e3e8ec;
  --axis: #b3bec8;

  /* status: always paired with an icon and words */
  --good: #0a7d24;
  --good-bg: #e6f4ea;
  --bad: #b42323;
  --bad-bg: #fbe9e9;
  --info-bg: #e8effc;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-3: clamp(1.55rem, 1.25rem + 1.4vw, 2.2rem);
  --step-4: clamp(1.9rem, 1.35rem + 2.6vw, 3.1rem);
  --step-5: clamp(2.35rem, 1.2rem + 5vw, 5.2rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d1217;
    --surface: #151b21;
    --surface-2: #1b232b;
    --surface-3: #232c35;
    --ink: #e9eef2;
    --ink-2: #b9c3cc;
    --muted: #8f9ba7;
    --line: #27313b;
    --line-strong: #3b4752;
    --accent: #ffc21a;
    --accent-strong: #ffd24d;
    --accent-ink: #11171d;
    --accent-soft: rgba(255, 194, 26, 0.12);
    --link: #8fb3ff;
    --focus: #8fb3ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 48px rgba(0, 0, 0, 0.5);
    --series-1: #3987e5;
    --series-1-wash: rgba(57, 135, 229, 0.12);
    --grid: #232c35;
    --axis: #3b4752;
    --good: #45c46a;
    --good-bg: #13291b;
    --bad: #ff8080;
    --bad-bg: #331617;
    --info-bg: #17233a;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0d1217;
  --surface: #151b21;
  --surface-2: #1b232b;
  --surface-3: #232c35;
  --ink: #e9eef2;
  --ink-2: #b9c3cc;
  --muted: #8f9ba7;
  --line: #27313b;
  --line-strong: #3b4752;
  --accent: #ffc21a;
  --accent-strong: #ffd24d;
  --accent-ink: #11171d;
  --accent-soft: rgba(255, 194, 26, 0.12);
  --link: #8fb3ff;
  --focus: #8fb3ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 48px rgba(0, 0, 0, 0.5);
  --series-1: #3987e5;
  --series-1-wash: rgba(57, 135, 229, 0.12);
  --grid: #232c35;
  --axis: #3b4752;
  --good: #45c46a;
  --good-bg: #13291b;
  --bad: #ff8080;
  --bad-bg: #331617;
  --info-bg: #17233a;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 760px;
}

.section {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.fine {
  font-size: var(--step--1);
  color: var(--muted);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.row--center {
  justify-content: center;
}

.stack {
  display: grid;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.page-title {
  font-size: var(--step-4);
  font-stretch: 108%;
}

.section-title {
  font-size: var(--step-3);
  font-stretch: 106%;
  margin-top: 1.4em;
}

.section-title:first-child {
  margin-top: 0;
}

.section-title .count {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--muted);
  vertical-align: middle;
}

.section-lede {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 62ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head .section-title {
  margin: 0;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.i {
  flex: none;
  vertical-align: middle;
}

/* --------------------------------------------------------------- buttons */

.btn {
  --b-bg: var(--accent);
  --b-ink: var(--accent-ink);
  --b-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: var(--b-bg);
  color: var(--b-ink);
  font: 700 0.98rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 100px rgba(17, 23, 29, 0.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--secondary {
  --b-bg: var(--surface);
  --b-ink: var(--ink);
  --b-line: var(--line-strong);
}

.btn--ghost {
  --b-bg: transparent;
  --b-ink: var(--ink);
  --b-line: var(--line);
}

.btn--danger {
  --b-bg: var(--bad);
  --b-ink: #fff;
}

.btn--sm {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.btn--lg {
  min-height: 52px;
  padding: 13px 22px;
  font-size: 1.05rem;
}

.btn--xl {
  min-height: 64px;
  padding: 16px 30px;
  font-size: 1.25rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-stretch: 110%;
  box-shadow: var(--shadow);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* ---------------------------------------------------------------- header */

.preview-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--step--1);
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.brand__word b {
  font-weight: 900;
}

.logo-mark {
  display: block;
  border-radius: 8px;
}

.nav {
  flex: 1;
  min-width: 0;
}

.nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.streak-chip .i {
  color: #e2581b;
}

.me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.pro-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font: 700 0.72rem/1.5 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-2);
  font: 700 calc(var(--s) * 0.38) / 1 var(--font-mono);
  flex: none;
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 16px;
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.mobile-nav .btn {
  margin-top: 8px;
  display: flex;
}

@media (max-width: 1060px) {
  .me__handle {
    display: none;
  }
}

@media (max-width: 920px) {
  .nav,
  .site-header .site-header__cta {
    display: none;
  }
  .nav-toggle {
    display: inline-grid;
  }
}

@media (max-width: 480px) {
  .site-header .site-header__signin {
    display: none;
  }
  .brand__word {
    font-size: 1.12rem;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 48px);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero__title {
  font-size: var(--step-5);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 18px;
}

.hl {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  padding: 0 0.04em;
}

.hero__lede {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 54ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 860px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------------------------------------------- brief plate */

.plate {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 30px);
  padding-top: calc(clamp(18px, 3vw, 30px) + 8px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.plate::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
}

.plate__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.plate__no {
  font: 700 0.85rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  margin: 0;
}

.plate__day {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.plate__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.plate__status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.plate__status--open::before {
  background: var(--good);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent);
}

.plate__status--voting::before {
  background: var(--series-1);
}

.plate__status--final::before {
  background: var(--accent-strong);
}

.plate__title {
  font-size: var(--step-4);
  font-stretch: 112%;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.plate__title a {
  color: inherit;
  text-decoration: none;
}

.plate__prompt {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 60ch;
}

.plate__twist {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  font-size: 1.02rem;
  margin: 0 0 14px;
}

.plate__twist .i {
  margin-top: 3px;
}

.plate__twist--locked {
  background: var(--surface-2);
  border-left-color: var(--line-strong);
  color: var(--ink-2);
}

.plate__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.plate__foot .btn {
  margin-left: auto;
}

.plate--empty {
  text-align: center;
}

.countdown {
  font-variant-numeric: tabular-nums;
}

.countdown b {
  color: var(--ink);
  font-family: var(--font-mono);
}

.track {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.sponsor-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.sponsor-strip a {
  font-weight: 700;
}

.sponsor-strip--compact {
  display: inline-flex;
  padding: 4px 10px;
}

/* --------------------------------------------------------------- sections */

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px) 0;
}

.steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.steps li {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.steps h3 {
  font-size: var(--step-2);
  margin: 10px 0 6px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
}

.steps__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 1.05rem/1 var(--font-mono);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card h3 {
  font-size: var(--step-2);
  margin: 4px 0 0;
}

.card p {
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--link);
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ stat tiles */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.stat {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.stat dd {
  margin: 4px 0 0;
}

.stat__value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.1;
}

.stat__note {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.stats--compact .stat__value {
  font-size: var(--step-2);
}

/* ------------------------------------------------------------- rank badge */

.rank {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.rank__pips {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
}

.rank__pips i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--line-strong);
}

.rank__pips i:nth-child(1) {
  height: 6px;
}
.rank__pips i:nth-child(2) {
  height: 8px;
}
.rank__pips i:nth-child(3) {
  height: 10px;
}
.rank__pips i:nth-child(4) {
  height: 12px;
}
.rank__pips i:nth-child(5) {
  height: 14px;
}

.rank__pips i.on {
  background: currentColor;
}

.rank--master {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.rank--grandmaster {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-strong);
}

.rank--provisional {
  border-style: dashed;
  color: var(--muted);
}

.ranks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ranks li {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.ranks small {
  color: var(--muted);
}

.ranks--list {
  grid-template-columns: minmax(0, 1fr);
}

.ranks--list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

@media (max-width: 900px) {
  .ranks:not(.ranks--list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------- entries & tiles */

.user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.user-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-link:hover span:last-child {
  text-decoration: underline;
}

.user-link--gone {
  color: var(--muted);
  font-weight: 600;
}

.grid,
.podium {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.podium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .podium {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tile__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile--text .tile__media {
  background: var(--surface);
  place-items: stretch;
}

.tile__place {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font: 700 0.9rem/1.4 var(--font-mono);
  box-shadow: 0 0 0 2px var(--surface);
}

.tile__place--1 {
  background: var(--accent);
  color: var(--accent-ink);
}

.tile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  justify-content: space-between;
  font-size: 0.92rem;
  min-width: 0;
}

.tile__top {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.85rem;
}

.tile__tools {
  width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.tile__tools a {
  color: inherit;
}

.textcard {
  margin: 0;
  padding: clamp(16px, 3vw, 26px);
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  line-height: 1.35;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.textcard p {
  margin: 0;
}

.textcard--clamp p {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------- mini boards */

.mini-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mini-board li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mini-board__n {
  font: 700 0.9rem/1 var(--font-mono);
  color: var(--muted);
}

.mini-board__r {
  font: 700 1rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .mini-board li {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .mini-board li .rank {
    display: none;
  }
}

/* ----------------------------------------------------------------- tables */

.table-wrap {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 14px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

thead th {
  font: 600 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--surface-2);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board tr.is-me {
  background: var(--accent-soft);
}

.tooltable__barcol {
  width: 42%;
  min-width: 140px;
}

.hbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbar__fill {
  display: block;
  height: 12px;
  min-width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--series-1);
}

.hbar__val {
  font: 600 0.85rem/1 var(--font-mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- seg control */

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-3);
  margin: 6px 0 12px;
}

.seg a {
  padding: 7px 14px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.seg a[aria-current='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------- notices */

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--info-bg);
  color: var(--ink);
  margin: 0 0 16px;
}

.notice .i {
  margin-top: 3px;
}

.notice--success {
  background: var(--good-bg);
}

.notice--success .i {
  color: var(--good);
}

.notice--error {
  background: var(--bad-bg);
}

.notice--error .i {
  color: var(--bad);
}

.empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: clamp(28px, 5vw, 48px) 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
}

.empty h2 {
  font-size: var(--step-2);
  margin: 6px 0 0;
  color: var(--ink);
}

.empty p {
  max-width: 48ch;
  margin: 0 0 10px;
}

.cta-panel {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  font-size: var(--step-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  font-weight: 700;
  font-size: 0.8rem;
}

.tag--good {
  background: var(--good-bg);
  color: var(--good);
}

.delta {
  font: 700 0.9em/1 var(--font-mono);
  color: var(--muted);
}

.delta--up {
  color: var(--good);
}

.delta--down {
  color: var(--bad);
}

/* ------------------------------------------------------------------ play */

.play {
  display: grid;
  gap: 22px;
}

.play__action {
  display: grid;
  gap: 18px;
}

.start {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  border: 2px dashed var(--line-strong);
  background: var(--surface);
}

.gate {
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.gate__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step-2);
}

.timer {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
}

.timer__label {
  font: 600 0.8rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.timer__value {
  grid-column: 4;
  font: 700 1.6rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.timer__bar {
  grid-column: 3;
  grid-row: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.timer__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1s linear;
}

.timer.is-low .timer__bar span {
  background: #ff6b5e;
}

.timer.is-over {
  background: var(--bad);
  color: #fff;
}

.submit {
  display: grid;
  gap: 20px;
  padding: clamp(16px, 3vw, 26px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.drop {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 18px;
  border-radius: var(--radius);
  border: 2px dashed var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.drop:hover,
.drop.is-over {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.drop__empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink-2);
}

.drop__empty small {
  color: var(--muted);
  max-width: 44ch;
}

.drop__preview {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.drop__preview img {
  max-height: 360px;
  width: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.drop__info {
  font: 500 0.85rem/1.3 var(--font-mono);
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-cloud {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  user-select: none;
}

.chip input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.chip input:checked + span::before {
  content: '✓';
  margin-right: 6px;
  font-weight: 800;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.chip--other input {
  min-height: 38px;
  width: 150px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.92rem/1.2 var(--font-body);
}

.submit__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.submit__progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.bar {
  display: block;
  width: 160px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-strong);
  transition: width 0.2s ease;
}

.done-card {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 22px;
  padding: clamp(16px, 3vw, 26px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.done-card__media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
  align-self: start;
}

.done-card__media img {
  display: block;
  width: 100%;
}

.done-card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--step-2);
}

@media (max-width: 640px) {
  .done-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.share-box pre,
.share-box code {
  flex: 1 1 220px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------ vote */

.vote__head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vote__brief {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: var(--step-1);
  color: var(--ink-2);
  margin-bottom: 8px;
}

.vote__twist {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  margin: 0 0 8px;
}

.arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 22px);
}

.contender {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
}

.contender__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%) 50% / 24px 24px;
  cursor: zoom-in;
}

.contender__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contender__media .textcard {
  width: 100%;
  cursor: default;
}

.contender__label {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font: 800 1rem/1 var(--font-mono);
  box-shadow: 0 0 0 2px var(--surface);
}

.contender__pick {
  width: 100%;
}

.arena.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.contender.is-picked .contender__media {
  outline: 4px solid var(--accent);
  outline-offset: -4px;
}

.judge__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.judge__progress {
  font-weight: 600;
  color: var(--ink-2);
}

.vote__help {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.vote__help p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
}

@media (max-width: 640px) {
  .arena {
    grid-template-columns: minmax(0, 1fr);
  }
  .contender__media {
    aspect-ratio: 4 / 3;
  }
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 14, 18, 0.88);
  cursor: zoom-out;
}

.zoom img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------- results */

.your-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.your-result .eyebrow {
  margin-bottom: 4px;
}

.your-result__big {
  margin: 0;
  font: 800 var(--step-3) / 1.1 var(--font-display);
}

.your-result__big span {
  font: 600 0.5em/1 var(--font-mono);
  color: var(--ink-2);
}

.your-result__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.winners {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.winner {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.winner__media {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
  aspect-ratio: 1;
}

.winner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner--1 .winner__media {
  border: 3px solid var(--accent);
}

.winner__meta {
  display: grid;
  gap: 6px;
}

.winner__tools {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .winners {
    grid-template-columns: minmax(0, 1fr);
  }
}

.recipe {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.93rem;
}

.recipe h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 6px;
}

.recipe p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.recipe--locked {
  background: var(--surface-2);
  border-style: dashed;
}

.archive {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

.archive__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.archive__media {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  color: var(--muted);
  text-decoration: none;
}

.archive__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive__media .textcard {
  font-size: 0.6rem;
  padding: 8px;
}

.archive__body h2 {
  font-size: var(--step-2);
  margin: 4px 0;
}

.archive__body h2 a {
  color: var(--ink);
  text-decoration: none;
}

.archive__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.archive__meta .plate__status {
  margin-left: 0;
}

.archive__body p {
  margin: 0;
}

/* ----------------------------------------------------------------- entry */

.crumbs {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.crumbs a::before {
  content: '← ';
}

.entry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.entry__media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.entry__media img {
  display: block;
  width: 100%;
}

.entry__side {
  display: grid;
  gap: 14px;
}

.entry__by {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.entry__place {
  margin: 0;
  font: 800 var(--step-3) / 1.1 var(--font-display);
}

.entry__place b {
  font-size: 1.2em;
}

.facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

.facts div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

.coach {
  padding: 14px;
  border-radius: 10px;
  background: var(--info-bg);
}

.coach h4 {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.coach__text {
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .entry__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- profile */

.profile__head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.profile__who {
  flex: 1;
  min-width: 0;
}

.profile__who .page-title {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.profile__name {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-weight: 600;
}

.profile__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.profile__rating {
  font: 700 1.2rem/1 var(--font-mono);
}

.profile__bio {
  max-width: 60ch;
  color: var(--ink-2);
}

.track-ratings {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.track-rating {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.track-rating p {
  margin: 0;
}

.track-rating__value {
  font: 700 var(--step-3) / 1.1 var(--font-body);
}

@media (max-width: 700px) {
  .track-ratings {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------------------------------------------------- chart */

.chart {
  margin: 22px 0;
  padding: 16px 16px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.chart__title {
  font-weight: 700;
  margin-bottom: 12px;
}

.chart__sub {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.chart__plot {
  position: relative;
  height: 220px;
  margin-right: 64px;
  touch-action: pan-y;
}

.chart__grid {
  position: absolute;
  inset: 0;
}

.chart__gl {
  position: absolute;
  left: 0;
  right: -64px;
  border-top: 1px solid var(--grid);
}

.chart__gl span {
  position: absolute;
  right: 0;
  top: -0.7em;
  padding-left: 6px;
  background: var(--surface);
  font: 500 0.72rem/1.3 var(--font-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart__line {
  fill: none;
  stroke: var(--series-1);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart__area {
  fill: var(--series-1-wash);
  stroke: none;
}

.chart__dot,
.chart__hdot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--series-1);
  box-shadow: 0 0 0 2px var(--surface);
  pointer-events: none;
}

.chart__end {
  position: absolute;
  right: 0;
  transform: translate(6px, calc(-100% - 10px));
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  font: 700 0.85rem/1.2 var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
}

.chart__hover {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chart__xline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--axis);
}

.chart__tip {
  position: absolute;
  top: 0;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  line-height: 1.4;
}

.chart__tip b {
  display: block;
  font-size: 1.05rem;
}

.chart__tip .key {
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--series-1);
}

.chart__x {
  display: flex;
  justify-content: space-between;
  margin: 8px 64px 0 0;
  font: 500 0.75rem/1.3 var(--font-mono);
  color: var(--muted);
}

.chart__table {
  margin-top: 10px;
}

.chart__table summary {
  cursor: pointer;
  color: var(--link);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ------------------------------------------------------------- pricing */

.pricing-hero {
  max-width: 760px;
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin: 22px 0;
}

.plan {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.plan h2 {
  font-size: var(--step-3);
  margin: 0;
}

.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.plan__badge {
  position: absolute;
  top: -13px;
  right: 18px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 0.75rem/1.5 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.plan__have {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
  color: var(--good);
}

.price b {
  font: 800 var(--step-4) / 1 var(--font-display);
}

.price span {
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.features .i {
  color: var(--good);
  margin-top: 3px;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------------------------------------------------- forms */

.card-form {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.card-form h2 {
  font-size: var(--step-2);
  margin: 0 0 10px;
}

.card-form h2:not(:first-child) {
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.field label,
.label,
.field legend {
  font-weight: 700;
  padding: 0;
}

.field legend {
  margin-bottom: 8px;
}

.field__opt {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

input[type='text'],
input[type='email'],
input[type='url'],
input[type='number'],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  border-color: var(--focus);
}

[aria-invalid='true'] {
  border-color: var(--bad) !important;
}

.field__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.field__error,
.form-error {
  margin: 0;
  color: var(--bad);
  font-weight: 600;
  font-size: 0.92rem;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--ink);
  flex: none;
}

.check small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.saved {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--good);
  font-weight: 700;
}

.danger {
  margin-top: 14px;
}

.danger summary {
  cursor: pointer;
  color: var(--bad);
  font-weight: 700;
}

.auth-card {
  padding: clamp(20px, 4vw, 34px);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-sent {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 14px 0;
}

.dev-link {
  padding: 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  word-break: break-all;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.filters label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.filters input[type='number'] {
  width: 140px;
}

.talent-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.talent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.talent p {
  margin: 0;
}

.invite {
  margin: 0 0 18px;
}

/* ----------------------------------------------------------------- admin */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.checklist li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.checklist .ok .i {
  color: var(--good);
}

.checklist .todo .i {
  color: var(--bad);
}

.admin-out {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  max-height: 220px;
  overflow: auto;
  font-size: 0.8rem;
}

.review {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.review__item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.review__media {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
}

.review__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review__media .textcard {
  font-size: 0.6rem;
  padding: 6px;
}

.review__body p {
  margin: 0 0 6px;
}

.admin-briefs td {
  vertical-align: top;
  font-size: 0.9rem;
}

.admin-briefs details form {
  min-width: 240px;
  margin-top: 8px;
}

.plain {
  padding-left: 18px;
}

/* ----------------------------------------------------------------- prose */

.prose h1 {
  font-size: var(--step-4);
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 1.6em;
}

.prose .lede {
  font-size: var(--step-1);
  color: var(--ink-2);
}

.prose li {
  margin-bottom: 0.4em;
}

.big-code {
  font: 900 clamp(4rem, 12vw, 8rem) / 1 var(--font-display);
  margin: 0;
  color: var(--accent-strong);
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(32px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0 28px;
  font-size: 0.95rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer__brand p {
  color: var(--ink-2);
  max-width: 36ch;
  margin-top: 12px;
}

.footer__h {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer__col a {
  color: var(--ink);
  text-decoration: none;
}

.footer__col a:hover {
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__bottom p {
  margin: 0;
}

@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------- motion */

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

@media (forced-colors: active) {
  .hbar__fill,
  .chart__dot,
  .rank__pips i.on {
    forced-color-adjust: none;
    background: CanvasText;
  }
  .chart__line {
    stroke: CanvasText;
  }
}

.hero__title .line {
  display: block;
}

.split h3 {
  margin-top: 22px;
}

.contender > .btn--ghost {
  justify-self: start;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =====================================================================
   Home, picture-first: icons, short labels, things to touch.
   ===================================================================== */

/* header: soft shadow after scrolling */
.site-header {
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(17, 23, 29, 0.09);
}

/* scroll reveal (only active once app.js has run) */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-on [data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  z-index: -1;
  animation: glow 9s ease-in-out infinite alternate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  opacity: 0.75;
}
@keyframes glow {
  to {
    transform: translate(-6%, 8%) scale(1.12);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 1rem + 5.4vw, 5.2rem);
  margin-bottom: 22px;
}
.hero__title .line {
  white-space: nowrap;
}
.hero__title .line {
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero__title .line:nth-child(2) {
  animation-delay: 0.12s;
}
.hero__title .line:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
.hl {
  display: inline-block;
  padding: 0.02em 0.14em 0.06em;
  margin: 0.04em -0.06em;
  border-radius: 0.14em;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-2deg);
  box-shadow: 0 0.08em 0 var(--accent-strong), 0 18px 40px var(--accent-soft);
  animation: stamp 0.55s 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(1.35);
  }
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font: 700 0.98rem/1 var(--font-body);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero__facts li:hover {
  transform: translateY(-2px) rotate(-1.2deg);
  border-color: var(--accent-strong);
}
.hero__facts .i {
  color: var(--accent-strong);
}
.hero__ctas {
  margin: 0;
}

.hero__brief {
  position: relative;
}
.hero__brief .plate {
  animation: bob 7s ease-in-out infinite alternate;
}
@keyframes bob {
  to {
    transform: translateY(-8px) rotate(0.4deg);
  }
}
.hero__float {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  animation: float 5s ease-in-out infinite alternate;
}
.hero__float--1 {
  top: -22px;
  left: -14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-strong);
}
.hero__float--2 {
  bottom: 38px;
  right: -16px;
  animation-delay: -1.6s;
}
.hero__float--3 {
  bottom: -20px;
  left: 14%;
  animation-delay: -3s;
}
@keyframes float {
  to {
    transform: translateY(-10px) rotate(5deg);
  }
}
@media (max-width: 860px) {
  .hero__float--1 {
    left: 6px;
  }
  .hero__float--2 {
    right: 6px;
  }
}

.plate__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.plate__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font: 700 0.9rem/1 var(--font-mono);
  color: var(--ink-2);
}
.plate__chip--secret {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.plate__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 0.95rem/1 var(--font-mono);
}
.plate__foot .countdown b {
  font-size: 1.15rem;
}
.plate__status--open::before {
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 45%, transparent);
  }
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

/* ------------------------------------------------------------ tool strip */

.tools-strip {
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row {
  display: flex;
  gap: 10px;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: marquee 70s linear infinite;
}
.tools-strip:hover .marquee__row {
  animation-play-state: paused;
}
.marquee__row li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font: 700 0.95rem/1 var(--font-body);
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.marquee__row li:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

/* ------------------------------------------------------------- the flow */

.flow {
  background: var(--bg);
  border: 0;
  padding: clamp(36px, 6vw, 72px) 0;
}
.flow__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.flow__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 16px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flow__step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(clamp(14px, 3vw, 36px) / -2 - 9px);
  width: 18px;
  height: 18px;
  z-index: 2;
  border-radius: 50%;
  background: var(--accent) center / 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311171d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.flow__day {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 700 0.78rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flow__art {
  width: min(150px, 60%);
  height: auto;
  overflow: visible;
}
.flow__step h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: var(--step-3);
  font-stretch: 108%;
}
.flow__step h3 .i {
  color: var(--accent-strong);
}

.flow__track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 9;
}
.flow__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.flow__clock {
  fill: var(--ink);
  font: 700 22px var(--font-mono);
}
.in .flow__ring {
  animation: ring 2.4s 0.3s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}
@keyframes ring {
  to {
    stroke-dashoffset: 18;
  }
}

.flow__card {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
.flow__card--l {
  fill: var(--accent-soft);
  stroke: var(--accent-strong);
}
.flow__vs {
  fill: var(--ink);
}
.flow__vstext {
  fill: var(--bg);
  font: 800 9px var(--font-mono);
}
.flow__tick {
  fill: var(--good);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.flow__tick circle {
  fill: var(--good);
}
.flow__tick path {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow__hide {
  stroke: var(--line-strong);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
}
.in .flow__tick {
  animation: pop 0.5s 0.9s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}
.in .flow__card--l {
  animation: lift 0.5s 0.9s ease forwards;
}
@keyframes pop {
  to {
    transform: scale(1);
  }
}
@keyframes lift {
  to {
    transform: translateY(-5px) rotate(-3deg);
  }
}

.flow__bar {
  fill: var(--line-strong);
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
}
.flow__bar--hot {
  fill: var(--accent);
}
.in .flow__bar {
  animation: grow 0.7s calc(0.2s + var(--b) * 0.18s) cubic-bezier(0.3, 1.3, 0.5, 1) forwards;
}
@keyframes grow {
  to {
    transform: scaleY(1);
  }
}

@media (max-width: 760px) {
  .flow__steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow__step {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'art day' 'art title';
    justify-items: start;
    align-items: center;
    column-gap: 18px;
    padding: 16px 18px;
  }
  .flow__day {
    grid-area: day;
    align-self: end;
  }
  .flow__art {
    grid-area: art;
    width: 92px;
  }
  .flow__step h3 {
    grid-area: title;
    align-self: start;
  }
  .flow__step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: calc(clamp(14px, 3vw, 36px) / -2 - 9px);
    left: 60px;
    transform: rotate(90deg);
  }
}

/* ------------------------------------------------------------- the duel */

.duel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title > .i {
  color: var(--accent-strong);
}
.duel__head .section-title {
  margin: 0;
}
.duel__dots {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.duel__dots li {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.duel__dots li.on {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
  transform: scale(1.12);
}

.duel__round {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 36px);
  max-width: 820px;
  margin: 0 auto;
  animation: swap 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes swap {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
.duel__vs {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 38%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 800 0.9rem/1 var(--font-mono);
  box-shadow: 0 0 0 5px var(--bg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.duel__round[data-picked] .duel__vs {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.duel__card {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.3s ease, filter 0.3s ease;
}
.duel__art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  border: 3px solid transparent;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.duel__art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.duel__art--text {
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 30px);
  background: var(--surface);
  background-image: linear-gradient(135deg, var(--accent-soft), transparent 60%);
}
.duel__art q {
  quotes: none;
  font: 800 clamp(1.05rem, 0.8rem + 1.6vw, 1.7rem) / 1.2 var(--font-display);
  font-stretch: 108%;
  letter-spacing: -0.015em;
}
.duel__crown {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
  transform: scale(0) rotate(-40deg);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@media (hover: hover) {
  .duel__round:not([data-picked]) .duel__card:hover {
    transform: translateY(-6px) rotate(var(--tilt, -1deg));
  }
  .duel__round:not([data-picked]) .duel__card:hover .duel__art {
    border-color: var(--accent);
  }
}
.duel__card[data-pick='b'] {
  --tilt: 1deg;
}
.duel__card:focus-visible .duel__art {
  border-color: var(--focus);
}
.duel__round[data-picked] .duel__card {
  cursor: default;
}
.duel__round[data-picked='a'] .duel__card[data-pick='b'],
.duel__round[data-picked='b'] .duel__card[data-pick='a'] {
  opacity: 0.45;
  filter: grayscale(0.7);
  transform: scale(0.93);
}
.duel__round[data-picked='a'] .duel__card[data-pick='a'],
.duel__round[data-picked='b'] .duel__card[data-pick='b'] {
  transform: scale(1.04);
}
.duel__round[data-picked='a'] .duel__card[data-pick='a'] .duel__art,
.duel__round[data-picked='b'] .duel__card[data-pick='b'] .duel__art {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-lg);
}
.duel__round[data-picked='a'] .duel__card[data-pick='a'] .duel__crown,
.duel__round[data-picked='b'] .duel__card[data-pick='b'] .duel__crown {
  transform: none;
}

.duel__after {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  min-height: 34px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s 0.15s ease, transform 0.35s 0.15s ease;
}
.duel__round[data-picked] .duel__after {
  opacity: 1;
  transform: none;
}
.duel__tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.duel__tools i {
  font: 700 0.82rem/1 var(--font-body);
  font-style: normal;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.duel__delta {
  min-width: 3.4ch;
  font: 800 1.15rem/1 var(--font-mono);
}
.duel__card[data-pick] .duel__delta {
  color: var(--bad);
}
.duel__round[data-picked='a'] .duel__card[data-pick='a'] .duel__delta,
.duel__round[data-picked='b'] .duel__card[data-pick='b'] .duel__delta {
  color: var(--good);
}

.duel__foot {
  display: grid;
  place-items: center;
  min-height: 56px;
  margin-top: 22px;
}
.duel__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font: 700 1rem/1 var(--font-body);
}
.duel__hint .i {
  animation: tap 1.6s ease-in-out infinite;
}
@keyframes tap {
  50% {
    transform: translate(3px, -4px);
  }
}
.duel__next .i {
  transition: transform 0.2s ease;
}
.duel__next:hover .i {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- ladder */

.ladder__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  height: clamp(220px, 34vw, 320px);
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
}
.ladder__step {
  display: flex;
  height: 100%;
  align-items: end;
}
.ladder__step button {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  justify-items: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.ladder__bar {
  align-self: end;
  height: var(--h);
  width: 100%;
  border-radius: 14px 14px 6px 6px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.ladder__name {
  font: 800 clamp(0.72rem, 0.55rem + 0.8vw, 1.05rem) / 1.1 var(--font-display);
  font-stretch: 106%;
  white-space: nowrap;
}
.ladder__at {
  display: inline-flex;
  align-items: center;
  font: 600 0.8rem/1 var(--font-mono);
  min-height: 1em;
}
.ladder__step.is-reached button {
  color: var(--ink);
}
.ladder__step.is-reached .ladder__bar {
  background: color-mix(in srgb, var(--accent) 62%, var(--surface-3));
  border-color: var(--accent-strong);
}
.ladder__step.is-current .ladder__bar {
  background: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 10px 24px var(--accent-soft);
}
.ladder__step.is-current .ladder__name {
  transform: translateY(-8px);
}
.ladder__name {
  transition: transform 0.35s ease;
}
.ladder__step button:hover .ladder__bar {
  border-color: var(--accent-strong);
}

.ladder__ctl {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.ladder__ctl input[type='range'] {
  --pct: 25%;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--accent) var(--pct), var(--surface-3) var(--pct));
  border: 1px solid var(--line);
  cursor: grab;
}
.ladder__ctl input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.ladder__ctl input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.ladder__ctl input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.18);
}
.ladder__val {
  min-width: 4.4ch;
  text-align: right;
  font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem) / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------- leaderboard + tool index */

.section-head .more {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.section-head .more:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.mini-board__n--1,
.mini-board__n--2,
.mini-board__n--3 {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--accent-ink);
}
.mini-board__n--1 {
  background: var(--accent);
}
.mini-board__n--2 {
  background: #c6ced6;
}
.mini-board__n--3 {
  background: #e0a878;
}
.mini-board li {
  transition: transform 0.15s ease;
}
.mini-board li:hover {
  transform: translateX(4px);
}
.reveal-on [data-reveal]:not(.in) .hbar__fill {
  width: 0 !important;
}
.hbar__fill {
  transition: width 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.empty-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

/* ----------------------------------------------------------- pulse stats */

.pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pulse li {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 10px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.pulse .i {
  color: var(--accent-strong);
}
.pulse b {
  font: 800 clamp(1.8rem, 1.3rem + 2vw, 2.8rem) / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.pulse span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .pulse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------- business cards */

.biz {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.biz__card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 12px 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.biz__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-strong);
  text-decoration: none;
}
.biz__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--ink);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.biz__card:hover .biz__icon {
  background: var(--accent);
  transform: rotate(-6deg) scale(1.06);
}
.biz__card h3 {
  margin: 0;
  font-size: var(--step-2);
  font-stretch: 108%;
}
.biz__price {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font: 700 0.85rem/1 var(--font-mono);
  color: var(--ink-2);
}
@media (max-width: 760px) {
  .biz {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------- final CTA */

.cta-band {
  margin-top: clamp(20px, 4vw, 40px);
  padding: clamp(36px, 7vw, 76px) 0;
  background: #11171d;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 194, 26, 0.07) 22px 44px);
}
.cta-band__in {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
}
.cta-band__bolt {
  color: var(--accent);
  animation: zap 2.4s ease-in-out infinite;
}
@keyframes zap {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  50% {
    transform: rotate(6deg) scale(1.14);
  }
}
.cta-band .btn {
  min-height: 58px;
  padding: 14px 28px;
  font-size: 1.15rem;
  box-shadow: 0 0 0 0 var(--accent);
  animation: beacon 2.6s ease-out infinite;
}
@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 194, 26, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 18px rgba(255, 194, 26, 0);
  }
}
.cta-band__clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
}
.cta-band__clock .countdown b {
  color: #fff;
  font-size: 1.2rem;
}

/* ---------------------------------------------------- buttons, everywhere */

.btn .i {
  transition: transform 0.2s ease;
}
.btn:hover .i:last-child:not(:first-child) {
  transform: translateX(3px);
}
.btn:hover .i:first-child:not(:last-child) {
  transform: rotate(-12deg) scale(1.12);
}
.card,
.tile__media {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile__media:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
}

.footer__brand p:not(.footer__mail) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .line {
    opacity: 1;
    transform: none;
  }
  .flow__ring {
    stroke-dashoffset: 18;
  }
  .flow__tick {
    transform: scale(1);
  }
  .flow__bar {
    transform: none;
  }
  .marquee__row {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .hero__float {
    display: none;
  }
}
@media (max-width: 480px) {
  .ladder__steps {
    gap: 4px;
  }
  .ladder__step,
  .ladder__step button {
    min-width: 0;
  }
  .ladder__name {
    font-size: 0.6rem;
    letter-spacing: -0.02em;
  }
  .ladder__at {
    font-size: 0.68rem;
  }
}
.ladder__at .i {
  width: 18px;
  height: 18px;
}
.ladder__ctl input[type='range'] {
  outline-offset: 6px;
}

/* ------------------------------------------------------- how it works */

.hiw {
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(32px, 6vw, 72px);
}
.hiw__title {
  margin-bottom: 8px;
}
.hiw__block {
  padding: clamp(22px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.hiw__title + .hiw__block {
  border-top: 0;
}
.hiw__h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: var(--step-3);
  font-stretch: 106%;
}
.hiw__h .i {
  padding: 9px;
  box-sizing: content-box;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
}
.hiw .flow {
  padding: 0;
}
.hiw .flow__steps {
  margin-top: 0;
}
.flow__sub {
  margin: 0;
  color: var(--ink-2);
  font: 600 0.95rem/1.35 var(--font-body);
  text-align: center;
}
@media (max-width: 760px) {
  .flow__sub {
    grid-area: auto;
    text-align: left;
  }
  .flow__step:has(.flow__sub) {
    grid-template-areas: 'art day' 'art title' 'art sub';
  }
  .flow__step .flow__sub {
    grid-area: sub;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font: 700 0.98rem/1 var(--font-body);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.facts li:hover {
  transform: translateY(-2px) rotate(-1deg);
  border-color: var(--accent-strong);
}
.facts .i {
  color: var(--accent-strong);
}

.hiw__tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.hiw__track {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.hiw__track:hover {
  transform: translateY(-5px);
}
.hiw__track .i {
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.hiw__track b {
  font: 800 var(--step-2) var(--font-display);
}
.hiw__track span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.week__day {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 2px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.week__day small {
  font: 700 0.7rem/1 var(--font-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.week__day--image {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.week__day--words {
  background: var(--info-bg);
  border-color: var(--series-1);
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.chain li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font: 800 1.1rem/1 var(--font-display);
}
.chain li .i {
  color: var(--accent-strong);
}
.chain li:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-52%);
  font: 800 1.1rem/1 var(--font-mono);
  color: var(--muted);
}

.hiw__plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hiw__plan {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.hiw__plan--pro {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hiw__plan h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
}
.hiw__plan h3 small {
  font: 600 0.8rem var(--font-mono);
  color: var(--muted);
}
.hiw__plan .facts li {
  box-shadow: none;
}
.hiw__cta {
  margin-top: 28px;
}
@media (max-width: 640px) {
  .hiw__tracks,
  .hiw__plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hiw .flow .wrap {
  padding: 0;
}
@media (max-width: 640px) {
  .chain li:not(:last-child)::after {
    display: none;
  }
}

/* =====================================================================
   Picture-first pages: page hero, icon tiles, pricing toggles
   ===================================================================== */

.phero {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  margin: 0 0 clamp(22px, 4vw, 40px);
}
.phero__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 104px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0.35rem 0 var(--accent-strong), 0 20px 50px var(--accent-soft);
  transform: rotate(-6deg);
  animation: badge 6s ease-in-out infinite alternate;
}
.phero__badge .i {
  width: 46%;
  height: 46%;
}
@keyframes badge {
  to {
    transform: rotate(4deg) translateY(-6px);
  }
}
.phero__copy {
  min-width: 0;
}
.phero__copy .eyebrow {
  margin-bottom: 6px;
}
.phero__title {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.4rem);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1;
}
.phero .facts {
  margin: 0;
}
@media (max-width: 560px) {
  .phero {
    flex-direction: column;
    align-items: flex-start;
  }
  .phero__badge {
    width: 64px;
    border-radius: 20px;
  }
}

.itiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.itile {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.25s ease;
}
.itile:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  border-color: var(--accent-strong);
}
.itile__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--ink);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.itile:hover .itile__icon {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-8deg);
}
.itile b {
  font: 800 var(--step-1) / 1.15 var(--font-display);
  font-stretch: 106%;
}
.itile span:not(.itile__icon) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
@media (max-width: 560px) {
  .itile {
    padding: 14px;
  }
  .itile__icon {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 330px) {
  .itiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ilist {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ilist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.ilist .i {
  flex: none;
  box-sizing: content-box;
  padding: 6px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
}

/* pricing */
.plans {
  align-items: stretch;
}
.plan {
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan--featured {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 45%);
}
.plan--featured:hover {
  transform: translateY(-4px);
}
.plan__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.billing {
  display: inline-flex;
  justify-self: start;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.billing input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.billing label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.billing input:checked + label {
  background: var(--ink);
  color: var(--bg);
}
.billing input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.billing__save {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 0.72rem/1.3 var(--font-mono);
}
.plan:has(#bill-y:checked) .bill-m,
.plan:has(#bill-m:checked) .bill-y {
  display: none;
}
.bill-y,
.bill-m {
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* sponsor */
.pulse--accent {
  background: var(--accent) !important;
  border-color: var(--accent-strong) !important;
  color: var(--accent-ink);
}
.pulse--accent .i,
.pulse--accent span {
  color: var(--accent-ink) !important;
}
.pulse + .split,
.pulse + .split--form {
  margin-top: clamp(22px, 4vw, 40px);
}
.split--form .section-title {
  margin-top: 0;
}
.eq-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  font-size: var(--step-1);
}
.eq-title .i {
  color: var(--accent-strong);
}
.eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.eq__term {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 800 1.15rem/1 var(--font-mono);
}
.eq__term small {
  font-weight: 600;
  color: var(--muted);
}
.eq__term--total {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
}
.eq__op {
  font: 800 1.3rem/1 var(--font-mono);
  color: var(--muted);
}
.card-form {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.card-form h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-form h2 .i {
  color: var(--accent-strong);
}
.card-form .fine .i {
  vertical-align: -2px;
}
@media (min-width: 861px) {
  .split--form > .card-form {
    position: sticky;
    top: 90px;
  }
}

/* teams */
.seatcalc {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.seatcalc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.seatcalc__row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.seatcalc__row label b {
  font: 800 1.4rem/1 var(--font-mono);
}
.seatcalc output {
  font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem) / 1 var(--font-mono);
}
.seatcalc input[type='range'],
.ladder__ctl input[type='range'] {
  --pct: 10%;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--accent) var(--pct), var(--surface-3) var(--pct));
  border: 1px solid var(--line);
  cursor: grab;
}
.seatcalc input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.seatcalc input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--accent);
}
.seatcalc .fine {
  margin: 12px 0 0;
}

/* hire */
.buybox {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%);
  border: 2px solid var(--accent);
}
.buybox .fine {
  margin: 0;
}

/* leaderboard podium */
.lpodium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
}
.lpodium__spot {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}
.lpodium__spot a {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.lpodium__spot a:hover {
  transform: translateY(-5px);
}
.lpodium__spot b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpodium__spot a > span:last-child {
  font: 800 1.1rem/1 var(--font-mono);
  color: var(--muted);
}
.lpodium__spot .avatar {
  box-shadow: 0 0 0 4px var(--surface), var(--shadow);
}
.lpodium__step {
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: 18px 18px 6px 6px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font: 800 2rem/1 var(--font-display);
  color: var(--ink-2);
}
.lpodium__spot--1 .lpodium__step {
  height: 130px;
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
  box-shadow: 0 16px 40px var(--accent-soft);
}
.lpodium__spot--2 .lpodium__step {
  height: 96px;
}
.lpodium__spot--3 .lpodium__step {
  height: 70px;
}
.reveal-on .lpodium:not(.in) .lpodium__step {
  transform: scaleY(0);
}
.lpodium__step {
  transform-origin: bottom;
  transition: transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.lpodium__spot--2 .lpodium__step {
  transition-delay: 0.12s;
}
.lpodium__spot--3 .lpodium__step {
  transition-delay: 0.24s;
}

/* sign in */
.auth-card__badge {
  width: 72px;
  margin-bottom: 18px;
}
.auth-card .facts {
  margin-bottom: 18px;
}
.auth-sent .facts {
  justify-content: center;
}

/* play */
.cta-panel h2,
.gate__head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-panel h2 .i,
.gate__head h2 .i {
  color: var(--accent-strong);
}
.cta-panel .facts {
  margin-bottom: 18px;
}
.start .facts {
  justify-content: center;
  margin-top: 16px;
}
.start .facts li {
  box-shadow: none;
}
.drop__empty b {
  font-size: 1.15rem;
}
.field legend.label,
.field label[for='f-recipe'] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.field__hint .i {
  vertical-align: -2px;
}
.done-card .facts {
  margin: 4px 0 16px;
}

/* about */
.name-eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.name-eq .eq__term {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
}
.hiw > .itiles {
  margin-bottom: 8px;
}
@media (min-width: 900px) {
  .hiw > .itiles,
  .hiw__block .itiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hiw > .itiles:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =====================================================================
   Global polish
   ===================================================================== */

/* smooth cross-page fades in browsers that support them */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* nav: sliding underline */
.nav a {
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}
.nav a[aria-current='page'] {
  box-shadow: none;
}
.site-header {
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.brand .logo-mark {
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.brand:hover .logo-mark {
  transform: rotate(-12deg) scale(1.1);
}

/* hero: cursor spotlight + card tilt */
.hero {
  --mx: 70%;
  --my: 30%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hero:hover::after {
  opacity: 1;
}
.hero__brief {
  perspective: 1200px;
}
.hero__tilt {
  transition: transform 0.25s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

/* confetti for the vote demo */
.confetti {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 5;
}
.confetti i {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  animation: confetti 0.95s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
@keyframes confetti {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}
.duel__card {
  position: relative;
}

/* footer */
main:has(> .cta-band:last-child) + .site-footer {
  margin-top: 0;
  border-top: 0;
}
.site-footer {
  overflow: hidden;
}
.footer__col a {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}
.footer__col a:hover {
  transform: translateX(4px);
  color: var(--ink);
}
.footer__giant {
  margin: 28px 0 10px;
  font: 900 16cqi / 0.9 var(--font-display);
  font-stretch: 125%;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  user-select: none;
}
.footer__giant b {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.site-footer > .wrap {
  container-type: inline-size;
}

/* phones: the podium becomes a swipeable row */
@media (max-width: 760px) {
  .podium {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    scrollbar-width: none;
  }
  .podium::-webkit-scrollbar {
    display: none;
  }
  .podium > .tile {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
}
