/* Cyberpunk, for /worlds/avengers/ and /jarvis/ (style: cyberpunk).

   New York in 2012, the night after the battle: wet streets, rain, and the
   signs still lit. The films are set in a near-future city run on Stark
   technology, so the neon here is Stark's own: hot-rod red and arc-reactor
   gold, never the genre's pink and cyan, and nothing lettered in a script
   the films do not use. The panels are hard-edged and angled, cut at two
   corners the way the Stark HUD cuts its modules, with a gold tick along
   each cut. Glitch lives only at the section breaks, as a torn rule.

   The world page is the city: the skyline at the foot of the window with
   the tower's surviving A still lit, its reflection broken up in the wet
   street below, rain over everything, and every team member's card a neon
   sign in that member's own colour, which flickers on once as it enters
   (the signature) and is simply lit under reduced motion.

   J.A.R.V.I.S. is the same night seen from inside the helmet. How its cyan
   meets the red and gold: the films do it already. The HUD is cyan light
   projected inside a red and gold suit, so here the suit is the hardware
   and the HUD is the light. Every frame, rule, corner bracket, tick and
   button J.A.R.V.I.S. is housed in becomes the suit's red and gold, in the
   world page's angled panels; every reading it draws (text, gauges, the
   reactor, the bars) stays the HUD's cyan, so the phase and stone switches
   still re-tint the whole display exactly as before while the suit around
   it stays the suit. The reactor's warning and sector arcs take the same
   red and gold, and the city and the rain show faintly through the visor.
   The world page returns the favour: its J.A.R.V.I.S. fragment stays cyan
   inside a red frame. Headings on the world page take J.A.R.V.I.S.'s own
   display face, Orbitron, the wide face of the Stark Tower sign.

   One file for the pair, in three parts: the shared palette, materials and
   pictures; the world page; J.A.R.V.I.S. The spec: docs/superpowers/specs/
   2026-10-11-page-styles-design.md, section 5 ("Avengers: Cyberpunk") and
   section 9. Everything is scoped to :root[data-style="cyberpunk"], so the
   file does nothing on a page that is not wearing it; material rules on
   shared components put that scope in :where() so they weigh what the rule
   they restyle weighs, and each page's own hover and focus states win. */

