:root {
  --bg: #02050b;
  --panel: #09111b;
  --text: #e8f6ff;
  --muted: #9ab2c4;
  --accent: #5bf2bc;
  --accent2: #57d7ff;
  --border: #21364a;
  --shadow: 0 0 1.15rem rgba(91, 242, 188, 0.28);
  --violet: #b28cff;
  --radius: 4px;
  --content-max: 900px;
  --shell-max: 1180px;
  --font-sans: "Tahoma", "Verdana", "Trebuchet MS", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --analog-r: rgba(255, 45, 116, 0.16);
  --analog-g: rgba(92, 255, 198, 0.1);
  --analog-b: rgba(75, 222, 255, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 14% -4%, rgba(87, 215, 255, 0.11), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(178, 140, 255, 0.09), transparent 30%),
    linear-gradient(180deg, #02070f, #01040a 40%, #010309);
  color: var(--text);
  line-height: 1.66;
  letter-spacing: 0.01em;
  min-height: 100vh;
  position: relative;
  text-rendering: optimizeSpeed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(103, 134, 163, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 134, 163, 0.2) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 2px,
      transparent 2px,
      transparent 5px
    );
  background-size: 18px 18px, 18px 18px, 100% 100%;
  animation: analog-drift 14s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: 0.2;
  background:
    linear-gradient(
      90deg,
      rgba(255, 15, 90, 0.09),
      transparent 18%,
      transparent 82%,
      rgba(0, 225, 255, 0.11)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 2px
    );
  animation: scan-drift 13s linear infinite, crt-flicker 6s steps(12) infinite, tracking-hum 9s linear infinite;
}

.app {
  min-height: 100vh;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 2;
  filter: contrast(1.1) saturate(0.82) brightness(0.9);
  animation: analog-shiver 9s ease-in-out infinite;
}

.psx-shell {
  perspective: none;
}

.broadcast-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  box-shadow:
    inset 0 0 200px rgba(0, 0, 0, 0.74),
    inset 0 0 75px rgba(0, 0, 0, 0.58),
    inset 0 0 18px rgba(255, 255, 255, 0.03);
  opacity: 0.62;
}

.broadcast-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 24;
  background:
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, transparent 0%, rgba(166, 238, 255, 0.09) 48%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.2;
  animation: tracking-roll 8s linear infinite;
}

.fx-background-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

body.crt-lowres-mode::before {
  opacity: 0.42;
  background-size: 24px 24px, 24px 24px;
}

body.crt-lowres-mode::after {
  opacity: 0.13;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.2) 0,
      rgba(255, 255, 255, 0.2) 1px,
      transparent 1px,
      transparent 3px
    );
}

body.crt-lowres-mode .broadcast-shell::before {
  opacity: 0.62;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.72), inset 0 0 75px rgba(0, 0, 0, 0.55);
}

body.crt-lowres-mode .fx-background-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.92;
  filter: contrast(1.18) saturate(0.88) brightness(0.95);
  mix-blend-mode: screen;
}

body.crt-lowres-mode .shell {
  filter: contrast(1.04) saturate(0.9);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 40;
  width: auto;
  height: auto;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: var(--accent2);
  color: #03111d;
  text-decoration: none;
}

a {
  color: var(--accent2);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.panel {
  background: linear-gradient(168deg, rgba(9, 17, 27, 0.98), rgba(6, 12, 21, 0.94));
  border: 1px dashed color-mix(in oklab, var(--border) 72%, var(--accent2) 28%);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(91, 242, 188, 0.11) inset,
    0 0 1.35rem rgba(87, 215, 255, 0.09);
  padding: 0.95rem 1rem;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(165deg, rgba(255, 255, 255, 0.02), transparent 30%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  animation: panel-breath 7s ease-in-out infinite;
  clip-path: polygon(
    0 8px,
    8px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 215, 255, 0.75), rgba(255, 61, 128, 0.22), transparent);
  opacity: 0.7;
}

.panel::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  border-top: 1px dashed rgba(87, 215, 255, 0.45);
  border-right: 1px dashed rgba(255, 61, 128, 0.3);
  border-radius: 1px;
}

.panel--tight {
  padding: 0.65rem 1rem;
}

.status-bar,
.nav-panel,
.console-ribbon,
.shell__aux,
.footer-panel {
  clip-path: none;
}

.panel__label {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.status-bar {
  width: min(var(--shell-max), 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  position: sticky;
  top: 0.7rem;
  z-index: 20;
  border-color: rgba(87, 215, 255, 0.45);
  background: linear-gradient(160deg, rgba(7, 16, 28, 0.98), rgba(8, 14, 24, 0.96));
  box-shadow:
    0 0 0 1px rgba(87, 215, 255, 0.25) inset,
    0 0 16px rgba(87, 215, 255, 0.14);
  grid-template-columns: minmax(120px, 1fr) auto auto;
}

.status-bar__brand {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow:
    -0.04em 0 var(--analog-r),
    0.04em 0 var(--analog-b),
    0 0 10px rgba(91, 242, 188, 0.4);
}

.status-bar__center {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(91, 242, 188, 0.7);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  box-shadow: var(--shadow);
}

.status-muted {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.status-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #ffb7ca;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-rec__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5b83;
  box-shadow: 0 0 9px rgba(255, 91, 131, 0.9);
  animation: pulse-live 1.8s ease-in-out infinite;
}

.status-bar__right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.status-time-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.status-time {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 0.9rem;
  text-shadow: 0 0 9px rgba(87, 215, 255, 0.4);
}

.signal-bars {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  margin-left: 0.2rem;
}

.signal-bars__bar {
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--accent2), var(--accent));
  box-shadow: 0 0 0.6rem rgba(83, 242, 185, 0.45);
}

.signal-bars__bar--1 {
  height: 6px;
  opacity: 0.45;
}

.signal-bars__bar--2 {
  height: 9px;
  opacity: 0.65;
}

.signal-bars__bar--3 {
  height: 12px;
  opacity: 0.85;
}

.signal-bars__bar--4 {
  height: 15px;
}

.shell {
  width: min(var(--shell-max), 92vw);
  margin: 0.75rem auto 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 170px;
  justify-content: center;
  align-items: start;
  gap: 0.8rem;
}

.shell__nav {
  position: sticky;
  top: 4.8rem;
  align-self: start;
}

.shell__stack {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
}

.console-ribbon {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: center;
  border-style: solid;
}

.console-ribbon__label {
  display: inline-block;
  padding: 0.25rem 0.35rem;
  border: 1px solid rgba(87, 215, 255, 0.45);
  background: rgba(87, 215, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c6e8fb;
}

.console-ribbon__cell {
  display: inline-block;
  padding: 0.21rem 0.3rem;
  border: 1px dashed rgba(178, 140, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fc4d9;
}

.shell__aux {
  position: sticky;
  top: 4.8rem;
  align-self: start;
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
}

.shell__aux-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d6efff;
}

.shell__aux-line {
  margin: 0;
  padding: 0.2rem 0.3rem;
  border: 1px solid rgba(87, 215, 255, 0.22);
  background: rgba(87, 215, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: #9ec4db;
}

.shell__main {
  min-width: 0;
  display: grid;
  gap: 0.8rem;
  padding-left: 0.35rem;
  position: relative;
}

.shell__main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(91, 242, 188, 0.8), rgba(87, 215, 255, 0.08), rgba(178, 140, 255, 0.65));
  opacity: 0.6;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  counter-reset: navline;
}

.nav-link {
  display: block;
  padding: 0.38rem 0.5rem 0.38rem 2.2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, rgba(87, 215, 255, 0.05), transparent);
}

.nav-link::before {
  counter-increment: navline;
  content: counter(navline, decimal-leading-zero);
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7e99b0;
  font-size: 0.65rem;
  padding: 0.06rem 0.2rem;
  border: 1px solid rgba(87, 215, 255, 0.24);
  background: rgba(87, 215, 255, 0.05);
}

.nav-link:hover {
  border-color: color-mix(in oklab, var(--border) 70%, var(--accent2) 30%);
  background:
    linear-gradient(90deg, rgba(87, 215, 255, 0.09), transparent),
    rgba(87, 215, 255, 0.05);
}

.nav-link.is-active {
  border-color: rgba(91, 242, 188, 0.65);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.nav-link.is-active::before {
  color: var(--accent);
}

.nav-link__label {
  display: inline-block;
  transform: translateY(0.3px);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55rem;
  line-height: 1.25;
  color: #f0fbff;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-shadow:
    -0.045em 0 rgba(255, 40, 120, 0.25),
    0.045em 0 rgba(0, 225, 255, 0.33),
    0 0 9px rgba(87, 215, 255, 0.2);
  animation: heading-drift 8s steps(2) infinite;
}

h1 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

p {
  margin: 0 0 0.9rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary {
  color: #d2f1ff;
  font-size: 1.03rem;
}

.hero {
  background:
    linear-gradient(160deg, rgba(8, 15, 26, 0.96), rgba(7, 13, 23, 0.92)),
    radial-gradient(circle at 94% 0%, rgba(178, 140, 255, 0.16), transparent 38%);
  border-color: rgba(91, 242, 188, 0.45);
}

.hero::before {
  content: "/boot/relay-status";
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.hero__lead {
  font-size: 1.1rem;
  color: #d6ecff;
}

.hero__subtle {
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.hero__mono {
  margin: 0;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(87, 215, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #8fc9e7;
  overflow-wrap: anywhere;
}

.links-note {
  margin: 0 0 1rem;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid rgba(91, 242, 188, 0.65);
  border-radius: 8px;
  background: rgba(91, 242, 188, 0.08);
  color: #c7e7f7;
  font-size: 0.94rem;
}

.fx-lab {
  display: grid;
  gap: 0.95rem;
}

body.crt-lowres-mode .fx-lab {
  border-color: rgba(87, 215, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(87, 215, 255, 0.3) inset,
    0 0 1.3rem rgba(87, 215, 255, 0.18),
    0 0 2.8rem rgba(91, 242, 188, 0.07);
}

body.crt-lowres-mode .fx-lab h1,
body.crt-lowres-mode .fx-lab .summary,
body.crt-lowres-mode .fx-lab legend,
body.crt-lowres-mode .fx-lab .fx-lab-status {
  text-shadow: 0 0 6px rgba(87, 215, 255, 0.34);
}

.fx-lab-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fx-lab-controls {
  margin: 0;
  padding: 0.75rem;
  border: 1px dashed rgba(87, 215, 255, 0.45);
  border-radius: 10px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: rgba(7, 12, 20, 0.78);
}

.fx-lab-controls legend {
  padding: 0 0.45rem;
  color: #bbddf1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-lab-option {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  color: #d7ecfa;
  margin: 0;
}

.fx-lab-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.fx-lab-status {
  margin: 0;
  color: #a6c2d6;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.fx-lab-stage {
  min-height: 42vh;
  border-radius: 10px;
  border: 1px dashed rgba(178, 140, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.86), rgba(5, 9, 16, 0.82)),
    repeating-linear-gradient(
      90deg,
      rgba(87, 215, 255, 0.08) 0,
      rgba(87, 215, 255, 0.08) 1px,
      transparent 1px,
      transparent 26px
    );
}

body.crt-lowres-mode .fx-lab-stage {
  min-height: 50vh;
  border-color: rgba(87, 215, 255, 0.55);
  background:
    radial-gradient(circle at 50% 42%, rgba(123, 221, 255, 0.06), transparent 62%),
    linear-gradient(180deg, rgba(10, 18, 29, 0.92), rgba(4, 8, 15, 0.88)),
    repeating-linear-gradient(
      90deg,
      rgba(87, 215, 255, 0.11) 0,
      rgba(87, 215, 255, 0.11) 1px,
      transparent 1px,
      transparent 20px
    );
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.45),
    inset 0 0 55px rgba(0, 0, 0, 0.5),
    0 0 1.4rem rgba(87, 215, 255, 0.18);
  position: relative;
  overflow: hidden;
}

body.crt-lowres-mode .fx-lab-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06), transparent 48%);
  opacity: 0.5;
}

body.crt-lowres-mode .fx-lab-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.13) 0,
    rgba(255, 255, 255, 0.13) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.1;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  border-color: rgba(87, 215, 255, 0.55);
  border-style: dashed;
  background: linear-gradient(160deg, rgba(8, 16, 28, 0.95), rgba(6, 12, 20, 0.92));
}

