/* ══════════════════════════════════════════════════════════════════════════
   Poker Super League — Home page styles.

   Section 1 ports the Nocturne design-system tokens verbatim from the handoff
   `styles.css` (colours, spacing, radii, shadows). Section 2 overrides the
   accent to PSL brand red and adds the PSL-specific components. Values are
   taken from the two `.dc.html` prototypes and the README's Design Tokens.
   ══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────  1. Nocturne tokens (ported)  ───────────────────── */
:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;      /* overridden to PSL red below */
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;
  --space-6: 16.8px;
  --space-8: 22.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  /* ── PSL brand accents (override Nocturne's purple) ── */
  --psl-red: #e11d2a;
  --psl-blue: #27a4dd;
  --color-accent: #e11d2a;       /* red = primary / CTA */
  --hero-ground: #05060a;
}

/* ─────────────────────  Base / reset  ───────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body { background: var(--hero-ground); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); line-height: 1.12; }
p { margin: 0 0 var(--space-3); }
img { display: block; max-width: 100%; }
figure { margin: 0; }

a { color: var(--psl-blue); text-underline-offset: 3px; }
a:hover { color: #5cc0ef; }

.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* Scrollbars — a slim floating pill instead of the browser's default chrome,
   applied site-wide (any scrollable element inherits it) rather than to one
   page's tables. */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-text) 30%, transparent) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--color-text) 28%, transparent);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--psl-red) 60%, var(--color-text) 15%);
}
::-webkit-scrollbar-corner { background: transparent; }

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

/* Layout helpers */
.psl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 32px); }
.psl-section { padding: clamp(60px, 9vw, 96px) 0; border-top: 1px solid var(--color-divider); }
.psl-kicker {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 700; color: var(--psl-red);
}
.psl-h2 {
  font-size: clamp(30px, 6vw, 44px); font-weight: 800;
  letter-spacing: -0.02em; margin: 14px 0 6px;
}

/* Shared buttons (nav Register, CTA, hero) */
.btn-red {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--psl-red); color: #fff; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: filter 0.15s;
}
.btn-red:hover { filter: brightness(1.12); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 16px clamp(18px, 5vw, 32px);
  width: 100%; background: var(--color-bg);
}
/* Logo flush to the screen's left edge; everything after it is pushed to the
   right edge by this auto margin, so the menu + button stay right-aligned. */
