/* Neo-Brutalism, for /worlds/the-simpsons/ and /springfield/ (style: neo-brutalism).

   The cel. Neo-brutalism's grammar (flat colour, a thick black line, a hard
   shadow with no blur, square corners) is the grammar of cel animation, and
   The Simpsons is the cel everybody knows. The night is Treehouse of Horror:
   the Halloween specials keep the cel and turn the sky purple. So the cards
   come in Simpsons yellow, sky blue and donut pink on a deep violet ground,
   each inside an ink line, and their shadows are a lighter violet, because
   a black shadow would vanish into the night.

   One file for the pair, in three parts: what both pages share (the night,
   the three fills, the ink, the violet shadow, Springfield's own lettering);
   the world page, where the chalkboard gag joins the system; and
   Springfield, which was already drawn in thick ink and flat colour, keeps
   its town, its clock and every gag, and takes the same night, the same
   square corners and the same violet shadows, so the two read as one
   episode. The spec: docs/superpowers/specs/2026-10-11-page-styles-design.md,
   "The Simpsons: Neo-Brutalism" and section 9.

   Everything here is scoped to :root[data-style="neo-brutalism"], so this
   file does nothing on a page that is not wearing it. Where a page's own
   state (open, playing, selected) has to keep winning, the scope sits in
   :where() so the rule weighs only what the rule it restyles weighs. */

/* ── 1. shared: the night, the fills, the ink, the shadow ──────────────── */
:root[data-style="neo-brutalism"] {
  --nb-ink: #0e0a18;              /* the line round everything */
  --nb-night: #1d0f3a;            /* the Treehouse sky */
  --nb-panel: #2c1a5a;            /* a step up from it, for strips and bars */
  --nb-pop: #9a7cff;              /* the hard shadow: 5.7:1 on the night */
  --nb-yellow: #ffd90f;
  --nb-sky: #74c9f4;
  --nb-pink: #ff94c6;
  --nb-cream: #fff8e6;            /* Springfield's paper, for small controls */
  /* text on a fill: each holds 5:1 or better on the pink, the darkest fill */
  --nb-on: #0e0a18;
  --nb-on-2: #2e2645;
  --nb-on-3: #41385c;
  --nb-drop: 6px 6px 0 var(--nb-pop);
  --nb-drop-hi: 9px 9px 0 var(--nb-pop);
  /* a small control's line, drawn outside its box so the fill is its edge */
  --nb-ring: 0 0 0 2.5px var(--nb-ink);

  /* the shared components read these (base.css) */
  --s-surface: var(--nb-yellow);
  --s-surface-hi: var(--nb-yellow);
  --s-edge: var(--nb-ink);
  --s-bw: 3px;
  --s-r: 0px;
  --s-r-sm: 0px;
  --s-shadow: var(--nb-drop);
  --s-shadow-hi: var(--nb-drop-hi);
  --s-lift: -3px;
  /* Springfield's own lettering; an interface defines no --sans */
  --s-display: "Luckiest Guy", var(--sans, sans-serif);
  --s-display-w: 400;
  --s-display-ls: 0.02em;
  /* the keyboard ring is Simpsons yellow on the night; on a fill it turns
     to ink (set where the fills are, below) */
  --s-focus: var(--nb-yellow);

  /* the bars: an ink strip, squared, with the violet shadow under it */
  --s-bar: var(--nb-ink);
  --s-bar-edge: var(--nb-ink);
  --s-bar-r: 0px;
  --s-bar-blur: none;
  --s-bar-shadow: 5px 5px 0 var(--nb-pop);

  /* a cel is flat: no film grain, no vignette, no circuit field, and no
     HUD lattice or cursor light drawn over the night */
  --s-grain: 0;
  --s-vignette: 0;
  --s-field: 0;
  --hud-grid: transparent;
  --hud-scan: transparent;
  --hud-sweep: transparent;
  --hud-lit: transparent;
  --hud-halo: transparent;
}