.home-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0.65rem;
  align-items: stretch;
}

.home-hud__aux {
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.home-hud__aux span {
  display: block;
  padding: 0.18rem 0.3rem;
  border: 1px dashed rgba(87, 215, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a1c8df;
}

.ticker__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.ticker__text {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #d6f8ff;
}

.ticker__text [data-ticker-item] + [data-ticker-item]::before {
  content: " // ";
  color: var(--muted);
}

.ticker__text [data-ticker-item][hidden] {
  display: none;
}

.section-header {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.card-list,
.tag-list,
.comment-list,
.message-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-list {
  display: grid;
  gap: 0.6rem;
}

.card {
  border: 1px solid rgba(87, 215, 255, 0.24);
  border-radius: 2px;
  background: rgba(8, 13, 22, 0.94);
  padding: 0.72rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  background-image:
    linear-gradient(175deg, rgba(255, 255, 255, 0.015), transparent 40%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 5px
    );
}

.card:hover {
  border-color: rgba(91, 242, 188, 0.48);
  box-shadow: 0 0 0.9rem rgba(91, 242, 188, 0.12);
  transform: translateY(-1px);
}

.card > :last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.tag-pill {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  color: #c4e6ff;
  background: rgba(87, 215, 255, 0.07);
}

.tag-pill:hover {
  border-color: var(--accent2);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

.tag-card {
  display: block;
  border: 1px solid rgba(178, 140, 255, 0.42);
  border-radius: 10px;
  padding: 0.75rem;
  text-decoration: none;
  background: rgba(178, 140, 255, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tag-card:hover {
  border-color: rgba(178, 140, 255, 0.72);
  box-shadow: 0 0 0.8rem rgba(178, 140, 255, 0.18);
}

.tag-card__name {
  display: block;
  font-family: var(--font-mono);
  color: #e8ddff;
  margin-bottom: 0.2rem;
}

.tag-card__count {
  color: var(--muted);
  font-size: 0.86rem;
}

.btn {
  display: inline-block;
  border: 1px solid rgba(91, 242, 188, 0.8);
  border-radius: 1px;
  padding: 0.35rem 0.62rem;
  background: linear-gradient(180deg, rgba(91, 242, 188, 0.16), rgba(91, 242, 188, 0.08));
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--border);
  background: rgba(87, 215, 255, 0.08);
  color: #cbe8ff;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

form {
  margin: 0;
}

.search-form {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.search-row {
  display: flex;
  gap: 0.45rem;
}

.stack-form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  color: #d8edff;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1px;
  background: #060d17;
  color: var(--text);
  padding: 0.45rem 0.5rem;
  font: inherit;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
}

input::placeholder,
textarea::placeholder {
  color: #7f9ab3;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  border-color: rgba(91, 242, 188, 0.7);
}

.notice {
  border-left: 3px solid var(--accent2);
  background: rgba(87, 215, 255, 0.09);
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
  margin: 0;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.detail .hero-image,
.video-player {
  width: 100%;
  max-height: 27rem;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid rgba(87, 215, 255, 0.38);
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: contrast(1.1) saturate(0.82);
}

.prose {
  overflow-wrap: anywhere;
}

.prose::after {
  content: "";
  display: block;
  clear: both;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.9rem 0;
}

.prose img.align-left {
  margin-left: 0;
  margin-right: auto;
}

.prose img.align-center {
  margin-left: auto;
  margin-right: auto;
}

.prose img.align-right {
  margin-left: auto;
  margin-right: 0;
}

.prose img.wrap-left {
  float: left;
  margin: 0.35rem 0.95rem 0.7rem 0;
  max-width: min(62%, 520px);
}

.prose img.wrap-right {
  float: right;
  margin: 0.35rem 0 0.7rem 0.95rem;
  max-width: min(62%, 520px);
}

.prose .text-left {
  text-align: left;
}

.prose .text-center {
  text-align: center;
}

.prose .text-right {
  text-align: right;
}

.prose pre {
  position: relative;
  padding: 1.8rem 0.85rem 0.85rem;
  border-radius: 2px;
  background: rgba(3, 7, 12, 0.94);
  border: 1px solid rgba(91, 242, 188, 0.38);
  overflow-x: auto;
  border-style: dashed;
}

.prose pre::before {
  content: "terminal://output";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 0.28rem 0.55rem;
  border-bottom: 1px solid rgba(87, 215, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8ecbe9;
  background: rgba(87, 215, 255, 0.06);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.prose p code,
.prose li code {
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
  background: rgba(87, 215, 255, 0.12);
}

@media (max-width: 760px) {
  .prose img.wrap-left,
  .prose img.wrap-right {
    float: none;
    display: block;
    margin: 0.9rem auto;
    max-width: 100%;
  }
}

.prose blockquote {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--accent);
  background: rgba(91, 242, 188, 0.07);
  color: #d5ebff;
}

.page-links .prose h2 {
  margin: 1.5rem 0 0.6rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(87, 215, 255, 0.38);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d2f2ff;
}

.page-links .prose ul {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.page-links .prose li {
  border: 1px solid rgba(87, 215, 255, 0.24);
  border-radius: 2px;
  background: rgba(7, 12, 20, 0.92);
  padding: 0.7rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.page-links .prose li:hover {
  border-color: rgba(91, 242, 188, 0.52);
  box-shadow: 0 0 0.8rem rgba(91, 242, 188, 0.14);
  transform: translateY(-1px);
}

.page-links .prose li > p:first-child {
  margin-bottom: 0.5rem;
}

.page-links .prose li > p:first-child a {
  display: block;
}

.page-links .prose li img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1px;
  border: 1px solid rgba(87, 215, 255, 0.24);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.page-links .prose li > p:last-child {
  margin: 0;
  color: #bdd5e6;
  font-size: 0.92rem;
}

.comment-list,
.message-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.comment,
.message {
  border: 1px solid rgba(91, 242, 188, 0.22);
  border-radius: 2px;
  padding: 0.7rem 0.75rem;
  background: rgba(7, 12, 20, 0.93);
  border-style: dashed;
}

.message-body {
  white-space: pre-wrap;
  margin: 0;
}

.pagination {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.pagination__page {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.site-footer {
  width: min(var(--shell-max), 92vw);
  margin: 1rem auto 0;
}

.footer-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  border-color: rgba(178, 140, 255, 0.32);
}

.footer-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
}

.error-panel {
  text-align: left;
}

code {
  font-family: var(--font-mono);
}

/* 2005 "Hackers" console pass: chunky chrome HUD, saturated cyan/magenta rails,
   beveled controls, dense panel framing. */
:root {
  --bg: #05091d;
  --panel: #131b3b;
  --text: #dff6ff;
  --muted: #8eaac1;
  --accent: #37f7ff;
  --accent2: #ff48c4;
  --border: #3f5f95;
  --shadow: 0 0 1rem rgba(55, 247, 255, 0.28);
  --radius: 2px;
  --font-sans: "Verdana", "Tahoma", "Geneva", Arial, sans-serif;
  --font-mono: "Lucida Console", "Courier New", monospace;
}

body {
  background:
    radial-gradient(circle at 10% 5%, rgba(55, 247, 255, 0.16), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(255, 72, 196, 0.14), transparent 36%),
    linear-gradient(180deg, #0a1030 0%, #05091d 48%, #040717 100%);
  letter-spacing: 0;
}

body::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(120, 160, 210, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 210, 0.2) 1px, transparent 1px),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 9px
    );
  background-size: 14px 14px, 14px 14px, 100% 100%;
  animation: none;
}

body::after {
  opacity: 0.12;
  background:
    linear-gradient(
      90deg,
      rgba(255, 35, 160, 0.08),
      transparent 20%,
      transparent 80%,
      rgba(20, 235, 255, 0.11)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.13) 0,
      rgba(255, 255, 255, 0.13) 1px,
      transparent 1px,
      transparent 3px
    );
  animation: scan-drift 15s linear infinite;
}

.app {
  filter: contrast(1.04) saturate(1.08) brightness(0.96);
  animation: none;
}

.broadcast-shell::before {
  opacity: 0.5;
  box-shadow:
    inset 0 0 140px rgba(0, 0, 0, 0.64),
    inset 0 0 40px rgba(0, 0, 0, 0.48);
}

.broadcast-shell::after {
  opacity: 0.11;
  animation: tracking-roll 12s linear infinite;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(28, 40, 82, 0.95), rgba(18, 27, 57, 0.96) 55%, rgba(14, 21, 45, 0.98)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(129, 172, 236, 0.22),
    0 0 0 1px rgba(6, 11, 31, 0.95),
    0 0 18px rgba(55, 247, 255, 0.1);
  animation: none;
}

.panel::before {
  height: 2px;
  opacity: 0.85;
  background: linear-gradient(90deg, rgba(255, 72, 196, 0.18), rgba(55, 247, 255, 0.9), rgba(255, 72, 196, 0.2));
}

.panel::after {
  width: 8px;
  height: 8px;
  right: 0.35rem;
  top: 0.35rem;
  border-top: 1px solid rgba(255, 72, 196, 0.55);
  border-right: 1px solid rgba(55, 247, 255, 0.55);
}

.status-bar {
  border-color: #6d8fd1;
  background:
    linear-gradient(180deg, rgba(66, 87, 145, 0.95), rgba(43, 56, 98, 0.96) 55%, rgba(28, 37, 67, 0.98)),
    linear-gradient(90deg, rgba(255, 72, 196, 0.08), transparent 25%, transparent 75%, rgba(55, 247, 255, 0.1));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.32),
    inset 0 -1px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(16, 24, 49, 0.95),
    0 0 16px rgba(55, 247, 255, 0.18);
}

.status-bar__brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow:
    -0.03em 0 rgba(255, 72, 196, 0.28),
    0.03em 0 rgba(55, 247, 255, 0.34),
    0 0 8px rgba(55, 247, 255, 0.35);
}

.status-pill {
  border-radius: 2px;
  border-color: #78b6f0;
  background: linear-gradient(180deg, rgba(55, 247, 255, 0.25), rgba(55, 247, 255, 0.08));
  color: #e8f9ff;
}

.status-muted {
  color: #b8d2e6;
}

.signal-bars__bar {
  box-shadow: 0 0 0.5rem rgba(55, 247, 255, 0.5);
}

.console-ribbon {
  border-color: #5d79bc;
  background:
    linear-gradient(180deg, rgba(50, 68, 121, 0.9), rgba(31, 43, 82, 0.95)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 5px
    );
}

.console-ribbon__label {
  border-color: #6ba3df;
  background: linear-gradient(180deg, rgba(55, 247, 255, 0.26), rgba(55, 247, 255, 0.08));
  color: #e8f8ff;
}

.console-ribbon__cell {
  border-style: solid;
  border-color: rgba(255, 72, 196, 0.28);
  background: rgba(11, 20, 43, 0.45);
  color: #b0cee6;
}

.shell__aux-line {
  border-color: rgba(105, 145, 216, 0.42);
  background: linear-gradient(180deg, rgba(55, 247, 255, 0.12), rgba(12, 20, 44, 0.35));
}

.nav-list {
  gap: 0.42rem;
}

.nav-link {
  padding: 0.42rem 0.58rem 0.42rem 2.32rem;
  border: 1px solid #5d79bc;
  border-radius: 1px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background:
    linear-gradient(180deg, rgba(53, 72, 132, 0.95), rgba(27, 39, 81, 0.96)),
    linear-gradient(90deg, rgba(255, 72, 196, 0.05), rgba(55, 247, 255, 0.08));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(8, 13, 33, 0.9);
}

.nav-link::before {
  color: #c8ddf1;
  border-color: rgba(111, 152, 225, 0.45);
  background: rgba(9, 14, 35, 0.5);
}

.nav-link:hover {
  border-color: #7ca2ea;
  background:
    linear-gradient(180deg, rgba(72, 97, 176, 0.97), rgba(39, 56, 112, 0.97)),
    linear-gradient(90deg, rgba(255, 72, 196, 0.11), rgba(55, 247, 255, 0.16));
}

.nav-link.is-active {
  border-color: #67f3ff;
  color: #effbff;
  background:
    linear-gradient(180deg, rgba(66, 120, 188, 0.98), rgba(40, 77, 145, 0.98)),
    linear-gradient(90deg, rgba(255, 72, 196, 0.2), rgba(55, 247, 255, 0.2));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.36),
    0 0 10px rgba(55, 247, 255, 0.2);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: none;
  text-shadow:
    -0.03em 0 rgba(255, 72, 196, 0.2),
    0.03em 0 rgba(55, 247, 255, 0.26),
    0 0 8px rgba(55, 247, 255, 0.16);
}

.hero {
  border-color: #6b86c7;
  background:
    linear-gradient(180deg, rgba(49, 66, 117, 0.95), rgba(26, 37, 76, 0.97)),
    radial-gradient(circle at 90% 0%, rgba(255, 72, 196, 0.2), transparent 45%);
}

.hero::before {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
}

.home-hud__aux span {
  border-style: solid;
  border-color: #6888c9;
  background: linear-gradient(180deg, rgba(31, 46, 92, 0.9), rgba(17, 26, 54, 0.95));
}

.card {
  border-color: #5673b2;
  border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(32, 45, 92, 0.95), rgba(19, 28, 59, 0.97)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px rgba(0, 0, 0, 0.45);
}

.card:hover {
  border-color: #72dff7;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.25),
    0 0 12px rgba(55, 247, 255, 0.18);
}

.btn {
  border-color: #6f92d5;
  border-radius: 1px;
  padding: 0.36rem 0.66rem;
  background:
    linear-gradient(180deg, rgba(88, 117, 193, 0.96), rgba(49, 70, 138, 0.98) 54%, rgba(35, 50, 102, 0.99)),
    linear-gradient(90deg, rgba(255, 72, 196, 0.08), rgba(55, 247, 255, 0.1));
  color: #f1faff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.34),
    inset 0 -1px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(13, 19, 42, 0.92);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #87f1ff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.42),
    0 0 10px rgba(55, 247, 255, 0.2);
}

.btn--ghost {
  border-color: #6b88c7;
  background:
    linear-gradient(180deg, rgba(55, 74, 134, 0.94), rgba(32, 45, 92, 0.97)),
    linear-gradient(90deg, rgba(255, 72, 196, 0.04), rgba(55, 247, 255, 0.06));
  color: #d9ebff;
}

input,
textarea {
  border-color: #5e7ebf;
  border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(18, 29, 64, 0.95), rgba(10, 18, 41, 0.98)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px rgba(0, 0, 0, 0.5);
}

input:focus-visible,
textarea:focus-visible {
  border-color: #78f0ff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    0 0 10px rgba(55, 247, 255, 0.2);
}

.notice {
  border-left-color: #ff48c4;
  background: linear-gradient(90deg, rgba(255, 72, 196, 0.12), rgba(55, 247, 255, 0.08));
}

.footer-panel {
  border-color: #5f7ebd;
  background:
    linear-gradient(180deg, rgba(42, 57, 103, 0.95), rgba(25, 35, 70, 0.97)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 6px
    );
}

@media (max-width: 980px) {
  .status-bar {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .status-bar__right {
    justify-content: flex-start;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .shell__nav {
    position: static;
  }

  .shell__stack {
    order: 1;
  }

  .shell__aux {
    position: static;
    order: 2;
  }

  .shell__main {
    padding-left: 0;
  }

  .shell__main::before {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    counter-reset: none;
  }

  .nav-link {
    padding-left: 0.8rem;
  }

  .nav-link::before {
    display: none;
  }

  .home-hud {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app {
    padding-top: 0.7rem;
  }

  .search-row {
    flex-direction: column;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fx-lab-controls {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body::after {
    display: none;
  }

  .broadcast-shell::after {
    display: none;
  }

  .app {
    animation: none;
  }

  .panel,
  h1,
  h2,
  h3,
  h4 {
    animation: none;
  }
}

@keyframes scan-drift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(8px);
  }
}

@keyframes tracking-hum {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 0 28px, 0 8px, 22px 0;
  }
}

@keyframes tracking-roll {
  from {
    transform: translateY(-120%);
  }

  to {
    transform: translateY(120%);
  }
}

@keyframes vhs-jitter {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  12% {
    transform: translateX(0.3px) translateY(-0.2px);
  }

  31% {
    transform: translateX(-0.4px) translateY(0.3px);
  }

  56% {
    transform: translateX(0.25px) translateY(0.2px);
  }

  84% {
    transform: translateX(-0.3px) translateY(-0.25px);
  }
}

@keyframes analog-drift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 7px 6px, -6px 5px, 0 18px;
  }
}

@keyframes analog-shiver {
  0%,
  100% {
    filter: contrast(1.1) saturate(0.82) brightness(0.9);
  }

  50% {
    filter: contrast(1.14) saturate(0.8) brightness(0.88);
  }
}

@keyframes panel-breath {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(91, 242, 188, 0.11) inset,
      0 0 1.35rem rgba(87, 215, 255, 0.09);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(91, 242, 188, 0.16) inset,
      0 0 1.7rem rgba(87, 215, 255, 0.14);
  }
}

@keyframes heading-drift {
  0%,
  100% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(0.5px);
  }

  70% {
    transform: translateX(-0.45px);
  }
}

@keyframes pulse-live {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.7);
    opacity: 0.45;
  }
}

