/* =========================================================================
   STEAMINC — maximalist cyber-arcade skin.
   Every effect here is gated behind html.chill and prefers-reduced-motion,
   so the loud version is a choice and the quiet version is still complete.
   ========================================================================= */

:root {
  --ink: #07060c;
  --ink-2: #0d0b16;
  --paper: #f6f3e9;
  --acid: #ccff00;
  --magenta: #ff2d78;
  --cyan: #22e8ff;
  --violet: #7b2dff;
  --dim: #8b86a3;

  --edge: 2px solid var(--paper);
  --shadow-hard: 8px 8px 0 var(--ink);
  --sans: "Helvetica Neue", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --bar-h: 74px;
}

* { box-sizing: border-box; }

/* Any explicit `display` beats the UA's [hidden] rule, so `hidden` silently stops
   working on anything styled as grid/flex. This puts it back, everywhere. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-synthesis-weight: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); }
kbd {
  font: 600 10px/1 var(--mono);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 3px 5px;
  opacity: .75;
}

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- splash -- */
/* First-load only. A real 3D cube via CSS transforms — no library, no canvas. */

.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 4px;
  background:
    radial-gradient(60% 60% at 50% 45%, color-mix(in oklab, var(--violet) 55%, transparent), transparent 70%),
    var(--ink);
  transition: opacity .6s ease, visibility .6s;
}
.splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-stage { perspective: 620px; width: 190px; height: 190px; display: grid; place-items: center; }

.cube {
  position: relative; width: 92px; height: 92px;
  transform-style: preserve-3d;
  animation: tumble 4.2s cubic-bezier(.55,.06,.45,.94) infinite;
}
@keyframes tumble {
  0%   { transform: rotateX(-22deg) rotateY(0deg); }
  50%  { transform: rotateX(-202deg) rotateY(180deg); }
  100% { transform: rotateX(-382deg) rotateY(360deg); }
}

.cube .face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 900 34px/1 var(--sans);
  border: 2px solid var(--paper);
  background: color-mix(in oklab, var(--ink) 72%, transparent);
  color: var(--paper);
  backface-visibility: visible;
  box-shadow: inset 0 0 26px color-mix(in oklab, var(--acid) 22%, transparent);
}
/* 46px = half of 92px, so each face sits exactly on the cube surface. */
.fx-front  { transform: translateZ(46px);  color: var(--acid);    border-color: var(--acid); }
.fx-back   { transform: rotateY(180deg) translateZ(46px); color: var(--magenta); border-color: var(--magenta); }
.fx-right  { transform: rotateY(90deg)  translateZ(46px); color: var(--cyan);    border-color: var(--cyan); }
.fx-left   { transform: rotateY(-90deg) translateZ(46px); color: var(--violet);  border-color: var(--violet); }
.fx-top    { transform: rotateX(90deg)  translateZ(46px); color: var(--paper); }
.fx-bottom { transform: rotateX(-90deg) translateZ(46px); color: var(--acid); }

.cube-shadow {
  position: absolute; bottom: 6px; width: 96px; height: 14px;
  background: radial-gradient(50% 50%, color-mix(in oklab, var(--acid) 40%, transparent), transparent 70%);
  filter: blur(7px);
  animation: shadowpulse 4.2s ease-in-out infinite;
}
@keyframes shadowpulse { 0%,100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.62); opacity: .28; } }

.splash-word {
  font: 900 clamp(26px, 5vw, 42px)/1 var(--sans);
  letter-spacing: -.05em; text-transform: uppercase; margin: 22px 0 0;
}
.splash-sub {
  font: 800 9px/1 var(--mono); letter-spacing: .3em;
  color: var(--acid); text-transform: uppercase; margin: 10px 0 18px;
}
.splash-bar { width: 190px; height: 3px; background: color-mix(in oklab, var(--paper) 18%, transparent); overflow: hidden; }
.splash-bar i {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--acid), var(--magenta), var(--cyan));
  animation: barslide 1.5s ease-in-out infinite;
}
@keyframes barslide { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }

/* Chill mode and reduced-motion get the same screen without the tumbling. */
html.chill .cube, .splash.still .cube { animation: none; transform: rotateX(-22deg) rotateY(-32deg); }
html.chill .splash-bar i, .splash.still .splash-bar i { animation: none; width: 100%; }
html.chill .cube-shadow, .splash.still .cube-shadow { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-22deg) rotateY(-32deg); }
  .splash-bar i { animation: none; width: 100%; }
}

/* ------------------------------------------------------------ ambient fx -- */

.fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.fx-mesh {
  position: absolute; inset: -30%;
  background:
    radial-gradient(38% 44% at 18% 22%, color-mix(in oklab, var(--violet) 85%, transparent), transparent 62%),
    radial-gradient(32% 38% at 82% 28%, color-mix(in oklab, var(--magenta) 70%, transparent), transparent 60%),
    radial-gradient(42% 40% at 62% 88%, color-mix(in oklab, var(--cyan) 55%, transparent), transparent 62%),
    radial-gradient(30% 30% at 8% 82%, color-mix(in oklab, var(--acid) 45%, transparent), transparent 60%);
  filter: blur(60px) saturate(150%);
  opacity: .45;
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-4%, 3%, 0) rotate(8deg) scale(1.12); }
  100% { transform: translate3d(5%, -4%, 0) rotate(-6deg) scale(1.05); }
}

.fx-spot {
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 40%),
              color-mix(in oklab, var(--acid) 18%, transparent), transparent 70%);
  mix-blend-mode: screen;
  transition: opacity .4s;
}

