/* Claymorphism, for /worlds/ninjago/ and /monastery/ (style: claymorphism).

   Ninjago is a toy line first, so the pair is the toy shelf at night: every
   surface is moulded plastic on a deep elemental blue that is never black.
   Claymorphism is soft and Ninjago is hard ABS, so the clay is pushed toward
   the brick: more gloss than putty (a lit rim along the top, a darker
   moulding at the foot, a soft shadow on the shelf), a chunky outline, and a
   row of studs on every brick's top. Reading bricks are earth-black plastic
   in the Ninjago black and gold; the six elements are candy fills (fire red,
   lightning blue, earth black, ice white, water silver, energy green), and
   the signature is theirs: press one and it squashes, then springs back.
   Under Reduce Motion it keeps its shape and only sinks.

   One file for the pair, in three parts: what both pages share (the blue,
   the plastic, the studs, the spring); the world page, the box art; and the
   Monastery, which keeps its dojo (the courtyard, the course, the scrolls,
   the Realm Crystal) and is moulded from the same plastic on the same blue,
   so the two read as one box set. The spec: docs/superpowers/specs/2026-10-
   11-page-styles-design.md, "Ninjago: Claymorphism" and section 9.

   Everything here is scoped to :root[data-style="claymorphism"], so this
   file does nothing on a page that is not wearing it. Material rules use
   :where() for that scope where the page's own hover and pressed states
   must still win. */

/* ── 1. shared: the blue, the plastic, the studs, the spring ────────────── */
:root[data-style="claymorphism"] {
  /* the shelf: lightning blue at night, deep enough for every word on it */
  --cl-ground: #0c1d5e;
  --cl-deep: #081443;
  /* earth-black ABS, the plastic every reading brick is moulded in */
  --cl-abs: #0d1333;
  --cl-abs-lo: #0a0f2a;
  --cl-rim: #03061a;
  --cl-gold: #e0b040;              /* the Monastery's own gold, the pair's */
  --cl-gold-lo: #b88a2e;
  --cl-red: #c8231a;
  /* gloss: the light on a moulded top, strong for a hand's width, then gone */
  --cl-gloss: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 26px, rgba(255, 255, 255, 0) 54px);
  --cl-candy: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .1) 30%, rgba(255, 255, 255, 0) 55%);
  --cl-lit: inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -4px 0 rgba(0, 0, 0, .35);
  --cl-drop: 0 18px 26px -14px rgba(2, 5, 24, .9), 0 4px 8px -3px rgba(2, 5, 24, .6);
  --cl-spring: cubic-bezier(.3, 1.6, .5, 1);

  --bg: var(--cl-ground);
  --bg-2: var(--cl-deep);
  --mute: #989bb0;                 /* #85838c falls under 4.5:1 on the blue */
  --line: #26316b;

  --s-surface: var(--cl-abs);
  --s-surface-hi: #121a42;
  --s-edge: var(--cl-rim);
  --s-bw: 2px;
  --s-r: 14px;
  --s-r-sm: 999px;
  --s-shadow: var(--cl-lit), var(--cl-drop);
  --s-shadow-hi: var(--cl-lit), 0 26px 34px -14px rgba(2, 5, 24, .95), 0 6px 10px -3px rgba(2, 5, 24, .6);
  --s-lift: -4px;
  /* the Monastery's brush capitals; literal fallbacks, since the Monastery
     defines no --serif */
  --s-display: "Kaisei Tokumin", Georgia, serif;
  --s-display-w: 800;
  --s-display-ls: 0.01em;
  /* LEGO's bright yellow: one ring for both pages, clear of every fill */
  --s-focus: #ffd23f;

  /* the bars: opaque blue plastic with a lit rim, no glass */
  --s-bar: var(--cl-gloss), #0a1546;
  --s-bar-edge: var(--cl-rim);
  --s-bar-blur: none;
  --s-bar-shadow: inset 0 2px 0 rgba(255, 255, 255, .16), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 16px 28px -12px rgba(2, 5, 24, .9);

  /* plastic is smooth: no film grain, no circuit field, no scanlines; the
     lattice stays as a baseplate's grid, a stud apart */
  --s-grain: 0;
  --s-field: 0;
  --s-vignette: .55;
  --hud-cell: 28px;
  --hud-grid: rgba(120, 150, 255, .035);
  --hud-scan: transparent;
  --hud-sweep: transparent;
}
@supports (transition-timing-function: linear(0, 1)) {
  /* a real spring: over, back, over a little, still */
  :root[data-style="claymorphism"] {
    --cl-spring: linear(0, .5 8%, .96 17%, 1.13 26%, 1.12 33%, 1.03 45%, .98 57%, 1.005 72%, 1);
  }
}
/* Increase Contrast: a deeper blue and whiter ink, past the site's own boost */
@media (prefers-contrast: more) {
  :root[data-style="claymorphism"] {
    --cl-ground: #06103a; --cl-deep: #040b2a;
    --ink: #fff; --ink-dim: #cfd0dc; --mute: #b0b3c8; --line: #46508a;
  }
}

