/* Aurora, for /worlds/green-lantern/ and /power-battery/ (style: aurora).

   Willpower is green light, and a Lantern's constructs are light given
   shape. So the night is deep space with slow curtains of emerald light
   hanging in it, and every card is a construct: a solid dark core, lit from
   within, with the light rising along its lower edge and catching its rim.
   The words always sit on that solid core, never on the glow. The emotional
   spectrum's six other colours appear only in their own section, each tile
   lit in its own light; everywhere else the light is green.

   The signature is the ring's charge. The aurora is short and low at the
   top of the page, and as you read down it climbs the sky, until at the
   foot the curtains reach the top of the screen: a full charge. It is
   driven by the scroll, moves transform only, and under Reduce Motion (or
   without scroll-driven animation) it holds still at half charge.

   The Power Battery keeps its lantern, its oath, its seven corps and its
   constructs. Its glow (the lamp's light reaching into the sector) becomes
   the same curtains, filling the same way as you scroll, in whichever
   corps' light the switch has picked, and as bright as the ring is charged:
   the charge drains while the page is open and the oath fills it again.

   Not Harry Potter's Ethereal, which is built at the same time: that is
   silver mist and stillness; this is saturated colour in motion.

   One file for the pair, in three parts: what both share (the curtain, the
   palette, the lit panel); the world page; the Power Battery. The spec:
   docs/superpowers/specs/2026-10-11-page-styles-design.md, section 9,
   "Green Lantern: Aurora". Everything is scoped to :root[data-style=
   "aurora"]. Material rules on shared components use :where() for that
   scope, so they weigh what the rule they restyle weighs and each page's
   own hover, focus and pressed states still win. */