@keyframes crt-flicker {
  0%,
  100% {
    opacity: 0.06;
  }

  50% {
    opacity: 0.045;
  }
}

/* 2005 cable descrambler pass: rougher geometry, denser chrome, less clean layout rhythm. */
:root {
  --bg: #040816;
  --panel: #101a39;
  --text: #d9efff;
  --muted: #8ca7c1;
  --accent: #4af4ff;
  --accent2: #ff57cf;
  --border: #4f70ad;
  --shadow: 0 0 1.1rem rgba(74, 244, 255, 0.24);
  --radius: 0;
  --content-max: 940px;
  --shell-max: 1240px;
  --font-sans: "Verdana", "Tahoma", "Geneva", Arial, sans-serif;
  --font-mono: "Lucida Console", "Courier New", monospace;
}

body {
  font-size: 15px;
  line-height: 1.58;
  background:
    radial-gradient(circle at 8% -4%, rgba(74, 244, 255, 0.22), transparent 33%),
    radial-gradient(circle at 95% -8%, rgba(255, 87, 207, 0.2), transparent 38%),
    linear-gradient(180deg, #0d1640 0%, #060d24 42%, #040816 100%);
  color: var(--text);
}

body::before {
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(118, 153, 206, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 153, 206, 0.2) 1px, transparent 1px),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 2px,
      transparent 2px,
      transparent 8px
    );
  background-size: 16px 16px, 16px 16px, 100% 100%;
  animation: analog-drift 18s linear infinite;
}

body::after {
  opacity: 0.17;
  background:
    linear-gradient(
      90deg,
      rgba(255, 87, 207, 0.13),
      transparent 22%,
      transparent 78%,
      rgba(74, 244, 255, 0.15)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 3px
    );
  animation: scan-drift 13s linear infinite, crt-flicker 5s steps(10) infinite;
}

.app {
  padding: 0.8rem 0 2rem;
  filter: contrast(1.08) saturate(1.1) brightness(0.95);
}

.broadcast-shell::before {
  opacity: 0.56;
  box-shadow:
    inset 0 0 150px rgba(0, 0, 0, 0.66),
    inset 0 0 55px rgba(0, 0, 0, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.04);
}

.broadcast-shell::after {
  opacity: 0.15;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, transparent 0%, rgba(190, 241, 255, 0.11) 45%, transparent 100%);
  animation: tracking-roll 10s linear infinite;
}

.status-bar {
  width: min(var(--shell-max), 94vw);
  top: 0.55rem;
  border: 2px solid #6485c2;
  background:
    linear-gradient(180deg, rgba(66, 89, 151, 0.97), rgba(40, 54, 101, 0.98) 55%, rgba(28, 38, 73, 1)),
    linear-gradient(90deg, rgba(255, 87, 207, 0.13), transparent 25%, transparent 72%, rgba(74, 244, 255, 0.12));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.34),
    inset 0 -1px rgba(0, 0, 0, 0.64),
    inset 0 0 0 1px rgba(152, 182, 232, 0.25),
    0 0 0 1px rgba(6, 10, 30, 0.96),
    0 0 16px rgba(74, 244, 255, 0.16);
}