/* ── 2. the world page: a Treehouse of Horror night ─────────────────────── */

/* The ground and its inks. --bg lives here and not on :root, because the
   interface measures its ground from its own sky. The quieter inks lean
   lilac, and all hold 7:1 or better on the night. */
:root[data-style="neo-brutalism"] body[data-fan="simpsons"] {
  --bg: var(--nb-night);
  --bg-2: #261449;
  --ink-dim: #cbc3e2;
  --mute: #a99fc8;
  --line: #4a3584;
}
/* Increase Contrast: the site's boost holds its ink at 16.6:1 on near
   black; on the violet the inks rise instead of the ground falling */
@media (prefers-contrast: more) {
  :root[data-style="neo-brutalism"] body[data-fan="simpsons"] {
    --ink: #fff; --ink-dim: #d9d3ea; --mute: #b9b0d6; --line: #5a44a0;
  }
  :root[data-style="neo-brutalism"] { --nb-on-2: #1c1530; --nb-on-3: #2a2240; }
}

/* No page-wide accent: every card and tile sets its own --a. Only the tab
   bar, outside every item, takes the Simpsons yellow, and its current tab
   is a yellow cel with ink on it. */
:root[data-style="neo-brutalism"] .tabbar { --s-accent: var(--nb-yellow); }
:root[data-style="neo-brutalism"] .tabbar a.is-current,
:root[data-style="neo-brutalism"] .tabbar a.is-going {
  background: var(--nb-yellow); color: var(--nb-ink); box-shadow: none;
}
:root[data-style="neo-brutalism"] .topbar { box-shadow: 0 3px 0 var(--nb-pop); }
/* the header buttons keep their tints; the plain ones take the night's line */
:where(:root[data-style="neo-brutalism"]) .ql { border-color: var(--line); }
:where(:root[data-style="neo-brutalism"]) .ql--resume { border-color: var(--green); }
:where(:root[data-style="neo-brutalism"]) .ql--linkedin { border-color: var(--blue); }
:where(:root[data-style="neo-brutalism"]) .ql--github { border-color: var(--gold); }

/* The backdrop: Springfield on the horizon under a Treehouse moon. The plant,
   the roofs and 742 Evergreen Terrace are flat ink silhouettes with a violet
   line and the windows flat yellow; the soft glows and title-card clouds
   go, and a moon rises drawn the same way as the town: ink, in a violet
   line. The whole layer is capped at .36
   (fanpages.css), so it stays behind the cels. */
:root[data-style="neo-brutalism"] .sim-sky { background: transparent; }
:root[data-style="neo-brutalism"] .sim-sky::before { background: none; }
:root[data-style="neo-brutalism"] .sim-town { opacity: 1; }
:root[data-style="neo-brutalism"] :is(.simt-plant, .simt-roofs, .simt-house) { fill: var(--nb-ink); stroke: var(--nb-pop); stroke-width: 2.5; }
:root[data-style="neo-brutalism"] .simt-door { fill: var(--nb-pink); stroke: var(--nb-ink); }
:root[data-style="neo-brutalism"] .simt-win { fill: var(--nb-yellow); filter: none; }
:root[data-style="neo-brutalism"] .simt-glow { opacity: 0; }
/* the moon rides the right-hand edge, out past the reading column */
:root[data-style="neo-brutalism"] .sim-clouds {
  background-image: radial-gradient(circle at calc(100% + 24px) 20%, var(--nb-ink) 0 92px, var(--nb-pop) 92px 97px, transparent 97px);
}
@media (max-width: 640px) {
  :root[data-style="neo-brutalism"] .sim-clouds {
    background-image: radial-gradient(circle at calc(100% + 14px) 12%, var(--nb-ink) 0 46px, var(--nb-pop) 46px 50px, transparent 50px);
  }
}

/* ── the title, lettered as Springfield letters its own ────────────────
   The shadows are set in em so they stay a cel's depth at any size: in px
   the violet copy read as a second title on a phone. */
:root[data-style="neo-brutalism"] .fan-title {
  font-family: var(--s-display); font-weight: 400; letter-spacing: var(--s-display-ls);
  text-transform: uppercase; line-height: 1;
  color: var(--nb-yellow);
  -webkit-text-stroke: 5px var(--nb-ink); paint-order: stroke fill;
  text-shadow: 0 0.06em 0 var(--nb-ink), 0.06em 0.12em 0 var(--nb-pop);
}
/* section heads in the same letters, the note beside them in its own mono */
:root[data-style="neo-brutalism"] .subsec--fan {
  font-family: var(--s-display); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: 0.03em; line-height: 1.1; color: var(--nb-yellow);
  -webkit-text-stroke: 3px var(--nb-ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--nb-pop);
}
:root[data-style="neo-brutalism"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--mute);
  -webkit-text-stroke: 0; text-shadow: none;
}
:root[data-style="neo-brutalism"] .subsec--fan::after { height: 3px; background: var(--line); }
/* the couch gag's heading is a section head too, inked the same way:
   yellow capitals in the ink line with the violet shadow. It was Inter and
   reading faces never move, so it keeps Inter at a heavier weight. */