/* The studs. Every brick wears a row of them along its top, drawn as a
   pseudo-element standing on the outline: each stud a cap (the round top,
   catching the light) on a short body lit at the left and shaded at the
   right, spaced so only whole studs show. --st is the plastic's colour. */
:root[data-style="claymorphism"] :is(.fan-card, .fan-linkcard, .fan-quote, .fan-intro-when, .fan-iface, .njg, .crest)::before,
:root[data-style="claymorphism"] .fan-land-bar {
  --st-hi: color-mix(in srgb, var(--st) 58%, #fff);
  --st-lo: color-mix(in srgb, var(--st) 62%, #000);
  background:
    radial-gradient(7px 2.6px at 12px 3px, var(--st-hi) 90%, transparent 100%) 0 0 / 24px 6px space no-repeat,
    linear-gradient(90deg, transparent 5px, var(--st-hi) 5px 7px, var(--st) 7px 15px, var(--st-lo) 15px 19px, transparent 19px) 0 3px / 24px 7px space no-repeat;
}
:root[data-style="claymorphism"] :is(.fan-card, .fan-linkcard, .fan-quote, .fan-intro-when, .fan-iface, .njg, .crest)::before,
:root[data-style="claymorphism"] .fan-land-bar {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset: -12px 14px auto; height: 10px; opacity: 1;
  border-radius: 0; transform: none;
}

/* ── 2. the world page: the box art ───────────────────────────────────── */

/* the world's gold leads the tab bar; every item keeps its own --a */
:root[data-style="claymorphism"] .tabbar { --s-accent: #ffd23f; }
:root[data-style="claymorphism"] .tabbar a.is-current,
:root[data-style="claymorphism"] .tabbar a.is-going {
  background: rgba(0, 0, 0, .3);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .12);
}

/* The shelf at night. The sky (capped at .36 by fanpages.css) keeps its
   peaks, the Monastery on the highest one and the lightning behind it, all
   moulded in plastic now: the ranges in two blues, the temple a dark block
   trimmed in gold. The diagonal gold strokes become a baseplate's studs. */
:root[data-style="claymorphism"] .nj-sky {
  background:
    radial-gradient(55% 45% at 80% 0%, #2148c0 0%, transparent 70%),
    linear-gradient(180deg, #102671 0%, var(--cl-ground) 45%, var(--cl-deep) 100%);
}
:root[data-style="claymorphism"] .nj-sky::before {
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(160, 190, 255, .32) 0 3px, rgba(4, 10, 40, .6) 3.6px 6px, transparent 6.6px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
}
:root[data-style="claymorphism"] .njp-far { fill: #1c3c9e; stroke: #3e63d0; stroke-width: 3; }
:root[data-style="claymorphism"] .njp-near { fill: #0f2779; stroke: #2a4cb4; stroke-width: 3; }
/* the Monastery on its peak is a silhouette in the near range's blue, its
   windows dark: drawn in gold line it ran through the intro and the
   Spinjitzu note in front of it */
:root[data-style="claymorphism"] .njp-monastery { fill: #0f2779; stroke: #0f2779; stroke-width: 3; }
:root[data-style="claymorphism"] .njp-lit { fill: #0f2779; filter: none; }

/* reading bricks: earth-black plastic with the Ninjago gold on top */
:where(:root[data-style="claymorphism"]) :is(.fan-card, .fan-linkcard, .fan-land, .fan-quote, .fan-intro-when, .fan-iface, .njg) {
  position: relative; overflow: visible;
  --st: color-mix(in srgb, var(--a, var(--cl-gold)) 82%, #000);
  background: var(--cl-gloss), linear-gradient(180deg, var(--cl-abs), var(--cl-abs-lo));
  border: 2px solid var(--cl-rim); border-radius: var(--s-r);
  box-shadow: var(--cl-lit), var(--cl-drop);
}
/* a land's colour bar along its top becomes its row of studs */
:root[data-style="claymorphism"] .fan-land-bar { --st: color-mix(in srgb, var(--a, var(--cl-gold)) 85%, #000); }
/* the quote and the "first watched" note trade their side spine for the
   whole outline above; the speaker's colour moves up into the studs, and the
   note steps down to make room for them */
:where(:root[data-style="claymorphism"]) .fan-intro-when { margin-top: 1.2rem; }
/* the door to the Monastery: the same brick, studded in its gold, with
   room above it for the studs under the title */
:where(:root[data-style="claymorphism"]) .fan-ifaces { margin-top: 2.1rem; }
:where(:root[data-style="claymorphism"]) .fan-iface { --st: var(--cl-gold-lo); border-color: var(--cl-gold-lo); }
:where(:root[data-style="claymorphism"]) .fan-iface-a {
  border: 0; color: #2a1806;
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .6) 0 3px, transparent 7px), var(--cl-gold);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 6px rgba(2, 5, 24, .6);
}
/* the peek is a window onto the Monastery, so it is the Monastery's plastic */
:where(:root[data-style="claymorphism"]) .fan-peek {
  background: var(--cl-gloss), var(--cl-abs);
  border: 2px solid var(--cl-gold-lo);
  box-shadow: var(--cl-lit), var(--cl-drop);
}
@media (hover: hover) {
  :where(:root[data-style="claymorphism"]) :is(.fan-quote, .fan-land, .njg):hover {
    transform: translateY(-4px); box-shadow: var(--s-shadow-hi);
    background: var(--cl-gloss), linear-gradient(180deg, #121a42, var(--cl-abs));
  }
}

/* smooth tiles: LEGO's tiles have no studs, so neither do these */
:where(:root[data-style="claymorphism"]) :is(.fan-tile, .fan-shot, .been a, .wsib-i a, .fp-bar) {
  background: var(--cl-gloss), var(--cl-abs);
  border: 2px solid var(--cl-rim); border-radius: 14px;
  box-shadow: var(--cl-lit), var(--cl-drop);
}
:where(:root[data-style="claymorphism"]) .fan-shot figcaption { border-top: 2px solid var(--cl-rim); }
:where(:root[data-style="claymorphism"]) .wsib { border-top: 2px solid var(--line); }
/* a tile's colour is a round 1x1 stud in that colour, glossy, no glow */
:root[data-style="claymorphism"] .fan-swatch {
  width: 14px; height: 14px; margin-top: 2px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7) 0 2px, transparent 4px), var(--a, var(--cl-gold));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3), 0 2px 3px rgba(2, 5, 24, .7);
}

/* the shared controls: gold plastic keys, outlined in a deeper gold */
:where(:root[data-style="claymorphism"]) .fan-link,
:where(:root[data-style="claymorphism"]) .fp-go {
  color: #1c1204; border: 2px solid var(--cl-gold-lo); border-radius: 999px;
  background: var(--cl-candy), var(--cl-gold);
  box-shadow: inset 0 -3px 0 rgba(120, 70, 0, .45), 0 8px 14px -8px rgba(2, 5, 24, .9);
}
@media (hover: hover) {
  :root[data-style="claymorphism"] :is(.fan-link, .fp-go):hover {
    color: #1c1204; border-color: #ffe28a;
    background: var(--cl-candy), #f0c45a;
  }
}
:where(:root[data-style="claymorphism"]) :is(.fan-sortbtn, .fan-viewbtn) {
  border: 1px solid #5664b8; background: var(--cl-gloss), var(--cl-abs);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
:root[data-style="claymorphism"] :is(.fan-sortbtn, .fan-viewbtn).is-on {
  color: #1c1204; border-color: var(--cl-gold-lo);
  background: var(--cl-candy), var(--cl-gold);
}
/* the element picker's slots: 1x1 bricks, each icon in its element */
:root[data-style="claymorphism"] .fp-bar { padding: 8px; }
:where(:root[data-style="claymorphism"]) .fp-slot {
  border-radius: 12px; border-color: var(--cl-rim);
  background: var(--cl-gloss), #141c48;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -3px 0 rgba(0, 0, 0, .4), 0 5px 8px -3px rgba(2, 5, 24, .8);
}
:root[data-style="claymorphism"] .fp-slot.is-sel {
  border-color: var(--c);
  background: var(--cl-gloss), color-mix(in srgb, var(--c) 24%, #141c48);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .45), 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent);
}
:root[data-style="claymorphism"] .fp-slot u { color: rgba(255, 255, 255, .6); }

/* The six elements as candy bricks. Each fill is its element's own colour
   (--h1), and the words on it take whichever ink holds 4.5:1 on that fill.
   Fire, lightning and earth come deeper than the page draws them, so white
   reads on them; earth is the black the show gives Cole. */
:root[data-style="claymorphism"] .crest {
  --fill: var(--h1); --ink-on: #10131c; --chip: rgba(255, 255, 255, .3);
  --st: var(--fill);
  overflow: visible; color: var(--ink-on);
  background: var(--cl-candy), var(--fill);
  border: 2px solid color-mix(in srgb, var(--fill) 55%, #000); border-radius: 18px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 color-mix(in srgb, var(--fill) 70%, #000), var(--cl-drop);
}
:root[data-style="claymorphism"] .crest[style*="#e04a3a"] { --fill: var(--cl-red); --ink-on: #fff; --chip: rgba(0, 0, 0, .2); }
:root[data-style="claymorphism"] .crest[style*="#4f9fd0"] { --fill: #1a64c8; --ink-on: #fff; --chip: rgba(0, 0, 0, .2); }
:root[data-style="claymorphism"] .crest[style*="#8f8f9a"] { --fill: #1c1f2b; --ink-on: #fff; --chip: rgba(255, 255, 255, .1); --st: #3a3f52; }
:root[data-style="claymorphism"] .crest :is(h2, h3, h4, h5, .crest-sub, p) { color: var(--ink-on); text-shadow: none; }
:root[data-style="claymorphism"] .crest-sigil { color: var(--ink-on); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
:root[data-style="claymorphism"] .crest-tags span {
  color: var(--ink-on); background: var(--chip);
  border: 1px solid color-mix(in srgb, var(--ink-on) 45%, transparent);
}
@media (hover: hover) {
  :root[data-style="claymorphism"] .crest:hover {
    border-color: color-mix(in srgb, var(--fill) 55%, #000);
    background: var(--cl-candy), var(--fill);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -5px 0 color-mix(in srgb, var(--fill) 70%, #000), var(--s-shadow-hi);
  }
  :root[data-style="claymorphism"] .crest:hover .crest-sigil { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); }
}

/* The four Golden Weapons: black bricks with gold studs, outlined in their
   element; the weapon is drawn in the same moulded gold */
:root[data-style="claymorphism"] .njg {
  --st: var(--cl-gold);
  border-color: color-mix(in srgb, var(--g) 60%, var(--cl-rim));
}
:root[data-style="claymorphism"] .njg-metal { stroke: #7a4c10; }
:root[data-style="claymorphism"] .njg-aura { opacity: .3; }

/* The signature. Pressed, an elemental brick squashes into the shelf (wider,
   shorter, its foot held where it stands) and springs back past its own
   shape when it is let go. Individual scale and translate, so it composes
   with the card tilt and the hover lift; transform and opacity work only.
   With Reduce Motion none of this exists: the brick only sinks. */
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="claymorphism"] .crest {
    transition: transform .45s var(--ease), box-shadow .45s, border-color .45s, background .45s,
      scale .65s var(--cl-spring), translate .65s var(--cl-spring);
  }
  :root[data-style="claymorphism"] :is(.njg, .fp-slot) {
    transition: transform .45s var(--ease), border-color .45s, box-shadow .45s,
      scale .65s var(--cl-spring), translate .65s var(--cl-spring);
  }
  :root[data-style="claymorphism"] :is(.crest, .njg, .fp-slot):active { scale: 1.06 .9; translate: 0 5%; }
}
:root[data-style="claymorphism"] :is(.crest, .njg):active {
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 6px 10px -6px rgba(2, 5, 24, .9);
}

/* Spinjitzu: the tornado's rings are chunkier plastic hoops, and its core a
   round gold plate with its name pressed into it */
:root[data-style="claymorphism"] .nj-tornado i { border-width: 5px; }
:root[data-style="claymorphism"] .nj-core {
  background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .7) 0 6%, transparent 22%), radial-gradient(circle, #f0c45a 0 60%, var(--cl-gold) 61% 100%);
  border: 2px solid var(--cl-gold-lo);
  box-shadow: inset 0 -5px 0 rgba(120, 70, 0, .4), 0 12px 22px -8px rgba(2, 5, 24, .9);
}
:root[data-style="claymorphism"] .nj-core b { font-family: var(--s-display); font-style: normal; color: #2a1806; }

/* the timeline: a gold rail with a stud at every arc */
:root[data-style="claymorphism"] .fan-time::before { width: 4px; left: 1.5px; border-radius: 2px; opacity: .7; }
:root[data-style="claymorphism"] .fan-tick::before {
  width: 13px; height: 13px; left: calc(-1.4rem - 3px); top: 1rem;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7) 0 2px, transparent 4px), var(--a, var(--cl-gold));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3), 0 2px 3px rgba(2, 5, 24, .8);
}

/* Headings in the Monastery's brush capitals, which ties this page to it;
   reading text stays Inter and labels stay JetBrains Mono. The title is
   the box-art logo: gold plastic letters with their own depth moulded
   under them, on the slant the logo has. */
:root[data-style="claymorphism"] .fan-title {
  font-family: var(--s-display); font-weight: 800; font-style: normal;
  letter-spacing: 0.02em; text-transform: uppercase;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #f6c94a;
  text-shadow: 0 -1px 0 #fff2c2, 0 2px 0 #c98a1c, 0 4px 0 #a86c10, 0 6px 0 #7e4c08, 0 7px 0 #5a0e0a, 0 14px 18px rgba(2, 5, 24, .8);
}
:root[data-style="claymorphism"] :is(.fan-card :is(h2, h3, h4, h5), .crest :is(h2, h3, h4, h5), .njg :is(h2, h3, h4, h5),
  .nj-legend :is(h2, h3, h4, h5), .fan-tiletext b, .fan-land-head :is(h2, h3, h4, h5), .fan-linkhead b,
  .fan-what b, .fan-shot figcaption b, .wsib-h b, .fan-art-body q) {
  font-family: var(--s-display); font-weight: 700; font-style: normal; letter-spacing: 0.01em;
}
:root[data-style="claymorphism"] .crest :is(h2, h3, h4, h5) { font-weight: 800; font-size: 1.35rem; }
:root[data-style="claymorphism"] .fan-art-body q { font-weight: 800; color: #f6c94a; }
:root[data-style="claymorphism"] .nj-legend :is(h2, h3, h4, h5) { font-weight: 800; font-size: 1.4rem; letter-spacing: 0.04em; }

/* section heads: the name in the brush capitals, in gold, the note beside
   it in small mono, the rule a plastic rail. The element picker's heading
   (fan-play.js) is lettered the same, in the heads' gold. */
:root[data-style="claymorphism"] :is(.subsec--fan, .fp-head :is(h2, h3)) {
  font-family: var(--s-display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: 0.02em; text-transform: none;
}
:root[data-style="claymorphism"] .fp-head :is(h2, h3) { color: var(--s-accent, var(--a, var(--gold))); }
:root[data-style="claymorphism"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
:root[data-style="claymorphism"] .subsec--fan::after {
  height: 4px; border-radius: 2px;
  background: linear-gradient(180deg, #33449a, #1a2768);
}

/* An item's own colour (a caption, a subtitle, a tag, a Listen link, a Play
   button) sits on black plastic now; each is lifted a quarter toward white
   so the darker ones (Dareth's brown) read. :where keeps the shared rules'
   weight, so hovering and playing still win. */
:root[data-style="claymorphism"] :is(.fan-tiletext i, .fan-card .fan-sub) { color: color-mix(in srgb, var(--a) 75%, #fff); opacity: 1; }
:where(:root[data-style="claymorphism"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: color-mix(in srgb, var(--a) 75%, #fff); }

/* ── 3. the Monastery: the dojo, moulded in the same plastic ─────────────
   Everything it does stays: the tornado, the weapons on their ellipse, the
   element keys, the course, the scrolls, the Realm Crystal and the call.
   Its faces stay its own. The night under it turns the same blue as the
   shelf, the ink-wash ranges become stacked plastic, and every plaque,
   scroll and key is a brick. */
:root[data-style="claymorphism"] .mo {
  --ink-0: var(--cl-ground);
  --iw-a: var(--cl-gold);
}
@media (prefers-contrast: more) {
  :root[data-style="claymorphism"] .mo { --mute: #c4b9a6; --line: rgba(255, 217, 112, .5); }
}
:root[data-style="claymorphism"] .mo-sky {
  background:
    radial-gradient(60% 45% at 72% 6%, rgba(90, 130, 255, .22), transparent 70%),
    radial-gradient(50% 35% at 18% 30%, rgba(200, 35, 26, .1), transparent 70%),
    linear-gradient(180deg, #0e2168 0%, var(--cl-ground) 55%, var(--cl-deep) 100%);
}
:root[data-style="claymorphism"] .mo-moon { opacity: .3; }
:root[data-style="claymorphism"] .mo-p1 { fill: #1b3a98; stroke: #3a5ec8; stroke-width: 2.5; }
:root[data-style="claymorphism"] .mo-mist { fill: rgba(170, 195, 255, .07); }
:root[data-style="claymorphism"] .mo-p2 { fill: #12297a; stroke: #2a4bb0; stroke-width: 2.5; }
:root[data-style="claymorphism"] .mo-p3 { fill: #0a1a52; stroke: #1f3a92; stroke-width: 2.5; }
/* the temple on the middle peak is that range's silhouette, windows dark:
   the sky is fixed, so in red it sat behind the training course's heading
   and showed as a red block between the stations on a phone */
:root[data-style="claymorphism"] .mo-temple path { fill: #12297a; stroke: #12297a; }
:root[data-style="claymorphism"] .mo-temple path:last-of-type { fill: none; stroke: #12297a; }
:root[data-style="claymorphism"] .mo-lit { fill: #12297a; }

/* the header: a plastic bar across the top of the shelf (material only) */
:root[data-style="claymorphism"] .mo-top {
  background: var(--cl-gloss), #0a1546;
  border-bottom-color: var(--cl-rim);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), 0 12px 24px -12px rgba(2, 5, 24, .9);
}
:root[data-style="claymorphism"] .mo-kicker { color: #f47a68; }   /* the lacquer, lifted for the blue */

/* the courtyard: a diorama box in black plastic, its torii a red brick beam
   with its studs on top, and red posts */
:root[data-style="claymorphism"] .mo-stage {
  border: 3px solid var(--cl-rim); border-radius: 16px;
  background:
    radial-gradient(60% 40% at 50% 92%, rgba(224, 176, 64, .16), transparent 70%),
    radial-gradient(90% 70% at 50% 40%, rgba(40, 70, 170, .3), transparent 70%),
    var(--cl-abs-lo);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .55), var(--cl-drop);
}
:root[data-style="claymorphism"] .mo-stage::before {
  --st: var(--cl-red); --st-hi: #f2685a; --st-lo: #6e0d07;
  height: 22px; padding: 0 18px; box-shadow: none;
  background:
    radial-gradient(7px 2.6px at 12px 3px, var(--st-hi) 90%, transparent 100%) 0 0 / 24px 6px space no-repeat,
    linear-gradient(90deg, transparent 5px, var(--st-hi) 5px 7px, var(--st) 7px 15px, var(--st-lo) 15px 19px, transparent 19px) 0 3px / 24px 7px space no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 5px) 0 9px / 100% 13px no-repeat,
    linear-gradient(180deg, #e2483a, var(--cl-red) 55%, #6e0d07) 0 9px / 100% 13px no-repeat;
  background-origin: content-box, content-box, border-box, border-box;
  background-clip: content-box, content-box, border-box, border-box;
}
:root[data-style="claymorphism"] .mo-stage::after { top: 22px; border-left-color: var(--cl-red); border-right-color: var(--cl-red); }
:root[data-style="claymorphism"] .mo-floor {
  border: 2px solid rgba(224, 176, 64, .35);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .08);
}

/* The element keys: candy plastic in each element's own colour, a stud on
   top, dark ink (every one of the six holds 6:1 or better under it). The
   chosen key is pushed down into the deck: no shadow under it, a shadow
   moulded into its top, and a white rim round it. */
:root[data-style="claymorphism"] .mo-el {
  color: #14101a; border: 2px solid color-mix(in srgb, var(--e) 70%, #fff); border-radius: 12px;
  background: var(--cl-candy), var(--e);
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--e) 62%, #000), 0 8px 12px -6px rgba(2, 5, 24, .9);
}
:root[data-style="claymorphism"] .mo-el span { color: #14101a; }
:root[data-style="claymorphism"] .mo-el::before {
  width: 12px; height: 12px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85) 0 2px, transparent 4px), color-mix(in srgb, var(--e) 88%, #000);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .35);
}
:root[data-style="claymorphism"] .mo-el[aria-pressed="true"] {
  border-color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 40%), var(--e);
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, .35), 0 0 0 2px var(--cl-rim);
}
:root[data-style="claymorphism"] .mo-el:focus-visible { outline-color: var(--s-focus); }

/* the Spinjitzu! key and the call: red and gold plastic, rims kept light */
:root[data-style="claymorphism"] .mo-spin {
  border: 2px solid #f0806a; border-radius: 14px;
  background: var(--cl-candy), var(--cl-red);
  box-shadow: inset 0 -4px 0 #6e0d07, 0 4px 0 #4a0c08, 0 12px 18px -6px rgba(2, 5, 24, .9);
}
:root[data-style="claymorphism"] .mo-go {
  border: 2px solid var(--gold-hi); border-radius: 16px;
  background: var(--cl-candy), var(--cl-gold);
  box-shadow: inset 0 -4px 0 rgba(120, 70, 0, .45), 0 4px 0 #6a440e, 0 14px 22px -8px rgba(2, 5, 24, .9);
}
:root[data-style="claymorphism"] .mo-go-spin { box-shadow: 0 0 0 2px rgba(42, 22, 6, .5); }
:root[data-style="claymorphism"] :is(.mo-spin, .mo-go):focus-visible { outline-color: var(--s-focus); }

/* the course: each station a black plastic plaque hung on a stud moulded in
   its element's colour, the element's name under it in the same colour (no
   side bar down its edge). The plaques are links, so their
   chunky outline is the peg's deeper gold, 5:1 on the blue, where a black
   rim would have lost the edge into the night */
:where(:root[data-style="claymorphism"]) .mo-st {
  border: 2px solid var(--cl-gold-lo); border-radius: 12px;
  background: var(--cl-gloss), linear-gradient(180deg, #111840, var(--cl-abs-lo));
  box-shadow: var(--cl-lit), var(--cl-drop);
}
:root[data-style="claymorphism"] .mo-st::before { content: none; }
:root[data-style="claymorphism"] .mo-st { padding-left: 1rem; }
@media (max-width: 560px) {
  :root[data-style="claymorphism"] .mo-st { padding-left: 0.7rem; }
}
:root[data-style="claymorphism"] .mo-st::after {
  width: 14px; height: 14px; top: -8px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85) 0 2px, transparent 4px), var(--e);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--e) 55%, #000), 0 2px 3px rgba(0, 0, 0, .6);
}
:root[data-style="claymorphism"] :is(.mo-st, .mo-cr):focus-visible { outline: 2px solid var(--s-focus); outline-offset: 3px; }

/* the same squash as the world page's elements, on the element keys and on
   the stations (each spins the tornado up in its element). The stations
   swing in from their peg, which sits above them, so their squash moves
   down by what that leaves, keeping the foot where it is. */
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="claymorphism"] .mo-el {
    transition: background .3s, border-color .3s, translate .3s var(--ease), scale .65s var(--cl-spring);
  }
  :root[data-style="claymorphism"] .mo-st {
    transition: border-color .3s, background .3s, translate .35s var(--ease), scale .65s var(--cl-spring);
  }
  :root[data-style="claymorphism"] .mo-el:active { scale: 1.07 .88; translate: 0 calc(6% - 2px); }
  :root[data-style="claymorphism"] .mo-st:active { scale: 1.04 .92; translate: 0 calc(8% - 2px); }
}

/* the two scrolls and the Realm Crystal: black plastic bodies; the lacquer
   rods are red plastic, and the top one carries its studs */
:where(:root[data-style="claymorphism"]) .mo-panel {
  border: 2px solid var(--cl-rim); border-radius: 10px;
  background: var(--cl-gloss), linear-gradient(180deg, var(--cl-abs), var(--cl-abs-lo));
  box-shadow: var(--cl-lit), var(--cl-drop);
}
:root[data-style="claymorphism"] .mo-panel::after {
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 4px 6px -2px rgba(2, 5, 24, .8);
}
:root[data-style="claymorphism"] .mo-panel::before {
  --st: var(--cl-red); --st-hi: #f2685a; --st-lo: #6e0d07;
  top: -13px; height: 18px; padding: 0 22px; border-radius: 0;
  background:
    radial-gradient(7px 2.6px at 12px 3px, var(--st-hi) 90%, transparent 100%) 0 0 / 24px 6px space no-repeat,
    linear-gradient(90deg, transparent 5px, var(--st-hi) 5px 7px, var(--st) 7px 15px, var(--st-lo) 15px 19px, transparent 19px) 0 3px / 24px 7px space no-repeat,
    radial-gradient(circle at 5px 50%, var(--gold) 0 4px, transparent 4.5px) 0 9px / 100% 9px no-repeat,
    radial-gradient(circle at calc(100% - 5px) 50%, var(--gold) 0 4px, transparent 4.5px) 0 9px / 100% 9px no-repeat,
    linear-gradient(180deg, var(--lacq-hi), var(--lacquer) 55%, #5a120e) 0 9px / 100% 9px no-repeat;
  background-origin: content-box, content-box, border-box, border-box, border-box;
  background-clip: content-box, content-box, border-box, border-box, border-box;
}
:where(:root[data-style="claymorphism"]) .mo-cr {
  border: 2px solid var(--cl-rim); border-radius: 12px;
  background: var(--cl-gloss), #111840;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 8px 12px -6px rgba(2, 5, 24, .9);
}
:root[data-style="claymorphism"] .mo-feats li { border-bottom-color: rgba(120, 150, 255, .16); }
:root[data-style="claymorphism"] .mo-feats li::before { border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
:root[data-style="claymorphism"] .mo-file div { border-bottom-color: rgba(120, 150, 255, .16); }

/* the world button, the pair's gold in the same plastic */
:root[data-style="claymorphism"] .mo .iw {
  --iw-a: var(--cl-gold);
  background: var(--cl-gloss), #121a42;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .16), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 0 0 1px var(--cl-rim), 0 10px 16px -8px rgba(2, 5, 24, .9);
}
:root[data-style="claymorphism"] .mo .iw-i {
  color: #2a1806;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7) 0 2px, transparent 5px), var(--cl-gold);
  box-shadow: inset 0 -2px 0 rgba(120, 70, 0, .45);
}
:root[data-style="claymorphism"] .mo .iw:focus-visible { outline-color: var(--s-focus); }

