/* Crafting Labs — site styles. No inline styles anywhere (strict CSP: no data: URIs either). */

@font-face { font-family: "VT323"; src: url("../fonts/vt323-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* logo palette */
  --bg: #05060D;
  --lime: #B5F83A;        /* primary: links, buttons, focus */
  --lime-hi: #D4FF7A;
  --green: #7FDC12;
  --orange: #FCA055;
  --blue: #0EA0FF;
  --blue-deep: #0B5FB0;
  /* surfaces */
  --panel: #0A0D1A;
  --head: #0F1326;
  --line: #2A3154;        /* panel outlines */
  --line-dim: #1A2038;
  --shadow: #000000;
  --frost: #DCEBFF;       /* snow */
  --dither: #10172E;
  /* text */
  --text: #EEF2F8;
  --muted: #B3BBCD;
  --faint: #7F889E;
  --pixel: "VT323", ui-monospace, monospace;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--text);
  font: 400 15px/1.65 var(--mono);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* halftone dither: three dot screens of rising density towards the end of the page, like a snow drift */
.dither { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dither::before, .dither::after, body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background-image: radial-gradient(circle, var(--dither) 0 1px, transparent 1.2px);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 55%);
          mask-image: linear-gradient(to bottom, transparent 10%, #000 55%);
}
.dither::before {
  background-image: radial-gradient(circle, var(--dither) 0 1px, transparent 1.2px);
  background-size: 6px 6px;
  background-position: 3px 3px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 45%, #000 85%);
          mask-image: linear-gradient(to bottom, transparent 45%, #000 85%);
}
.dither::after {
  background-image: radial-gradient(circle, var(--dither) 0 1px, transparent 1.2px);
  background-size: 6px 6px;
  background-position: 3px 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 70%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 70%, #000 100%);
}

a { color: var(--lime); }
a:hover { color: var(--lime-hi); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
code { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--lime); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- streak motif (the logo's bars) ---------- */
.streaks { flex: 1; min-width: 24px; display: grid; grid-template-rows: repeat(3, 6px); row-gap: 4px; align-content: center; }
.streaks i { display: block; height: 6px; border-radius: 3px; }
.streaks-l { justify-items: end; }     /* bars run towards the title, like the logo's bars meet the bolt */
.streaks-r { justify-items: start; }
.streaks-l i:nth-child(1) { width: 100%; } .streaks-l i:nth-child(2) { width: 70%; } .streaks-l i:nth-child(3) { width: 86%; }
.streaks-r i:nth-child(1) { width: 82%; }  .streaks-r i:nth-child(2) { width: 100%; } .streaks-r i:nth-child(3) { width: 64%; }
.streaks i:nth-child(1) { background: var(--lime); }
.streaks i:nth-child(2) { background: var(--orange); }
.streaks i:nth-child(3) { background: var(--blue); }
.panel-orange .streaks i:nth-child(1) { background: var(--orange); }
.panel-orange .streaks i:nth-child(2) { background: var(--blue); }
.panel-orange .streaks i:nth-child(3) { background: var(--lime); }
.panel-blue .streaks i:nth-child(1) { background: var(--blue); }
.panel-blue .streaks i:nth-child(2) { background: var(--lime); }
.panel-blue .streaks i:nth-child(3) { background: var(--orange); }

/* full-width rule: three thin bands */
.streak-rule { display: grid; grid-template-rows: 2px 2px 2px; row-gap: 2px; }
.streak-rule i:nth-child(1) { background: var(--lime); }
.streak-rule i:nth-child(2) { background: var(--orange); }
.streak-rule i:nth-child(3) { background: var(--blue); }

/* ---------- menu bar & footer ---------- */
.menubar { background: var(--panel); }
.menubar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--text); text-decoration: none; font: 26px/1 var(--pixel); letter-spacing: 0.06em; }
.brand:hover { color: var(--text); }
.menubar nav { display: flex; flex-wrap: wrap; gap: 2px; }
.menu { color: var(--text); text-decoration: none; padding: 8px 12px; font: 22px/1.2 var(--pixel); }
.menu:hover, .menu:focus-visible { background: var(--lime); color: var(--bg); }
.menu-accent { color: var(--lime); }

.footbar { margin-top: auto; background: var(--panel); }
.footbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; color: var(--muted); font: 20px/1.3 var(--pixel); }

.main { padding-top: 56px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 48px; }

/* ---------- panels ---------- */
.panel { border: 2px solid var(--line); background: var(--panel); box-shadow: 6px 6px 0 var(--shadow); }
.panel-body { padding: 24px; margin: 0; }
.panel-head { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; padding: 0 14px; background: var(--head); border-bottom: 2px solid var(--line); }
.panel-title { margin: 0; font: 400 26px/1 var(--pixel); letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- hero ---------- */
.hero-panel { position: relative; overflow: hidden; }
.hero { position: relative; padding: 28px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.hero-logo { margin: clamp(28px, 7vw, 84px) 0 0; line-height: 0; }   /* top space ≈ the empty band below the logo once the byline is tucked away */
.hero-logo img, .hero-logo svg { width: min(440px, 78vw); height: auto; overflow: visible; }

/* ---------- logo animation: intro once, then a quiet idle ---------- */
/* Beat 1 (0–0.8 s): plain stripes fly in stretched, squash on collision and wobble like jelly.
   Beat 2 (0.85–1.0 s): the bolt slams in, squashes on impact and shoves the stripes apart;
   they spring back out to their cut positions with an elastic wobble.
   Beat 3: core flash, dots and sparkles pop, wordmark bounces up. Then the core flickers now and then.
   Static fallback (reduced motion): .cl-raw is hidden, everything else shows in its final state. */
.cl-logo .cl-raw-l, .cl-logo .cl-raw-r, .cl-logo .cl-bars-l, .cl-logo .cl-bars-r, .cl-logo .cl-dots, .cl-logo .cl-star,
.cl-logo .cl-bolt, .cl-logo .cl-core, .cl-logo .cl-word, .cl-logo .cl-line { transform-box: fill-box; transform-origin: center; }
.cl-logo .cl-raw-l, .cl-logo .cl-bars-l { transform-origin: right center; }
.cl-logo .cl-raw-r, .cl-logo .cl-bars-r { transform-origin: left center; }

.cl-logo .cl-raw    { opacity: 0; animation: cl-raw-life 1.04s steps(1) both; }   /* overlaps the swap by a few frames, no blank frame */
.cl-logo .cl-raw-l  { animation: cl-jelly-l 0.85s linear both; }
.cl-logo .cl-raw-r  { animation: cl-jelly-r 0.85s linear both; }
.cl-logo .cl-cut    { animation: cl-appear 0.01s linear 1s both; }
.cl-logo .cl-bars-l { animation: cl-shove-l 0.75s linear 1s both; }
.cl-logo .cl-bars-r { animation: cl-shove-r 0.75s linear 1s both; }
.cl-logo .cl-bolt   { animation: cl-slam 0.6s linear 0.85s both; }
.cl-logo .cl-core   { animation: cl-flash 0.6s steps(1) 1s both, cl-flicker 7s steps(1) 3.2s infinite; }
.cl-logo .cl-dots   { animation: cl-pop 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 1.15s both; }
.cl-logo .cl-star   { animation: cl-pop 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 1.25s both, cl-twinkle 4.5s ease-in-out 2.7s infinite; }
.cl-logo .cl-star-2 { animation-delay: 1.35s, 4.9s; }
.cl-logo .cl-word   { animation: cl-bounce-up 0.7s linear 1.2s both; }
.cl-logo .cl-line   { animation: cl-grow 0.5s cubic-bezier(0.34, 1.6, 0.64, 1) 1.6s both; transform-origin: left center; }

@keyframes cl-raw-life { from { opacity: 1; } to { opacity: 0; } }
/* fly in stretched, squash on contact, jiggle out */
@keyframes cl-jelly-l {
  0%   { transform: translateX(-130px) scale(1.35, 0.8); opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  15%  { opacity: 1; }
  45%  { transform: translateX(6px) scale(0.82, 1.14); animation-timing-function: ease-out; }
  62%  { transform: translateX(-3px) scale(1.09, 0.94); animation-timing-function: ease-in-out; }
  78%  { transform: translateX(1px) scale(0.96, 1.03); }
  90%  { transform: scale(1.015, 0.99); }
  100% { transform: none; opacity: 1; }
}
@keyframes cl-jelly-r {
  0%   { transform: translateX(130px) scale(1.35, 0.8); opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  15%  { opacity: 1; }
  45%  { transform: translateX(-6px) scale(0.82, 1.14); animation-timing-function: ease-out; }
  62%  { transform: translateX(3px) scale(1.09, 0.94); animation-timing-function: ease-in-out; }
  78%  { transform: translateX(-1px) scale(0.96, 1.03); }
  90%  { transform: scale(1.015, 0.99); }
  100% { transform: none; opacity: 1; }
}
/* bolt drops in stretched, squashes on impact, wobbles to rest */
@keyframes cl-slam {
  0%   { transform: translate(110px, -170px) scale(0.85, 1.3); opacity: 0; animation-timing-function: cubic-bezier(0.6, 0, 1, 0.6); }
  12%  { opacity: 1; }
  25%  { transform: scale(1.14, 0.84); animation-timing-function: ease-out; }
  45%  { transform: scale(0.93, 1.08); animation-timing-function: ease-in-out; }
  65%  { transform: scale(1.04, 0.97); }
  82%  { transform: scale(0.99, 1.01); }
  100% { transform: none; opacity: 1; }
}
/* stripes start squeezed in under the bolt, get shoved out, overshoot and settle */
@keyframes cl-shove-l {
  0%   { transform: translateX(46px) scale(0.92, 1.06); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  30%  { transform: translateX(-14px) scale(1.06, 0.95); animation-timing-function: ease-in-out; }
  52%  { transform: translateX(6px) scale(0.98, 1.02); }
  72%  { transform: translateX(-2.5px); }
  88%  { transform: translateX(1px); }
  100% { transform: none; }
}
@keyframes cl-shove-r {
  0%   { transform: translateX(-46px) scale(0.92, 1.06); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  30%  { transform: translateX(14px) scale(1.06, 0.95); animation-timing-function: ease-in-out; }
  52%  { transform: translateX(-6px) scale(0.98, 1.02); }
  72%  { transform: translateX(2.5px); }
  88%  { transform: translateX(-1px); }
  100% { transform: none; }
}
@keyframes cl-bounce-up {
  0%   { transform: translateY(30px) scale(0.9, 1.15); opacity: 0; animation-timing-function: cubic-bezier(0.3, 0.8, 0.5, 1); }
  40%  { transform: translateY(-8px) scale(1.04, 0.96); opacity: 1; animation-timing-function: ease-in-out; }
  65%  { transform: translateY(3px) scale(0.98, 1.02); }
  85%  { transform: translateY(-1px); }
  100% { transform: none; opacity: 1; }
}
@keyframes cl-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes cl-flash  { 0% { fill: #FFFFFF; } 15% { fill: #C8FB4E; } 30% { fill: #FFFFFF; } 50%, 100% { fill: #C8FB4E; } }
@keyframes cl-flicker { 0%, 90% { fill: #C8FB4E; } 91% { fill: #F2FFD2; } 92% { fill: #C8FB4E; } 94% { fill: #F2FFD2; } 95%, 100% { fill: #C8FB4E; } }
@keyframes cl-pop    { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cl-twinkle { 0%, 70%, 100% { transform: none; } 80% { transform: scale(0.55) rotate(45deg); } 90% { transform: scale(1.1); } }
@keyframes cl-grow   { from { transform: scaleX(0); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cl-logo * { animation: none !important; }
}

/* VCR on-screen display */
.osd { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px 0; font: 24px/1 var(--pixel); letter-spacing: 0.08em; color: var(--text); text-shadow: 2px 2px 0 var(--shadow); }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status-dot { width: 12px; height: 12px; background: currentColor; flex: none; }
.status-vorbereitung { color: var(--orange); }
.status-live { color: var(--lime); }
.status-live .status-dot { animation: blink 1.1s steps(1) infinite; }
.status-pause { color: var(--blue); }
.status-beendet { color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .status-live .status-dot { animation: none; } }
.byline { margin: -4px 0 0; display: inline-flex; align-items: center; gap: 14px; font: 22px/1 var(--pixel); letter-spacing: 0.22em; color: var(--muted); }
.byline a { display: block; line-height: 0; }
.byline img { width: 84px; height: auto; display: block; transition: transform 0.15s ease; }
.byline a:hover img, .byline a:focus-visible img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .byline img { transition: none; } }
/* byline: comes in after the logo intro, tucks itself away after a few seconds,
   reappears while hovering its spot. Only on devices with a mouse (touch keeps it visible),
   and only with JS (site.js adds .js-anim / .is-tucked), so it never gets stuck hidden. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .byline.js-anim { animation: cl-byline 5.5s ease-in-out 1.9s both; }
  .byline.is-tucked { opacity: 0; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.25s ease; }
  .byline.is-tucked:hover, .byline.is-tucked:focus-within { opacity: 1; transform: none; }
}
@keyframes cl-byline {
  0%   { opacity: 0; transform: translateY(14px); }
  8%   { opacity: 1; transform: none; }
  90%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-10px); }
}
#countdown::after { content: "_"; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #countdown::after { animation: none; } }

.tri { display: inline-block; width: 0.42em; height: 0.6em; margin-right: 0.4em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* pixel snowfall: four sparse dot tiles of different sizes, all moving down by one tile per loop */
.snow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image:
    radial-gradient(circle at 20% 30%, var(--frost) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 70% 60%, var(--frost) 0 1px, transparent 1.2px),
    radial-gradient(circle at 40% 80%, var(--frost) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 85% 15%, var(--frost) 0 1px, transparent 1.2px);
  background-size: 97px 97px, 131px 131px, 173px 173px, 211px 211px;
  animation: snowfall 24s linear infinite;
}
@keyframes snowfall {
  from { background-position: 0 0, 40px 0, 90px 0, 10px 0; }
  to   { background-position: 0 388px, 40px 393px, 90px 346px, 10px 422px; }
}
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }

.stats { margin: 6px 0 0; width: 100%; max-width: 760px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; border: 2px solid var(--line); background: var(--bg); text-align: left; }
.stat dt { padding: 6px 10px 0; color: var(--lime); font: 20px/1.2 var(--pixel); letter-spacing: 0.08em; }
.stat dt::before { content: ""; display: inline-block; width: 0.42em; height: 0.6em; margin-right: 0.4em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.stat dd { margin: 0; padding: 4px 10px 12px; flex: 1; }
.stat dd small { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
.address-bar { width: 100%; max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; padding: 14px 16px; border: 2px solid var(--lime); background: var(--bg); box-shadow: 4px 4px 0 var(--shadow); }
.address-label { color: var(--lime); font: 22px/1.2 var(--pixel); letter-spacing: 0.08em; }
.address-bar code { font-size: 20px; color: var(--text); user-select: all; }
.note { margin: 0; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  font: 400 20px/1 var(--pixel); color: var(--text); text-decoration: none;
  background: var(--panel); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shadow);
  cursor: pointer;
}
.btn[hidden] { display: none; }
.btn:hover, .btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-icon { width: 44px; padding: 0; }
.icon { width: 22px; height: 22px; fill: currentColor; shape-rendering: crispEdges; }
.btn-icon .icon-check { display: none; }
.btn-icon.copied { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.btn-icon.copied .icon-copy { display: none; }
.btn-icon.copied .icon-check { display: block; }
.btn:active { box-shadow: none; transform: translate(3px, 3px); }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--bg); box-shadow: 3px 3px 0 var(--blue-deep); font-size: 22px; }
.btn-primary:hover { background: var(--lime-hi); border-color: var(--lime-hi); color: var(--bg); }
.segmented .btn[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions .btn { font-size: 22px; padding: 0 18px; }
.actions-stack { flex-direction: column; gap: 18px; }
.actions-stack p { margin: 10px 0 -6px; }
.actions .btn-big { flex-direction: column; gap: 6px; width: 100%; min-height: 96px; padding: 14px 18px; font-size: 32px; letter-spacing: 0.04em; box-shadow: 5px 5px 0 var(--shadow); }
.actions .btn-primary.btn-big { box-shadow: 5px 5px 0 var(--blue-deep); }
.btn-big small { font: 400 13px/1 var(--mono); letter-spacing: 0; opacity: 0.75; }
.btn-big:active { transform: translate(5px, 5px); }

/* ---------- sections ---------- */
.section { display: flex; flex-direction: column; gap: 20px; }
.section-title { margin: 0; font: 400 34px/1.2 var(--pixel); letter-spacing: 0.04em; text-align: center; }
.section-title .muted { color: var(--faint); font-size: 24px; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.step .panel-body { padding: 20px; }
.step .panel-tip { padding-top: 0; font-size: 14px; }
.step .panel-head { gap: 12px; }
.step-no { font: 26px/1 var(--pixel); padding: 4px 8px 2px; color: var(--bg); }
.step-1 .step-no { background: var(--lime); }
.step-2 .step-no { background: var(--orange); }
.step-3 .step-no { background: var(--blue); }

.split { display: flex; flex-wrap: wrap; }
.split-side { flex: 1 1 320px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px; border-right: 2px solid var(--line-dim); }
.split-side p { margin: 0; }
.small { font-size: 13px; }
.split-main { flex: 2 1 460px; min-width: 0; }
.table-scroll { overflow-x: auto; }

.mods { width: 100%; border-collapse: collapse; font-size: 14px; }
.mods th { text-align: left; font: 400 20px/1.3 var(--pixel); letter-spacing: 0.06em; color: var(--lime); background: var(--bg); padding: 6px 20px; border-bottom: 2px solid var(--line); }
.mods td { padding: 12px 20px; border-bottom: 1px dashed var(--line); }
.mods tr:last-child td { border-bottom: 0; }

/* ---------- gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; border: 2px solid var(--line); background: var(--bg); box-shadow: 4px 4px 0 var(--shadow); }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery a:hover img, .gallery a:focus-visible img { opacity: 0.85; }
.gallery figcaption { padding: 2px 10px; border-top: 2px solid var(--line); color: var(--muted); font: 20px/1.4 var(--pixel); }

/* ---------- heatmap ---------- */
.map-body { display: flex; flex-direction: column; gap: 20px; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.map-head p { margin: 0; max-width: 640px; }
.segmented { display: flex; gap: 8px; }
.segmented[hidden] { display: none; }
.map-frame { border: 2px solid var(--line-dim); background: var(--bg); padding: 12px; overflow-x: auto; }
.heatmap { min-width: 560px; }
.heatmap svg { display: block; width: 100%; height: auto; }
.heatmap circle { transition: r 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .heatmap circle { transition: none; } }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--faint); font: 20px/1.3 var(--pixel); }
.legend { display: flex; align-items: center; gap: 6px; }
.legend span:first-child { margin-right: 6px; }
.legend span:last-child { margin-left: 6px; }
.legend i { display: block; border-radius: 50%; }
.legend .d1 { width: 4px; height: 4px; background: #1A2550; }
.legend .d2 { width: 7px; height: 7px; background: var(--blue-deep); }
.legend .d3 { width: 10px; height: 10px; background: var(--blue); }
.legend .d4 { width: 13px; height: 13px; background: var(--lime); }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font: 400 28px/1.2 var(--pixel); margin: 28px 0 8px; color: var(--lime); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .lede { color: var(--text); }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rules li { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; color: var(--muted); }
.rules b { font: 400 22px/1.2 var(--pixel); color: var(--lime); }

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .address-bar code { font-size: 17px; }
  .split-side { border-right: 0; border-bottom: 2px solid var(--line-dim); }
  .osd { font-size: 20px; }
  .panel-title { font-size: 22px; white-space: normal; }
}