.fx-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.42) 0 1px, transparent 1px 4px);
  opacity: .5;
}

.fx-grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  opacity: .16;
  animation: jitter .5s steps(3) infinite;
}
@keyframes jitter {
  0% { transform: translate(0,0); } 33% { transform: translate(-2%,1%); } 66% { transform: translate(1%,-2%); } 100% { transform: translate(0,0); }
}

/* ---------------------------------------------------------------- ticker -- */

.ticker {
  position: relative; z-index: 3;
  background: var(--acid);
  color: var(--ink);
  border-bottom: var(--edge);
  overflow: hidden;
  height: 30px;
  display: flex; align-items: center;
}
/* Two identical halves scrolling to -50% = seamless loop with content on screen
   from the first frame (a 100% left-pad starts the bar blank, which reads broken). */
.ticker-track {
  display: flex; gap: 44px;
  width: max-content;
  white-space: nowrap;
  font: 800 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-right: 44px;
  animation: crawl 46s linear infinite;
}
@keyframes crawl { to { transform: translateX(-50%); } }

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

.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  min-height: var(--bar-h);
  padding: 12px clamp(14px, 4vw, 40px);
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: var(--edge);
  flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { color: var(--acid); font-size: 26px; animation: spin 6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-word {
  font: 900 clamp(20px, 3vw, 30px)/1 var(--sans);
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.brand-sub {
  font: 700 9px/1 var(--mono);
  letter-spacing: .22em;
  color: var(--acid);
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 12px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: var(--edge);
  padding: 11px 14px;
  cursor: pointer;
  transition: transform .12s, background .18s, color .18s, box-shadow .18s;
}
.btn:hover { background: var(--paper); color: var(--ink); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--magenta); }
.btn:active { transform: translate(0,0); box-shadow: none; }
.btn-primary { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.btn-primary:hover { background: var(--magenta); border-color: var(--magenta); color: var(--paper); box-shadow: 4px 4px 0 var(--cyan); }
.btn-search { min-width: 240px; justify-content: flex-start; color: var(--dim); }
.btn-search kbd { margin-left: auto; }
.btn-ic { font-size: 15px; color: var(--acid); }
.pill {
  background: var(--magenta); color: var(--paper);
  border-radius: 99px; padding: 2px 7px; font-size: 10px;
}
[aria-pressed="true"].btn-ghost { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }

.field { display: flex; flex-direction: column; gap: 3px; }
.field-cap { font: 700 8px/1 var(--mono); letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.field select {
  font: 800 12px/1 var(--mono);
  background: var(--ink-2); color: var(--paper);
  border: var(--edge); padding: 8px 28px 8px 10px; cursor: pointer;
  /* A width floor matters: the list arrives async, and an empty select collapses
     to a few unusable pixels. The cap stops long country names stretching the bar. */
  min-width: 168px; max-width: 220px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--acid) 50%),
                    linear-gradient(135deg, var(--acid) 50%, transparent 50%);
  background-position: right 13px top 55%, right 8px top 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
.field select:hover { border-color: var(--acid); }
.field select optgroup { background: var(--ink); color: var(--dim); font-style: normal; }
.field select option { background: var(--ink-2); color: var(--paper); }

/* -------------------------------------------------------------- rail (nav) -- */
/* A drawer below 1280px, a pinned column above it. Same markup either way —
   only the transform and the body offset change. */

:root { --rail-w: 268px; }

.rail-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--paper);
  border: var(--edge); padding: 11px 13px; cursor: pointer;
  font: 800 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.rail-toggle:hover { background: var(--acid); color: var(--ink); }
.rail-bars { display: grid; gap: 3px; width: 15px; }
.rail-bars i { height: 2px; background: currentColor; transition: transform .22s, width .22s; }
.rail-bars i:nth-child(2) { width: 70%; }
/* Bars converge into an arrow when open — the control says "close" without words. */
html.rail-open .rail-bars i:nth-child(1) { transform: translateY(5px) rotate(-45deg); width: 60%; }
html.rail-open .rail-bars i:nth-child(2) { opacity: 0; }
html.rail-open .rail-bars i:nth-child(3) { transform: translateY(-5px) rotate(45deg); width: 60%; }

.rail {
  position: fixed; z-index: 60;
  top: 0; left: 0; bottom: 0; width: var(--rail-w);
  display: flex;
  background: linear-gradient(180deg, var(--ink-2), var(--ink) 60%);
  border-right: var(--edge);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.3,.9,.3,1);
  overflow: hidden;
}
html.rail-open .rail { transform: none; }

.rail-inner { flex: 1; overflow-y: auto; padding: 22px 16px 20px; scrollbar-width: thin; scrollbar-color: var(--magenta) transparent; }
.rail-inner::-webkit-scrollbar { width: 6px; }
.rail-inner::-webkit-scrollbar-thumb { background: var(--magenta); }

.rail-cap {
  font: 800 8px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 10px; padding-left: 2px;
}
.rail-cap:not(:first-child) { margin-top: 26px; }

.rail-nav { display: grid; gap: 3px; }

