/* ============================================================================
   www.gotheextramiles.com — core theme
   Neon blue on dark gray / black. All colour, spacing and glow live in the
   custom properties below: retheme the whole site by editing :root.
   2026-08-29.02
   ========================================================================== */

:root {
  /* -- Surfaces (darkest -> lightest) ----------------------------------- */
  --bg:          #07080c;
  --bg-2:        #0b0d13;
  --surface:     #11141c;
  --surface-2:   #171b26;
  --line:        #232839;
  --line-bright: #2f3752;

  /* -- Neon blue ramp --------------------------------------------------- */
  --neon:        #2f9bff;
  --neon-bright: #64c8ff;
  --neon-dim:    #1b6fd0;
  --neon-ghost:  rgba(47, 155, 255, .12);

  /* -- Text ------------------------------------------------------------- */
  --fg:      #e9eef8;
  --fg-mid:  #9aa6c2;
  --fg-dim:  #6b7794;

  /* -- Effects ---------------------------------------------------------- */
  --glow-sm: 0 0 10px rgba(47,155,255,.35);
  --glow-md: 0 0 22px rgba(47,155,255,.28);
  --glow-lg: 0 0 60px rgba(47,155,255,.20);
  --radius:    14px;
  --radius-sm: 9px;

  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* Ambient glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20%;                 /* overscan so the drifting edges never show */
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(47,155,255,.16), transparent 70%),
    radial-gradient(760px 420px at 92% 12%, rgba(100,200,255,.07), transparent 65%),
    radial-gradient(900px 600px at 12% 82%, rgba(47,155,255,.10), transparent 68%),
    radial-gradient(680px 520px at 78% 92%, rgba(120,90,255,.07), transparent 70%);
  animation: auroraDrift 34s ease-in-out infinite alternate;
  will-change: transform;
}

/* Slow, non-repeating-feeling swell — the "breathing" of the PS4 wallpapers.
   Kept to transform only so it stays on the compositor (no repaint). */
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0)        scale(1);    }
  50%  { transform: translate3d(1.5%, -1%, 0)   scale(1.06); }
  100% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.03); }
}

/* ── Sparkle / particle field ──────────────────────────────────────────
   Two layered dot fields at different sizes and speeds give parallax depth.
   Built from repeating radial-gradients, so: no images, no JS, no requests. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* --- far layer: fine dust, dense ------------------------------- */
    radial-gradient(1.2px 1.2px at 12% 18%,  rgba(190,230,255,1.00), transparent),
    radial-gradient(1px   1px   at 68% 12%,  rgba(150,210,255,.90), transparent),
    radial-gradient(1.3px 1.3px at 34% 62%,  rgba(200,235,255,.95), transparent),
    radial-gradient(1px   1px   at 88% 44%,  rgba(150,210,255,.85), transparent),
    radial-gradient(1.2px 1.2px at 52% 88%,  rgba(190,230,255,.93), transparent),
    radial-gradient(1px   1px   at 22% 92%,  rgba(165,215,255,.83), transparent),
    radial-gradient(1.1px 1.1px at 42% 34%,  rgba(180,225,255,.87), transparent),
    radial-gradient(1.3px 1.3px at 74% 58%,  rgba(200,235,255,.89), transparent),
    /* --- mid layer: clear stars ------------------------------------ */
    radial-gradient(2px   2px   at 28% 44%,  rgba(215,242,255,1.00), transparent),
    radial-gradient(1.8px 1.8px at 82% 26%,  rgba(205,238,255,1.00), transparent),
    radial-gradient(2.1px 2.1px at 16% 72%,  rgba(215,242,255,1.00), transparent),
    radial-gradient(1.9px 1.9px at 64% 80%,  rgba(200,235,255,1.00), transparent),
    /* --- near layer: bright cyan-white cores with bloom ------------ */
    radial-gradient(3px   3px   at 78% 72%,  rgba(235,250,255,1),   transparent),
    radial-gradient(2.8px 2.8px at 8%  48%,  rgba(225,246,255,1.00), transparent),
    radial-gradient(3.2px 3.2px at 60% 30%,  rgba(240,252,255,1),   transparent),
    radial-gradient(2.6px 2.6px at 38% 14%,  rgba(225,246,255,1.00), transparent);
  background-size:
    /* far — small tiles = dense field */
    300px 300px, 270px 270px, 330px 330px, 290px 290px,
    310px 310px, 260px 260px, 280px 280px, 320px 320px,
    /* mid */
    520px 520px, 480px 480px, 560px 560px, 500px 500px,
    /* near — large tiles = sparse, bright */
    760px 760px, 720px 720px, 800px 800px, 680px 680px;
  animation: sparkleRise 44s linear infinite, sparkleTwinkle 3.6s ease-in-out infinite;
  opacity: 1;
  will-change: background-position, opacity;
}