:root[data-style="neo-brutalism"] .fp-head :is(h2, h3) {
  font-family: var(--s-display);
  font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: 0.03em; line-height: 1.1; text-transform: uppercase; color: var(--nb-yellow);
  -webkit-text-stroke: 3px var(--nb-ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--nb-pop);
}
/* card headings in the lettering too; reading text stays Inter */
:root[data-style="neo-brutalism"] :is(.fan-card :is(h2, h3, h4, h5), .fan-rankhead b, .fan-tiletext b, .fan-land-head :is(h2, h3, h4, h5), .fan-linkhead b, .been-t) {
  font-family: var(--s-display); font-weight: 400; letter-spacing: 0.03em; line-height: 1.15;
}
:root[data-style="neo-brutalism"] .fan-tiles--compact .fan-tiletext b { font-size: 0.9rem; }

/* ── the cels ────────────────────────────────────────────────────────────
   Every card is one flat colour inside a 3px ink line, square, with the
   violet shadow. A section takes one colour, and the colours take turns
   down the page the way a palette does on a model sheet. On a fill the
   page's own inks turn dark, and so does the keyboard ring inside it. */
:root[data-style="neo-brutalism"] :is(.fan-card, .fan-tile, .fan-linkcard, .fan-iface) { --nb-fill: var(--nb-yellow); }
:root[data-style="neo-brutalism"] :is(.fan-land, .fan-rankrow, #themes .fan-tile) { --nb-fill: var(--nb-sky); }
:root[data-style="neo-brutalism"] :is(.fan-quote, .fan-intro-when, .fp-out, #town .fan-card, #lego-games .fan-tile) { --nb-fill: var(--nb-pink); }

:root[data-style="neo-brutalism"] :is(.fan-card, .fan-tile, .fan-rankrow, .fan-linkcard, .fan-iface, .fan-land, .fan-quote, .fan-intro-when, .fp-out) {
  --s-surface: var(--nb-fill); --s-surface-hi: var(--nb-fill);
  /* each item's own colour, three quarters of the way to the ink */
  --s-accent: color-mix(in srgb, var(--a) 25%, var(--nb-ink));
  --ink: var(--nb-on); --ink-dim: var(--nb-on-2); --mute: var(--nb-on-3); --line: rgba(14, 10, 24, .45);
  background: var(--nb-fill); color: var(--nb-on);
  border: 3px solid var(--nb-ink); border-radius: 0;
  box-shadow: var(--nb-drop);
}
/* (a card that is itself a link keeps the yellow ring: it draws outside,
   on the night) */
:root[data-style="neo-brutalism"] :is(.fan-card, .fan-tile, .fan-rankrow, .fan-linkcard, .fan-iface, .fan-land, .fan-quote, .fan-intro-when, .fp-out) :is(a, button) {
  --s-focus: var(--nb-ink);
}
@media (hover: hover) {
  :root[data-style="neo-brutalism"] :is(.fan-card, .fan-tile, .fan-rankrow, .fan-linkcard, .fan-iface, .fan-land, .fan-quote):hover {
    transform: translate(-3px, -3px); border-color: var(--nb-ink); box-shadow: var(--nb-drop-hi);
  }
  /* a hovered card keeps its ink: the item's colour would vanish on the fill */
  :root[data-style="neo-brutalism"] :is(.fan-card:hover :is(h2, h3, h4, h5), .fan-land:hover .fan-land-head :is(h2, h3, h4, h5), .fan-linkcard:hover :is(.fan-linkhead b, .fan-linkhost)) { color: var(--nb-on); }
  :root[data-style="neo-brutalism"] :is(.fan-linkcard, .fan-iface):active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--nb-pop); }
}
/* anything set in the item's own colour, lifted toward the ink, at full
   strength (several were faded to .75 to sit back on the old dark) */
