/* Synthwave, for /worlds/stranger-things/ and /hawkins/ (style: synthwave).

   The cassette and the basement TV in 1985. The show is scored on eighties
   synths and its title sequence is the genre's best-known image, so the
   pair is made of what that decade's tapes and screens were made of: the
   title in outlined red on black, chrome lettering, a horizon band over a
   perspective grid floor, VHS tracking lines where one section cuts to the
   next, and faint scanlines over the picture. The palette is the show's red
   and black first, synth blue and violet second, and never the pink sunset:
   there is no sun on this horizon, only the red line where it would be.

   One file for the pair, in three parts: what both pages share (the palette,
   the floor, the tracking lines, the chrome); the world page, which is the
   album cover, its title assembling once from separate letters the way the
   opening credits build it; and Hawkins, which is already mall neon and
   keeps all of it (the mall, the arcade, Joyce's wall, the scroll that turns
   the town over) and takes the same horizon, floor, tracking and chrome. The
   spec: docs/superpowers/specs/2026-10-11-page-styles-design.md, section 5,
   "Stranger Things: Synthwave", and section 9.

   Everything here is scoped to :root[data-style="synthwave"]. Material rules
   on shared components use :where() for that scope, so each page's own
   hover, focus, open and playing states still win. */

/* ── 1. shared: the palette, the floor, the tracking lines, the chrome ───── */
:root[data-style="synthwave"] {
  --sw-red: #ff2b1c;          /* the title's neon: the show's red, lit */
  --sw-ink: #ff5a4c;          /* that red where it is small text: 6.4:1 on black */
  --sw-blue: #4d7cff;
  --sw-violet: #8a5cff;
  /* eighties chrome: sky white on top, a hard dark horizon through the
     middle of every letter, and the light coming back up underneath */
  --sw-chrome: linear-gradient(180deg, #fff 0%, #eef1fb 24%, #b7c1dd 47%, #474c69 50%, #6c7593 55%, #d4daee 80%, #fff 100%);
  /* a tape shell: smoked black plastic with a chrome lip along the top */
  --sw-lip: inset 0 1px 0 rgba(236, 240, 255, .16);
  /* the floor, cut as masks so each place lights it in its own colour:
     rays from one vanishing point on the horizon, and rungs that crowd
     toward it (rung k at 100 / (1 + .35k) percent of the depth) */
  --sw-rays: repeating-conic-gradient(from 0deg at 50% 0%, #000 0deg .2deg, transparent .32deg 6.5deg);
  --sw-rungs: linear-gradient(180deg,
    transparent calc(15.2% - 1px), rgba(0, 0, 0, .6) 0 15.2%, transparent 0, transparent calc(16.9% - 1px), rgba(0, 0, 0, .6) 0 16.9%, transparent 0,
    transparent calc(19.2% - 1px), rgba(0, 0, 0, .6) 0 19.2%, transparent 0, transparent calc(22.2% - 1px), rgba(0, 0, 0, .6) 0 22.2%, transparent 0,
    transparent calc(26.3% - 1px), rgba(0, 0, 0, .6) 0 26.3%, transparent 0, transparent calc(32.3% - 1.5px), rgba(0, 0, 0, .6) 0 32.3%, transparent 0,
    transparent calc(41.7% - 1.5px), rgba(0, 0, 0, .6) 0 41.7%, transparent 0, transparent calc(58.8% - 1.5px), rgba(0, 0, 0, .6) 0 58.8%, transparent 0,
    transparent calc(74.1% - 1.5px), rgba(0, 0, 0, .6) 0 74.1%, transparent 0);
  /* VHS tracking: broken runs of line, the blue and red channels slipped
     a few pixels off the white, the way a tape tears where one recording
     was taped over another */
  --sw-track:
    linear-gradient(90deg, transparent 4%, rgba(236, 234, 227, .6) 4% 19%, transparent 19% 27%, rgba(236, 234, 227, .32) 27% 58%, transparent 58% 71%, rgba(236, 234, 227, .5) 71% 77%, transparent 77%) 0 1px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 9%, rgba(77, 124, 255, .75) 9% 34%, transparent 34% 62%, rgba(77, 124, 255, .55) 62% 89%, transparent 89%) 0 4px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 14%, rgba(255, 43, 28, .75) 14% 41%, transparent 41% 66%, rgba(255, 43, 28, .55) 66% 93%, transparent 93%) 0 5px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 22%, rgba(236, 234, 227, .2) 22% 96%, transparent 96%) 0 8px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(236, 234, 227, .4) 0 2px, transparent 2px 5px, rgba(236, 234, 227, .2) 5px 6px, transparent 6px 11px) 62% 6px / 18% 2px no-repeat;
  --sw-scan: repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px);

  /* the world page's shared components read these (base.css) */
  --s-surface: rgba(11, 6, 15, .9);
  --s-surface-hi: rgba(21, 12, 28, .94);
  --s-edge: rgba(176, 166, 220, .22);
  --s-bw: 1px;
  --s-r: 6px;
  --s-r-sm: 3px;
  --s-shadow: var(--sw-lip), 0 18px 34px -26px #000;
  --s-lift: -3px;
  /* the nearest free cut of the show's title lettering (ITC Benguiat),
     for the title and the headings; an interface keeps its own faces and
     Hawkins never asks for this one, so there it only resolves */
  --s-display: "Yeseva One", Georgia, serif;
  --s-display-w: 400;
  --s-display-ls: 0.01em;
  /* synth blue: 7:1 on the black and on Hawkins' night violet */
  --s-focus: #7aa2ff;

  /* the bars: the smoked plastic of a tape deck, a chrome lip on top */
  --s-bar: rgba(9, 5, 12, .84);
  --s-bar-edge: rgba(190, 198, 232, .2);
  --s-bar-r: 10px;
  --s-bar-blur: blur(16px) saturate(140%);
  --s-bar-shadow: var(--sw-lip), 0 18px 40px -18px #000;

  /* tape noise stays, a touch heavier; the circuit field goes; the flat
     HUD lattice gives way to the floor and keeps only its scanlines, and
     its travelling sweep becomes a red tracking roll down the picture */
  --s-grain: .06;
  --s-field: 0;
  --hud-grid: transparent;
  --hud-scan: rgba(236, 234, 227, .035);
  --hud-sweep: rgba(255, 64, 44, .07);
  --hud-lit: transparent;
  --hud-halo: rgba(138, 92, 255, .06);

  scrollbar-color: #3a2448 #07040a;
}
:root[data-style="synthwave"] ::selection { background: rgba(255, 43, 28, .5); color: #fff; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-style="synthwave"] { --s-bar: rgba(9, 5, 12, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-style="synthwave"] {
    --s-surface: rgb(11, 6, 15); --s-surface-hi: rgb(21, 12, 28);
    --s-bar: rgb(9, 5, 12); --s-bar-blur: none;
  }
}
@media (prefers-contrast: more) {
  :root[data-style="synthwave"] {
    --s-surface: rgb(9, 5, 12); --s-edge: rgba(200, 192, 240, .5);
    --hud-scan: transparent; --s-grain: 0;
  }
}

