/* Y2K Aesthetic, for /worlds/pokemon/ and /pokedex/ (style: y2k).

   1999 Pokémania was Y2K: the Atomic Purple Game Boy Color, chrome logos,
   and a binder of holo cards under a desk lamp. So the pair is made of the
   toys: translucent purple plastic with a gloss across the top of each
   shell, bubble corners, chrome lettering, and holo foil. The foil is the
   game's own type colours (Fire, Electric, Grass, Ice, Water, Dragon), never
   the hot pink the Y2K revival leans on.

   The signature is the 1999 holo Charizard: every card on the world page is
   a holo card, and its foil moves with the pointer, with the phone's tilt,
   or (failing both) as the card scrolls past, the way a card catches the
   lamp as you turn a binder page. assets/js/styles/y2k.js only writes --hx
   and --hy (0 to 1) for the foil to read; without it, and under Reduce
   Motion, every foil holds still at its centre.

   One file for the pair, in three parts: the shared palette and materials;
   the world page, which is the binder (holo cards, and the eighteen types as
   Game Boy Color shells in their own colour); and the Pokédex, which keeps
   its red device and green screen and is finished in the same gloss, chrome
   and foil, so the two read as one 1999 toy line. The spec: docs/superpowers/
   specs/2026-10-11-page-styles-design.md, "Pokémon: Y2K Aesthetic" and
   section 9.

   Everything here is scoped to :root[data-style="y2k"]. Material rules use
   :where() for that scope, so they weigh what the rule they restyle weighs
   and each page's own hover, pressed and focus states still win. */

/* ── 1. shared: the plastic, the chrome, the foil ───────────────────────── */

/* where a card's foil sits when nothing is moving it; registered so the
   scroll can animate it */
@property --y2-hs { syntax: "<number>"; inherits: true; initial-value: 0.5; }