.rail-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0;
  border-left: 3px solid transparent;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
  font: 700 12px/1 var(--sans); letter-spacing: -.01em;
  padding: 10px 10px 10px 11px;
  transition: background .14s, color .14s, border-color .14s, padding-left .14s;
}
.rail-item:hover { background: color-mix(in oklab, var(--paper) 8%, transparent); border-left-color: var(--acid); padding-left: 16px; color: var(--paper); }
.rail-item[aria-current="true"] { background: var(--acid); color: var(--ink); border-left-color: var(--magenta); font-weight: 900; }
.rail-item .n {
  margin-left: auto;
  font: 700 9px/1 var(--mono); letter-spacing: .1em;
  color: var(--dim);
}
.rail-item[aria-current="true"] .n { color: color-mix(in oklab, var(--ink) 70%, transparent); }
.rail-item .ic { width: 14px; text-align: center; color: var(--acid); font-size: 12px; }
.rail-item[aria-current="true"] .ic { color: var(--ink); }
.rail-item.hot .ic { color: var(--magenta); }

.rail-foot {
  display: flex; align-items: center; gap: 8px; margin: 26px 0 0;
  font: 700 9px/1 var(--mono); letter-spacing: .16em; color: var(--dim); text-transform: uppercase;
}
.rail-dot {
  width: 7px; height: 7px; background: var(--acid); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.rail-veil {
  position: fixed; inset: 0; z-index: 55;
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  backdrop-filter: blur(3px);
  animation: fade .2s ease-out;
}
.rail-veil[hidden] { display: none; }

/* Pinned on wide screens: the drawer stops overlaying and the page makes room. */
@media (min-width: 1280px) {
  html.rail-open body { padding-left: var(--rail-w); }
  html.rail-open .rail-veil { display: none; }
  body { transition: padding-left .3s cubic-bezier(.3,.9,.3,1); }
}

html.chill .rail { transition: none; }
html.chill .rail-dot { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .rail, body { transition: none !important; }
}

/* ----------------------------------------------------------- browse view -- */
/* Grid, heading and pager for an expanded row or genre. Kept in its own section:
   these once lived under "categories" and were lost wholesale when that section
   was replaced by the sidebar. */

.cat-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 0 clamp(14px, 4vw, 40px) 18px;
}
.cat-title {
  font: 900 clamp(26px, 5vw, 52px)/1 var(--sans);
  letter-spacing: -.045em; text-transform: uppercase; margin: 0;
}
.cat-sort {
  font: 800 10px/1 var(--mono); letter-spacing: .1em;
  background: var(--ink-2); color: var(--paper); border: var(--edge);
  padding: 9px 11px; cursor: pointer; margin-left: auto;
}
.cat-sort:hover { border-color: var(--acid); }

/* Loading panel. Stands in for the whole grid rather than sitting beside a set
   of skeleton cards — empty outlines advertise how much has not arrived yet. */

.load-stage {
  position: relative; overflow: hidden;
  min-height: 56vh;
  margin: 0 clamp(14px, 4vw, 40px) 40px;
  border: 2px dashed color-mix(in oklab, var(--paper) 16%, transparent);
  display: grid; place-items: center; align-content: center; gap: 26px;
}
/* Faint house colours behind the cube so the panel is not a dead rectangle. */
.load-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 60% at 34% 38%, color-mix(in oklab, var(--violet) 40%, transparent), transparent 70%),
    radial-gradient(40% 55% at 70% 66%, color-mix(in oklab, var(--cyan) 22%, transparent), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.load-stage > *:not(.load-veil) { position: relative; z-index: 1; }

.mini-cube {
  position: relative; width: 42px; height: 42px; flex: 0 0 auto;
  transform-style: preserve-3d;
  animation: tumble 3.4s cubic-bezier(.55,.06,.45,.94) infinite;
}
.mini-cube.big { width: 82px; height: 82px; }

.mini-cube .mf {
  position: absolute; inset: 0;
  border: 2px solid var(--acid);
  background: color-mix(in oklab, var(--acid) 8%, transparent);
}
/* Half the edge length, so each face lands exactly on the cube surface. */
.mini-cube .f1 { transform: translateZ(21px); }
.mini-cube .f2 { transform: rotateY(180deg) translateZ(21px); border-color: var(--magenta); }
.mini-cube .f3 { transform: rotateY(90deg)  translateZ(21px); border-color: var(--cyan); }
.mini-cube .f4 { transform: rotateY(-90deg) translateZ(21px); border-color: var(--violet); }
.mini-cube .f5 { transform: rotateX(90deg)  translateZ(21px); }
.mini-cube .f6 { transform: rotateX(-90deg) translateZ(21px); border-color: var(--magenta); }

.mini-cube.big .f1 { transform: translateZ(41px); }
.mini-cube.big .f2 { transform: rotateY(180deg) translateZ(41px); }
.mini-cube.big .f3 { transform: rotateY(90deg)  translateZ(41px); }
.mini-cube.big .f4 { transform: rotateY(-90deg) translateZ(41px); }
.mini-cube.big .f5 { transform: rotateX(90deg)  translateZ(41px); }
.mini-cube.big .f6 { transform: rotateX(-90deg) translateZ(41px); }

.load-line {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font: 800 9px/1 var(--mono); letter-spacing: .26em;
  color: var(--acid); text-transform: uppercase;
}
.load-bar {
  display: block; width: 140px; height: 3px; overflow: hidden;
  background: color-mix(in oklab, var(--paper) 16%, transparent);
}
.load-bar i {
  display: block; height: 100%; width: 45%;
  background: linear-gradient(90deg, var(--acid), var(--magenta), var(--cyan));
  animation: barslide 1.2s ease-in-out infinite;
}

html.chill .mini-cube, html.chill .load-veil { animation: none; }
html.chill .mini-cube { transform: rotateX(-20deg) rotateY(-30deg); }
html.chill .load-bar i { animation: none; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .mini-cube, .load-veil { animation: none; }
  .mini-cube { transform: rotateX(-20deg) rotateY(-30deg); }
  .load-bar i { animation: none; width: 100%; }
}

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 16vw, 190px), 1fr));
  padding: 0 clamp(14px, 4vw, 40px) 30px;
}
/* Cards are fixed-width inside a scrolling strip; in a grid they fill the cell. */
.grid .card { width: auto; }