/* ── 2. the world page: the album cover ──────────────────────────────────── */

/* The show's red takes the tab bar; every tile and card keeps its own --a. */
:root[data-style="synthwave"] .tabbar { --s-accent: var(--sw-ink); }

/* The horizon and the floor, drawn into the season backdrop over whichever
   season is showing, under its drawn props (the treeline, the clock, the
   rifts). One layer: a red horizon line with its glow, and below it the
   grid in violet coming forward into synth blue. The sky is capped at .36
   (fanpages.css), which keeps all of this a backdrop. */
:root[data-style="synthwave"] .st-prop { z-index: 2; }
:root[data-style="synthwave"] .st-sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56%; z-index: 1;
  background: linear-gradient(180deg, var(--sw-violet) 0%, var(--sw-red) 26% 31%, rgba(177, 60, 255, .6) 46%, rgba(138, 92, 255, .5) 64%, rgba(77, 124, 255, .6) 100%);
  -webkit-mask: linear-gradient(180deg, transparent 4%, rgba(0, 0, 0, .3) 24%, #000 30% calc(30% + 2px), rgba(0, 0, 0, .3) calc(30% + 3px), transparent 42%),
    var(--sw-rays) 0 100% / 100% 70% no-repeat, var(--sw-rungs) 0 100% / 100% 70% no-repeat;
  mask: linear-gradient(180deg, transparent 4%, rgba(0, 0, 0, .3) 24%, #000 30% calc(30% + 2px), rgba(0, 0, 0, .3) calc(30% + 3px), transparent 42%),
    var(--sw-rays) 0 100% / 100% 70% no-repeat, var(--sw-rungs) 0 100% / 100% 70% no-repeat;
}

/* VHS tracking lines in the gap where one section cuts to the next, every
   other one mirrored so no two neighbours tear the same way */
:root[data-style="synthwave"] .fan-sec { position: relative; }
:root[data-style="synthwave"] .fan-sec + .fan-sec::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -2rem; height: 9px;
  pointer-events: none; background: var(--sw-track); opacity: .75;
}
:root[data-style="synthwave"] .fan-sec + .fan-sec:nth-child(odd)::before { transform: scaleX(-1); }