.status-bar__brand {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow:
    -0.03em 0 rgba(255, 87, 207, 0.3),
    0.03em 0 rgba(74, 244, 255, 0.34),
    0 0 8px rgba(74, 244, 255, 0.36);
}

.status-pill {
  border-radius: 0;
  border: 2px solid #7fb2f4;
  padding: 0.15rem 0.4rem;
  background: linear-gradient(180deg, rgba(74, 244, 255, 0.26), rgba(74, 244, 255, 0.08));
}

.status-muted {
  color: #bdd5eb;
}

.status-rec {
  color: #ffd2e8;
}

.signal-bars__bar {
  box-shadow: 0 0 0.52rem rgba(74, 244, 255, 0.5);
}

.shell {
  width: min(var(--shell-max), 94vw);
  margin-top: 0.62rem;
  gap: 0.56rem;
  grid-template-columns: 236px minmax(0, 1fr) 178px;
}

.shell__stack {
  gap: 0.5rem;
}

.shell__main {
  gap: 0.62rem;
  padding-left: 0.58rem;
  border-left: 2px solid rgba(94, 122, 188, 0.75);
  background: linear-gradient(90deg, rgba(74, 244, 255, 0.05), transparent 36%);
}

.shell__main::before {
  display: none;
}

.shell__main > .panel:nth-of-type(odd) {
  margin-right: 0.16rem;
}

.shell__main > .panel:nth-of-type(even) {
  margin-left: 0.08rem;
}

.panel {
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 0.82rem 0.9rem;
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(32, 45, 92, 0.96), rgba(19, 28, 60, 0.98) 55%, rgba(13, 20, 42, 1)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(127, 160, 224, 0.22),
    0 0 0 1px rgba(7, 11, 31, 0.98),
    0 0 14px rgba(74, 244, 255, 0.12);
}

.panel::before {
  height: 3px;
  opacity: 0.82;
  background: linear-gradient(90deg, rgba(255, 87, 207, 0.2), rgba(74, 244, 255, 0.95), rgba(255, 87, 207, 0.2));
}

.panel::after {
  width: 9px;
  height: 9px;
  right: 0.35rem;
  top: 0.35rem;
  border-top: 1px solid rgba(255, 87, 207, 0.62);
  border-right: 1px solid rgba(74, 244, 255, 0.62);
  pointer-events: none;
}

.panel--tight {
  padding: 0.58rem 0.75rem;
}

.panel__label {
  color: #bdd5ed;
  font-size: 0.71rem;
  letter-spacing: 0.11em;
}

.console-ribbon {
  border: 2px solid #6482c0;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
  background:
    linear-gradient(180deg, rgba(47, 64, 116, 0.95), rgba(29, 41, 81, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 5px
    );
}

.console-ribbon__label {
  border: 2px solid #79a8e6;
  padding: 0.2rem 0.3rem;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(74, 244, 255, 0.26), rgba(74, 244, 255, 0.1));
  color: #eff9ff;
}

.console-ribbon__cell {
  border: 1px solid rgba(255, 87, 207, 0.3);
  border-radius: 0;
  background: rgba(11, 19, 42, 0.45);
  color: #b6d2ea;
}

.nav-panel {
  border-color: #6687c4;
  background:
    linear-gradient(180deg, rgba(41, 55, 102, 0.95), rgba(22, 32, 67, 0.98)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.016) 0,
      rgba(255, 255, 255, 0.016) 1px,
      transparent 1px,
      transparent 4px
    );
}

.nav-list {
  gap: 0.32rem;
}

.nav-link {
  border: 2px solid #5b7ab8;
  border-radius: 0;
  padding: 0.4rem 0.5rem 0.4rem 2.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  background:
    linear-gradient(180deg, rgba(56, 76, 136, 0.97), rgba(30, 43, 87, 0.98)),
    linear-gradient(90deg, rgba(255, 87, 207, 0.07), rgba(74, 244, 255, 0.08));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(8, 13, 33, 0.9);
}

.nav-link::before {
  color: #d0e3f3;
  border-color: rgba(123, 158, 221, 0.46);
  border-radius: 0;
  background: rgba(7, 13, 34, 0.58);
  font-size: 0.62rem;
}

.nav-link:hover {
  border-color: #81a9ec;
  background:
    linear-gradient(180deg, rgba(77, 103, 184, 0.98), rgba(42, 60, 119, 0.99)),
    linear-gradient(90deg, rgba(255, 87, 207, 0.14), rgba(74, 244, 255, 0.18));
}

.nav-link.is-active {
  border-color: #79f6ff;
  color: #f4fbff;
  background:
    linear-gradient(180deg, rgba(72, 125, 198, 0.99), rgba(45, 82, 151, 1)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.38),
    0 0 9px rgba(74, 244, 255, 0.22);
  animation: active-scan 3.6s linear infinite;
}

.shell__aux {
  border-color: #6786c4;
  background:
    linear-gradient(180deg, rgba(39, 54, 103, 0.96), rgba(20, 30, 64, 0.98)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.014) 0,
      rgba(255, 255, 255, 0.014) 1px,
      transparent 1px,
      transparent 4px
    );
}

.shell__aux-title {
  color: #d8ebfb;
  letter-spacing: 0.11em;
}

.shell__aux-line {
  border: 1px solid rgba(113, 149, 216, 0.43);
  background: linear-gradient(180deg, rgba(74, 244, 255, 0.12), rgba(11, 19, 45, 0.36));
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #f1fbff;
  text-shadow:
    -0.03em 0 rgba(255, 87, 207, 0.26),
    0.03em 0 rgba(74, 244, 255, 0.3),
    0 0 7px rgba(74, 244, 255, 0.18);
  animation: none;
}

h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

h2 {
  font-size: clamp(1.06rem, 2.2vw, 1.4rem);
}

p {
  margin: 0 0 0.8rem;
}

.meta {
  color: #abc5de;
  font-size: 0.84rem;
}

.summary {
  color: #cfe8f8;
  font-size: 0.98rem;
}

.hero {
  border-color: #6383bf;
  background:
    linear-gradient(180deg, rgba(49, 67, 120, 0.96), rgba(24, 36, 73, 0.98)),
    radial-gradient(circle at 94% 2%, rgba(255, 87, 207, 0.2), transparent 44%);
}

.hero::before {
  font-size: 0.66rem;
}

.hero__lead {
  font-size: 1.04rem;
  color: #dcf0ff;
}

.hero__subtle {
  color: #abc3da;
}

.hero__mono {
  border-top: 1px solid rgba(113, 149, 216, 0.38);
  color: #98bdd8;
  font-size: 0.78rem;
}

.home-hud {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.48rem;
}

.home-hud__aux {
  gap: 0.28rem;
}

.home-hud__aux span {
  border: 1px solid #6584c2;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(43, 60, 111, 0.95), rgba(20, 30, 63, 0.98));
  color: #bfd7ed;
}

.ticker {
  border: 2px solid #6382bf;
  border-radius: 0;
  gap: 0.5rem;
  background:
    linear-gradient(180deg, rgba(40, 55, 103, 0.95), rgba(22, 32, 67, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.024) 0,
      rgba(255, 255, 255, 0.024) 1px,
      transparent 1px,
      transparent 6px
    );
}

.ticker__label {
  padding: 0.18rem 0.32rem;
  border: 1px solid rgba(121, 168, 231, 0.62);
  border-radius: 0;
  background: rgba(74, 244, 255, 0.14);
  color: #e7f7ff;
}

.ticker__text {
  color: #dcf0ff;
}

.section-header {
  margin-bottom: 0.48rem;
}

.card-list {
  gap: 0.5rem;
}

.card {
  border: 2px solid #5777b5;
  border-radius: 0;
  padding: 0.68rem 0.72rem;
  background:
    linear-gradient(180deg, rgba(32, 46, 95, 0.96), rgba(17, 26, 56, 0.99)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px rgba(0, 0, 0, 0.5);
}

.card:nth-child(even) {
  border-color: #4b69a4;
  background:
    linear-gradient(180deg, rgba(27, 40, 84, 0.96), rgba(14, 22, 49, 0.99)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.016) 0,
      rgba(255, 255, 255, 0.016) 1px,
      transparent 1px,
      transparent 4px
    );
}

.card:hover {
  border-color: #7af7ff;
  transform: none;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.24),
    0 0 10px rgba(74, 244, 255, 0.17);
}

.tag-list {
  gap: 0.35rem;
}

.tag-pill {
  border: 1px solid rgba(111, 145, 211, 0.72);
  border-radius: 0;
  padding: 0.16rem 0.5rem;
  background: linear-gradient(180deg, rgba(74, 244, 255, 0.12), rgba(255, 87, 207, 0.08));
  color: #d6ecff;
}

.tag-pill:hover {
  border-color: #7df8ff;
}

.tag-card {
  border: 2px solid rgba(111, 145, 211, 0.6);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(36, 50, 99, 0.92), rgba(19, 28, 58, 0.96));
}

.tag-card:hover {
  border-color: rgba(125, 248, 255, 0.84);
  box-shadow: 0 0 10px rgba(74, 244, 255, 0.16);
}

.btn {
  border: 2px solid #6d92d8;
  border-radius: 0;
  padding: 0.34rem 0.64rem;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  background:
    linear-gradient(180deg, rgba(90, 120, 197, 0.97), rgba(49, 71, 140, 0.99) 56%, rgba(33, 49, 103, 1)),
    linear-gradient(90deg, rgba(255, 87, 207, 0.09), rgba(74, 244, 255, 0.1));
  color: #f2fbff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.62);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.36),
    inset 0 -1px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(10, 16, 39, 0.95);
}

.btn:hover {
  transform: none;
  border-color: #8ef9ff;
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.42),
    0 0 10px rgba(74, 244, 255, 0.22);
}

.btn--ghost {
  border-color: #6686c5;
  background:
    linear-gradient(180deg, rgba(53, 73, 132, 0.96), rgba(29, 42, 85, 0.99)),
    linear-gradient(90deg, rgba(255, 87, 207, 0.05), rgba(74, 244, 255, 0.07));
  color: #d9ecff;
}

label {
  font-size: 0.72rem;
  color: #d3e7f9;
}

input,
textarea {
  border: 2px solid #5e7ebe;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(17, 28, 61, 0.97), rgba(9, 16, 37, 0.99)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.024) 0,
      rgba(255, 255, 255, 0.024) 1px,
      transparent 1px,
      transparent 3px
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px rgba(0, 0, 0, 0.52);
}

input::placeholder,
textarea::placeholder {
  color: #8aa6c1;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7ff8ff;
  outline-offset: 1px;
  border-color: #7ff8ff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.2),
    0 0 11px rgba(74, 244, 255, 0.2);
}

.notice {
  border-left: 3px solid #ff57cf;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 87, 207, 0.13), rgba(74, 244, 255, 0.09));
  color: #e4f3ff;
}

.comment,
.message {
  border: 2px solid rgba(95, 127, 193, 0.52);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(27, 40, 84, 0.95), rgba(15, 23, 50, 0.99));
}