.view-all {
  flex: 0 0 auto; margin-left: auto;
  font: 800 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  background: transparent; color: var(--acid);
  border: 1px solid var(--acid); padding: 8px 11px; cursor: pointer;
  transition: background .15s, color .15s;
}
.view-all:hover { background: var(--acid); color: var(--ink); }

.pager {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center;
  padding: 10px clamp(14px, 4vw, 40px) 64px;
}
.pager button {
  font: 800 11px/1 var(--mono); letter-spacing: .08em;
  background: transparent; color: var(--paper);
  border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  padding: 10px 13px; cursor: pointer; min-width: 40px;
  transition: background .15s, color .15s, border-color .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--acid); color: var(--acid); }
.pager button[aria-current="true"] { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.pager button:disabled { opacity: .3; cursor: not-allowed; }
.pg-gap { color: var(--dim); font: 700 11px var(--mono); padding: 0 2px; }

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

.hero {
  position: relative; z-index: 2;
  display: grid; align-items: end;
  min-height: min(78vh, 720px);
  padding: clamp(30px, 7vw, 90px) clamp(14px, 4vw, 40px);
  border-bottom: var(--edge);
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 22%;
  filter: saturate(115%) contrast(108%);
  transform: scale(1.06);
  animation: breathe 22s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.16) translateY(-2%); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 4%, color-mix(in oklab, var(--ink) 55%, transparent) 48%, transparent 78%),
    linear-gradient(0deg, var(--ink) 2%, transparent 55%);
}
.hero-body { position: relative; z-index: 2; max-width: 720px; }
.hero-flag {
  display: inline-block;
  font: 900 10px/1 var(--mono); letter-spacing: .28em;
  background: var(--magenta); color: var(--paper);
  padding: 7px 11px; margin-bottom: 16px;
  animation: blink 2.4s steps(1) infinite;
}
@keyframes blink { 0%,72% { opacity: 1; } 76%,84% { opacity: .25; } 88%,100% { opacity: 1; } }
.hero-title {
  font: 900 clamp(42px, 9vw, 116px)/.86 var(--sans);
  letter-spacing: -.055em;
  text-transform: uppercase;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero-meta {
  font: 800 11px/1 var(--mono); letter-spacing: .18em;
  color: var(--acid); text-transform: uppercase; margin: 0 0 14px;
}
.hero-blurb {
  font-size: clamp(14px, 1.6vw, 17px); line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 82%, transparent);
  max-width: 56ch; margin: 0 0 24px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

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

/* Content crossfades rather than sliding: the backdrop is a full-bleed image and
   sliding it would drag the text along with it, which reads as a page change. */
.hero-body, .hero-art { transition: opacity .45s ease; }
.hero.swapping .hero-body, .hero.swapping .hero-art { opacity: 0; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 62px;
  background: color-mix(in oklab, var(--ink) 62%, transparent);
  border: var(--edge); color: var(--paper);
  font: 300 26px/1 var(--sans); cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.hero-arrow:hover { background: var(--acid); color: var(--ink); }
.hero-arrow.prev { left: clamp(6px, 1.5vw, 18px); }
.hero-arrow.next { right: clamp(6px, 1.5vw, 18px); }
.hero-arrow:hover.prev { transform: translateY(-50%) translateX(-3px); }
.hero-arrow:hover.next { transform: translateY(-50%) translateX(3px); }

.hero-dots {
  position: absolute; z-index: 4;
  left: clamp(14px, 4vw, 40px); bottom: clamp(14px, 2.5vw, 26px);
  display: flex; gap: 9px; align-items: center;
}
.hero-dot {
  width: 34px; height: 5px; padding: 0;
  background: color-mix(in oklab, var(--paper) 32%, transparent);
  border: 0; cursor: pointer; position: relative; overflow: hidden;
  transition: background .2s;
}
.hero-dot:hover { background: color-mix(in oklab, var(--paper) 60%, transparent); }
.hero-dot[aria-selected="true"] { background: color-mix(in oklab, var(--paper) 24%, transparent); }
/* The active dot doubles as a progress bar for the auto-advance. */
.hero-dot[aria-selected="true"]::after {
  content: ""; position: absolute; inset: 0;
  background: var(--acid); transform-origin: left;
  animation: dotfill var(--hero-ms, 7000ms) linear forwards;
}
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero.paused .hero-dot[aria-selected="true"]::after { animation-play-state: paused; }

/* Chill mode keeps the carousel usable but stops it moving on its own. */
html.chill .hero-dot[aria-selected="true"]::after { animation: none; background: var(--acid); }

@media (max-width: 720px) {
  .hero-arrow { display: none; }
}

/* ------------------------------------------------------------------ rows -- */

.rows { position: relative; z-index: 2; padding: clamp(26px, 5vw, 56px) 0 70px; }

.row { margin-bottom: clamp(30px, 5vw, 58px); }
.row-head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 0 clamp(14px, 4vw, 40px); margin-bottom: 16px;
}
.row-title {
  font: 900 clamp(20px, 3.4vw, 38px)/1 var(--sans);
  letter-spacing: -.04em; text-transform: uppercase; margin: 0;
}
.row-tag {
  font: 800 9px/1 var(--mono); letter-spacing: .2em;
  border: 1px solid var(--acid); color: var(--acid);
  padding: 5px 8px; text-transform: uppercase;
}
.row-rule { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--paper) 0 8px, transparent 8px 14px); opacity: .35; }

