/* Alien Twilight â€” site styles. Dark only, by design. */
:root {
  --bg: #060609;
  --panel: #0c0c11;
  --panel-2: #111118;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #dcdce4;
  --dim: #8b8b9a;
  --faint: #85859a;   /* 5:1 on the page background, readable for hints, times and counts */
  --mag: #d63bff;
  --mag-soft: #b22de0;
  --mag-glow: rgba(214, 59, 255, 0.45);
  --green: #6be38a;
  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 28px);
  --max: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Rebuilt from the Prometheus site's layers (no files copied):
     200px grid, 2px near-transparent white lines, a small dot on every
     intersection, over a slate base with a soft centred vignette. Dots are
     magenta here instead of cyan. */
  background-color: #0b0b11;
  background-image:
    radial-gradient(circle at 100px 100px, rgba(226,92,255,.42) 0 2px, transparent 2.6px),
    linear-gradient(rgba(255,255,255,.035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.035) 2px, transparent 2px),
    radial-gradient(ellipse 62% 58% at 50% 42%, rgba(38,36,54,.9), rgba(22,21,32,.6) 55%, transparent 85%);
  background-size: 200px 200px, 200px 200px, 200px 200px, 100% 100%;
  background-position: calc(50% - 100px) -99px, 50% -1px, calc(50% - 1px) 0, 0 0;
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 0.8em; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.dim { color: var(--dim); }
.small { font-size: 10px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--mag); color: #000; padding: 8px 12px; }
:focus-visible { outline: 1px solid var(--mag); outline-offset: 3px; }
.arrow { width: 14px; height: 10px; flex: none; transition: transform .2s; }
a:hover > .arrow, button:hover > .arrow { transform: translateX(3px); }

/* scanline texture over everything, subtle */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}

/* ---------------------------------------------------------- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter); height: 72px;
  background: rgba(6, 6, 9, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; text-transform: uppercase; display: flex; flex-direction: column; line-height: 1.05; }
.brand-top { font-family: var(--display); letter-spacing: 0.62em; font-size: 17px; color: #fff; }
.brand-bot { font-family: var(--display); letter-spacing: 0.5em; font-size: 13px; color: var(--mag); text-shadow: 0 0 12px var(--mag-glow); }
.site-nav { display: flex; gap: 4px; margin-left: 24px; height: 100%; }
.site-nav a {
  display: flex; align-items: center; padding: 0 18px; height: 100%;
  text-decoration: none; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); position: relative; transition: color .2s;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; background: linear-gradient(to top, rgba(214,59,255,.22), transparent 70%); }
.site-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--mag); box-shadow: 0 0 12px var(--mag); }
.corp { display: flex; align-items: center; gap: 12px; margin-left: auto; color: #c9c9d2; }
.corp-logo { width: 64px; height: 22px; }
.corp-text { display: flex; flex-direction: column; font-family: var(--mono); text-transform: uppercase; }
.corp-text strong { font-family: var(--display); font-weight: 400; letter-spacing: .18em; font-size: 12px; }
.corp-text span { font-size: 8.5px; letter-spacing: .2em; color: var(--dim); }
.nav-toggle, .nav-burger { display: none; }

/* ---------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 22px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.35);
  color: #fff; text-decoration: none; cursor: pointer;
  font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover { border-color: #fff; background: rgba(255,255,255,.05); }
.btn-primary { border-color: var(--mag); background: rgba(214,59,255,.12); box-shadow: 0 0 18px rgba(214,59,255,.25), inset 0 0 12px rgba(214,59,255,.12); }
.btn-primary:hover { border-color: #f07bff; background: rgba(214,59,255,.24); box-shadow: 0 0 26px var(--mag-glow); }
.btn-sm { padding: 10px 18px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--mag); text-decoration: none; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; }

/* ---------------------------------------------------------- hero ------ */
.hero {
  position: relative; min-height: min(720px, 92vh); overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  border-bottom: 1px solid var(--line); background: #000;
}
.hero-art { position: absolute; inset: 0; }

/* space backdrop: page 10 mirrored so the planet sits at the right edge */
.hero-space {
  position: absolute; top: -4%; bottom: -30%; right: -6%; width: 64%;
  background-size: cover; background-position: center top;
  filter: saturate(.8) brightness(.72) hue-rotate(-12deg);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.06) translate(-1.5%, -1%); } }
.hero-stars {
  position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #cfd6ff, transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent), radial-gradient(1px 1px at 56% 88%, #fff, transparent),
    radial-gradient(1px 1px at 8% 52%, #e9d2ff, transparent), radial-gradient(1px 1px at 35% 38%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 92%, #fff, transparent), radial-gradient(1px 1px at 48% 58%, #cfd6ff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }

.hero-figure { position: absolute; z-index: 2; right: 15%; top: -2%; height: 112%; aspect-ratio: 952 / 1196; }
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten;
  filter: contrast(1.15) brightness(1.02) drop-shadow(0 0 28px rgba(214,59,255,.28));
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 46%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 60% at 50% 46%, #000 55%, transparent 100%);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.035) translateY(-0.6%); } }
/* horn / magic glow over the image */
.hero-figure::after {
  content: ""; position: absolute; left: 47%; top: 27%; width: 18%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,120,255,.55), rgba(214,59,255,.18) 45%, transparent 70%);
  mix-blend-mode: screen; animation: magic 3.2s ease-in-out infinite;
}
@keyframes magic { 50% { opacity: .35; transform: scale(.82); } }

/* floating dust in the beam */
.hero-dust { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-dust i {
  position: absolute; bottom: -10px; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px #fff; opacity: 0; animation: rise 14s linear infinite;
}
.hero-dust i:nth-child(1)  { left: 46%; animation-delay: 0s; }
.hero-dust i:nth-child(2)  { left: 51%; animation-delay: 2.1s; animation-duration: 17s; }
.hero-dust i:nth-child(3)  { left: 55%; animation-delay: 4.3s; }
.hero-dust i:nth-child(4)  { left: 49%; animation-delay: 6.2s; animation-duration: 12s; }
.hero-dust i:nth-child(5)  { left: 58%; animation-delay: 1.4s; animation-duration: 19s; }
.hero-dust i:nth-child(6)  { left: 43%; animation-delay: 8s; }
.hero-dust i:nth-child(7)  { left: 53%; animation-delay: 9.6s; animation-duration: 15s; }
.hero-dust i:nth-child(8)  { left: 61%; animation-delay: 3.3s; animation-duration: 21s; background: #f0a8ff; box-shadow: 0 0 6px var(--mag); }
.hero-dust i:nth-child(9)  { left: 47%; animation-delay: 11s; animation-duration: 13s; }
.hero-dust i:nth-child(10) { left: 56%; animation-delay: 5.1s; background: #f0a8ff; box-shadow: 0 0 6px var(--mag); }
.hero-dust i:nth-child(11) { left: 50%; animation-delay: 12.5s; animation-duration: 18s; }
.hero-dust i:nth-child(12) { left: 59%; animation-delay: 7.4s; animation-duration: 16s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .8; }
  50% { transform: translate(14px, -55vh); }
  90% { opacity: .5; }
  100% { transform: translate(-8px, -105vh); opacity: 0; }
}

/* the crew: members drifting in the open space between the copy and the figure */
.hero-crew { position: absolute; z-index: 7; top: 8%; bottom: 14%; left: max(620px, 32%); right: 38%; pointer-events: none; }
.crew-pod {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  pointer-events: auto; text-decoration: none; opacity: 0;
  animation: crew-in 1.6s ease-out forwards, crew-float var(--d) ease-in-out var(--dl) infinite;
}
.pod-body {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2a1236, #0b0b12 70%); border: 1.5px solid rgba(214,59,255,.7);
  box-shadow: 0 0 14px rgba(214,59,255,.35), inset 0 0 10px rgba(0,0,0,.8);
}
.pod-body img { width: 100%; height: 100%; object-fit: cover; }
.pod-body::after { /* helmet glass */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.38), transparent 34%), radial-gradient(circle at 70% 80%, rgba(214,59,255,.18), transparent 50%);
}
.pod-initial { font: 400 calc(var(--s) * .42) var(--display); color: var(--mag); }
.crew-pod::before { /* slow scanning ring */
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(214,59,255,.35);
  animation: crew-ring 18s linear infinite;
}
.pod-name {
  position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); white-space: nowrap;
  padding: 2px 7px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(6,6,9,.85); border: 1px solid var(--line-strong); opacity: 0; transition: opacity .25s;
}
.crew-pod.depth-0 .pod-name { opacity: .7; }
.crew-pod:hover .pod-name, .crew-pod.is-you .pod-name { opacity: 1; }
.crew-pod:hover .pod-body { border-color: #f0a8ff; box-shadow: 0 0 22px rgba(214,59,255,.7); }
.crew-pod.is-you .pod-body { border-color: var(--green); box-shadow: 0 0 16px rgba(107,227,138,.45); }
.crew-pod.is-you::before { border-color: rgba(107,227,138,.45); }
.crew-pod.depth-1 { --fade: .88; }
.crew-pod.depth-2 { --fade: .66; filter: saturate(.75); }
.crew-pod.depth-2::before { display: none; }
.crew-pod:hover { filter: none; z-index: 2; }
@keyframes crew-in { to { opacity: var(--fade, 1); } }
@keyframes crew-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(var(--dx), calc(var(--dy) * -1)) rotate(var(--r)); }
  50% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * -.3)) rotate(calc(var(--r) * -.5)); }
  75% { transform: translate(calc(var(--dx) * -.7), var(--dy)) rotate(calc(var(--r) * .6)); }
}
@keyframes crew-ring { to { transform: rotate(360deg); } }
@media (max-width: 1199px) { .hero-crew { display: none; } }
@media (prefers-reduced-motion: reduce) { .crew-pod { opacity: var(--fade, 1); } }