.detail .hero-image,
.video-player {
  border: 2px solid #6585c3;
  border-radius: 0;
  filter: contrast(1.12) saturate(0.88) brightness(0.96);
}

.prose pre {
  border: 2px solid rgba(95, 127, 193, 0.78);
  border-radius: 0;
  border-style: solid;
  background: linear-gradient(180deg, rgba(9, 16, 36, 0.96), rgba(5, 10, 24, 0.99));
}

.prose pre::before {
  border-bottom: 1px solid rgba(112, 147, 213, 0.38);
  background: linear-gradient(90deg, rgba(74, 244, 255, 0.15), rgba(255, 87, 207, 0.08));
  color: #a8ccec;
}

.prose p code,
.prose li code {
  border-radius: 0;
  background: rgba(74, 244, 255, 0.14);
}

.prose blockquote {
  border-left: 3px solid #7cf8ff;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(74, 244, 255, 0.11), rgba(255, 87, 207, 0.06));
}

.page-links .prose h2 {
  border-top: 1px solid rgba(112, 146, 212, 0.4);
}

.page-links .prose li {
  border: 2px solid rgba(94, 126, 191, 0.5);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(29, 43, 89, 0.95), rgba(16, 24, 52, 0.99));
}

.page-links .prose li:hover {
  border-color: rgba(124, 248, 255, 0.8);
  transform: none;
}

.page-links .prose li img {
  border: 1px solid rgba(112, 146, 212, 0.44);
  border-radius: 0;
}

.footer-panel {
  border: 2px solid #6080be;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(43, 59, 108, 0.96), rgba(24, 35, 70, 0.99)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 6px
    );
}

.footer-panel p {
  color: #adc8df;
  font-size: 0.82rem;
}

.footer-copy {
  letter-spacing: 0.08em;
}

.error-panel {
  max-width: 620px;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .shell__main {
    border-left: 0;
    padding-left: 0;
    background: none;
  }

  .shell__main > .panel:nth-of-type(odd),
  .shell__main > .panel:nth-of-type(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .home-hud {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .panel,
  .panel--tight {
    padding: 0.6rem 0.62rem;
  }

  .status-bar {
    top: 0.3rem;
  }

  .nav-list {
    gap: 0.24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link.is-active {
    animation: none !important;
  }
}

@keyframes active-scan {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 24px, 0 0;
  }
}

/* VHS AF pass: aggressively lower apparent resolution and add analog tracking artifacts. */
:root {
  --vhs-pixel-step: 5px;
  --vhs-blur: 0px;
  --vhs-noise: 0.44;
  --vhs-field: 4px;
}

html {
  background: #02040c;
}

body {
  font-size: 14px;
  line-height: 1.56;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
}

body::before {
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(112, 152, 208, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 152, 208, 0.2) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.048) 0,
      rgba(255, 255, 255, 0.048) 2px,
      transparent 2px,
      transparent 8px
    );
  background-size: 26px 26px, 26px 26px, 100% 100%;
}

body::after {
  opacity: 0.42;
  background:
    linear-gradient(
      90deg,
      rgba(255, 87, 207, 0.24),
      transparent 22%,
      transparent 78%,
      rgba(74, 244, 255, 0.28)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 1px,
      rgba(0, 0, 0, 0.23) 1px,
      rgba(0, 0, 0, 0.23) 2px,
      transparent 2px,
      transparent var(--vhs-field)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.3) 0,
      rgba(0, 0, 0, 0.3) 1px,
      transparent 1px,
      transparent 4px
    );
  animation: scan-drift 4s linear infinite, crt-flicker 1.6s steps(5) infinite, tracking-hum 2.4s linear infinite;
}

.app {
  filter: contrast(1.24) saturate(0.68) brightness(0.83);
  isolation: isolate;
  animation: vhs-luma-pump 2.2s steps(6, end) infinite;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  opacity: var(--vhs-noise);
  background:
    radial-gradient(circle at 17% 18%, rgba(255, 255, 255, 0.13), transparent 26%),
    radial-gradient(circle at 84% 72%, rgba(255, 255, 255, 0.1), transparent 25%),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0,
      rgba(0, 0, 0, 0.45) 2px,
      transparent 2px,
      transparent calc(var(--vhs-pixel-step) + 1px)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.11) 0,
      rgba(255, 255, 255, 0.11) 1px,
      transparent 1px,
      transparent calc(var(--vhs-pixel-step) + 1px)
    );
  mix-blend-mode: plus-lighter;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: vhs-static 300ms steps(6) infinite;
}

.app::after {
  content: "";
  position: fixed;
  inset: -4% 0;
  pointer-events: none;
  z-index: 36;
  opacity: 0.38;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.13) 46%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 55%
    ),
    linear-gradient(
      90deg,
      rgba(255, 87, 207, 0.16) 0%,
      transparent 36%,
      transparent 64%,
      rgba(74, 244, 255, 0.17) 100%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 12px,
      rgba(255, 255, 255, 0.14) 12px,
      rgba(255, 255, 255, 0.14) 14px,
      transparent 14px,
      transparent 52px
    );
  mix-blend-mode: screen;
  animation: tracking-tear 3.1s linear infinite;
}

.panel,
.status-bar,
.nav-link,
.btn,
input,
textarea,
.card,
.ticker,
.footer-panel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0.1em;
  text-shadow:
    -0.05em 0 rgba(255, 87, 207, 0.3),
    0.05em 0 rgba(74, 244, 255, 0.34),
    0 0 6px rgba(74, 244, 255, 0.18);
}

p,
li,
a,
label,
input,
textarea,
.meta,
.summary,
.status-time,
.status-muted,
.console-ribbon__cell,
.shell__aux-line,
.nav-link,
.btn,
.tag-pill {
  text-shadow:
    -0.05em 0 rgba(255, 87, 207, 0.2),
    0.05em 0 rgba(74, 244, 255, 0.24);
}

.status-bar {
  border-width: 2px;
}

.panel,
.card,
.nav-link,
.btn,
input,
textarea,
.tag-card,
.tag-pill,
.ticker,
.console-ribbon,
.status-pill,
.shell__aux-line,
.footer-panel {
  border-radius: 0 !important;
}

.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.48rem 0.38rem 2.16rem;
}

.btn {
  font-size: 0.71rem;
  letter-spacing: 0.09em;
}

input,
textarea {
  font-size: 0.92rem;
}

.detail .hero-image,
.video-player,
.page-links .prose li img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: contrast(1.2) saturate(0.82) brightness(0.91);
}

.prose pre {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(8, 13, 32, 0.95);
}

@media (max-width: 640px) {
  :root {
    --vhs-pixel-step: 4px;
    --vhs-blur: 0px;
    --vhs-field: 3px;
  }

  body {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app::before,
  .app::after {
    animation: none !important;
  }

  body::after {
    animation: none !important;
  }

  .app {
    animation: none !important;
  }
}

@keyframes vhs-static {
  0% {
    transform: translateX(0);
    opacity: calc(var(--vhs-noise) * 0.88);
  }

  20% {
    transform: translateX(0.6px);
    opacity: calc(var(--vhs-noise) * 1.08);
  }

  48% {
    transform: translateX(-0.8px);
    opacity: calc(var(--vhs-noise) * 0.82);
  }

  73% {
    transform: translateX(0.7px);
    opacity: calc(var(--vhs-noise) * 1.03);
  }

  100% {
    transform: translateX(0);
    opacity: calc(var(--vhs-noise) * 0.9);
  }
}

@keyframes tracking-tear {
  0% {
    transform: translateY(-120%) translateX(0);
  }

  20% {
    transform: translateY(-18%) translateX(0.6px);
  }

  23% {
    transform: translateY(-9%) translateX(-1.1px);
  }

  52% {
    transform: translateY(24%) translateX(0.8px);
  }

  55% {
    transform: translateY(32%) translateX(-1.2px);
  }

  72% {
    transform: translateY(66%) translateX(0.4px);
  }

  100% {
    transform: translateY(120%) translateX(0);
  }
}

@keyframes vhs-luma-pump {
  0%,
  100% {
    filter: contrast(1.24) saturate(0.68) brightness(0.83);
  }

  45% {
    filter: contrast(1.3) saturate(0.64) brightness(0.79);
  }

  75% {
    filter: contrast(1.18) saturate(0.72) brightness(0.86);
  }
}

/* Low-RAM UI trim: simpler controls, fewer chrome layers, text-first lists. */
.console-ribbon,
.shell__aux,
.home-hud__aux {
  display: none !important;
}

.shell.shell--minimal {
  width: min(1120px, 95vw);
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 0.42rem;
}

.shell__main {
  border-left: 1px solid rgba(95, 127, 194, 0.56);
  padding-left: 0.62rem;
  background: none;
}

.panel::before,
.panel::after {
  display: none !important;
}

.panel {
  border-width: 1px;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(25, 35, 73, 0.9), rgba(13, 21, 46, 0.96)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 5px
    );
}

.panel,
.panel--tight {
  padding: 0.72rem 0.78rem;
}

.nav-panel .panel__label {
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
}

.nav-list {
  gap: 0;
  border-top: 1px solid rgba(95, 127, 194, 0.34);
}

.nav-list li + li {
  border-top: 1px dotted rgba(95, 127, 194, 0.32);
}

.nav-link {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.48rem 0.38rem;
  font-size: 0.84rem;
  line-height: 1.4;
  letter-spacing: 0.07em;
}

.nav-link::before {
  display: none;
}

.nav-link:hover {
  border: 0;
  box-shadow: none;
  background: rgba(74, 244, 255, 0.08);
}

.nav-link.is-active {
  border: 0;
  box-shadow: none;
  background: rgba(74, 244, 255, 0.16);
  color: #f3fbff;
  animation: none;
}

.card-list {
  gap: 0.32rem;
}

.card,
.card:nth-child(even) {
  border-width: 1px;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(21, 31, 65, 0.9), rgba(11, 18, 40, 0.96)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 5px
    );
  padding: 0.76rem 0.8rem;
}

.card:hover {
  transform: none;
  box-shadow: none;
  border-color: #78b4ff;
}

.tag-list {
  gap: 0.24rem;
}

.tag-pill {
  border-width: 1px;
  padding: 0.2rem 0.5rem;
  font-size: 0.83rem;
  background: rgba(74, 244, 255, 0.08);
}

.btn {
  border-width: 1px;
  box-shadow: none;
  padding: 0.42rem 0.64rem;
  font-size: 0.82rem;
  line-height: 1.3;
  background:
    linear-gradient(180deg, rgba(70, 95, 157, 0.92), rgba(35, 50, 100, 0.96));
}

.btn:hover {
  box-shadow: none;
  filter: none;
}

input,
textarea {
  border-width: 1px;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1.45;
  padding: 0.52rem 0.6rem;
}

.status-bar {
  border-width: 1px;
}

.status-pill {
  border-width: 1px;
}

.status-rec,
.status-rec__dot {
  animation: none;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.72rem);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

p,
li {
  font-size: 1rem;
  line-height: 1.62;
}