.strip {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 10px clamp(14px, 4vw, 40px) 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--magenta) transparent;
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--magenta); }
.strip::-webkit-scrollbar-track { background: color-mix(in oklab, var(--paper) 10%, transparent); }

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

.card {
  position: relative; flex: 0 0 auto;
  width: clamp(150px, 20vw, 208px);
  scroll-snap-align: start;
  border: var(--edge);
  background: var(--ink-2);
  cursor: pointer;
  padding: 0;
  color: inherit;
  text-align: left;
  transform-style: preserve-3d;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { border-color: var(--acid); box-shadow: 10px 10px 0 var(--magenta); z-index: 5; }
.card-art {
  position: relative; aspect-ratio: 2 / 3;
  background-size: cover; background-position: center;
  display: grid; place-items: center; overflow: hidden;
}
/* The <img> fills the frame; badges sit above it via the absolute positioning
   they already had. object-fit keeps the old background-size:cover behaviour. */
.card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.card-art.gen { padding: 14px; }
.card-art.gen::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.1) 55%);
}
.card-art.gen span {
  position: relative; z-index: 1;
  font: 900 clamp(13px, 1.5vw, 18px)/1.05 var(--sans);
  letter-spacing: -.03em; text-transform: uppercase;
  text-align: center; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.85);
}
.card-score {
  position: absolute; top: 8px; right: 8px;
  font: 900 10px/1 var(--mono);
  background: var(--ink); color: var(--acid);
  border: 1px solid var(--acid); padding: 5px 6px;
}
.card-score.mid { color: var(--cyan); border-color: var(--cyan); }
.card-score.low { color: var(--magenta); border-color: var(--magenta); }
.card-save {
  position: absolute; top: 8px; left: 8px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--paper);
  color: var(--paper); font-size: 13px; cursor: pointer;
  opacity: 0; transition: opacity .18s, transform .18s;
}
.card:hover .card-save, .card-save.on { opacity: 1; }
.card-save.on { color: var(--acid); border-color: var(--acid); }
.card-foot { padding: 10px 11px 12px; border-top: var(--edge); }
.card-name {
  font: 800 13px/1.2 var(--sans); letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-sub { font: 700 9px/1 var(--mono); letter-spacing: .14em; color: var(--dim); margin-top: 6px; text-transform: uppercase; }

/* --------------------------------------------------------------- overlay -- */

.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  display: grid;
  /* minmax(0,1fr), not the default auto: an auto track sizes to the max-content
     of the panel — which the wide recommendations strip blows past — and the
     centered panel then gets pushed off the right edge of the screen. */
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(12px, 4vw, 50px);
  overflow-y: auto;
  animation: fade .18s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.overlay[hidden] { display: none; }

/* ---------------------------------------------------------------- search -- */

.palette {
  width: min(760px, 100%); margin: 6vh auto auto;
  border: var(--edge); background: var(--ink-2);
  box-shadow: 14px 14px 0 var(--violet);
}
.palette-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: var(--edge); }
.palette-ic { color: var(--acid); font-size: 20px; }
.palette-in input {
  flex: 1; background: transparent; border: 0; color: var(--paper);
  font: 700 18px/1.2 var(--sans); outline: none;
}
.palette-in input::placeholder { color: var(--dim); }
.x { background: transparent; border: 1px solid var(--dim); color: var(--dim); font: 700 10px var(--mono); padding: 5px 7px; cursor: pointer; }

.palette-out { max-height: min(56vh, 520px); overflow-y: auto; }
.hit {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 11px 16px; background: transparent; border: 0; border-bottom: 1px solid color-mix(in oklab, var(--paper) 12%, transparent);
  color: inherit; cursor: pointer; text-align: left;
}
.hit:hover, .hit[aria-selected="true"] { background: var(--acid); color: var(--ink); }
.hit-art { width: 40px; height: 60px; flex: 0 0 auto; background-size: cover; background-position: center; border: 1px solid currentColor; }
.hit-name { font: 800 14px/1.25 var(--sans); }
.hit-sub { font: 700 9px/1 var(--mono); letter-spacing: .14em; opacity: .7; margin-top: 5px; text-transform: uppercase; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: var(--edge); font: 700 9px var(--mono); color: var(--dim); letter-spacing: .12em; }
.palette-foot kbd { margin-right: 4px; }
.empty { padding: 34px 18px; text-align: center; color: var(--dim); font: 700 12px var(--mono); letter-spacing: .1em; }

/* ---------------------------------------------------------------- detail -- */

.sheet {
  position: relative;
  width: min(1000px, 100%); margin: auto;
  border: var(--edge); background: var(--ink-2);
  box-shadow: 16px 16px 0 var(--magenta);
}
/* Fixed, not absolute: the sheet is often taller than the viewport, and an
   absolute close button scrolls out of reach as soon as you read past the fold. */
.sheet-x {
  position: fixed; top: clamp(14px, 3vw, 40px); right: clamp(14px, 3vw, 40px); z-index: 100;
  width: 40px; height: 40px;
  background: var(--ink); border: var(--edge); color: var(--paper);
  font-size: 15px; cursor: pointer;
}
.sheet-x:hover { background: var(--magenta); }