:root[data-style="neo-brutalism"] :is(.fan-tiletext i, .fan-card .fan-sub, .fan-land-sub, .fan-num, .fan-ride.is-big i, .fan-quote figcaption, .fan-linkhead i, .fan-iface-k, .fan-100-k, .fan-intro-when b) {
  color: color-mix(in srgb, var(--a) 25%, var(--nb-ink)); opacity: 1;
}
:root[data-style="neo-brutalism"] .fan-ride.is-big b::before { color: color-mix(in srgb, var(--a) 25%, var(--nb-ink)); }
/* the Springfield door: its arrow is a black key with a yellow glyph */
:root[data-style="neo-brutalism"] .fan-iface-a { border: 0; border-radius: 0; background: var(--nb-ink); color: var(--nb-yellow); }
/* "not on Steam" keeps its swatch's colour: the grey wash was for the dark */
:root[data-style="neo-brutalism"] .fan-tile.is-na .fan-swatch { filter: none; opacity: 1; }
:root[data-style="neo-brutalism"] .fan-tile.is-na .fan-tiletext b { color: var(--nb-on); }

/* the swatch: a flat chip of the item's colour in an ink line */
:root[data-style="neo-brutalism"] .fan-swatch { border-radius: 0; box-shadow: 0 0 0 2px var(--nb-ink); }

/* tags are stickers: cream, in a 2px line, the lettering in the item's colour */
:where(:root[data-style="neo-brutalism"]) .fan-tag { background: var(--nb-cream); border: 2px solid var(--nb-ink); }
:where(:root[data-style="neo-brutalism"]) .fan-visit { color: var(--s-accent); border-bottom: 2px solid currentColor; }
/* the Play button is a black key; playing, it lights yellow */
:where(:root[data-style="neo-brutalism"]) .fan-hear { background: var(--nb-ink); color: var(--nb-cream); border: 2px solid var(--nb-ink); }
:root[data-style="neo-brutalism"] .fan-hear.is-playing { background: var(--nb-yellow); color: var(--nb-ink); border-color: var(--nb-ink); }
@media (hover: hover) {
  :root[data-style="neo-brutalism"] .fan-hear:not(.is-playing):hover { background: var(--nb-cream); color: var(--nb-ink); border-color: var(--nb-ink); }
  :where(:root[data-style="neo-brutalism"]) .fan-visit:hover { color: var(--nb-on); border-bottom-color: var(--nb-on); }
}
/* chips inside a card (hours, "not on Steam"): cream stickers too */
:root[data-style="neo-brutalism"] .fan-chips > * { background: var(--nb-cream); border: 2px solid var(--nb-ink); border-radius: 0; }

/* The quotes are speech balloons: the pink cel, and a tail under its left
   corner pointing at whoever said it. */