.meta {
  font-size: 0.94rem;
}

.summary {
  font-size: 1.08rem;
  line-height: 1.64;
}

.status-time {
  font-size: 1rem;
}

.status-time-label,
.status-muted,
.status-pill,
.status-rec {
  font-size: 0.8rem;
}

.home-hud {
  grid-template-columns: 1fr;
}

.page-links .prose ul {
  grid-template-columns: 1fr;
  gap: 0.38rem;
}

.page-links .prose li {
  border-width: 1px;
  border-left-width: 3px;
  box-shadow: none;
  padding: 0.5rem 0.54rem;
}

.page-links .prose li:hover {
  transform: none;
  box-shadow: none;
}

.page-links .prose li > p:first-child a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.84rem;
}

.page-links .prose li img {
  max-height: 74px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .shell.shell--minimal {
    grid-template-columns: 1fr;
  }

  .shell__main {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .panel,
  .panel--tight {
    padding: 0.66rem 0.68rem;
  }

  .nav-link {
    font-size: 0.81rem;
    padding: 0.44rem 0.34rem;
  }

  .btn {
    font-size: 0.79rem;
    padding: 0.38rem 0.56rem;
  }
}

/* Text overlay clone pipeline is disabled for now; keep native text rendering only. */
#text-overlay-root {
  display: none !important;
}

/* Scroll stability pass: keep CRT look without unstable full-page compositor layers. */
/* Keep the document as the scroll container. Applying these rules to body
   traps wheel/touch gestures before they reach the viewport. */
html {
  overflow-x: hidden;
  overflow-y: auto;
}

.app {
  -webkit-filter: none !important;
  filter: none !important;
  animation: none !important;
}

.app::before,
.app::after {
  content: "" !important;
  display: block !important;
  animation: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.app::before {
  opacity: 0.18 !important;
}

.app::after {
  opacity: 0.14 !important;
}

/* Movement flag in status bar. */
.status-bar__brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.status-flag {
  width: 50px !important;
  height: 30px !important;
  flex: 0 0 auto;
  display: block;
  max-width: none !important;
  object-fit: contain;
  border: 1px solid rgba(176, 206, 248, 0.62);
  background: rgba(8, 13, 28, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 7px rgba(74, 244, 255, 0.2);
  image-rendering: crisp-edges;
}

@media (max-width: 640px) {
  .status-bar__brand-group {
    gap: 0.38rem;
  }

  .status-flag {
    width: 40px !important;
    height: 24px !important;
  }
}

/* Links page: badge brick wall + tooltip-only descriptions. */
.page-links .links-note,
.page-links .prose > p {
  display: none !important;
}

.page-links .prose h2 {
  margin: 1rem 0 0.34rem;
  padding-top: 0.42rem;
}

.page-links .prose ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0 !important;
  margin: 0 0 0.86rem;
  padding: 0;
  list-style: none;
}

.page-links .prose li {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  line-height: 0;
  font-size: 0 !important;
  color: transparent !important;
}

.page-links .prose li:hover {
  transform: none !important;
  box-shadow: none !important;
}

.page-links .prose li > p:first-child {
  margin: 0;
}

.page-links .prose li > p:first-child a {
  display: block;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  height: 31px;
  min-height: 31px;
  max-height: 31px;
  margin: 0;
  text-decoration: none;
  border: 0;
  outline-offset: 1px;
}

.page-links .prose li > p:first-child a:focus-visible {
  outline: 1px solid rgba(91, 242, 188, 0.9);
}

.page-links .prose li img {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
  display: block;
  margin: 0;
  border: 0;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #03060e;
  box-shadow: none;
}

.page-links .prose li > p:last-child {
  display: none !important;
}

/* 1999 chaos mode: intentionally de-modernized chrome. */
body.theme-y2k-chaos {
  --bg: #00040f;
  --panel: #001233;
  --text: #f5f0bb;
  --muted: #a9bfd9;
  --accent: #6bff8d;
  --accent2: #5ccfff;
  --border: #4f7ccc;
  --shadow: 0 0 8px rgba(83, 186, 255, 0.22);
  font-family: "Verdana", "Tahoma", "MS Sans Serif", "Geneva", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 0, 138, 0.1), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(0, 198, 255, 0.15), transparent 36%),
    linear-gradient(180deg, #000815, #00050f 42%, #01030a);
}

body.theme-y2k-chaos::before {
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(93, 117, 177, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 117, 177, 0.26) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 16px 16px, 16px 16px, 100% 100%;
  animation: none;
}

body.theme-y2k-chaos::after {
  opacity: 0.24;
  mix-blend-mode: normal;
  animation: none;
}

body.theme-y2k-chaos .app {
  padding: 0.5rem 0 1.4rem;
}

body.theme-y2k-chaos .status-bar,
body.theme-y2k-chaos .web99-strip,
body.theme-y2k-chaos .panel,
body.theme-y2k-chaos .card,
body.theme-y2k-chaos .nav-panel,
body.theme-y2k-chaos .footer-panel {
  border: 2px outset #5f8fd9 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  background: linear-gradient(180deg, rgba(4, 29, 78, 0.97), rgba(1, 13, 44, 0.98)) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.24),
    inset -1px -1px 0 rgba(0, 0, 0, 0.72),
    0 0 10px rgba(73, 180, 255, 0.15) !important;
}

body.theme-y2k-chaos .panel::before,
body.theme-y2k-chaos .panel::after,
body.theme-y2k-chaos .card::before,
body.theme-y2k-chaos .card::after {
  display: none !important;
}

body.theme-y2k-chaos .status-bar {
  width: min(1180px, 95vw);
  margin: 0 auto;
  top: 0.35rem;
  position: sticky;
  z-index: 20;
}

body.theme-y2k-chaos .web99-strip {
  width: min(1180px, 95vw);
  margin: 0.32rem auto 0;
  padding: 0.28rem 0.48rem;
  border-style: inset !important;
}

body.theme-y2k-chaos .web99-strip marquee {
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 0.84rem;
  color: #8cf3ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.theme-y2k-chaos .shell.shell--minimal {
  width: min(1180px, 95vw);
  margin: 0.38rem auto 0;
  gap: 0.45rem;
  grid-template-columns: 208px minmax(0, 1fr);
}

body.theme-y2k-chaos .shell__main {
  padding-left: 0;
  border-left: 0;
}

body.theme-y2k-chaos .nav-panel .panel__label {
  color: #ffe07a;
  letter-spacing: 0.14em;
}

body.theme-y2k-chaos .nav-list {
  gap: 0;
  border-top: 1px dotted rgba(138, 196, 255, 0.5);
}

body.theme-y2k-chaos .nav-list li + li {
  border-top: 1px dotted rgba(138, 196, 255, 0.34);
}

body.theme-y2k-chaos .nav-link {
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(5, 30, 74, 0.92), rgba(3, 18, 52, 0.94));
  box-shadow: none;
  padding: 0.44rem 0.42rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

body.theme-y2k-chaos .nav-link::before {
  display: none;
}

body.theme-y2k-chaos .nav-link:hover {
  color: #fff3a2;
  background: linear-gradient(180deg, rgba(12, 46, 110, 0.98), rgba(5, 30, 78, 0.95));
}

body.theme-y2k-chaos .nav-link.is-active {
  color: #fff6cb;
  background: linear-gradient(180deg, rgba(34, 76, 146, 0.95), rgba(11, 45, 108, 0.95));
  text-shadow: -1px 0 rgba(255, 39, 158, 0.55), 1px 0 rgba(80, 234, 255, 0.75);
}

body.theme-y2k-chaos .status-bar__brand,
body.theme-y2k-chaos h1,
body.theme-y2k-chaos h2,
body.theme-y2k-chaos h3 {
  font-family: "Courier New", "Lucida Console", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.theme-y2k-chaos h1,
body.theme-y2k-chaos h2,
body.theme-y2k-chaos h3 {
  text-shadow: -1px 0 rgba(255, 43, 162, 0.4), 1px 0 rgba(93, 231, 255, 0.5);
}

body.theme-y2k-chaos .hero__subtle,
body.theme-y2k-chaos .hero__mono {
  color: #bdd5f0;
}

body.theme-y2k-chaos .card,
body.theme-y2k-chaos .card:nth-child(even) {
  border-style: outset !important;
  transform: none;
}

body.theme-y2k-chaos .card:hover {
  transform: none;
  filter: brightness(1.04);
}

body.theme-y2k-chaos .btn {
  border: 2px outset #6ea3ea;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #245ca9, #163f80);
  color: #f4f7ff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
}

body.theme-y2k-chaos .btn:hover {
  background: linear-gradient(180deg, #2e71c8, #1d4f9f);
  box-shadow: none;
}

body.theme-y2k-chaos .btn:active {
  border-style: inset;
  transform: translate(1px, 1px);
}

body.theme-y2k-chaos .btn--ghost {
  background: linear-gradient(180deg, #1f4377, #102d58);
}

body.theme-y2k-chaos input,
body.theme-y2k-chaos textarea,
body.theme-y2k-chaos select {
  border: 2px inset #5f8fd9;
  border-radius: 0;
  background: #020f2f;
  color: #e7f3ff;
  box-shadow: none;
}

body.theme-y2k-chaos a {
  color: #80d6ff;
}

body.theme-y2k-chaos a:hover {
  color: #d8ff89;
}

body.theme-y2k-chaos .status-rec {
  animation: web99-blink 1s steps(1, end) infinite;
}

body.theme-y2k-chaos .status-rec__dot {
  animation: none;
}

body.theme-y2k-chaos .footer-panel p {
  margin: 0.22rem 0;
}

@keyframes web99-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.3;
  }
}

@media (max-width: 980px) {
  body.theme-y2k-chaos .shell.shell--minimal {
    grid-template-columns: 1fr;
    width: min(95vw, 1180px);
  }

  body.theme-y2k-chaos .web99-strip,
  body.theme-y2k-chaos .status-bar {
    width: min(95vw, 1180px);
  }
}

/* 1999 hard mode pass: raw HTML chaos over the softer Y2K layer above. */
body.theme-y2k-chaos {
  font-family: "Times New Roman", Times, serif;
  color: #f4f0b4;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 165, 255, 0.06) 0,
      rgba(0, 165, 255, 0.06) 2px,
      transparent 2px,
      transparent 4px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 0, 153, 0.055) 0,
      rgba(255, 0, 153, 0.055) 1px,
      transparent 1px,
      transparent 3px
    ),
    #02020b;
}

body.theme-y2k-chaos .status-bar__brand,
body.theme-y2k-chaos h1,
body.theme-y2k-chaos h2,
body.theme-y2k-chaos h3 {
  font-family: "Arial Black", "Impact", "Tahoma", sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: none;
}

body.theme-y2k-chaos .status-bar,
body.theme-y2k-chaos .web99-strip,
body.theme-y2k-chaos .panel,
body.theme-y2k-chaos .card,
body.theme-y2k-chaos .nav-panel,
body.theme-y2k-chaos .footer-panel {
  border: 3px ridge #9aaecf !important;
  background: #06133b !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.22),
    inset -1px -1px 0 rgba(0, 0, 0, 0.7) !important;
}