/* No bottom border here — the head is pulled up over this edge, so a rule would
   slice straight through the tagline. The gradient does the separating. */
.sheet-hero { position: relative; aspect-ratio: 16 / 7; background-size: cover; background-position: center 25%; }
.sheet-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink-2) 3%, transparent 70%); }
.sheet-head { position: relative; z-index: 2; margin-top: -84px; padding: 0 clamp(16px, 3.4vw, 34px); }
.sheet-title { font: 900 clamp(28px, 5.4vw, 62px)/.9 var(--sans); letter-spacing: -.05em; text-transform: uppercase; margin: 0 0 16px; text-wrap: balance; }
.sheet-tag { font: 700 12px var(--mono); color: var(--acid); letter-spacing: .1em; margin: 0 0 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font: 800 9px/1 var(--mono); letter-spacing: .16em; border: 1px solid var(--dim); color: var(--dim); padding: 6px 8px; text-transform: uppercase; }
.chip.hot { border-color: var(--acid); color: var(--acid); }

.sheet-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 38px); padding: 6px clamp(16px, 3.4vw, 34px) clamp(24px, 3vw, 34px); }
@media (max-width: 800px) { .sheet-grid { grid-template-columns: 1fr; } }
.sheet-blurb { font-size: 15px; line-height: 1.6; color: color-mix(in oklab, var(--paper) 86%, transparent); }

.sec-cap {
  font: 900 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); background: var(--acid); display: inline-block;
  padding: 6px 9px; margin: 26px 0 14px;
}
.sec-cap.alt { background: var(--cyan); }

.watch { display: grid; gap: 14px; }
.watch-band { border: var(--edge); padding: 12px 13px; }
.watch-band h4 { font: 900 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; color: var(--acid); }
.watch-band.rent h4 { color: var(--cyan); }
.watch-band.buy h4 { color: var(--magenta); }
.provs { display: flex; gap: 8px; flex-wrap: wrap; }
.prov {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  padding: 6px 9px; font: 700 11px var(--sans);
  color: var(--paper); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
a.prov:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
a.prov b { font-size: 9px; opacity: .7; }
.prov img { width: 22px; height: 22px; object-fit: cover; }

/* The one band that means "you can watch this right now, for free, legally". */
.watch-band.free-hit { border-color: var(--acid); box-shadow: 6px 6px 0 var(--violet); }
.watch-band.free-hit h4 { color: var(--acid); }
.nowhere { border: 2px dashed var(--dim); padding: 18px; color: var(--dim); font: 700 12px/1.5 var(--mono); }

.cast { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.who { flex: 0 0 auto; width: 92px; }
.who-face { width: 92px; height: 116px; background-size: cover; background-position: center; border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent); display: grid; place-items: center; font: 900 22px var(--sans); color: var(--ink); }
.who-name { font: 800 11px/1.2 var(--sans); margin-top: 7px; }
.who-role { font: 700 9px/1.2 var(--mono); color: var(--dim); margin-top: 3px; }

.trailer { width: 100%; aspect-ratio: 16/9; border: var(--edge); }

.player {
  width: 100%; aspect-ratio: 16/9;
  background: #000; border: var(--edge);
  box-shadow: 8px 8px 0 var(--violet);
  margin-bottom: 22px;
}
.tiny { font: 700 10px/1.6 var(--mono); color: var(--dim); margin: 6px 0 0; }
.attrib {
  margin-top: 14px; font: 700 9px/1.6 var(--mono);
  letter-spacing: .1em; color: var(--dim); text-transform: uppercase;
}

/* --------------------------------------------------------------- seasons -- */

.seasons-wrap { padding: 0 clamp(16px, 3.4vw, 34px) clamp(20px, 3vw, 30px); }

.seasons {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: none;
}
.seasons::-webkit-scrollbar { display: none; }
.season-tab {
  flex: 0 0 auto;
  font: 800 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  background: transparent; color: var(--paper);
  border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  padding: 9px 12px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: background .15s, color .15s, border-color .15s;
}
.season-tab span {
  font-size: 9px; padding: 2px 5px;
  background: color-mix(in oklab, var(--paper) 18%, transparent);
}
.season-tab:hover { border-color: var(--acid); color: var(--acid); }
.season-tab[aria-selected="true"] { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.season-tab[aria-selected="true"] span { background: color-mix(in oklab, var(--ink) 20%, transparent); }

.ep-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.ep {
  display: grid; grid-template-columns: 168px 1fr; gap: 14px;
  border: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  padding: 12px;
}
@media (max-width: 640px) { .ep { grid-template-columns: 1fr; } }

.ep-still {
  position: relative; aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
  border: 1px solid color-mix(in oklab, var(--paper) 25%, transparent);
}
.ep-no {
  position: absolute; left: 6px; bottom: 6px;
  font: 900 10px/1 var(--mono); letter-spacing: .1em;
  background: var(--ink); color: var(--acid);
  border: 1px solid var(--acid); padding: 4px 6px;
}
.ep-head { display: flex; align-items: baseline; gap: 10px; }
.ep-name { font: 800 15px/1.25 var(--sans); margin: 0; }
.ep-score { margin-left: auto; font: 900 10px/1 var(--mono); color: var(--acid); }
.ep-meta { font: 700 10px/1 var(--mono); letter-spacing: .1em; color: var(--dim); margin: 7px 0 8px; text-transform: uppercase; }
.ep-blurb {
  font-size: 13px; line-height: 1.55; margin: 0;
  color: color-mix(in oklab, var(--paper) 82%, transparent);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* -------------------------------------------------------------- comments -- */

.cmt-wrap { padding: 0 clamp(16px, 3.4vw, 34px) clamp(28px, 4vw, 40px); }

.cmt-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.cmt-form textarea {
  flex: 1; resize: vertical; min-height: 62px;
  background: var(--ink); color: var(--paper); border: var(--edge);
  padding: 11px 12px; font: 500 14px/1.5 var(--sans);
}
.cmt-form textarea:focus { outline: 3px solid var(--acid); outline-offset: 2px; }
.cmt-form textarea::placeholder { color: var(--dim); }
.cmt-signin { margin: 0 0 20px; }

.cmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cmt {
  border: 1px solid color-mix(in oklab, var(--paper) 20%, transparent);
  border-left: 3px solid var(--acid);
  padding: 12px 14px;
}
.cmt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.cmt-who { font: 900 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acid); }
.cmt-when { font: 700 10px/1 var(--mono); color: var(--dim); }
.cmt-del {
  margin-left: auto; background: transparent; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  color: var(--dim); font-size: 10px; padding: 3px 6px;
}
.cmt-del:hover { border-color: var(--magenta); color: var(--magenta); }
/* Preserve the author's line breaks without letting a wall of text break layout. */
.cmt-body { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-empty { font: 700 12px/1.6 var(--mono); color: var(--dim); letter-spacing: .06em; }

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

.foot {
  position: relative; z-index: 2;
  border-top: var(--edge); padding: clamp(30px, 5vw, 60px) clamp(14px, 4vw, 40px);
  font-size: 12px; color: var(--dim); line-height: 1.7;
}
.foot-big { font: 900 clamp(22px, 4.6vw, 54px)/1 var(--sans); letter-spacing: -.05em; color: var(--paper); text-transform: uppercase; margin: 0 0 18px; }
.foot-dim { opacity: .7; }

/* ----------------------------------------------------------------- misc --- */

.boot { display: grid; place-items: center; gap: 18px; padding: 90px 20px; font: 800 11px var(--mono); letter-spacing: .26em; color: var(--dim); }
.boot-bars { display: flex; gap: 6px; align-items: flex-end; height: 46px; }
.boot-bars i { width: 9px; background: var(--acid); animation: bounce 1s ease-in-out infinite; }
.boot-bars i:nth-child(2) { animation-delay: .1s; background: var(--magenta); }
.boot-bars i:nth-child(3) { animation-delay: .2s; background: var(--cyan); }
.boot-bars i:nth-child(4) { animation-delay: .3s; background: var(--violet); }
.boot-bars i:nth-child(5) { animation-delay: .4s; }
@keyframes bounce { 0%,100% { height: 12px; } 50% { height: 46px; } }

/* --------------------------------------------------------------- skeleton -- */
/* Same boxes, same rhythm as the real content, so nothing jumps when data lands. */

.skel {
  position: relative; overflow: hidden;
  background: color-mix(in oklab, var(--paper) 9%, transparent);
  border-radius: 2px;
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--paper) 16%, transparent), transparent);
  animation: sweep 1.5s ease-in-out infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }

