/* Neumorphism (dark), for /worlds/batman/ and /batcomputer/ (style: neumorphism).

   The cave. Batman works in shadow, so both pages are cut from one black and
   shaped only by light: every surface is the colour of the ground under it,
   and a cool light from the upper left with a deep shadow to the lower right
   is all that tells a card from the rock it is carved from. No borders, no
   colour of the cave's own. The one colour is the signal's yellow, and it
   means something: the keyboard ring, and whatever is switched on (the tab
   you are on, the sort that is applied, the gadget in your hand, the track
   that is playing).

   Signature: the utility belt as a strap carved from the black with a row of
   pressed-in slots, each gadget sitting in its own recess. On the world page
   that is both belts (the one you reach into and the row of pouches); on the
   Batcomputer it is the restocked belt in the console.

   One file for the pair, in three parts: the shared palette and the two
   reliefs (raised and pressed); the world page, whose descent from Gotham
   into the cave is redrawn in relief; and the Batcomputer, which keeps its
   console and detective mode, with its monitors and keys carved from the
   same black. The spec: docs/superpowers/specs/2026-10-11-page-styles-
   design.md, "Batman: Neumorphism (dark)" and section 9.

   Neumorphism is the riskiest style here for accessibility, so: text keeps
   full contrast (nothing is debossed into the ground's own colour), every
   control carries a 1px lit edge that clears 3:1, and focus is yellow.

   Everything is scoped to :root[data-style="neumorphism"]. The surfaces are
   set at the full weight of that scope on purpose: the shared components
   tint themselves in the item's colour on hover (some of those hovers are
   not gated to pointers), and in this cave no surface takes a colour. */

/* ── 1. shared: one black, a cool light, a deep shadow ──────────────────── */
:root[data-style="neumorphism"] {
  --nm-ground: #17191d;               /* the rock, near-black, a little cool */
  --nm-hi: rgba(178, 198, 226, .1);   /* the light, upper left */
  --nm-lo: rgba(0, 0, 0, .74);        /* the shadow, lower right */
  --nm-up: -7px -7px 16px var(--nm-hi), 9px 9px 20px var(--nm-lo);
  --nm-up-sm: -3px -3px 7px var(--nm-hi), 4px 4px 9px var(--nm-lo);
  --nm-up-hi: -10px -10px 22px rgba(178, 198, 226, .13), 13px 13px 28px rgba(0, 0, 0, .8);
  --nm-in: inset 6px 6px 12px var(--nm-lo), inset -5px -5px 11px var(--nm-hi);
  --nm-in-sm: inset 2px 2px 5px var(--nm-lo), inset -2px -2px 5px var(--nm-hi);
  --nm-in-deep: inset 9px 9px 16px rgba(0, 0, 0, .86), inset -6px -6px 13px rgba(178, 198, 226, .12);
  /* a control's rim: lit where the light catches it (top, left) at 4:1 on
     the ground, and in shadow on the far sides */
  --nm-lit: #6f7986;
  --nm-dim: #2b2f36;
  --nm-rim: var(--nm-lit) var(--nm-dim) var(--nm-dim) var(--nm-lit);
  /* a recess is lit on its far wall instead */
  --nm-rim-in: var(--nm-dim) var(--nm-lit) var(--nm-lit) var(--nm-dim);
  --nm-yellow: #f5c542;               /* the signal, the Batcomputer's own */
  --nm-steel: #d3d7dc;

  /* the world page's ground and quiet inks: the ground is a shade lighter
     than the site's so a shadow has somewhere darker to fall, and the mute
     is lifted to keep its contrast on it */
  --bg: var(--nm-ground);
  --bg-2: #1b1e23;
  --mute: #8f8d96;
  --line: #282a30;

  --s-surface: var(--nm-ground);
  --s-surface-hi: var(--nm-ground);
  --s-edge: transparent;
  --s-bw: 1px;
  --s-r: 22px;
  --s-r-sm: 999px;
  --s-shadow: var(--nm-up);
  --s-shadow-hi: var(--nm-up-hi);
  --s-lift: -2px;
  /* the Batcomputer's own condensed capitals; an interface defines no
     --sans, so the fallbacks are literal */
  --s-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --s-display-w: 700;
  --s-display-ls: 0.06em;
  --s-focus: var(--nm-yellow);

  /* the bars: solid black slabs; the tab bar raised off the page */
  --s-bar: var(--nm-ground);
  --s-bar-edge: rgba(0, 0, 0, .55);
  --s-bar-blur: none;
  --s-bar-shadow: -6px -6px 16px var(--nm-hi), 10px 10px 24px rgba(0, 0, 0, .8);

  /* smooth stone: no grain, no circuits, no lattice, no sweeping scan line;
     the vignette stays (the cave closes in) and the cursor is a faint torch */
  --s-grain: 0;
  --s-field: 0;
  --s-vignette: .9;
  --hud-grid: transparent;
  --hud-scan: transparent;
  --hud-sweep: transparent;
  --hud-lit: transparent;
  --hud-halo: rgba(178, 198, 226, .05);
}