/* Three tile scales drift at different rates → real parallax depth. */
@keyframes sparkleRise {
  from { background-position:
           0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
           0 0, 0 0, 0 0, 0 0,
           0 0, 0 0, 0 0, 0 0; }
  to   { background-position:
           30px -300px, -22px -270px,  26px -330px, -18px -290px,
           28px -310px, -14px -260px,  20px -280px, -24px -320px,
          -55px -520px,  48px -480px, -60px -560px,  44px -500px,
         -110px -760px,  95px -720px,-120px -800px,  85px -680px; }
}

/* Collective shimmer — deeper range so the field visibly breathes */
@keyframes sparkleTwinkle {
  0%, 100% { opacity: .80; }
  50%      { opacity: 1;   }
}

/* ── Flowing ribbon waves ───────────────────────────────────────────────
   The soft luminous streaks from the reference. A separate fixed layer so
   it can drift independently of both the aurora and the sparkle field. */
.bg-waves {
  position: fixed;
  inset: -30% -15%;
  pointer-events: none;
  z-index: 0;
  opacity: .8;
  background-image:
    /* bright cyan-white core streaks, like the reference */
    radial-gradient(closest-side, rgba(150,225,255,.42), transparent 68%),
    radial-gradient(closest-side, rgba(90,190,255,.38),  transparent 70%),
    /* mid blue body */
    radial-gradient(closest-side, rgba(50,140,255,.34),  transparent 72%),
    radial-gradient(closest-side, rgba(80,180,255,.30),  transparent 70%),
    /* deep navy undertow */
    radial-gradient(closest-side, rgba(25,80,210,.28),   transparent 74%),
    radial-gradient(closest-side, rgba(40,110,240,.24),  transparent 72%);
  background-repeat: no-repeat;
  background-size:
    88% 20%, 72% 16%,
    120% 30%, 96% 24%,
    140% 34%, 110% 26%;
  background-position:
    -10% 40%, 62% 46%,
    -18% 36%, 70% 54%,
     20% 66%, 44% 30%;
  filter: blur(30px);
  animation: waveFlow 22s ease-in-out infinite alternate;
  will-change: background-position, transform;
}

/* Second ribbon layer, counter-drifting — this is what makes it read as
   a flowing current rather than a single moving blob. */
.bg-waves::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(closest-side, rgba(170,235,255,.36), transparent 66%),
    radial-gradient(closest-side, rgba(60,160,255,.30),  transparent 70%),
    radial-gradient(closest-side, rgba(35,100,230,.26),  transparent 72%);
  background-repeat: no-repeat;
  background-size: 76% 14%, 104% 22%, 130% 28%;
  background-position: 30% 52%, -14% 62%, 58% 38%;
  filter: blur(22px);
  animation: waveFlowAlt 30s ease-in-out infinite alternate;
}

@keyframes waveFlow {
  0% {
    background-position: -10% 40%, 62% 46%, -18% 36%, 70% 54%, 20% 66%, 44% 30%;
    transform: translate3d(0,0,0) scaleY(1) skewY(0deg);
  }
  33% {
    background-position:   6% 46%, 44% 38%,  -2% 44%, 52% 46%, 36% 58%, 28% 38%;
    transform: translate3d(1.5%,-1.5%,0) scaleY(1.18) skewY(-.6deg);
  }
  66% {
    background-position:  22% 34%, 28% 54%,  14% 30%, 34% 62%, 52% 70%, 12% 26%;
    transform: translate3d(-1.5%,1%,0) scaleY(.9) skewY(.5deg);
  }
  100% {
    background-position:  34% 44%, 12% 42%,  28% 40%, 18% 50%, 66% 62%, -4% 34%;
    transform: translate3d(2%,-.5%,0) scaleY(1.12) skewY(-.3deg);
  }
}