body.theme-y2k-chaos .panel,
body.theme-y2k-chaos .card {
  padding: 0.6rem 0.7rem;
}

body.theme-y2k-chaos a {
  color: #00e1ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

body.theme-y2k-chaos a:visited {
  color: #ff7bdf;
}

body.theme-y2k-chaos a:hover {
  color: #f8ff7b;
}

body.theme-y2k-chaos .web99-strip {
  border: 3px inset #9aaecf !important;
  background: #000 !important;
  color: #64ff7e;
}

body.theme-y2k-chaos .web99-strip marquee {
  color: #64ff7e;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
}

body.theme-y2k-chaos .nav-link,
body.theme-y2k-chaos .btn,
body.theme-y2k-chaos button,
body.theme-y2k-chaos input[type="submit"],
body.theme-y2k-chaos input[type="button"] {
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 12px !important;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: #e7f8ff !important;
  background: #1f4f9c !important;
  border-top: 2px solid #66b8ff !important;
  border-left: 2px solid #66b8ff !important;
  border-right: 2px solid #082048 !important;
  border-bottom: 2px solid #082048 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.22rem 0.5rem !important;
  text-shadow: none !important;
}

body.theme-y2k-chaos .nav-link:hover,
body.theme-y2k-chaos .btn:hover,
body.theme-y2k-chaos button:hover,
body.theme-y2k-chaos input[type="submit"]:hover,
body.theme-y2k-chaos input[type="button"]:hover {
  background: #2c67c1 !important;
  color: #f7fff8 !important;
  filter: none !important;
}

body.theme-y2k-chaos .nav-link.is-active {
  background: #0f2f73 !important;
  color: #7dffd8 !important;
  border-top: 2px solid #082048 !important;
  border-left: 2px solid #082048 !important;
  border-right: 2px solid #66b8ff !important;
  border-bottom: 2px solid #66b8ff !important;
}

body.theme-y2k-chaos .btn:active,
body.theme-y2k-chaos button:active,
body.theme-y2k-chaos input[type="submit"]:active,
body.theme-y2k-chaos input[type="button"]:active,
body.theme-y2k-chaos .nav-link:active {
  border-top: 2px solid #082048 !important;
  border-left: 2px solid #082048 !important;
  border-right: 2px solid #66b8ff !important;
  border-bottom: 2px solid #66b8ff !important;
  transform: translate(1px, 1px);
}

body.theme-y2k-chaos input,
body.theme-y2k-chaos textarea,
body.theme-y2k-chaos select {
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 12px;
  color: #000;
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

body.theme-y2k-chaos .status-pill,
body.theme-y2k-chaos .status-muted,
body.theme-y2k-chaos .status-rec,
body.theme-y2k-chaos .status-time-label,
body.theme-y2k-chaos .status-time {
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
}

body.theme-y2k-chaos .status-rec {
  color: #ff4d4d;
}

/* Restore VHS roll in chaos mode via dedicated overlay band. */
.vhs-roll-overlay {
  display: none;
}

body.theme-y2k-chaos::after {
  opacity: 0.2;
  animation: scan-drift 5s linear infinite, crt-flicker 1.8s steps(6) infinite, tracking-hum 3.2s linear infinite;
}

body.theme-y2k-chaos .broadcast-shell::after {
  opacity: 0.2;
  animation: none;
}

body.theme-y2k-chaos .vhs-roll-overlay {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.009) 0,
      rgba(255, 255, 255, 0.009) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 27px,
      rgba(116, 225, 255, 0.026) 27px,
      rgba(116, 225, 255, 0.026) 28px,
      transparent 28px,
      transparent 56px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 45px,
      rgba(255, 122, 204, 0.02) 45px,
      rgba(255, 122, 204, 0.02) 46px,
      transparent 46px,
      transparent 92px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 132px,
      rgba(168, 236, 255, 0.09) 132px,
      rgba(168, 236, 255, 0.09) 133px,
      transparent 133px,
      transparent 264px
    );
  animation: vhs-static-lines 2.4s linear infinite;
}

body.theme-y2k-chaos .vhs-roll-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(165, 241, 255, 0.06), transparent 42%),
    radial-gradient(circle at 40% 74%, rgba(255, 115, 201, 0.05), transparent 38%);
  opacity: 0.26;
}

body.theme-y2k-chaos .vhs-roll-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.014) 0,
      rgba(255, 255, 255, 0.014) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 11px,
      rgba(110, 218, 255, 0.032) 11px,
      rgba(110, 218, 255, 0.032) 12px,
      transparent 12px,
      transparent 24px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 19px,
      rgba(255, 121, 205, 0.024) 19px,
      rgba(255, 121, 205, 0.024) 20px,
      transparent 20px,
      transparent 42px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 160px,
      rgba(177, 242, 255, 0.12) 160px,
      rgba(177, 242, 255, 0.12) 161px,
      transparent 161px,
      transparent 320px
    );
  mix-blend-mode: normal;
  opacity: 0.17;
  animation: vhs-static-flicker 0.9s steps(2, end) infinite;
}

@keyframes vhs-static-lines {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 0 12px, 0 38px, 0 56px;
  }
}

@keyframes vhs-static-flicker {
  0%,
  100% {
    opacity: 0.17;
  }

  50% {
    opacity: 0.12;
  }
}

body.theme-y2k-chaos .vhs-roll-overlay .vhs-roll-band {
  position: absolute;
  left: -8%;
  top: 0;
  width: 116%;
  height: var(--roll-height, 22vh);
  pointer-events: none;
  isolation: isolate;
  opacity: 0.44;
  mix-blend-mode: normal;
  filter: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(121, 230, 255, var(--roll-cyan, 0.14)) 38%,
      rgba(255, 106, 198, var(--roll-magenta, 0.08)) 56%,
      rgba(255, 255, 255, var(--roll-white, 0.05)) 67%,
      rgba(255, 255, 255, 0) 100%
    );
  animation:
    vhs-roll-drop var(--roll-duration, 5400ms) linear forwards,
    vhs-roll-band-flicker 0.35s steps(2, end) infinite;
}

body.theme-y2k-chaos .vhs-roll-overlay .vhs-roll-band::before,
body.theme-y2k-chaos .vhs-roll-overlay .vhs-roll-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: vhs-rgb-flicker 0.62s steps(2, end) infinite;
}

body.theme-y2k-chaos .vhs-roll-overlay .vhs-roll-band::before {
  transform: translateX(calc(var(--rgb-shift, 0.45px) * -1));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 92, 143, var(--rgb-red-alpha, 0.05)) 42%,
    rgba(255, 255, 255, 0) 100%
  );
}

body.theme-y2k-chaos .vhs-roll-overlay .vhs-roll-band::after {
  transform: translateX(var(--rgb-shift, 0.45px));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(102, 226, 255, var(--rgb-cyan-alpha, 0.05)) 46%,
    rgba(255, 255, 255, 0) 100%
  );
}

body.theme-y2k-chaos .vhs-roll-overlay .vhs-roll-band--bold {
  opacity: 0.62;
  filter: none;
}

@keyframes vhs-roll-drop {
  from {
    transform: translate3d(var(--roll-jitter, 0px), -135%, 0);
  }

  to {
    transform: translate3d(calc(var(--roll-jitter, 0px) * -1), 165vh, 0);
  }
}

@keyframes vhs-roll-band-flicker {
  0%,
  100% {
    opacity: 0.44;
  }

  50% {
    opacity: 0.34;
  }
}

@keyframes vhs-rgb-flicker {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.76;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-y2k-chaos::after,
  body.theme-y2k-chaos .vhs-roll-overlay,
  body.theme-y2k-chaos .vhs-roll-overlay::before,
  body.theme-y2k-chaos .vhs-roll-overlay::after {
    animation: none !important;
  }

  body.theme-y2k-chaos .vhs-roll-overlay::before {
    opacity: 0.16;
  }

  body.theme-y2k-chaos .vhs-roll-overlay .vhs-roll-band {
    display: none !important;
  }
}

/* Sidebar tags box between Navigation Bus and Top Links. */
.tags-panel {
  margin-top: 0.22rem;
}

.tags-panel .panel__label {
  margin-bottom: 0.34rem;
}

.sidebar-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.sidebar-tag-list li {
  margin: 0;
  padding: 0;
}

.sidebar-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.36rem;
  text-decoration: none;
  border: 1px solid rgba(95, 127, 194, 0.62);
  background:
    linear-gradient(180deg, rgba(56, 76, 136, 0.96), rgba(30, 43, 87, 0.97)),
    linear-gradient(90deg, rgba(255, 87, 207, 0.07), rgba(74, 244, 255, 0.08));
  color: #dff5ff;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 0.66rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.sidebar-tag-pill:hover {
  border-color: #8eb5ef;
  background:
    linear-gradient(180deg, rgba(77, 103, 184, 0.98), rgba(42, 60, 119, 0.99)),
    linear-gradient(90deg, rgba(255, 87, 207, 0.13), rgba(74, 244, 255, 0.16));
}

.sidebar-tag-pill:focus-visible {
  outline: 1px solid rgba(111, 229, 255, 0.9);
  outline-offset: 1px;
}

.sidebar-tag-pill__name {
  letter-spacing: 0.04em;
}

.sidebar-tag-pill__count {
  opacity: 0.78;
  font-size: 0.61rem;
}

.sidebar-tag-empty {
  margin: 0;
  color: #afc7df;
  font-size: 0.72rem;
}

body.theme-y2k-chaos .tags-panel {
  margin-top: 0.18rem;
}

body.theme-y2k-chaos .sidebar-tag-list {
  gap: 1px;
}

body.theme-y2k-chaos .sidebar-tag-pill {
  border-radius: 0;
}

/* Secondary nav box under Tags panel. */
.top-links-panel {
  margin-top: 0.22rem;
}

.top-links-panel .panel__label {
  margin-bottom: 0.34rem;
}

.top-links-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 88px);
  justify-content: start;
  justify-items: start;
  gap: 1px 1px;
}

.top-links-badges li {
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
}

.top-badge-link {
  display: inline-block;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  height: 31px;
  min-height: 31px;
  max-height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none;
  line-height: 0;
}

.top-badge-link img {
  display: block;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  height: 31px;
  min-height: 31px;
  max-height: 31px;
  margin: 0;
  border: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.top-badge-link:focus-visible {
  outline: 1px solid rgba(111, 229, 255, 0.9);
  outline-offset: 1px;
}

.top-badge-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #dff3ff;
  background: #071838;
}

body.theme-y2k-chaos .top-links-panel {
  margin-top: 0.18rem;
}

body.theme-y2k-chaos .top-links-panel .panel__label {
  margin-bottom: 0.24rem;
}

body.theme-y2k-chaos .top-links-badges {
  gap: 0;
}