:root[data-style="y2k"] {
  --y2-night: #0f0a26;
  --y2-lilac: #b9a6ff;
  --y2-rim: rgba(200, 184, 255, .34);
  /* plastic that carries text is tinted densely enough that every word on
     it holds 4.5:1 by itself; --y2-clear is how see-through a coloured
     shell (a type tile) is */
  --y2-plastic: rgba(36, 22, 86, .84);
  --y2-plastic-hi: rgba(50, 32, 112, .88);
  --y2-clear: 84%;
  /* the gloss: the lamp caught across the top of a moulded shell, cut off
     sharp at its equator */
  --y2-gloss: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 46%, transparent 46.5%);
  /* on a panel of text the same light, without the sharp edge, which would
     run through a line of reading, and drawn as a shadow so the panel's fill
     stays one colour that its words are measured against */
  --y2-sheen: inset 0 30px 30px -28px rgba(255, 255, 255, .13);
  --y2-lit: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -12px 22px -14px rgba(8, 2, 30, .8);
  --y2-drop: 0 22px 40px -26px rgba(0, 0, 0, .9);
  /* chrome: sky, a hard horizon, ground. Silver for the shell's trim, and
     gold for the two titles, which are the Pokémon logo's yellow in chrome */
  --y2-chrome: linear-gradient(180deg, #fff 0%, #ecebff 22%, #aaa2dc 47%, #3c3377 50%, #8a80c4 57%, #dcd8ff 80%, #fff 100%);
  --y2-gold: linear-gradient(180deg, #fffbe6 0%, #ffeb94 24%, #f8d030 47%, #7a4e00 50%, #d9a21c 58%, #ffe680 82%, #fff6c8 100%);
  /* the foil: the types in spectrum order, a glare, and glints */
  --y2-holo: linear-gradient(115deg, #f08030, #f8d030 14%, #78c850 28%, #98d8d8 42%, #6890f0 56%, #7038f8 70%, #f08030 84%, #f8d030);
  --y2-glare: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .42) 47%, rgba(255, 255, 255, .1) 53%, transparent 62%);
  --y2-glint: radial-gradient(circle, rgba(255, 255, 255, .9) 0 .6px, transparent 1.3px);

  --s-surface: var(--y2-plastic);
  --s-surface-hi: var(--y2-plastic-hi);
  --s-edge: var(--y2-rim);
  --s-bw: 1px;
  --s-r: 22px;
  --s-r-sm: 999px;
  --s-shadow: var(--y2-lit), var(--y2-sheen), var(--y2-drop);
  --s-shadow-hi: var(--y2-lit), 0 28px 50px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(185, 166, 255, .45);
  --s-lift: -4px;
  /* the Pokédex's own face, so the pair share one font file */
  --s-display: "Rubik", var(--sans, system-ui, sans-serif);
  --s-display-w: 700;
  --s-display-ls: 0.01em;
  /* Electric yellow: Pikachu's, and the title's */
  --s-focus: #f8d030;

  /* the bars: purple plastic shells, the same gloss and lit edge */
  --s-bar: var(--y2-gloss), rgba(30, 18, 74, .74);
  --s-bar-edge: rgba(200, 184, 255, .3);
  --s-bar-blur: blur(20px) saturate(170%);
  --s-bar-shadow: var(--y2-lit), 0 16px 40px rgba(0, 0, 0, .55);

  /* no film grain, flowfield or lattice on moulded plastic: a grid drawn
     on the ground read as graph paper, not as a shell */
  --s-grain: 0;
  --s-field: 0;
  --hud-grid: transparent;
}
:root[data-style="y2k"] .tabbar { --s-accent: var(--a, #ffd43f); }
/* the parts the browser draws, in the same plastic */
:root[data-style="y2k"] { scrollbar-color: #6b4fd8 var(--y2-night); }
:root[data-style="y2k"] ::selection { background: #7b5cf0; color: #fff; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-style="y2k"] { --s-bar: var(--y2-gloss), rgb(26, 16, 64); }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-style="y2k"] {
    --y2-plastic: rgb(30, 18, 72); --y2-plastic-hi: rgb(42, 28, 96); --y2-clear: 100%;
    --s-bar: var(--y2-gloss), rgb(26, 16, 64); --s-bar-blur: none;
  }
}
@media (prefers-contrast: more) {
  :root[data-style="y2k"] { --y2-plastic: rgba(24, 14, 60, .95); --y2-rim: rgba(225, 215, 255, .62); }
}

/* The foil, shared by the world page's cards and the Pokédex's trainer
   card: twice the card's size, behind everything in it, carried by
   transform alone toward the corner the light comes from. */
:root[data-style="y2k"] :is(.fan-card, .px-trainer)::before {
  content: ""; position: absolute; inset: -50%; z-index: -2; pointer-events: none;
  background: var(--y2-glint) 0 0 / 11px 13px, var(--y2-glint) 5px 7px / 17px 11px, var(--y2-glare), var(--y2-holo);
  transform: translate(calc((var(--hx, var(--y2-hs)) - .5) * -24%), calc((var(--hy, var(--y2-hs)) - .5) * -18%));
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root[data-style="y2k"] :is(.fan-card, .px-trainer) { animation: y2-turn linear both; animation-timeline: view(); }
  }
}
@keyframes y2-turn { from { --y2-hs: 0; } to { --y2-hs: 1; } }

/* ── 2. the world page: a binder of holo cards under a desk lamp ─────────── */

/* deep indigo, with the ink lifted a step to hold on the lighter ground */
:root[data-style="y2k"] body[data-fan="pokemon"] {
  --bg: var(--y2-night); --bg-2: #171037;
  --ink-dim: #bdb6dc; --mute: #9e96c8; --line: #2f2662;
}
@media (prefers-contrast: more) {
  :root[data-style="y2k"] body[data-fan="pokemon"] { --ink: #f7f4ff; --ink-dim: #dad5f2; --mute: #c3bce4; --line: #5b50a2; }
}

/* The route at night under the lamp: its warm pool at the top left, purple
   hills, teal grass, and the Poké Ball in the corner as a clear purple toy
   with a chrome band. (The whole sky is capped at .36 by fanpages.css.) */
:root[data-style="y2k"] .pkm-sky {
  background:
    radial-gradient(55% 45% at 14% 0%, rgba(255, 210, 140, .42), transparent 70%),
    radial-gradient(90% 70% at 50% 0%, #2c1c70, #170e40 50%, #0b0721);
}
:root[data-style="y2k"] .pkh-far { fill: #2b1d6a; }
:root[data-style="y2k"] .pkh-near { fill: #1c124a; }
:root[data-style="y2k"] .pkg-blades { fill: #15394a; }
:root[data-style="y2k"] .pkm-sky::before {
  opacity: 1;
  background:
    radial-gradient(34% 26% at 32% 22%, rgba(255, 255, 255, .45), transparent 70%),
    linear-gradient(180deg, rgba(150, 112, 255, .45) 0 48%, rgba(230, 226, 255, .5) 48% 52%, rgba(110, 80, 220, .22) 52%);
  box-shadow: inset 0 0 0 3px rgba(225, 218, 255, .4), inset 0 -40px 70px rgba(10, 4, 40, .55);
}
:root[data-style="y2k"] .pkm-sky::after { border-color: rgba(230, 226, 255, .5); background: #2a1a66; }
/* the Poké Ball in the hero, as the toy: pearl white, an indigo band and
   a bigger shine */
:root[data-style="y2k"] :is(.pkb-white, .pkb-inner) { fill: #f1efff; }
:root[data-style="y2k"] :is(.pkb-band, .pkb-ring) { fill: #1b1248; }
:root[data-style="y2k"] .pkb-edge { stroke: #1b1248; }
:root[data-style="y2k"] .pkb-btn { fill: #fff; stroke: #aaa2dc; }
:root[data-style="y2k"] .pkb-shine { opacity: .5; }

/* The title is the logo: gold chrome with the logo's blue keyline (four
   hard shadows, so the keyline follows the chrome), the moulded depth
   under it and the lamp's violet bounce. Repeated per line, so a wrapped
   title gets a horizon on each line. */
:root[data-style="y2k"] body[data-fan="pokemon"] .fan-title {
  font-family: var(--s-display); font-weight: 700; letter-spacing: 0.01em;
  background: var(--y2-gold) 0 0 / 100% 0.92em; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-stroke: 0;
  filter: drop-shadow(2px 0 0 #2b3f9b) drop-shadow(-2px 0 0 #2b3f9b) drop-shadow(0 2px 0 #2b3f9b) drop-shadow(0 -2px 0 #2b3f9b)
    drop-shadow(0 5px 0 #1a1458) drop-shadow(0 14px 22px rgba(112, 56, 248, .5));
}
/* section heads in silver chrome, the note beside them in lilac mono, and
   the rule after them a strip of foil */
:root[data-style="y2k"] .subsec--fan {
  font-family: var(--s-display); font-weight: 700; font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  letter-spacing: 0.01em; text-transform: none;
  background: var(--y2-chrome) 0 0 / 100% 1.2em; -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-style="y2k"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--y2-lilac);
}
:root[data-style="y2k"] .subsec--fan::after { height: 2px; border-radius: 2px; background: var(--y2-holo); opacity: .5; }
/* the picker's heading is a section head too, in the same silver chrome;
   it was Inter and Inter stays Inter */
:root[data-style="y2k"] .fp-head :is(h2, h3) {
  font-family: var(--s-display);
  font-weight: 700; font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  letter-spacing: 0.01em; text-transform: none;
  background: var(--y2-chrome) 0 0 / 100% 1.2em; -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* headings that were Space Grotesk take Rubik; Inter stays Inter */
:root[data-style="y2k"] body[data-fan="pokemon"] :is(.fan-card :is(h2, h3, h4, h5), .fan-rankhead b, .fan-tiletext b, .fan-what b, .fan-land-head h3, .fan-shot figcaption b, .fan-linkhead b, .wsib-h b, .been-t, .fan-art-body q, .dex-name) {
  font-family: var(--s-display); font-weight: 600; letter-spacing: 0;
}
:root[data-style="y2k"] body[data-fan="pokemon"] .fan-card :is(h2, h3, h4, h5) { font-weight: 700; font-size: 1.2rem; }

/* ── the signature: every card is a holo card ────────────────────────────
   The card is its own stacking context with three layers: the foil
   (::before, in part 1), a sheet of the card's own colour over it (::after)
   and the words. The sheet stops 4px short of the edge, so the foil shows
   bare as the frame; across the top it is thinner, so the foil shines
   through behind the name the way a holo card's art box does (thin enough
   to shine, dense enough that the name, set large, holds 3:1 on the
   brightest of the foil); from the subtitle down, where the reading is, it
   is all but solid. */
:where(:root[data-style="y2k"]) .fan-card {
  --y2-face: color-mix(in srgb, var(--a, #ffd43f) 11%, #120b2e);
  isolation: isolate; overflow: hidden;
  border-color: transparent; background: var(--y2-face);
  box-shadow: var(--s-shadow);
}
:root[data-style="y2k"] .fan-card::after {
  content: ""; position: absolute; inset: 4px; z-index: -1; pointer-events: none;
  border-radius: calc(var(--s-r) - 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 3.4rem),
    linear-gradient(180deg, color-mix(in srgb, var(--y2-face) 60%, transparent) 1.2rem, color-mix(in srgb, var(--y2-face) 70%, transparent) 2.2rem,
      color-mix(in srgb, var(--y2-face) 90%, transparent) 2.8rem, color-mix(in srgb, var(--y2-face) 95%, transparent) 5rem);
}
/* an item's own colour (a card's tag and subtitle, a tile's caption, a
   Listen link or Play button) lifted a quarter toward white, still its
   colour and readable on the plastic; :where keeps the shared rules'
   weight, so hovering and playing still win */
:root[data-style="y2k"] :is(.fan-tiletext i, .fan-card .fan-sub) { color: color-mix(in srgb, var(--a) 72%, #fff); opacity: 1; }
:where(:root[data-style="y2k"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: color-mix(in srgb, var(--a) 72%, #fff); }
:where(:root[data-style="y2k"]) .fan-tag {
  background: rgba(14, 8, 38, .62); border-color: color-mix(in srgb, var(--a) 60%, #fff 10%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* The eighteen types, and every other tile: the Game Boy Color's
   translucent shells (Atomic Purple, Berry, Kiwi, Dandelion, Teal), each
   tile moulded in its own colour, with the same gloss */
:where(:root[data-style="y2k"]) .fan-tile {
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--a, #ffd43f) 42%, rgba(255, 255, 255, .16));
  background-color: color-mix(in srgb, color-mix(in srgb, var(--a, #ffd43f) 24%, #140c34) var(--y2-clear), transparent);
  box-shadow: var(--y2-lit), var(--y2-sheen), 0 14px 26px -20px rgba(0, 0, 0, .9);
}
@media (hover: hover) {
  :where(:root[data-style="y2k"]) .fan-tile:hover {
    background-color: color-mix(in srgb, color-mix(in srgb, var(--a, #ffd43f) 32%, #140c34) var(--y2-clear), transparent);
  }
}
/* the swatch, and the timeline's ticks: a glossy bead, like a power light */
:root[data-style="y2k"] :is(.fan-swatch, .fan-tick::before) {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--a, #ffd43f) 42%, color-mix(in srgb, var(--a, #ffd43f) 55%, #000));
  box-shadow: 0 0 10px -2px var(--a, #ffd43f);
}
:root[data-style="y2k"] .fan-swatch { width: 14px; height: 14px; margin-top: 2px; }
:root[data-style="y2k"] .fan-time::before { width: 2px; background: var(--y2-holo); opacity: .45; }

/* the rest of the panels: purple plastic, glossy, round */
:where(:root[data-style="y2k"]) :is(.fan-rankrow, .fan-land, .fan-linkcard, .fan-shot, .fan-intro-when, .fp-bar) {
  border: 1px solid var(--y2-rim); border-radius: var(--s-r);
  background: var(--y2-plastic);
  box-shadow: var(--s-shadow);
}
:where(:root[data-style="y2k"]) .fp-bar { border-radius: 26px; padding: 9px; }
/* ranks in chrome numerals */
:root[data-style="y2k"] .fan-num {
  font-family: var(--s-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; opacity: 1;
  background: var(--y2-chrome) 0 0 / 100% 1.1em; -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* buttons and pills: glossy bubbles of the same plastic. The door to the
   Pokédex is moulded in the Pokédex's red */
:where(:root[data-style="y2k"]) :is(.fan-link, .wsib-i a, .fp-go, .fan-chips > *) {
  border-radius: 999px; border-color: rgba(200, 184, 255, .5);
  background: var(--y2-gloss), rgba(70, 44, 150, .5);
  box-shadow: var(--y2-lit), 0 8px 18px -12px rgba(0, 0, 0, .8);
}
:where(:root[data-style="y2k"]) .fan-iface {
  border-radius: 999px; border-color: rgba(255, 130, 140, .6);
  background: var(--y2-gloss), linear-gradient(180deg, rgba(214, 31, 53, .55), rgba(120, 12, 34, .5));
  box-shadow: var(--y2-lit), 0 12px 24px -14px rgba(0, 0, 0, .9);
}
@media (hover: hover) {
  :where(:root[data-style="y2k"]) .fan-iface:hover { background: var(--y2-gloss), linear-gradient(180deg, rgba(232, 52, 74, .7), rgba(140, 16, 40, .62)); }
  :where(:root[data-style="y2k"]) :is(.fan-link, .wsib-i a, .fp-go):hover { background: var(--y2-gloss), rgba(98, 66, 196, .62); }
}
:where(:root[data-style="y2k"]) .fp-slot {
  border-radius: 16px; border-color: rgba(200, 184, 255, .28);
  background: var(--y2-gloss), rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -6px 10px -6px rgba(0, 0, 0, .6);
}

/* The window onto the Pokédex sits in a translucent purple shell, a Game
   Boy Color round a screen, and the Pokédex on this page takes the device's
   own finish: a glossier red, a chrome rim on the lens and the screen */
:where(:root[data-style="y2k"]) .fan-peek {
  border: 6px solid rgba(123, 92, 240, .5); border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(225, 215, 255, .3), var(--y2-drop);
}
:root[data-style="y2k"] .dex {
  border-radius: 20px 20px 26px 26px;
  background: var(--y2-gloss), linear-gradient(180deg, #e0303a, #a5241d 70%, #7f1a14);
  box-shadow: 0 26px 54px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -8px 14px rgba(0, 0, 0, .35);
}
:root[data-style="y2k"] .dex-lens { box-shadow: 0 0 0 4px #e6e2ff, 0 0 0 6px #4c4383, inset 0 0 10px rgba(0, 0, 0, .35); }
:root[data-style="y2k"] .dex-screen { border-color: #d6d1f2; border-radius: 12px; }

/* ── 3. the Pokédex: the same toy line, in red ──────────────────────────────
   It keeps its red device, its green screen and its paper text boxes, and is
   finished like the world page: the night goes indigo under the same lamp,
   the red plastic gets the gloss and shows the board through it, the trim
   turns chrome, the trainer card carries the foil, and the text boxes sit
   in Atomic Purple frames. */
:where(:root[data-style="y2k"]) .px { --night: var(--y2-night); --night-2: #1a1140; }
:where(:root[data-style="y2k"]) .px-glow {
  background:
    radial-gradient(45% 35% at 12% 0%, rgba(255, 210, 140, .14), transparent 70%),
    radial-gradient(50% 40% at 50% 34%, rgba(214, 31, 53, .2), transparent 70%),
    radial-gradient(50% 40% at 90% 75%, rgba(123, 92, 240, .2), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55));
}
:where(:root[data-style="y2k"]) .px-dots { background-image: radial-gradient(rgba(185, 166, 255, .1) 1px, transparent 1.4px); }
/* the header wraps to three lines on a phone, so it takes the soft sheen,
   not the sharp gloss that would cut through a line of it */
:where(:root[data-style="y2k"]) .px-top {
  background: rgba(30, 18, 74, .55); box-shadow: var(--y2-sheen);
  border-bottom-color: rgba(200, 184, 255, .3);
}
:root[data-style="y2k"] .px-title {
  background: var(--y2-gold) 0 0 / 100% 1.15em; -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none;
  filter: drop-shadow(3px 0 0 #2a5bc8) drop-shadow(-3px 0 0 #2a5bc8) drop-shadow(0 3px 0 #2a5bc8) drop-shadow(0 -3px 0 #2a5bc8)
    drop-shadow(0 4px 0 #142c66) drop-shadow(0 12px 18px rgba(112, 56, 248, .45));
}

/* red plastic, see-through like the Berry Game Boy Color: the gloss across
   the top, the lamp's highlight, and, low in each half, the board inside
   showing through the shell (its pads and traces, fading up into the red) */
:where(:root[data-style="y2k"]) :is(.px-left, .px-right) {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 22%, transparent 22.3%),
    radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(90deg, #e02a40, var(--red) 60%, #b5182b);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -18px 30px -18px rgba(60, 0, 12, .7);
}
:root[data-style="y2k"] :is(.px-left, .px-right)::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 34%; z-index: -1;
  border-radius: 14px; pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 214, 170, .3) 0 1.5px, transparent 2px) 0 0 / 24px 16px,
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 200, 150, .12) 7px 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 200, 150, .08) 11px 12px, transparent 12px 24px),
    rgba(70, 0, 18, .28);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}
/* chrome trim: the lens rim, the screen's bezel, the hinge, the plates */
:where(:root[data-style="y2k"]) .px-lens { background: conic-gradient(from 200deg, #fff, #a9a2d8, #f4f2ff, #5b5296, #e4e0ff, #fff); }
:where(:root[data-style="y2k"]) .px-bezel { background: linear-gradient(180deg, #f7f6ff, #e1def2 46%, #c9c5e0 46.5%, #dedbf0); }
:where(:root[data-style="y2k"]) .px-hinge { background: linear-gradient(90deg, #3c3377, #aaa2dc 30%, #fff 50%, #aaa2dc 70%, #3c3377); }
@media (max-width: 899.98px) {
  :where(:root[data-style="y2k"]) .px-hinge { background: linear-gradient(180deg, #3c3377, #aaa2dc 30%, #fff 50%, #aaa2dc 70%, #3c3377); }
}
:where(:root[data-style="y2k"]) .px-plate { border-radius: 8px; background: linear-gradient(180deg, #fff, #e6e3f6 48%, #d2cee8 49%, #ecebf8); }
/* glossy candy buttons: A in Atomic Purple, B keeps its blue */
:where(:root[data-style="y2k"]) .px-btn-a b { background: radial-gradient(circle at 36% 26%, #f1ecff 0 9%, #8f72f2 30%, #3d2496 76%); }
:where(:root[data-style="y2k"]) .px-btn-b b { background: radial-gradient(circle at 36% 26%, #eef7ff 0 9%, #6fb2ff 32%, #1f4fa8 76%); }
:where(:root[data-style="y2k"]) .px-ty { border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .25); }

/* the list's screen in the night's indigo; the chosen entry lit by a
   strip of foil */
:where(:root[data-style="y2k"]) .px-screen { border-radius: 14px; background: linear-gradient(180deg, #1a1240, #100a2a); }
:root[data-style="y2k"] .px-row.is-sel {
  background: linear-gradient(100deg, rgba(240, 128, 48, .16), rgba(248, 208, 48, .13), rgba(120, 200, 80, .13), rgba(104, 144, 240, .18), rgba(112, 56, 248, .22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
:where(:root[data-style="y2k"]) .px-row { border-radius: 12px; }
@media (hover: hover) {
  :where(:root[data-style="y2k"]) .px-row:hover { background: rgba(185, 166, 255, .12); }
}

/* The game's text boxes keep their paper, set in Atomic Purple frames:
   glossy translucent plastic for the outer rule, a lilac inner one */
:where(:root[data-style="y2k"]) :is(.px-box, .px-save-btn, .px-done-box) {
  border-color: transparent; border-radius: 24px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--y2-gloss) border-box,
    linear-gradient(180deg, #a48aff, #5a3cc4 60%, #3d2496) border-box;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px rgba(107, 79, 216, .4), 0 18px 34px -16px rgba(0, 0, 0, .7);
}
/* the save button is a control, so its rim must read against the night
   (3:1): the same lilac plastic, dense enough over the gloss to be seen */
:where(:root[data-style="y2k"]) .px-save-btn { border-radius: 999px; border-color: rgba(164, 138, 255, .78); }
:where(:root[data-style="y2k"]) .px-starts li { border-radius: 16px; border-color: rgba(107, 79, 216, .22); }
:where(:root[data-style="y2k"]) .px-cart { border-radius: 14px; border-color: rgba(107, 79, 216, .22); }
/* each cartridge clear plastic tinted in its world's colour, the way the
   Gold, Silver and Crystal carts were */
:where(:root[data-style="y2k"]) .px-cart-shell {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 2px, transparent 2px 5px) 6px 3px / 26px 4px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 46%),
    color-mix(in srgb, var(--k) 42%, rgba(205, 198, 245, .6));
}

/* the trainer card is a holo card: the same foil (part 1) under a wash of
   its paper, so it shimmers without the words losing their ground */
:where(:root[data-style="y2k"]) .px-trainer { position: relative; isolation: isolate; overflow: hidden; }
:root[data-style="y2k"] .px-trainer::before { opacity: .22; }
/* the badge case in violet felt, each recess ringed in chrome */
:where(:root[data-style="y2k"]) .px-badges { border-radius: 18px; background: #23154e; }
:where(:root[data-style="y2k"]) .px-badges svg { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 2px #b5aee0; }

/* the world button, in Atomic Purple plastic */
:where(:root[data-style="y2k"] .px) .iw {
  --iw-a: #b9a6ff;
  background: var(--y2-gloss), linear-gradient(180deg, rgba(123, 92, 240, .42), rgba(60, 36, 150, .36));
  border-color: rgba(200, 184, 255, .6);
  box-shadow: var(--y2-lit), 0 10px 22px -12px rgba(0, 0, 0, .8);
}

/* Every ring is the world page's Electric yellow, except inside the paper
   boxes, where it turns the frames' deep purple to be seen on the paper */
:root[data-style="y2k"] :is(.px-box, .px-done-box) { --s-focus: #4a2fc0; }
:root[data-style="y2k"] .px :focus-visible { outline-color: var(--s-focus); }