@keyframes waveFlowAlt {
  0%   { background-position:  30% 52%, -14% 62%,  58% 38%; transform: translate3d(0,0,0)       scaleY(1);    }
  50%  { background-position:  10% 44%,   6% 54%,  38% 46%; transform: translate3d(-2%,1.5%,0)  scaleY(1.22); }
  100% { background-position: -12% 56%,  26% 46%,  18% 34%; transform: translate3d(2.5%,-1%,0)  scaleY(.88);  }
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--neon-bright); text-decoration: none; }
a:hover { color: #fff; }

/* -- Skip link (a11y) --------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--neon); color: #04070d; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ===== HEADER / NAV ==================================================== */

.site-head {
  position: sticky; top: 0; z-index: 100;
  /* Navy-tinted glass rather than flat near-black: a deep blue wash that
     lifts toward the left, over the dark base. */
  background:
    linear-gradient(180deg, rgba(20,38,78,.62), rgba(11,20,44,.52) 58%, rgba(8,13,28,.60)),
    linear-gradient(100deg, rgba(28,52,104,.40), transparent 62%),
    rgba(7,9,16,.80);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid rgba(74,116,196,.30);
  box-shadow: 0 1px 0 rgba(120,170,255,.07) inset,
              0 10px 30px -22px rgba(0,0,0,.9);
}

/* Thin luminous rule under the bar — navy fading to a blue core */
.site-head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg,
              transparent, rgba(47,155,255,.30) 18%, rgba(120,190,255,.55) 50%,
              rgba(47,155,255,.30) 82%, transparent);
  pointer-events: none;
}

.head-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}

/* Logo doubles as Home */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand:hover .brand-mark { box-shadow: var(--glow-md); }
.brand-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--neon), var(--neon-dim));
  color: #03060d; font-weight: 800; font-size: .82rem; letter-spacing: -.02em;
  box-shadow: var(--glow-sm);
  transition: box-shadow .25s ease;
}

/* Image logo: transparent art, so no plate/gradient behind it.
   The mark is white linework — tint it to the theme accent with a drop-shadow
   glow instead of a box-shadow (which would glow a rectangle, not the art). */
.brand-logo {
  width: 42px; height: 42px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(47,155,255,.45));
  transition: filter .3s ease, transform .45s cubic-bezier(.34,1.4,.64,1);
  animation: logoPulse 5.5s ease-in-out infinite;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 16px rgba(47,155,255,.9));
  transform: scale(1.1) rotate(-6deg);
  animation-play-state: paused;
}
.brand:active .brand-logo { transform: scale(1.02) rotate(-2deg); }

/* Idle breathing glow so the mark feels alive without demanding attention */
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 5px  rgba(47,155,255,.35)); }
  50%      { filter: drop-shadow(0 0 11px rgba(47,155,255,.62)); }
}
/* Keep the hover rule for the text mark from adding a box glow to the image */
.brand:hover .brand-logo { box-shadow: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 700; font-size: 1.02rem; color: var(--fg); letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--neon); font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }

.nav a, .nav span {
  position: relative;
  display: block;
  padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .86rem; font-weight: 600;
  color: var(--fg-mid);
  white-space: nowrap;
  transition: color .22s ease, background .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.nav a:hover {
  color: var(--fg);
  background: var(--neon-ghost);
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(47,155,255,.5);
}
.nav a:active { transform: translateY(0); }

/* Underline grows from the centre on hover (the active tab keeps its own) */
.nav a::before {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: .18rem;
  height: 2px; border-radius: 2px;
  background: var(--neon);
  box-shadow: var(--glow-sm);
  opacity: 0;
  transition: left .25s ease, right .25s ease, opacity .25s ease;
}
.nav a:hover::before { left: .85rem; right: .85rem; opacity: 1; }
.nav a.is-active::before, .nav a.is-soon::before { display: none; }

/* Active tab - neon underline */
.nav a.is-active { color: var(--neon-bright); }
.nav a.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .18rem;
  height: 2px; border-radius: 2px;
  background: var(--neon);
  box-shadow: var(--glow-sm);
}

/* Not-yet-filled tabs */
.nav .is-soon { color: var(--fg-dim); cursor: default; }
.nav a.is-soon:hover { color: var(--fg-mid); background: transparent; }
.nav .is-soon::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; margin-right: .45rem; vertical-align: middle;
  border-radius: 50%; background: var(--line-bright);
}

/* ── Site search (top right) ───────────────────────────────────────────── */

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

.site-search { position: relative; flex-shrink: 0; margin-left: .4rem; }

.search-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--fg-mid);
  cursor: pointer;
  transition: color .22s ease, border-color .22s ease, background .22s ease,
              transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] {
  color: var(--neon-bright);
  border-color: var(--neon);
  background: var(--neon-ghost);
  transform: scale(1.08);
  box-shadow: 0 0 16px -4px var(--neon);
}