/* overlays */
.hero::before { /* left fade so copy stays legible, plus vignette */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 28%, rgba(0,0,0,.15) 52%, transparent 66%),
              radial-gradient(ellipse 80% 90% at 60% 45%, transparent 55%, rgba(0,0,0,.75)),
              linear-gradient(0deg, var(--bg), transparent 22%);
}
.hero-grain {
  position: absolute; inset: -50%; z-index: 6; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } }
.hero-sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 6; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(214,59,255,.06) 50%, transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { from { transform: translateY(-120px); } to { transform: translateY(820px); } }
.hero-frame i { position: absolute; z-index: 7; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.35); }
.hero-frame i:nth-child(1) { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hero-frame i:nth-child(2) { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hero-frame i:nth-child(3) { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hero-frame i:nth-child(4) { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* copy */
.hero-copy { position: relative; z-index: 8; padding: 32px var(--gutter) 80px calc(var(--gutter) + 18px); max-width: 600px; }
.eyebrow { color: #b9b9c6; line-height: 1.9; margin-bottom: 32px; }
.hero-title { text-transform: uppercase; display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
.hero-title .t1 {
  font-family: var(--display); font-size: clamp(46px, 6.4vw, 84px); letter-spacing: .42em; color: #fff; line-height: 1.05;
  text-shadow: 0 0 30px rgba(255,255,255,.25), 0 0 2px #fff;
}
.hero-title .t2 {
  position: relative; font-family: var(--display); font-size: clamp(28px, 4.1vw, 54px); letter-spacing: .4em; line-height: 1.15;
  color: var(--mag); text-shadow: 0 0 22px var(--mag-glow), 0 0 46px rgba(214,59,255,.35);
}
/* occasional signal glitch on TWILIGHT */
.hero-title .t2::before, .hero-title .t2::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.hero-title .t2::before { color: #4df0ff; animation: glitch-a 6.5s 3s infinite; }
.hero-title .t2::after  { color: #ff3d7f; animation: glitch-b 6.5s 3s infinite; }
@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  92% { opacity: .85; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); }
  94% { opacity: .85; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  96% { opacity: .6; transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
}
@keyframes glitch-b {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  92% { opacity: .8; transform: translate(4px, -1px); clip-path: inset(50% 0 20% 0); }
  95% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(5% 0 70% 0); }
}
.hero-title .t3 {
  display: flex; align-items: center; gap: 18px; margin-top: 14px; width: 100%; max-width: 470px;
  font: 400 13px var(--mono); letter-spacing: .5em; text-transform: uppercase; color: #ddd;
}
.hero-title .t3::before, .hero-title .t3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #888, transparent); }
.case-file { margin: 0 0 30px; padding-left: 14px; border-left: 1px solid var(--mag); color: var(--dim); font-size: 10px; line-height: 1.9; }
.case-file div { display: flex; gap: 6px; }
.case-file dt, .case-file dd { margin: 0; }
.case-file .threat { color: #ff7a9c; animation: blink 1.6s steps(1) infinite; }
.synopsis { max-width: 500px; font: 13.5px/1.7 var(--sans); color: #b9b9c6; }
.synopsis p { margin: 0 0 .75em; }
.synopsis p:last-child { margin-bottom: 0; }
.synopsis strong { color: #fff; font-weight: 500; }
.synopsis .threat { animation: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-whinny { color: #a9b6ff; letter-spacing: .26em; font-size: 12px; margin: 0; }
.hero-status { position: absolute; z-index: 8; top: 26px; right: calc(var(--gutter) + 18px); display: grid; gap: 4px; text-align: left; font-size: 9.5px; color: #b8b8c4; }
.hero-status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); margin-left: 8px; animation: blink 2.4s infinite; }
.hero-status .slash { font-style: normal; margin-left: 8px; }
@keyframes blink { 50% { opacity: .3; } }

/* key-art title logo */
.hero-logo { position: relative; width: clamp(280px, 40vw, 580px); margin: 0 0 34px; }
@media (max-width: 560px) { .hero-logo { width: 100%; } }
.hero-logo img { width: 100%; height: auto; animation: arc-glow 5s ease-in-out infinite; }
@keyframes arc-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(110,240,90,.25)); }
  50% { filter: drop-shadow(0 0 22px rgba(110,240,90,.5)) brightness(1.08); }
}
/* occasional signal glitch: two tinted copies of the logo slip sideways */
.hero-logo::before, .hero-logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: var(--logo) center / 100% 100% no-repeat; mix-blend-mode: screen;
}
.hero-logo::before { filter: hue-rotate(160deg) saturate(3); animation: glitch-a 7s 3.2s infinite; }
.hero-logo::after  { filter: hue-rotate(-90deg) saturate(3); animation: glitch-b 7s 3.2s infinite; }
.hero-logo.boot { animation-name: boot-logo; animation-duration: 1.6s; }
@keyframes boot-logo {
  0% { opacity: 0; filter: blur(10px) brightness(2); transform: scale(1.04); }
  40% { opacity: .9; }
  55% { opacity: .3; }
  70% { opacity: 1; filter: blur(0) brightness(1.2); }
  100% { opacity: 1; filter: none; transform: none; }
}

/* boot-up entrance */
.boot { opacity: 0; animation: boot .9s cubic-bezier(.2,.7,.2,1) forwards; }
.b1 { animation-delay: .1s; } .b2 { animation-delay: .35s; } .b3 { animation-delay: .6s; } .b4 { animation-delay: .85s; }
.b5 { animation-delay: 1.05s; } .b6 { animation-delay: 1.25s; } .b7 { animation-delay: 1.45s; } .b8 { animation-delay: 1.8s; }
.hero-title .t1.boot { animation-name: boot-wide; animation-duration: 1.4s; }
@keyframes boot { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes boot-wide { from { opacity: 0; letter-spacing: .9em; filter: blur(8px); } to { opacity: 1; letter-spacing: .42em; filter: none; } }

.section-label, .section-head h2 {
  position: relative; padding-left: 18px; margin-bottom: 22px;
  font-family: var(--display); font-size: 17px; letter-spacing: .38em; text-transform: uppercase; color: #fff;
}
.section-label::before, .section-head h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; background: var(--mag); box-shadow: 0 0 10px var(--mag); }

/* ---------------------------------------------------------- blocks ---- */
.block { padding: 40px var(--gutter); border-bottom: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 4px; }
.tagline { margin: 0 0 0 18px; font: 10px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.view-all { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; padding-top: 4px; }
.view-all:hover { color: var(--mag); }

/* series */
.series-grid { display: grid; grid-template-columns: 1fr 1fr 0.62fr; gap: 14px; }
.series-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 18px;
  padding: 16px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--panel-2), var(--panel));
  min-height: 330px;
}
.series-num { position: absolute; top: 12px; left: 14px; z-index: 2; font-size: 16px; color: #ccc; }
.series-cover { position: relative; overflow: hidden; background: #000; min-height: 280px; }
.series-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s; }
.series-card:hover .series-cover img { transform: scale(1.04); }
.cover-title { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; display: flex; flex-direction: column; text-shadow: 0 2px 10px #000; }
.cover-title span { text-transform: uppercase; font-family: var(--display); letter-spacing: .5em; font-size: 20px; color: #fff; padding-left: .5em; }
.cover-title em { font-style: italic; font-family: Georgia, serif; font-size: 15px; color: var(--mag); }
.status-development .cover-title em { color: #fff; }
.cover-classified { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--dim);
  background: radial-gradient(circle at 50% 35%, rgba(214,59,255,.35), transparent 55%), radial-gradient(circle at 50% 70%, rgba(255,140,60,.25), transparent 50%), #07070b; }
.cc-glow { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; top: 18%; background: radial-gradient(circle, rgba(255,200,120,.35), transparent 70%); filter: blur(6px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; transform: scale(.92); } }
.series-info { display: flex; flex-direction: column; padding-top: 6px; }
.series-info h3 { font: 500 14px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 10px; line-height: 1.5; }
.series-info h3 span { display: block; }
.status { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 10px; }
.badge-complete { color: var(--green); }
.badge-development { color: var(--mag); }
.blurb { color: #bdbdc8; font-size: 13.5px; }
.btn-stack { display: grid; gap: 8px; margin-top: auto; }
.btn-stack .btn { padding: 10px 12px; }
.redacted { display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 60%), var(--panel); }
.redacted-body { display: grid; justify-items: center; gap: 4px; }
.redacted-q { font: 300 72px var(--sans); color: rgba(255,255,255,.14); filter: blur(1px); line-height: 1; margin-bottom: 18px; }
.redacted .access { margin-top: 22px; }
.redacted-logo { width: 54px; height: 18px; color: var(--faint); }

/* archives */
.archives-block { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: stretch; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.terminal {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px;
  border: 1px solid var(--line-strong); background: linear-gradient(160deg, #13131a, #08080c);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.terminal p { line-height: 2; margin: 0; }
.terminal-logo { width: 90px; height: 30px; color: #6a6a74; }

/* updates */
.updates-block { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.update-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.subscribe { border: 1px solid var(--line-strong); background: var(--panel); padding: 18px; align-self: start; }
.subscribe h3 { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.subscribe > p { font-size: 12.5px; color: var(--dim); }
.btn-discord { width: 100%; margin-top: 6px; border-color: #5865f2; background: rgba(88,101,242,.16); box-shadow: 0 0 18px rgba(88,101,242,.25); }
.btn-discord:hover { border-color: #8a94ff; background: rgba(88,101,242,.3); box-shadow: 0 0 26px rgba(88,101,242,.45); }
.btn-discord[aria-disabled="true"] { opacity: .5; box-shadow: none; cursor: default; }
.discord-icon { width: 18px; height: 18px; flex: none; }
.sub-row { display: flex; margin: 12px 0 14px; }
.sub-row input { flex: 1; min-width: 0; background: #050507; border: 1px solid var(--line-strong); color: #fff; padding: 9px 10px; font: 12px var(--sans); }
.sub-row input:focus { outline: none; border-color: var(--mag); }
.sub-row button { width: 40px; border: 0; background: #e6e6ea; color: #000; cursor: pointer; display: grid; place-items: center; }
.sub-row button:hover { background: var(--mag); }
.check { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #c9c9d2; margin-top: 6px; cursor: pointer; }
.check input { appearance: none; width: 13px; height: 13px; border: 1px solid var(--line-strong); background: #000; margin: 0; display: grid; place-items: center; }
.check input:checked::after { content: ""; width: 7px; height: 7px; background: var(--mag); box-shadow: 0 0 6px var(--mag); }

.flash-wrap { max-width: var(--max); margin: 16px auto 0; padding: 0 var(--gutter); }
.flash { padding: 9px 12px; border: 1px solid; font: 12px var(--mono); }
.flash-ok { border-color: rgba(107,227,138,.5); color: var(--green); background: rgba(107,227,138,.06); }
.flash-error { border-color: rgba(255,90,90,.5); color: #ff8a8a; background: rgba(255,90,90,.06); }

/* ------------------------------------------------ panel cards ---------- */
/* Image on top, caption bar below, thin glowing rule along the top edge.  */
.pcard {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-top: 1px solid rgba(214,59,255,.55);
  transition: border-color .25s, box-shadow .25s;
}
.pcard::before {
  content: ""; position: absolute; z-index: 2; top: -1px; left: -1px; width: 72px; height: 2px;
  background: #f2b4ff; box-shadow: 0 0 10px var(--mag), 0 0 2px #fff; transition: width .35s;
}
.pcard:hover { border-color: rgba(214,59,255,.45); box-shadow: 0 0 26px rgba(214,59,255,.14); }
.pcard:hover::before { width: calc(100% + 2px); }
.pcard-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.pcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s, filter .3s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto;
  padding: 12px 14px 13px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #13131a, #0a0a0e);
}
.pcard-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcard-text strong { font: 600 12.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.pcard-text small { font: 9.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 12px;
  background: linear-gradient(180deg, #e37bff, #b22de0); color: #160020;
  font: 600 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 65%, calc(100% - 7px) 100%, 0 100%);
  transition: filter .2s;
}
.pill::after { content: "\25B8"; font-size: 10px; }
.pcard:hover .pill { filter: brightness(1.18); }

/* archive tiles */
.archive-tile .pcard-img { aspect-ratio: 16 / 10; }
.archive-tile.sealed .pcard-img img { filter: grayscale(.35) brightness(.9); }
.archive-tile.sealed:hover .pcard-img img { filter: grayscale(.1) brightness(1); }

/* update cards */
.update-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.update-card .pcard-text time { font: 9px var(--mono); letter-spacing: .16em; color: var(--mag); }
.update-card .pcard-text small {
  font: 12px/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.update-card .pcard-bar { align-items: flex-end; }

/* gallery */
.gallery-grid .pcard { break-inside: avoid; margin-bottom: 14px; }
.gallery-grid .pcard-img { aspect-ratio: auto; }
.gallery-grid .pcard-img img { height: auto; }
.gallery-grid .tall .pcard-img { aspect-ratio: 3 / 4; }
.gallery-grid .tall .pcard-img img { height: 100%; object-position: top; }

/* same top rule on the other framed panels */
.series-card, .subscribe, .console, .dossier { border-top-color: rgba(214,59,255,.55); }

/* ------------------------------------------------ dot-grid button ------ */
.dots-btn {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(4px); transition: background .25s, border-color .25s;
}
.dots-btn svg { width: 18px; height: 18px; fill: #d8d8e2; transition: fill .25s; }
.dots-btn .pulse { animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: .25; } }
.pcard:hover .dots-btn { background: rgba(214,59,255,.85); border-color: #f0a8ff; }
.pcard:hover .dots-btn svg { fill: #1a0024; }

/* ------------------------------------------------ accounts ------------- */
.crew-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); text-decoration: none; white-space: nowrap;
  font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #e6e6ee;
  max-width: 220px; flex-shrink: 0;
}
.crew-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crew-link img, .crew-link .crew-dot, .crew-link .count-pill { flex: none; }
@media (max-width: 420px) { .crew-link { max-width: 150px; padding: 7px 9px; gap: 7px; } }
.crew-link:hover { border-color: var(--mag); color: #fff; }
.crew-link img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.crew-dot { width: 7px; height: 7px; background: var(--mag); box-shadow: 0 0 8px var(--mag); }
.crew-link + .corp { margin-left: 22px; }
.auth-wrap { display: grid; place-items: center; padding: 64px var(--gutter) 80px; }
.auth-panel {
  width: min(440px, 100%); padding: 30px 28px; border: 1px solid var(--line-strong); border-top-color: rgba(214,59,255,.55);
  background: linear-gradient(180deg, rgba(19,19,26,.96), rgba(10,10,14,.96)); position: relative;
}
.auth-panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 72px; height: 2px; background: #f2b4ff; box-shadow: 0 0 10px var(--mag); }
.auth-kicker { font-size: 9.5px; margin-bottom: 6px; }
.auth-title { font-family: var(--display); font-size: 22px; letter-spacing: .3em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.auth-panel .form { max-width: none; }
.auth-panel .form .btn-primary { margin-top: 4px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; font-size: 9.5px; color: var(--dim); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { margin: 20px 0 0; font-size: 13.5px; color: var(--dim); }
.auth-switch a { color: var(--mag); }
.hint { text-transform: none; letter-spacing: 0; color: var(--faint); }
/* story chapters */
.badge-ongoing { color: #ffb44a; }
.badge-hiatus { color: var(--dim); }
.chapter { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 10px; }
.chapter-head { margin-bottom: 34px; }
.chapter-head .crumbs { margin-bottom: 18px; }
.chapter-kicker { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mag); margin: 0 0 10px; }
.chapter-title { font-family: var(--display); font-size: clamp(22px, 4vw, 34px); letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.chapter-meta { font-size: 11px; letter-spacing: .1em; color: var(--dim); margin: 0 0 24px; }
.chapter-meta a { color: var(--dim); }
.chapter-meta a:hover { color: var(--mag); }
.chapter-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chapter-nav.bottom { margin-top: 40px; }
.chapter-nav .jump { flex: 1; justify-content: center; min-width: 0; }
.chapter-nav .jump select { max-width: 100%; min-width: 0; }
.chapter-nav [aria-disabled="true"] { opacity: .3; pointer-events: none; }
.chapter-body { font: 19px/1.8 "IBM Plex Serif", Georgia, serif; color: #dcdce4; }
.chapter-body p { margin: 0 0 1.15em; }
.chapter-body em { font-style: italic; }
.chapter-body strong { color: #fff; font-weight: 600; }
.scene-break { border: 0; height: 24px; margin: 2em 0; text-align: center; overflow: visible; }
.scene-break::before { content: "\25C6  \25C6  \25C6"; font-size: 11px; letter-spacing: .5em; color: var(--mag); text-shadow: 0 0 10px rgba(214,59,255,.6); }
.ch-figure { margin: 2em -24px; }
.ch-figure img { width: 100%; height: auto; border: 1px solid var(--line-strong); display: block; }
.ch-figure figcaption { font: 11px var(--mono); letter-spacing: .08em; color: var(--dim); text-align: center; margin-top: 8px; }
.ch-log { margin: 1.4em 0; padding: 14px 18px; border-left: 2px solid var(--mag); background: rgba(214,59,255,.06); font: 15px/1.7 var(--mono); color: #d6c9e0; }
.ch-log p { margin: 0 0 .5em; }
.ch-log p:last-child { margin: 0; }
.author-note { margin-top: 36px; padding: 18px 22px; border: 1px solid var(--line-strong); background: var(--panel); }
.author-note > .mono { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mag); margin: 0 0 8px; }
.author-note .chapter-body { font-size: 16px; }
.author-note .chapter-body p:last-child { margin: 0; }
.chapter .the-end { padding-top: 34px; }
.end-cta { max-width: 340px; margin: 16px auto 0; text-align: left; }
.chapter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 6px; color: #ddd; }
.chapter-list a:hover { background: rgba(214,59,255,.06); color: #fff; }
.cl-num { color: var(--mag); font-size: 13px; }
.cl-title { font-weight: 500; }
.cl-title .badge { font-style: normal; font-size: 10px; margin-left: 6px; }
.cl-meta { font-size: 10.5px; color: var(--dim); letter-spacing: .06em; }
@media (max-width: 640px) {
  .chapter-body { font-size: 17.5px; }
  .ch-figure { margin: 1.6em 0; }
  .chapter-list a { grid-template-columns: 36px minmax(0, 1fr); }
  .cl-meta { grid-column: 2; }
  .chapter-nav .cn-label { display: none; }
}
.resume { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mag); margin: 22px 0 0; }
.reading-list li { gap: 12px; }
.feed-link { display: inline-flex; align-items: center; gap: 6px; }
.feed-link svg { width: 12px; height: 12px; fill: currentColor; }
/* admin chapter editor */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.editor-grid .form { max-width: none; }
.editor-grid textarea.ch-text { min-height: 60vh; font: 16px/1.7 "IBM Plex Serif", Georgia, serif; }
.editor-help { font-size: 13px; color: var(--dim); }
.editor-help h3 { font: 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 8px; }
.editor-help code { font-size: 12px; color: #e7c6f5; background: #0a0a0f; padding: 1px 4px; }
.editor-help ul { padding-left: 18px; margin: 0 0 18px; }
.editor-help li { margin: 4px 0; }
.snippets { display: grid; gap: 8px; }
.snippets img { width: 100%; height: 70px; object-fit: cover; border: 1px solid var(--line); }
.snippets input { width: 100%; font: 10.5px var(--mono); background: #0a0a0f; color: var(--dim); border: 1px solid var(--line); padding: 5px 6px; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }
/* admin media library */
.media-upload { max-width: 640px; }
.media-upload input[type=file] { padding: 10px; border: 1px dashed var(--line-strong); background: #0a0a0f; color: var(--dim); width: 100%; }
.media-upload input[type=file]::file-selector-button { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--panel); color: #fff; border: 1px solid var(--mag); padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.media-card { border: 1px solid var(--line-strong); background: var(--panel); padding: 10px; display: grid; gap: 10px; align-content: start; }
.media-thumb { display: block; aspect-ratio: 4 / 3; background: #050507; }
.media-thumb img { width: 100%; height: 100%; object-fit: contain; }
.media-meta { display: grid; gap: 3px; font-size: 11px; word-break: break-all; }
.media-meta strong { color: #fff; font-weight: 500; }
.media-meta a { color: var(--mag); }
.media-url { display: grid; gap: 4px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.media-url input { font: 11px var(--mono); padding: 6px 8px; background: #0a0a0f; color: var(--dim); border: 1px solid var(--line); width: 100%; }
.media-alt { max-width: none; gap: 8px; }
/* legal pages */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--display); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: #fff; margin: 34px 0 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--mag); }
.legal .updated { color: var(--dim); font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.foot-legal a { color: var(--dim); }
.foot-legal a:hover { color: var(--mag); }
.form label.check { display: flex; align-items: flex-start; text-transform: none; letter-spacing: 0; font: 13px/1.5 var(--sans); }
.form label.check input { flex: none; margin-top: 4px; }
.signup-terms { color: var(--dim); }
.signup-terms a, .auth-legal a { color: var(--mag); }
.auth-legal { font-size: 12px; color: var(--faint); margin: 12px 0 0; }
.oauth-buttons { display: grid; gap: 10px; }
.oauth-btn { justify-content: flex-start; gap: 14px; padding: 12px 16px; text-transform: none; letter-spacing: .04em; font: 500 13px var(--sans); }
.oauth-btn .discord-icon { width: 20px; height: 20px; flex: none; }
.oauth-discord { border-color: #5865f2; background: rgba(88,101,242,.16); }
.oauth-discord:hover { background: rgba(88,101,242,.3); border-color: #8a94ff; }
.oauth-btn.is-off { opacity: .35; pointer-events: none; }
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.account-id { display: grid; gap: 18px; justify-items: start; }
.avatar { width: 96px; height: 96px; border-radius: 0; object-fit: cover; border: 1px solid var(--line-strong); }
.avatar-blank { display: grid; place-items: center; font-size: 36px; color: var(--mag); background: #0a0a0f; }
.account-forms { display: grid; gap: 18px; }
.account-forms .dossier { max-width: none; }
.account-forms .section-label { font-size: 13px; margin-bottom: 14px; }
.linked { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.linked li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.linked li span { display: flex; flex-direction: column; }
.danger { border-color: rgba(255,90,90,.35); }
@media (max-width: 920px) {
  .crew-link { margin-left: auto; padding: 6px 10px; max-width: 150px; }
  .nav-burger { margin-left: 8px; }
  .account-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ comments ------------- */
.comment-jump { color: var(--mag); text-decoration: none; }
.comment-jump:hover { text-decoration: underline; }
.comments { max-width: 980px; margin: 0 auto; padding: 10px var(--gutter) 70px; }
.comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.comments-head .section-label { margin-bottom: 0; font-size: 15px; }
.comments-head .tagline { margin: 0; }
.comments .flash { margin: 0 0 14px; }
.comment-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.comment {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-left: 2px solid rgba(214,59,255,.45);
}
.comment:target { border-color: rgba(214,59,255,.6); box-shadow: 0 0 20px rgba(214,59,255,.15); }
/* threads: replies hang under the comment they answer, joined by a thread line */
.comment-thread { display: grid; gap: 10px; min-width: 0; }
.comment-list .comment-list { margin: 0; }
.comment-replies > .comment-list { margin-left: 19px; padding-left: 20px; border-left: 1px solid rgba(214,59,255,.28); }
.comment-replies > .comment-list > .comment-thread { position: relative; }
.comment-replies > .comment-list > .comment-thread::before { /* elbow from the thread line to the reply */
  content: ""; position: absolute; left: -21px; top: -10px; width: 18px; height: 34px;
  border-left: 1px solid rgba(214,59,255,.28); border-bottom: 1px solid rgba(214,59,255,.28); border-bottom-left-radius: 12px;
}
.comment-replies.flat > .comment-list { margin-left: 0; padding-left: 0; border-left: 0; }
.comment-replies.flat > .comment-list > .comment-thread::before { display: none; }
.comment-replies > summary {
  list-style: none; cursor: pointer; width: max-content; margin: -2px 0 10px 19px; padding: 2px 0;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.comment-replies > summary::-webkit-details-marker { display: none; }
.comment-replies > summary::before { content: "\25BE"; margin-right: 8px; color: var(--mag); }
.comment-replies:not([open]) > summary::before { content: "\25B8"; }
.comment-replies > summary:hover { color: #fff; }
.comment-replies[open] .when-closed, .comment-replies:not([open]) .when-open { display: none; }
.comment-replies.flat > summary { margin-left: 0; }
.comment-replies .comment { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
.comment-replies .comment-avatar { width: 32px; height: 32px; }
.reply-form { margin-left: 19px; padding: 12px 14px 14px 20px; border-left: 1px solid var(--mag); background: rgba(214,59,255,.04); }
.reply-form textarea { min-height: 90px; }
.comment-time { color: inherit; text-decoration: none; }
.comment-time:hover { color: #fff; }
@media (max-width: 640px) {
  .comment-replies > .comment-list { margin-left: 8px; padding-left: 12px; }
  .comment-replies > .comment-list > .comment-thread::before { left: -13px; width: 10px; }
  .comment-replies > summary, .reply-form { margin-left: 8px; }
}
.comment-avatar { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line-strong); }
.comment-avatar.blank { display: grid; place-items: center; color: var(--mag); background: #08080c; font-size: 16px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 6px; font-size: 9.5px; color: var(--dim); }
.comment-meta strong { font-size: 11px; color: #fff; font-weight: 500; }
.comment-author { color: inherit; text-decoration: none; }
.comment-author:hover strong { color: var(--mag); }

/* ------------------------------------------------ crew ID badges -------- */
.id-card, .bm-corp { --id-accent: var(--mag); --id-tint: rgba(214,59,255,.10); }   /* hidden badges without colours yet */
.id-weyland  { --id-accent: #e8b64a; --id-tint: rgba(232,182,74,.10); }
.id-seegson  { --id-accent: #3fd0b6; --id-tint: rgba(63,208,182,.10); }
.id-valuntas { --id-accent: #ff4f6d; --id-tint: rgba(255,79,109,.10); }
.id-gash     { --id-accent: #2f62ff; --id-tint: rgba(47,98,255,.12); }   /* cobalt, from the Gash art */
.id-gash .id-emblem { width: 48px; height: 48px; margin: -6px 0; }
.id-gash .id-top { color: #fff; }   /* white reads better than black on cobalt */
.chip-gash   { color: #6b8dff; border-color: rgba(107,141,255,.55); }
.emblem-art  { display: block; flex: none; object-fit: contain; }
.badge-chip { display: inline-block; margin-left: -6px; padding: 1px 5px; border: 1px solid; font: 500 9px/1.4 var(--mono);
  letter-spacing: .08em; vertical-align: middle; }
h1 .badge-chip { margin-left: 8px; font-size: 13px; padding: 2px 8px; }
.chip-weyland  { color: #e8b64a; border-color: rgba(232,182,74,.5); }
.chip-seegson  { color: #3fd0b6; border-color: rgba(63,208,182,.5); }
.chip-valuntas { color: #ff4f6d; border-color: rgba(255,79,109,.5); }

.id-card { margin: 0; width: 100%; max-width: 340px; border: 1px solid var(--id-accent); color: var(--text);
  background: linear-gradient(160deg, var(--id-tint), transparent 55%),
              repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px), #0b0b10;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 18px 40px rgba(0,0,0,.45); }
.id-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--id-accent); color: #0a0a0d; }
.id-emblem { width: 40px; height: 40px; flex: none; }
.id-weyland .id-emblem { width: 58px; height: 22px; }
.id-corp { display: flex; flex-direction: column; min-width: 0; }
.id-corp strong { font: 400 11px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.id-corp span { font: 500 9px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.id-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 14px 12px; }
.id-photo { width: 96px; height: 120px; border: 1px solid var(--id-accent); background: #050507; display: grid; place-items: center; overflow: hidden; }
.id-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.id-photo span { font-size: 40px; color: var(--id-accent); }
.id-fields { min-width: 0; }
.id-name { margin: 0; font: 600 17px/1.2 var(--sans); color: #fff; overflow-wrap: anywhere; }
.id-title { margin: 3px 0 10px; font: 500 11px/1.3 var(--mono); color: var(--id-accent); text-transform: uppercase; letter-spacing: .08em; overflow-wrap: anywhere; }
.id-fields dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 10px; }
.id-fields dt { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.id-fields dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.id-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px; border-top: 1px dashed rgba(255,255,255,.14); }
.id-barcode { flex: 1; height: 22px; fill: #e8e8ee; opacity: .85; }
.id-foot span { font-size: 10px; color: var(--dim); letter-spacing: .12em; }

.badge-maker .bm-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.bm-corps { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.bm-corps legend { padding: 0; margin-bottom: 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.form label.bm-corp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line);
  text-transform: none; letter-spacing: 0; font: 14px var(--sans); color: var(--text); cursor: pointer; }
.form label.bm-corp:hover { border-color: var(--line-strong); }
.form label.bm-corp:has(input:checked) { border-color: var(--id-accent, var(--mag)); background: var(--id-tint, rgba(214,59,255,.08)); }
.bm-corp input { margin: 0; flex: none; }
.bm-emblem { width: 28px; height: 28px; flex: none; color: var(--id-accent); }
.id-weyland .bm-emblem { width: 40px; height: 14px; }
.bm-corp span { display: flex; flex-direction: column; }

/* HACK: a terminal bar for hidden-badge codes */
.hack { margin-top: 22px; }
.hack-btn { display: inline-block; list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid rgba(107,227,138,.55);
  color: var(--green); font-size: 12px; letter-spacing: .3em; background: rgba(107,227,138,.05); user-select: none; }
.hack-btn::-webkit-details-marker { display: none; }
.hack-btn:hover, .hack-btn:focus-visible { background: rgba(107,227,138,.14); box-shadow: 0 0 14px rgba(107,227,138,.3); outline: none; }
.hack[open] .hack-btn { background: var(--green); color: #050507; }
.hack-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(107,227,138,.45);
  background: #030305 repeating-linear-gradient(0deg, rgba(107,227,138,.04) 0 1px, transparent 1px 3px); animation: hack-open .35s steps(6); }
.hack-prompt { color: var(--green); font-size: 13px; }
.hack-bar input { flex: 1; min-width: 0; padding: 6px 4px; border: 0; background: transparent; color: var(--green);
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; caret-color: var(--green); }
.hack-bar input::placeholder { color: rgba(107,227,138,.4); text-transform: none; letter-spacing: .04em; }
.hack-bar input:focus { outline: none; }
.hack-bar:focus-within { box-shadow: 0 0 16px rgba(107,227,138,.25); }
.hack-go { flex: none; color: var(--green); border-color: rgba(107,227,138,.55); letter-spacing: .14em; }
.hack-out { margin: 8px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hack-granted { color: var(--green); }
.hack-denied, .hack-locked { color: #ff4f6d; }
@keyframes hack-open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 480px) { .hack-bar { flex-wrap: wrap; } .hack-go { width: 100%; } }
.bm-corp small { color: var(--dim); font-size: 10px; letter-spacing: .1em; }

.picture-box { display: grid; gap: 12px; justify-items: start; width: 100%; }
.picture-form { display: grid; gap: 8px; width: 100%; margin: 0; }
.picture-form input[type=file] { width: 100%; max-width: 100%; font: 12px var(--sans); color: var(--dim); }
.picture-form input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 10px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.picture-form .hint { margin: 0; }
.picture-form .btn { justify-self: start; }
.picture-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.picture-actions form { margin: 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.profile-actions form { margin: 0; }
.crew-link.active { border-color: var(--mag); color: #fff; }
.profile-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-side, .profile-main { display: grid; gap: 18px; min-width: 0; }
.profile-side .dossier dl { margin: 0 0 6px; }
.profile-main .section-label, .badge-maker .section-label { font-size: 13px; margin-bottom: 14px; }
.id-none { display: grid; gap: 12px; justify-items: start; }
.profile-bio p { margin: 0 0 8px; overflow-wrap: anywhere; }
.profile-comments { list-style: none; margin: 0; padding: 0; display: grid; }
.profile-comments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-comments li:last-child { border-bottom: 0; }
.profile-comments p { margin: 0; }
.profile-comments a { color: var(--mag); text-decoration: none; }
.profile-comments a:hover { text-decoration: underline; }
.profile-comments time { margin-left: 10px; }
.pc-body { margin-top: 6px !important; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.pager { display: flex; justify-content: space-between; margin: 14px 0 0; }
.pager a { color: var(--mag); }
@media (max-width: 920px) {
  .profile-grid, .badge-maker .bm-grid { grid-template-columns: 1fr; }
}
.comment-body { font-size: 14.5px; color: #d0d0da; overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 .6em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; }
.comment-actions form { display: inline; }
.link-btn.muted { color: var(--faint); }
.link-btn.muted:hover { color: #ff8a8a; }
.comment-empty { margin: 0 0 22px; }
.comments .comment-form { max-width: none; }
.comment-form textarea { min-height: 110px; }
.comment-form .btn { justify-self: start; }
.comment-signin { padding: 16px 18px; border: 1px dashed var(--line-strong); color: var(--dim); }
.comment-signin p { margin: 0; }
.comment-signin a { color: var(--mag); }

.admin-link { color: #160020; background: linear-gradient(180deg, #e37bff, #b22de0); border-color: #e37bff; }
.admin-link:hover { filter: brightness(1.15); color: #160020; }
.admin-link + .crew-link { margin-left: 8px; }
.admin-bar { margin: 12px 0 0; }

/* ---------------------------------------------------------- footer ---- */
.site-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: start;
  padding: 36px var(--gutter) 30px; border-top: 1px solid var(--line); margin-top: 0;
}
.foot-title { text-transform: uppercase; font-family: var(--display); letter-spacing: .5em; font-size: 12px; color: #fff; }
.foot-tag { margin-top: 22px; }
.foot-mid { display: grid; justify-items: center; gap: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.foot-nav a { text-decoration: none; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #bbb; }
.foot-nav a:hover { color: var(--mag); }
.socials { display: flex; gap: 22px; }
.socials svg { width: 20px; height: 20px; fill: #ccc; }
.socials a:hover svg { fill: var(--mag); }
.foot-corp { display: grid; justify-items: end; gap: 14px; text-align: right; }
.foot-corp .corp { margin-left: 0; }

/* ---------------------------------------------------------- inner pages */
.page-head { padding: 48px var(--gutter) 28px; max-width: var(--max); margin: 0 auto; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 38px); letter-spacing: .3em; text-transform: uppercase; color: #fff; }
.page-head .tagline { margin: 8px 0 0; }
.crumbs { font: 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--mag); }
.prose { max-width: 680px; font-size: 16px; color: #c8c8d2; }
.prose p { margin-bottom: 1.1em; }
.two-col { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
.framed { border: 1px solid var(--line-strong); padding: 10px; background: var(--panel); }

.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.page-thumb { position: relative; display: block; border: 1px solid var(--line); background: #000; text-decoration: none; }
.page-thumb img { width: 100%; aspect-ratio: 952 / 1458; object-fit: cover; opacity: .82; transition: opacity .2s; }
.page-thumb:hover { border-color: var(--mag); }
.page-thumb:hover img { opacity: 1; }
.page-thumb span { position: absolute; left: 6px; bottom: 6px; font: 10px var(--mono); background: rgba(0,0,0,.75); padding: 2px 6px; }

/* reader */
.reader-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 980px; margin: 0 auto; padding: 14px var(--gutter);
}
.reader-bar .title { font: 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.reader-bar .title strong { color: #fff; font-weight: 500; }
.reader-nav { display: flex; gap: 8px; align-items: center; }
.reader-nav .btn { padding: 9px 14px; }
.reader-nav .btn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.jump { display: flex; gap: 6px; align-items: center; }
.jump select { background: #000; color: #fff; border: 1px solid var(--line-strong); padding: 8px; font: 11px var(--mono); }
.reader-page { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.reader-page { position: relative; }
.reader-page img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #000; }
.tap-zone { position: absolute; top: 0; bottom: 0; -webkit-tap-highlight-color: transparent; }
.tap-prev { left: var(--gutter); width: 33%; cursor: w-resize; }
.tap-next { right: var(--gutter); left: calc(var(--gutter) + 33%); cursor: e-resize; }
.tap-next:first-of-type { left: var(--gutter); }   /* page 1: the whole page goes forward */
html { scroll-padding-top: 80px; }   /* #anchors land below the sticky header */
.progress { height: 2px; background: var(--line); max-width: 980px; margin: 0 auto 0; }
.progress span { display: block; height: 100%; background: var(--mag); box-shadow: 0 0 8px var(--mag); }
.reader-foot { padding-bottom: 40px; }
.the-end { text-align: center; padding: 30px var(--gutter) 0; }

/* gallery */
.gallery-grid { columns: 3 280px; column-gap: 12px; }
.art-view { max-width: 1400px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.art-view img { margin: 0 auto; max-height: 85vh; width: auto; border: 1px solid var(--line); }
.art-view.tall img { max-height: none; max-width: 760px; width: 100%; }
.art-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.art-info { max-width: 760px; margin: 26px auto 0; padding: 20px 22px; border: 1px solid var(--line-strong); background: var(--panel); }
.art-info .prose { max-width: none; font-size: 15px; }
.art-info .prose p:last-child { margin-bottom: 0; }
.art-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 0; border-bottom: 0; }
.gallery-tabs a {
  display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; text-decoration: none;
  border: 1px solid var(--line-strong); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.gallery-tabs a em { font-style: normal; color: var(--faint); }
.gallery-tabs a span { color: var(--faint); }
.gallery-tabs a:hover { color: #fff; border-color: #fff; }
.gallery-tabs a.active { color: #fff; border-color: var(--mag); background: rgba(214,59,255,.12); box-shadow: 0 0 14px rgba(214,59,255,.2); }
.gallery-tabs a.active span { color: var(--mag); }
.gallery-block { padding-top: 24px; }
.gallery-group + .gallery-group { margin-top: 40px; }
.has-info { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 6px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; vertical-align: 1px; color: var(--mag); }

/* archives pages */
.entry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.entry-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line-strong); background: var(--panel); text-decoration: none; }
.entry-card:hover { border-color: var(--mag); }
.entry-card img { width: 96px; height: 96px; object-fit: cover; object-position: top; }
.entry-card h3 { font: 500 14px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 4px 0; }
.dossier { border: 1px solid var(--line-strong); background: var(--panel); padding: 20px; }
.dossier dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; }
.dossier dt { color: var(--dim); }
.dossier dd { margin: 0; color: #fff; }
.cat-section + .cat-section { margin-top: 36px; }

/* sealed archives */
.lock { width: 10px; height: 12px; flex: none; }
.seal {
  position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; gap: 6px; align-items: center;
  padding: 3px 8px; font-size: 9px; color: #ffb3b3; border: 1px solid rgba(255,120,120,.55); background: rgba(0,0,0,.65);
}
.seal.open { color: var(--green); border-color: rgba(107,227,138,.5); }
.terminal-block { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.console { border: 1px solid var(--line-strong); background: #050507; }
.console-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 10px; }
.console-head span:first-child { display: inline-flex; gap: 10px; align-items: center; }
.console-logo { width: 36px; height: 12px; color: var(--dim); }
.console-body { margin: 0; padding: 18px 16px 22px; font: 12.5px/1.75 var(--mono); color: #9fe3b2; white-space: pre-wrap; overflow-x: auto; }
.console-body .warn { color: #ff8a8a; }
.cursor { animation: blink 1.1s steps(1) infinite; }
.sealed-dir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sealed-visual { position: relative; border: 1px solid var(--line-strong); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.sealed-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.45) blur(1.5px); transform: scale(1.04); }
.sealed-visual::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,80,80,.05) 22px 44px); }
.sealed-stamp {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px; white-space: nowrap;
  font-size: 13px; color: #ff9a9a; border: 2px solid rgba(255,110,110,.8); background: rgba(0,0,0,.55);
  box-shadow: 0 0 20px rgba(255,80,80,.25);
}
.sealed-stamp .lock { width: 13px; height: 15px; }
.redacted-lines { display: grid; gap: 9px; margin: 4px 0 18px; }
.redacted-lines span { display: block; height: 11px; background: #000; border: 1px solid #1d1d24; }

/* error / admin forms */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.error-code { text-transform: uppercase; font-family: var(--display); font-size: 80px; letter-spacing: .2em; color: var(--mag); text-shadow: 0 0 30px var(--mag-glow); }
.form { display: grid; gap: 14px; max-width: 720px; }
.form label { display: grid; gap: 6px; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=date], .form textarea, .form select,
.mod-search input[type=search], .mod-row input[type=text] {
  background: #050507; border: 1px solid var(--line-strong); color: #fff; padding: 10px; font: 14px var(--sans); text-transform: none; letter-spacing: 0;
}
.form textarea { min-height: 180px; resize: vertical; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.inline { display: inline; }
.link-btn { background: none; border: 0; color: #ff8a8a; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.row-actions { display: flex; gap: 14px; }

/* replies, edits, notices */
.count-pill { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  font: 500 10px var(--mono); letter-spacing: 0; color: #fff; background: var(--mag); box-shadow: 0 0 10px rgba(214,59,255,.5); }
.link-btn.plain { color: var(--dim); text-decoration: none; }
.link-btn.plain:hover { color: #fff; text-decoration: underline; }
.comment-edited { color: var(--faint); font-style: italic; text-transform: lowercase; }
.comment-replyto { margin: -2px 0 6px; font-size: 10px; letter-spacing: .06em; }
.comment-replyto a { color: var(--mag); text-decoration: none; }
.comment-replyto a:hover { text-decoration: underline; }
.replying { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: baseline;
  padding: 9px 12px; border: 1px solid rgba(214,59,255,.45); background: rgba(214,59,255,.06); font-size: 11px; color: var(--dim); }
.replying a { color: var(--mag); }
.replying em { color: #d0d0da; font-style: normal; font: 13px var(--sans); text-transform: none; letter-spacing: 0; }
.profile-comments li.is-new { border-left: 2px solid var(--mag); padding-left: 12px; }
.new-tag { display: inline-block; padding: 1px 6px; margin-right: 4px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--mag); }

/* admin: backups and errors */
.admin-stack { display: grid; gap: 18px; }
.admin-stack .dossier p { margin: 0 0 12px; }
.admin-stack .dossier .table { margin-top: 14px; }
.error-item summary { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; cursor: pointer; }
.error-item summary strong { overflow-wrap: anywhere; }
.error-item.resolved { opacity: .6; }
.error-item[open] summary { margin-bottom: 12px; }
.error-trace { max-height: 360px; overflow: auto; margin: 0 0 14px; padding: 12px; background: #050507; border: 1px solid var(--line);
  font: 11.5px/1.55 var(--mono); color: #ff9a9a; white-space: pre; }

/* notifications: the bell and its panel (a <details>, so no JavaScript) */
.notes { margin-left: auto; position: relative; flex-shrink: 0; }
.site-header .notes ~ .crew-link { margin-left: 8px; }
.notes-bell { list-style: none; display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 9px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: #e6e6ee; }
.notes-bell::-webkit-details-marker { display: none; }
.notes-bell svg { width: 17px; height: 17px; fill: currentColor; }
.notes-bell:hover, .notes[open] .notes-bell, .notes-bell.active { border-color: var(--mag); color: #fff; }
.notes-bell.has-new svg { fill: var(--mag); filter: drop-shadow(0 0 5px rgba(214,59,255,.7)); }
.notes-panel { position: absolute; right: 0; top: calc(100% + 18px); width: 380px; max-height: min(70vh, 560px); overflow: auto;
  background: #0c0c11; border: 1px solid var(--line-strong); border-top: 2px solid var(--mag); box-shadow: 0 18px 50px rgba(0,0,0,.6); z-index: 60; }
.notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.notes-head .link-btn { font-size: 10.5px; letter-spacing: .08em; }
.notes-list { list-style: none; margin: 0; padding: 0; }
.note > a, .note > div { display: grid; gap: 3px; padding: 11px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: #d0d0da; }
.note > a:hover { background: rgba(214,59,255,.07); color: #fff; }
.note.is-new > a, .note.is-new > div { border-left: 2px solid var(--mag); background: rgba(214,59,255,.05); }
.note-text { font-size: 13.5px; line-height: 1.4; }
.note-excerpt { font-size: 12.5px; color: var(--dim); overflow-wrap: anywhere; }
.note time { font: 10px var(--mono); letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.note-hidden .note-text, .note-removed .note-text, .note-muted .note-text { color: #ffb3b3; }
.note-chapter .note-text, .note-update .note-text { color: #fff; }
.notes-empty { margin: 0; padding: 16px 14px; color: var(--dim); font-size: 13px; }
.notes-all { display: block; padding: 11px 14px; text-align: center; font: 500 10.5px var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--mag); text-decoration: none; }
.notes-all:hover { background: rgba(214,59,255,.08); }
.notes-page { max-width: 760px; border-top: 1px solid var(--line); }
.notes-page .note-text { font-size: 15px; }
@media (max-width: 560px) {
  .notes-panel { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
  .notes-bell { height: 32px; padding: 0 7px; }
}
/* phones: bell + Admin + you + menu must fit beside the logo, so your name shrinks to your picture */
@media (max-width: 480px) {
  .site-header { gap: 8px; }
  .site-header .notes ~ .crew-link { margin-left: 6px; }
  .notes ~ .crew-link:not(.admin-link) .crew-name { display: none; }
  .notes ~ .crew-link:not(.admin-link) { padding: 6px 8px; min-height: 32px; }
  .admin-link { padding: 6px 8px; letter-spacing: .08em; }
  .nav-burger { margin-left: 2px !important; width: 34px !important; }
}

/* comments copied from DeviantArt */
.da-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 4px; vertical-align: middle;
  font: 500 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #05cc47;
  border: 1px solid rgba(5,204,71,.45); background: rgba(5,204,71,.08); }
.da-badge svg { width: 11px; height: 11px; fill: currentColor; }
.da-comment { border-left-color: rgba(5,204,71,.55); }
.comment-replies.da-thread > .comment-list { border-left-color: rgba(5,204,71,.25); }
.comment-replies.da-thread > .comment-list > .comment-thread::before { border-color: rgba(5,204,71,.25); }
.comment-replies.da-thread > summary::before { color: #05cc47; }
.da-link { color: inherit; text-decoration: none; }
.da-link:hover { color: #fff; }
.comments > .comment-form, .comments > .comment-signin, .comments > .comment-empty { margin-bottom: 22px; }

/* sign-up trap field: off-screen for people, still filled in by bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* update editor: photo */
.photo-field { border: 1px solid var(--line); padding: 14px 16px; margin: 0; display: grid; gap: 12px; }
.photo-field legend { padding: 0 6px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.photo-current { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.photo-current img { width: 200px; max-width: 100%; height: auto; border: 1px solid var(--line-strong); }
.photo-existing summary { cursor: pointer; color: var(--dim); }
.photo-existing select { margin-top: 8px; width: 100%; }

/* gallery categories */
.order-btn { padding: 6px 10px; min-width: 34px; }
.order-btn[disabled] { opacity: .3; cursor: default; }

/* moderation */
.mod-flag { display: inline-block; padding: 1px 6px; font: 500 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: #ffb3b3; border: 1px solid rgba(255,90,90,.45); background: rgba(255,90,90,.08); }
.comment.is-hidden { opacity: .62; border-style: dashed; }
.mod-actions { display: inline-flex !important; gap: 14px; }
.mod-tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.mod-tabs a { color: var(--dim); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.mod-tabs a:hover { color: #fff; }
.mod-tabs a.active { color: #fff; border-bottom-color: var(--mag); }
.mod-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; max-width: 640px; }
.mod-search input[type=search] { flex: 1; min-width: 200px; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mod-item { padding: 14px 16px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); scroll-margin-top: 90px; }
.mod-item.is-hidden { border-style: dashed; }
.mod-item:target { border-color: var(--mag); }
.mod-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.mod-meta a { color: var(--mag); text-decoration: none; }
.mod-meta a:hover { text-decoration: underline; }
.mod-body { margin: 10px 0; white-space: pre-line; overflow-wrap: anywhere; color: #d0d0da; font-size: 14px; }
.mod-reports { margin: 0 0 12px; padding: 8px 12px; list-style: none; border-left: 2px solid rgba(255,90,90,.5); background: rgba(255,90,90,.05); display: grid; gap: 4px; }
.mod-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-row input[type=text] { flex: 1; min-width: 180px; }
.danger-btn { border-color: rgba(255,90,90,.5); color: #ffb3b3; }
.danger-btn:hover { border-color: #ff8a8a; color: #fff; background: rgba(255,90,90,.15); }
.member-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: none; }
.member-panel p { margin: 0 0 8px; }
.member-panel a { color: var(--mag); }
.member-actions { display: grid; gap: 14px; align-content: start; }
.mod-mute { max-width: none; }
.report-quote { margin: 0 0 20px; padding: 12px 16px; border-left: 2px solid var(--line-strong); background: rgba(255,255,255,.03); max-width: 640px; }
.report-quote p { margin: 0 0 6px; overflow-wrap: anywhere; }
.report-reasons { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.report-reasons legend { margin-bottom: 8px; }
@media (max-width: 760px) { .member-panel { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .series-grid { grid-template-columns: 1fr 1fr; }
  .series-grid .redacted { grid-column: span 2; min-height: 180px; }
  .sealed-dir { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sealed-dir .subscribe { grid-column: span 2; }
  .update-grid { grid-template-columns: 1fr; }
  .updates-block { grid-template-columns: minmax(0, 1fr) 280px; }
  .corp-text { display: none; }
  .site-header .crew-link ~ .corp { display: none; }   /* make room for Admin + your name */
  .site-nav { margin-left: 8px; }
  .site-nav a { padding: 0 12px; }
}
@media (max-width: 920px) {
  .site-header { gap: 12px; }
  .nav-burger { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 8px; cursor: pointer; order: 3; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block; width: 20px; height: 1.5px; background: #fff; position: relative; }
  .nav-burger span::before { position: absolute; top: -6px; }
  .nav-burger span::after { position: absolute; top: 6px; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; height: auto; margin: 0;
    flex-direction: column; background: rgba(6,6,9,.97); border-bottom: 1px solid var(--line);
  }
  .site-nav a { padding: 16px var(--gutter); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-header .corp { display: none; }
  .hero-figure { right: -30%; opacity: .35; }
  .hero-space { width: 100%; opacity: .45; }
  .hero::before { background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.55)), linear-gradient(0deg, var(--bg), transparent 22%); }
  .hero-status, .hero-frame { display: none; }
  .series-grid, .archives-block, .updates-block { grid-template-columns: minmax(0, 1fr); }
  .series-grid .redacted { grid-column: auto; }
  .terminal-block, .sealed-dir { grid-template-columns: minmax(0, 1fr); }
  .sealed-dir .subscribe { grid-column: auto; }
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot-corp { justify-items: center; text-align: center; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .series-card { grid-template-columns: 1fr; }
  .series-cover { min-height: 340px; }
  .archive-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-title .t1 { letter-spacing: .3em; }
  .reader-bar { justify-content: center; }
}
/* phone reading: header scrolls away, page fills the width, Prev/Next stays at the bottom */
@media (max-width: 640px) {
  html:has(.reader-body) { scroll-padding-top: 0; }
  .reader-body .site-header { position: relative; }
  .reader-bar { padding: 10px 12px; gap: 8px; justify-content: center; }
  .reader-bar .title { width: 100%; margin: 0; text-align: center; font-size: 10px; letter-spacing: .14em; }
  .reader-nav { width: 100%; gap: 6px; }
  .reader-nav .btn { flex: 1; justify-content: center; padding: 11px 6px; min-height: 44px; }
  .reader-nav .btn-primary { flex: 2; }
  .jump { width: 100%; justify-content: center; }
  .jump select { flex: 1; max-width: 220px; min-height: 40px; }
  .reader-page { padding: 0; }
  .reader-page img { border-left: 0; border-right: 0; }
  .tap-prev { left: 0; }
  .tap-next { right: 0; left: 33%; }
  .tap-next:first-of-type { left: 0; }
  .reader-foot { position: sticky; bottom: 0; z-index: 30; padding-bottom: 0;
    background: rgba(6,6,9,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .reader-foot .reader-bar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .reader-foot .title, .reader-foot .reader-bar > .btn-sm { display: none; }
  .the-end { padding-bottom: 20px; }
  .comments { padding-top: 24px; }
  .comment { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .comment-avatar { width: 32px; height: 32px; }
  .comment-actions { gap: 18px; font-size: 13px; }
  .comment-actions .link-btn { padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .boot { opacity: 1; }   /* these only fade in through an animation, which is off here */
  .wy-splash { display: none; }   /* it only leaves through an animation, so skip it entirely */
}

/* Weyland-Yutani boot screen: after signing in, or on a reload. CSS only; it never blocks clicks. */
.wy-splash {
  --sp: #e9e9f0; --sp-glow: rgba(255,255,255,.3);
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  display: grid; place-items: center; background: #030305;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  animation: wy-out .5s ease-in 2.1s forwards;
}
/* signed in: hold on the welcome line long enough to read it */
.wy-splash.is-welcome { animation: wy-out .7s ease-in 4.2s forwards; }
/* badge colours match the ID cards */
.splash-weyland.has-badge { --sp: #e8b64a; --sp-glow: rgba(232,182,74,.45); }
.splash-seegson  { --sp: #3fd0b6; --sp-glow: rgba(63,208,182,.45); }
.splash-valuntas { --sp: #ff4f6d; --sp-glow: rgba(255,79,109,.45); }
.wy-splash-core { text-align: center; color: var(--text); width: min(340px, 80vw); }
.wy-splash-logo { width: 120px; height: 40px; color: var(--sp); opacity: 0;
  animation: wy-in .6s ease-out .1s forwards, wy-flicker 1.6s steps(1) .1s; filter: drop-shadow(0 0 14px var(--sp-glow)); }
.splash-gash     { --sp: #4f7bff; --sp-glow: rgba(47,98,255,.55); }
.splash-seegson .wy-splash-logo, .splash-valuntas .wy-splash-logo { width: 58px; height: 58px; }
.splash-gash .wy-splash-logo { width: 130px; height: 130px; }
.wy-splash-logo.emblem-art { margin: 0 auto; }   /* picture emblems are blocks; centre them like the SVG ones */
.bm-corp.id-gash .bm-emblem { width: 32px; height: 32px; }
.wy-splash-welcome { margin: 22px 0 0; font: 15px/1.4 var(--sans); letter-spacing: .04em; color: var(--dim);
  opacity: 0; transform: translateY(6px); animation: wy-rise .6s ease-out 2s forwards; }
.wy-splash-welcome strong { display: block; margin-top: 4px; font: 18px/1.3 var(--display); letter-spacing: .14em;
  text-transform: uppercase; color: var(--sp); text-shadow: 0 0 16px var(--sp-glow); overflow-wrap: anywhere; }
@keyframes wy-rise { to { opacity: 1; transform: none; } }
.wy-splash-name { margin: 18px 0 2px; font: 13px/1.2 var(--display); letter-spacing: .32em; text-transform: uppercase; opacity: 0; animation: wy-in .5s ease-out .45s forwards; }
.wy-splash-tag { margin: 0; font: italic 13px/1.4 "IBM Plex Serif", serif; color: var(--dim); opacity: 0; animation: wy-in .5s ease-out .7s forwards; }
.wy-splash-bar { margin: 26px auto 14px; height: 2px; background: var(--line); overflow: hidden; }
.wy-splash-bar span { display: block; height: 100%; width: 100%; background: var(--sp); box-shadow: 0 0 10px var(--sp-glow);
  transform: scaleX(0); transform-origin: left; animation: wy-load 1.3s cubic-bezier(.6,.1,.3,1) .7s forwards; }
.wy-splash-log { list-style: none; margin: 0; padding: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); text-align: left; }
.wy-splash-log li { opacity: 0; animation: wy-in .15s linear forwards; }
.wy-splash-log li::before { content: "> "; color: var(--dim); }
.wy-splash-log li:nth-child(1) { animation-delay: 1s; }
.wy-splash-log li:nth-child(2) { animation-delay: 1.4s; }
.wy-splash-log li:nth-child(3) { animation-delay: 1.8s; color: var(--sp); }
@keyframes wy-in { to { opacity: 1; } }
@keyframes wy-load { to { transform: scaleX(1); } }
@keyframes wy-flicker { 0% { opacity: .2; } 8% { opacity: 1; } 12% { opacity: .35; } 18% { opacity: 1; } }
@keyframes wy-out { to { opacity: 0; visibility: hidden; } }