.skel-card { border-color: color-mix(in oklab, var(--paper) 20%, transparent); pointer-events: none; }
.skel-art { aspect-ratio: 2 / 3; border-radius: 0; }
.skel-line { height: 11px; margin-bottom: 8px; width: 88%; }
.skel-line.short { width: 52%; }
.skel-line.wide { height: 13px; width: 100%; max-width: 620px; }
.skel-title { height: 30px; width: clamp(180px, 26vw, 320px); }
.skel-chip { height: 26px; width: 78px; display: inline-block; }
.skel-band { height: 84px; margin-bottom: 14px; }
.skel-sheet-hero { aspect-ratio: 16 / 7; border-radius: 0; }
.skel-flag { height: 26px; width: 150px; margin-bottom: 18px; }
.skel-hero-title { height: clamp(40px, 8vw, 92px); width: min(560px, 82%); margin-bottom: 12px; }
.skel-hero-title.short { width: min(380px, 60%); margin-bottom: 22px; }
.skel-btn { height: 44px; width: 230px; margin-top: 22px; }

.hero-skel {
  padding: clamp(30px, 7vw, 80px) clamp(14px, 4vw, 40px) clamp(30px, 5vw, 60px);
  border-bottom: var(--edge);
  margin-bottom: clamp(26px, 5vw, 50px);
}

/* ------------------------------------------------------------------ auth -- */

.auth {
  position: relative;
  width: min(440px, 100%); margin: auto;
  border: var(--edge); background: var(--ink-2);
  box-shadow: 14px 14px 0 var(--cyan);
  padding: clamp(24px, 4vw, 38px);
}
.auth-x { position: absolute; top: 14px; right: 14px; }
.auth-title {
  font: 900 clamp(26px, 5vw, 40px)/1 var(--sans);
  letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 10px;
}
.auth-sub { font-size: 13px; line-height: 1.6; color: var(--dim); margin: 0 0 24px; }

.auth-field { display: block; margin-bottom: 16px; }
.auth-field span {
  display: block; margin-bottom: 6px;
  font: 800 9px/1 var(--mono); letter-spacing: .2em;
  text-transform: uppercase; color: var(--acid);
}
.auth-field input {
  width: 100%; padding: 12px 13px;
  background: var(--ink); color: var(--paper);
  border: var(--edge); font: 600 14px var(--sans);
}
.auth-field input:focus { outline: 3px solid var(--acid); outline-offset: 2px; }
.auth-field input::placeholder { color: color-mix(in oklab, var(--dim) 75%, transparent); }