/* ── 1. shared: the palette, the cut, the city and the rain ─────────────── */
:root[data-style="cyberpunk"] {
  --cp-red: #ff4438;                 /* the neon: Stark red, lit */
  --cp-red-hi: #ff6a5c;              /* red set as type, 6:1 on the night */
  --cp-gold: #ffc23a;                /* arc-reactor gold */
  --cp-fill: rgba(12, 7, 9, .9);     /* a panel: black glass, dense enough to read on alone */
  --cp-fill-hi: rgba(24, 10, 13, .94);
  --cp-edge: rgba(255, 68, 56, .26);
  --cp-ctl: #c4352b;                 /* a control's edge: 3.6:1 on the night */
  /* The cut. Every angled thing clips to this polygon: two corners cut
     (top right, bottom left) along a diagonal, and 48px of room on every
     other side so hover glows and focus rings are not clipped with it.
     --cut is read where the polygon is used, so each component sets its own. */
  --cp-o: 48px;
  /* the skyline: dark blocks, warm windows, red blade signs and aviation
     lights, and the tower with its A, the only letter left on it after the
     battle. Drawn once and used on both pages. */
  --cp-city: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 260'%3E%3Cpath fill='%23050204' d='M0 160h64v100H0zM72 118h52v142H72zM132 176h84v84h-84zM224 92h50v168h-50zM282 146h74v114h-74zM364 64h38v196h-38zM410 134h88v126h-88zM506 168h62v92h-62zM576 104h56v156h-56zM640 180h70v80h-70zM718 128h44v132h-44zM790 260V96l26-30h70l24 34v160zM776 120h148v8H776zM846 66V20h5v46zM588 92h32v12h-32zM1302 98h32v12h-32zM248 72h2v20h-2zM1012 100h2v16h-2zM1510 124h40v12h-40zM918 150h72v110h-72zM998 116h50v144h-50zM1056 172h86v88h-86zM1150 84h46v176h-46zM1204 140h78v120h-78zM1290 110h56v150h-56zM1354 164h90v96h-90zM1452 96h40v164h-40zM1500 136h100v124h-100z'/%3E%3Cpath fill='%23ffc23a' opacity='.5' d='M82 130h5v7h-5zM98 130h5v7h-5zM112 146h5v7h-5zM82 178h5v7h-5zM98 210h5v7h-5zM234 108h5v7h-5zM250 124h5v7h-5zM234 172h5v7h-5zM260 204h5v7h-5zM294 158h5v7h-5zM326 158h5v7h-5zM310 190h5v7h-5zM422 146h5v7h-5zM470 146h5v7h-5zM446 178h5v7h-5zM486 210h5v7h-5zM518 180h5v7h-5zM546 196h5v7h-5zM588 118h5v7h-5zM612 134h5v7h-5zM588 166h5v7h-5zM652 192h5v7h-5zM688 192h5v7h-5zM728 142h5v7h-5zM744 174h5v7h-5zM930 162h5v7h-5zM962 162h5v7h-5zM946 194h5v7h-5zM1008 130h5v7h-5zM1030 162h5v7h-5zM1068 186h5v7h-5zM1100 186h5v7h-5zM1120 218h5v7h-5zM1162 98h5v7h-5zM1178 130h5v7h-5zM1162 178h5v7h-5zM1216 152h5v7h-5zM1250 152h5v7h-5zM1266 184h5v7h-5zM1302 124h5v7h-5zM1326 156h5v7h-5zM1366 178h5v7h-5zM1410 178h5v7h-5zM1462 110h5v7h-5zM1476 158h5v7h-5zM1512 150h5v7h-5zM1548 150h5v7h-5zM1530 182h5v7h-5z'/%3E%3Cpath fill='%23ffc23a' opacity='.3' d='M800 140h100v2H800zM800 158h100v2H800zM800 176h100v2H800zM800 194h100v2H800zM800 212h100v2H800zM800 230h100v2H800z'/%3E%3Cpath fill='%23ff4438' opacity='.75' d='M228 104h4v44h-4zM368 80h3v56h-3zM580 120h4v30h-4zM1154 100h4v40h-4zM1456 112h4v48h-4zM381 58h4v4h-4zM846 14h5v5h-5zM1171 78h4v4h-4zM1470 90h4v4h-4z'/%3E%3Cpath fill='%23ffc23a' d='M418 150h40v4h-40zM1062 186h44v4h-44zM1212 156h36v4h-36z'/%3E%3Cpath fill='none' stroke='%23ffc23a' stroke-width='4' d='M830 114l20-40 20 40M838 100h36m-6-5 6 5-6 5'/%3E%3C/svg%3E");
  --cp-rain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='240'%3E%3Cpath stroke='%23fff' stroke-opacity='.55' stroke-linecap='round' d='M14 8v30M60 70v22M108 20v34M150 130v26M34 160v30M84 196v20M130 64v24M170 206v22M6 110v18M96 118v16'/%3E%3C/svg%3E");

  /* the world page's shared components read these (base.css) */
  --s-surface: var(--cp-fill);
  --s-surface-hi: var(--cp-fill-hi);
  --s-edge: var(--cp-edge);
  --s-bw: 1px;
  --s-r: 0px;
  --s-r-sm: 2px;
  --s-shadow: 0 18px 40px -28px #000;
  --s-lift: -3px;
  /* J.A.R.V.I.S. defines no --sans, hence the literal fallback */
  --s-display: "Orbitron", var(--sans, sans-serif);
  --s-display-w: 700;
  --s-display-ls: 0.06em;
  --s-focus: var(--cp-gold);

  /* the bars: black glass under a red tube, a gold glint along the top */
  --s-bar: rgba(9, 5, 7, .8);
  --s-bar-edge: rgba(255, 68, 56, .34);
  --s-bar-r: 4px;
  --s-bar-blur: blur(14px) saturate(150%);
  --s-bar-shadow: inset 0 1px 0 rgba(255, 194, 58, .14), 0 0 22px -8px rgba(255, 50, 36, .45), 0 18px 36px -20px #000;

  /* a little film grain for the wet night, the vignette kept, no circuit
     field. The HUD lattice is J.A.R.V.I.S.'s whisper on every other page;
     here the city stands in for it, so it goes, and the cursor's light
     becomes a red spill of neon instead of a lit grid. */
  --s-grain: 0.035;
  --s-field: 0;
  --hud-grid: transparent;
  --hud-scan: transparent;
  --hud-lit: transparent;
  --hud-halo: rgba(255, 60, 44, .07);
  --hud-sweep: rgba(255, 194, 58, .022);
}