:root[data-style="neo-brutalism"] .fan-quote { position: relative; }
:root[data-style="neo-brutalism"] .fan-quote::before,
:root[data-style="neo-brutalism"] .fan-quote::after {
  content: ""; position: absolute; top: 100%; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
:root[data-style="neo-brutalism"] .fan-quote::before { left: 22px; width: 22px; height: 15px; margin-top: 3px; background: var(--nb-ink); }
:root[data-style="neo-brutalism"] .fan-quote::after { left: 25px; width: 14px; height: 9.5px; margin-top: 0; background: var(--nb-fill); }

/* the "first watched" note: a pink cel, all four sides inked. Its old
   wash faded out to the right, so it could run wider than the column; a
   solid card lines up with the sections under it instead */
:root[data-style="neo-brutalism"] .fan-intro-when {
  border-radius: 0; max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: var(--gutter);
}

/* the interface peek: Springfield as this style draws it, its violet sky
   under the same yellow bar as its header, in an ink line */
:root[data-style="neo-brutalism"] .fan-peek {
  background: #4b2a92; border: 3px solid var(--nb-ink); border-radius: 0; box-shadow: var(--nb-drop);
}
:root[data-style="neo-brutalism"] .fan-peek-bar { background: var(--nb-yellow); color: var(--nb-ink); border-bottom: 3px solid var(--nb-ink); }
:root[data-style="neo-brutalism"] .fan-peek-dot { border-radius: 0; background: var(--nb-ink); box-shadow: none; }
:root[data-style="neo-brutalism"] .fan-peek-live { color: var(--nb-ink); }

/* the links under the title: cream keys, the fill their edge, the line
   drawn round them and the violet shadow under them */
:root[data-style="neo-brutalism"] :is(.fan-link, .fp-go, .fan-sortbtn, .wsib-i :where(a)) {
  border: 0; border-radius: 0;
  background: var(--nb-cream); color: var(--nb-ink);
  box-shadow: var(--nb-ring), 4px 4px 0 2.5px var(--nb-pop);
  transition: transform .12s ease, box-shadow .12s ease;
}
:root[data-style="neo-brutalism"] .fan-link { padding: calc(0.6rem + 1px) calc(1.1rem + 1px); }
:root[data-style="neo-brutalism"] .fp-go { padding: calc(0.55rem + 1px) calc(1.15rem + 1px); background: var(--nb-yellow); }
:root[data-style="neo-brutalism"] .wsib-i a { padding: calc(0.5rem + 1px) calc(0.75rem + 1px) calc(0.5rem + 1px) calc(0.9rem + 1px); }
:root[data-style="neo-brutalism"] .wsib-a { color: color-mix(in srgb, var(--a) 25%, var(--nb-ink)); opacity: 1; }
:root[data-style="neo-brutalism"] .fan-sortbtn { padding: calc(0.34rem + 1px) calc(0.62rem + 1px) calc(0.3rem + 1px); background: var(--nb-panel); color: var(--ink-dim); }
:root[data-style="neo-brutalism"] .fan-sortbtn.is-on { background: var(--nb-yellow); color: var(--nb-ink); }
@media (hover: hover) {
  :root[data-style="neo-brutalism"] :is(.fan-link, .fp-go:not(:disabled), .fan-sortbtn, .wsib-i :where(a)):hover {
    color: var(--nb-ink); transform: translate(-2px, -2px);
    box-shadow: var(--nb-ring), 6px 6px 0 2.5px var(--nb-pop);
  }
  :root[data-style="neo-brutalism"] .fan-sortbtn:not(.is-on):hover { background: var(--nb-cream); }
  :root[data-style="neo-brutalism"] :is(.fan-link, .fp-go:not(:disabled), .fan-sortbtn, .wsib-i :where(a)):active {
    transform: translate(3px, 3px); box-shadow: var(--nb-ring), 1px 1px 0 2.5px var(--nb-pop);
  }
}

/* the folded sections open from a strip of the night a step up, inked */
:root[data-style="neo-brutalism"] .fan-fold-sum {
  padding: 0.85rem 1rem; background: var(--nb-panel);
  border: 3px solid var(--nb-ink); box-shadow: var(--nb-drop);
}
:root[data-style="neo-brutalism"] .fan-fold-i { color: var(--nb-yellow); }

/* ── the couch gag: a strip of channel keys, each its own colour ──
   The strip is a cel like everything else: Springfield's cream inside the
   ink line, not a black outside the palette. On the cream a key's ring is
   drawn in ink, as on every other fill. */
:root[data-style="neo-brutalism"] .fp-bar {
  --s-focus: var(--nb-ink);
  gap: 9px; padding: 9px; background: var(--nb-cream);
  border: 3px solid var(--nb-ink); border-radius: 0; box-shadow: var(--nb-drop);
}
:where(:root[data-style="neo-brutalism"]) .fp-slot {
  background: var(--c); border: 2px solid var(--nb-ink);
  box-shadow: 3px 3px 0 var(--nb-pop);
}
:root[data-style="neo-brutalism"] .fp-slot svg { stroke: var(--nb-ink); stroke-width: 1.9; }
:root[data-style="neo-brutalism"] .fp-slot i { background: var(--nb-ink); opacity: 1; }
:root[data-style="neo-brutalism"] .fp-slot u { padding: 0 2px; background: var(--nb-cream); color: var(--nb-ink); }
/* the chosen gag is pressed into its shadow, with a cream rim */
:root[data-style="neo-brutalism"] .fp-slot.is-sel {
  background: var(--c); border-color: var(--nb-ink);
  transform: translate(3px, 3px); box-shadow: inset 0 0 0 3px var(--nb-cream);
}
@media (hover: hover) {
  :root[data-style="neo-brutalism"] .fp-slot:not(.is-sel):hover {
    border-color: var(--nb-ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--nb-pop);
  }
}
:root[data-style="neo-brutalism"] .fp-out { border-radius: 0; }

/* ── the signature: the chalkboard gag joins the system ──────────────────
   The board keeps its line and its chalk and loses its varnish: a flat wood
   frame in an ink line with the violet shadow every cel casts, a flat slate
   inside a second ink line, chalk with no glow, and on the tray the stick
   and the eraser Springfield's own board keeps, so the two boards match. */
:root[data-style="neo-brutalism"] .sim-frame {
  background: #b9824a; border: 3px solid var(--nb-ink); border-radius: 0;
  box-shadow: 8px 8px 0 var(--nb-pop);
}
:root[data-style="neo-brutalism"] .sim-chalk {
  background: #2f5d45; border: 3px solid var(--nb-ink); border-radius: 0; box-shadow: none;
}
:root[data-style="neo-brutalism"] .sim-chalk::before { background: none; }
:root[data-style="neo-brutalism"] .sim-chalk p { text-shadow: none; color: #f6f8f0; }
:root[data-style="neo-brutalism"] .sim-tray {
  position: relative; height: 14px; margin-top: 0.55rem; border-radius: 0;
  background: #8f5f30; border: 3px solid var(--nb-ink); box-shadow: none;
}
:root[data-style="neo-brutalism"] .sim-tray::before,
:root[data-style="neo-brutalism"] .sim-tray::after {
  content: ""; position: absolute; bottom: 100%; border: 2px solid var(--nb-ink);
}
:root[data-style="neo-brutalism"] .sim-tray::before { left: 12%; width: 30px; height: 9px; background: #fff; }
:root[data-style="neo-brutalism"] .sim-tray::after { right: 14%; width: 52px; height: 14px; background: #3a3a48; box-shadow: inset 0 -5px 0 #d9c6a0; }
:root[data-style="neo-brutalism"] .sim-board-cap { font-size: 0.66rem; }

/* the donut in the hero, inked like everything else and cast in violet */
:root[data-style="neo-brutalism"] .fan-art--sim .fan-art-fig svg { filter: drop-shadow(8px 8px 0 var(--nb-pop)); }
:root[data-style="neo-brutalism"] :is(.dnt-dough, .dnt-holerim) { stroke: var(--nb-ink); stroke-width: 6; }
:root[data-style="neo-brutalism"] .dnt-icing { stroke: var(--nb-ink); stroke-width: 5; }
:root[data-style="neo-brutalism"] .dnt-sprinkles rect { stroke: var(--nb-ink); stroke-width: 2; }

/* the photographs from the ride, as prints in an ink line */
:root[data-style="neo-brutalism"] .been a { border: 3px solid var(--nb-ink); border-radius: 0; box-shadow: var(--nb-drop); }

/* ── 3. Springfield: the town on the same night ────────────────────────────
   The town was already drawn in the show's line and flat colour, so it
   keeps its drawing, its clock, the board, the couch gag and the lights-out,
   and takes the world page's night, corners and shadows. Its sky still
   follows the visitor's clock, through three Treehouse violets; with
   Increase Contrast it keeps its own sky, where its ink reads strongest. */
@media not (prefers-contrast: more) {
  :root[data-style="neo-brutalism"] .sf {
    --sky-1: #4b2a92; --sky-2: #4b2a92; --cloud: #7656c4; --sun: #fff2a8;
    --hill: #4f9a3a; --hill-2: #3c7f2e; --lawn: #5fae42;
  }
  :root[data-style="neo-brutalism"] .sf.is-dusk {
    --sky-1: #33196e; --sky-2: #33196e; --cloud: #f08a3a; --sun: #ff9f3a;
    --hill: #3f7a33; --hill-2: #2f6328; --lawn: #4a8a3c;
  }
  :root[data-style="neo-brutalism"] .sf.is-night {
    --sky-1: var(--nb-night); --sky-2: var(--nb-night); --cloud: #3a2470; --sun: #f3f0d8;
    --hill: #2f5a30; --hill-2: #224a28; --lawn: #3a6a34;
  }
  /* flat: one violet, no ramp */
  :root[data-style="neo-brutalism"] .sf-sky { background: var(--sky-1); }
}
/* the town's frame is never seen (the drawing's own sky covers it), and it
   is cream: the halo every street sign in the town is read on */
:root[data-style="neo-brutalism"] .sf-frame { background: var(--cream); border-radius: 0; }

:root[data-style="neo-brutalism"] .sf {
  --ink-2: #3a3548;                 /* 5.8:1 on the pink, the darkest fill */
  --sf-drop: 8px 8px 0 var(--nb-pop);
}
@media (prefers-contrast: more) {
  :root[data-style="neo-brutalism"] .sf { --sf-drop: 8px 8px 0 var(--nb-ink); }
  :root[data-style="neo-brutalism"] .sf:not(.is-night) .sf-main { --s-focus: var(--nb-ink); }
}

/* the cards: the world page's three fills, square, in the town's own ink
   line, and the violet shadow on the night */
:root[data-style="neo-brutalism"] .sf-card {
  --s-focus: var(--nb-ink);
  background: var(--nb-fill, var(--cream)); border-radius: 0; box-shadow: var(--sf-drop);
}
:root[data-style="neo-brutalism"] :is(.sf-townwrap, .sf-card:has(.sf-file)) { --nb-fill: var(--nb-sky); }
:root[data-style="neo-brutalism"] :is(.sf-boardwrap, .sf-card--plain) { --nb-fill: var(--nb-pink); }
:root[data-style="neo-brutalism"] :is(.sf-tvwrap, .sf-guidewrap) { --nb-fill: var(--nb-yellow); }
:root[data-style="neo-brutalism"] :is(.sf-sub, .sf-kicker) { border-radius: 0; box-shadow: var(--sf-drop); }
:root[data-style="neo-brutalism"] .sf-kicker { box-shadow: 4px 4px 0 var(--nb-pop); }

/* the name, lettered exactly as the world page's title */
:root[data-style="neo-brutalism"] .sf-title { text-shadow: 0 0.06em 0 var(--nb-ink), 0.06em 0.12em 0 var(--nb-pop); }
@media (prefers-contrast: more) {
  :root[data-style="neo-brutalism"] .sf-title { text-shadow: 0 0.06em 0 var(--nb-ink); }
}

/* nothing on the street is rounded: the signs, keys, rooms and the board */
:root[data-style="neo-brutalism"] :is(.sf-exit, .sf-top-sign b, .sf-btn, .sf-room, .sf-board, .sf-tray, .sf-stick, .sf-eraser, .sf-guide a, .sf-ch, .sf-off) { border-radius: 0; }
:root[data-style="neo-brutalism"] .sf-room::before { border-radius: 0; }
:root[data-style="neo-brutalism"] .sf-top { box-shadow: 0 5px 0 var(--nb-pop); }
/* the board loses its varnish, like the world page's: flat slate inside
   an ink line where the wood meets it */
:root[data-style="neo-brutalism"] .sf-board { background: #2f5d45; box-shadow: inset 0 0 0 3px var(--nb-ink); }
:root[data-style="neo-brutalism"] .sf-chalk p { text-shadow: none; }
:root[data-style="neo-brutalism"] .sf-off { box-shadow: 6px 6px 0 var(--nb-pop); }
/* "Turn off the TV" stands on the sky itself, and an ink edge vanishes into
   a violet one (1.65:1). On the violet skies its edge is the yellow of its
   own lettering and knob, 7:1 or better, with the ink line drawn round it;
   with Increase Contrast the town keeps its own sky and its own ink edge. */
@media not (prefers-contrast: more) {
  :root[data-style="neo-brutalism"] .sf-off {
    border-color: var(--nb-yellow);
    box-shadow: 0 0 0 2px var(--nb-ink), 6px 6px 0 2px var(--nb-pop);
  }
}

/* Every key, room and listing draws a ring in the page's focus colour
   (ink on a fill, yellow on the night); several drew none at all. */
:root[data-style="neo-brutalism"] :is(.sf-b, .sf-room, .sf-guide a, .sf-file a, .sf-btn, .sf-off, .sf-exit):focus-visible {
  outline: 3px solid var(--s-focus); outline-offset: 3px;
}
:root[data-style="neo-brutalism"] .sf-top { --s-focus: var(--nb-ink); }

/* The world button: a donut-pink key in the town's ink line, the one loud
   thing in the header, with the violet shadow when it stands on the night. */
:root[data-style="neo-brutalism"] .sf .iw {
  --iw-a: #ff94c6;
  /* the header keeps its height: the border stays 1px and the rest of the
     line is drawn outside it */
  border: 1px solid var(--nb-ink); border-radius: 0;
  background: var(--nb-pink); color: var(--nb-ink);
  box-shadow: 0 0 0 1.5px var(--nb-ink), 3px 3px 0 1.5px var(--nb-ink);
}
:root[data-style="neo-brutalism"] .sf .iw--foot { box-shadow: 0 0 0 1.5px var(--nb-ink), 6px 6px 0 1.5px var(--nb-pop); }
:root[data-style="neo-brutalism"] .sf .iw-i { border-radius: 0; background: var(--nb-ink); color: var(--nb-pink); }
:root[data-style="neo-brutalism"] .sf .iw-k { opacity: 1; color: #3a2440; }
:root[data-style="neo-brutalism"] .sf :is(.iw-t b, .iw-a) { color: var(--nb-ink); opacity: 1; }
:root[data-style="neo-brutalism"] .sf .iw:focus-visible { outline: 3px solid var(--s-focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  :root[data-style="neo-brutalism"] .sf .iw:hover {
    transform: translate(-2px, -2px); background: var(--nb-pink); border-color: var(--nb-ink);
    box-shadow: 0 0 0 1.5px var(--nb-ink), 5px 5px 0 1.5px var(--nb-ink);
  }
  :root[data-style="neo-brutalism"] .sf .iw--foot:hover { box-shadow: 0 0 0 1.5px var(--nb-ink), 8px 8px 0 1.5px var(--nb-pop); }
}