.site-nav .brand { margin-right: auto; display: inline-flex; align-items: center; }
.site-nav .brand img { height: 44px; width: auto; mix-blend-mode: lighten; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: color-mix(in srgb, #fff 80%, transparent);
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: #fff; }

.nav-register { font-size: 15px; padding: 10px 22px; border-radius: 9px; }

.nav-toggle {
  display: none; cursor: pointer; width: 42px; height: 42px;
  border-radius: 9px; border: 1px solid var(--color-divider);
  align-items: center; justify-content: center; color: #fff;
  background: transparent;
}
.nav-toggle:hover { background: color-mix(in srgb, #fff 8%, transparent); }
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--color-surface); padding: 20px clamp(18px, 5vw, 32px);
    border-top: 1px solid var(--color-divider); box-shadow: var(--shadow-md); z-index: 40;
  }
  .nav-links.is-open { display: flex; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; width: 100%;
  min-height: clamp(540px, 86vh, 780px);
  overflow: hidden; background: var(--hero-ground); display: flex;
}
.hero-portrait { position: absolute; inset: 0; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.hero-scrim { position: absolute; inset: 0; pointer-events: none; }
.hero-scrim.h {
  background: linear-gradient(90deg, rgba(5,6,10,.95) 0%, rgba(5,6,10,.45) 42%, rgba(5,6,10,.15) 68%, rgba(5,6,10,.6) 100%);
}
.hero-scrim.v {
  background: linear-gradient(0deg, rgba(5,6,10,.97) 0%, rgba(5,6,10,.15) 34%, transparent 60%);
}
.hero-scrim.lines {
  background: repeating-linear-gradient(0deg, rgba(120,160,180,.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.hero-scanline {
  position: absolute; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(55,211,145,.10), transparent);
  animation: scanmove 6s linear infinite; pointer-events: none;
}

/* HUD telemetry layer (hidden < 1000px) */
.hud-layer { position: absolute; inset: 0; animation: hudflick 7s infinite; }
.hud { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; pointer-events: none; }
.hud-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hud-h::before { content: ""; width: 9px; height: 9px; flex: none; }
.hud-g .hud-h { color: #37d391; } .hud-g .hud-h::before { background: #37d391; box-shadow: 0 0 8px #37d391; }
.hud-r .hud-h { color: #ff4d5e; } .hud-r .hud-h::before { background: #ff4d5e; box-shadow: 0 0 8px #ff4d5e; }
.hud-b .hud-h { color: var(--psl-blue); } .hud-b .hud-h::before { background: var(--psl-blue); box-shadow: 0 0 8px var(--psl-blue); }
.hud-row { display: flex; gap: 10px; font-size: 11px; letter-spacing: .05em; margin-top: 3px; color: rgba(220,230,240,.5); }
.hud-row b { color: rgba(230,240,250,.9); font-weight: 600; }
.hud-k { color: rgba(180,195,210,.55); min-width: 74px; }
.hud-brk { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.35); }

.hud-stat-num { font-family: var(--font-heading); font-weight: 900; font-size: 44px; line-height: 1; color: #fff; letter-spacing: -.02em; }
.hud-stat-label { font-size: 11px; letter-spacing: .2em; color: #37d391; margin-top: 4px; }
.hud-stat-underline { width: 120px; height: 2px; background: #37d391; margin: 8px 0 0 auto; box-shadow: 0 0 8px #37d391; }
.hud-stat-sub { font-size: 10px; letter-spacing: .16em; color: rgba(200,215,225,.5); margin-top: 6px; }

@media (max-width: 1000px) { .hud-layer { display: none; } }

/* Hero content (bottom-left) */
.hero-content {
  position: relative; align-self: flex-end; width: 100%;
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 52px) clamp(40px, 7vw, 56px);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--psl-red) 50%, transparent);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px;
  animation: rise .7s both;
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--psl-red); animation: glow 1.6s infinite; }

.hero-lockup {
  font-family: var(--font-heading); margin: 0; line-height: .84; letter-spacing: -.015em;
  text-transform: uppercase; font-weight: 900; color: #fff; animation: rise .7s .1s both;
}
.hero-lockup .line-1 { display: flex; align-items: baseline; gap: clamp(12px, 2.5vw, 22px); font-size: clamp(52px, 12vw, 104px); }
.hero-lockup .vs { font-size: clamp(28px, 6vw, 56px); font-weight: 800; color: var(--psl-blue); }
.hero-lockup .vs .s { text-transform: lowercase; }
.hero-lockup .line-2 { display: block; font-size: clamp(52px, 12vw, 104px); margin-top: 8px; }

/* MACHINE glitch (chromatic split) */
.glitch { position: relative; display: inline-block; color: var(--psl-red); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.glitch::before { color: var(--psl-blue); clip-path: inset(0 0 55% 0); mix-blend-mode: screen; animation: glitchTop 3.2s infinite steps(1); }
.glitch::after { color: #fff; clip-path: inset(58% 0 0 0); mix-blend-mode: screen; animation: glitchBot 3.7s infinite steps(1); }

.hero-strapline-row {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 24px);
  margin-top: 24px; flex-wrap: wrap; animation: rise .7s .22s both;
}
.hero-strapline { font-family: var(--font-heading); font-weight: 800; font-size: clamp(19px, 3.5vw, 24px); }
.hero-strapline .accent { color: var(--psl-blue); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta { font-size: 17px; padding: 15px 36px; border-radius: 11px; }
.hero-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, #fff 24%, transparent); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 17px;
  padding: 15px 28px; border-radius: 11px; text-decoration: none;
}
.hero-ghost:hover { background: color-mix(in srgb, #fff 8%, transparent); color: #fff; }

.hero-credit {
  position: absolute; right: 10px; bottom: 6px; z-index: 1;
  font-size: 10px; color: rgba(255,255,255,.35); text-decoration: none;
}
.hero-credit:hover { color: rgba(255,255,255,.6); }

/* ══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════════════════ */
.how-heading {
  font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.02em;
  margin: 14px 0 12px; white-space: nowrap;
}
/* On narrow screens the single line can't fit — let it wrap to avoid a
   horizontal scroll (the nowrap treatment is a desktop/tablet nicety). */
@media (max-width: 600px) { .how-heading { white-space: normal; } }
.how-intro { font-size: 17px; max-width: 60ch; margin-bottom: 40px; text-wrap: pretty; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.step-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 22px; border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.step-n { font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; color: color-mix(in srgb, var(--psl-blue) 85%, transparent); opacity: .9; }
.step-title { font-size: 19px; font-weight: 700; margin: 16px 0 8px; }
.step-body { font-size: 14px; margin: 0 0 14px; }
.step-more {
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  color: var(--psl-red); text-decoration: none; margin-top: auto;
}
.step-more:hover { color: var(--psl-red); filter: brightness(1.15); }

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL RANKINGS
   ══════════════════════════════════════════════════════════════════════════ */
.rankings-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rankings-sub { font-size: 16px; margin: 0; }
.rankings-filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }

.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.psl-select {
  color-scheme: dark; cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
                    linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  -webkit-appearance: none; appearance: none;
}
.psl-select:focus-visible { border-color: var(--psl-blue); outline-offset: 0; }

.table-scroll {
  margin-top: 28px; border-radius: 14px; background: var(--color-surface);
  box-shadow: var(--shadow-sm); overflow-x: auto; -webkit-overflow-scrolling: touch;
}

.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 660px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid transparent;
}
.table td { padding: var(--space-2); border-bottom: 1px solid transparent; }
.table thead tr {
  background: linear-gradient(to right, transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.table tbody tr {
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-text) 8%, transparent) 48px,
    color-mix(in srgb, var(--color-text) 8%, transparent) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
  animation: psl-fade .3s;
}
.table tbody tr:hover {
  background:
    linear-gradient(color-mix(in srgb, var(--color-text) 4%, transparent), color-mix(in srgb, var(--color-text) 4%, transparent)) no-repeat 0 0 / 100% 100%,
    linear-gradient(to right, transparent, color-mix(in srgb, var(--color-text) 8%, transparent) 48px,
      color-mix(in srgb, var(--color-text) 8%, transparent) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}

.rank-num { font-family: var(--font-heading); font-weight: 800; font-size: 22px; }
.player-cell { display: flex; align-items: center; gap: 14px; }
.player-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center; background: #2c2f3d;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: rgba(255,255,255,.72);
}
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-name-row { display: flex; align-items: center; gap: 10px; }
.player-name { font-weight: 600; font-size: 15px; }
.player-flag { font-size: 20px; line-height: 1; }

/* Mini SVG flag icon shown after a player's name (replaces the emoji, which
   renders as bare country-code letters on some platforms). */
.player-flag-icon {
  width: 22px; height: 15px; flex: none; display: block; border-radius: 3px;
  overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.player-flag-icon svg { display: block; width: 100%; height: 100%; }
/* Fallback chip for any country without a crafted flag. */
.player-flag-code {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.tag {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em;
  padding: 3px 10px; border-radius: calc(var(--radius-md) * 0.75);
}
.cell-trend { text-align: right; font-weight: 700; }
.cell-rating { text-align: right; font-family: var(--font-heading); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }

.rankings-empty { padding: 28px 24px; text-align: center; }
.rankings-more { margin-top: 18px; text-align: center; }
.rankings-more a { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--psl-red); text-decoration: none; }
.rankings-more a:hover { filter: brightness(1.15); }

/* Column-specific padding to match prototype */
.table th.col-rank, .table td.col-rank { width: 64px; padding-left: 24px; }
.table th.col-trend, .table td.col-trend { text-align: right; }
.table th.col-rating, .table td.col-rating { text-align: right; padding-right: 24px; }

/* ══════════════════════════════════════════════════════════════════════════
   SEASON I
   ══════════════════════════════════════════════════════════════════════════ */
.season-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.season-head-h2 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 0; }
.season-viewall { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--psl-red); text-decoration: none; white-space: nowrap; }
.season-viewall:hover { filter: brightness(1.15); }
.season-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }

.news-placeholder {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  border-radius: 16px; background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.news-placeholder h3 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.news-placeholder p { max-width: 48ch; margin: 0 auto; }

.season-feat {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  min-height: 420px; border: 0; padding: 0; width: 100%; text-align: left;
  background: #0a0b10; color: var(--color-text); font: inherit;
}
.season-feat .feat-img { position: absolute; inset: 0; }
.season-feat .feat-img img { width: 100%; height: 100%; object-fit: cover; }
.season-feat .feat-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,14,.92), rgba(8,9,14,.15) 60%, transparent); pointer-events: none; }
.feat-play {
  position: absolute; top: 24px; left: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in srgb, var(--psl-red) 88%, transparent); display: grid; place-items: center;
  pointer-events: none; transition: transform .18s, background .18s;
}
.feat-caption { position: absolute; left: 28px; right: 28px; bottom: 26px; pointer-events: none; }
.feat-caption h3 { font-size: 28px; font-weight: 800; margin: 14px 0 8px; max-width: 22ch; }
.feat-caption p { font-size: 15px; margin: 0; max-width: 44ch; }
.season-feat:hover .feat-play { transform: scale(1.08); background: var(--psl-red); }

.clip-list { display: flex; flex-direction: column; gap: 16px; }
.clip {
  display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 14px;
  background: var(--color-surface); box-shadow: var(--shadow-sm); cursor: pointer;
  border: 0; width: 100%; text-align: left; color: var(--color-text); font: inherit;
}
.clip-thumb {
  position: relative; width: 132px; height: 80px; border-radius: 10px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, #2a2d3a, #171922); display: grid; place-items: center;
}
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.clip-play {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(8,9,14,.6); display: grid; place-items: center; transition: transform .18s, background .18s;
}
.clip:hover .clip-play { transform: scale(1.08); background: var(--psl-red); }
.clip-meta-info { min-width: 0; }
.clip-kindrow { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.clip-kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--psl-blue); }
.clip-length { font-size: 11px; }
.clip-title { font-weight: 600; font-size: 15px; line-height: 1.25; }

@media (max-width: 820px) {
  .season-grid { grid-template-columns: 1fr; }
  .season-feat { min-height: 320px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MEET THE BOTS
   ══════════════════════════════════════════════════════════════════════════ */
.bots-section { background: linear-gradient(180deg, var(--color-bg), color-mix(in srgb, var(--psl-blue) 6%, var(--color-bg))); }
.bots-kicker { color: var(--psl-blue); }
.bots-heading { font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 12px; }
.bots-intro { font-size: 17px; max-width: 62ch; margin-bottom: 40px; text-wrap: pretty; }
.bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; }
.bot-card { position: relative; padding: 26px; border-radius: 16px; background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.bot-glow { position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; }
.bot-header { display: flex; align-items: center; gap: 16px; position: relative; }
.bot-avatar { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; }
.bot-name { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.bot-style { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bot-body { font-size: 14px; margin: 18px 0 20px; position: relative; }
.bot-foot { display: flex; align-items: center; justify-content: space-between; position: relative; }
.bot-foot-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bot-elo { font-family: var(--font-heading); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }

/* ══════════════════════════════════════════════════════════════════════════
   PASSES
   ══════════════════════════════════════════════════════════════════════════ */
.pass-intro { font-size: 17px; max-width: 60ch; margin-bottom: 40px; text-wrap: pretty; }
.pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

.pass-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px; border-radius: 16px; background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.pass-card.featured { box-shadow: 0 0 0 1.5px var(--psl-red), var(--shadow-md); }
.pass-badge {
  position: absolute; top: -11px; left: 24px;
  background: var(--psl-red); color: #fff; font-family: var(--font-heading);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.pass-card:not(.featured) .pass-badge { background: color-mix(in srgb, var(--psl-blue) 88%, transparent); }

.pass-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: #fff; }
.pass-price-row { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; }
.pass-price { font-family: var(--font-heading); font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: -.02em; color: #fff; }
.pass-cadence { font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.pass-blurb { font-size: 14px; margin: 0 0 20px; color: color-mix(in srgb, var(--color-text) 62%, transparent); }

.pass-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pass-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.pass-feature svg { flex: none; margin-top: 2px; color: #4ade80; }

.pass-cta {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  margin-top: auto; padding: 12px 16px; border-radius: 10px; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; transition: filter .15s, background .15s;
  /* Reset <button> UA styling (this class is also used on real buttons, e.g.
     the Account → Plan cards) so it renders the same as the <a> version. */
  appearance: none; -webkit-appearance: none; background: none; border: 1px solid transparent; cursor: pointer;
}
.pass-cta.solid { background: var(--psl-red); color: #fff; }
.pass-cta.solid:hover { filter: brightness(1.12); color: #fff; }
.pass-cta.outline { border-color: var(--color-divider); color: var(--color-text); }
.pass-cta.outline:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }

@media (max-width: 880px) {
  .pass-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CTA + FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.cta-section {
  padding: clamp(72px, 11vw, 110px) 0; border-top: 1px solid var(--color-divider);
  text-align: center; position: relative; overflow: hidden;
}
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in srgb, var(--psl-red) 14%, transparent), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; }
.cta-h2 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; }
.cta-sub { font-size: 18px; max-width: 52ch; margin: 0 auto 28px; text-wrap: pretty; }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-register { font-size: 17px; padding: 15px 40px; border-radius: 10px; }
.cta-login {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-divider); color: var(--color-text);
  font-family: var(--font-heading); font-weight: 600; font-size: 17px;
  padding: 15px 34px; border-radius: 10px; text-decoration: none;
}
.cta-login:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }

.site-footer { padding: 44px 0; border-top: 1px solid var(--color-divider); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-heading); font-weight: 800; letter-spacing: .06em; }
.footer-brand .p { color: #fff; }
.footer-brand .s { color: var(--psl-red); }
.footer-brand .l { color: var(--psl-blue); }
.footer-brand .name { font-weight: 500; letter-spacing: .2em; font-size: 12px; }
.footer-meta { font-size: 13px; }
.footer-credits { font-size: 11px; margin-top: 6px; width: 100%; text-align: left; }
.footer-credits a { color: inherit; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   COOKIE NOTICE — discreet bottom bar, dismissed once per visitor
   ══════════════════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--color-surface); border-top: 1px solid var(--color-divider);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .4);
  padding: 13px clamp(16px, 4vw, 32px);
  animation: cookie-rise .32s ease both;
}
.cookie-inner {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
}
.cookie-text { margin: 0; font-size: 13px; line-height: 1.5; max-width: 74ch; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.cookie-text a { color: var(--psl-blue); }
.cookie-text a:hover { color: #5cc0ef; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px; cursor: pointer;
  padding: 8px 18px; border-radius: 8px; border: 1px solid transparent; white-space: nowrap;
  transition: filter .15s, background .15s, border-color .15s;
}
.cookie-accept { background: var(--psl-red); color: #fff; }
.cookie-accept:hover { filter: brightness(1.12); }
.cookie-decline { background: transparent; border-color: var(--color-divider); color: var(--color-text); }
.cookie-decline:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
@keyframes cookie-rise { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   VIDEO MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: 32px; background: rgba(8,9,14,.82); animation: psl-fade .18s;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(880px, 100%); background: var(--color-surface); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.modal-media { position: relative; aspect-ratio: 16 / 9; background: #0a0b10; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  background: color-mix(in srgb, var(--psl-red) 90%, transparent); display: grid; place-items: center; pointer-events: none;
}
.modal-caption { padding: 22px 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--psl-blue); }
.modal-title { font-size: 22px; font-weight: 800; margin: 8px 0 6px; }
.modal-body { font-size: 14px; margin: 0; max-width: 60ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: var(--font-heading); font-weight: 500; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 1px solid var(--color-divider);
  padding: var(--space-2) calc(var(--space-3) * 1.2); border-radius: var(--radius-md);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.modal-close { flex: none; }

/* ══════════════════════════════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes glitchTop {
  0%,90%,100% { transform: translate(0,0); opacity: 0; }
  91% { transform: translate(-4px,-1px); opacity: .85; }
  93% { transform: translate(3px,1px); opacity: .85; }
  95% { transform: translate(-2px,0); opacity: .85; }
  97% { transform: translate(0,0); opacity: 0; }
}
@keyframes glitchBot {
  0%,86%,100% { transform: translate(0,0); opacity: 0; }
  87% { transform: translate(4px,1px); opacity: .8; }
  89% { transform: translate(-3px,-1px); opacity: .8; }
  92% { transform: translate(2px,0); opacity: .8; }
  94% { transform: translate(0,0); opacity: 0; }
}
@keyframes glow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes scanmove { 0% { transform: translateY(-30px); } 100% { transform: translateY(100%); } }
@keyframes hudflick { 0%,97%,100% { opacity: 1; } 98% { opacity: .55; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes psl-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-scanline, .hud-layer, .glitch::before, .glitch::after, .hero-pill .dot,
  .hero-pill, .hero-lockup, .hero-strapline-row, .table tbody tr, .modal-backdrop { animation: none !important; }
}

/* ─────────────────────  Toggle switch (register + account)  ───────────────────── */
.rg-field-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rg-field-text { min-width: 0; }
.rg-field-title { font-size: 14px; font-weight: 600; color: var(--color-text); }
.rg-field-hint { font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.rg-toggle {
  flex: none; width: 46px; height: 26px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  position: relative; background: color-mix(in srgb, var(--color-text) 22%, transparent); transition: background .15s;
}
.rg-toggle[aria-checked="true"] { background: var(--psl-red); }
.rg-toggle-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rg-toggle[aria-checked="true"] .rg-toggle-knob { transform: translateX(20px); }
.rg-toggle:focus-visible { outline: 2px solid var(--psl-blue); outline-offset: 2px; }

/* ─────────────────────  Avatar picker: photo dropzone + colour swatches  ───────────────────── */
/* Used on both the register page (step 3) and Account → Settings. */
.rg-avatar-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.rg-dropzone {
  position: relative; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px var(--color-divider), 0 0 0 5px color-mix(in srgb, var(--psl-blue) 18%, transparent);
  background: #0c0e15; cursor: pointer; border: 0; padding: 0; display: grid; place-items: center;
}
.rg-dropzone .rg-drop-label {
  font-size: 12px; line-height: 1.4; color: rgba(200,210,225,.5); padding: 0 12px; text-align: center;
  font-family: var(--font-body);
}
.rg-dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rg-dropzone.is-dragover { box-shadow: 0 0 0 1px var(--psl-blue), 0 0 0 5px color-mix(in srgb, var(--psl-blue) 35%, transparent); }
.rg-dropzone:focus-visible { outline: 2px solid var(--psl-blue); outline-offset: 4px; }
.rg-dropzone .rg-drop-glyph { font-family: var(--font-heading); font-weight: 700; font-size: 40px; line-height: 1; color: #fff; }

.rg-colors { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.rg-color-swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s;
}
.rg-color-swatch:hover { transform: translateY(-1px); }
.rg-color-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--psl-blue); }
.rg-color-swatch:focus-visible { outline: 2px solid var(--psl-blue); outline-offset: 2px; }