/* the cut, wherever a component asks for it with --cut */
:root[data-style="cyberpunk"] :is(.fan-card, .fan-tile, .fan-linkcard, .fan-rankrow, .fan-land, .fan-film, .crest, .bust,
  .av-saga-row, .fan-peek, .fan-iface, .fan-quote, .fan-intro-when, .avd-stage, .fan-shot, .been a, .wsib-i a, .fan-link,
  .tabbar, .fp-bar, .jv-mod, .jv-wave-wrap, .jv-home, .jv-back, .jv-skip, .jv-ph-tab, .iw) {
  clip-path: polygon(calc(-1 * var(--cp-o)) calc(-1 * var(--cp-o)),
    calc(100% - var(--cut, 14px) - var(--cp-o)) calc(-1 * var(--cp-o)),
    calc(100% + var(--cp-o)) calc(var(--cut, 14px) + var(--cp-o)),
    calc(100% + var(--cp-o)) calc(100% + var(--cp-o)),
    calc(var(--cut, 14px) + var(--cp-o)) calc(100% + var(--cp-o)),
    calc(-1 * var(--cp-o)) calc(100% - var(--cut, 14px) - var(--cp-o)));
}
:root[data-style="cyberpunk"] :is(.fan-tile, .fan-rankrow, .av-saga-row, .fan-quote, .fan-intro-when, .fan-iface,
  .fan-shot, .been a, .wsib-i a, .fp-bar, .jv-wave-wrap, .iw, .tabbar) { --cut: 10px; }
:root[data-style="cyberpunk"] :is(.fan-link, .jv-home, .jv-back, .jv-skip, .jv-ph-tab) { --cut: 7px; }

/* the gold tick along each cut: one layer, two corners, drawn as a 1.5px
   line just inside the diagonal, so it is never clipped away with it */
:root[data-style="cyberpunk"] :is(.fan-card, .fan-tile, .fan-linkcard, .fan-rankrow, .fan-land, .fan-film, .crest, .bust,
  .av-saga-row, .fan-peek, .fan-iface, .fan-intro-when, .wsib-i a)::after,
:root[data-style="cyberpunk"] .jv-mod::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 1;
  border: 0; width: auto; height: auto; transform: none; box-shadow: none;
  background:
    linear-gradient(to bottom left, transparent 50%, var(--tick, var(--cp-gold)) 0 calc(50% + 1.5px), transparent 0)
      100% 0 / var(--cut, 14px) var(--cut, 14px) no-repeat,
    linear-gradient(to top right, transparent 50%, var(--tick, var(--cp-gold)) 0 calc(50% + 1.5px), transparent 0)
      0 100% / var(--cut, 14px) var(--cut, 14px) no-repeat;
}

/* the rain, one 180x240 tile slanted by the wind, falling one tile at a
   time so the loop never shows a seam; transform only. Still under
   Reduce Motion, where it is rain on a photograph. */
@keyframes cp-rain { from { transform: rotate(9deg) translateY(-240px); } to { transform: rotate(9deg) translateY(0); } }

/* ── 2. the world page: the city ─────────────────────────────────────────── */

/* The night: soot at the top, the city's own red glow along the skyline.
   The sky is capped at .36 (fanpages.css), so everything in it is drawn
   bright and lands dim. */
:root[data-style="cyberpunk"] .mcu-sky {
  background:
    radial-gradient(75% 34% at 50% 80%, rgba(170, 28, 30, .6), transparent 72%),
    linear-gradient(#040205 0%, #0c0408 48%, #1d070b 78%, #080305 100%);
}
/* the skyline, standing on a street line low in the window, far enough
   off that it never competes with a sentence scrolled over it */
:root[data-style="cyberpunk"] .mcu-sky::before,
:root[data-style="cyberpunk"] .mcu-sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 15%; height: 27%;
  background: var(--cp-city) 50% 100% / auto 100% repeat-x;
  pointer-events: none;
}
:root[data-style="cyberpunk"] .mcu-sky::before { opacity: .6; }
/* a phone sees a slice of it, so the slice is smaller and lower, a skyline
   at the end of the street rather than a tower behind the text */
@media (max-width: 640px) {
  :root[data-style="cyberpunk"] .mcu-sky::before,
  :root[data-style="cyberpunk"] .mcu-sky::after { bottom: 11%; height: 17%; }
}
/* and the same skyline again, upside down in the wet street: stretched,
   softened, broken into ripples and fading out toward the viewer */