.search-panel {
  position: absolute; top: calc(100% + .55rem); right: 0;
  width: min(30rem, calc(100vw - 2.5rem));
  background: rgba(11,13,19,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9), 0 0 30px -14px var(--neon);
  padding: .7rem;
  z-index: 120;
}

.search-input {
  width: 100%;
  padding: .7rem .95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit; font-size: .92rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input::placeholder { color: var(--fg-dim); }
.search-input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-ghost); }

.search-results { margin-top: .55rem; max-height: 24rem; overflow-y: auto; }

.search-hit {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.search-hit:hover, .search-hit.is-cursor {
  background: var(--neon-ghost);
  border-color: rgba(47,155,255,.3);
  transform: translateX(2px);
}
.search-hit-top {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  margin-bottom: .15rem;
}
.search-hit-title { font-weight: 650; color: var(--fg); font-size: .92rem; }
.search-hit-type {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 800; color: var(--neon);
  border: 1px solid rgba(47,155,255,.32);
  border-radius: 999px; padding: .1rem .45rem;
}
.search-hit-excerpt {
  color: var(--fg-dim); font-size: .8rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-hit mark { background: transparent; color: var(--neon-bright); font-weight: 700; }
.search-empty { padding: .9rem .75rem; color: var(--fg-dim); font-size: .86rem; }

@media (max-width: 900px) {
  .site-search { order: 3; margin-left: .3rem; }
  .search-panel { right: -.5rem; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line-bright);
  color: var(--fg); border-radius: var(--radius-sm);
  padding: .5rem .7rem; cursor: pointer; font-size: 1rem; line-height: 1;
}

/* ===== LAYOUT ========================================================== */

main { position: relative; z-index: 1; flex: 1 0 auto; }

.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--neon);
  margin-bottom: .9rem;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.06rem; font-weight: 700; }

.lede { color: var(--fg-mid); font-size: 1.08rem; max-width: 62ch; margin: 1.1rem 0 0; }
.muted { color: var(--fg-dim); }

/* -- Hero --------------------------------------------------------------- */
.hero { padding: 6rem 0 4.5rem; text-align: center; }
.hero h1 { max-width: 18ch; margin: 0 auto; }
.hero h1 .glow {
  color: var(--neon-bright);
  text-shadow: 0 0 28px rgba(47,155,255,.55);
}
.hero .lede { margin: 1.4rem auto 0; }
.hero-actions {
  margin-top: 2.2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
}

/* -- Buttons ------------------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.4rem;
  border-radius: 999px;
  font-weight: 650; font-size: .92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1),
              box-shadow .28s ease, background .22s ease, color .22s ease,
              border-color .22s ease;
}

/* Light sweep across the button on hover */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn[aria-disabled="true"]::after { display: none; }

.btn-primary {
  background: linear-gradient(140deg, var(--neon), var(--neon-dim));
  color: #03060d;
  box-shadow: var(--glow-sm);
}
.btn-primary:hover {
  color: #03060d;
  box-shadow: var(--glow-md), 0 8px 24px -6px rgba(47,155,255,.5);
  transform: translateY(-3px);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost { border-color: var(--line-bright); color: var(--fg); background: transparent; }
.btn-ghost:hover {
  border-color: var(--neon);
  color: var(--neon-bright);
  background: var(--neon-ghost);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px -8px rgba(47,155,255,.45);
}
.btn-ghost:active { transform: translateY(-1px); }
.btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--fg-dim);
  border-color: var(--line); box-shadow: none; cursor: default;
}
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; color: var(--fg-dim); }

/* -- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease,
              transform .3s cubic-bezier(.34,1.4,.64,1),
              box-shadow .3s ease;
}

/* Soft spotlight that follows the pointer (site.js sets --mx / --my).
   Falls back to a static top-left sheen if JS never runs. */
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 0%),
              rgba(47,155,255,.14), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card:hover {
  border-color: var(--line-bright);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.7);
}
.card.is-link:hover {
  border-color: var(--neon-dim);
  box-shadow: var(--glow-md), 0 18px 44px -16px rgba(0,0,0,.75);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--fg-mid); margin: 0; font-size: .94rem; }

/* -- Video slots -------------------------------------------------------- */
.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(420px 200px at 50% 40%, rgba(47,155,255,.13), transparent 70%),
    var(--bg-2);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.video-thumb iframe,