.auth-who { font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.auth-who b { color: var(--acid); }

/* ---------------------------------------------------------- account panel -- */

.acct-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.acct-avatar {
  width: 58px; height: 58px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--acid); color: var(--ink);
  font: 900 26px/1 var(--sans); text-transform: uppercase;
  border: var(--edge); box-shadow: 5px 5px 0 var(--magenta);
}
.acct-name { font: 900 20px/1.1 var(--sans); letter-spacing: -.02em; margin: 0 0 4px; }
.acct-email { font: 700 11px/1 var(--mono); color: var(--dim); margin: 0; word-break: break-all; }

.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.acct-stat { border: var(--edge); padding: 11px 10px; text-align: center; }
.acct-stat b { display: block; font: 900 22px/1 var(--sans); color: var(--acid); }
.acct-stat span { font: 700 8px/1.3 var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }

.acct-save { width: 100%; justify-content: center; margin-bottom: 22px; }

.acct-danger { border-top: 1px dashed color-mix(in oklab, var(--paper) 25%, transparent); padding-top: 16px; }
.acct-danger summary {
  cursor: pointer; font: 800 10px/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--magenta);
}
.acct-danger[open] summary { margin-bottom: 12px; }
.acct-del {
  width: 100%; justify-content: center;
  border-color: var(--magenta); color: var(--magenta);
}
.acct-del:hover { background: var(--magenta); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }

/* Live signup requirements. Shows what is still missing rather than rejecting
   the whole form after the fact. */
.pw-rules {
  list-style: none; margin: 0 0 18px; padding: 12px 13px;
  border: 1px dashed color-mix(in oklab, var(--paper) 28%, transparent);
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px;
}
.pw-rules li {
  font: 700 10px/1.3 var(--mono); letter-spacing: .06em;
  color: var(--dim); display: flex; align-items: center; gap: 7px;
  transition: color .18s;
}
.pw-rules li::before {
  content: "○"; font-size: 11px; color: var(--dim); transition: color .18s, content .18s;
}
.pw-rules li.ok { color: var(--acid); }
.pw-rules li.ok::before { content: "●"; color: var(--acid); }
.pw-rules li[data-rule="match"] { grid-column: 1 / -1; }
.pw-rules li.bad { color: var(--magenta); }
.pw-rules li.bad::before { content: "✕"; color: var(--magenta); }

.auth-error {
  border: 2px solid var(--magenta); color: var(--magenta);
  padding: 10px 12px; margin: 0 0 16px;
  font: 700 12px/1.5 var(--mono);
}
.auth-go { width: 100%; justify-content: center; margin-top: 4px; }
.auth-go.busy { opacity: .6; pointer-events: none; }
.auth-go.busy::after {
  content: ""; width: 13px; height: 13px; margin-left: 8px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}

.auth-swap {
  margin: 20px 0 0; text-align: center;
  font: 700 11px var(--mono); color: var(--dim); letter-spacing: .06em;
}
.auth-swap button {
  background: none; border: 0; cursor: pointer; padding: 0 0 0 6px;
  color: var(--acid); font: inherit; text-decoration: underline;
}

.notice {
  margin: 0 clamp(14px, 4vw, 40px) 30px;
  border: 2px dashed var(--cyan); color: var(--cyan);
  padding: 14px 16px; font: 700 11px/1.6 var(--mono); letter-spacing: .06em;
}

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  /* The extra 40px keeps the resting state fully off-screen — a plain 100%
     translate leaves a sliver of the border poking above the viewport edge. */
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0; pointer-events: none;
  background: var(--acid); color: var(--ink);
  border: var(--edge); box-shadow: var(--shadow-hard);
  padding: 12px 18px; font: 800 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .3s cubic-bezier(.2,1.4,.4,1), opacity .2s;
}
.toast.up { transform: translate(-50%, 0); opacity: 1; }

/* glitch text — layered chromatic offsets, clipped on hover */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.glitch::before { color: var(--magenta); transform: translate(-2px, 1px); mix-blend-mode: screen; }
.glitch::after  { color: var(--cyan);    transform: translate(2px, -1px); mix-blend-mode: screen; }
.glitch:hover::before { animation: slip .35s steps(2) infinite; }
.glitch:hover::after  { animation: slip .35s steps(2) infinite reverse; }
@keyframes slip {
  0% { clip-path: inset(0 0 82% 0); transform: translate(-6px, 0); }
  50% { clip-path: inset(56% 0 22% 0); transform: translate(6px, 0); }
  100% { clip-path: inset(88% 0 2% 0); transform: translate(-3px, 0); }
}

/* --------------------------------------------------------------- chill ---- */
/* One class strips the entire circus. Same layout, none of the noise. */

html.chill .fx-grain,
html.chill .fx-scan,
html.chill .fx-spot { display: none; }
html.chill .fx-mesh { opacity: .22; animation: none; filter: blur(80px); }
html.chill .glitch::before,
html.chill .glitch::after { display: none; }
html.chill * { animation: none !important; }
html.chill .btn:hover { transform: none; box-shadow: none; }
html.chill .card:hover { box-shadow: none; }
html.chill .ticker { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .fx-grain { display: none; }
}

@media (max-width: 720px) {
  .btn-label { display: none; }
  .btn-search { min-width: 0; }
  .brand-sub { display: none; }
  .hero { min-height: 64vh; }
}