:root[data-style="cyberpunk"] .mcu-sky::after {
  background:
    repeating-linear-gradient(transparent 0 5px, rgba(6, 3, 5, .88) 5px 8px),
    var(--cp-city) 50% 100% / auto 100% repeat-x;
  transform-origin: 50% 100%; transform: scaleY(-1.25);
  filter: blur(2px); opacity: .45;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 62%);
  mask-image: linear-gradient(to top, #000, transparent 62%);
}
/* the embers that drifted over the portals become the rain */
:root[data-style="cyberpunk"] .mcu-embers { background: none; animation: none; opacity: 1; overflow: hidden; }
:root[data-style="cyberpunk"] .mcu-embers::before {
  content: ""; position: absolute; inset: -40% -25%;
  background: var(--cp-rain) 0 0 / 180px 240px;
  transform: rotate(9deg); opacity: .8;
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="cyberpunk"] .mcu-embers::before { animation: cp-rain .55s linear infinite; will-change: transform; }
}
/* the portals and the reactor rings stay, quieter, behind the rain */
:root[data-style="cyberpunk"] :is(.mcu-portal, .mcu-sky i) { filter: saturate(1.2); }

/* no page-wide accent (each tile and card carries its own --a); the tab bar
   alone takes the arc-reactor gold */
:root[data-style="cyberpunk"] .tabbar { --s-accent: var(--cp-gold); }
:root[data-style="cyberpunk"] :is(.tabbar a.is-current, .tabbar a.is-going) {
  background: linear-gradient(160deg, rgba(255, 194, 58, .16), rgba(255, 194, 58, .04));
  box-shadow: inset 0 -2px 0 var(--cp-gold);
}

/* the title is the tower's sign: Orbitron, a white-hot tube in a red glow */
:root[data-style="cyberpunk"] body[data-fan="mcu"] .fan-title {
  font-size: clamp(2.3rem, 8.4vw, 5.6rem); letter-spacing: 0.08em; text-transform: uppercase;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #ffe2dc;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--cp-red), 0 0 24px rgba(255, 52, 40, .75), 0 0 60px rgba(255, 30, 20, .4);
}
:root[data-style="cyberpunk"] .fan-kicker { color: var(--cp-gold); }

/* headings in the sign face; reading text stays Inter, labels stay mono.
   The sagas' big Roman numerals keep their own face: Orbitron's I is a bare
   bar, and III in it reads as three rectangles. */
:root[data-style="cyberpunk"] :is(.fan-card :is(h2, h3, h4, h5), .fan-rankhead b, .fan-linkcard b, .fan-film h3, .bust h3,
  .crest h3, .av-saga-name b, .fan-num) {
  font-family: var(--s-display); letter-spacing: 0.03em;
}
:root[data-style="cyberpunk"] :is(.fan-card :is(h2, h3, h4, h5), .fan-film h3, .crest h3) { font-weight: 700; font-size: 1.02rem; }
:root[data-style="cyberpunk"] :is(.fan-rankhead b, .fan-linkcard b, .bust h3, .av-saga-name b) { font-weight: 700; font-size: 0.92rem; }
:root[data-style="cyberpunk"] .fan-tiletext b { font-family: var(--s-display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.03em; }
:root[data-style="cyberpunk"] .crest h3 { font-size: 1.1rem; }

/* section heads are signs too, red, with the year in small gold mono */
/* (the Infinity Stones picker's heading, from fan-play.js, is one of them) */
:root[data-style="cyberpunk"] :is(.subsec--fan, .fp-head :is(h2, h3)) {
  font-family: var(--s-display); font-weight: 700; font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cp-red-hi);
  text-shadow: 0 0 12px rgba(255, 50, 36, .6);
}
:root[data-style="cyberpunk"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--cp-gold); text-shadow: none;
}
/* the glitch, and the only one: the rule beside each section head is torn,
   a red line that jumps a pixel up, breaks, and throws off a gold sliver */
:root[data-style="cyberpunk"] .subsec--fan::after {
  height: 5px; align-self: center;
  background:
    linear-gradient(90deg, rgba(255, 68, 56, .75), rgba(255, 68, 56, .45)) 0 2px / 58% 1px no-repeat,
    linear-gradient(rgba(255, 68, 56, .7), rgba(255, 68, 56, .7)) 61% 0 / 9% 1px no-repeat,
    linear-gradient(var(--cp-gold), var(--cp-gold)) 73.5% 4px / 3% 1px no-repeat,
    linear-gradient(90deg, rgba(255, 68, 56, .4), rgba(255, 68, 56, .04)) 100% 2px / 22% 1px no-repeat;
}