.video-thumb img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }

/* Empty slot placeholder */
.slot-empty { text-align: center; padding: 1rem; }
.slot-play {
  width: 52px; height: 52px; margin: 0 auto .8rem;
  border-radius: 50%;
  border: 1.5px dashed var(--line-bright);
  display: grid; place-items: center;
  color: var(--neon-dim); font-size: 1.1rem;
}
.slot-label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 700;
}
.video-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.video-body h3 { font-size: .98rem; }
.video-meta {
  margin-top: .6rem; font-size: .76rem; color: var(--fg-dim);
  display: flex; gap: .8rem; flex-wrap: wrap;
}

/* -- "Coming soon" content well (empty tabs) ---------------------------- */
.well {
  border: 1.5px dashed var(--line-bright);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(47,155,255,.022) 0 12px, transparent 12px 24px),
    var(--bg-2);
  padding: 4rem 2rem;
  text-align: center;
}
.well .slot-label { margin-bottom: .7rem; display: block; }
.well p { color: var(--fg-dim); max-width: 46ch; margin: .6rem auto 0; font-size: .93rem; }

/* -- Badge / pill ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: var(--neon-ghost); border: 1px solid rgba(47,155,255,.28);
  color: var(--neon-bright);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon); box-shadow: var(--glow-sm);
}

/* -- Games -------------------------------------------------------------- */

.game-card { padding-top: 2.9rem; }
.game-card.is-empty { opacity: .72; }
.game-status {
  position: absolute; top: 1.1rem; left: 1.5rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-hue, var(--neon));
  border: 1px solid color-mix(in srgb, var(--t-hue, var(--neon)) 42%, transparent);
  background: color-mix(in srgb, var(--t-hue, var(--neon)) 12%, transparent);
  border-radius: 999px; padding: .18rem .6rem;
  z-index: 2;
}
.game-platform {
  display: inline-block; margin-bottom: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: var(--fg-dim);
}
.game-card:hover { border-color: color-mix(in srgb, var(--t-hue, var(--neon)) 55%, transparent); }

/* -- Arcade (playable mini-games) --------------------------------------- */

.arcade {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 2.4rem;
}
.arcade-card { display: flex; flex-direction: column; }
.arcade-card h3 { margin-bottom: .35rem; }
.arcade-card > p { margin-bottom: 1.1rem; }
.arcade-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap;
  margin-top: .9rem;
  font-size: .82rem; color: var(--fg-mid); min-height: 2rem;
}
.arcade-best { color: var(--fg-dim); }
.arcade-best strong { color: var(--t-hue, var(--neon)); font-weight: 700; }
.btn-sm { padding: .42rem .9rem; font-size: .8rem; }

/* 1. Reaction pad */
.rx-pad {
  display: grid; place-items: center;
  min-height: 148px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-bright);
  background: var(--bg-2);
  color: var(--fg-mid);
  font-weight: 700; font-size: .95rem;
  cursor: pointer; user-select: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.rx-pad.is-wait  { background: #2a1c12; border-color: #7a5320; color: #ffc178; border-style: solid; }
.rx-pad.is-go    { background: #0d3a2a; border-color: #35e0dd; color: #8affe6;
                   border-style: solid; font-size: 1.5rem; letter-spacing: .12em;
                   box-shadow: inset 0 0 40px rgba(53,224,221,.35); }
.rx-pad.is-early { background: #331722; border-color: #ff5e6b; color: #ff9aa4; border-style: solid; }

/* Rank badge awarded after a run */
.rx-rank {
  margin-top: .85rem;
  padding: .7rem .95rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--t-hue, var(--neon)) 45%, transparent);
  background: color-mix(in srgb, var(--t-hue, var(--neon)) 10%, var(--bg-2));
  box-shadow: 0 0 22px -10px var(--t-hue, var(--neon));
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  animation: rankIn .45s cubic-bezier(.34,1.4,.64,1);
}
.rx-rank-name {
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em;
  color: var(--t-hue, var(--neon));
  text-shadow: 0 0 16px color-mix(in srgb, var(--t-hue, var(--neon)) 55%, transparent);
}
.rx-rank-title {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--fg-dim);
}
@keyframes rankIn {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* 2. Memory grid */
.mm-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.mm-card {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg-2);
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.mm-card:hover { border-color: var(--t-hue, var(--neon)); transform: translateY(-2px); }
.mm-face {
  font-size: 1.3rem; font-weight: 700;
  color: transparent;
  transition: color .16s ease, text-shadow .16s ease;
}
.mm-card.is-up  { background: color-mix(in srgb, var(--t-hue) 16%, var(--bg-2)); border-color: var(--t-hue); }
.mm-card.is-up .mm-face,
.mm-card.is-done .mm-face { color: var(--t-hue); text-shadow: 0 0 14px var(--t-hue); }
.mm-card.is-done {
  background: color-mix(in srgb, var(--t-hue) 22%, var(--bg-2));
  border-color: var(--t-hue);
  cursor: default; opacity: .78;
}
.mm-card.is-done:hover { transform: none; }

/* 3. Catch canvas */
#ac-canvas {
  width: 100%; height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: radial-gradient(120% 90% at 50% 0%, rgba(47,155,255,.10), transparent 70%), var(--bg-2);
  touch-action: none;
  cursor: crosshair;
  display: block;
}