/* Increase Contrast: the inks go up past the site's own boost (this rule
   outranks base.css's), and every surface and control shows a rim, so
   nothing is told apart by a soft shadow alone. */
@media (prefers-contrast: more) {
  :root[data-style="neumorphism"] {
    --ink: #fff; --ink-dim: #d4d2cb; --mute: #b8b6be; --line: #45454e;
    --nm-lit: #9aa3ae; --nm-dim: #5c636d;
  }
  :root[data-style="neumorphism"] .bc {
    --ink: #fff; --dim: #c4c9d0; --mute: #a7aeb8; --line: rgba(220, 224, 228, .3);
  }
  :root[data-style="neumorphism"] :is(.fan-card, .fan-tile, .fan-film, .fan-land, .fan-rankrow, .fan-quote,
    .fan-intro-when, .fan-peek, .fan-shot, .bat-strap, .bc-mon, .bc-panel, .bc-wall, .bc-belt) {
    border-color: rgba(255, 255, 255, .28);
  }
}

/* ── 2. the world page: the descent, in relief ──────────────────────────── */

/* the tab you are on is pressed into the bar and lit in the signal's yellow */
:root[data-style="neumorphism"] .tabbar { --s-accent: var(--nm-yellow); }
:root[data-style="neumorphism"] .tabbar a:is(.is-current, .is-going) {
  background: var(--nm-ground); box-shadow: var(--nm-in-sm);
}
/* the header buttons keep their tints, raised off the bar */
:where(:root[data-style="neumorphism"]) .ql { background: var(--nm-ground); box-shadow: var(--nm-up-sm); }

/* The backdrop. Gotham above and the cave below stay, and the same scroll
   still takes you down, but drawn in the page's own black: the sky is the
   ground, the skyline and the stalactites are carved out of it and lit from
   the upper left, and the cold monitor light and the warm lamp give way to
   the one cool light everything else is shaped by. The whole layer is held
   at .36 (fanpages.css), so the reliefs are drawn strong. */