/* panels: black glass with a dim red edge; no radius anywhere */
:where(:root[data-style="cyberpunk"]) :is(.fan-rankrow, .fan-land, .fan-film, .bust, .crest, .av-saga-row, .avd-stage, .fan-shot, .been a, .fan-quote, .fan-intro-when) {
  border-radius: 0;
}
:where(:root[data-style="cyberpunk"]) :is(.fan-rankrow, .fan-land, .bust, .avd-stage, .fan-shot, .been a) {
  border-color: var(--cp-edge); background: var(--cp-fill);
}
:where(:root[data-style="cyberpunk"]) :is(.fan-linkcard, .fan-rankrow, .bust, .av-saga-row, .fan-peek, .fan-iface, .wsib-i a) { position: relative; }
:where(:root[data-style="cyberpunk"]) .fan-film { background: linear-gradient(163deg, color-mix(in srgb, var(--a, #ff4438) 10%, transparent), var(--cp-fill) 60%); }
:where(:root[data-style="cyberpunk"]) .crest {
  background:
    radial-gradient(125% 78% at 50% 0%, color-mix(in srgb, var(--h1) 18%, transparent), transparent 64%),
    var(--cp-fill);
}
:where(:root[data-style="cyberpunk"]) .av-saga-row {
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), var(--cp-fill);
}
:where(:root[data-style="cyberpunk"]) .av-saga-stone { border-radius: 2px; }
/* the stones' tags are square chips on the same 1px edge, not pills */
:where(:root[data-style="cyberpunk"]) .crest-tags span { border-radius: 0; }
/* the lines and the "first watched" note: a neon tube down the left side */
:where(:root[data-style="cyberpunk"]) .fan-quote {
  background: linear-gradient(90deg, color-mix(in srgb, var(--a, #ff4438) 10%, transparent), transparent 74%), var(--cp-fill);
  box-shadow: inset 3px 0 14px -8px var(--a, #ff4438);
}
@media (hover: hover) {
  :where(:root[data-style="cyberpunk"]) .fan-quote:hover { box-shadow: inset 3px 0 20px -8px var(--a, #ff4438); }
}
/* "When I got into it" is a panel like the others: black glass with an edge
   all round and the two cuts ticked in gold, not the shared red stripe down
   its left and the wash that fades out of it */
:root[data-style="cyberpunk"] .fan-intro-when {
  position: relative; border: 1px solid var(--cp-edge); border-radius: 0; background: var(--cp-fill);
}
:where(:root[data-style="cyberpunk"]) .fp-bar { border-radius: 0; border-color: var(--cp-edge); }

/* the pills that jump down the page: angled, with an edge you can see */
:where(:root[data-style="cyberpunk"]) .fan-link { border-color: var(--cp-ctl); background: rgba(12, 7, 9, .72); }
@media (hover: hover) {
  :where(:root[data-style="cyberpunk"]) .fan-link:hover { color: var(--cp-gold); border-color: var(--cp-gold); background: rgba(40, 24, 6, .8); }
}

/* An item's own colour (caption, subtitle, tag, Listen and Play) lifted a
   quarter toward white, so the darker ones read on black glass. :where
   keeps the shared rules' weight, so hovering and playing still win. */
:root[data-style="cyberpunk"] :is(.fan-tiletext i, .fan-card .fan-sub) { color: color-mix(in srgb, var(--a) 75%, #fff); opacity: 1; }
/* the villains' names likewise: Ultron's red and Doom's green were dim on
   the old gradient and are dimmer on solid black glass */
:root[data-style="cyberpunk"] .bust h3 { color: color-mix(in srgb, var(--v) 70%, #fff); }
:where(:root[data-style="cyberpunk"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: color-mix(in srgb, var(--a) 75%, #fff); }

/* the J.A.R.V.I.S. fragment stays the HUD's cyan, framed in the suit's red */
:where(:root[data-style="cyberpunk"]) .fan-peek { border-color: rgba(255, 68, 56, .6); }
:where(:root[data-style="cyberpunk"]) .fan-peek-dot { border-radius: 0; }

/* ── the signature: the team as neon signs ──────────────────────────────────
   Every member's card (the roster, the New Avengers, the Guardians, and my
   four) carries a tube in that member's own colour, laid over its edge,
   with the cut corners ticked in the same tube. As a card enters, the sign
   flickers on once, the way a cold tube strikes; then it holds. Under
   Reduce Motion it is simply lit. Opacity only. */
:root[data-style="cyberpunk"] :is(#roster .fan-tile, #newavengers .fan-card, #guardians .fan-card, #favorites .fan-card) {
  --tube: color-mix(in srgb, var(--a, #ff4438) 72%, #fff);
  --tick: var(--tube);
  border-color: transparent;
}
:root[data-style="cyberpunk"] :is(#roster .fan-tile, #newavengers .fan-card, #guardians .fan-card, #favorites .fan-card)::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  border: 1.5px solid var(--tube);
  box-shadow: 0 0 10px -1px var(--tube), inset 0 0 14px -6px var(--tube);
}
:root[data-style="cyberpunk"] :is(#roster .fan-tile, #newavengers .fan-card, #guardians .fan-card, #favorites .fan-card)::after {
  filter: drop-shadow(0 0 3px var(--tube));
}
:root[data-style="cyberpunk"] :is(#roster .fan-tiletext b, :is(#newavengers, #guardians, #favorites) .fan-card h3) {
  text-shadow: 0 0 14px color-mix(in srgb, var(--a, #ff4438) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="cyberpunk"] :is(#roster .fan-tile, #newavengers .fan-card, #guardians .fan-card, #favorites .fan-card)::before,
  :root[data-style="cyberpunk"] :is(#roster .fan-tile, #newavengers .fan-card, #guardians .fan-card, #favorites .fan-card)::after { opacity: 0; }
  :root[data-style="cyberpunk"] :is(#roster .fan-tile, #newavengers .fan-card, #guardians .fan-card, #favorites .fan-card):is(.in, :not(.reveal))::before,
  :root[data-style="cyberpunk"] :is(#roster .fan-tile, #newavengers .fan-card, #guardians .fan-card, #favorites .fan-card):is(.in, :not(.reveal))::after {
    animation: cp-neon-on 1.3s steps(1, end) .2s 1 both;
  }
  /* signs on one street do not strike in step */
  :root[data-style="cyberpunk"] :is(#roster .fan-tile, .fan-cards > .fan-card):nth-child(3n+2):is(.in, :not(.reveal)):is(::before, ::after) { animation-delay: .42s; }
  :root[data-style="cyberpunk"] :is(#roster .fan-tile, .fan-cards > .fan-card):nth-child(3n):is(.in, :not(.reveal)):is(::before, ::after) { animation-delay: .3s; animation-duration: 1.05s; }
}
@keyframes cp-neon-on {
  0% { opacity: 0; } 9% { opacity: .9; } 13% { opacity: .1; } 21% { opacity: 1; }
  25% { opacity: .25; } 33% { opacity: .85; } 37% { opacity: .2; } 58% { opacity: 1; }
  100% { opacity: 1; }
}

/* ── 3. J.A.R.V.I.S.: the suit around the light ─────────────────────────── */
:root[data-style="cyberpunk"] body.jv { --red: var(--cp-red); --amber: var(--cp-gold); }

/* the visor: the city out of focus at the foot, the rain beyond the glass */
:root[data-style="cyberpunk"] .jv-field::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: var(--cp-city) 50% 100% / auto 100% repeat-x;
  opacity: .24; filter: blur(1.5px);
}
:root[data-style="cyberpunk"] .jv-field::after {
  content: ""; position: absolute; inset: -40% -25%;
  background: var(--cp-rain) 0 0 / 180px 240px;
  transform: rotate(9deg); opacity: .16;
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="cyberpunk"] .jv-field::after { animation: cp-rain .8s linear infinite; will-change: transform; }
}

/* the modules: the suit's red plate edge, cut at two corners, gold ticks
   where JARVIS drew one cyan tick and a corner patch of ground */
:where(:root[data-style="cyberpunk"]) .jv-mod {
  border-color: rgba(232, 44, 40, .55);
  background: linear-gradient(160deg, rgba(var(--cy-rgb), .04), rgba(10, 4, 7, .55));
  box-shadow: inset 0 1px 0 rgba(255, 194, 58, .12);
}
:root[data-style="cyberpunk"] .jv-mod { --cut: 12px; }
:root[data-style="cyberpunk"] .jv-mod::after { content: none; }
:where(:root[data-style="cyberpunk"]) .jv-wave-wrap { border-color: rgba(232, 44, 40, .45); }
@media (hover: hover) {
  :root[data-style="cyberpunk"] .jv-mod:hover { border-color: rgba(255, 194, 58, .6); box-shadow: inset 0 1px 0 rgba(255, 194, 58, .2), inset 0 0 30px rgba(255, 68, 56, .06); }
}

/* the brow of the helmet: a hard band with the red line under it, where
   there was a fade (geometry unchanged: the line is painted, not a border) */
:where(:root[data-style="cyberpunk"]) .jv-top {
  background:
    linear-gradient(rgba(255, 68, 56, .5), rgba(255, 68, 56, .5)) 0 100% / 100% 1px no-repeat,
    linear-gradient(rgba(8, 3, 5, .96), rgba(8, 3, 5, .88));
}
:where(:root[data-style="cyberpunk"]) .jv-bottom { border-top-color: rgba(232, 44, 40, .5); }
/* the screen's corner brackets are the faceplate's, in gold */
:root[data-style="cyberpunk"] :is(.jv-corner::before, .jv-corner::after) { background: var(--cp-gold); box-shadow: 0 0 10px rgba(255, 194, 58, .45); }

/* the suit's own buttons: red edge, gold when lit */
/* (an edge you can find: 3.6:1, where the HUD's own was 1.2:1) */
:where(:root[data-style="cyberpunk"]) :is(.jv-home, .jv-back, .jv-skip) { border-radius: 0; border-color: rgba(255, 68, 56, .78); }
:where(:root[data-style="cyberpunk"]) .jv-ph-tab { border-radius: 0; }
@media (hover: hover) {
  :root[data-style="cyberpunk"] :is(.jv-home, .jv-back, .jv-skip):hover {
    color: #170b00; background: var(--cp-gold); border-color: var(--cp-gold); box-shadow: 0 0 14px rgba(255, 194, 58, .5);
  }
}

/* The world button, a purple pill on every interface, is the way out to
   the city: the angled plate in Stark red with the world's name in the
   sign face, as the world page sets its title. */
:root[data-style="cyberpunk"] .jv .iw {
  --iw-a: #ff4438; --iw-bg: #0a0306;
  border-radius: 0; border-color: rgba(255, 68, 56, .8);
  background: linear-gradient(180deg, rgba(255, 68, 56, .18), rgba(10, 3, 6, .7));
}
@media (hover: hover) and (pointer: fine) {
  :root[data-style="cyberpunk"] .jv .iw:hover { border-color: var(--cp-gold); box-shadow: 0 0 18px -6px rgba(255, 194, 58, .55); }
}
:root[data-style="cyberpunk"] .jv .iw-i { border-radius: 0; }
:root[data-style="cyberpunk"] .jv .iw-t b { font-family: var(--s-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* The keyboard ring: arc-reactor gold, 2px, as on the world page. The HUD
   had none of its own on its links and buttons (the browser's default
   showed), and a 1px ring on the phase tabs. */
:root[data-style="cyberpunk"] .jv :focus-visible { outline: 2px solid var(--s-focus); outline-offset: 2px; }
:root[data-style="cyberpunk"] .jv :is(.jv-ph-tab, .jv-stone):focus-within { outline: 2px solid var(--s-focus); outline-offset: 2px; }
:root[data-style="cyberpunk"] .jv .iw:focus-visible { outline-color: var(--s-focus); }

/* ── less transparency, more contrast ───────────────────────────────────── */
@media (prefers-reduced-transparency: reduce) {
  :root[data-style="cyberpunk"] { --cp-fill: rgb(12, 7, 9); --cp-fill-hi: rgb(24, 10, 13); --s-bar: rgb(9, 5, 7); --s-bar-blur: none; }
  :root[data-style="cyberpunk"] :is(.mcu-sky::after, .mcu-embers::before, .jv-field::after) { opacity: 0; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-style="cyberpunk"] { --s-bar: rgba(9, 5, 7, .96); }
}
@media (prefers-contrast: more) {
  :root[data-style="cyberpunk"] { --cp-edge: rgba(255, 68, 56, .55); --cp-fill: rgb(10, 6, 8); }
  :root[data-style="cyberpunk"] :is(.mcu-sky::after, .mcu-embers::before, .jv-field::after) { opacity: 0; }
}