/* -- Suggestions -------------------------------------------------------- */

.suggest-layout {
  display: grid; gap: 1.6rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  margin-top: 2.4rem;
  align-items: start;
}
@media (max-width: 860px) { .suggest-layout { grid-template-columns: 1fr; } }

.suggest-form {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; margin-bottom: .4rem;
  font-size: .82rem; font-weight: 650; color: var(--fg);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--fg);
  font: inherit; font-size: .92rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-ghost);
}
.suggest-note { color: var(--fg-dim); font-size: .82rem; margin: .9rem 0 0; line-height: 1.55; }
.suggest-aside { display: grid; gap: 1rem; }

/* -- Search: in-page highlight ------------------------------------------ */
/* Applied by site.js when arriving from a search hit. Cleared on click. */
.search-target {
  background: linear-gradient(90deg,
              rgba(47,155,255,.30), rgba(47,155,255,.16) 60%, transparent);
  box-shadow: 0 0 0 2px rgba(47,155,255,.45),
              0 0 26px -4px rgba(47,155,255,.7);
  border-radius: var(--radius-sm);
  animation: targetPulse 1.5s ease-in-out 2;
  scroll-margin-top: 96px;
}
@keyframes targetPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(47,155,255,.35), 0 0 20px -6px rgba(47,155,255,.55); }
  50%      { box-shadow: 0 0 0 3px rgba(47,155,255,.75), 0 0 40px -2px rgba(47,155,255,.95); }
}
/* The matched word itself, inside the highlighted block */
.search-hit-word {
  background: rgba(47,155,255,.32);
  color: #fff;
  border-radius: 3px;
  padding: 0 .12em;
  box-shadow: 0 0 12px rgba(47,155,255,.55);
}

/* -- Footer ------------------------------------------------------------- */
.site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.5rem 0;
  margin-top: auto;
  color: var(--fg-dim); font-size: .85rem;
}
.foot-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot-links a {
  color: var(--fg-mid);
  display: inline-block;
  transition: color .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1),
              text-shadow .22s ease;
}
.foot-links a:hover {
  color: var(--neon-bright);
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(47,155,255,.55);
}

/* Empty video slots respond too, so the placeholders don't feel dead */
.video-card:hover .slot-play {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: var(--glow-sm);
  transform: scale(1.08);
}
.slot-play { transition: border-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.34,1.4,.64,1); }

/* Pill badge shimmer */
.pill .dot { animation: dotPulse 2.6s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px  rgba(47,155,255,.5);  opacity: .85; }
  50%      { box-shadow: 0 0 14px rgba(47,155,255,.95); opacity: 1;   }
}

/* ===== RESPONSIVE ====================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: rgba(7,8,12,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: .7rem 1.5rem 1.1rem;
  }
  .nav.is-open { display: flex; }
  .nav a.is-active::after { left: .85rem; right: auto; width: 18px; }
  .site-head { position: relative; }
}

@media (max-width: 560px) {
  .section { padding: 3.2rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .brand-sub { display: none; }
}

/* Respect the OS "reduce motion" setting: drop all movement but KEEP the
   static look — the ambient layers stay, they just stop drifting. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }

  body::before { transform: none !important; }
  body::after  { opacity: .75 !important; }
  .bg-waves    { transform: none !important; opacity: .45 !important; }

  /* Hover feedback becomes colour-only, no movement */
  .nav a:hover, .btn:hover, .card:hover,
  .foot-links a:hover, .brand:hover .brand-logo { transform: none !important; }
  .btn::after { display: none !important; }
}