body.theme-y2k-chaos .shell.shell--minimal {
  grid-template-columns: 232px minmax(0, 1fr);
}

@media (max-width: 980px) {
  body.theme-y2k-chaos .shell.shell--minimal {
    grid-template-columns: 1fr;
  }
}

body.theme-y2k-chaos .top-badge-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.theme-y2k-chaos .top-badge-link img {
  border: 0;
  box-shadow: none;
}

/* IRC-style chat room */
.chat-room {
  display: grid;
  gap: 0.7rem;
}

.chat-panel {
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}

.irc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(109, 146, 216, 0.45);
}

.irc-head h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irc-head__meta {
  margin: 0.16rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-room-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-live-pill {
  display: inline-block;
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(125, 248, 255, 0.78);
  background: rgba(74, 244, 255, 0.1);
  color: #7ef8ff;
}

.chat-live-pill.is-offline {
  border-color: rgba(255, 143, 210, 0.78);
  background: rgba(255, 87, 207, 0.14);
  color: #ffd3eb;
}

.irc-channel-label {
  color: #9fb9ce;
}

.chat-feedback {
  margin: 0 0 0.56rem;
  padding: 0.32rem 0.42rem;
  border: 1px solid rgba(95, 127, 193, 0.58);
  border-left: 3px solid #6b90d8;
  background: rgba(17, 28, 61, 0.88);
  color: #dceeff;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
}

.chat-feedback.is-ok {
  border-left-color: #7ef8ff;
}

.chat-feedback.is-error {
  border-left-color: #ff79cd;
}

.chat-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 198px;
  gap: 0.52rem;
  align-items: stretch;
}

.irc-shell {
  border: 2px solid rgba(99, 132, 199, 0.62);
  background:
    linear-gradient(180deg, rgba(13, 22, 47, 0.97), rgba(9, 16, 37, 0.99)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  padding: 0.44rem 0.5rem;
  min-height: 17rem;
  max-height: 56vh;
  overflow: auto;
}

.chat-presence {
  border: 2px solid rgba(99, 132, 199, 0.62);
  background:
    linear-gradient(180deg, rgba(15, 24, 52, 0.97), rgba(10, 16, 34, 0.99)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  padding: 0.42rem 0.45rem;
  min-height: 17rem;
  max-height: 56vh;
  overflow: auto;
}

.chat-presence__title {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: #a7c6dd;
}

.chat-presence__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.chat-presence__item,
.chat-presence__empty {
  margin: 0;
  padding: 0.15rem 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border: 1px solid rgba(95, 127, 193, 0.35);
  background: rgba(11, 20, 43, 0.75);
  color: #d4ebff;
}

.chat-presence__item.is-self {
  color: #7ff6ff;
  border-color: rgba(125, 248, 255, 0.66);
}

.chat-presence__empty {
  color: #8eaac1;
  font-style: italic;
}

.irc-log {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.42;
}

.irc-log .irc-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.irc-log .message--empty {
  grid-template-columns: 1fr;
  color: #8eaac1;
  opacity: 0.85;
  font-style: italic;
}

.irc-stamp {
  color: #89aec9;
  white-space: nowrap;
}

.irc-nick {
  color: #7ff6ff;
  font-weight: 700;
  white-space: nowrap;
}

.irc-body {
  display: block;
  margin: 0;
  color: #ddf1ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-session {
  margin-top: 0.58rem;
  padding: 0.32rem 0.4rem;
  border: 1px solid rgba(95, 127, 193, 0.45);
  background: rgba(13, 22, 47, 0.62);
  display: flex;
  align-items: center;
  gap: 0.44rem;
  font-family: var(--font-mono);
}

.chat-session__label {
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb7cc;
}

.chat-session__value {
  color: #7ff6ff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.chat-session__change {
  margin-left: auto;
}

.irc-compose {
  margin-top: 0.44rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(100, 134, 200, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.44rem 0.55rem;
  align-items: center;
}

.irc-compose label {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.irc-compose textarea[data-chat-body] {
  grid-column: 1;
  min-height: 2.4rem;
  max-height: 8rem;
  resize: vertical;
  font-family: var(--font-mono);
  line-height: 1.3;
}

.irc-compose .chat-send {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  min-width: 86px;
}

.chat-room--nick-locked .irc-compose textarea[data-chat-body],
.chat-room--nick-locked .irc-compose .chat-send {
  opacity: 0.6;
}

.chat-nick-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(4, 7, 19, 0.84), rgba(8, 13, 29, 0.88)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
  padding: 0.8rem;
}

.chat-nick-overlay[hidden] {
  display: none;
}

.chat-nick-modal {
  width: min(26rem, 100%);
  border: 2px solid rgba(111, 145, 211, 0.86);
  background:
    linear-gradient(180deg, rgba(19, 31, 67, 0.98), rgba(10, 18, 39, 0.99)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  padding: 0.72rem;
  display: grid;
  gap: 0.42rem;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.25),
    0 0 0 1px rgba(9, 15, 36, 0.94),
    0 0 14px rgba(74, 244, 255, 0.16);
}

.chat-nick-modal h2 {
  margin: 0;
  font-size: 0.95rem;
}

.chat-nick-modal .meta {
  margin: 0;
  font-size: 0.74rem;
}

.chat-nick-modal label {
  margin: 0;
}

.chat-nick-modal input {
  font-family: var(--font-mono);
}

.chat-nick-error {
  margin: 0;
  min-height: 1.2em;
  color: #ffbde2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.chat-nick-error[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .irc-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-room-grid {
    grid-template-columns: 1fr;
  }

  .irc-shell {
    max-height: 60vh;
  }

  .chat-presence {
    min-height: 0;
    max-height: 12.5rem;
  }

  .irc-compose {
    grid-template-columns: 1fr;
  }

  .irc-compose textarea[data-chat-body],
  .irc-compose .chat-send {
    grid-column: 1;
    grid-row: auto;
  }

  .irc-compose .chat-send {
    min-height: 2.15rem;
  }
}

/* Keep chrome/navigation links clean; reserve visited purple for post links. */
body.theme-y2k-chaos .status-bar a,
body.theme-y2k-chaos .status-bar a:visited,
body.theme-y2k-chaos .nav-panel a,
body.theme-y2k-chaos .nav-panel a:visited,
body.theme-y2k-chaos .web99-strip a,
body.theme-y2k-chaos .web99-strip a:visited {
  text-decoration: none !important;
  color: #7dffd8;
}

body.theme-y2k-chaos a:visited {
  color: #00e1ff;
}

body.theme-y2k-chaos a[href^="/posts/"]:visited {
  color: #ff7bdf;
}

/* Retro cursor set for chaos theme. */
body.theme-y2k-chaos,
body.theme-y2k-chaos .app {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 0v16M0 8h16' stroke='%236ef3ff' stroke-width='1'/%3E%3Cpath d='M9 0v16M0 9h16' stroke='%23ff6dc9' stroke-width='1' opacity='.55'/%3E%3Crect x='6' y='6' width='4' height='4' fill='none' stroke='%23081635' stroke-width='1'/%3E%3C/svg%3E")
      8 8,
    crosshair;
}

body.theme-y2k-chaos a,
body.theme-y2k-chaos button,
body.theme-y2k-chaos summary,
body.theme-y2k-chaos [role="button"],
body.theme-y2k-chaos .nav-link,
body.theme-y2k-chaos .top-badge-link,
body.theme-y2k-chaos .sidebar-tag-pill {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 1L15 8L8 15L1 8Z' fill='none' stroke='%236ef3ff' stroke-width='1'/%3E%3Cpath d='M8 3L13 8L8 13L3 8Z' fill='none' stroke='%23ff6dc9' stroke-width='1' opacity='.55'/%3E%3Cpath d='M8 6v4M6 8h4' stroke='%236ef3ff' stroke-width='1'/%3E%3C/svg%3E")
      8 8,
    pointer;
}

body.theme-y2k-chaos input,
body.theme-y2k-chaos textarea,
body.theme-y2k-chaos select,
body.theme-y2k-chaos [contenteditable="true"] {
  cursor: text;
}

/* Web99 strip: one message scroll at a time, then advance. */
.web99-strip__items[hidden] {
  display: none !important;
}

body.theme-y2k-chaos .web99-strip[data-web99-seq] {
  overflow: hidden;
}

body.theme-y2k-chaos .web99-strip__viewport {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64ff7e;
}

body.theme-y2k-chaos .web99-strip__track {
  display: inline-block;
  white-space: nowrap;
  transform: translateX(var(--web99-start, 100%));
  will-change: transform;
}

body.theme-y2k-chaos .web99-strip__track.is-animating {
  animation: web99-strip-scroll var(--web99-duration, 12000ms) linear 1 both;
}

@keyframes web99-strip-scroll {
  from {
    transform: translateX(var(--web99-start, 100%));
  }

  to {
    transform: translateX(var(--web99-end, -100%));
  }
}

/* Slide meal layouts */
.slide-meal-shell {
  overflow-x: clip;
}

.slide-meal-controls {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.slide-meal-controls__inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.25rem;
  gap: 0.45rem;
  align-items: center;
}

.slide-meal-day__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.slide-ingredients,
.slide-method,
.slide-notes {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.slide-ingredients {
  list-style: none;
  padding-left: 0;
}

.slide-ingredients__item {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  gap: 0.38rem;
  align-items: start;
  line-height: 1.35;
}

.slide-ingredients__qty {
  min-width: 2.2rem;
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 6px color-mix(in srgb, var(--accent) 40%, transparent);
  font-family: "Courier New", "Lucida Console", monospace;
  white-space: nowrap;
}

.slide-ingredients__unit {
  min-width: 2.9rem;
  color: var(--muted);
  font-family: "Courier New", "Lucida Console", monospace;
  text-transform: lowercase;
  white-space: nowrap;
}

.slide-ingredients__name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.slide-ingredients__note {
  grid-column: 3;
  margin-left: 0;
  color: var(--muted);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.slide-ingredients__item.is-optional .slide-ingredients__name {
  opacity: 0.82;
}

.slide-list-heading {
  text-align: center;
}

.slide-recipe-heading {
  text-align: center;
}

.slide-list-heading--sub {
  font-size: 0.98em;
}

.slide-method li,
.slide-notes li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.slide-shopping-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.slide-shopping-columns > .slide-ingredients {
  margin: 0;
}

@media (max-width: 760px) {
  .slide-meal-day__grid {
    grid-template-columns: 1fr;
  }

  .slide-meal-controls__inputs {
    grid-template-columns: 1fr;
  }

  .slide-meal-controls__output {
    text-align: left;
  }

  .slide-shopping-columns {
    grid-template-columns: 1fr;
  }
}
 .effects-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: color-mix(in oklab, canvas 82%, #3a93ff 18%);
  color: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px #0006;
}
body.effects-off .fx-background-canvas,
body.effects-off .vhs-roll-overlay { display: none !important; }
body.effects-off .effects-toggle { background: color-mix(in oklab, canvas 92%, #777 8%); }
@media (max-width: 760px) {
  .effects-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }
}