/* The title, as the show sets it: STRANGER over THINGS, each word a line,
   the first S stood taller, outlined in red on black and lit from inside,
   a rule over the first line and a rule either side of the second. */
:root[data-style="synthwave"] body[data-fan="st"] .fan-title {
  position: relative; width: min-content; max-width: 100%;
  padding: 0.2em 0.08em 0.06em;
  font-family: var(--s-display); font-weight: 400; font-size: clamp(3rem, 9.5vw, 7rem);
  line-height: 0.94; letter-spacing: 0.02em; text-align: center; text-transform: uppercase;
  color: transparent; text-shadow: none;
  -webkit-text-stroke: clamp(1.25px, 0.024em, 2.5px) var(--sw-red);
  background: linear-gradient(180deg, #1f0506, #0a0203); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 2px rgba(255, 43, 28, .85)) drop-shadow(0 0 16px rgba(232, 38, 29, .5));
}
:root[data-style="synthwave"] body[data-fan="st"] .fan-title::first-letter { font-size: 1.22em; }
:root[data-style="synthwave"] body[data-fan="st"] .fan-title::before,
:root[data-style="synthwave"] body[data-fan="st"] .fan-title::after {
  content: ""; position: absolute; height: 0.045em; min-height: 3px;
  border: clamp(1px, 0.016em, 2px) solid var(--sw-red); border-radius: 1px; background: #0a0203;
}
:root[data-style="synthwave"] body[data-fan="st"] .fan-title::before { top: 0.17em; left: 0.86em; right: 0.12em; }
/* the second line's rules: one bar across the width, its middle cut away
   where THINGS stands */
:root[data-style="synthwave"] body[data-fan="st"] .fan-title::after {
  top: 1.77em; left: 0.12em; right: 0.12em; border: 0; background:
    linear-gradient(90deg, var(--sw-red) 0 14%, transparent 14% 86%, var(--sw-red) 86%);
}

/* The signature: the title assembles once on load from separate letters,
   as the opening credits build it. The letters arrive spread wide and
   close up into the word while the shot pulls back; the translate keeps
   the word centred on where it will land (eight letters, so half the
   added tracking is 4 x .9em). The rules slide in once the letters have
   settled. It runs once, and under Reduce Motion it never runs: the title
   is simply there. */
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="synthwave"] body[data-fan="st"] .fan-title { animation: sw-assemble 2.4s cubic-bezier(.2, .75, .15, 1) .2s both; }
  :root[data-style="synthwave"] body[data-fan="st"] .fan-title::before,
  :root[data-style="synthwave"] body[data-fan="st"] .fan-title::after { animation: sw-rule 1s cubic-bezier(.2, .75, .15, 1) 1.9s both; }
}
@keyframes sw-assemble {
  from { letter-spacing: 0.92em; transform: translateX(-3.6em) scale(1.3); opacity: 0; }
  30% { opacity: 1; }
  to { letter-spacing: 0.02em; transform: none; opacity: 1; }
}
@keyframes sw-rule { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* the season readout, in the title's face, on the deck's black plastic */
:root[data-style="synthwave"] .st-hud { border-radius: var(--s-r-sm); background: rgba(7, 4, 9, .94); box-shadow: var(--sw-lip), 0 12px 26px -14px #000; }
:root[data-style="synthwave"] :is(.st-hud-num, .st-hud-text b) { font-family: var(--s-display); font-weight: 400; }

/* Section heads in chrome, in the title's face, each one standing on its
   own horizon: the rule after it is the red line (a season's own colour
   in the season run) with the violet haze going out from it. The note
   beside it stays small mono. */
:root[data-style="synthwave"] .subsec--fan {
  font-family: var(--s-display); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.2; letter-spacing: 0.01em; text-transform: none;
  color: transparent; background: var(--sw-chrome) 0 0 / 100% 1.2em repeat-y;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .8));
}
:root[data-style="synthwave"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
:root[data-style="synthwave"] .subsec--fan::after {
  height: 2px; align-self: center;
  background: linear-gradient(90deg, var(--sc, var(--sw-red)), var(--sw-violet) 40%, rgba(77, 124, 255, 0));
  box-shadow: 0 0 10px color-mix(in srgb, var(--sc, var(--sw-red)) 60%, transparent);
}

/* every other heading on the page in the same face; reading text stays Inter */
:root[data-style="synthwave"] :is(.fan-card :is(h2, h3, h4, h5), .fan-rankhead b, .fan-tiletext b, .fan-land-head :is(h2, h3, h4, h5)) {
  font-family: var(--s-display); font-weight: 400; letter-spacing: 0.005em;
}

/* Tape shells: smoked black plastic, a chrome lip, square-ish corners, and
   across the top the label's colour band in the item's own colour (its
   season's, in the season run). Set as tokens on each item so the colour
   resolves there, and its own hover keeps the band. */
:root[data-style="synthwave"] :is(.fan-card, .fan-tile, .fan-linkcard, .fan-rankrow, .fan-land) {
  --sw-band: var(--sc, var(--a, var(--sw-ink)));
  --s-shadow-hi: inset 0 2px 0 var(--sw-band), var(--sw-lip), 0 22px 40px -24px #000, 0 0 34px -16px color-mix(in srgb, var(--sw-band) 60%, transparent);
}
:where(:root[data-style="synthwave"]) :is(.fan-card, .fan-tile, .fan-linkcard, .fan-rankrow, .fan-land) {
  background: var(--s-surface); border: 1px solid var(--s-edge); border-radius: var(--s-r);
  box-shadow: inset 0 2px 0 var(--sw-band), var(--sw-lip), 0 18px 34px -26px #000;
}
@media (hover: hover) {
  :where(:root[data-style="synthwave"]) :is(.fan-rankrow, .fan-land):hover {
    background: var(--s-surface-hi); box-shadow: var(--s-shadow-hi);
  }
  :where(:root[data-style="synthwave"]) :is(.fan-tile, .fan-linkcard):hover { box-shadow: var(--s-shadow-hi); }
}
/* a land already carries its colour along its top edge: that bar is its band */
:where(:root[data-style="synthwave"]) .fan-land { box-shadow: var(--sw-lip), 0 18px 34px -26px #000; }
:where(:root[data-style="synthwave"]) .fan-land-bar { height: 2px; opacity: 1; }
/* the quotes and the "first watched" note keep their coloured spine, on
   the same smoked plastic, so the floor never runs through a line */
:where(:root[data-style="synthwave"]) :is(.fan-quote, .fan-intro-when) {
  border-radius: 0 var(--s-r) var(--s-r) 0; box-shadow: var(--sw-lip);
  background: linear-gradient(90deg, color-mix(in srgb, var(--a, #ff5a4c) 12%, rgb(11, 6, 15)), rgb(11, 6, 15) 70%);
}

/* the rank's numbers in chrome */
:root[data-style="synthwave"] .fan-num {
  opacity: 1; color: transparent; background: var(--sw-chrome) 0 50% / 100% 1.4em no-repeat;
  -webkit-background-clip: text; background-clip: text;
}

/* An item's own colour (a tile's caption, a card's subtitle, its tag,
   Listen link and Play button, the kicker) is lifted a quarter toward
   white: the show's red was 4.4:1 on black and is 6.4:1 now, still red.
   :where keeps the shared rules' weight, so hovering and playing win. */
:root[data-style="synthwave"] :is(.fan-tiletext i, .fan-card .fan-sub) { color: color-mix(in srgb, var(--a) 75%, #fff); opacity: 1; }
:root[data-style="synthwave"] .fan-sec[data-season] :is(.fan-sub, .fan-tag) { color: color-mix(in srgb, var(--sc) 75%, #fff); }
:where(:root[data-style="synthwave"]) :is(.fan-tag, .fan-visit, .fan-hear, .fan-kicker, .fan-iface-k, .fan-iface-a, .wsib-a) { color: color-mix(in srgb, var(--a) 75%, #fff); }
:where(:root[data-style="synthwave"]) .fan-sortbtn.is-on { color: var(--sw-ink); }

/* buttons and pills: the deck's keys, black with a chrome edge */
:where(:root[data-style="synthwave"]) :is(.fan-link, .fan-iface, .wsib-i a, .st-flip, .fan-sortbtn) {
  border-radius: var(--s-r-sm); box-shadow: var(--sw-lip);
}
:where(:root[data-style="synthwave"]) :is(.fan-link, .fan-iface, .wsib-i a) { background: rgba(14, 8, 19, .9); }
:where(:root[data-style="synthwave"]) .fan-link { border-color: rgba(200, 206, 236, .42); }
:where(:root[data-style="synthwave"]) .st-flip { color: var(--sw-ink); border-color: rgba(255, 90, 76, .6); background: rgba(14, 8, 19, .9); }
@media (hover: hover) {
  :where(:root[data-style="synthwave"]) :is(.fan-link, .fan-iface, .wsib-i a):hover { background: var(--s-surface-hi); border-color: var(--sw-ink); }
}

/* The basement TV. Joyce's wall and the live fragment of Hawkins each sit
   behind the curved glass of a set: a black bezel round the picture, the
   corners of a tube, scanlines and a glare over it. The wall's bulbs and
   its timer are untouched; this is only the set they play on, the same
   machine glass the wall stands behind on Hawkins. */
:root[data-style="synthwave"] .st-paper {
  border-radius: 14px / 18px;
  box-shadow: inset 0 0 90px 20px rgba(0, 0, 0, .55), 0 0 0 10px #120c17, 0 0 0 11px rgba(220, 226, 246, .14), 0 30px 60px -30px #000;
}
:root[data-style="synthwave"] :is(.st-paper, .fan-peek)::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(70% 45% at 22% 6%, rgba(255, 255, 255, .1), transparent 70%), var(--sw-scan);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .55);
}
:root[data-style="synthwave"] .fan-peek {
  position: relative; border-radius: 12px / 16px;
  box-shadow: 0 0 0 6px #120c17, 0 0 0 7px rgba(220, 226, 246, .12), 0 22px 44px -26px #000;
}

/* the one input on the page rings in the page's blue like everything else */
:root[data-style="synthwave"] .st-say input { border-radius: var(--s-r-sm); }
:root[data-style="synthwave"] .st-say input:focus { outline-color: var(--s-focus); }

/* ── 3. Hawkins: the same horizon, floor, tracking and chrome ──────────────
   Already mall neon on a violet night, so the concept, the faces, the
   neon, the scroll that turns the town over and the switch that does it
   at once all stay. What it takes from the world page: the town stands on
   a horizon with the grid floor running out in front of it, the arcade
   marquee is album art of the same horizon, tracking lines tear between
   the rooms, scanlines lie over the sky, the directory's frame and the
   header are chrome, and the tape at the foot is a synth tape. */

/* the floor: the town lifted onto the horizon, the grid in front of it.
   The descent overlay (hawkins.css) still dims all of it as you go down */
:root[data-style="synthwave"] .ud { --sw-floor: 11vh; }
:root[data-style="synthwave"] .ud-trees { bottom: var(--sw-floor); }
:root[data-style="synthwave"] .ud-face::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--sw-floor);
  background: linear-gradient(180deg, var(--sw-red), var(--sw-violet) 30%, var(--sw-blue));
  -webkit-mask: linear-gradient(rgba(0, 0, 0, .6) 0 2px, transparent 2px), var(--sw-rays), var(--sw-rungs);
  mask: linear-gradient(rgba(0, 0, 0, .6) 0 2px, transparent 2px), var(--sw-rays), var(--sw-rungs);
  opacity: .7;
}
:root[data-style="synthwave"] .ud-face::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--sw-floor);
  background: linear-gradient(180deg, #14081f, #050208);
}
/* the far side: the same floor gone cold, the horizon still red, because
   red is the only light left over there */
:root[data-style="synthwave"] .ud-face--down::after {
  background: linear-gradient(180deg, #ff5446, #5d6c7c 30%, #2a3540); opacity: .55;
}
:root[data-style="synthwave"] .ud-face--down::before { background: linear-gradient(180deg, #0d1218, #05080b); }
/* the town's glow on the horizon, in the show's red over synth violet
   and blue, where the mall's pink was */
:root[data-style="synthwave"] .ud-glow {
  background:
    radial-gradient(44% 22% at 50% calc(100% - var(--sw-floor)), rgba(255, 43, 28, .3), transparent 70%),
    radial-gradient(90% 34% at 50% calc(100% - var(--sw-floor)), rgba(138, 92, 255, .24), transparent 72%),
    radial-gradient(130% 26% at 50% calc(100% - var(--sw-floor)), rgba(77, 124, 255, .14), transparent 70%),
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, .5));
}
/* scanlines over the whole sky, both sides of it */
:root[data-style="synthwave"] .ud-field::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: var(--sw-scan); opacity: .55;
}

/* The arcade marquee as album art: behind "Hawkins, Indiana" the same red
   horizon and grid floor as the world page's backdrop, lit violet into
   blue, and gone cold on the far side. */
:root[data-style="synthwave"] .ud-headline { isolation: isolate; }
:root[data-style="synthwave"] .ud-headline::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1;
  background: linear-gradient(180deg, var(--sw-violet) 0%, var(--sw-red) 22% 28%, var(--sw-violet) 50%, var(--sw-blue));
  -webkit-mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .35) 20%, #000 26% calc(26% + 2px), transparent calc(26% + 3px)),
    var(--sw-rays) 0 100% / 100% 74% no-repeat, var(--sw-rungs) 0 100% / 100% 74% no-repeat;
  mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .35) 20%, #000 26% calc(26% + 2px), transparent calc(26% + 3px)),
    var(--sw-rays) 0 100% / 100% 74% no-repeat, var(--sw-rungs) 0 100% / 100% 74% no-repeat;
  opacity: .62;
}
:root[data-style="synthwave"] .ud.is-down .ud-headline::before {
  background: linear-gradient(180deg, #5d6c7c 0%, #ff5446 22% 28%, #5d6c7c 50%, #2a3540);
}

/* tracking lines where the directory cuts to the arcade, the stage to the
   two storefronts, and the storefronts to the way out */
:root[data-style="synthwave"] :is(.ud-board, .ud-cols, .ud-out) { position: relative; }
:root[data-style="synthwave"] :is(.ud-cols, .ud-out)::before,
:root[data-style="synthwave"] .ud-board::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px; pointer-events: none;
  background: var(--sw-track); opacity: .8;
}
:root[data-style="synthwave"] .ud-board::after { bottom: calc(-1 * clamp(1.2rem, 2.5vw, 1.7rem) - 7px); transform: scaleX(-1); }
:root[data-style="synthwave"] .ud-cols::before { top: calc(-1 * clamp(1.5rem, 3.5vw, 2.3rem) - 4px); }
:root[data-style="synthwave"] .ud-out::before { top: calc(-1 * clamp(1.7rem, 4vw, 2.7rem) - 4px); transform: scaleX(-1); }

/* chrome: the directory's frame (the mall's own trim, in metal) with a red
   and violet glow where its pink one was, and the header's lower edge */
:root[data-style="synthwave"] .ud-board {
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel)) padding-box,
    linear-gradient(125deg, #f4f6ff, #9aa3c0 24%, #343852 46%, #e6eaf8 62%, #7c84a2 82%, #dfe4f4) border-box;
  box-shadow: 0 0 44px -14px rgba(255, 43, 28, .5), 0 0 70px -24px rgba(138, 92, 255, .6), 0 30px 50px -30px #000;
}
:root[data-style="synthwave"] .ud.is-down .ud-board { box-shadow: 0 0 44px -16px rgba(255, 84, 70, .35), 0 30px 50px -30px #000; }
:root[data-style="synthwave"] .ud-top { box-shadow: inset 0 -1px 0 rgba(220, 226, 246, .14); }

/* the depth gauge runs from synth blue at the mall to the show's red at the bottom */
:root[data-style="synthwave"] .ud-depth-bar b { background: linear-gradient(90deg, var(--sw-blue), var(--sw-violet) 55%, var(--sw-red)); }

/* The tape at the foot, Jonathan's, as a synth tape: the label's band is
   the pair's three colours, the screws are chrome. */
:root[data-style="synthwave"] .ud-tape-label {
  border-top-color: transparent;
  background:
    linear-gradient(90deg, var(--sw-red) 0 34%, var(--sw-violet) 34% 67%, var(--sw-blue) 67%) 0 0 / 100% 7px no-repeat border-box,
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(60, 90, 160, .25) 25px 26px) 0 6px,
    #f4edda;
}
:root[data-style="synthwave"] .ud-tape::before,
:root[data-style="synthwave"] .ud-tape::after { background: radial-gradient(circle at 35% 30%, #fff, #9aa3c0 45%, #3a3f55); }

/* The world button takes the show's red (it is purple on every interface
   until one sets it), squared into one of the deck's keys, and its ring is
   the page's. No lip here: /hawkins/ does not load interface-world.css, so
   the button is an unstyled inline link until it does, and a shadow on it
   would draw a stray line across the header. */
:root[data-style="synthwave"] .ud .iw { --iw-a: #ff5a4c; --iw-bg: #0a0508; border-radius: 3px; }
:root[data-style="synthwave"] .ud .iw-i { border-radius: 2px; }

/* One focus ring for the pair: the world page's synth blue on every
   control here, where Hawkins drew each in its own colour. Two places
   keep a dark ring because their ground is light: the switch on the
   wallpaper (black paint, as before) and Scoops Ahoy's paper menu (its
   own navy). */
:root[data-style="synthwave"] .ud :focus-visible { outline: 2px solid var(--s-focus); }
:root[data-style="synthwave"] .ud-wall { --s-focus: var(--paintc); }
:root[data-style="synthwave"] .ud-menu { --s-focus: #1f3a8a; }

@media (max-width: 640px) {
  :root[data-style="synthwave"] .ud { --sw-floor: 8vh; }
}