:root[data-style="neumorphism"] .bat-sky { background: var(--nm-ground); }
:root[data-style="neumorphism"] .bat-sky::before { opacity: 0; }
:root[data-style="neumorphism"] .bat-sky::after {
  inset: -20% auto auto -20%; translate: none; width: 90vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(178, 198, 226, .16), transparent);
}
:root[data-style="neumorphism"] :is(.bc-far, .bc-near) { fill: var(--nm-ground); }
:root[data-style="neumorphism"] .bc-lit { fill: var(--nm-yellow); opacity: .3; }
:root[data-style="neumorphism"] .bat-city {
  filter: drop-shadow(-2px -2px 2px rgba(190, 208, 232, .55)) drop-shadow(6px 6px 8px #000);
}
/* the signal on the cloud becomes the emblem carved in the rock: a raised
   disc with the bat pressed into it (one pair of shadows does both), held
   still, still fading as you go under the city */
:root[data-style="neumorphism"] .bat-signal {
  animation: none; opacity: 1;
  filter: drop-shadow(-3px -3px 3px rgba(190, 208, 232, .5)) drop-shadow(7px 7px 10px #000);
}
:root[data-style="neumorphism"] .bsg-beam { fill: var(--nm-ground); }
:root[data-style="neumorphism"] .bat-cave {
  background:
    radial-gradient(60% 50% at 8% -6%, rgba(178, 198, 226, .26), transparent 72%),
    radial-gradient(115% 90% at 50% 40%, transparent 36%, rgba(0, 0, 0, .9));
}
/* the walls face each other: the right one turns its face to the light */
:root[data-style="neumorphism"] .bcv-wall--l {
  background: repeating-linear-gradient(104deg, rgba(0, 0, 0, .4) 0 3px, transparent 3px 15px),
    linear-gradient(90deg, #22252b, #15171b 50%, #0a0b0d);
}
:root[data-style="neumorphism"] .bcv-wall--r {
  background: repeating-linear-gradient(76deg, rgba(0, 0, 0, .4) 0 3px, transparent 3px 15px),
    linear-gradient(90deg, #3a3f47, #1d2025 34%, #101114);
}
:root[data-style="neumorphism"] .bcv-roof {
  filter: drop-shadow(-2px -2px 2px rgba(190, 208, 232, .5)) drop-shadow(6px 8px 9px #000);
}
:root[data-style="neumorphism"] .bcv-roof path { fill: var(--nm-ground); }
:root[data-style="neumorphism"] .bcv-pool {
  background: repeating-linear-gradient(0deg, rgba(178, 198, 226, .1) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(178, 198, 226, .14), rgba(8, 9, 11, .92) 72%);
}

/* the batarang, carved: the same black, its rim catching the light */
:root[data-style="neumorphism"] .btr {
  filter: drop-shadow(-3px -3px 3px rgba(190, 208, 232, .22)) drop-shadow(8px 10px 12px rgba(0, 0, 0, .9));
}
:root[data-style="neumorphism"] .btr-body { fill: var(--nm-ground); }
:root[data-style="neumorphism"] .btr-bevel { fill: #1f2227; }
:root[data-style="neumorphism"] .btr-edge { stroke: #8e98a5; }

/* Raised: every surface that holds reading, in the ground's own colour.
   Hovering lifts it toward the light; the tinted hovers do not apply. */
:root[data-style="neumorphism"] :is(.fan-card, .fan-tile, .fan-film, .fan-land, .fan-rankrow, .fan-linkcard,
  .fan-shot, .fan-peek, .fan-iface, .bat-strap, .fp-bar, .wsib-i a) {
  background: var(--nm-ground); border-color: transparent; box-shadow: var(--nm-up);
}
:root[data-style="neumorphism"] :is(.fan-film, .fan-land, .fan-rankrow, .fan-shot, .fan-peek, .fan-iface) { border-radius: var(--s-r); }
:root[data-style="neumorphism"] .fan-tiles--compact .fan-tile { border-radius: 16px; }
@media (hover: hover) {
  :root[data-style="neumorphism"] :is(.fan-card, .fan-tile, .fan-film, .fan-land, .fan-rankrow, .fan-linkcard, .fan-shot):hover {
    background: var(--nm-ground); border-color: transparent; box-shadow: var(--nm-up-hi); transform: translateY(var(--s-lift));
  }
}
/* the film cards lose their tint: one black */
:root[data-style="neumorphism"] .fan-land-bar { opacity: 0; }
:root[data-style="neumorphism"] .fan-land-count { border-top-color: rgba(0, 0, 0, .5); box-shadow: inset 0 1px 0 var(--nm-hi); }

/* Pressed: what is set into the rock rather than standing on it. The quotes
   are carved in, and the note on when I got into it is a plate set in. */
:root[data-style="neumorphism"] :is(.fan-quote, .fan-intro-when) {
  background: var(--nm-ground); border-left-color: transparent; border-radius: var(--s-r); box-shadow: var(--nm-in);
}
@media (hover: hover) {
  :root[data-style="neumorphism"] .fan-quote:hover { background: var(--nm-ground); box-shadow: var(--nm-in-deep); transform: none; }
}

/* Controls: the same black, raised, with the 1px lit rim that makes each
   one findable at 3:1. Pressing one, or switching it on, sets it into the
   rock and lights it yellow. */
:root[data-style="neumorphism"] :is(.fan-link, .fan-sortbtn, .fan-hear, .fan-iface, .fan-linkcard, .wsib-i a, .fp-go) {
  background: var(--nm-ground); border: 1px solid; border-color: var(--nm-rim);
}
:root[data-style="neumorphism"] :is(.fan-link, .fan-sortbtn, .fan-hear, .fp-go) { box-shadow: var(--nm-up-sm); }
@media (hover: hover) {
  :root[data-style="neumorphism"] :is(.fan-link, .fan-sortbtn, .fan-hear, .fan-iface, .fan-linkcard, .wsib-i a, .fp-go):hover {
    background: var(--nm-ground); border-color: var(--nm-rim); box-shadow: var(--nm-in-sm); transform: none;
  }
}
:root[data-style="neumorphism"] :is(.fan-sortbtn.is-on, .fan-hear.is-playing) {
  background: var(--nm-ground); color: var(--nm-yellow); border-color: var(--nm-rim-in); box-shadow: var(--nm-in-sm);
}
:root[data-style="neumorphism"] .fan-iface-a { border-color: transparent; box-shadow: var(--nm-in-sm); }

/* tags, tallies and readouts are small recesses: labels stamped in */
:root[data-style="neumorphism"] .fan-tag { border-color: transparent; box-shadow: var(--nm-in-sm); }
:root[data-style="neumorphism"] :is(.fan-tally, .fan-proj) { background: var(--nm-ground); box-shadow: var(--nm-in-sm); }
:root[data-style="neumorphism"] .fan-proj { border-color: var(--nm-rim-in); }

/* the interface fragment: a raised console panel, the Batcomputer's blue
   readout kept inside it; its title bar a groove instead of a tint */
:root[data-style="neumorphism"] .fan-peek-bar {
  background: transparent; border-bottom-color: rgba(0, 0, 0, .55); box-shadow: 0 1px 0 var(--nm-hi);
}

/* the timeline's rail is a groove, its ticks studs standing out of it */
:root[data-style="neumorphism"] .fan-time::before {
  left: 2px; width: 3px; opacity: 1; border-radius: 2px;
  background: var(--nm-ground); box-shadow: inset 1px 1px 2px #000, inset -1px -1px 1px var(--nm-hi);
}
:root[data-style="neumorphism"] .fan-tick::before {
  left: calc(-1.4rem - 1px); width: 9px; height: 9px;
  background: var(--nm-ground); box-shadow: -1px -1px 2px rgba(178, 198, 226, .3), 2px 2px 3px #000;
}

/* a folded section's arrow is a round key; opened, it is pressed and lit */
:root[data-style="neumorphism"] .fan-fold-i {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--ink-dim); box-shadow: var(--nm-up-sm);
}
/* (the open arrow is turned half round, and its shadows with it, so its
   inset pair is written the other way about) */
:root[data-style="neumorphism"] .fan-fold[open] .fan-fold-i {
  color: var(--nm-yellow);
  box-shadow: inset -2px -2px 5px var(--nm-lo), inset 2px 2px 5px var(--nm-hi);
}

/* Headings in the Batcomputer's condensed capitals, which is what ties this
   page to the console. The title is raised steel lettering: full contrast,
   a lit top edge and a long shadow, no gradient. Reading text stays Inter,
   labels stay JetBrains Mono. */
:root[data-style="neumorphism"] .fan-title {
  font-family: var(--s-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--nm-steel);
  text-shadow: -1px -1px 0 rgba(255, 255, 255, .22), 2px 2px 0 #000, 8px 10px 18px rgba(0, 0, 0, .85), -5px -5px 16px rgba(178, 198, 226, .1);
}
:root[data-style="neumorphism"] :is(.fan-card :is(h2, h3, h4, h5), .fan-film :is(h2, h3, h4, h5), .fan-land-head :is(h2, h3, h4, h5),
  .fan-rankhead b, .fan-tiletext b, .fan-linkhead b, .fan-what b, .wsib-h b, .bat-pouch b) {
  font-family: var(--s-display); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.12;
}
:root[data-style="neumorphism"] .fan-card :is(h2, h3, h4, h5) { font-size: 1.28rem; }
:root[data-style="neumorphism"] :is(.fan-tiletext b, .fan-rankhead b, .fan-linkhead b) { font-size: 1.08rem; }
/* section heads as the console sets them ("The case wall"): the name in
   condensed capitals, the note in small mono, and the rule a carved groove */
:root[data-style="neumorphism"] .subsec--fan {
  font-family: var(--s-display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: 0.08em; color: var(--ink);
}
:root[data-style="neumorphism"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--mute);
}
:root[data-style="neumorphism"] .subsec--fan::after {
  height: 2px; background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0 1px, rgba(178, 198, 226, .1) 1px 2px);
}
/* the belt's heading is a section head too, in the same tracked capitals;
   it was Inter and reading faces never move, so it keeps Inter */
:root[data-style="neumorphism"] .fp-head :is(h2, h3) {
  font-family: var(--s-display);
  font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}

/* An item's own colour (a caption, a subtitle, a group's name, its tag and
   Listen link) loses a little on this ground, and the darkest of them (the
   LEGO blue, The Batman's red) were near the line already; each is its
   colour lifted 30% toward white: still that colour, and readable. :where
   keeps the shared rules' weight, so hovering and playing still win. */
:root[data-style="neumorphism"] :is(.fan-tiletext i, .fan-card .fan-sub, .fan-film .fan-sub, .fan-grouphead b) { color: color-mix(in srgb, var(--a) 70%, #fff); }
:where(:root[data-style="neumorphism"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: color-mix(in srgb, var(--a) 70%, #fff); }

/* ── the signature: the utility belt ────────────────────────────────────
   The belt is a strap raised out of the black, and every gadget sits in a
   recess cut into it: lit on the far wall, dark on the near one. The one in
   your hand is pressed deepest and lit in the signal's yellow.
   The strap runs the column's width, as a belt does, and the recesses share
   it out: six of them packed at one end left most of the strap bare. On a
   phone they wrap three and three. */
:root[data-style="neumorphism"] .fp-bar { width: auto; gap: 12px; padding: 12px; border-radius: 22px; }
:root[data-style="neumorphism"] .fp-slot {
  flex: 1 1 0; width: auto; min-width: 52px; max-width: 220px;
  border-radius: 14px; background: var(--nm-ground);
  border: 1px solid; border-color: var(--nm-rim-in); box-shadow: var(--nm-in);
}
@media (max-width: 560px) {
  :root[data-style="neumorphism"] .fp-slot { flex-basis: calc((100% - 24px) / 3); max-width: none; }
}
:root[data-style="neumorphism"] .fp-slot svg { stroke: #aeb6c0; }
:root[data-style="neumorphism"] .fp-slot u { font-size: 0.66rem; color: var(--mute); }
@media (hover: hover) {
  :root[data-style="neumorphism"] .fp-slot:hover { border-color: var(--nm-rim-in); box-shadow: var(--nm-in-deep); transform: none; }
}
:root[data-style="neumorphism"] .fp-slot.is-sel {
  border-color: var(--nm-rim-in); box-shadow: var(--nm-in-deep);
  background: radial-gradient(circle at 50% 58%, rgba(245, 197, 66, .14), transparent 68%), var(--nm-ground);
}
:root[data-style="neumorphism"] .fp-slot.is-sel svg { stroke: var(--nm-yellow); }
:root[data-style="neumorphism"] .fp-slot.is-sel u { color: var(--nm-yellow); }
:root[data-style="neumorphism"] .fp-out {
  background: var(--nm-ground); border-left-color: transparent; border-radius: var(--s-r); box-shadow: var(--nm-in);
}
/* and its name in the readout is lit the same yellow. fan-play.js paints
   the name in the gadget's own colour inline, which only !important can
   answer, and two of those greys (the cowl's, the smoke's) sit under 4.5:1
   on any black; the yellow is 10:1 */
:root[data-style="neumorphism"] #fpName { color: var(--nm-yellow) !important; }

/* the row of pouches: the same strap, the leather and the brass gone */
:root[data-style="neumorphism"] .bat-strap { gap: 12px; padding: 16px; border-radius: 26px; }
/* the stitching, kept as a line of dashes pressed into the strap's edges */
:root[data-style="neumorphism"] .bat-strap::before,
:root[data-style="neumorphism"] .bat-strap::after {
  left: 22px; right: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .75) 0 5px, transparent 5px 11px);
  box-shadow: 0 1px 0 rgba(178, 198, 226, .05);
}
:root[data-style="neumorphism"] .bat-pouch {
  border-radius: 16px; background: var(--nm-ground); box-shadow: var(--nm-in); transform: none;
}
:root[data-style="neumorphism"] .bat-pouch::before { content: none; }
@media (hover: hover) {
  :root[data-style="neumorphism"] .bat-pouch:hover { background: var(--nm-ground); box-shadow: var(--nm-in-deep); transform: none; }
}
:root[data-style="neumorphism"] .bat-pouch b { font-size: 1rem; color: var(--ink); }
:root[data-style="neumorphism"] .bat-pouch span { font-size: 0.66rem; color: var(--mute); }
:root[data-style="neumorphism"] .bat-belt-cap { font-size: 0.66rem; }

@media (prefers-reduced-motion: no-preference) {
  :root[data-style="neumorphism"] :is(.fp-slot, .bat-pouch, .fan-fold-i) {
    transition: box-shadow .3s var(--ease), border-color .3s, background .3s;
  }
}

/* ── 3. the Batcomputer: the console, carved from the same black ─────────
   It keeps everything it does: the signal you light and aim, the case wall,
   the subject file, the rogues, the belt, the comms array, detective mode
   and the turn at the end. Its monitors and keys are cut from the cave's
   black. Detective mode still washes the cave blue: every surface below is
   painted with the page's own --night, which detective mode turns navy. */
:where(:root[data-style="neumorphism"]) .bc { --night: var(--nm-ground); --iw-bg: var(--nm-ground); }
:root[data-style="neumorphism"] .bc.is-detective { --night: #0b1826; }

/* the cave's light: one cool light from the upper left, no lamp */
:root[data-style="neumorphism"] .bc-glow {
  background: radial-gradient(55% 45% at 6% -4%, rgba(178, 198, 226, .1), transparent 72%),
    radial-gradient(120% 90% at 50% 45%, transparent 50%, rgba(0, 0, 0, .6));
}
/* the header's rule is a groove cut across the rock */
:root[data-style="neumorphism"] .bc-top { border-bottom-color: rgba(0, 0, 0, .6); box-shadow: 0 1px 0 var(--nm-hi); }

/* the title: raised steel capitals, as on the world page (the ink, so
   detective mode still turns it blue) */
:root[data-style="neumorphism"] .bc-title span {
  background: none; color: var(--ink); filter: none;
  text-shadow: -1px -1px 0 rgba(255, 255, 255, .22), 2px 2px 0 #000, 8px 10px 18px rgba(0, 0, 0, .85);
}

/* raised slabs: the monitor, the panels */
:root[data-style="neumorphism"] .bc :is(.bc-mon, .bc-panel) {
  background: var(--night); border-color: transparent; border-radius: 24px; box-shadow: var(--nm-up);
}
:root[data-style="neumorphism"] .bc-mon { padding: 0.8rem; }
/* the screen sits in a recess in its bezel */
:root[data-style="neumorphism"] .bc-scene { border-radius: 14px; }
:root[data-style="neumorphism"] .bc-scene::after { box-shadow: inset 7px 7px 14px rgba(0, 0, 0, .85); border-radius: inherit; }

/* the case wall is cut into the console, and each case is a key standing in
   it; pointing at one, or tabbing to it, presses it in while the scanner
   sweeps it */
:root[data-style="neumorphism"] .bc-wall {
  background: var(--night); border-color: transparent; border-radius: 26px;
  box-shadow: var(--nm-in); padding: 1rem; gap: 1rem;
}
@media (max-width: 560px) {
  :root[data-style="neumorphism"] .bc-wall { padding: 0.7rem; gap: 0.7rem; }
}
:root[data-style="neumorphism"] .bc-case {
  background: var(--night); border-color: var(--nm-rim); border-radius: 16px; box-shadow: var(--nm-up-sm);
}
@media (hover: hover) {
  :root[data-style="neumorphism"] .bc-case:hover { background: var(--night); box-shadow: var(--nm-in-sm); translate: none; }
}
:root[data-style="neumorphism"] .bc-case:focus-visible {
  background: var(--night); box-shadow: var(--nm-in-sm); translate: none;
  outline: 2px solid var(--s-focus); outline-offset: 3px;
}

/* the console's keys: the breaker, the lens, the comms channels, the last
   button; raised with the lit rim, pressed in and lit when switched on */
:root[data-style="neumorphism"] .bc :is(.bc-switch, .bc-detect, .bc-chan, .bc-turn) {
  background: var(--night); border-color: var(--nm-rim); box-shadow: var(--nm-up-sm);
}
:root[data-style="neumorphism"] .bc :is(.bc-switch, .bc-detect) { border-radius: 14px; }
/* the last button keeps its yellow words in every state (its own hover
   filled it yellow, which here would leave dark words on the black) */
:root[data-style="neumorphism"] .bc .bc-turn { border-radius: 16px; color: var(--sig); }
@media (hover: hover) {
  :root[data-style="neumorphism"] .bc :is(.bc-switch, .bc-detect, .bc-chan, .bc-turn):hover {
    background: var(--night); border-color: var(--nm-rim); box-shadow: var(--nm-in-sm);
  }
}
/* Switched on, a key is pressed in and its rim is lit all round in the
   colour of what it switched on, as the console always drew it: the
   signal's yellow for the breaker, detective blue for the lens. A recess's
   own rim is dark on its near (top) side, and a control's edge has to
   clear 3:1 on every side it is read from. */
:root[data-style="neumorphism"] .bc .bc-switch[aria-pressed="true"] {
  border-color: var(--sig); box-shadow: var(--nm-in); color: var(--sig);
}
:root[data-style="neumorphism"] .bc .bc-detect[aria-pressed="true"] { border-color: var(--det); box-shadow: var(--nm-in); }
/* the lever's slot and the lens are cut into their keys */
:root[data-style="neumorphism"] .bc-switch-track { background: var(--night); box-shadow: var(--nm-in-sm); }
:root[data-style="neumorphism"] .bc-detect-eye { border-color: transparent; box-shadow: var(--nm-in-sm); }
/* the yellow ring everywhere, and in detective mode too */
:root[data-style="neumorphism"] .bc :is(a, button):focus-visible { outline-color: var(--s-focus); }

/* the subject file's rules are grooves */
:root[data-style="neumorphism"] .bc-file div { border-bottom: 1px solid rgba(0, 0, 0, .55); box-shadow: 0 1px 0 rgba(178, 198, 226, .05); }

/* each suspect's file is a recess in the panel; the coloured spine is a
   groove (lit blue in detective mode, the way the original lit it) */
:root[data-style="neumorphism"] .bc-rogues li {
  background: var(--night); border-color: transparent; border-radius: 16px; box-shadow: var(--nm-in);
}
:root[data-style="neumorphism"] .bc-rogues li::before {
  left: 6px; background: var(--night); box-shadow: inset 1px 1px 2px #000, inset -1px -1px 1px var(--nm-hi);
}
:root[data-style="neumorphism"] .bc.is-detective .bc-rogues li::before { background: var(--det); }
:root[data-style="neumorphism"] .bc :is(.bc-rogues b, .bc-belt b) { color: var(--ink); }

/* the belt, restocked: the world page's strap and recesses, the gold
   buckles now studs standing out of the strap (orange in detective mode,
   as before) */
:root[data-style="neumorphism"] .bc-belt {
  gap: 0.9rem; padding: 1rem; border: 0; border-radius: 24px;
  background: var(--night); box-shadow: var(--nm-up);
}
:root[data-style="neumorphism"] .bc-belt li {
  background: var(--night); border-color: transparent; border-radius: 16px; box-shadow: var(--nm-in);
}
:root[data-style="neumorphism"] .bc-belt li::before {
  top: 6px; width: 22px; height: 6px; border-radius: 3px;
  box-shadow: -1px -1px 2px rgba(178, 198, 226, .3), 2px 2px 3px #000;
}
:root[data-style="neumorphism"] .bc:not(.is-detective) .bc-belt li::before { background: var(--night); }
:root[data-style="neumorphism"] .bc-belt li { padding-top: 1.05rem; }
:root[data-style="neumorphism"] .bc-belt p { color: var(--dim); }

/* the comms channels: a readout cut into each key, the channel's own colour
   lifted so it reads on the black */
:root[data-style="neumorphism"] .bc-chans { gap: 0.9rem; }
:root[data-style="neumorphism"] .bc-chan { border-radius: 14px; }
:root[data-style="neumorphism"] .bc-chan-n {
  border-radius: 10px; background: var(--night); box-shadow: var(--nm-in-sm);
  color: color-mix(in srgb, var(--w) 80%, #fff);
}

/* the world button: a key carved from the cave, in the steel of the world
   page's title; pointing at it presses it in */
:root[data-style="neumorphism"] .bc .iw {
  --iw-a: #c9cdd2;
  background: var(--night); border-color: var(--nm-rim); box-shadow: var(--nm-up-sm);
}
:root[data-style="neumorphism"] .bc .iw-i { background: var(--night); box-shadow: var(--nm-in-sm); }
@media (hover: hover) and (pointer: fine) {
  :root[data-style="neumorphism"] .bc .iw:hover {
    background: var(--night); border-color: var(--nm-rim); box-shadow: var(--nm-in-sm); transform: none;
  }
}
:root[data-style="neumorphism"] .bc .iw:focus-visible { outline-color: var(--s-focus); }

@media (prefers-reduced-motion: no-preference) {
  :root[data-style="neumorphism"] .bc :is(.bc-case, .bc-chan, .bc-switch, .bc-detect, .bc-turn) {
    transition: box-shadow .3s var(--ease), border-color .3s, background-color .6s, color .3s;
  }
}