/* ── 1. shared: the curtain, the palette, the lit panel ─────────────────── */
:root[data-style="aurora"] {
  /* The curtain: about a hundred and eighty rays, each bright at its foot
     and fading upward, their feet tracing one long fold that sweeps up
     across the sky, with a fainter fold hung higher behind it, blurred
     into silk. Drawn once, in white, and used as a mask, so each page
     colours it with CSS (the Power Battery in whichever corps is lit). */
  --au-curtain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='r' x2='0' y1='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.6'/%3E%3Cstop offset='.04' stop-color='%23fff'/%3E%3Cstop offset='.3' stop-color='%23fff' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='q' x2='0' y1='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.18' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-5%25' y='-20%25' width='110%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='4 8'/%3E%3C/filter%3E%3Cfilter id='g' x='-10%25' y='-50%25' width='120%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='22'/%3E%3C/filter%3E%3C/defs%3E%3Cpolyline points='-40,786 40,791 120,775 200,774 280,792 360,787 440,741 520,684 600,656 680,649 760,626 840,582 920,553 1000,568 1080,603 1160,615 1240,607 1320,613 1400,646 1480,671 1560,654 1640,612' fill='none' stroke='%23fff' stroke-width='34' stroke-opacity='.75' filter='url(%23g)'/%3E%3Cg filter='url(%23b)'%3E%3Cg fill='url(%23q)'%3E%3Crect x='254' y='240' width='4' height='177' opacity='.05'/%3E%3Crect x='269' y='232' width='6' height='183' opacity='.07'/%3E%3Crect x='290' y='202' width='8' height='210' opacity='.11'/%3E%3Crect x='306' y='199' width='8' height='213' opacity='.15'/%3E%3Crect x='325' y='189' width='8' height='222' opacity='.21'/%3E%3Crect x='344' y='158' width='8' height='253' opacity='.24'/%3E%3Crect x='363' y='163' width='4' height='249' opacity='.27'/%3E%3Crect x='375' y='126' width='8' height='287' opacity='.36'/%3E%3Crect x='394' y='129' width='8' height='286' opacity='.42'/%3E%3Crect x='410' y='138' width='4' height='279' opacity='.45'/%3E%3Crect x='429' y='113' width='6' height='305' opacity='.45'/%3E%3Crect x='446' y='128' width='8' height='293' opacity='.51'/%3E%3Crect x='459' y='102' width='4' height='322' opacity='.57'/%3E%3Crect x='471' y='116' width='6' height='310' opacity='.54'/%3E%3Crect x='488' y='117' width='6' height='313' opacity='.58'/%3E%3Crect x='505' y='114' width='8' height='319' opacity='.66'/%3E%3Crect x='524' y='111' width='4' height='326' opacity='.70'/%3E%3Crect x='533' y='113' width='4' height='327' opacity='.62'/%3E%3Crect x='545' y='120' width='8' height='322' opacity='.55'/%3E%3Crect x='558' y='112' width='6' height='333' opacity='.63'/%3E%3Crect x='569' y='146' width='6' height='302' opacity='.56'/%3E%3Crect x='583' y='125' width='4' height='326' opacity='.48'/%3E%3Crect x='592' y='148' width='4' height='304' opacity='.47'/%3E%3Crect x='611' y='160' width='4' height='296' opacity='.50'/%3E%3Crect x='620' y='151' width='8' height='306' opacity='.40'/%3E%3Crect x='636' y='169' width='8' height='291' opacity='.37'/%3E%3Crect x='659' y='178' width='8' height='285' opacity='.30'/%3E%3Crect x='682' y='220' width='8' height='244' opacity='.23'/%3E%3Crect x='705' y='247' width='6' height='218' opacity='.18'/%3E%3Crect x='716' y='251' width='8' height='215' opacity='.16'/%3E%3Crect x='739' y='241' width='4' height='224' opacity='.11'/%3E%3Crect x='751' y='258' width='4' height='207' opacity='.08'/%3E%3Crect x='766' y='260' width='6' height='204' opacity='.07'/%3E%3Crect x='783' y='285' width='6' height='178' opacity='.05'/%3E%3Crect x='1075' y='186' width='8' height='194' opacity='.06'/%3E%3Crect x='1091' y='169' width='8' height='207' opacity='.08'/%3E%3Crect x='1110' y='157' width='8' height='214' opacity='.12'/%3E%3Crect x='1129' y='159' width='8' height='208' opacity='.16'/%3E%3Crect x='1145' y='125' width='8' height='239' opacity='.18'/%3E%3Crect x='1161' y='138' width='4' height='224' opacity='.25'/%3E%3Crect x='1180' y='84' width='4' height='276' opacity='.31'/%3E%3Crect x='1192' y='101' width='4' height='257' opacity='.35'/%3E%3Crect x='1211' y='68' width='4' height='289' opacity='.33'/%3E%3Crect x='1226' y='75' width='8' height='282' opacity='.44'/%3E%3Crect x='1249' y='68' width='4' height='289' opacity='.47'/%3E%3Crect x='1264' y='33' width='8' height='325' opacity='.46'/%3E%3Crect x='1283' y='36' width='8' height='323' opacity='.59'/%3E%3Crect x='1299' y='33' width='6' height='328' opacity='.62'/%3E%3Crect x='1320' y='62' width='4' height='301' opacity='.69'/%3E%3Crect x='1329' y='52' width='8' height='313' opacity='.63'/%3E%3Crect x='1345' y='49' width='6' height='318' opacity='.62'/%3E%3Crect x='1362' y='68' width='8' height='302' opacity='.63'/%3E%3Crect x='1375' y='56' width='4' height='318' opacity='.64'/%3E%3Crect x='1390' y='52' width='8' height='324' opacity='.55'/%3E%3Crect x='1403' y='75' width='6' height='304' opacity='.57'/%3E%3Crect x='1414' y='73' width='6' height='308' opacity='.49'/%3E%3Crect x='1428' y='87' width='8' height='298' opacity='.47'/%3E%3Crect x='1447' y='87' width='6' height='302' opacity='.39'/%3E%3Crect x='1468' y='108' width='6' height='285' opacity='.34'/%3E%3Crect x='1479' y='139' width='6' height='257' opacity='.30'/%3E%3Crect x='1496' y='151' width='6' height='248' opacity='.29'/%3E%3Crect x='1507' y='151' width='6' height='249' opacity='.22'/%3E%3Crect x='1528' y='194' width='6' height='210' opacity='.16'/%3E%3Crect x='1542' y='167' width='4' height='239' opacity='.17'/%3E%3Crect x='1551' y='186' width='8' height='221' opacity='.12'/%3E%3Crect x='1570' y='217' width='6' height='193' opacity='.09'/%3E%3Crect x='1584' y='231' width='6' height='179' opacity='.07'/%3E%3Crect x='1598' y='235' width='8' height='176' opacity='.05'/%3E%3C/g%3E%3Cg fill='url(%23r)'%3E%3Crect x='-10' y='322' width='12' height='485' opacity='.92'/%3E%3Crect x='6' y='258' width='14' height='552' opacity='1.00'/%3E%3Crect x='24' y='207' width='10' height='602' opacity='1.00'/%3E%3Crect x='36' y='236' width='5' height='568' opacity='1.00'/%3E%3Crect x='47' y='227' width='10' height='575' opacity='1.00'/%3E%3Crect x='63' y='248' width='10' height='553' opacity='1.00'/%3E%3Crect x='79' y='328' width='14' height='471' opacity='1.00'/%3E%3Crect x='99' y='360' width='8' height='433' opacity='1.00'/%3E%3Crect x='109' y='389' width='8' height='404' opacity='.94'/%3E%3Crect x='124' y='417' width='8' height='372' opacity='.97'/%3E%3Crect x='139' y='395' width='6' height='388' opacity='.76'/%3E%3Crect x='149' y='427' width='12' height='356' opacity='.70'/%3E%3Crect x='167' y='389' width='14' height='399' opacity='.63'/%3E%3Crect x='187' y='401' width='14' height='387' opacity='.80'/%3E%3Crect x='205' y='366' width='10' height='421' opacity='.75'/%3E%3Crect x='220' y='393' width='5' height='398' opacity='.73'/%3E%3Crect x='228' y='428' width='5' height='363' opacity='.78'/%3E%3Crect x='237' y='446' width='12' height='352' opacity='.79'/%3E%3Crect x='252' y='433' width='6' height='369' opacity='.70'/%3E%3Crect x='263' y='457' width='5' height='349' opacity='.71'/%3E%3Crect x='276' y='487' width='10' height='320' opacity='.71'/%3E%3Crect x='291' y='509' width='12' height='296' opacity='.75'/%3E%3Crect x='311' y='517' width='5' height='295' opacity='.74'/%3E%3Crect x='321' y='495' width='10' height='316' opacity='.55'/%3E%3Crect x='336' y='519' width='6' height='289' opacity='.62'/%3E%3Crect x='351' y='503' width='14' height='301' opacity='.52'/%3E%3Crect x='371' y='544' width='6' height='254' opacity='.53'/%3E%3Crect x='383' y='526' width='10' height='265' opacity='.47'/%3E%3Crect x='398' y='518' width='12' height='265' opacity='.44'/%3E%3Crect x='416' y='516' width='10' height='256' opacity='.48'/%3E%3Crect x='433' y='500' width='6' height='255' opacity='.71'/%3E%3Crect x='446' y='487' width='6' height='264' opacity='.71'/%3E%3Crect x='458' y='432' width='8' height='307' opacity='.61'/%3E%3Crect x='471' y='407' width='6' height='326' opacity='.80'/%3E%3Crect x='483' y='324' width='5' height='394' opacity='.88'/%3E%3Crect x='493' y='308' width='6' height='404' opacity='.80'/%3E%3Crect x='501' y='247' width='12' height='461' opacity='1.00'/%3E%3Crect x='516' y='221' width='5' height='476' opacity='.96'/%3E%3Crect x='528' y='200' width='6' height='492' opacity='.85'/%3E%3Crect x='538' y='180' width='5' height='506' opacity='.92'/%3E%3Crect x='546' y='182' width='8' height='504' opacity='.98'/%3E%3Crect x='561' y='183' width='14' height='494' opacity='.84'/%3E%3Crect x='578' y='261' width='12' height='409' opacity='.95'/%3E%3Crect x='597' y='269' width='12' height='403' opacity='.78'/%3E%3Crect x='612' y='303' width='5' height='367' opacity='.77'/%3E%3Crect x='621' y='279' width='8' height='389' opacity='.95'/%3E%3Crect x='636' y='257' width='14' height='411' opacity='.75'/%3E%3Crect x='655' y='234' width='12' height='431' opacity='.79'/%3E%3Crect x='669' y='197' width='6' height='465' opacity='.86'/%3E%3Crect x='676' y='178' width='8' height='488' opacity='1.00'/%3E%3Crect x='687' y='112' width='6' height='546' opacity='.93'/%3E%3Crect x='696' y='107' width='12' height='550' opacity='1.00'/%3E%3Crect x='712' y='93' width='8' height='564' opacity='.97'/%3E%3Crect x='722' y='80' width='10' height='574' opacity='.95'/%3E%3Crect x='734' y='108' width='14' height='540' opacity='.87'/%3E%3Crect x='754' y='172' width='6' height='472' opacity='1.00'/%3E%3Crect x='764' y='216' width='12' height='416' opacity='1.00'/%3E%3Crect x='782' y='256' width='10' height='374' opacity='.76'/%3E%3Crect x='794' y='297' width='8' height='326' opacity='.72'/%3E%3Crect x='805' y='301' width='8' height='309' opacity='.85'/%3E%3Crect x='816' y='276' width='8' height='331' opacity='.81'/%3E%3Crect x='828' y='282' width='6' height='320' opacity='.58'/%3E%3Crect x='838' y='313' width='10' height='285' opacity='.59'/%3E%3Crect x='854' y='257' width='5' height='330' opacity='.53'/%3E%3Crect x='865' y='271' width='5' height='313' opacity='.51'/%3E%3Crect x='875' y='270' width='8' height='310' opacity='.67'/%3E%3Crect x='890' y='285' width='14' height='291' opacity='.51'/%3E%3Crect x='913' y='250' width='6' height='321' opacity='.55'/%3E%3Crect x='924' y='288' width='6' height='278' opacity='.57'/%3E%3Crect x='934' y='264' width='5' height='305' opacity='.59'/%3E%3Crect x='945' y='305' width='6' height='262' opacity='.61'/%3E%3Crect x='956' y='286' width='10' height='287' opacity='.60'/%3E%3Crect x='969' y='299' width='10' height='278' opacity='.76'/%3E%3Crect x='985' y='256' width='5' height='321' opacity='.69'/%3E%3Crect x='995' y='271' width='6' height='309' opacity='.74'/%3E%3Crect x='1010' y='251' width='6' height='335' opacity='.75'/%3E%3Crect x='1023' y='237' width='12' height='357' opacity='.72'/%3E%3Crect x='1042' y='268' width='10' height='333' opacity='.55'/%3E%3Crect x='1057' y='292' width='5' height='318' opacity='.54'/%3E%3Crect x='1066' y='277' width='10' height='336' opacity='.67'/%3E%3Crect x='1081' y='323' width='6' height='291' opacity='.67'/%3E%3Crect x='1092' y='311' width='6' height='313' opacity='.58'/%3E%3Crect x='1102' y='354' width='14' height='269' opacity='.63'/%3E%3Crect x='1121' y='294' width='14' height='335' opacity='.70'/%3E%3Crect x='1140' y='265' width='6' height='367' opacity='.79'/%3E%3Crect x='1153' y='202' width='8' height='427' opacity='.93'/%3E%3Crect x='1168' y='166' width='8' height='463' opacity='.95'/%3E%3Crect x='1177' y='118' width='6' height='512' opacity='1.00'/%3E%3Crect x='1184' y='116' width='8' height='512' opacity='.88'/%3E%3Crect x='1194' y='84' width='8' height='543' opacity='1.00'/%3E%3Crect x='1205' y='46' width='5' height='581' opacity='1.00'/%3E%3Crect x='1212' y='23' width='14' height='597' opacity='.93'/%3E%3Crect x='1228' y='43' width='12' height='575' opacity='1.00'/%3E%3Crect x='1243' y='97' width='8' height='521' opacity='1.00'/%3E%3Crect x='1257' y='119' width='10' height='499' opacity='.84'/%3E%3Crect x='1269' y='201' width='12' height='416' opacity='.98'/%3E%3Crect x='1288' y='218' width='12' height='407' opacity='.89'/%3E%3Crect x='1302' y='259' width='8' height='366' opacity='.95'/%3E%3Crect x='1314' y='247' width='12' height='382' opacity='.96'/%3E%3Crect x='1330' y='249' width='5' height='386' opacity='.91'/%3E%3Crect x='1340' y='206' width='12' height='430' opacity='.93'/%3E%3Crect x='1356' y='199' width='12' height='447' opacity='1.00'/%3E%3Crect x='1372' y='167' width='6' height='483' opacity='.97'/%3E%3Crect x='1382' y='157' width='12' height='497' opacity='.88'/%3E%3Crect x='1399' y='184' width='8' height='479' opacity='1.00'/%3E%3Crect x='1412' y='193' width='6' height='475' opacity='.88'/%3E%3Crect x='1425' y='237' width='8' height='435' opacity='.95'/%3E%3Crect x='1437' y='288' width='14' height='392' opacity='.72'/%3E%3Crect x='1456' y='326' width='12' height='357' opacity='.78'/%3E%3Crect x='1476' y='425' width='14' height='262' opacity='.64'/%3E%3Crect x='1496' y='403' width='5' height='279' opacity='.53'/%3E%3Crect x='1506' y='407' width='8' height='279' opacity='.63'/%3E%3Crect x='1522' y='415' width='6' height='264' opacity='.47'/%3E%3Crect x='1535' y='393' width='8' height='282' opacity='.46'/%3E%3Crect x='1551' y='420' width='14' height='251' opacity='.52'/%3E%3Crect x='1571' y='395' width='5' height='266' opacity='.51'/%3E%3Crect x='1586' y='361' width='10' height='291' opacity='.61'/%3E%3Crect x='1602' y='355' width='6' height='290' opacity='.64'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

  --au-sky: #02070a;               /* deep space, the ground of both pages */
  --au-c1: rgba(168, 255, 212, .95);   /* the curtain's foot, nearly white */
  --au-c2: rgba(61, 245, 160, .88);    /* emerald, the body of the light */
  --au-c3: rgba(25, 217, 180, .7);     /* jade, higher up */
  --au-c4: rgba(20, 184, 196, 0);      /* teal, where it fades out */
  /* the panel every word sits on: a solid dark core (the light is at its
     edges, never under the text) */
  --au-panel: rgba(3, 12, 12, .94);
  --au-panel-hi: rgba(6, 19, 18, .96);
  --au-drop: 0 24px 44px -28px rgba(0, 0, 0, .9);

  --bg: var(--au-sky);
  /* the reading inks, a step lighter than the site's, because the light
     can sit behind them (lighter only, never darker: base.css) */
  --ink-dim: #c6d0ca;
  --mute: #a2b1a9;
  --line: #173029;

  --s-surface: var(--au-panel);
  --s-surface-hi: var(--au-panel-hi);
  --s-edge: rgba(61, 245, 160, .24);
  --s-bw: 1px;
  --s-r: 18px;
  --s-r-sm: 999px;
  --s-lift: -3px;
  /* the Power Battery's own face, asked for in literal names because an
     interface defines no --serif or --sans on :root */
  --s-display: "Orbitron", "Space Grotesk", sans-serif;
  --s-display-w: 800;
  --s-display-ls: 0.04em;
  --s-focus: #8dffc8;

  /* the bars: deep-space glass with the aurora catching their edges */
  --s-bar: rgba(2, 10, 10, .74);
  --s-bar-edge: rgba(61, 245, 160, .22);
  --s-bar-blur: blur(20px) saturate(150%);
  --s-bar-shadow: inset 0 1px 0 rgba(141, 255, 200, .14), 0 18px 40px -18px rgba(0, 0, 0, .85), 0 -12px 36px -24px rgba(61, 245, 160, .45);

  /* space has no film grain, no circuit field and no lattice; the light
     under the pointer is a ring's, green */
  --s-grain: 0;
  --s-field: 0;
  --hud-grid: transparent;
  --hud-scan: transparent;
  --hud-sweep: transparent;
  --hud-lit: transparent;
  --hud-halo: rgba(61, 245, 160, .06);

  scrollbar-color: #1d4a3c var(--au-sky);
}
:root[data-style="aurora"] ::selection { background: #3df5a0; color: #02070a; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-style="aurora"] { --s-bar: rgba(2, 10, 10, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-style="aurora"] {
    --au-panel: rgb(3, 12, 12); --au-panel-hi: rgb(6, 19, 18);
    --s-bar: rgb(2, 10, 10); --s-bar-blur: none;
  }
}
/* Increase Contrast: inks above the site's own boost, rims that read, and
   the sky's light turned down behind the words */
