/* ==========================================================================
   VAULT-TEC RESIDENTS PORTAL  //  vault.css
   Fallout 3 VRC fan mini-site design system  (v1.06)
   --------------------------------------------------------------------------
   "Two nostalgias": in-universe Vault-Tec corporate propaganda + Pip-Boy
   phosphor terminals, rendered in the 2008 "Web 2.0" fan-site idiom
   (gloss buttons, tabbed nav, fixed-width shell, 88x31 badges, hit counter).

   Plain static CSS. No build step, no web fonts, no external requests.
   All textures/icons are inline SVG data URIs.

   TABLE OF CONTENTS
   01. Design tokens (custom properties)
   02. Reset
   03. Base typography
   04. Surfaces & textures (.surface-*, .screen)
   05. Page shell: body, .skip-link, .topbar, .shell, .masthead, .nav,
       .page, .layout, .main, .sidebar, .footer
   06. Buttons (.btn + modifiers), .rss-icon, .badge88, .userbar
   07. Panels (.panel, .panel--metal, .panel--screen), .section-title
   08. Poster hero (.poster)
   09. News ticker (.ticker)
   10. Feature grid (.features / .feature), .seal, .tip
   11. Status panel (.status), LEDs
   12. Progress & build status (.progress, .build, .countdown)
   13. Dev log holotape (.holotape)
   14. Terminal (.terminal)
   15. Pip-Boy tabs (.pip) + .nav--pip variant
   16. Dweller ID card (.idcard)
   17. Classified document (.classified, .redact, .stamp)
   18. Bestiary entry card (.entry, .threat, .statbar, .media-ph)
   19. Weapon card (.weapon, .condition)
   20. Caution divider (.caution)
   21. Community: shoutbox, poll, forum sig, hit counter
   22. Misc content: .table, .tag, .kbd, .fineprint, .list-check
   23. Icons (.ico + .ico--*)
   24. Effects: CRT overlay, phosphor, flicker, blink, boot overlay, toast
   25. Utilities
   26. Responsive
   27. Reduced motion
   28. Print
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Soot (backgrounds, from the logo's black field) --- */
  --soot-0: #080905;
  --soot-1: #101209;
  --soot-2: #181b10;
  --soot-3: #222617;
  --soot-4: #2e3320;

  /* --- Olive (the logo's grime greens) --- */
  --olive-900: #1c230f;
  --olive-800: #2a3416;
  --olive-700: #3a4720;
  --olive-600: #4c5d28;
  --olive-500: #637833;
  --olive-400: #849a4c;
  --olive-300: #a8b977;
  --olive-200: #cad5a3;
  --olive-100: #e2e8c9;

  /* --- Plaster (the logo's cracked off-white plate) --- */
  --plaster-50:  #f4f3e8;
  --plaster-100: #ecebdb;
  --plaster-200: #e2e0cb;
  --plaster-300: #cfccb2;
  --plaster-400: #b1ae92;
  --manila:      #ddd2a2;

  /* --- Ink (text on plaster) --- */
  --ink: #181b0e;
  --ink-soft: #424730;     /* 7.5:1 on plaster-200 */
  --ink-faint: #5d6247;    /* 5.0:1 on plaster-200, use >=13px only */

  /* --- Phosphor (Pip-Boy / terminal) --- */
  --phosphor: #7dff9b;
  --phosphor-hi: #c6ffd2;
  --phosphor-dim: #3fae5f;
  --phosphor-faint: #1f5a31;
  --crt-bg: #031008;
  --crt-bg-2: #062014;

  /* --- Accents --- */
  --caution: #d6ae37;
  --caution-dk: #8d6f17;
  --alarm: #c4392a;
  --alarm-dk: #7d1d12;
  --rust: #93481f;
  --rss: #f08a24;
  --vrc-blue: #1f6f9b;    /* used only for VRChat-branded CTA */
  --discord: #5865f2;
  --pink: #e57fae;        /* Femboy King badge only */

  /* --- Semantic --- */
  --bg: var(--soot-1);
  --text-on-dark: #dcdcc4;         /* 13:1 on soot-1 */
  --text-on-dark-soft: #a9ab90;    /* 7:1 on soot-1 */
  --link-on-dark: var(--olive-200);
  --link-on-light: #33410f;
  --focus: var(--caution);

  /* --- Type --- */
  --font-body: Verdana, "DejaVu Sans", "Bitstream Vera Sans", Tahoma, Geneva, sans-serif;
  --font-head: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
  --font-display: Impact, Haettenschweiler, "Anton", "Arial Narrow Bold", "Franklin Gothic Bold", "sans-serif-condensed", "Arial Black", sans-serif;
  --font-mono: "Lucida Console", Monaco, Consolas, "DejaVu Sans Mono", "Courier New", monospace;
  --font-type: "Courier New", Courier, "Nimbus Mono L", "FreeMono", monospace; /* typewriter */

  --fs-xs: 0.6875rem;  /* 11px */
  --fs-sm: 0.78rem;    /* 12.5px */
  --fs-base: 0.875rem; /* 14px */
  --fs-md: 1rem;       /* 16px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.6rem;     /* 25.6px */
  --fs-2xl: 2.2rem;
  --fs-poster: clamp(2rem, 6.4vw, 3.9rem);
  --lh: 1.6;

  /* --- Spacing (4px grid) --- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* --- Shape --- */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shell-w: 980px;
  --sidebar-w: 286px;
  --tap: 44px;   /* minimum tap target */

  /* --- Shadows & glows --- */
  --shadow-1: 0 1px 0 rgba(255,255,255,.06), 0 2px 6px rgba(0,0,0,.55);
  --shadow-2: 0 2px 0 rgba(0,0,0,.6), 0 10px 24px rgba(0,0,0,.6);
  --inner-glow-olive: inset 0 0 22px rgba(76,93,40,.38);
  --gloss-hi: inset 0 1px 0 rgba(255,255,255,.55);
  --glow-phosphor: 0 0 1px rgba(198,255,210,.9), 0 0 6px rgba(125,255,155,.55), 0 0 16px rgba(125,255,155,.25);
  --glow-phosphor-soft: 0 0 6px rgba(125,255,155,.35);
  --glow-caution: 0 0 10px rgba(214,174,55,.45);

  /* --- Gloss gradients (2008 "Web 2.0" bevel: hard split at 50%) --- */
  --gloss-olive: linear-gradient(#a3b466 0%, #788d3d 49%, #5b6e29 51%, #475820 100%);
  --gloss-olive-dk: linear-gradient(#5d6b38 0%, #3e4b20 49%, #2e3916 51%, #252e11 100%);
  --gloss-caution: linear-gradient(#f3d77a 0%, #dcb43f 49%, #c99d22 51%, #b48a16 100%);
  --gloss-alarm: linear-gradient(#e7705f 0%, #c94331 49%, #a92e1f 51%, #8a2214 100%);
  --gloss-plaster: linear-gradient(#ffffff 0%, #ecebdb 49%, #dcdac2 51%, #cdcab0 100%);
  --gloss-soot: linear-gradient(#3d4230 0%, #262a1b 49%, #171a0f 51%, #101209 100%);
  --gloss-vrc: linear-gradient(#5eb4dc 0%, #2a84b4 49%, #1b6a96 51%, #155a80 100%);
  --gloss-discord: linear-gradient(#8f99ff 0%, #6470f3 49%, #4e5be0 51%, #3f4bc4 100%);

  /* --- Textures (inline SVG; tiles) --- */
  /* dark grain: black specks, use on light surfaces */
  --tex-grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .09 0 0 0 0 .04 1.4 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* light grain: pale specks, use on dark surfaces */
  --tex-grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .87 0 0 0 0 .72 .9 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* olive grime blotches */
  --tex-stain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .44 0 0 0 0 .16 2.6 0 0 0 -1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  /* hairline plaster cracks */
  --tex-cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='.018' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .2 0 0 0 0 .08 -14 0 0 0 .62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  /* rivets in the 4 corners of an element */
  --rivet: radial-gradient(circle, #d7d5bb 0 1px, #8b8a6e 1.6px, #3b3d2a 2.8px, rgba(0,0,0,.55) 3.6px, transparent 4.4px);
  --rivets:
    radial-gradient(circle at 11px 11px, #d7d5bb 0 1px, #8b8a6e 1.6px, #3b3d2a 2.8px, rgba(0,0,0,.55) 3.6px, transparent 4.4px),
    radial-gradient(circle at calc(100% - 11px) 11px, #d7d5bb 0 1px, #8b8a6e 1.6px, #3b3d2a 2.8px, rgba(0,0,0,.55) 3.6px, transparent 4.4px),
    radial-gradient(circle at 11px calc(100% - 11px), #d7d5bb 0 1px, #8b8a6e 1.6px, #3b3d2a 2.8px, rgba(0,0,0,.55) 3.6px, transparent 4.4px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #d7d5bb 0 1px, #8b8a6e 1.6px, #3b3d2a 2.8px, rgba(0,0,0,.55) 3.6px, transparent 4.4px);
  --brushed: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px, rgba(0,0,0,.05) 3px 4px);
  --scanlines: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.28) 2px 3px);
  --hazard: repeating-linear-gradient(-45deg, var(--caution) 0 12px, #14150d 12px 24px);
  --halftone: radial-gradient(rgba(28,35,15,.22) 1px, transparent 1.7px);
}


/* ==========================================================================
   02. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video, canvas, picture { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }


/* ==========================================================================
   03. BASE TYPOGRAPHY
   ========================================================================== */
html { scroll-padding-top: 56px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text-on-dark);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: bold;
  line-height: 1.2;
  font-variant: small-caps;
  letter-spacing: .03em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p + p, p + ul, ul + p, p + ol, p + .btn-row, p + dl { margin-top: .85em; }
a { color: var(--link-on-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #fff; text-decoration-style: dotted; }
strong, b { font-weight: bold; }
small { font-size: var(--fs-sm); }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: .92em; }
hr { border: 0; height: 1px; background: rgba(168,185,119,.25); margin: var(--sp-6) 0; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
::selection { background: var(--olive-400); color: var(--soot-0); }
.lead { font-size: var(--fs-md); line-height: 1.55; }


/* ==========================================================================
   04. SURFACES & TEXTURES
   Reusable backgrounds. Apply to any block.
   ========================================================================== */
/* Cracked plaster: the logo plate. Dark ink text. */
.surface-plaster {
  color: var(--ink);
  background-color: var(--plaster-200);
  background-image:
    var(--tex-cracks), var(--tex-stain), var(--tex-grain-dark),
    radial-gradient(ellipse at 25% 15%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(var(--plaster-100), var(--plaster-300));
}
/* Riveted olive-drab metal plate. Light text. */
.surface-metal {
  color: var(--text-on-dark);
  background-color: var(--soot-3);
  background-image:
    var(--rivets), var(--tex-grain-light), var(--brushed),
    linear-gradient(#3a3f2a, #22261a 60%, #1b1e13);
}
/* Soot: dark recessed area. */
.surface-soot {
  color: var(--text-on-dark);
  background-color: var(--soot-1);
  background-image: var(--tex-grain-light), linear-gradient(var(--soot-2), var(--soot-0));
}
/* CRT screen: phosphor text on dark green glass. */
.screen {
  position: relative;
  color: var(--phosphor);
  font-family: var(--font-mono);
  text-shadow: var(--glow-phosphor-soft);
  background-color: var(--crt-bg);
  background-image:
    var(--scanlines),
    radial-gradient(ellipse at 50% 40%, rgba(125,255,155,.10), transparent 70%),
    radial-gradient(ellipse at center, var(--crt-bg-2), var(--crt-bg) 75%);
  box-shadow: inset 0 0 0 1px rgba(125,255,155,.15), inset 0 0 40px rgba(0,0,0,.85), inset 0 0 12px rgba(125,255,155,.15);
}
.screen a:where(:not(.btn)) { color: var(--phosphor-hi); }
.screen a:where(:not(.btn)):hover { color: #fff; background: var(--phosphor-dim); text-decoration: none; }
.screen ::selection { background: var(--phosphor); color: var(--crt-bg); }


/* ==========================================================================
   05. PAGE SHELL
   Order in <body>:
     .skip-link  .crt-overlay  .boot  .topbar  .shell[ .masthead  .nav
     .ticker  (.poster)  .page > .layout[ .main  .sidebar ]  .footer ]
   ========================================================================== */
body {
  background-image:
    var(--tex-grain-light),
    radial-gradient(ellipse 70% 420px at 50% 0, rgba(132,154,76,.30), transparent 75%),
    radial-gradient(ellipse 120% 70% at 50% 120%, rgba(0,0,0,.8), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px),
    linear-gradient(var(--soot-2), var(--soot-0) 900px);
  background-repeat: repeat, no-repeat, no-repeat, repeat, no-repeat;
}

/* --- Skip link --- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  padding: 10px 16px; background: var(--caution); color: var(--ink);
  font-weight: bold; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* --- Sticky top bar --- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--gloss-soot);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(168,185,119,.25), 0 4px 14px rgba(0,0,0,.6);
  font-size: var(--fs-sm);
}
.topbar__inner {
  max-width: var(--shell-w); margin: 0 auto; padding: 0 12px;
  min-height: 44px; display: flex; align-items: center; gap: 12px;
}
.topbar__brand {
  display: flex; align-items: center; gap: 8px; min-width: 0; align-self: stretch; min-height: 44px;
  color: var(--plaster-100); text-decoration: none; font-family: var(--font-head);
  font-weight: bold; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.topbar__brand:hover { color: #fff; }
.topbar__brand .ico { color: var(--caution); width: 20px; height: 20px; flex: none; }
.topbar__sep { color: var(--olive-400); }
.topbar__sub { color: var(--text-on-dark-soft); font-weight: normal; text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar__clock {
  margin-left: auto; font-family: var(--font-mono); color: var(--phosphor);
  text-shadow: var(--glow-phosphor-soft); letter-spacing: .06em; white-space: nowrap;
}
.topbar__actions { display: flex; gap: 6px; margin-left: 12px; }
.topbar__clock + .topbar__actions { margin-left: 0; }

/* Toggle switch button (CRT on/off, sound, etc.) */
.toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 4px 10px 4px 6px;
  border: 1px solid #000; border-radius: 16px;
  background: var(--gloss-soot); color: var(--plaster-200);
  box-shadow: var(--gloss-hi), 0 1px 0 rgba(255,255,255,.06);
  font: bold var(--fs-xs)/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  position: relative;
}
.toggle::before { /* invisible enlargement to 44px tap area */
  content: ""; position: absolute; inset: -6px -2px;
}
.toggle__led {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a2a22; box-shadow: inset 0 1px 2px rgba(0,0,0,.8);
}
.toggle[aria-pressed="true"] .toggle__led { background: var(--phosphor); box-shadow: 0 0 6px var(--phosphor), inset 0 -1px 1px rgba(0,0,0,.3); }
.toggle:hover { color: #fff; }

/* --- Shell (fixed-width centered column, 2008 style) --- */
.shell { max-width: var(--shell-w); margin: 0 auto; padding: 18px 10px 0; }

/* --- Masthead: Vault-Tec corporate header plate --- */
.masthead {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 18px 26px; border: 1px solid #000; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-color: var(--soot-3);
  background-image:
    var(--rivets), var(--tex-grain-light),
    radial-gradient(ellipse at 15% 0, rgba(214,174,55,.12), transparent 55%),
    var(--brushed),
    linear-gradient(#444a32, #2a2e1e 55%, #1d2014);
  box-shadow: var(--gloss-hi), inset 0 -1px 0 rgba(0,0,0,.6), var(--shadow-2);
}
.masthead__emblem {
  flex: none; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #f1d16c, #c99d22 60%, #8d6f17);
  border: 3px solid #14150d;
  box-shadow: 0 0 0 2px var(--caution-dk), 0 4px 10px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -6px 10px rgba(0,0,0,.25);
  color: #1b1a0e;
}
.masthead__emblem .ico { width: 52px; height: 52px; }
.masthead__titles { min-width: 0; }
.masthead__corp {
  font-family: var(--font-display); font-size: 2.6rem; line-height: .95; letter-spacing: .06em;
  color: var(--plaster-100); text-transform: uppercase; font-weight: normal; font-variant: normal;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(214,174,55,.2);
}
.masthead__corp span { color: var(--caution); }
.masthead__tagline {
  margin-top: 6px; font: italic var(--fs-sm)/1.3 var(--font-head); color: var(--olive-200);
  letter-spacing: .04em;
}
.masthead__portal {
  display: inline-block; margin-top: 8px; padding: 3px 10px;
  border-radius: 3px; background: rgba(0,0,0,.45); border: 1px solid rgba(168,185,119,.35);
  font: bold var(--fs-xs)/1.4 var(--font-mono); color: var(--phosphor); text-shadow: var(--glow-phosphor-soft);
  letter-spacing: .12em; text-transform: uppercase;
}
.masthead__logo { margin-left: auto; flex: none; width: 210px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.7)); }
.masthead__logo img { width: 100%; }

/* --- Main navigation: glossy tab strip --- */
.nav {
  position: relative;
  background: linear-gradient(#14160d, #0c0d08);
  border-left: 1px solid #000; border-right: 1px solid #000;
  padding: 10px 10px 0;
  box-shadow: inset 0 6px 8px -4px rgba(0,0,0,.9);
}
.nav__list { display: flex; gap: 4px; align-items: flex-end; }
.nav__item { flex: 1 1 auto; }
.nav__link {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 6px 12px 7px;
  border: 1px solid #0e1108; border-bottom: 0; border-radius: 9px 9px 0 0;
  background: var(--gloss-olive);
  box-shadow: var(--gloss-hi), inset 0 -3px 5px rgba(0,0,0,.25);
  color: #fbfbee; text-decoration: none; text-align: center; white-space: nowrap;
  font: bold .8rem/1.1 var(--font-head); letter-spacing: .09em; text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0,0,0,.6);
  overflow: hidden;
}
.nav__link::before { /* gloss cap */
  content: ""; position: absolute; left: 3px; right: 3px; top: 1px; height: 45%;
  border-radius: 7px 7px 50% 50% / 7px 7px 6px 6px;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.06));
  pointer-events: none;
}
.nav__pip { /* tiny Pip-Boy label above each tab */
  display: block; font: bold 9px/1 var(--font-mono); letter-spacing: .15em;
  color: rgba(255,255,255,.78); text-shadow: 0 -1px 0 rgba(0,0,0,.5); margin-bottom: 3px;
}
.nav__link:hover { background: linear-gradient(#b8c87b 0%, #899e47 49%, #6a7f30 51%, #536527 100%); color: #fff; }
.nav__link[aria-current="page"] {
  background: linear-gradient(#3a3f2a, #2a2e1e);
  color: var(--caution);
  border-color: #000;
  box-shadow: inset 0 3px 0 var(--caution), inset 0 1px 0 rgba(255,255,255,.2);
  text-shadow: 0 0 10px rgba(214,174,55,.35), 0 1px 0 #000;
  padding-bottom: 10px; margin-bottom: -1px; z-index: 1;
}
.nav__link[aria-current="page"]::before { opacity: .25; }
.nav__link[aria-current="page"] .nav__pip { color: var(--phosphor); text-shadow: var(--glow-phosphor-soft); }

/* --- Page body plate (sits under the tabs) --- */
.page {
  position: relative; padding: 20px;
  border: 1px solid #000; border-top: 0;
  background-color: var(--soot-3);
  background-image:
    var(--tex-grain-light),
    linear-gradient(#2a2e1e, #1e2115 220px, #191c11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow-2);
}
/* --- Two-column layout: main + sidebar --- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 20px; align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout--left { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); } /* sidebar first */
.main, .sidebar { min-width: 0; }
.stack > * + * { margin-top: var(--sp-6); }
.stack--sm > * + * { margin-top: var(--sp-3); }
.sidebar > * + * { margin-top: var(--sp-5); }

/* --- Footer --- */
.footer {
  margin: 0 0 28px; border: 1px solid #000; border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background-color: var(--soot-2);
  background-image: var(--rivets), var(--tex-grain-light), var(--brushed), linear-gradient(#262a1b, #13150c);
  color: var(--text-on-dark-soft); font-size: var(--fs-sm);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.footer > .caution { margin: 0; border-radius: 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 24px;
  padding: 24px 26px 18px;
}
.footer h2, .footer h3 { font-size: var(--fs-md); color: var(--plaster-100); margin-bottom: 8px; }
.footer a:where(:not(.btn):not(.badge88)) { color: var(--olive-200); }
.footer__links li + li { margin-top: 2px; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.footer__links .ico { width: 10px; height: 10px; color: var(--caution); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  padding: 12px 26px 16px; border-top: 1px solid rgba(0,0,0,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-size: var(--fs-xs); color: var(--text-on-dark-soft);
}
.best-viewed { font-family: var(--font-head); font-style: italic; }
.best-viewed .ico { display: inline-block; vertical-align: -2px; width: 12px; height: 12px; color: var(--olive-300); margin-right: 4px; }
.disclaimer {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.35); border: 1px dashed rgba(168,185,119,.3);
  font-size: var(--fs-xs); line-height: 1.5; color: var(--text-on-dark-soft);
}
.disclaimer strong { color: var(--plaster-200); }


/* ==========================================================================
   06. BUTTONS, RSS ICON, 88x31 BADGES, USERBAR
   ========================================================================== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--tap); padding: .65em 1.25em;
  border: 1px solid #1a210c; border-radius: 9px;
  background: var(--gloss-olive);
  box-shadow: var(--gloss-hi), inset 0 -2px 4px rgba(0,0,0,.22), 0 2px 0 #0a0b06, 0 4px 10px rgba(0,0,0,.45);
  color: #fff; text-decoration: none; text-align: center; vertical-align: middle;
  font: bold .82rem/1.15 var(--font-head); letter-spacing: .07em; text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0,0,0,.55);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: filter .15s, transform .05s;
}
.btn::before { /* glossy highlight cap */
  content: ""; position: absolute; left: 2px; right: 2px; top: 1px; height: 48%;
  border-radius: 8px 8px 45% 45% / 8px 8px 6px 6px;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.08));
  pointer-events: none;
}
.btn:hover { color: #fff; filter: brightness(1.1) saturate(1.05); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: var(--gloss-hi), inset 0 2px 5px rgba(0,0,0,.35), 0 0 0 #000; }
.btn .ico { width: 1.25em; height: 1.25em; flex: none; filter: drop-shadow(0 -1px 0 rgba(0,0,0,.4)); }
.btn--caution { background: var(--gloss-caution); color: #1d1a08; text-shadow: 0 1px 0 rgba(255,255,255,.45); border-color: #5f4a0c; }
.btn--caution:hover { color: #000; }
.btn--caution .ico { filter: none; }
.btn--alarm { background: var(--gloss-alarm); border-color: #4b1209; }
.btn--plaster { background: var(--gloss-plaster); color: var(--ink); text-shadow: 0 1px 0 #fff; border-color: #6c6a54; }
.btn--plaster:hover { color: #000; }
.btn--plaster .ico { filter: none; }
.btn--soot { background: var(--gloss-soot); color: var(--plaster-100); border-color: #000; }
.btn--vrc { background: var(--gloss-vrc); border-color: #0b3550; }
.btn--discord { background: var(--gloss-discord); border-color: #232b80; }
.btn--sm { min-height: 34px; padding: .45em .9em; font-size: .72rem; border-radius: 7px; }
.btn--lg { min-height: 56px; padding: .8em 1.6em; font-size: .95rem; border-radius: 11px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { filter: grayscale(.9) brightness(.8); cursor: not-allowed; pointer-events: none; }
.btn__sub { display: block; font-size: .68em; letter-spacing: .04em; opacity: .85; text-transform: none; font-weight: normal; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* small text link with arrow, "Read more »" */
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-weight: bold; font-size: var(--fs-sm); }
.more::after { content: "\00BB"; }

/* RSS orange icon (CSS only) */
.rss-icon {
  display: inline-block; width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px;
  background: linear-gradient(#ffb466, #f08a24 50%, #d86a0b 51%, #c95f05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px #8a3f00;
  position: relative;
}
.rss-icon::after {
  content: ""; position: absolute; inset: 3px; background: #fff;
  -webkit-mask: var(--ico-rss) center/contain no-repeat; mask: var(--ico-rss) center/contain no-repeat;
}
.rss-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: bold; font-size: var(--fs-sm); }

/* 88x31 web buttons (CSS-rendered, no images) */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge88 {
  display: inline-flex; width: 88px; height: 31px; flex: none;
  border: 1px solid #000; outline: 1px solid rgba(255,255,255,.18); outline-offset: -2px;
  font: bold 9px/1.05 Verdana, "DejaVu Sans", Tahoma, sans-serif; letter-spacing: 0;
  text-decoration: none; text-transform: uppercase; overflow: hidden;
  background: var(--soot-1); color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
a.badge88:hover { filter: brightness(1.15); color: #fff; }
.badge88__l {
  width: 29px; flex: none; display: grid; place-items: center;
  background: var(--gloss-olive); color: #fff; border-right: 1px solid #000;
}
.badge88__l .ico { width: 18px; height: 18px; }
.badge88__r {
  flex: 1; white-space: nowrap; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 4px;
  text-align: left; background: linear-gradient(#2c3120, #10120a);
}
.badge88__r small { font-size: 7px; font-weight: normal; letter-spacing: .04em; opacity: .85; }
.badge88--caution .badge88__l { background: var(--gloss-caution); color: #1d1a08; }
.badge88--caution .badge88__r { background: var(--hazard); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.badge88--phosphor .badge88__l { background: var(--crt-bg); color: var(--phosphor); }
.badge88--phosphor .badge88__r { background: var(--crt-bg); background-image: var(--scanlines); color: var(--phosphor); text-shadow: var(--glow-phosphor-soft); }
.badge88--plaster .badge88__r { background: var(--gloss-plaster); color: var(--ink); }
.badge88--rss .badge88__l { background: linear-gradient(#ffb466, #f08a24 50%, #d86a0b 51%, #c95f05); }
.badge88--rss .badge88__r { background: linear-gradient(#5a5a5a, #222); }
.badge88--pink .badge88__l { background: linear-gradient(#ffc3df, #e57fae 50%, #cf5e93 51%, #b84a7e); }
.badge88--pink .badge88__r { background: linear-gradient(#3b1830, #170910); color: #ffd2e8; }
.badge88--vrc .badge88__l { background: var(--gloss-vrc); }
.badge88--vrc .badge88__r { background: linear-gradient(#e9eef2, #b9c5ce); color: #0b2e44; }

/* 350x19 forum "userbar" */
.userbar {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  width: 350px; max-width: 100%; height: 19px; padding: 0 8px; overflow: hidden;
  border: 1px solid #000;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.10) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, var(--olive-900), var(--olive-500) 40%, var(--olive-400) 60%, var(--olive-800));
  font: bold 10px/1 Verdana, "DejaVu Sans", Tahoma, sans-serif; color: #fff; letter-spacing: 0;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.userbar::after { /* gloss band */
  content: ""; position: absolute; inset: 0 0 50% 0; background: rgba(255,255,255,.18); pointer-events: none;
}
.userbar .ico { position: absolute; left: 6px; top: 1px; width: 16px; height: 16px; color: var(--caution); filter: drop-shadow(1px 1px 0 #000); }
.userbar--phosphor { background: var(--scanlines), linear-gradient(90deg, #021007, #0b3a1c 50%, #021007); color: var(--phosphor); }


/* ==========================================================================
   07. PANELS
   ========================================================================== */
/* Default panel: cracked-plaster card with glossy olive header bar */
.panel {
  position: relative; overflow: hidden;
  border: 1px solid #586034; border-radius: var(--radius);
  color: var(--ink);
  background-color: var(--plaster-200);
  background-image:
    var(--tex-cracks), var(--tex-stain), var(--tex-grain-dark),
    radial-gradient(ellipse at 25% 10%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(var(--plaster-100), var(--plaster-300));
  box-shadow: 0 0 0 3px var(--soot-0), 0 0 0 4px rgba(168,185,119,.22), var(--shadow-2), var(--inner-glow-olive);
}
/* :where() keeps classed links (.btn, .badge88, .tag) out of these colour rules */
.panel a:where(:not(.btn):not(.badge88):not(.tag)) { color: var(--link-on-light); font-weight: bold; }
.panel a:where(:not(.btn):not(.badge88):not(.tag)):hover { color: #000; }
.panel__head {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 7px 34px 7px 14px;
  background: var(--gloss-olive);
  border-bottom: 1px solid var(--olive-900);
  box-shadow: var(--gloss-hi), 0 1px 0 rgba(255,255,255,.4);
  color: #fdfdf2; text-shadow: 0 -1px 0 rgba(0,0,0,.6);
}
.panel__head::after { /* screw head on the right of every header bar */
  content: ""; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: linear-gradient(135deg, transparent 43%, rgba(0,0,0,.65) 44% 56%, transparent 57%), radial-gradient(circle at 35% 35%, #e8e6cf, #8f8d72 70%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 1px rgba(0,0,0,.4);
}
.panel__title {
  font: bold var(--fs-md)/1.2 var(--font-head); font-variant: small-caps; letter-spacing: .06em; margin: 0;
}
.panel__head .ico { width: 18px; height: 18px; flex: none; color: #fff; }
.panel__head a, .panel__aside { margin-left: auto; color: #fff !important; font: bold var(--fs-xs)/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.panel__body { padding: 16px 18px 18px; }
.panel__body > * + * { margin-top: .9em; }
.panel__body h3, .panel__body h4 { color: var(--olive-800); }
.panel__foot {
  padding: 10px 18px; border-top: 1px dashed rgba(42,52,22,.35);
  background: rgba(42,52,22,.06); font-size: var(--fs-sm); color: var(--ink-soft);
}
/* Metal variant: riveted plate, light text */
.panel--metal {
  color: var(--text-on-dark); border-color: #000;
  background-color: var(--soot-3);
  background-image: var(--tex-grain-light), var(--brushed), linear-gradient(#3a3f2a, #22261a 60%, #1b1e13);
  box-shadow: 0 0 0 3px var(--soot-0), 0 0 0 4px rgba(168,185,119,.18), var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.12);
}
.panel--metal a:where(:not(.btn):not(.badge88):not(.tag)) { color: var(--olive-200); }
.panel--metal a:where(:not(.btn):not(.badge88):not(.tag)):hover { color: #fff; }
.panel--metal .panel__head { background: var(--gloss-olive-dk); border-bottom-color: #000; }
.panel--metal .panel__body h3, .panel--metal .panel__body h4 { color: var(--plaster-100); }
.panel--metal .panel__foot { color: var(--text-on-dark-soft); border-top-color: rgba(168,185,119,.25); background: rgba(0,0,0,.2); }
/* Screen variant: whole panel body is a CRT */
.panel--screen { border-color: #000; background: var(--soot-2); }
.panel--screen .panel__head { background: var(--gloss-soot); color: var(--phosphor); text-shadow: var(--glow-phosphor-soft); }
.panel--screen .panel__head .ico { color: var(--phosphor); }
.panel--screen .panel__body { color: var(--phosphor); font-family: var(--font-mono); text-shadow: var(--glow-phosphor-soft);
  background-color: var(--crt-bg); background-image: var(--scanlines), radial-gradient(ellipse at center, var(--crt-bg-2), var(--crt-bg) 75%); }
.panel--screen a:where(:not(.btn)) { color: var(--phosphor-hi); }
/* Caution variant: header bar is hazard-striped */
.panel--caution .panel__head { background: var(--gloss-caution); color: #1d1a08; text-shadow: 0 1px 0 rgba(255,255,255,.4); border-bottom: 6px solid; border-image: var(--hazard) 1; }
.panel--caution .panel__head .ico { color: #1d1a08; }

/* Section title (for headings that float on the dark page plate) */
.section-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-4);
  color: var(--plaster-100); font-size: var(--fs-xl);
}
.section-title::after {
  content: ""; flex: 1; height: 6px; min-width: 20px; border-radius: 3px;
  background: var(--hazard); opacity: .85;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.6);
}
.section-title .seal { width: 40px; height: 40px; }
.section-title small { display: block; font: normal var(--fs-xs)/1.3 var(--font-mono); color: var(--olive-300); letter-spacing: .14em; text-transform: uppercase; font-variant: normal; }


/* ==========================================================================
   08. POSTER HERO  (Vault-Tec propaganda poster, home page only)
   ========================================================================== */
.poster {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0; border: 1px solid #000;
  padding: 12px; /* the poster's paper margin */
  background-color: var(--plaster-100);
  background-image: var(--tex-grain-dark), var(--tex-stain), linear-gradient(var(--plaster-50), var(--plaster-300));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 0 40px rgba(76,93,40,.35);
}
.poster__art {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 460px; padding: 26px 24px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 3px solid var(--olive-900);
  outline: 1px solid var(--olive-700); outline-offset: 3px;
  background-color: #c9cc9e;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 52%, rgba(244,243,232,.95), rgba(244,243,232,0) 70%),
    repeating-conic-gradient(from 0deg at 50% 52%, #b9bf86 0deg 6deg, #d9dbb5 6deg 12deg),
    linear-gradient(#e2e0cb, #b1ae92);
  color: var(--olive-900);
}
.poster__art::before { /* halftone fade at the bottom + grime */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--halftone) 0 0 / 6px 6px;
  -webkit-mask-image: linear-gradient(transparent 45%, #000);
          mask-image: linear-gradient(transparent 45%, #000);
}
.poster__art::after { /* worn print: cracks + vignette on top of art */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: var(--tex-cracks), var(--tex-grain-dark), radial-gradient(ellipse at center, transparent 55%, rgba(28,35,15,.45));
  mix-blend-mode: multiply;
}
.poster__kicker {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  font: bold var(--fs-sm)/1 var(--font-head); letter-spacing: .35em; text-transform: uppercase; color: var(--olive-800);
}
.poster__kicker::before, .poster__kicker::after { content: ""; width: 36px; height: 2px; background: currentColor; }
.poster__slogan {
  position: relative; z-index: 3;
  margin-top: 10px;
  font-family: var(--font-display); font-weight: normal; font-variant: normal;
  font-size: var(--fs-poster); line-height: .95; letter-spacing: .03em; text-transform: uppercase;
  color: var(--olive-900);
  text-shadow: 2px 2px 0 var(--plaster-50), 4px 4px 0 rgba(28,35,15,.35);
}
.poster__logo { position: relative; z-index: 1; width: min(560px, 92%); margin: 14px auto 6px; filter: drop-shadow(0 6px 0 rgba(8,9,5,.85)) drop-shadow(0 14px 18px rgba(8,9,5,.45)); }
.poster__logo img { width: 100%; }
.poster__ribbon {
  position: relative; z-index: 3;
  margin-top: 4px; padding: 10px 46px;
  background: var(--olive-900); color: var(--plaster-50);
  font: bold clamp(.8rem, 2.4vw, 1.05rem)/1.2 var(--font-head); letter-spacing: .18em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%);
  text-shadow: 0 1px 0 #000;
}
.poster__ribbon em { font-style: normal; color: var(--caution); }
.poster__cta { position: relative; z-index: 3; margin-top: 18px; justify-content: center; }
.poster__fine {
  position: relative; z-index: 3; margin-top: 14px; max-width: 560px;
  font: var(--fs-xs)/1.4 var(--font-body); color: #2e3518;
}
/* circular approval seal stamped onto the poster */
.poster__seal {
  position: absolute; z-index: 3; top: 146px; right: 24px;
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 3px double var(--alarm-dk); color: var(--alarm-dk);
  font: bold 10px/1.15 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(14deg); opacity: .82;
  background: radial-gradient(circle, transparent 58%, rgba(196,57,42,.08) 59%);
  mix-blend-mode: multiply;
}
.poster__seal .ico { width: 30px; height: 30px; margin: 2px auto; }
.poster__seal b { display: block; font-size: 14px; letter-spacing: .08em; }
.poster__corner { /* "No. 106" corner flag, top-left */
  position: absolute; z-index: 3; top: 22px; left: 22px;
  font: bold var(--fs-xs)/1.2 var(--font-mono); color: var(--olive-800); text-align: left; letter-spacing: .1em;
}
.poster__corner b { display: block; font: normal 2rem/1 var(--font-display); letter-spacing: .02em; color: var(--olive-900); }


/* ==========================================================================
   09. NEWS TICKER  (CSS-animated, no <marquee>)
   Markup has two identical .ticker__group children; track slides -50%.
   ========================================================================== */
.ticker {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  min-height: 36px; border: 1px solid #000; border-top: 0;
  background: #070805; background-image: var(--scanlines);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9);
  font: var(--fs-sm)/1 var(--font-mono);
}
.ticker__label {
  flex: none; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 10px;
  background: var(--gloss-alarm); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  font: bold var(--fs-xs)/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: var(--gloss-hi), 6px 0 10px rgba(0,0,0,.8);
}
.ticker__label::before { /* blinking "LIVE" dot */
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff;
  animation: blink 1.2s linear infinite;
}
.ticker__viewport {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 30px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 30px), transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker var(--ticker-speed, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 22px 0 0; white-space: nowrap;
  color: var(--caution); text-shadow: var(--glow-caution);
}
.ticker__item::before { /* trefoil separator */
  content: ""; width: 12px; height: 12px; background: var(--olive-400);
  -webkit-mask: var(--ico-rad) center/contain no-repeat; mask: var(--ico-rad) center/contain no-repeat;
}
.ticker__item b { color: var(--phosphor); text-shadow: var(--glow-phosphor-soft); font-weight: normal; }
.ticker__item a { color: inherit; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* ==========================================================================
   10. FEATURE GRID, SEAL, TIP
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.feature {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 16px 14px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(42,52,22,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 14px rgba(76,93,40,.18), 0 1px 0 rgba(0,0,0,.08);
}
.feature__head { display: flex; align-items: center; gap: 10px; }
.feature__title { font: bold var(--fs-md)/1.15 var(--font-head); font-variant: small-caps; letter-spacing: .03em; color: var(--olive-900); }
.feature p { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }
.feature__fine { margin-top: auto !important; padding-top: 6px; border-top: 1px dotted rgba(42,52,22,.4); font-size: var(--fs-xs) !important; font-style: italic; color: var(--ink-faint) !important; }
.feature__badge {
  position: absolute; top: -8px; right: 8px; padding: 2px 7px; border-radius: 3px;
  background: var(--gloss-caution); color: #1d1a08; border: 1px solid #5f4a0c;
  font: bold 9px/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); transform: rotate(3deg);
}

/* Seal: circular glossy pictogram medallion (Vault-Tec "thumbs-up energy") */
.seal {
  flex: none; position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #a9bd6c, #5b6e29 60%, #34411a);
  border: 2px solid var(--olive-900);
  box-shadow: 0 0 0 2px var(--plaster-100), 0 0 0 3px rgba(28,35,15,.6), 0 3px 6px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.4);
  color: #fdfdf0;
}
.seal::before { /* gloss */
  content: ""; position: absolute; left: 18%; right: 18%; top: 6%; height: 38%; border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0));
}
.seal .ico { width: 58%; height: 58%; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
.seal--caution { background: radial-gradient(circle at 50% 30%, #f6dc85, #c99d22 60%, #7d6012); color: #1d1a08; }
.seal--caution .ico { filter: none; }
.seal--alarm { background: radial-gradient(circle at 50% 30%, #ee8a7b, #b23322 60%, #6d170d); }
.seal--phosphor { background: radial-gradient(circle at 50% 35%, #0e3b1f, #031008 70%); color: var(--phosphor); border-color: #000; }
.seal--phosphor .ico { filter: drop-shadow(0 0 4px rgba(125,255,155,.7)); }
.seal--lg { width: 72px; height: 72px; }

/* "Vault-Tec Tip" callout */
.tip {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(rgba(214,174,55,.20), rgba(214,174,55,.08)), var(--plaster-100);
  border: 1px solid var(--caution-dk); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 6px rgba(0,0,0,.25);
}
.tip__label { display: block; font: bold var(--fs-xs)/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--caution-dk); margin-bottom: 4px; }
.tip p { font-size: var(--fs-sm); }


/* ==========================================================================
   11. STATUS PANEL  "VAULT 106 // RADS 0 // POPULATION ..."
   ========================================================================== */
.status {
  border-radius: var(--radius); overflow: hidden; border: 1px solid #000;
  background-color: #0b0d07; background-image: var(--tex-grain-light), linear-gradient(#1a1d12, #0b0d07);
  box-shadow: 0 0 0 3px var(--soot-0), 0 0 0 4px rgba(168,185,119,.2), var(--shadow-2);
}
.status__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: var(--gloss-soot); border-bottom: 1px solid #000;
  font: bold var(--fs-xs)/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--plaster-200);
}
.status__readout { /* the "VAULT 106 // RADS 0 // POP ..." strip */
  padding: 10px 12px; font: bold var(--fs-sm)/1.5 var(--font-mono); letter-spacing: .06em;
  color: var(--phosphor); text-shadow: var(--glow-phosphor);
  background: var(--crt-bg); background-image: var(--scanlines);
  border-bottom: 1px solid #000; word-spacing: .1em;
}
.status__readout .sep { color: var(--phosphor-dim); text-shadow: none; }
.status__grid { display: grid; grid-template-columns: 1fr 1fr; }
.status__cell {
  padding: 9px 12px; border-right: 1px solid rgba(0,0,0,.8); border-bottom: 1px solid rgba(0,0,0,.8);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.04);
}
.status__cell:nth-child(2n) { border-right: 0; }
.status__label { display: flex; align-items: center; gap: 6px; font: var(--fs-xs)/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.status__value { display: block; margin-top: 3px; font: bold var(--fs-md)/1.2 var(--font-mono); color: var(--plaster-100); }
.status__value--ok { color: var(--phosphor); text-shadow: var(--glow-phosphor-soft); }
.status__value--warn { color: var(--caution); text-shadow: var(--glow-caution); }
.status__value--bad { color: #ff7a66; }
.status__foot { padding: 8px 12px; font: var(--fs-xs)/1.4 var(--font-body); color: var(--text-on-dark-soft); }

/* LEDs */
.led { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #333; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
.led--ok { background: radial-gradient(circle at 35% 35%, #d8ffe0, var(--phosphor) 45%, #1e8a3a); box-shadow: 0 0 6px var(--phosphor); }
.led--warn { background: radial-gradient(circle at 35% 35%, #fff2c2, var(--caution) 45%, #8d6f17); box-shadow: 0 0 6px var(--caution); }
.led--bad { background: radial-gradient(circle at 35% 35%, #ffd3cc, #ff5a43 45%, #8a1d10); box-shadow: 0 0 6px #ff5a43; }
.led--blink { animation: blink 1.4s linear infinite; }


/* ==========================================================================
   12. PROGRESS BARS, BUILD STATUS, COUNTDOWN
   Width is driven by an inline custom property:  style="--val:72"
   ========================================================================== */
.progress {
  position: relative; height: 22px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(#0b0c07, #262a1a);
  border: 1px solid #000;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.35);
}
.progress__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--val, 0) * 1%); min-width: 0;
  border-radius: 11px 0 0 11px;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.16) 0 8px, transparent 8px 16px),
    var(--gloss-olive);
  background-size: 22.6px 22.6px, auto;
  box-shadow: var(--gloss-hi), 2px 0 6px rgba(0,0,0,.5);
  animation: barber 1s linear infinite;
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.progress__bar[style*="--val:100"], .progress.is-complete .progress__bar { border-radius: 11px; }
.progress__value {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: bold var(--fs-xs)/1 var(--font-mono); color: #fff; letter-spacing: .08em;
  text-shadow: 0 0 3px #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
}
.progress--caution .progress__bar { background: repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 8px, transparent 8px 16px), var(--gloss-caution); background-size: 22.6px 22.6px, auto; }
.progress--alarm .progress__bar { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 8px, transparent 8px 16px), var(--gloss-alarm); background-size: 22.6px 22.6px, auto; }
.progress--phosphor { background: var(--crt-bg); border-color: var(--phosphor-faint); }
.progress--phosphor .progress__bar { background: repeating-linear-gradient(90deg, var(--phosphor) 0 6px, transparent 6px 8px); box-shadow: 0 0 8px rgba(125,255,155,.6); animation: none; border-radius: 0; }
.progress--thin { height: 10px; }
.progress--thin .progress__value { display: none; }
@keyframes barber { from { background-position: 0 0, 0 0; } to { background-position: 22.6px 0, 0 0; } }

/* Build status block */
.build { display: grid; gap: 14px; }
.build__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.build__label { font: bold var(--fs-sm)/1.3 var(--font-head); color: var(--olive-900); }
.build__state { font: bold var(--fs-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.build__state--done { color: #1f6b32; }
.build__state--wip { color: var(--caution-dk); }
.build__item .progress { grid-column: 1 / -1; }
.build__overall { padding: 12px; border-radius: var(--radius); background: rgba(28,35,15,.08); border: 1px solid rgba(28,35,15,.25); }
.build__overall .progress { height: 30px; border-radius: 15px; }
.build__overall .progress__value { font-size: var(--fs-sm); }

/* Countdown (odometer tiles) */
.countdown { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown__num {
  min-width: 2.4ch; padding: 6px 8px; border-radius: 5px;
  font: bold 1.6rem/1 var(--font-mono); text-align: center; color: #fff;
  background: linear-gradient(#3a3d33 0 49%, #000 49% 51%, #1d1f17 51%);
  border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 4px rgba(0,0,0,.5);
}
.countdown__label { font: bold 9px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__colon { font: bold 1.4rem/1 var(--font-mono); padding-bottom: 18px; color: var(--ink-soft); }
.countdown--dark .countdown__label, .countdown--dark .countdown__colon { color: var(--text-on-dark-soft); }


/* ==========================================================================
   13. DEV LOG HOLOTAPE
   ========================================================================== */
.holotape {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid #000;
  background-color: var(--soot-3);
  background-image: var(--tex-grain-light), var(--brushed), linear-gradient(#3b402b, #1d2014);
  box-shadow: 0 0 0 3px var(--soot-0), 0 0 0 4px rgba(168,185,119,.2), var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.15);
}
.holotape__shell { /* the cassette: reel - label - reel */
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
}
.holotape__reel {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background:
    radial-gradient(circle, #0c0d08 0 5px, transparent 5.5px),
    repeating-conic-gradient(#b9b799 0 20deg, #4a4c38 20deg 60deg),
    #333;
  border: 4px solid #0c0d08;
  box-shadow: 0 0 0 2px #575b42, inset 0 0 6px rgba(0,0,0,.8);
}
.holotape:hover .holotape__reel, .holotape.is-playing .holotape__reel { animation: spin 2.4s linear infinite; }
.holotape__label {
  flex: 1; min-width: 0; padding: 8px 12px 9px; border-radius: 4px;
  color: var(--ink);
  background-color: var(--plaster-100);
  background-image:
    repeating-linear-gradient(transparent 0 17px, rgba(31,90,49,.18) 17px 18px),
    var(--tex-grain-dark);
  border-top: 6px solid var(--olive-600);
  box-shadow: 0 1px 0 rgba(255,255,255,.3), 0 2px 4px rgba(0,0,0,.5);
  transform: rotate(-.4deg);
}
.holotape__id { display: block; font: bold 10px/1.2 var(--font-mono); letter-spacing: .16em; color: var(--olive-700); text-transform: uppercase; }
.holotape__title { margin-top: 2px; font: bold 1.05rem/1.2 var(--font-type); font-variant: normal; letter-spacing: 0; color: var(--ink); }
.holotape__title a { color: inherit; text-decoration: none; }
.holotape__title a:hover { text-decoration: underline; }
.holotape__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font: var(--fs-xs)/1.3 var(--font-mono); color: var(--ink-soft); }
.holotape__body {
  margin: 0 14px; padding: 14px 16px; border-radius: 6px;
  font-size: var(--fs-sm); line-height: 1.65;
}
.holotape__body p + p, .holotape__body ul { margin-top: .7em; }
.holotape__body ul { padding-left: 1.4em; list-style: square; }
.holotape__body .prompt::before { content: "> "; color: var(--phosphor-dim); }
.holotape__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 14px; }
.holotape__foot .btn { margin-left: auto; }


/* ==========================================================================
   14. TERMINAL  (interactive command console)
   ========================================================================== */
.terminal {
  position: relative; padding: 16px; border-radius: 18px;
  background: linear-gradient(#4a4e3a, #2b2e20 40%, #1a1c12);
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -3px 6px rgba(0,0,0,.5), var(--shadow-2);
}
.terminal__screen {
  position: relative; overflow: hidden; border-radius: 12px;
  padding: 16px 18px; min-height: 240px;
  font-size: var(--fs-sm); line-height: 1.55;
  border: 2px solid #000;
}
.terminal__screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.07), transparent 35%), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.55));
}
.terminal__header { text-align: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--phosphor-faint); letter-spacing: .08em; }
.terminal__header b { display: block; color: var(--phosphor-hi); text-shadow: var(--glow-phosphor); }
.terminal__output { overflow-y: auto; max-height: 340px; scrollbar-color: var(--phosphor-dim) transparent; }
.terminal__line + .terminal__line { margin-top: 0; }
.terminal__line { white-space: pre-wrap; word-break: break-word; min-height: 1.55em; }
.terminal__line--cmd::before { content: "> "; }
.terminal__line--cmd { color: var(--phosphor-hi); }
.terminal__line--sys { color: var(--phosphor-dim); }
.terminal__line--err { color: #ffb08a; text-shadow: 0 0 6px rgba(255,120,80,.5); }
.terminal__line--hi { background: var(--phosphor); color: var(--crt-bg); text-shadow: none; display: inline-block; padding: 0 4px; }
.terminal__form { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: var(--tap); border-top: 1px dashed var(--phosphor-faint); padding-top: 8px; }
.terminal__prompt { flex: none; color: var(--phosphor-hi); }
.terminal__input {
  flex: 1; min-width: 0; min-height: 36px; padding: 4px 2px;
  border: 0; background: transparent; color: var(--phosphor-hi);
  font: inherit; text-shadow: inherit; caret-color: var(--phosphor);
  text-transform: uppercase;
}
.terminal__input::placeholder { color: var(--phosphor-faint); text-shadow: none; }
.terminal__input:focus-visible { outline: 1px dashed var(--phosphor-dim); outline-offset: 2px; }
.terminal__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.terminal__chip {
  min-height: 34px; padding: 4px 10px; border: 1px solid var(--phosphor-dim); border-radius: 3px;
  background: transparent; color: var(--phosphor); font: var(--fs-xs)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  text-shadow: var(--glow-phosphor-soft);
}
.terminal__chip:hover, .terminal__chip:focus-visible { background: var(--phosphor); color: var(--crt-bg); text-shadow: none; }
.terminal__brand { /* bezel nameplate under the screen */
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 0 6px;
  font: bold 10px/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: #a5a88a;
  text-shadow: 0 -1px 0 #000;
}
.terminal__brand .led { margin-left: 6px; }
/* Blinking block cursor */
/* fake block cursor before the input; hidden once the real caret takes over */
.terminal__form:focus-within .cursor, .terminal__form:has(.terminal__input:not(:placeholder-shown)) .cursor { display: none; }
.terminal__form .cursor { margin: 0 -4px 0 0; }
.cursor {
  display: inline-block; width: .62em; height: 1.1em; vertical-align: -.18em; margin-left: 2px;
  background: var(--phosphor); box-shadow: 0 0 8px var(--phosphor);
  animation: blink 1s linear infinite;
}


/* ==========================================================================
   15. PIP-BOY TABS  (STAT / INV / DATA / MAP / RADIO)
   ========================================================================== */
.pip {
  position: relative; padding: 14px; border-radius: 22px 22px 18px 18px;
  background:
    var(--tex-grain-light),
    linear-gradient(#56603a, #39411f 45%, #252b13);
  border: 2px solid #0d0f07;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -4px 10px rgba(0,0,0,.6), var(--shadow-2);
}
.pip__screen { border-radius: 14px; padding: 12px 14px 16px; border: 3px solid #0a0b06; min-height: 220px; font-size: var(--fs-sm); }
.pip__tabs { display: flex; justify-content: space-between; gap: 2px; border-bottom: 2px solid var(--phosphor-dim); margin-bottom: 12px; box-shadow: 0 1px 6px rgba(125,255,155,.35); }
.pip__tab {
  flex: 1; min-height: var(--tap); padding: 6px 4px; margin-bottom: -2px;
  border: 2px solid transparent; border-bottom: 0; background: transparent;
  color: var(--phosphor-dim); font: bold var(--fs-sm)/1 var(--font-mono); letter-spacing: .12em;
  text-shadow: none;
}
.pip__tab:hover { color: var(--phosphor); }
.pip__tab[aria-selected="true"] {
  color: var(--phosphor-hi); text-shadow: var(--glow-phosphor);
  border-color: var(--phosphor); border-bottom: 2px solid var(--crt-bg);
  background: linear-gradient(rgba(125,255,155,.14), transparent);
}
.pip__panel > * + * { margin-top: .7em; }
.pip__panel h3 { font: bold var(--fs-md)/1.2 var(--font-mono); font-variant: normal; letter-spacing: .1em; color: var(--phosphor-hi); text-shadow: var(--glow-phosphor); }
.pip__list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 6px; border-bottom: 1px dotted var(--phosphor-faint); }
.pip__list li.is-selected, .pip__list li:hover { background: var(--phosphor); color: var(--crt-bg); text-shadow: none; }
.pip__knobs { display: flex; justify-content: space-between; margin-top: 10px; padding: 0 10px; }
.pip__knob { width: 26px; height: 26px; border-radius: 50%; background: repeating-conic-gradient(#2a2e1c 0 10deg, #6a6f4f 10deg 20deg); border: 2px solid #0d0f07; box-shadow: inset 0 0 4px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.2); }
/* Alternate nav that looks like the Pip-Boy tab row */
.nav--pip { background: var(--crt-bg); background-image: var(--scanlines); padding-top: 8px; }
.nav--pip .nav__link { background: transparent; border: 2px solid transparent; border-bottom: 0; box-shadow: none; color: var(--phosphor-dim); text-shadow: none; font-family: var(--font-mono); }
.nav--pip .nav__link::before { display: none; }
.nav--pip .nav__link:hover { color: var(--phosphor); background: rgba(125,255,155,.08); }
.nav--pip .nav__link[aria-current="page"] { color: var(--phosphor-hi); border-color: var(--phosphor); text-shadow: var(--glow-phosphor); background: linear-gradient(rgba(125,255,155,.14), transparent); }
.nav--pip .nav__pip { color: inherit; }


/* ==========================================================================
   16. VAULT DWELLER ID CARD
   ========================================================================== */
.idcard {
  position: relative; overflow: hidden; max-width: 340px;
  border-radius: 12px; border: 1px solid #4b5230;
  color: var(--ink);
  background-color: var(--plaster-100);
  background-image:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 42%, transparent 52%), /* laminate sheen */
    var(--tex-stain), var(--tex-grain-dark),
    linear-gradient(var(--plaster-50), var(--plaster-300));
  box-shadow: 0 0 0 3px var(--soot-0), 0 8px 16px rgba(0,0,0,.6), inset 0 0 0 4px rgba(255,255,255,.35);
  font-size: var(--fs-xs);
}
.idcard__head {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--gloss-olive-dk); color: var(--plaster-50);
  font: bold 10px/1.15 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: var(--gloss-hi);
}
.idcard__head .ico { width: 22px; height: 22px; color: var(--caution); flex: none; }
.idcard__head b { display: block; font-size: 12px; color: #fff; }
.idcard__body { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px; }
.idcard__photo {
  position: relative; aspect-ratio: 4 / 5; border: 2px solid var(--olive-900); border-radius: 3px;
  background: linear-gradient(#aab480, #6e7d3b);
  color: var(--olive-900); display: grid; place-items: end center; overflow: hidden;
}
.idcard__photo .ico { width: 80%; height: 80%; opacity: .85; }
.idcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.idcard__fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-content: start; }
.idcard__fields dt { font: bold 9px/1.6 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.idcard__fields dd { font: bold var(--fs-sm)/1.35 var(--font-type); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idcard__foot { display: flex; align-items: center; gap: 10px; padding: 0 10px 10px; }
.idcard__barcode {
  flex: 1; height: 26px;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 3px, #111 3px 4px, transparent 4px 7px, #111 7px 10px, transparent 10px 11px, #111 11px 12px, transparent 12px 15px);
  opacity: .85;
}
.idcard__holo {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 30deg, #bde0c8, #e4d3a3, #d9b6d8, #a8cfe0, #c9e3a6, #bde0c8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 1px 2px rgba(0,0,0,.3); color: rgba(28,35,15,.55);
}
.idcard__holo .ico { width: 24px; height: 24px; }
.idcard__sign { padding: 0 10px 10px; font: italic 13px/1 "Brush Script MT", "Segoe Script", cursive; color: #233a7a; }
.idcard__sign::before { content: "Signature: "; font: 9px/1 var(--font-head); color: var(--ink-faint); letter-spacing: .1em; text-transform: uppercase; font-style: normal; }


/* ==========================================================================
   17. CLASSIFIED DOCUMENT, REDACTION, STAMP
   ========================================================================== */
.classified {
  position: relative; margin-top: 22px; padding: 26px 24px 22px;
  color: #22200f;
  background-color: var(--manila);
  background-image:
    repeating-linear-gradient(transparent 0 25px, rgba(91,74,20,.12) 25px 26px),
    var(--tex-stain), var(--tex-grain-dark),
    linear-gradient(#e9e0b6, #cfc290);
  border: 1px solid #8a7b47; border-radius: 2px 6px 6px 6px;
  box-shadow: 0 0 0 3px var(--soot-0), var(--shadow-2), inset 0 0 30px rgba(120,95,30,.25);
  font: var(--fs-sm)/1.7 var(--font-type);
}
.classified::before { /* folder tab */
  content: attr(data-file); position: absolute; left: -1px; top: -22px; height: 22px; padding: 0 16px;
  display: flex; align-items: center;
  font: bold 10px/1 var(--font-mono); letter-spacing: .14em; color: #5a4c1d; text-transform: uppercase;
  background: linear-gradient(#e9e0b6, #ddd2a2); border: 1px solid #8a7b47; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.classified::after { /* paper clip */
  content: ""; position: absolute; top: -12px; right: 22px; width: 14px; height: 42px;
  border: 3px solid #9fa29a; border-radius: 8px; border-bottom-color: transparent;
  box-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.classified__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid #22200f; }
.classified__head dt { font-weight: bold; text-transform: uppercase; letter-spacing: .08em; }
.classified__title { font: bold var(--fs-lg)/1.2 var(--font-type); font-variant: normal; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.classified p + p { margin-top: .9em; }
.classified__sig { margin-top: 16px; font-style: italic; }
.classified .stamp { position: absolute; right: 54px; top: 34px; }
/* Redaction bar. Reveals on hover/focus (CSS) and stays revealed with .is-revealed (JS). */
.redact {
  position: relative; display: inline; padding: 0 2px; border-radius: 1px;
  background: #121208; color: transparent; text-shadow: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  cursor: pointer; transition: background-color .25s, color .25s;
  box-shadow: 0 0 0 1px #121208;
  user-select: none;
}
.redact:hover, .redact:focus-visible, .redact.is-revealed {
  background: rgba(196,57,42,.15); color: var(--alarm-dk); box-shadow: 0 0 0 1px rgba(196,57,42,.35); user-select: text;
}
.redact:focus-visible { outline: 2px dashed var(--alarm); outline-offset: 2px; }
.screen .redact { background: var(--phosphor-dim); box-shadow: 0 0 0 1px var(--phosphor-dim); }
.screen .redact:hover, .screen .redact:focus-visible, .screen .redact.is-revealed { background: transparent; color: var(--phosphor-hi); }
/* Rubber stamp */
.stamp {
  display: inline-block; padding: 6px 12px; border: 3px solid currentColor; border-radius: 4px;
  color: var(--alarm); opacity: .78; transform: rotate(-9deg);
  font: bold 1.1rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 0 1px currentColor inset;
  -webkit-mask-image: var(--tex-grain-dark), linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* on paper, ink soaks in */
.classified .stamp, .panel .stamp, .poster .stamp, .idcard .stamp { mix-blend-mode: multiply; }
.stamp--ok { color: #2c6b2a; }
.stamp--ink { color: #22200f; }


/* ==========================================================================
   18. BESTIARY ENTRY CARD
   ========================================================================== */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.entry { display: flex; flex-direction: column; }
.entry .panel__body { flex: 1; display: flex; flex-direction: column; }
.entry__sub { font: var(--fs-xs)/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin-left: auto; }
.entry__summary { font-size: var(--fs-sm); color: var(--ink-soft); }
.entry__notes { margin-top: auto !important; padding: 10px 12px; font: italic var(--fs-sm)/1.5 var(--font-type); background: rgba(255,255,255,.4); border-left: 4px solid var(--olive-600); }
.entry__notes::before { content: "FIELD NOTES: "; font-style: normal; font-weight: bold; letter-spacing: .08em; color: var(--olive-700); }
/* threat level pips */
.threat { display: inline-flex; align-items: center; gap: 2px; }
.threat__label { font: bold 10px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-right: 6px; }
.threat .ico { width: 15px; height: 15px; color: var(--alarm); }
.threat .ico.is-off { color: rgba(28,35,15,.2); }
/* media slot + placeholder */
.media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px;
  border: 2px solid var(--olive-900); background: var(--soot-1);
  box-shadow: 0 2px 0 rgba(255,255,255,.5), inset 0 0 20px rgba(0,0,0,.6);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font: var(--fs-xs)/1.3 var(--font-mono); color: var(--phosphor); background: rgba(3,16,8,.8); text-shadow: var(--glow-phosphor-soft); }
.media-ph { /* "NO IMAGE ON FILE" placeholder */
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center;
  color: var(--phosphor-dim); font: bold var(--fs-xs)/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  background:
    linear-gradient(rgba(125,255,155,.06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(125,255,155,.06) 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(ellipse at center, #0a2a15, var(--crt-bg) 75%);
}
.media-ph .ico { width: 54px; height: 54px; margin: 0 auto; color: var(--phosphor-dim); filter: drop-shadow(0 0 6px rgba(125,255,155,.35)); }
/* stat rows with segmented bars */
.stats { display: grid; gap: 7px; }
.stat { display: grid; grid-template-columns: 64px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.stat__label { font: bold 10px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.stat__value { font: bold var(--fs-xs)/1 var(--font-mono); text-align: right; color: var(--ink); }
.statbar {
  position: relative; height: 12px; border-radius: 2px; overflow: hidden;
  background: rgba(28,35,15,.18); box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.statbar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--val, 0) * 1%);
  background: var(--gloss-olive); transition: width 1s ease-out;
}
.statbar::after { /* 10 segments */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--plaster-200) calc(10% - 2px) 10%);
}
.statbar--alarm::before { background: var(--gloss-alarm); }
.statbar--caution::before { background: var(--gloss-caution); }
.statbar--phosphor { background: var(--crt-bg); }
.statbar--phosphor::before { background: var(--phosphor); box-shadow: 0 0 6px var(--phosphor); }
.statbar--phosphor::after { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--crt-bg) calc(10% - 2px) 10%); }
.panel--metal .stat__label, .panel--metal .stat__value { color: var(--text-on-dark); }
.screen .stat__label, .screen .stat__value { color: inherit; }
.screen .stat__label { color: var(--phosphor-dim); }
.panel--metal .statbar { background: rgba(0,0,0,.45); }
.panel--metal .statbar::after { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #1d2014 calc(10% - 2px) 10%); }


/* ==========================================================================
   19. WEAPON CARD
   ========================================================================== */
.weapons { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.weapon {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid #000; color: var(--text-on-dark);
  background-color: var(--soot-3);
  background-image: var(--rivets), var(--tex-grain-light), var(--brushed), linear-gradient(#3a3f2a, #1b1e13);
  box-shadow: 0 0 0 3px var(--soot-0), 0 0 0 4px rgba(168,185,119,.2), var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.15);
}
.weapon__head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 28px 10px; }
.weapon__name { font: bold var(--fs-lg)/1.1 var(--font-head); font-variant: small-caps; letter-spacing: .04em; color: var(--plaster-50); }
.weapon__type { display: block; margin-top: 3px; font: var(--fs-xs)/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--olive-300); }
.weapon__unlock {
  margin-left: auto; flex: none; padding: 5px 8px; border-radius: 4px; text-align: center;
  background: var(--gloss-caution); color: #1d1a08; border: 1px solid #5f4a0c;
  font: bold 10px/1.1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; box-shadow: var(--gloss-hi);
}
.weapon__unlock b { display: block; font-size: 15px; letter-spacing: 0; }
.weapon__unlock--start { background: var(--gloss-olive); color: #fff; border-color: #1a210c; text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.weapon__unlock--soon { background: var(--gloss-soot); color: var(--text-on-dark-soft); border-color: #000; }
.weapon__art { /* blueprint/screen silhouette area */
  position: relative; margin: 0 14px; aspect-ratio: 2 / 1; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center; border: 2px solid #000;
  background:
    linear-gradient(rgba(125,255,155,.07) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(125,255,155,.07) 1px, transparent 1px) 0 0 / 14px 14px,
    radial-gradient(ellipse at center, #0b2f18, var(--crt-bg) 75%);
}
.weapon__art .ico { width: 46%; height: 70%; color: var(--phosphor); filter: drop-shadow(0 0 8px rgba(125,255,155,.5)); opacity: .9; }
.weapon__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.weapon__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.weapon__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #000; border: 1px solid #000; border-radius: 4px; overflow: hidden; }
.weapon__stats div { padding: 6px 8px; background: linear-gradient(#262a1b, #191c11); }
.weapon__stats dt { font: bold 9px/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.weapon__stats dd { font: bold var(--fs-md)/1.2 var(--font-mono); color: var(--phosphor); text-shadow: var(--glow-phosphor-soft); }
.weapon__desc { font-size: var(--fs-sm); color: var(--text-on-dark); }
/* condition bar: red -> yellow -> green gradient, uncovered to --val */
.condition { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.condition__label, .condition__value { font: bold 10px/1 var(--font-mono); letter-spacing: .12em; color: var(--text-on-dark-soft); }
.condition__track {
  position: relative; height: 12px; border-radius: 2px; overflow: hidden; border: 1px solid #000;
  background: linear-gradient(90deg, #b5382a, #d6ae37 50%, #73c04f);
}
.condition__track::before { /* cover from the right */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: calc((100 - var(--val, 100)) * 1%);
  background: #101209; box-shadow: -1px 0 0 rgba(255,255,255,.4);
  transition: width 1s ease-out;
}
.condition__track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(0,0,0,.45) 7px 8px), linear-gradient(rgba(255,255,255,.3), transparent 50%); }


/* ==========================================================================
   20. CAUTION DIVIDER
   ========================================================================== */
.caution {
  display: block; height: 14px; margin: var(--sp-6) 0; border: 0;
  background: var(--tex-grain-light), var(--hazard);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06), 0 2px 4px rgba(0,0,0,.5);
}
.caution--thin { height: 6px; }
.caution--label { position: relative; height: 26px; display: flex; align-items: center; justify-content: center; }
.caution--label > span {
  padding: 3px 14px; background: #14150d; color: var(--caution); border: 1px solid var(--caution);
  font: bold var(--fs-xs)/1.2 var(--font-head); letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 0 0 3px #14150d;
}


/* ==========================================================================
   21. COMMUNITY BITS: SHOUTBOX, POLL, FORUM SIG, HIT COUNTER
   ========================================================================== */
/* Shoutbox / guestbook */
.shoutbox__list { max-height: 260px; overflow-y: auto; margin: -16px -18px 0; border-bottom: 1px solid rgba(28,35,15,.25); }
.shout { padding: 8px 14px; font-size: var(--fs-sm); line-height: 1.45; border-bottom: 1px solid rgba(28,35,15,.12); }
.shout:nth-child(even) { background: rgba(76,93,40,.10); }
.shout__user { font-weight: bold; color: var(--olive-800); }
.shout__user--admin { color: var(--alarm-dk); }
.shout__user--admin::after { content: " \2605"; color: var(--caution-dk); }
.shout__time { float: right; font: var(--fs-xs)/1.6 var(--font-mono); color: var(--ink-faint); }
.shout__msg { display: block; color: var(--ink); word-wrap: break-word; }
.shoutbox__form { display: flex; gap: 6px; margin-top: 12px; }
.field {
  flex: 1; min-width: 0; min-height: var(--tap); padding: 8px 10px; border-radius: 5px;
  border: 1px solid #6c6a54; background: #fbfaf2; color: var(--ink);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.18);
  font-size: var(--fs-base);
}
.field:focus-visible { outline: 2px solid var(--caution); outline-offset: 1px; border-color: var(--caution-dk); }
.field--dark { background: #0b0d07; color: var(--plaster-100); border-color: #000; }
.shoutbox__note { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-faint); font-style: italic; }

/* Poll */
.poll__q { font-weight: bold; font-size: var(--fs-sm); }
.poll__opts { margin-top: 8px; display: grid; gap: 2px; }
.poll__opt { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: var(--fs-sm); cursor: pointer; }
.poll__opt input { width: 18px; height: 18px; accent-color: var(--olive-600); }
.poll__results { display: grid; gap: 8px; margin-top: 4px; }
.poll__row { font-size: var(--fs-xs); }
.poll__row span { float: right; font-family: var(--font-mono); }
.poll__row .progress { margin-top: 3px; }

/* Forum signature */
.sig { margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(28,35,15,.4); font-size: var(--fs-xs); color: var(--ink-faint); }
.sig > * + * { margin-top: 6px; }
.sig__quote { font-style: italic; }

/* Hit counter (odometer) */
.hitcounter { display: inline-flex; flex-direction: column; gap: 6px; }
.hitcounter__label { font: bold var(--fs-xs)/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.hitcounter__digits { align-self: flex-start; display: inline-flex; gap: 2px; padding: 3px; border-radius: 4px; background: #000; border: 1px solid #3b3f2c; box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.digit {
  width: 20px; height: 28px; display: grid; place-items: center; border-radius: 2px;
  font: bold 18px/1 var(--font-mono); color: #f4f3e8;
  background: linear-gradient(#45493a 0 48%, #000 48% 52%, #23261a 52%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.digit:last-child { color: #ffb4a6; background: linear-gradient(#6e2a20 0 48%, #000 48% 52%, #3e130c 52%); }
.hitcounter__since { font: var(--fs-xs)/1.2 var(--font-mono); color: var(--text-on-dark-soft); }


/* ==========================================================================
   22. MISC CONTENT
   ========================================================================== */
.table { width: 100%; font-size: var(--fs-sm); border: 1px solid rgba(28,35,15,.4); }
.table th { text-align: left; padding: 7px 10px; background: var(--gloss-olive); color: #fff; font: bold var(--fs-xs)/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.table td { padding: 7px 10px; border-top: 1px solid rgba(28,35,15,.15); vertical-align: top; }
.table tr:nth-child(even) td { background: rgba(76,93,40,.08); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px;
  font: bold 10px/1.5 var(--font-head); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  background: var(--gloss-olive); color: #fff; border: 1px solid #1a210c; text-shadow: 0 -1px 0 rgba(0,0,0,.45);
  box-shadow: var(--gloss-hi);
}
.tag--caution { background: var(--gloss-caution); color: #1d1a08; border-color: #5f4a0c; text-shadow: none; }
.tag--alarm { background: var(--gloss-alarm); border-color: #4b1209; }
.tag--soot { background: var(--gloss-soot); border-color: #000; color: var(--plaster-200); }
.tag--phosphor { background: var(--crt-bg); color: var(--phosphor); border-color: var(--phosphor-dim); text-shadow: var(--glow-phosphor-soft); box-shadow: none; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

.kbd, kbd { display: inline-block; padding: 1px 6px; border-radius: 4px; border: 1px solid #6c6a54; background: var(--gloss-plaster); color: var(--ink); font: bold var(--fs-xs)/1.5 var(--font-mono); box-shadow: 0 2px 0 #6c6a54; }
.fineprint { font-size: var(--fs-xs); line-height: 1.5; font-style: italic; opacity: .9; }
.list-check { display: grid; gap: 6px; }
.list-check li { position: relative; padding-left: 24px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: var(--olive-600);
  -webkit-mask: var(--ico-check) center/contain no-repeat; mask: var(--ico-check) center/contain no-repeat;
}
.panel--metal .list-check li::before, .screen .list-check li::before { background: var(--phosphor); }
.media-row { display: flex; gap: 14px; align-items: flex-start; }
.media-row > :first-child { flex: none; }
.dl-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: var(--fs-sm); }
.dl-grid dt { font-weight: bold; color: var(--olive-800); }
.quote { padding: 12px 16px; border-left: 4px solid var(--caution); background: rgba(214,174,55,.12); font: italic var(--fs-md)/1.5 Georgia, "Times New Roman", serif; }
.quote cite { display: block; margin-top: 6px; font: normal var(--fs-xs)/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }


/* ==========================================================================
   23. ICONS  (CSS mask icons: inherit currentColor, size via width/height)
   Usage: <i class="ico ico--cog" aria-hidden="true"></i>
   Set:   cog rad vault thumb skull pistol atom tape radio pin star check
          warn rss people bolt terminal vr phone crate person chat heart
          arrow lock
   ========================================================================== */
.ico {
  display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.125em;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}
.ico--cog{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4.4 12a7.6 7.6 0 1 0 15.2 0a7.6 7.6 0 1 0 -15.2 0ZM8.8 12a3.2 3.2 0 1 0 6.4 0a3.2 3.2 0 1 0 -6.4 0Z'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(0.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(36.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(72.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(108.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(144.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(180.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(216.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(252.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(288.0 12 12)'/%3E%3Crect x='10.5' y='1.8000000000000003' width='3' height='3.2' rx='.6' transform='rotate(324.0 12 12)'/%3E%3C/svg%3E")}
.ico--rad{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 2.91A10.5 10.5 0 0 1 17.25 2.91L13.80 8.88A3.6 3.6 0 0 0 10.20 8.88ZM22.50 12.00A10.5 10.5 0 0 1 17.25 21.09L13.80 15.12A3.6 3.6 0 0 0 15.60 12.00ZM6.75 21.09A10.5 10.5 0 0 1 1.50 12.00L8.40 12.00A3.6 3.6 0 0 0 10.20 15.12ZM9.8 12a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0Z'/%3E%3C/svg%3E")}
.ico--vault{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M0.8000000000000007 12a11.2 11.2 0 1 0 22.4 0a11.2 11.2 0 1 0 -22.4 0ZM2.8000000000000007 12a9.2 9.2 0 1 0 18.4 0a9.2 9.2 0 1 0 -18.4 0ZM5.6 12a6.4 6.4 0 1 0 12.8 0a6.4 6.4 0 1 0 -12.8 0ZM9.4 12a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0Z'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(0 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(40 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(80 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(120 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(160 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(200 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(240 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(280 12 12)'/%3E%3Crect x='11.1' y='3.6' width='1.8' height='2.6' rx='.4' transform='rotate(320 12 12)'/%3E%3Crect x='11.2' y='2.2' width='1.6' height='7.4' transform='rotate(60 12 12)'/%3E%3Crect x='11.2' y='2.2' width='1.6' height='7.4' transform='rotate(180 12 12)'/%3E%3Crect x='11.2' y='2.2' width='1.6' height='7.4' transform='rotate(300 12 12)'/%3E%3C/svg%3E")}
.ico--thumb{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 10h4v11H2zM8 21V10l4.2-7.4c.4-.7 1.2-1 2-.7 1 .4 1.5 1.4 1.3 2.4L14.7 8.5H20c1.3 0 2.3 1.2 2 2.5l-1.6 7.8c-.3 1.3-1.4 2.2-2.7 2.2z'/%3E%3C/svg%3E")}
.ico--skull{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5c-5 0-9 3.7-9 8.6 0 2.9 1.4 5.2 3.4 6.6V20c0 .8.7 1.5 1.5 1.5h8.2c.8 0 1.5-.7 1.5-1.5v-3.3c2-1.4 3.4-3.7 3.4-6.6 0-4.9-4-8.6-9-8.6zM6.1000000000000005 11a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0ZM13.5 11a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0ZM12 13.6l1.6 2.6h-3.2z'/%3E%3Crect x='9' y='18.2' width='1.3' height='3.3' fill-opacity='0'/%3E%3C/svg%3E")}
.ico--pistol{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6h19.5v4.2H14l-.6 1.6h-2.9l-.6 1.4c-.3.7-1 1.1-1.8 1.1H7.6L6.2 20.5H1.8L4 11.2c-1.1-.3-2-1.3-2-2.5zM9.1 10.4l-.6 1.9h1.2l.7-1.9z'/%3E%3C/svg%3E")}
.ico--atom{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='4.2'/%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='4.2' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='4.2' transform='rotate(120 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.3'/%3E%3C/svg%3E")}
.ico--tape{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2.5 5h19c.8 0 1.5.7 1.5 1.5v11c0 .8-.7 1.5-1.5 1.5h-2.3l-1.4-3H6.2l-1.4 3H2.5c-.8 0-1.5-.7-1.5-1.5v-11C1 5.7 1.7 5 2.5 5zM4.9 11a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0ZM13.9 11a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0Z'/%3E%3C/svg%3E")}
.ico--radio{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 12a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0Z'/%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7.8 7.8a6 6 0 0 0 0 8.4M16.2 7.8a6 6 0 0 1 0 8.4M4.6 4.6a10.5 10.5 0 0 0 0 14.8M19.4 4.6a10.5 10.5 0 0 1 0 14.8'/%3E%3C/g%3E%3C/svg%3E")}
.ico--pin{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5a7.5 7.5 0 0 0-7.5 7.5c0 5.6 7.5 13.5 7.5 13.5s7.5-7.9 7.5-13.5A7.5 7.5 0 0 0 12 1.5zM9.2 9a2.8 2.8 0 1 0 5.6 0a2.8 2.8 0 1 0 -5.6 0Z'/%3E%3C/svg%3E")}
.ico--star{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.6l-6.3 3.6 1.5-7.1L1.8 9.2 9 8.4z'/%3E%3C/svg%3E")}
.ico--check{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 16.6L4.4 11.8 2.3 13.9l6.9 6.9L21.7 8.3l-2.1-2.1z'/%3E%3C/svg%3E")}
.ico--warn{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.8L.8 21.5h22.4zM10.8 8.5h2.4l-.3 7h-1.8zm1.2 8.8a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8z'/%3E%3C/svg%3E")}
.ico--rss{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.4 19a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0Z'/%3E%3Cg fill='none' stroke='%23000' stroke-width='3.2'%3E%3Cpath d='M2.5 11a10.5 10.5 0 0 1 10.5 10.5M2.5 3.5a18 18 0 0 1 18 18'/%3E%3C/g%3E%3C/svg%3E")}
.ico--people{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 6.5a3.5 3.5 0 1 0 7.0 0a3.5 3.5 0 1 0 -7.0 0ZM14.2 7.5a2.8 2.8 0 1 0 5.6 0a2.8 2.8 0 1 0 -5.6 0ZM1.5 21v-2.5c0-3.3 2.9-6 6.5-6s6.5 2.7 6.5 6V21zM15.5 21v-2.5c0-1.6-.5-3-1.4-4.2.9-.5 1.9-.8 2.9-.8 3 0 5.5 2.3 5.5 5.1V21z'/%3E%3C/svg%3E")}
.ico--bolt{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 1L4 13.5h6.5L9 23l11-13.5h-6.8z'/%3E%3C/svg%3E")}
.ico--terminal{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M1 3.5h22v17H1zM3 7v11.5h18V7zm2 2.2l1.4-1.4 4 4-4 4L5 14.4l2.6-2.6zm6.5 5.3h6v1.8h-6z'/%3E%3C/svg%3E")}
.ico--vr{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3.5 6h17C22 6 23 7 23 8.5v7c0 1.4-1.1 2.5-2.5 2.5h-4.2L13.6 14.6c-.8-1-2.4-1-3.2 0L7.7 18H3.5C2 18 1 16.9 1 15.5v-7C1 7 2 6 3.5 6zM4.4 11.6a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM14.799999999999999 11.6a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0Z'/%3E%3C/svg%3E")}
.ico--phone{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 1h10c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2zm0 3v14h10V4zm3.5 15.5h3V21h-3z'/%3E%3C/svg%3E")}
.ico--crate{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 4h20v16H2zm2 2v12h16V6zm2 2h12v2H6zm0 3h12v2H6zm0 3h12v2H6z'/%3E%3C/svg%3E")}
.ico--person{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.4 7a4.6 4.6 0 1 0 9.2 0a4.6 4.6 0 1 0 -9.2 0ZM3 23v-3c0-4.4 4-7.2 9-7.2s9 2.8 9 7.2v3z'/%3E%3C/svg%3E")}
.ico--chat{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h18c1.1 0 2 .9 2 2v11c0 1.1-.9 2-2 2h-9l-5.5 4.5V18H3c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z'/%3E%3C/svg%3E")}
.ico--heart{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.5S1.5 15 1.5 8.2C1.5 5 4 2.5 7 2.5c2 0 3.8 1.1 5 2.8 1.2-1.7 3-2.8 5-2.8 3 0 5.5 2.5 5.5 5.7 0 6.8-10.5 13.3-10.5 13.3z'/%3E%3C/svg%3E")}
.ico--arrow{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3.5L16.5 12 8 20.5 5.9 18.4l6.4-6.4-6.4-6.4z'/%3E%3C/svg%3E")}
.ico--lock{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 10V7a6 6 0 0 1 12 0v3h1.5c.8 0 1.5.7 1.5 1.5v10c0 .8-.7 1.5-1.5 1.5h-15C3.7 23 3 22.3 3 21.5v-10C3 10.7 3.7 10 4.5 10zm3 0h6V7a3 3 0 0 0-6 0zM10.2 16a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0 -3.6 0Z'/%3E%3C/svg%3E")}
:root {
  /* icon shortcuts for pseudo-elements */
  --ico-rad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 2.91A10.5 10.5 0 0 1 17.25 2.91L13.80 8.88A3.6 3.6 0 0 0 10.20 8.88ZM22.50 12.00A10.5 10.5 0 0 1 17.25 21.09L13.80 15.12A3.6 3.6 0 0 0 15.60 12.00ZM6.75 21.09A10.5 10.5 0 0 1 1.50 12.00L8.40 12.00A3.6 3.6 0 0 0 10.20 15.12ZM9.8 12a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0Z'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 16.6L4.4 11.8 2.3 13.9l6.9 6.9L21.7 8.3l-2.1-2.1z'/%3E%3C/svg%3E");
  --ico-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.8L.8 21.5h22.4zM10.8 8.5h2.4l-.3 7h-1.8zm1.2 8.8a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8z'/%3E%3C/svg%3E");
  --ico-rss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.4 19a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0Z'/%3E%3Cg fill='none' stroke='%23000' stroke-width='3.2'%3E%3Cpath d='M2.5 11a10.5 10.5 0 0 1 10.5 10.5M2.5 3.5a18 18 0 0 1 18 18'/%3E%3C/g%3E%3C/svg%3E");
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3.5L16.5 12 8 20.5 5.9 18.4l6.4-6.4-6.4-6.4z'/%3E%3C/svg%3E");
}


/* ==========================================================================
   24. EFFECTS: CRT OVERLAY, PHOSPHOR, FLICKER, BLINK, BOOT OVERLAY
   ========================================================================== */
/* --- CRT overlay: <div class="crt-overlay" aria-hidden="true"></div>
   Visible when <html> has .crt-on (JS toggles + persists). --- */
.crt-overlay { position: fixed; inset: 0; z-index: 900; pointer-events: none; display: none; }
html.crt-on .crt-overlay { display: block; }
.crt-overlay::before { /* scanlines */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.11) 2px 3px);
}
.crt-overlay::after { /* vignette + faint green cast, gently flickering */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(0,0,0,.42) 100%), rgba(125,255,155,.012);
  animation: crt-flicker 6s infinite;
}
.crt-overlay__roll { /* slow rolling refresh band */
  position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(transparent, rgba(198,255,210,.035) 50%, transparent);
  animation: crt-roll 9s linear infinite;
}
@keyframes crt-flicker {
  0%, 100% { opacity: 1; } 3% { opacity: .85; } 6% { opacity: 1; } 40% { opacity: .96; } 42% { opacity: 1; } 71% { opacity: .9; } 72% { opacity: 1; }
}
@keyframes crt-roll { from { transform: translateY(0); } to { transform: translateY(700%); } }

/* --- Phosphor text --- */
.phosphor { color: var(--phosphor); text-shadow: var(--glow-phosphor); font-family: var(--font-mono); }
.phosphor-hi { color: var(--phosphor-hi); text-shadow: var(--glow-phosphor); }
.glow-caution { color: var(--caution); text-shadow: var(--glow-caution); }
.flicker { animation: text-flicker 4s infinite; }
@keyframes text-flicker {
  0%, 100% { opacity: 1; } 8% { opacity: .7; } 9% { opacity: 1; } 52% { opacity: 1; } 53% { opacity: .55; } 55% { opacity: 1; } 80% { opacity: .92; }
}
.blink { animation: blink 1s linear infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
/* typewriter reveal helper: JS sets the text; CSS hides overflow until .is-typed */
.typing::after { content: "\2588"; margin-left: 2px; animation: blink 1s linear infinite; }

/* --- Boot / loading overlay ---------------------------------------------
   Hidden unless JS adds .is-active. Stages via data-stage:
   "log" (terminal POST text) -> "presents" ("MCDUDEMAN PRESENTS")
   -> "logo" (logo burns in) ; add .is-leaving to play CRT power-off. */
.boot {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: #000;
}
.boot.is-active { display: flex; }
html.is-booting, html.is-booting body { overflow: hidden; }
.boot__screen {
  position: relative; width: min(760px, 100%); height: min(520px, 82vh); overflow: hidden;
  padding: 24px; border-radius: 22px / 18px; font-size: var(--fs-sm); line-height: 1.6;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 10px #15170e, 0 0 0 12px #000, 0 0 60px rgba(125,255,155,.18), inset 0 0 80px rgba(0,0,0,.9);
}
.boot__log { flex: 1; margin: 0; white-space: pre-wrap; overflow: hidden; font: inherit; }
.boot__presents, .boot__logo { display: none; }
.boot[data-stage="presents"] .boot__log, .boot[data-stage="logo"] .boot__log { display: none; }
.boot[data-stage="presents"] .boot__presents {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: bold clamp(1rem, 4vw, 1.6rem)/1.4 var(--font-mono); letter-spacing: .45em; color: var(--phosphor-hi);
  text-shadow: var(--glow-phosphor); animation: presents 2.4s ease-in-out both;
}
.boot__presents small { display: block; margin-top: 14px; font-size: .55em; letter-spacing: .3em; color: var(--phosphor-dim); }
.boot[data-stage="logo"] .boot__logo { flex: 1; display: grid; place-items: center; }
.boot__logo img { width: min(560px, 92%); animation: burn-in 2.8s cubic-bezier(.3,.1,.3,1) both; }
.boot__bar { margin-top: 14px; flex: none; }
.boot__skip { position: absolute; right: 20px; bottom: 20px; z-index: 2; }
.boot__hint { position: absolute; left: 24px; bottom: 30px; font: var(--fs-xs)/1 var(--font-mono); color: var(--phosphor-dim); letter-spacing: .1em; }
.boot.is-leaving .boot__screen { animation: crt-off .55s ease-in forwards; }
.boot.is-leaving { animation: fade-out .3s .45s forwards; }
@keyframes presents { 0% { opacity: 0; letter-spacing: .9em; } 25%, 75% { opacity: 1; letter-spacing: .45em; } 100% { opacity: 0; } }
@keyframes burn-in {
  0%   { opacity: 0; filter: brightness(0) blur(8px); transform: scale(1.04); }
  25%  { opacity: 1; filter: brightness(3) sepia(1) hue-rotate(50deg) saturate(3) blur(3px); }
  55%  { filter: brightness(1.6) sepia(.4) hue-rotate(40deg) blur(.5px); }
  100% { opacity: 1; filter: none; transform: none; }
}
@keyframes crt-off {
  0% { transform: scale(1, 1); filter: brightness(1); }
  60% { transform: scale(1, .006); filter: brightness(4); }
  100% { transform: scale(0, .006); filter: brightness(8); }
}
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }



/* --- Toast (JS-created notice, e.g. "Link coming soon") ---
   <div class="toast" role="status" data-toast></div>  + .is-visible */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 950; max-width: calc(100% - 32px);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .3s, opacity .3s;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 22px;
  background: var(--gloss-soot); border: 1px solid #000; box-shadow: var(--gloss-hi), var(--shadow-2), 0 0 0 1px rgba(125,255,155,.25);
  font: bold var(--fs-sm)/1.3 var(--font-mono); color: var(--phosphor); text-shadow: var(--glow-phosphor-soft);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--caution); -webkit-mask: var(--ico-warn) center/contain no-repeat; mask: var(--ico-warn) center/contain no-repeat; }

/* ==========================================================================
   25. UTILITIES
   ========================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.u-center { text-align: center; }
.u-right { text-align: right; }
.u-nowrap { white-space: nowrap; }
.u-upper { text-transform: uppercase; letter-spacing: .08em; }
.small-caps { font-variant: small-caps; letter-spacing: .04em; }
.mono { font-family: var(--font-mono); }
.type { font-family: var(--font-type); }
.muted { opacity: .8; }
.text-ink-soft { color: var(--ink-soft); }
.text-caution { color: var(--caution); }
.text-alarm { color: var(--alarm); }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--sp-2) !important; } .mt-4 { margin-top: var(--sp-4) !important; } .mt-6 { margin-top: var(--sp-6) !important; } .mt-8 { margin-top: var(--sp-8) !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--sp-2) !important; } .mb-4 { margin-bottom: var(--sp-4) !important; } .mb-6 { margin-bottom: var(--sp-6) !important; }
.flow > * + * { margin-top: .9em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w-full { width: 100%; }
.show-sm { display: none !important; }


/* ==========================================================================
   26. RESPONSIVE
   Breakpoints: 920 (sidebar stacks), 700 (tablet/phone), 420 (small phone)
   ========================================================================== */
@media (max-width: 920px) {
  .layout, .layout--left { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
  .sidebar > * + * { margin-top: 0; }
  .masthead__logo { width: 170px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  /* poster flourishes need the full 980px shell */
  .poster__seal, .poster__corner { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  :root { --fs-base: 0.9375rem; }
  .shell { padding: 10px 8px 0; }
  .topbar__sub, .topbar__clock { display: none; }
  .topbar__actions { margin-left: auto; }

  .masthead { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .masthead__emblem { width: 54px; height: 54px; border-width: 2px; }
  .masthead__emblem .ico { width: 38px; height: 38px; }
  .masthead__corp { font-size: 2rem; }
  .masthead__titles { flex: 1; }
  .masthead__logo { width: 120px; }

  /* nav: wrapping grid of chunky tabs */
  .nav { padding: 8px; }
  .nav__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .nav__item:last-child { grid-column: span 2; }
  .nav__link { border-radius: 8px; border-bottom: 1px solid #0e1108; padding: 6px 3px; font-size: .7rem; letter-spacing: .05em; min-height: 48px; white-space: normal; }
  .nav__link[aria-current="page"] { padding-bottom: 6px; margin-bottom: 0; box-shadow: inset 0 -3px 0 var(--caution), inset 0 1px 0 rgba(255,255,255,.2); border: 1px solid var(--caution-dk); }

  .page { padding: 12px 10px; }
  .panel__body { padding: 14px; }
  .shoutbox__list { margin: -14px -14px 0; }

  .poster { padding: 8px; }
  .poster__art { min-height: 0; padding: 18px 12px 16px; }
  .poster__seal { display: none; }
  .poster__corner { display: none; }
  .poster__kicker { letter-spacing: .18em; font-size: 10px; }
  .poster__kicker::before, .poster__kicker::after { display: none; }
  .poster__ribbon { padding: 8px 28px; letter-spacing: .1em; }
  .poster__cta { width: 100%; }
  .poster__cta .btn { flex: 1 1 100%; }

  .ticker__label span { display: none; } /* keep just the LIVE dot + "NEWS" */

  .footer__grid { grid-template-columns: 1fr; padding: 18px 16px; }
  .footer__bottom { padding: 12px 16px; flex-direction: column; }

  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .section-title { font-size: var(--fs-lg); padding-bottom: 10px; border-bottom: 5px solid; border-image: var(--hazard) 1; }
  .section-title::after { display: none; }
  .footer__links { columns: 2; }
  .terminal { padding: 10px; border-radius: 14px; }
  .terminal__screen { padding: 12px; }
  .classified { padding: 22px 16px 18px; }
  .classified .stamp { position: static; margin-bottom: 10px; }
  .holotape__shell { gap: 10px; padding: 12px; }
  .holotape__reel { width: 32px; height: 32px; border-width: 3px; }
  .holotape__body { margin: 0 10px; }
  .holotape__foot .btn { margin-left: 0; width: 100%; }
  .btn-row > .btn { flex: 1 1 auto; }
  .hide-sm { display: none !important; }
  .show-sm { display: initial !important; }
}

@media (max-width: 420px) {
  .masthead__corp { font-size: 1.7rem; }
  .masthead__tagline { display: none; }
  .masthead__portal span { display: none; }
  .masthead__logo { width: 104px; }
  .nav__pip { display: none; }
  .status__grid { grid-template-columns: 1fr 1fr; }
  .stat { grid-template-columns: 56px minmax(0, 1fr) 30px; }
  .weapon__head { padding: 12px 22px 8px; }
  .idcard__body { grid-template-columns: 70px minmax(0, 1fr); }
  .boot__screen { padding: 16px; font-size: var(--fs-xs); }
}


/* ==========================================================================
   27. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .crt-overlay::after, .crt-overlay__roll { animation: none !important; display: none; }
  .blink, .cursor, .led--blink, .ticker__label::before, .typing::after { animation: none !important; opacity: 1 !important; }
  .flicker { animation: none !important; }
  /* ticker becomes a manually scrollable strip */
  .ticker__track { animation: none !important; transform: none !important; }
  .ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker__group[aria-hidden="true"] { display: none; }
  .progress__bar { animation: none !important; }
  .holotape__reel { animation: none !important; }
  .boot__logo img, .boot[data-stage="presents"] .boot__presents { animation: none !important; opacity: 1; }
}
/* JS may also add html.reduce-motion (user toggle) -> same effect */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
html.reduce-motion .ticker__viewport { overflow-x: auto; }
html.reduce-motion .ticker__group[aria-hidden="true"] { display: none; }


/* ==========================================================================
   28. PRINT
   ========================================================================== */
@media print {
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; animation: none !important; }
  .topbar, .nav, .ticker, .crt-overlay, .boot, .sidebar, .btn, .btn-row, .terminal__form, .shoutbox__form, .skip-link, .badges { display: none !important; }
  .layout { display: block; }
  .shell { max-width: none; padding: 0; }
  .panel, .holotape, .weapon, .classified, .status, .page, .masthead, .footer { border: 1px solid #999 !important; }
  .redact { background: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; }
  .poster__logo img, .masthead__logo img { filter: grayscale(1); }
}

/* ===== PREVIEW HEADER A ===== */
.hdrA .masthead{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px) 0 0/120px 100%,linear-gradient(#3567a8,#2a5592 60%,#234a80);border:3px solid #10192b;border-bottom:0;border-radius:10px 10px 0 0;padding:34px 22px 18px;gap:22px;box-shadow:inset 0 0 0 2px #4d7cbc,0 6px 18px rgba(0,0,0,.6)}
.hdrA .masthead::before{content:"";position:absolute;left:0;right:0;top:0;height:16px;background:repeating-linear-gradient(-45deg,#f2c933 0 14px,#16181c 14px 28px);border-bottom:2px solid #10192b;border-radius:7px 7px 0 0;box-shadow:inset 0 -2px 3px rgba(0,0,0,.4)}
.hdrA .masthead__emblem{width:118px;height:118px;background:none;border:0;box-shadow:none;border-radius:0;filter:drop-shadow(0 4px 5px rgba(0,0,0,.55))}
.hdrA .masthead__emblem img{width:100%;height:100%;object-fit:contain}
.hdrA .masthead__titles{flex:1;text-align:center}
.hdrA .masthead__corp{font-size:4rem;letter-spacing:.04em;color:#f6d23f;text-shadow:-2px -2px 0 #10192b,2px -2px 0 #10192b,-2px 2px 0 #10192b,2px 2px 0 #10192b,0 5px 0 #10192b,0 8px 10px rgba(0,0,0,.5)}
.hdrA .masthead__corp span{color:#f6d23f}
.hdrA .masthead__tagline{color:#fff;font-size:1rem;margin-top:8px;text-shadow:0 1px 2px #000}
.hdrA .masthead__portal{margin-top:12px;padding:5px 16px;background:#16233d;border:2px solid #f6d23f;color:#f6d23f;text-shadow:none;font-size:.85rem;border-radius:4px;box-shadow:0 2px 0 #10192b}
.hdrA .masthead__logo{width:230px;padding:10px 12px;background:linear-gradient(135deg,#9aa1a7,#5b6168 45%,#c3c8cc 55%,#6d737a);border:2px solid #10192b;border-radius:6px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35),inset 0 0 12px rgba(0,0,0,.5);position:relative}
.hdrA .masthead__logo::after{content:"";position:absolute;inset:6px;background:radial-gradient(circle,#2b2f33 2.5px,transparent 3px) 0 0/6px 6px no-repeat,radial-gradient(circle,#2b2f33 2.5px,transparent 3px) 100% 0/6px 6px no-repeat,radial-gradient(circle,#2b2f33 2.5px,transparent 3px) 0 100%/6px 6px no-repeat,radial-gradient(circle,#2b2f33 2.5px,transparent 3px) 100% 100%/6px 6px no-repeat;pointer-events:none}
.hdrA .hz{height:16px;background:repeating-linear-gradient(-45deg,#f2c933 0 14px,#16181c 14px 28px);border-left:3px solid #10192b;border-right:3px solid #10192b;border-top:2px solid #10192b;box-shadow:inset 0 2px 3px rgba(0,0,0,.4)}
.hdrA .nav{background:#16233d;border-left:3px solid #10192b;border-right:3px solid #10192b;padding:8px 10px 0;box-shadow:inset 0 6px 8px -4px rgba(0,0,0,.8)}
.hdrA .nav__pip{display:none}
.hdrA .nav__link{border:2px solid #10192b;border-bottom:0;border-radius:10px 10px 0 0;font:1.15rem/1 var(--font-display);letter-spacing:.05em;padding:9px 12px 8px;min-height:40px}
.hdrA .nav__item .nav__link{background:linear-gradient(#ffe474,#f2c933 50%,#d9ad1d);color:#10192b;text-shadow:0 1px 0 rgba(255,255,255,.5)}
.hdrA .nav__item:nth-child(3) .nav__link,.hdrA .nav__item:nth-child(5) .nav__link,.hdrA .nav__item:nth-child(7) .nav__link{background:linear-gradient(#5e8fd0,#3567a8 50%,#264f8a);color:#fff;text-shadow:-1px -1px 0 #10192b,1px 1px 0 #10192b}
.hdrA .nav__link:hover{filter:brightness(1.12)}
.hdrA .nav__link[aria-current="page"]{box-shadow:inset 0 -4px 0 #10192b,0 0 12px rgba(246,210,63,.55);padding-bottom:12px}
.hdrA .ticker{border:3px solid #10192b;border-top:0}
@media (max-width:760px){.hdrA .masthead{padding:28px 12px 12px;gap:10px}.hdrA .masthead__emblem{width:64px;height:64px}.hdrA .masthead__corp{font-size:2.2rem}.hdrA .masthead__logo{width:110px;padding:6px}.hdrA .masthead__logo::after{display:none}.hdrA .nav__link{border-radius:8px;border-bottom:2px solid #10192b;font-size:1rem}.hdrA .nav__list{gap:6px}.hdrA .nav{padding-bottom:8px}}
@media (max-width:760px){.hdrA .nav__link{white-space:nowrap}.hdrA .nav__link br{display:none}}
/* ===== PREVIEW C: A + B disc emblem + gear everywhere ===== */
.hdrC .masthead__emblem{width:150px;height:150px;filter:none;overflow:visible}
.hdrC .disc{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,transparent 58%,rgba(0,0,0,.35) 59%,transparent 62%),conic-gradient(from 20deg,#c9cfd4,#7c858d,#dfe3e6,#6f777f,#c9cfd4,#868f97,#e3e6e9,#7a828a,#c9cfd4);border:4px solid #10192b;box-shadow:inset 0 0 0 3px rgba(255,255,255,.4),inset 0 -8px 16px rgba(0,0,0,.45),0 6px 12px rgba(0,0,0,.6)}
.hdrC .disc img{width:155%;height:auto;max-width:none;filter:drop-shadow(0 0 6px rgba(255,214,60,.75)) drop-shadow(0 2px 1px rgba(0,0,0,.6))}
.vtgear{width:1.25em;height:1.25em;object-fit:contain;vertical-align:-.25em;display:inline-block;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
.seal .vtgear,.idcard__holo .vtgear,.badge88__l .vtgear{width:80%;height:80%;vertical-align:middle}
@media (max-width:760px){.hdrC .masthead__emblem{width:80px;height:80px}.hdrC .disc{width:72px;height:72px;border-width:3px}}
@media (max-width:760px){.hdrC .masthead__corp{font-size:1.9rem;white-space:nowrap}.hdrC .masthead__emblem{width:70px;height:70px}.hdrC .disc{width:64px;height:64px}}
@media (min-width:761px){.hdrC .masthead__emblem{margin-left:34px;margin-right:6px}}


/* ==========================================================================
   29. EARLY PLAYTEST / PRIVATE TOUR POPUP  (tour.js)
   ========================================================================== */
.tour {
  position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8,9,5,.82); overflow-y: auto;
  animation: tour-in .25s ease-out;
}
.tour[hidden] { display: none; }
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }
.tour__card { width: min(520px, 100%); margin: auto; box-shadow: 0 0 0 3px #000, 0 18px 50px rgba(0,0,0,.7); }
.tour__x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(0,0,0,.4);
  background: rgba(0,0,0,.18); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.tour__x:hover { background: rgba(0,0,0,.35); }
.tour__form { display: grid; gap: 6px; margin-top: 10px; }
.tour__label { font-weight: bold; font-size: var(--fs-sm); margin-top: 6px; }
.tour__req, .tour__opt { font-weight: normal; font-size: var(--fs-xs); color: var(--ink-soft); font-style: italic; margin-left: 6px; }
.tour__about { resize: vertical; min-height: 84px; font-family: inherit; }
.tour__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tour__err { margin: 4px 0 0; padding: 8px 10px; border-radius: 5px; background: #f3d6cf; border: 1px solid var(--alarm-dk); color: #5a1208; font-size: var(--fs-sm); }
.tour__actions { margin-top: 10px; }
.tour .btn.is-busy { opacity: .6; cursor: progress; }
html.tour-open { overflow: hidden; }
@media (max-width: 520px) {
  .tour { align-items: flex-start; padding: 10px; }
  .tour__actions .btn { flex: 1 1 100%; }
}


/* ==========================================================================
   30. TERMINAL HACKING MINIGAME  (hack.js)
   ========================================================================== */
.hack { padding: 14px; font-family: var(--font-mono); }
.hack__intro p { margin: 0 0 8px; }
.hack__tip { color: var(--phosphor-dim); font-size: var(--fs-sm); }
.hack__tip code { color: var(--phosphor-hi); }
.hack__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; margin: 6px 0 10px; border-top: 1px dashed var(--phosphor-faint); border-bottom: 1px dashed var(--phosphor-faint); letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-sm); }
.hack__tries { color: var(--phosphor-hi); text-shadow: var(--glow-phosphor); }
.hack__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(170px, 1fr); gap: 16px; align-items: start; }
.hack__board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .95rem; line-height: 1.55; min-height: 280px; }
.hack__board.is-idle { opacity: .35; min-height: 120px; }
.hack__board.is-locked { opacity: .55; filter: saturate(.4); }
.hack__col { display: flex; gap: 10px; min-width: 0; }
.hack__addr { color: var(--phosphor-dim); flex: none; user-select: none; }
.hack__mem { min-width: 0; }
.hack__row { white-space: pre; letter-spacing: .04em; }
.hack__w, .hack__b { cursor: pointer; border-radius: 2px; }
.hack__w { font: inherit; letter-spacing: inherit; color: var(--phosphor-hi); background: none; border: 0; padding: 0; margin: 0; text-shadow: var(--glow-phosphor-soft); }
.hack__w.is-hot, .hack__w:hover, .hack__w:focus-visible, .hack__b:hover, .hack__b:focus-visible { background: var(--phosphor); color: var(--crt-bg); text-shadow: none; outline: none; }
.hack__w:disabled { cursor: default; }
.hack__w.is-dud, .hack__b.is-used { color: var(--phosphor-faint); text-shadow: none; background: none; cursor: default; }
.hack__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hack__log { max-height: 300px; overflow-y: auto; scrollbar-color: var(--phosphor-dim) transparent; }
.hack__line { margin: 0; min-height: 1.5em; word-break: break-word; }
.hack__line--cmd { color: var(--phosphor-hi); }
.hack__line--sys { color: var(--phosphor-dim); }
.hack__line--err { color: #ffb08a; text-shadow: 0 0 6px rgba(255,120,80,.5); }
.hack__line--ok { color: var(--phosphor-hi); text-shadow: var(--glow-phosphor); }
.hack__line--memo { margin-top: 6px; padding: 6px 8px; border: 1px dashed var(--phosphor-dim); }
.hack__hover { color: var(--phosphor-hi); border-top: 1px dashed var(--phosphor-faint); padding-top: 6px; min-height: 1.6em; }
.hack__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--phosphor-faint); }
.hack__controls .terminal__chips { margin: 0; }
.terminal__chip.is-on { background: var(--phosphor); color: var(--crt-bg); text-shadow: none; }
[data-hack][data-state="playing"] .hack__intro { display: none; }
@media (max-width: 760px) {
  .hack { padding: 10px; }
  .hack__grid { grid-template-columns: 1fr; }
  .hack__board { grid-template-columns: 1fr; font-size: .86rem; }
  .hack__log { max-height: 160px; }
}
@media (max-width: 400px) { .hack__board { font-size: .78rem; } }

/* Boot: standby / power-on stage (lets the browser allow sound) */
.boot__power { display: none; }
.boot[data-stage="power"] .boot__log, .boot[data-stage="power"] .boot__bar { display: none; }
.boot[data-stage="power"] .boot__power {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
  font: bold clamp(.9rem, 3vw, 1.2rem)/1.4 var(--font-mono); letter-spacing: .2em; color: var(--phosphor-hi); text-shadow: var(--glow-phosphor); cursor: pointer; outline: none;
}
.boot__power-btn { animation: blink 1.1s steps(2, start) infinite; }
.boot__power small { font-size: .65em; letter-spacing: .15em; color: var(--phosphor-dim); font-weight: normal; }
.boot[data-stage="power"] { cursor: pointer; }
@media (max-width: 760px) { .boot__hint { display: none; } }

/* ==========================================================================
   30. REVEAL TRAILER: pop-up + inline click-to-play  (trailer.js)
   ========================================================================== */
.trailer {
  position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8,9,5,.88); overflow-y: auto;
  animation: tour-in .25s ease-out;
}
.trailer[hidden] { display: none; }
.trailer__card { width: min(960px, 100%); margin: auto; box-shadow: 0 0 0 3px #000, 0 18px 50px rgba(0,0,0,.7); }
.trailer__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--olive-900); border-radius: 4px; overflow: hidden; }
.trailer__frame iframe, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.trailer-inline__btn {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block;
}
.trailer-inline__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s; }
.trailer-inline__btn:hover img, .trailer-inline__btn:focus-visible img { opacity: .8; }
.trailer-inline__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 6px;
  padding: 14px 22px; border: 2px solid var(--phosphor); border-radius: 6px; background: rgba(3,16,8,.78);
  color: var(--phosphor); font: bold var(--fs-sm)/1 var(--font-mono); letter-spacing: .2em; text-shadow: var(--glow-phosphor-soft);
  box-shadow: 0 0 18px rgba(125,255,155,.25);
}
.trailer-inline__play .ico { width: 34px; height: 34px; }
.trailer-inline__btn:hover .trailer-inline__play { background: rgba(10,42,21,.9); }
.trailer-inline__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font: var(--fs-xs)/1.3 var(--font-mono); color: var(--phosphor); background: rgba(3,16,8,.8); text-shadow: var(--glow-phosphor-soft); text-align: left; }
.media > a { position: absolute; inset: 0; display: grid; place-items: center; color: var(--phosphor); font: bold var(--fs-xs)/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 520px) { .trailer { align-items: flex-start; padding: 10px; } }