@media (prefers-contrast: more) {
  :root[data-style="aurora"] {
    --ink-dim: #d6ded9; --mute: #bcc8c1; --line: #3d5a50;
    --au-panel: rgb(2, 9, 9); --s-edge: rgba(141, 255, 200, .5);
    --au-c1: rgba(168, 255, 212, .42); --au-c2: rgba(61, 245, 160, .4); --au-c3: rgba(25, 217, 180, .3);
  }
}

/* The charge. The near curtain grows up out of the horizon (the foot of
   the screen): low, short and dim at the top of the page, and reaching the
   top bar at full strength at the foot. The far one, hung higher, grows
   from its own foot and only lights up as the charge builds, so the top of
   the page is a low glow and the foot a full sky. */
@keyframes au-charge { from { transform: scaleY(.56); } to { transform: scaleY(1.05); } }
@keyframes au-charge-far { from { transform: scaleX(-1) scaleY(.56); opacity: .1; } to { transform: scaleX(-1) scaleY(1.05); opacity: .8; } }
@keyframes au-rise { from { opacity: .6; } to { opacity: 1; } }
/* and the slow drift of light across the sky, when motion is welcome */
@keyframes au-drift { from { translate: -3vw 0; } to { translate: 3vw 0; } }
@keyframes au-sway { from { translate: 2.5vw 0; } to { translate: -2.5vw 0; } }

/* ── 2. the world page: deep space over the sector ──────────────────────── */

/* The sky: deep space with the horizon's airglow. The two construct rings
   that turned in it retire; the curtains are the sky's motion now. */
:root[data-style="aurora"] .gl-sky {
  background: radial-gradient(120% 70% at 50% 100%, #06231d 0%, #031110 42%, #010508 100%);
}
:root[data-style="aurora"] .gl-glow {
  background: radial-gradient(70% 34% at 50% 100%, rgba(61, 245, 160, .42), transparent 72%);
}
:root[data-style="aurora"] .gl-ring { display: none; }

/* The curtains, on the page's own fixed layers above the sky and below
   every word: the near one (body::before, which drew the lattice) and a
   far one, mirrored and hung higher (body::after, which drew the sweep).
   Each is wider than the screen so its drift never shows an edge. */
:root[data-style="aurora"] body::before,
:root[data-style="aurora"] body::after {
  inset: 0 -4vw; width: auto; height: auto;
  -webkit-mask: var(--au-curtain) 50% 100% / max(100%, 1100px) 100% no-repeat;
  mask: var(--au-curtain) 50% 100% / max(100%, 1100px) 100% no-repeat;
  transform-origin: 50% 100%;
  transform: scaleY(.76);
  will-change: transform;
}
:root[data-style="aurora"] body::before {
  background: linear-gradient(0deg, transparent 12%, var(--au-c1) 23%, var(--au-c2) 34%, var(--au-c3) 56%, var(--au-c4) 90%);
  opacity: .82;
}
:root[data-style="aurora"] body::after {
  display: block; animation: none; top: 0;
  background: linear-gradient(0deg, transparent 30%, rgba(61, 245, 160, .36) 46%, rgba(25, 217, 180, .3) 64%, var(--au-c4) 96%);
  -webkit-mask-size: max(100%, 1100px) 78%; mask-size: max(100%, 1100px) 78%;
  -webkit-mask-position: 50% 0; mask-position: 50% 0;
  transform-origin: 50% 40%;
  transform: scaleX(-1) scaleY(.76);
  opacity: .5;
}
/* narrower than 900px the words take the whole width, so the whole
   curtain burns lower */
@media (max-width: 900px) {
  :root[data-style="aurora"] { --au-c1: rgba(168, 255, 212, .72); --au-c2: rgba(61, 245, 160, .64); --au-c3: rgba(25, 217, 180, .5); }
}
/* A phone is all reading column, so there the curtain's foot stands
   behind the tab bar, at the bottom edge of the screen, and only its rays
   rise into the page: the horizon the tab bar sits on. */
@media (max-width: 640px) {
  :root[data-style="aurora"] body::before {
    background: linear-gradient(0deg, rgba(168, 255, 212, .95) 0 2.5%, rgba(61, 245, 160, .8) 5%, rgba(61, 245, 160, .26) 8%, rgba(25, 217, 180, .22) 40%, transparent 85%);
    -webkit-mask-size: 1100px 180%; mask-size: 1100px 180%;
    -webkit-mask-position: 0 43%; mask-position: 0 43%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="aurora"] body::before { animation: au-drift 52s ease-in-out infinite alternate; }
  :root[data-style="aurora"] body::after { animation: au-sway 37s ease-in-out infinite alternate; }
  @supports (animation-timeline: scroll()) {
    :root[data-style="aurora"] body::before {
      animation: au-drift 52s ease-in-out infinite alternate, au-charge linear both, au-rise linear both;
      animation-timeline: auto, scroll(root), scroll(root);
    }
    :root[data-style="aurora"] body::after {
      animation: au-sway 37s ease-in-out infinite alternate, au-charge-far linear both;
      animation-timeline: auto, scroll(root);
    }
  }
}

/* the scroll rail at the left edge is the same charge, in the same light */
:root[data-style="aurora"] .rail-line i { background: linear-gradient(#19d9b4, #8dffc8); }

/* the tab bar takes the world's light; its current tab is lit from within */
:root[data-style="aurora"] .tabbar { --s-accent: #8dffc8; }
:root[data-style="aurora"] .tabbar a.is-current {
  background: linear-gradient(0deg, rgba(61, 245, 160, .16), rgba(61, 245, 160, .03));
  box-shadow: inset 0 1px 0 rgba(141, 255, 200, .14), inset 0 -10px 16px -10px rgba(61, 245, 160, .55);
}

/* ── the lit panel ──
   Every surface that holds words is a construct: the solid core, a rim in
   the item's own light (--a, set on each tile, row and quote), the light
   catching the top edge and rising from the bottom one. The tokens are set
   on each panel, where its --a is known, so the page's own hover rules
   light it brighter in its own colour. */
:where(:root[data-style="aurora"]) :is(.fan-card, .fan-tile, .fan-linkcard, .fan-rankrow, .fan-intro-when, .fan-quote, .fan-iface) {
  --au-glow: color-mix(in srgb, var(--a) 42%, transparent);
  --s-shadow-hi: inset 0 1px 0 color-mix(in srgb, var(--a) 46%, transparent), inset 0 -40px 46px -34px color-mix(in srgb, var(--a) 62%, transparent), 0 26px 50px -26px rgba(0, 0, 0, .95), 0 0 34px -18px var(--a);
  background: var(--au-panel);
  border: 1px solid color-mix(in srgb, var(--a) 28%, transparent);
  border-radius: var(--s-r);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--a) 30%, transparent), inset 0 -34px 40px -32px var(--au-glow), var(--au-drop);
}
/* the oath, the "first watched" note and the interface door keep their
   place but lose the old coloured spine: a band of light along the top edge
   stands in for it, the curtain's foot drawn small */
:where(:root[data-style="aurora"]) :is(.fan-quote, .fan-intro-when) { position: relative; }
:root[data-style="aurora"] :is(.fan-quote, .fan-intro-when, .fan-iface)::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #8dffc8 30%, #3df5a0 62%, transparent);
  box-shadow: 0 2px 14px 1px rgba(61, 245, 160, .55);
  pointer-events: none;
}
:where(:root[data-style="aurora"]) .fan-iface { position: relative; border-color: rgba(61, 245, 160, .55); --au-glow: rgba(61, 245, 160, .5); }
@media (hover: hover) {
  /* the rows and the quotes have hover fills of their own that see through
     to the sky; here they stay solid and light up instead */
  :root[data-style="aurora"] :is(.fan-rankrow, .fan-quote, .fan-intro-when):hover {
    background: var(--au-panel-hi); box-shadow: var(--s-shadow-hi);
    border-color: color-mix(in srgb, var(--a) 55%, transparent);
  }
  :where(:root[data-style="aurora"]) :is(.fan-tile, .fan-linkcard, .fan-iface):hover { box-shadow: var(--s-shadow-hi); }
}

/* an item's own colour (a tile's emotion, a card's subtitle, its tag) is
   lifted a quarter toward white, so the red and the indigo hold their
   contrast on the dark core; and the smallest labels come up to the
   site's floor of 0.66rem */
:root[data-style="aurora"] :is(.fan-tiletext i, .fan-card .fan-sub) { color: color-mix(in srgb, var(--a) 75%, #fff); opacity: 1; }
:where(:root[data-style="aurora"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: color-mix(in srgb, var(--a) 75%, #fff); }
:root[data-style="aurora"] :is(.fan-tag, .fan-sub, .fan-meta, .fan-when-k, .fan-rankhead i, .fan-quote figcaption, .fan-tiles--compact .fan-tiletext i, .gl-art figcaption) { font-size: 0.66rem; }
:where(:root[data-style="aurora"]) .fan-tag { border-color: color-mix(in srgb, var(--a) 50%, transparent); }
:root[data-style="aurora"] .fan-num { color: color-mix(in srgb, var(--a) 75%, #fff); opacity: 1; }

/* the spectrum: each corps' tile lit in its own light, its swatch a short
   upright band of that light, the way the curtain's rays stand */
:root[data-style="aurora"] .fan-swatch {
  width: 4px; height: 1.5rem; margin-top: 2px; border-radius: 2px;
  background: linear-gradient(0deg, var(--a), color-mix(in srgb, var(--a) 40%, #fff));
  box-shadow: 0 0 12px 1px var(--a);
}

/* pills: the same core and a rim of the light, bright enough to read as a
   control; the siblings at the foot are the same */
:where(:root[data-style="aurora"]) :is(.fan-link, .wsib-i a) {
  background: var(--au-panel);
  border-color: rgba(61, 245, 160, .5);
  box-shadow: inset 0 -12px 16px -12px rgba(61, 245, 160, .4);
}
:where(:root[data-style="aurora"]) .fan-iface-a { border-color: rgba(61, 245, 160, .55); }

/* ── headings in the Power Battery's Orbitron; reading text stays Inter ──
   The title is lettered the way the Power Battery letters its own: pale
   green light with the glow round it. */
:root[data-style="aurora"] .fan-title {
  font-family: var(--s-display); font-weight: var(--s-display-w); letter-spacing: var(--s-display-ls);
  font-size: clamp(2rem, 6.2vw, 4.6rem); line-height: 1.02; text-transform: uppercase;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #d9ffe9; -webkit-text-fill-color: currentColor;
  text-shadow: 0 0 28px rgba(61, 245, 160, .55), 0 0 2px rgba(141, 255, 200, .5);
}
:root[data-style="aurora"] :is(.fan-card :is(h2, h3, h4, h5), .fan-rankhead b, .fan-tiletext b, .fan-linkhead b, .wsib-h b) {
  font-family: var(--s-display); font-weight: 700; letter-spacing: 0.01em;
}
:root[data-style="aurora"] .fan-card :is(h2, h3, h4, h5) { font-size: 1rem; line-height: 1.3; }
:root[data-style="aurora"] :is(.fan-rankhead b, .fan-linkhead b) { font-size: 0.95rem; }
:root[data-style="aurora"] .fan-tiletext b { font-size: 0.8rem; }
/* the oath is said in the same face as on the Power Battery */
:root[data-style="aurora"] .fan-quote blockquote {
  font-family: var(--s-display); font-weight: 600; font-size: 0.98rem; line-height: 1.6;
  letter-spacing: 0.01em; color: #dfffee;
}

/* section heads as the Power Battery sets its own: the name in Orbitron,
   pale green, the note beside it in small mono, and the rule under it a
   band of the light. The spectrum's band is the spectrum. */
:root[data-style="aurora"] .subsec--fan {
  font-family: var(--s-display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: 0.01em; text-transform: none; color: #c4ffdf;
}
:root[data-style="aurora"] .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="aurora"] .subsec--fan::after {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #3df5a0, #19d9b4 40%, rgba(25, 217, 180, 0));
  box-shadow: 0 0 12px rgba(61, 245, 160, .4);
}
:root[data-style="aurora"] #spectrum .subsec--fan::after {
  background: linear-gradient(90deg, #e03a3a, #f0902a 16%, #f0d040 32%, #4fd07f 50%, #4f9fe0 66%, #8f5fd0 82%, #e05fa8);
  box-shadow: none;
}

/* the drawn power battery: its beams in the same emerald as the sky */
:root[data-style="aurora"] .gla-beam path { fill: rgba(61, 245, 160, .08); }

/* ── 3. the Power Battery ───────────────────────────────────────────────── */
:root[data-style="aurora"] .pb {
  --void: var(--au-sky);
  /* a step lighter, because the light can sit behind the hint and notes */
  --mute: #b3c7bc;
  /* every ring is drawn in the light the page is in */
  --s-focus: color-mix(in srgb, var(--w) 55%, #fff);
  --au-panel: rgba(3, 11, 10, .92);
}

/* The lamp's light reaching into the sector becomes the curtains, coloured
   by --w (so the spectrum switch re-lights them like every other surface),
   as bright as the ring is charged (--charge, written by the page's own
   script), and filling as you scroll exactly as on the world page. The
   glow keeps only its dark rim round the edges. */
:root[data-style="aurora"] .pb-glow { background: radial-gradient(120% 92% at 50% 48%, transparent 46%, rgba(0, 0, 0, .72)); }
:root[data-style="aurora"] .pb-glow::before,
:root[data-style="aurora"] .pb-glow::after,
:root[data-style="aurora"] .pb-done::before {
  content: ""; position: absolute; inset: 0 -4vw; pointer-events: none;
  -webkit-mask: var(--au-curtain) 50% 100% / max(100%, 1100px) 100% no-repeat;
  mask: var(--au-curtain) 50% 100% / max(100%, 1100px) 100% no-repeat;
  transform-origin: 50% 100%;
  transform: scaleY(.76);
}
:root[data-style="aurora"] :is(.pb-glow, .pb-done)::before {
  background: linear-gradient(0deg, transparent 12%,
    color-mix(in srgb, color-mix(in srgb, var(--w) 55%, #fff) 85%, transparent) 23%,
    color-mix(in srgb, var(--w) 82%, transparent) 36%,
    color-mix(in srgb, var(--w) 58%, transparent) 58%, transparent 90%);
}
:root[data-style="aurora"] .pb-glow::before { opacity: calc(.3 + var(--charge) * .007); }
:root[data-style="aurora"] .pb-glow::after {
  background: linear-gradient(0deg, transparent 30%, color-mix(in srgb, var(--w) 36%, transparent) 48%, color-mix(in srgb, var(--w) 28%, transparent) 66%, transparent 96%);
  -webkit-mask-size: max(100%, 1100px) 78%; mask-size: max(100%, 1100px) 78%;
  -webkit-mask-position: 50% 0; mask-position: 50% 0;
  transform-origin: 50% 40%;
  transform: scaleX(-1) scaleY(.76);
  opacity: .5;
}
/* On a phone this page has no tab bar to stand the bright foot behind, and
   words cross every part of the screen, so the whole curtain burns at
   about a third, with no bright foot. */
@media (max-width: 640px) {
  :root[data-style="aurora"] .pb-glow::before {
    background: linear-gradient(0deg, color-mix(in srgb, var(--w) 32%, transparent) 0 8%,
      color-mix(in srgb, var(--w) 28%, transparent) 20%, color-mix(in srgb, var(--w) 22%, transparent) 45%, transparent 85%);
    -webkit-mask-size: 1100px 180%; mask-size: 1100px 180%;
    -webkit-mask-position: 0 43%; mask-position: 0 43%;
  }
}
/* the Corps' grid stays, fainter, behind the light */
:root[data-style="aurora"] .pb-grid { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="aurora"] .pb-glow::before { transition: opacity .8s var(--ease); animation: au-drift 52s ease-in-out infinite alternate; }
  :root[data-style="aurora"] .pb-glow::after { animation: au-sway 37s ease-in-out infinite alternate; }
  @supports (animation-timeline: scroll()) {
    :root[data-style="aurora"] .pb-glow::before {
      animation: au-drift 52s ease-in-out infinite alternate, au-charge linear both;
      animation-timeline: auto, scroll(root);
    }
    :root[data-style="aurora"] .pb-glow::after {
      animation: au-sway 37s ease-in-out infinite alternate, au-charge-far linear both;
      animation-timeline: auto, scroll(root);
    }
  }
}

/* The oath said in full: the screen floods with the light of the corps,
   and the flood is the whole sky of it, fully charged. Its words stand on
   a lit core of their own in the middle of it. */
:root[data-style="aurora"] .pb-done::before { transform: scaleY(1.06); }
:root[data-style="aurora"] .pb-done > div {
  position: relative; padding: 1.6rem 2.2rem 1.8rem;
  background: var(--au-panel); border: 1px solid color-mix(in srgb, var(--w) 40%, transparent); border-radius: 20px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--w) 34%, transparent), inset 0 -40px 50px -36px color-mix(in srgb, var(--w) 55%, transparent), 0 30px 60px -30px #000;
}

/* ── the lit panels: constructs, the duty log, the rings, the oath ──
   The same solid core as the world page, rimmed and lit from within in the
   page's light, rounder to match. */
:where(:root[data-style="aurora"]) .pb :is(.pb-c-in, .pb-panel, .pb-oath) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--w) 7%, transparent), transparent 46%), var(--au-panel);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--w) 30%, transparent),
              inset 0 -34px 40px -32px color-mix(in srgb, var(--w) 42%, transparent), var(--au-drop);
}
/* the note under the seven corps sits where the curtain's foot stands at
   the top of the page, so it becomes a readout of its own: the same core,
   lit in whichever corps is picked */
:where(:root[data-style="aurora"]) .pb .pb-spec-note {
  width: fit-content; padding: 0.7rem 1rem;
  background: var(--au-panel); border: 1px solid color-mix(in srgb, var(--w) 30%, transparent); border-radius: 12px;
  box-shadow: inset 0 -22px 28px -22px color-mix(in srgb, var(--w) 45%, transparent), var(--au-drop);
}
/* the oath loses its spine for the same band of light along its top */
:where(:root[data-style="aurora"]) .pb .pb-oath {
  position: relative; border: 1px solid color-mix(in srgb, var(--w) 34%, transparent);
}
:root[data-style="aurora"] .pb-oath::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--w) 60%, #fff) 30%, var(--w) 62%, transparent);
  box-shadow: 0 2px 14px 1px color-mix(in srgb, var(--w) 55%, transparent);
}

/* controls: a solid core lit in their own colour, with a rim that reads as
   a control (3:1 against the sky); the pressed corps glows brightest */
:where(:root[data-style="aurora"]) .pb-corp {
  background: color-mix(in srgb, var(--c) 10%, #030b0a);
  border-color: color-mix(in srgb, color-mix(in srgb, var(--c) 70%, #fff) 70%, transparent);
  border-radius: 12px;
  box-shadow: inset 0 -12px 18px -12px color-mix(in srgb, var(--c) 50%, transparent);
}
:root[data-style="aurora"] .pb-corp.is-on {
  background: color-mix(in srgb, var(--c) 24%, #030b0a);
  box-shadow: inset 0 -16px 22px -12px color-mix(in srgb, var(--c) 70%, transparent), 0 10px 26px -10px color-mix(in srgb, var(--c) 60%, transparent);
}
:where(:root[data-style="aurora"]) .pb-sig {
  background: color-mix(in srgb, var(--s) 9%, #030b0a);
  border-color: color-mix(in srgb, color-mix(in srgb, var(--s) 70%, #fff) 70%, transparent);
  border-radius: 10px;
  box-shadow: inset 0 -12px 16px -12px color-mix(in srgb, var(--s) 55%, transparent);
}
:where(:root[data-style="aurora"]) .pb-recharge {
  background: color-mix(in srgb, var(--w) 12%, #030b0a);
  box-shadow: inset 0 -14px 20px -12px color-mix(in srgb, var(--w) 55%, transparent), 0 12px 28px -14px var(--w);
}
:where(:root[data-style="aurora"]) .pb-exit { border-color: color-mix(in srgb, var(--w) 60%, transparent); background: #030b0a; }
@media (hover: hover) {
  /* their hover fills see through to the sky; these stay solid and brighten */
  :root[data-style="aurora"] .pb-corp:hover { background: color-mix(in srgb, var(--c) 20%, #030b0a); }
  :root[data-style="aurora"] .pb-sig:hover { background: color-mix(in srgb, var(--s) 18%, #030b0a); }
}

/* the header: deep-space glass with the light catching its lower edge */
:where(:root[data-style="aurora"]) .pb-top {
  background: linear-gradient(180deg, rgba(2, 7, 9, .95), rgba(2, 7, 9, .74));
  border-bottom-color: color-mix(in srgb, var(--w) 34%, transparent);
  box-shadow: 0 14px 34px -22px color-mix(in srgb, var(--w) 60%, transparent);
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-style="aurora"] .pb-top { background: rgb(2, 7, 9); backdrop-filter: none; }
}

/* The world button, purple on every other interface until a style claims
   it, is a construct of the page's own light: --w, so it follows the
   switch like everything else here. Solid core, lit from within. */
:root[data-style="aurora"] .pb .iw {
  --iw-a: var(--w);
  background: color-mix(in srgb, var(--w) 10%, #030b0a);
  border-color: color-mix(in srgb, var(--w) 70%, transparent);
  box-shadow: inset 0 -12px 18px -12px color-mix(in srgb, var(--w) 55%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  :root[data-style="aurora"] .pb .iw:hover {
    background: color-mix(in srgb, var(--w) 20%, #030b0a);
    box-shadow: inset 0 -14px 20px -12px color-mix(in srgb, var(--w) 70%, transparent), 0 6px 22px -8px color-mix(in srgb, var(--w) 55%, transparent);
  }
}

/* Every ring on the page, 2px, in the light the page is in. The
   constructs drew none (their own rule switches it off), so theirs goes
   round the lit core inside the link. */
:root[data-style="aurora"] .pb :focus-visible { outline: 2px solid var(--s-focus); outline-offset: 3px; }
:root[data-style="aurora"] .pb .pb-c:focus-visible { outline: none; }
:root[data-style="aurora"] .pb .pb-c:focus-visible .pb-c-in { outline: 2px solid var(--s-focus); outline-offset: 3px; }

/* ── 4. the reading column, on both pages ───────────────────────────────── */
/* On a wide screen the words run down the left of the page and the right
   is open sky, so the light is held at about a quarter of its strength
   behind the reading column (where small grey notes can pass over it, and
   must keep 4.5:1 at the curtain's brightest) and given its full strength
   in the open, where only lit panels go. Both curtains, on both pages;
   the far one is mirrored, so its gradient runs the other way. It comes
   last so it outranks each page's own curtain rules. */
@media (min-width: 901px) {
  :root[data-style="aurora"] {
    --au-read: linear-gradient(90deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .26) 12% 64%, #000 80%);
    --au-read-far: linear-gradient(270deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .26) 12% 64%, #000 80%);
  }
  :root[data-style="aurora"] :is(body, .pb-glow)::before {
    -webkit-mask: var(--au-curtain) 50% 100% / max(100%, 1100px) 100% no-repeat, var(--au-read);
    -webkit-mask-composite: source-in;
    mask: var(--au-curtain) 50% 100% / max(100%, 1100px) 100% no-repeat, var(--au-read);
    mask-composite: intersect;
  }
  :root[data-style="aurora"] :is(body, .pb-glow)::after {
    -webkit-mask: var(--au-curtain) 50% 0 / max(100%, 1100px) 78% no-repeat, var(--au-read-far);
    -webkit-mask-composite: source-in;
    mask: var(--au-curtain) 50% 0 / max(100%, 1100px) 78% no-repeat, var(--au-read-far);
    mask-composite: intersect;
  }
}
