/* ohnoai.dev — strange software object
   seed: corrupted window. personality: interface. */

:root {
  --bg: #070708;
  --bg-2: #0c0c0e;
  --ink: #ece8e1;
  --muted: #8f8a84;
  --faint: #56524e;
  --red: #e10600;
  --red-hot: #ff2d22;
  --red-soft: rgba(225, 6, 0, 0.12);
  --red-line: rgba(225, 6, 0, 0.4);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --chrome: #141416;
  --chrome-2: #1a1a1e;

  /* Bebas = logo + display only. Body stays Plex Sans. */
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --dock-w: 5.25rem;
  --top-h: 3.15rem;
  --floor-h: 1.8rem;
  --pad: clamp(0.7rem, 1.4vw, 1.15rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* layout contracts — large screens plateau; media never free-fills */
  /* px ceilings so root font-size (15px) doesn't shrink rem maxes */
  --stage-max: 1440px;
  --build-card-max: 1100px;
  --shot-max: 840px;
  --shot-ratio: 3 / 2;
  --shot-max-h: min(48dvh, 520px);
}

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

/* clip, not hidden: a `hidden` box is still programmatically scrollable
   (keyboard focus, scrollTop), which silently jolts the layout. `clip`
   makes the no-scrollbar contract structural rather than cosmetic. */
html, body {
  margin: 0;
  height: 100%;
  overflow: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, dl, dt, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

::selection { background: var(--red); color: #fff; }

.app {
  position: relative;
  width: 100vw;
  height: 100vh;   /* fallback for browsers without dvh */
  height: 100dvh;  /* wins where supported — tracks mobile browser chrome */
  overflow: clip;
  display: grid;
  grid-template-rows: var(--top-h) 1fr var(--floor-h);
  grid-template-columns: var(--dock-w) 1fr;
  grid-template-areas:
    "top top"
    "dock stage"
    "floor floor";
}

/* empty void — no wallpaper art */
.void {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(225, 6, 0, 0.045), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 80%, rgba(255, 255, 255, 0.02), transparent 50%),
    var(--bg);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar, .dock, .stage, .floor { position: relative; z-index: 2; }

/* ——— chrome ——— */
.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
}
.logo-mark svg { display: block; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas is a single weight */
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: lowercase;
}
.logo-text span {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.top-tag {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--faint);
}
.tag-chip {
  color: var(--red-hot);
  border: 1px solid var(--red-line);
  padding: 0.1rem 0.35rem;
  background: var(--red-soft);
}
.tag-sep { opacity: 0.4; }

.live-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
}
.blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red-soft);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* dock */
.dock {
  grid-area: dock;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.35rem;
  border-right: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.92);
  backdrop-filter: blur(10px);
}
.dock-btn {
  flex: 1;
  max-height: 6.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.dock-ico {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
}
.dock-ico svg { width: 1.35rem; height: 1.35rem; display: block; }
.dock-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dock-btn:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.dock-btn.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: inset 3px 0 0 #fff;
}

.stage {
  grid-area: stage;
  min-height: 0;
  min-width: 0;
  overflow: clip;
  padding: var(--pad);
  /* query container for every panel — cqw/cqh are the padded content box.
     Panels must read THIS, never themselves: an element is not its own
     container, so self-referential cq units fall back to the viewport. */
  container-type: size;
  container-name: stage;
}

.panel {
  height: 100%;
  min-height: 0;
  overflow: clip;
  animation: in 0.28s var(--ease);
}
.panel[hidden] { display: none !important; }
@keyframes in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.panel-head { margin-bottom: 0.75rem; flex-shrink: 0; }
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: lowercase;
}
.panel-kicker svg { display: block; flex-shrink: 0; }
.kicker-slash { color: var(--faint); }
.kicker-sub { color: var(--faint); font-weight: 500; }
.panel-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}
.panel-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.55em;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: baseline;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ico { display: block; }
.btn-hot {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.75);
}
.btn-hot:hover { background: var(--red-hot); color: #fff; }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red-hot);
  background: var(--red-soft);
}

/* ============================================================
   HOME — corrupted window + copy as one object
   Fluid: window track aims for a near-square aperture (art is ~1:1).
   Column width ≈ min(half of home, available height) so resize
   continuously changes size without pancake / postage-stamp modes.
   ============================================================ */
.home {
  /* measured stage box — resolves against .stage, not self. */
  --avail-h: 100cqh;
  height: 100%;
  min-height: 0;
  width: 100%;
  max-width: var(--stage-max);
  margin-inline: auto;
  display: grid;
  /*
   * Side-by-side when there's room. Cap window track by height so a
   * short viewport can't force an ultra-wide art column; floor keeps
   * a usable minimum on small desktops.
   */
  grid-template-columns:
    minmax(0, min(50%, max(13rem, var(--avail-h))))
    minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: clip;
  container-type: size;
  container-name: home;
}

/*
 * Home's ONE structural flip, driven by the stage box rather than the viewport.
 * Stack when the stage is portrait or too narrow to carry two columns; stay
 * side-by-side otherwise. Replaces the old 720 / 721-960 / 960 / 1100 quartet,
 * which stacked at landscape sizes (960x700) where side-by-side gives the art
 * roughly 2x the room.
 */
/* Thresholds deliberately avoid the 720/721 dock boundary, where --dock-w
   snaps 0 -> 4.9rem and moves the stage width ~73px in one step. A 1/1 aspect
   test sat right on that discontinuity and flip-flopped three times across
   690-800px; 40rem / 3:4 clears it so there is exactly one flip. */
@container stage (max-width: 40rem), (max-aspect-ratio: 3 / 4) {
  .home {
    grid-template-columns: minmax(0, 1fr);
    /* window is content-sized; copy takes the rest. No hard % shares. */
    grid-template-rows: auto minmax(0, 1fr);
  }
  .window {
    height: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .window::after { display: none; }
  /* aperture height derived from the panel box — one tunable, cannot invert */
  .window-body { height: min(100cqw, 42cqh); }
  .home-copy { justify-content: flex-start; }
}

/* window chrome system (seed language) */
.window {
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-strong);
  background: var(--chrome);
  position: relative;
}

/* jagged break into the copy column */
.window::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--line-strong) 0%,
    var(--red) 35%,
    var(--line-strong) 42%,
    transparent 43%,
    transparent 48%,
    var(--line-strong) 49%,
    var(--red-line) 70%,
    var(--line-strong) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.window-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  background: linear-gradient(180deg, #1c1c20, #121214);
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.window-traffic {
  display: flex;
  gap: 0.3rem;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a3e;
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.d-red {
  background: var(--red);
  border-color: #8a0400;
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.25);
}
.window-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}
.window-path {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-flag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-hot);
  border: 1px solid var(--red-line);
  padding: 0.08rem 0.3rem;
  background: var(--red-soft);
}
.window-actions {
  display: flex;
  gap: 0.2rem;
}
.window-actions span {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.window-actions .x {
  background: var(--red-soft);
  border-color: var(--red-line);
  position: relative;
}
.window-actions .x::before,
.window-actions .x::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: var(--red-hot);
}
.window-actions .x::before { transform: rotate(45deg); }
.window-actions .x::after { transform: rotate(-45deg); }

.window-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: clip;
  background: #000;
  /* letterbox frame: the aperture is centred in whatever the flex row leaves */
  display: grid;
  place-items: center;
  container-type: size;
  container-name: aperture;
}

/*
 * The aperture. window.jpg is 1024x1024, so an unconstrained box crops it to
 * whatever shape the grid leaves over — that is the "pancake". Clamping the
 * box ratio to [1/--ar-max, --ar-max] bounds the crop instead:
 *   inside the band  -> both min()s take their first term, the art fills.
 *   outside the band -> the aperture pins to exactly --ar-max and letterboxes.
 * Set --ar-max: 1 for a strict square (zero crop, more matting).
 */
.window-aperture {
  --ar-max: 1.25;              /* 5:4 — max deviation from the 1:1 source */
  position: relative;          /* containing block for .fx / .glass / .shards */
  width: min(100cqw, 100cqh * var(--ar-max));
  height: min(100cqh, 100cqw * var(--ar-max));
  overflow: clip;
  container-type: size;
  container-name: art;
}
.window-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.08) saturate(1.05);
  transform: scale(1.01);
  will-change: filter, transform;
  transition: filter 0.35s var(--ease), opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
/* post-orbital permanent scar on the home artifact */
.window-body.is-astley .window-art {
  filter: contrast(1.14) saturate(1.12) brightness(1.02);
  transform: scale(1.02);
}
.window-body.is-astley-flash .window-art {
  filter: contrast(1.6) brightness(1.8) saturate(0.4);
  opacity: 0.55;
}
.window-body.is-astley .window-caption span:last-child {
  color: var(--red-hot);
}

/* post-interstellar: living glitch layer over the still */
.window-art-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.window-art-motion[hidden] {
  display: none !important;
}
.window-body.is-astley-hella .window-art {
  /* still acts as fallback / first paint under video */
  filter: contrast(1.18) saturate(1.25) brightness(1.05);
  transform: scale(1.02);
}
.window-body.is-astley-hella .window-art-motion {
  filter: contrast(1.12) saturate(1.2);
}
.window-body.is-astley-hella .fx-rgb {
  opacity: 0.55;
}
.window-body.is-astley-hella .fx-noise {
  opacity: 0.14;
}
.window-body.is-astley-hella .window-caption span:first-child {
  color: var(--red-hot);
}

/* ——— live FX over the corrupted window ——— */
.fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* CRT-ish scanlines — quiet, always on */
.fx-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.45;
  mix-blend-mode: multiply;
  animation: scan-drift 9s linear infinite;
}
@keyframes scan-drift {
  from { background-position: 0 0; }
  to { background-position: 0 48px; }
}

/* soft RGB split that breathes */
.fx-rgb {
  position: absolute;
  inset: -2%;
  background:
    linear-gradient(105deg, rgba(225, 6, 0, 0.08), transparent 40%, rgba(80, 160, 255, 0.06));
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: rgb-breathe 4.5s ease-in-out infinite;
}
@keyframes rgb-breathe {
  0%, 100% { opacity: 0.35; transform: translate(0, 0); }
  40% { opacity: 0.7; transform: translate(1px, 0); }
  70% { opacity: 0.45; transform: translate(-1px, 0.5px); }
}

/* horizontal glitch bands — mostly idle, spike on .is-glitching */
.fx-band {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  mix-blend-mode: overlay;
  opacity: 0;
  transform: skewX(-12deg);
}
.b1 { top: 28%; height: 1px; }
.b2 { top: 51%; height: 3px; background: rgba(225, 6, 0, 0.65); }
.b3 { top: 73%; height: 1px; }

.fx-noise {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* terminal caret + type fragment */
.fx-cursor {
  position: absolute;
  left: 12%;
  bottom: 18%;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-mono);
  /* painted ON the art — scales with the aperture, not the viewport */
  font-size: clamp(0.5rem, 3.4cqmin, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    1px 0 0 rgba(225, 6, 0, 0.35),
    -1px 0 0 rgba(80, 160, 255, 0.25);
  mix-blend-mode: screen;
}
.fx-caret {
  width: 0.55em;
  height: 1.05em;
  background: var(--red-hot);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.65);
  animation: caret-blink 1.05s steps(1, end) infinite;
}
.fx-type { opacity: 0.9; }
.fx-blink {
  display: inline-block;
  color: var(--red-hot);
  animation: caret-blink 1.05s steps(1, end) infinite;
  animation-delay: 0.12s;
}
@keyframes caret-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* burst glitch state (toggled by JS) */
.window-body.is-glitching .window-art {
  filter: contrast(1.25) saturate(1.3) hue-rotate(-8deg);
  transform: scale(1.01) translateX(2px);
}
.window-body.is-glitching .fx-band {
  opacity: 0.9;
  animation: band-slash 0.28s steps(2, end) both;
}
.window-body.is-glitching .b1 { top: 22%; transform: skewX(-18deg) translateX(-2%); }
.window-body.is-glitching .b2 { top: 48%; transform: skewX(8deg) translateX(3%); }
.window-body.is-glitching .b3 { top: 67%; transform: skewX(-6deg) translateX(-1%); }
.window-body.is-glitching .fx-noise { opacity: 0.18; }
.window-body.is-glitching .fx-rgb {
  opacity: 0.95;
  transform: translate(2px, -1px);
}
.window-body.is-glitching .fx-cursor {
  transform: translate(3px, 0);
  filter: hue-rotate(20deg);
}
@keyframes band-slash {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  30% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 0.2; clip-path: inset(0 0 0 0); }
}

/* subtle always-on micro tear on band 2 */
.b2 {
  animation: band-idle 7s steps(1, end) infinite;
}
@keyframes band-idle {
  0%, 88%, 100% { opacity: 0; }
  90% { opacity: 0.55; }
  92% { opacity: 0; }
  94% { opacity: 0.4; left: -3%; }
  96% { opacity: 0; }
}

/* inner glass frame from the seed language */
.window-glass {
  position: absolute;
  inset: max(0.35rem, 3cqmin);   /* tracks the aperture, not a fixed rem */
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}
.window-glass::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  width: 22%;
  height: 1px;
  background: var(--red);
  opacity: 0.85;
  animation: glass-tick 5.5s steps(1, end) infinite;
}
@keyframes glass-tick {
  0%, 70%, 100% { opacity: 0.85; width: 22%; }
  72% { opacity: 0.2; width: 8%; }
  74% { opacity: 1; width: 40%; left: 30%; }
  78% { opacity: 0.85; width: 22%; left: 18%; }
}
.window-glass::after {
  content: "";
  position: absolute;
  bottom: 12%;
  right: -1px;
  width: 1px;
  height: 28%;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  opacity: 0.7;
}

/* CSS shards — geometry, not more art */
.window-shards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.shard {
  position: absolute;
  background: rgba(225, 6, 0, 0.55);
  mix-blend-mode: screen;
  opacity: 0.35;
}
.s1 {
  width: 2px;
  height: 28%;
  top: 18%;
  left: 62%;
  transform: rotate(18deg);
  animation: shard-pulse 6s ease-in-out infinite;
}
.s2 {
  width: 18%;
  height: 1px;
  top: 42%;
  right: 8%;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, 0.35);
}
.s3 {
  width: 1px;
  height: 16%;
  bottom: 22%;
  left: 30%;
  transform: rotate(-25deg);
  background: rgba(255, 255, 255, 0.4);
  animation: shard-pulse 6s ease-in-out infinite 1.2s;
}
@keyframes shard-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}

.window-caption {
  position: absolute;
  /* inset + type track the aperture so the plate never swamps small art */
  left: clamp(0.45rem, 4cqmin, 1rem);
  bottom: clamp(0.45rem, 4cqmin, 1rem);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.42rem, 2.8cqmin, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.window-status {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.35rem 0.65rem;
  border-top: 1px solid var(--line);
  background: #0e0e10;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.st-ok { color: var(--muted); }
.st-mid { color: var(--ink); }
.st-bad { color: var(--red-hot); }

/*
 * FIT GOVERNOR
 * --fit drives ONLY transform:scale(). Transforms never affect layout, so
 * offsetHeight is invariant under --fit — the measurement converges in a
 * single pass with no feedback loop. This replaces density-by-deletion:
 * nothing is hidden or line-clamped, it just scales.
 * Deliberately no will-change — that is what makes scaled text blurry.
 */
[data-fit] {
  transform: scale(var(--fit, 1));
  transform-origin: center center;
}

/* copy column — same object language */
.home-copy {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  /* vertical padding is OUTSIDE the scaled subtree, so it must be two-axis
     fluid or it eats the short-viewport budget the governor is competing for */
  padding: clamp(0.55rem, min(2.5vw, 3.4vh), 1.75rem) clamp(1rem, 2.2vw, 1.6rem);
  overflow: clip;
  /* queried by .home-fit for the short-and-wide two-column treatment */
  container-type: size;
  container-name: copy;
  background:
    linear-gradient(90deg, rgba(225, 6, 0, 0.04), transparent 28%),
    var(--bg-2);
  position: relative;
}

.home-fit {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

/*
 * Last resort only. The governor sets this when the copy genuinely cannot fit
 * even at the scale floor — measurement-gated, never breakpoint-gated, so it
 * stays dark at every size where scaling alone succeeds.
 */
/* doubled class: must outrank the `overflow: clip` on governed containers
   (.home-copy, .hire-main, .criteria) regardless of source order */
.is-underfit.is-underfit {
  align-content: start;
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
  /* no visible scrollbar chrome — same idiom as .build-list */
  scrollbar-width: none;
  /* soft bottom edge so a scrollable column reads as "more below" rather
     than as truncation. Without this, a hidden scroll looks like a cut-off. */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.6rem), transparent 100%);
}
.is-underfit.is-underfit::-webkit-scrollbar { width: 0; height: 0; }

/*
 * Short box: the copy column is wide but shallow, and the ch-based measure
 * caps are wrapping text into tall stacks it has no room for. Relax the
 * measure so the copy uses the width it already has. Purely a loosening —
 * it never truncates, it just wraps less.
 */
@container home (max-height: 30rem) {
  .display { max-width: 26ch; }
  .lede { max-width: 62ch; }
  .body-copy { max-width: 68ch; }
}

/*
 * Short AND wide copy box: a single tall column has to scroll, but the same
 * content in two columns fits unscaled with room to spare (493px -> 253px at
 * 1280x400). Gated on the copy box itself, so it cannot fire on a phone —
 * a portrait column is short too, but never 34rem wide.
 */
@container copy (max-height: 24rem) and (min-width: 34rem) {
  .home-fit {
    display: block;
    columns: 2;
    column-gap: clamp(1rem, 2.4vw, 2rem);
    column-fill: balance;
  }
  .home-fit > * {
    break-inside: avoid;
    margin-bottom: 0.7rem;
  }
  .home-fit > :last-child { margin-bottom: 0; }
  /* let each block take its column; the column width is the measure now */
  .display, .lede, .body-copy { max-width: none; }
}

/* clipped corner — broken geometry */
.home-copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  background:
    linear-gradient(225deg, transparent 49%, var(--line-strong) 50%, var(--line-strong) 51%, var(--bg-2) 52%);
  pointer-events: none;
}
.home-copy::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 1.5rem 1.5rem 0;
  border-color: transparent var(--red) transparent transparent;
  opacity: 0.85;
  pointer-events: none;
}

.frag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}
.frag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-hot);
  border: 1px solid var(--red-line);
  padding: 0.15rem 0.4rem;
  background: var(--red-soft);
}
.frag-dim {
  color: var(--faint);
  border-color: var(--line);
  background: transparent;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
}
.kicker-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

.display { max-width: 14ch; }
.line-a {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.line-b {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
  color: var(--red-hot);
}

.lede {
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 38ch;
  color: var(--ink);
}
.body-copy {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 44ch;
  font-weight: 400;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.spec {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-strong);
}
.spec > div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.spec dd {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   BUILDS — screenshot slots
   ============================================================ */
.builds {
  height: 100%;
  min-height: 0;
  width: 100%;
  max-width: var(--stage-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}

/* index + prev/next — must pop against dark chrome */
.builds-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.15rem 0.1rem;
}
.builds-nav {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--red-line);
  background: rgba(225, 6, 0, 0.14);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(225, 6, 0, 0.35);
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.builds-nav:hover,
.builds-nav:focus-visible {
  border-color: var(--red-hot);
  background: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(225, 6, 0, 0.5);
  outline: none;
  transform: translate(-1px, -1px);
}
.builds-nav:active {
  transform: none;
  box-shadow: 1px 1px 0 rgba(225, 6, 0, 0.4);
}
.builds-nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  border-color: var(--line);
  background: var(--bg-2);
  color: var(--faint);
}
.builds-nav:disabled:hover {
  border-color: var(--line);
  background: var(--bg-2);
  color: var(--faint);
  box-shadow: none;
  transform: none;
}
.builds-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 3.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 14, 0.92);
}
.builds-index [data-builds-current] {
  color: #fff;
}
.builds-index-slash {
  margin: 0 0.22rem;
  color: var(--red-hot);
}

/* horizontal product strip — append more .build cards freely */
.build-list {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center; /* cards hug content; leftover = stage chrome */
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0.1rem 0 0.35rem;
  scrollbar-width: none;
}
.build-list::-webkit-scrollbar { display: none; }
.build-list:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.build {
  flex: 0 0 calc(100% - 1.1rem); /* mobile: slight peek of next card */
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-width: 0;
  max-width: var(--build-card-max);
  height: auto;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto auto; /* shot + meta content-sized — never 1fr empty meta */
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.15s, opacity 0.2s var(--ease);
}
.build.is-active-slide {
  border-color: var(--red-line);
}
.build:hover { border-color: var(--red-line); }

/*
 * Desktop: one featured product, not a 3-up grid.
 * Shot + meta side-by-side; aperture stays 3∶2; arrows flank the stage.
 */
@media (min-width: 1021px) {
  .builds {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "head"
      "stage";
    gap: 0.55rem;
    position: relative;
  }
  .builds > .panel-head {
    grid-area: head;
  }
  .builds-chrome,
  .build-list {
    grid-area: stage;
  }

  .builds-chrome {
    position: relative;
    z-index: 4;
    display: block;
    padding: 0;
    pointer-events: none;
    align-self: stretch;
    min-height: 0;
  }

  .builds-index {
    position: absolute;
    top: 0.55rem;
    right: 3.35rem;
    z-index: 5;
    min-width: 0;
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--line);
    background: rgba(7, 7, 8, 0.78);
    pointer-events: none;
  }

  .builds-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.7rem;
    pointer-events: auto;
    background: rgba(225, 6, 0, 0.2);
    border-color: var(--red-hot);
    box-shadow: 3px 3px 0 rgba(225, 6, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.45);
  }
  .builds-nav:hover,
  .builds-nav:focus-visible {
    transform: translateY(-50%) translate(-1px, -1px);
  }
  .builds-nav:active {
    transform: translateY(-50%);
  }
  .builds-nav:disabled {
    transform: translateY(-50%);
  }
  .builds-prev { left: 0.15rem; }
  .builds-next { right: 0.15rem; }
  .builds-index {
    top: 0.45rem;
    right: 3.55rem;
    border-color: var(--red-line);
    background: rgba(7, 7, 8, 0.9);
  }

  .build-list {
    z-index: 1;
    gap: 0;
    padding: 0 3rem;
    scroll-padding-inline: 3rem;
    min-height: 0;
    justify-content: flex-start;
  }

  .build {
    flex: 0 0 100%;
    width: 100%;
    max-width: min(100%, var(--build-card-max));
    margin-inline: auto;
    height: auto;
    max-height: 100%;
    grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 22rem);
    grid-template-rows: auto;
    align-items: center; /* meta hugs content; no tall empty column */
  }

  .build-shot {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    min-height: 0;
    height: auto;
    justify-content: center;
  }

  /* aperture contract holds — never free-fill the column */
  .shot-void,
  .shot-void.has-image {
    flex: 0 0 auto;
    width: min(100%, var(--shot-max), calc(var(--shot-max-h) * 3 / 2));
    max-width: 100%;
    aspect-ratio: var(--shot-ratio);
    height: auto;
    max-height: var(--shot-max-h);
  }

  .build-meta {
    padding: 1.25rem 1.35rem 1.3rem;
    justify-content: center;
    gap: 0.55rem;
    min-height: 0;
    height: auto;
    align-self: center;
  }
  .build-meta h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  }
  .build-meta p {
    font-size: 0.9rem;
    max-width: 36ch;
    line-height: 1.5;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  .build-tags {
    margin-top: 0.35rem;
  }

  .build:not(.is-active-slide) {
    opacity: 0.28;
  }
}

.build-shot {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  background: #050506;
}
.shot-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.35rem 0.5rem;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--faint);
  font-style: normal;
}
.shot-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e2e32;
  border: 1px solid #111;
}
.shot-chrome span:first-child { background: var(--red); border-color: #7a0300; }
.shot-chrome em {
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.55rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}
/* Media aperture contract: 3∶2 everywhere. Layout chrome may empty; this box may not free-fill. */
.shot-void {
  /* width capped by column AND by max-height×ratio so max-height never breaks aspect */
  aspect-ratio: var(--shot-ratio);
  width: min(100%, var(--shot-max), calc(var(--shot-max-h) * 3 / 2));
  max-width: 100%;
  height: auto;
  max-height: var(--shot-max-h);
  margin-inline: auto;
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: -1px -1px;
}
.shot-void.has-image {
  overflow: hidden;
  background: #050506;
}
.shot-void::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px dashed var(--line-strong);
  pointer-events: none;
  z-index: 1;
}
.shot-image,
.shot-poster,
.shot-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.shot-poster {
  opacity: 0.78;
  filter: saturate(0.86) contrast(1.04);
  transition: opacity 0.18s var(--ease), filter 0.18s var(--ease), transform 0.25s var(--ease);
  z-index: 0;
}
.shot-motion {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
  background: #050506;
}
.build.is-motion-playing .shot-poster {
  opacity: 0;
}
.build.is-motion-playing .shot-motion {
  opacity: 1;
}
.build:hover .shot-poster,
.build:focus-within .shot-poster {
  opacity: 0.94;
  filter: saturate(1) contrast(1.02);
  transform: scale(1.012);
}
.build.is-motion-playing:hover .shot-poster,
.build.is-motion-playing:focus-within .shot-poster {
  opacity: 0;
  transform: none;
}
.shot-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  max-width: calc(100% - 1.5rem);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.85);
  text-align: center;
  transition: opacity 0.18s var(--ease);
  pointer-events: none;
}
/* phones: no hover demos — motion autoplays on the active card */
.shot-mark-tap { display: none; }
.shot-mark-click { display: inline; }
@media (hover: none), (pointer: coarse) {
  .shot-mark-tap { display: inline; }
  .shot-mark-click { display: none; }
}

.build-meta {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}
.build-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.build-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.06em;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.16rem 0.38rem;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill-live {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.build-meta h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.build-meta h3 a {
  color: inherit;
  text-decoration: none;
}
.build-meta h3 a:hover,
.build-meta h3 a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.18em;
}
.build-meta p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}
.build-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.build-tags span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--faint);
  padding: 0.14rem 0.35rem;
  border: 1px solid var(--line);
}

/* ============================================================
   RANTS — left reader / right previews
   ============================================================ */
.rants {
  height: 100%;
  min-height: 0;
  width: 100%;
  max-width: var(--stage-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(0.75rem, 1.6vw, 1.15rem);
  position: relative;
  overflow: clip;
}

.rant-head { margin-bottom: 0.55rem; flex-shrink: 0; }

.rants-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 0;
  border: 1px solid var(--line);
  overflow: clip;
}

/* left: content */
.rant-reader {
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line-strong);
  background: #0a0a0c;
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
}

.rant-idle {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  gap: 0.5rem;
}
/* display:flex above beats the [hidden] attribute — force it off */
.rant-idle[hidden],
.rant-post[hidden] {
  display: none !important;
}
.rant-giant {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  user-select: none;
  max-height: 70%;
  overflow: hidden;
}
.rant-idle-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.rant-post {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding: 1rem 1.15rem 1.1rem;
  animation: in 0.28s var(--ease);
}

.rant-post-head {
  flex-shrink: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.rant-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border: 0;
  background: none;
}
.rant-back:hover { color: var(--red-hot); }
.rant-post-id {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.3rem;
}
.rant-post-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.rant-post-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  padding-right: 0.4rem;
}
/* measure cap on the blocks, not the scroller — keeps the scrollbar on the
   edge while stopping 100+ char lines on wide monitors. The only long-form
   text in the site that lacked one (cf. .hire-sub 42ch, .build-meta p 36ch). */
.rant-post-body > * { max-width: 70ch; }
.rant-post-body p { margin: 0 0 0.85rem; }
.rant-post-body p:last-child { margin-bottom: 0; }
.rant-post-body em { color: var(--ink); }
.rant-post-body strong { color: var(--ink); font-weight: 700; }
.rant-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.rant-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint) !important;
  margin-top: 0.35rem !important;
}

.rant-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
}
.rant-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}
.rant-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}
.rant-gallery figcaption {
  padding: 0.25rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px solid var(--line);
  background: #0e0e10;
}

/* right: previews */
.rant-stack {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  overflow: hidden;
}

.rant-preview {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.rant-preview:last-child { border-bottom: 0; }
.rant-preview:hover {
  background: rgba(255, 255, 255, 0.025);
}
.rant-preview:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.rant-preview.is-active {
  background: linear-gradient(90deg, var(--red-soft), transparent 70%);
  box-shadow: inset 2px 0 0 var(--red);
}
.rant-preview .rn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
}
.rant-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

/*
 * Stacked rants (phone / tablet portrait): when reading, collapse the
 * preview stack into a thicker strip so the article owns the height.
 */
@media (max-width: 1100px) {
  .rants-layout {
    transition: grid-template-rows 0.38s var(--ease);
  }

  .rants-layout.is-reading {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .rants-layout.is-reading .rant-reader {
    min-height: 0;
  }

  .rants-layout.is-reading .rant-stack {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-top: 1px solid var(--line-strong);
    background: #0c0c0e;
    max-height: none;
    min-height: 3.35rem;
  }

  .rants-layout.is-reading .rant-preview {
    flex: 0 0 auto;
    min-height: 3.15rem;
    min-width: max-content;
    max-width: 13rem;
    padding: 0.72rem 0.85rem;
    gap: 0.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    align-items: center;
  }

  .rants-layout.is-reading .rant-preview:last-child {
    border-right: 0;
  }

  .rants-layout.is-reading .rant-preview .rn {
    font-size: 0.68rem;
  }

  .rants-layout.is-reading .rant-preview-title {
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10.5rem;
  }

  .rants-layout.is-reading .rant-preview-dek {
    display: none !important;
  }

  .rants-layout.is-reading .rant-preview.is-active {
    background: var(--red-soft);
    box-shadow: inset 0 -3px 0 var(--red);
  }
}
.rant-preview-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.rant-preview-dek {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--faint);
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.rant-preview-end.is-active {
  background: linear-gradient(90deg, var(--red-soft), transparent 70%);
}

/* ============================================================
   HIRE — blunt software surface
   ============================================================ */
.hire {
  height: 100%;
  min-height: 0;
  width: 100%;
  max-width: var(--stage-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: clip;
}

.hire-main {
  min-height: 0;
  /* centering box for the governed subtree */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center; /* surplus splits evenly rather than pooling below */
  padding: clamp(0.6rem, min(2.2vw, 3vh), 1.75rem);
  border-right: 1px solid var(--line);
  overflow: clip;
  container-type: size;
  container-name: hiremain;
}
.hire-fit {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

/*
 * Tall box (portrait tablets): the composition is landscape-shaped, so at
 * natural size it strands ~half the height. Let the portrait carry it — it is
 * the hero here — rather than stretching type or pooling void at the bottom.
 */
/*
 * Intro orientation follows the box, not the viewport. The max-width:720px
 * block stacks the intro for portrait phones, but a 720x540 landscape box is
 * 47rem wide — stacking there added ~55px of height and forced a scroll.
 */
@container hiremain (min-width: 30rem) {
  /* descendant selectors: the max-width:720px block is defined later in the
     file and would otherwise win on source order at equal specificity */
  .hire-main .hire-intro {
    flex-direction: row;
    align-items: flex-end;
    width: auto;
  }
  .hire-main .hire-copy { width: auto; flex: 1 1 auto; }
  .hire-intro .operator-id { align-self: flex-end; }
}

@container hiremain (max-aspect-ratio: 1 / 1) and (min-height: 34rem) {
  /* keyed to the box's own height (cqh), not a % of the flex row — the row is
     narrower than the panel, which is why a % cap resolved far too small.
     Descendant selectors so these outrank the base .operator-id rule (defined
     LATER in the file) and the later max-width media queries. */
  .hire-intro .operator-id { width: min(30rem, 34cqh, 52cqw); }
  .hire-main .hire-fit { gap: clamp(0.9rem, 3cqh, 2.4rem); }
}

/* same short-and-wide two-column treatment as the home pitch */
@container hiremain (max-height: 28rem) and (min-width: 34rem) {
  .hire-fit {
    display: block;
    columns: 2;
    column-gap: clamp(0.9rem, 2vw, 1.6rem);
    column-fill: balance;
  }
  .hire-fit > * {
    break-inside: avoid;
    margin-bottom: 0.75rem;
  }
  .hire-fit > :last-child { margin-bottom: 0; }
}
.crit-fit { min-width: 0; }

/*
 * Narrow stage: three criteria columns side by side leaves ~100px each, which
 * wraps the lists into very tall stacks. Two columns with payload spanning is
 * dramatically shorter and keeps every item on screen at full size.
 */
@container stage (max-width: 32rem) {
  .hire-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
  }
  .criteria {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .criteria-no { border-right: 0; }
  .payload {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

/* operator ID + headline row — email stays dominant below */
.hire-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: center;
  min-height: min-content;
}

.operator-id {
  margin: 0;
  /* centerpiece — one fluid expression for every viewport. Width leads; the
     vh term keeps it honest on short landscape and lets it grow on tall
     tablets instead of stranding the portrait at a desktop-sized cap. */
  width: clamp(8rem, min(30vw, 40vh), 22rem);
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 rgba(225, 6, 0, 0.3);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.operator-id:hover {
  border-color: var(--red-line);
}
.operator-id:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.operator-id.is-skeleton {
  border-color: var(--red-line);
  box-shadow: 3px 3px 0 rgba(225, 6, 0, 0.45);
}
.operator-id.is-skeleton .op-flag {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.operator-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #1c1c20, #121214);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  user-select: none;
}
.op-dots {
  display: flex;
  gap: 0.2rem;
}
.op-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e2e32;
  border: 1px solid #111;
  display: block;
}
.op-dots i:first-child {
  background: var(--red);
  border-color: #7a0300;
}
.op-file {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-flag {
  color: var(--red-hot);
  border: 1px solid var(--red-line);
  padding: 0.05rem 0.25rem;
  background: var(--red-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.operator-frame {
  position: relative;
  aspect-ratio: 2 / 2.55;
  overflow: hidden;
  background: #000;
}
/* real photo default — crop only */
.operator-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
}
.operator-photo.is-shown {
  opacity: 1;
  z-index: 1;
}
#op-human {
  filter: grayscale(1) contrast(1.08) brightness(0.98);
}
/* skeleton is already styled; match crop */
.operator-skel {
  object-position: 50% 12%;
  filter: contrast(1.05);
}
/* restrained red duotone on human only */
.operator-duotone {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(225, 6, 0, 0.22) 0%,
    transparent 42%,
    rgba(225, 6, 0, 0.12) 100%
  );
  mix-blend-mode: color;
  opacity: 0.85;
  transition: opacity 0.22s;
}
.operator-duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 70% 40%,
    rgba(225, 6, 0, 0.18),
    transparent 65%
  );
  mix-blend-mode: soft-light;
}
.operator-id.is-skeleton .operator-duotone {
  opacity: 0;
}
.operator-glass {
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.operator-glass::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 15%;
  width: 28%;
  height: 1px;
  background: var(--red);
  opacity: 0.75;
}

.operator-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.4rem 0.45rem 0.45rem;
  border-top: 1px solid var(--line);
  background: #0e0e10;
}
.op-caption {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
}
.op-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-transform: uppercase;
}
/* pointer language: click vs tap */
.op-hint-tap { display: none; }
.op-hint-click { display: inline; }
@media (hover: none), (pointer: coarse) {
  .op-hint-tap { display: inline; }
  .op-hint-click { display: none; }
}

.hire-copy {
  min-width: 0;
}
.hire-copy .panel-head {
  margin-bottom: 0;
}

.hire-sub {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 42ch;
  font-weight: 500;
}

.mail-block {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  background: #0a0a0c;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  /* email remains the hero */
  flex-shrink: 0;
}
.mail-block:hover {
  border-color: var(--red);
  background: rgba(225, 6, 0, 0.06);
  box-shadow: inset 3px 0 0 var(--red);
}
.mail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.mail-addr {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mail-block:hover .mail-addr { color: var(--red-hot); }
.mail-go {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.mail-block:hover .mail-go {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.hire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.mail-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.hire-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #0a0a0c;
}

.criteria {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: clip;
}
.criteria-h {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}
.criteria-no .criteria-h { color: var(--faint); }
.criteria ul {
  display: grid;
  gap: 0.45rem;
}
.criteria li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 500;
}
.criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--red);
}
.criteria-no li::before {
  background: transparent;
  border: 1px solid var(--faint);
}

.payload {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--red-soft));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: clip;
}
.payload-h {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.payload p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

/* floor */
.floor {
  grid-area: floor;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.92);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.floor-domain { color: var(--red); font-weight: 700; }
.floor-rule {
  width: 1.1rem;
  height: 1px;
  background: var(--line-strong);
}
.floor-msg { flex: 1; }
.floor-keys { display: none; color: var(--muted); }

/* sister-site crosslink (ohnoai.xyz ↔ ohnoai.dev) */
.sister-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--red-line);
}
.sister-link:hover,
.sister-link:focus-visible {
  color: var(--red-hot);
  border-bottom-color: var(--red-hot);
}

/* ============================================================
   INTELLIGENT MISBEHAVIOR
   ============================================================ */

.live-pill {
  cursor: pointer;
  max-width: min(42vw, 20rem);
}
.live-pill-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  transition: opacity 0.12s, transform 0.12s;
}
.live-pill-text.is-flip {
  opacity: 0;
  transform: translateY(3px);
}
.pill-ghost {
  position: absolute;
  right: var(--pad);
  top: calc(var(--top-h) + 0.35rem);
  opacity: 0.45;
  pointer-events: none;
  transform: translate(6px, 4px) rotate(1.5deg);
  z-index: 30;
  animation: ghost-fade 2s ease forwards;
}
@keyframes ghost-fade {
  0% { opacity: 0.55; }
  70% { opacity: 0.4; }
  100% { opacity: 0; transform: translate(14px, 10px) rotate(3deg); }
}

.logo-text.is-escaped {
  display: inline-block;
  animation: logo-run 1.6s ease;
}
@keyframes logo-run {
  0% { transform: none; }
  30% { transform: translateX(12px) rotate(-2deg); color: var(--red-hot); }
  55% { transform: translateX(-6px) rotate(1deg); }
  100% { transform: none; }
}

.app.is-switching .dock-label {
  color: var(--red-hot);
}
.app.is-switching .stage {
  filter: saturate(0.85);
}

/* floating toasts */
.mischief-layer {
  position: fixed;
  inset: var(--top-h) var(--pad) var(--floor-h) calc(var(--dock-w) + var(--pad));
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.mischief-toast {
  position: absolute;
  max-width: min(280px, 70%);
  padding: 0.4rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(6px) rotate(-0.5deg);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mischief-toast.is-on {
  opacity: 1;
  transform: translateY(0) rotate(-0.5deg);
}
.mischief-toast.kind-sys { border-color: var(--red-line); color: var(--red-hot); }
.mischief-toast.kind-tool {
  border-style: dashed;
  color: var(--muted);
}
.mischief-toast.kind-frag {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(6px) rotate(1.2deg);
}
.mischief-toast.kind-frag.is-on { transform: translateY(0) rotate(1.2deg); }

/* window panic / restart */
.window-panic {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(2px);
}
.window-panic[hidden] { display: none !important; }
.panic-inner {
  width: min(86%, 240px);
  display: grid;
  gap: 0.55rem;
  text-align: left;
  font-family: var(--font-mono);
}
.panic-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-hot);
}
.panic-bar {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
.panic-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.35s var(--ease);
}
.panic-msg {
  font-size: 0.7rem;
  color: var(--muted);
  min-height: 1.2em;
}
.window-body.is-panicking .window-art {
  filter: contrast(1.15) brightness(0.55) saturate(0.7);
}
.window-body.is-restarting {
  animation: hard-reboot 0.22s steps(2, end);
}
@keyframes hard-reboot {
  0% { filter: brightness(2); opacity: 0.2; }
  50% { filter: brightness(0); opacity: 0; }
  100% { filter: none; opacity: 1; }
}

/* build diagnostics — click/tap/Enter; light glass, no full blackout */
.build {
  cursor: pointer;
}
.build:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.shot-diag {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  top: auto;
  display: grid;
  align-content: start;
  gap: 0.28rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  list-style: none;
  max-height: min(52%, 11rem);
  overflow: auto;
  background: rgba(7, 7, 8, 0.78);
  border: 1px solid var(--red-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.shot-diag li {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.shot-diag b {
  color: var(--red-hot);
  font-weight: 700;
}
.build.is-diag-open {
  border-color: var(--red-line);
}
.build.is-diag-open .shot-diag {
  opacity: 1;
  transform: none;
}
.build.is-diag-open .shot-mark {
  opacity: 0;
}
/* keep poster/video readable — light dim only */
.build.is-diag-open .shot-poster {
  opacity: 0.72;
  filter: saturate(0.9) contrast(1.04);
  transform: none;
}
.build.is-diag-open.is-motion-playing .shot-poster {
  opacity: 0;
}
.build.is-diag-open.is-motion-playing .shot-motion {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .build-list {
    scroll-behavior: auto;
  }
  .shot-diag {
    transition: opacity 0.01s;
    transform: none;
  }
  .shot-poster,
  .shot-motion {
    transition: none;
  }
  .build:hover .shot-poster,
  .build:focus-within .shot-poster {
    transform: none;
  }
  .logo-text.is-escaped {
    animation: none;
  }
  .pill-ghost {
    display: none !important;
  }
}

/* command terminal */
.cmd {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 0 var(--pad) calc(var(--floor-h) + 0.75rem);
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.15s;
}
.cmd.is-open { opacity: 1; }
.cmd[hidden] { display: none !important; }
.cmd-shell {
  width: min(560px, 100%);
  max-height: min(42vh, 320px);
  display: flex;
  flex-direction: column;
  background: #0a0a0c;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.15), 0 18px 50px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
}
.cmd-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--chrome);
}
.cmd-hint { color: var(--muted); text-transform: none; letter-spacing: 0; }
.cmd-log {
  flex: 1;
  min-height: 120px;
  max-height: 220px;
  overflow: auto;
  padding: 0.55rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}
.cmd-line { margin-bottom: 0.2rem; word-break: break-word; }
.cmd-in { color: var(--ink); }
.cmd-dim { color: var(--faint); }
.cmd-err { color: var(--red-hot); }
.cmd-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-top: 1px solid var(--line);
  background: #08080a;
}
.cmd-prompt {
  color: var(--red);
  font-weight: 700;
}
.cmd-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  caret-color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .mischief-layer {
    inset: var(--top-h) 0.5rem calc(var(--floor-h) + 0.25rem) 0.5rem;
  }
  .live-pill { max-width: 46vw; }
  .cmd {
    padding-bottom: calc(var(--floor-h) + 0.5rem);
    place-items: end stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .blink,
  .fx-scan,
  .fx-rgb,
  .fx-caret,
  .fx-blink,
  .b2,
  .s1,
  .s3,
  .window-glass::before,
  .window-body.is-glitching .fx-band { animation: none !important; }
  .fx-scan { opacity: 0.25; }
  .fx-rgb { opacity: 0.25; transform: none; }
  .fx-caret, .fx-blink { opacity: 1; }
  .window-body.is-glitching .window-art {
    filter: contrast(1.08) saturate(1.05);
    transform: scale(1.01);
  }
  .btn:hover { transform: none; }
}

@media (min-width: 920px) {
  .top-tag { display: inline-flex; }
  .floor-keys { display: inline; }
}

/*
 * Phase C — short-height soft landing
 * Order: spacing → tertiary chrome → pitch (never crush Builds meta for image).
 */
@media (max-height: 800px) {
  :root {
    --pad: 0.6rem;
    --shot-max-h: min(42dvh, 400px);
  }
  .panel-head { margin-bottom: 0.55rem; }
  .builds { gap: 0.35rem; }
  .hire-fit { gap: 0.7rem; }
}

@media (max-height: 740px) {
  :root {
    --top-h: 2.75rem;
    --floor-h: 1.5rem;
    --pad: 0.5rem;
    /* keep aperture short so title/blurb/tags always fit */
    --shot-max-h: min(34dvh, 300px);
  }

  /* 1) spacing */
  .panel-head { margin-bottom: 0.35rem; }
  .panel-head h2 { font-size: clamp(1.35rem, 3.5vh, 1.85rem); }
  .builds { gap: 0.28rem; }
  .builds-chrome { gap: 0.5rem; }
  .builds-nav { width: 2.2rem; height: 2.2rem; font-size: 1.35rem; }
  .build-meta { padding: 0.55rem 0.75rem 0.65rem; gap: 0.22rem; }
  .build-meta h3 { font-size: 0.95rem; }
  .build-meta p { font-size: 0.78rem; line-height: 1.35; }
  .build-list { align-items: center; }
  .build { max-height: 100%; }
  .hire-main { padding: 0.75rem 1rem; }
  .hire-fit { gap: 0.55rem; }
  .hire-intro { gap: 0.65rem 0.85rem; }
  .home-actions { gap: 0.35rem; }
  .rants { padding: 0.55rem 0.75rem; }
  .rant-head { margin-bottom: 0.35rem; }
  .rant-gallery { grid-template-columns: 1fr 1fr; gap: 0.35rem; }

  /* Home's tertiary chrome and pitch are no longer dropped or clamped here —
     the fit governor scales the whole copy subtree instead. Nothing omitted. */
}

/* very short — last resort density */
@media (max-height: 620px) {
  :root {
    --top-h: 2.5rem;
    --floor-h: 1.35rem;
    --pad: 0.4rem;
    --shot-max-h: min(28dvh, 220px);
  }
  /* .body-copy / .spec / .build-tags are NOT dropped here any more —
     the governor scales instead of deleting. */
  .panel-kicker { margin-bottom: 0.2rem; }
  .builds-index { font-size: 0.6rem; }
}

/*
 * Very short viewports: the Builds card is shot + meta, both content-sized, so
 * neither can give and the card clipped by up to 27px. The meta is text and
 * must stay whole, so the aperture is what shrinks — via the token, which keeps
 * the 3:2 ratio intact (letting .shot-void itself shrink breaks the aspect).
 * Must come AFTER the 620px block, which sets the same token.
 */
@media (max-height: 440px) {
  :root { --shot-max-h: min(20dvh, 160px); }
}

/* tablet width — Builds/Rants/Hire stack; Home only stacks when tall (see below) */
@media (max-width: 1100px) {
  :root { --dock-w: 4.9rem; }

  .build {
    flex-basis: calc(100% - 0.9rem);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .build-shot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    height: auto;
  }
  .builds {
    gap: 0.3rem;
  }
  .build-list {
    align-items: flex-start;
    padding-top: 0;
  }
  .builds-chrome {
    margin: 0 0 0.2rem;
    flex-shrink: 0;
  }

  .rants-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .rant-giant { font-size: clamp(3.2rem, 10vw, 5.5rem); }

  /* Hire always stacked on tablet — kill floating 2-col on iPad Pro.
     Main takes the flexible track (it is governed and can absorb the
     squeeze); the criteria strip is content-sized so it can never be
     starved by a tall main column. */
  .hire {
    grid-template-columns: 1fr;
    /* min-content floor => the criteria strip can never be starved on short
       screens; the 0.4fr share => it absorbs part of the surplus on tall ones
       instead of dumping it all into .hire-main as void. */
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .hire-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.15rem;
  }
  .hire-fit { gap: 0.85rem; }
  .hire-side {
    flex-direction: row;
    min-height: 0;
    overflow: hidden;
  }
  .criteria {
    flex: 1;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 0.75rem 0.85rem;
  }
  .criteria:last-child,
  .payload {
    border-right: 0;
  }
  .payload {
    flex: 1;
    border-top: 0;
    padding: 0.75rem 0.85rem;
  }
  /* portrait left + copy — hero size on tablet */
  .hire-intro {
    display: flex;
    flex-direction: row;
    /* sit the copy on the portrait's baseline rather than hugging its top —
       top-aligning stranded a tall void under the copy on portrait tablets */
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1.15rem 1.35rem;
    min-height: min-content;
  }
  .operator-id {
    flex: 0 0 auto;
  }
  .hire-copy {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* The old 721–960 mid-width block is gone entirely: its layout moved to the
   @container flip and its density was pure deletion/line-clamping, which the
   fit governor now replaces with continuous scale. */

/* phone — bottom dock + stacked home; still fluid via clamp on the window row */
@media (max-width: 720px) {
  :root {
    --dock-w: 0px;
    --top-h: 2.9rem;
    /* grows with the iOS home indicator so the .app grid row stays in sync
       with the fixed dock — otherwise fixing the dock re-overlaps the stage */
    --floor-h: calc(3.9rem + env(safe-area-inset-bottom, 0px));
    --pad: 0.5rem;
  }

  .app {
    grid-template-columns: 1fr;
    grid-template-rows: var(--top-h) 1fr var(--floor-h);
    grid-template-areas:
      "top"
      "stage"
      "floor";
  }

  .dock {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--floor-h);
    flex-direction: row;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 0.28rem;
    padding-bottom: calc(0.28rem + env(safe-area-inset-bottom, 0px));
    gap: 0.15rem;
  }
  .dock-btn { flex: 1; max-height: none; gap: 0.2rem; }
  .dock-btn.is-active { box-shadow: inset 0 -3px 0 #fff; }
  .dock-ico svg { width: 1.15rem; height: 1.15rem; }

  .floor { display: none; }

  /* Home layout lives in the @container flip; density only below. */
  .home-copy {
    max-width: none;
    gap: 0.4rem;
  }
  /* body copy, all three spec rows and the status bar all stay — the
     governor scales them rather than clamping or hiding. */
  .home-actions { flex-shrink: 0; }

  .build-list {
    gap: 0.55rem;
    align-items: flex-start;
  }
  .build {
    flex-basis: calc(100% - 0.75rem);
    height: auto;
    max-height: 100%;
    grid-template-rows: auto auto;
  }
  .builds-chrome {
    margin-bottom: 0.15rem;
  }
  .build-shot {
    min-height: 0;
    height: auto;
  }
  .shot-void,
  .shot-void.has-image {
    flex: 0 0 auto;
    aspect-ratio: var(--shot-ratio);
    width: min(100%, var(--shot-max), calc(var(--shot-max-h) * 3 / 2));
    max-width: 100%;
    height: auto;
    max-height: var(--shot-max-h);
  }
  .build-meta {
    flex-shrink: 0;
    padding: 0.7rem 0.8rem 0.85rem;
    gap: 0.32rem;
  }
  .build-meta h3 { font-size: 0.95rem; }
  .build-meta p {
    font-size: 0.8rem;
    line-height: 1.42;
  }
  .build-tags {
    display: flex;
    gap: 0.22rem;
    margin-top: 0.12rem;
  }
  .builds-chrome { gap: 0.45rem; }
  .shot-mark { font-size: 0.52rem; }

  .rants-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .rant-reader { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .rant-giant { font-size: 18vw; }
  .rant-preview { padding: 0.5rem 0.7rem; }
  .rant-gallery { grid-template-columns: 1fr 1fr; gap: 0.35rem; }

  /* main content first; criteria strip never starved, shares surplus */
  .hire {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .criteria { border-bottom: 0; }
  .payload { border-top: 0; }
  .mail-addr {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
    line-height: 1.05;
  }
  .mail-block {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    min-width: 0;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }
  /* portrait left, then copy — no side collision, no centered gutter */
  .hire-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    min-height: min-content;
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
  }
  .operator-id {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: flex-start;
  }
  .hire-copy {
    width: 100%;
    min-width: 0;
    text-align: left;
    flex: 0 0 auto;
  }
  .hire-copy .panel-head {
    text-align: left;
  }
  .op-caption {
    font-size: 0.55rem;
  }
  .hire-sub {
    max-width: none;
  }
  .hire-actions {
    gap: 0.35rem;
    flex: 0 0 auto;
  }
  .mail-hint {
    flex: 0 0 auto;
  }
  .hire-main { padding: 0.6rem 0.7rem 0.65rem; }
  .hire-fit { gap: 0.5rem; }
  /* criteria always on-screen: compact horizontal strip */
  .hire-side {
    flex-direction: row;
    flex: 0 0 auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }
  .criteria,
  .payload {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .criteria:last-of-type,
  .payload {
    border-right: 0;
  }
  .criteria-h,
  .payload-h {
    margin-bottom: 0.35rem;
    font-size: 0.55rem;
  }
  .criteria li,
  .payload p {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .criteria ul {
    gap: 0.28rem;
  }
}

/* short phones / Duo — fit accept+reject+payload without page scroll */
@media (max-width: 720px) and (max-height: 740px) {
  .hire-main { padding: 0.5rem 0.6rem; }
  .hire-fit { gap: 0.4rem; }
  .mail-block {
    padding: 0.55rem 0.65rem;
  }
  .mail-addr {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }
  .criteria,
  .payload {
    padding: 0.4rem 0.5rem;
  }
  .criteria li,
  .payload p {
    font-size: 0.68rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   RICKROLL EASTER EGG — unexpected media containment event
   (cursed edition · red doors · residual scars)
   ═══════════════════════════════════════════════════════════ */

@keyframes rickroll-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rickroll-video-pop {
  0% { transform: translateY(28px) scale(0.84) rotate(-1.5deg); opacity: 0; }
  14% { opacity: 1; }
  24% { transform: translateY(0) scale(1.03) rotate(0.6deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes rickroll-fly {
  0% {
    transform: translate(var(--rick-x0), var(--rick-y0)) rotate(var(--rick-r0)) scale(var(--rick-s0));
    opacity: 0;
  }
  10% { opacity: 1; }
  34% {
    transform: translate(var(--rick-x1), var(--rick-y1)) rotate(var(--rick-r1)) scale(var(--rick-s1));
  }
  66% {
    transform: translate(var(--rick-x2), var(--rick-y2)) rotate(var(--rick-r2)) scale(var(--rick-s2));
  }
  88% { opacity: 1; }
  100% {
    transform: translate(var(--rick-x3), var(--rick-y3)) rotate(var(--rick-r3)) scale(var(--rick-s3));
    opacity: 0;
  }
}

@keyframes rickroll-glitch-bar {
  0%, 100% { opacity: 1; transform: none; }
  40% { opacity: 0.85; transform: translateX(1px); }
  55% { opacity: 1; transform: translateX(-1px); }
  70% { opacity: 0.9; transform: translateX(0); }
}

@keyframes rickroll-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1px) rotate(-0.2deg); }
  40% { transform: translate(3px, -1px) rotate(0.25deg); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
}

@keyframes rickroll-vignette-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes rick-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.35), 0 0 0 0 rgba(225, 6, 0, 0.5); }
  50% { box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.6), 0 0 10px 2px rgba(225, 6, 0, 0.55); }
}

@keyframes rick-dot-doom {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.55); filter: brightness(1.4); }
  70% { transform: scale(0.9); filter: brightness(0.85); }
}

@keyframes rick-ghost-drift {
  0% { opacity: 0; transform: translateY(8px) scale(0.7) rotate(-8deg); }
  12% { opacity: 0.9; }
  70% { opacity: 0.75; }
  100% { opacity: 0; transform: translateY(-28px) scale(0.95) rotate(12deg); }
}

@keyframes rick-close-flee {
  0% { transform: translate(0, 0); }
  35% { transform: translate(-42px, 18px) rotate(-4deg); }
  70% { transform: translate(18px, -10px) rotate(3deg); }
  100% { transform: translate(0, 0); }
}

@keyframes rick-scar-flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 0.45; }
  52% { opacity: 1; }
  80% { opacity: 0.7; }
}

/* red door of destiny */
.dot.d-red {
  position: relative;
  cursor: pointer;
  /* visual stays tiny; hit target is thumb-friendly */
  touch-action: manipulation;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s var(--ease);
}
.dot.d-red::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.dot.d-red:hover {
  filter: brightness(1.25);
  transform: scale(1.15);
}
.logo {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}
.logo.is-longpressing .logo-mark {
  color: var(--red-hot);
  box-shadow: 0 0 0 1px var(--red-line);
}
.dot.d-red.is-warned {
  animation: rick-dot-pulse 0.7s ease-in-out infinite;
}
.dot.d-red.is-doomed {
  animation: rick-dot-doom 0.35s steps(2, end) infinite;
  box-shadow: 0 0 0 2px rgba(255, 45, 34, 0.7), 0 0 14px 3px rgba(225, 6, 0, 0.65);
}
.dot.d-red.is-scarred {
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.55), 0 0 8px 1px rgba(225, 6, 0, 0.4);
  filter: saturate(1.3);
}

/* host infection while the song owns the machine */
body.is-rickrolled {
  cursor: wait;
}
body.is-rickrolled .app {
  filter: saturate(1.15) contrast(1.06);
}
body.is-rickrolled .live-pill {
  border-color: var(--red-line);
  color: var(--red-hot);
}
body.is-rickrolled .dock-label {
  color: var(--red-hot);
}
body.is-rickrolled .window-flag {
  color: var(--red-hot);
  animation: rickroll-glitch-bar 0.9s steps(2, end) infinite;
}
body.is-rick-scarred .live-pill-text,
body.is-rick-scarred .st-bad {
  animation: rick-scar-flicker 2.4s steps(2, end) infinite;
  color: var(--red-hot);
}

.rickroll-easter-egg {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(4.25rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 14%, rgba(225, 6, 0, 0.32), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(255, 45, 34, 0.16), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(20, 20, 24, 0.4), transparent 55%),
    rgba(0, 0, 0, 0.9);
  animation: rickroll-enter 120ms ease-out both, rickroll-shake 420ms ease-out 80ms 2;
  font-family: var(--font-mono);
}
.rickroll-easter-egg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, rgba(225, 6, 0, 0.22) 100%);
  animation: rickroll-vignette-pulse 2.2s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* full-viewport stage so flying GIFs cover the screen; player is flex-centered inside */
.rickroll-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding:
    max(0.5rem, env(safe-area-inset-top, 0px))
    max(0.5rem, env(safe-area-inset-right, 0px))
    max(3.75rem, env(safe-area-inset-bottom, 0px))
    max(0.5rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.rickroll-video-stack {
  position: relative;
  z-index: 2;
  width: min(86vw, 720px);
  max-width: 100%;
  /* shrink-wrap primary shell so centering is exact */
  display: block;
  margin: 0;
  flex: 0 1 auto;
  pointer-events: none;
}

.rickroll-video-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: 0;
  pointer-events: auto;
  animation: rickroll-video-pop 700ms cubic-bezier(0.19, 1, 0.22, 1) both;
  transform-origin: center center;
  box-sizing: border-box;
}

/* each restart lands on top of the last — the pile is the joke */
@keyframes rick-stack-slam {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%)
      translate(var(--rr-sx, 0px), calc(var(--rr-sy, 0px) + 28px))
      scale(0.78) rotate(var(--rr-sr, 0deg));
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%)
      translate(var(--rr-sx, 0px), var(--rr-sy, 0px))
      scale(1.04) rotate(var(--rr-sr, 0deg));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%)
      translate(var(--rr-sx, 0px), var(--rr-sy, 0px))
      scale(var(--rr-ss, 1)) rotate(var(--rr-sr, 0deg));
  }
}

.rickroll-video-shell.is-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  margin: 0;
  --rr-sx: 0px;
  --rr-sy: 0px;
  --rr-sr: 0deg;
  --rr-ss: 1;
  transform: translate(-50%, -50%) translate(var(--rr-sx), var(--rr-sy))
    rotate(var(--rr-sr)) scale(var(--rr-ss));
  animation: rick-stack-slam 480ms cubic-bezier(0.19, 1, 0.22, 1) both;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
  transform-origin: center center;
}
.rickroll-video-shell.is-stack .rickroll-video-flag {
  color: #fff;
  background: var(--red);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}

.rickroll-video-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.65rem;
  background: var(--chrome);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rickroll-video-chrome .rr-dots {
  display: inline-flex;
  gap: 0.28rem;
}
.rickroll-video-chrome .rr-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  display: block;
}
.rickroll-video-chrome .rr-dots i:first-child {
  background: var(--red);
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.8);
}
.rickroll-video-path {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rickroll-video-flag {
  color: var(--red-hot);
  font-weight: 700;
  letter-spacing: 0.08em;
  animation: rickroll-glitch-bar 1.4s steps(2, end) infinite;
}

.rickroll-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 10px 10px;
  background: #000;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(225, 6, 0, 0.22),
    4px 4px 0 rgba(225, 6, 0, 0.28);
}

.rickroll-youtube {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* mobile stack layers: full-bleed local GIF so the pile still moves */
.rickroll-stack-local {
  object-fit: cover;
  object-position: center top;
  background: #000;
  pointer-events: none;
}

/* full-screen GIF layer (sibling of stack, not confined to player width) */
.rickroll-popups {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.rickroll-gif {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: rickroll-fly;
  /* Match short clip (~7s song + load) so cutouts don't outlive the video */
  animation-duration: 8.8s;
  animation-delay: var(--rick-delay, 0s);
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
}

.rickroll-gif-cool { width: min(34vw, 320px); }
.rickroll-gif-spin { width: min(28vw, 210px); }
.rickroll-gif-sing { width: min(30vw, 260px); }

.rickroll-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 4;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.62);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), transform 0.2s var(--ease);
}
.rickroll-close.is-fleeing {
  animation: rick-close-flee 0.55s var(--ease) both;
  pointer-events: none;
}
.rickroll-close:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.rickroll-caption {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 4;
  transform: translateX(-50%);
  max-width: min(92vw, 480px);
  padding: 0.45rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(8, 8, 10, 0.86);
  border: 1px solid var(--line);
  text-align: center;
  pointer-events: none;
}
.rickroll-caption b {
  color: var(--red-hot);
  font-weight: 700;
}
.rickroll-caption .rr-lyric {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* residual ghosts after the leak "seals" */
.rick-ghost {
  position: fixed;
  z-index: 500;
  width: min(22vw, 140px);
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  animation: rick-ghost-drift 2.8s var(--ease) both;
}

/* ── NUCLEAR MODE ── */
@keyframes rick-nuclear-flash {
  0%, 100% { opacity: 0; }
  40% { opacity: 0.55; }
  55% { opacity: 0.1; }
  70% { opacity: 0.4; }
}

@keyframes rick-nuclear-strobe {
  0%, 100% { filter: saturate(1.2) contrast(1.08) hue-rotate(0deg); }
  50% { filter: saturate(1.6) contrast(1.2) hue-rotate(-8deg); }
}

@keyframes rick-launch-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rick-countdown-pop {
  0% { transform: scale(0.6); opacity: 0; }
  30% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes rick-rain-fall {
  0% { transform: translateY(-12vh) rotate(var(--rr-rot, 0deg)); opacity: 0; }
  8% { opacity: 0.85; }
  92% { opacity: 0.75; }
  100% { transform: translateY(110vh) rotate(calc(var(--rr-rot, 0deg) + 18deg)); opacity: 0; }
}

@keyframes rick-contam-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

body.is-rick-nuclear .app {
  animation: rick-nuclear-strobe 0.9s steps(2, end) infinite;
}
body.is-rick-nuclear .logo-text {
  color: var(--red-hot);
  text-shadow: 0 0 12px rgba(225, 6, 0, 0.7);
}
body.is-rick-contaminated .live-pill {
  border-color: var(--red-line);
}
body.is-rick-contaminated .live-pill-text {
  color: var(--red-hot);
}

.rickroll-easter-egg.is-nuclear {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 45, 34, 0.28), transparent 42%),
    radial-gradient(circle at 12% 18%, rgba(225, 6, 0, 0.4), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(255, 80, 40, 0.22), transparent 34%),
    rgba(0, 0, 0, 0.94);
  animation:
    rickroll-enter 100ms ease-out both,
    rickroll-shake 280ms ease-out 60ms 4;
}
.rickroll-easter-egg.is-nuclear::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(225, 6, 0, 0.35);
  mix-blend-mode: color-dodge;
  animation: rick-nuclear-flash 0.7s steps(2, end) infinite;
}
.rickroll-easter-egg.is-nuclear .rickroll-video-shell {
  box-shadow: 0 0 0 2px var(--red-hot), 0 0 60px rgba(225, 6, 0, 0.45);
}
.rickroll-easter-egg.is-nuclear .rickroll-gif {
  animation-duration: 9s;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 12px rgba(225, 6, 0, 0.35));
}
.rickroll-easter-egg.is-nuclear .rickroll-caption {
  border-color: var(--red-line);
  max-width: min(94vw, 560px);
}
.rickroll-easter-egg.is-nuclear .rickroll-close {
  border-color: var(--red-hot);
  color: var(--red-hot);
}

.rick-rain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.rick-rain-drop {
  position: absolute;
  top: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1.4vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 80, 70, 0.72);
  white-space: nowrap;
  animation: rick-rain-fall var(--rr-dur, 4.5s) linear var(--rr-delay, 0s) infinite;
  text-shadow: 0 0 8px rgba(225, 6, 0, 0.45);
}

/* pre-launch DEFCON screen */
.rick-launch {
  position: fixed;
  inset: 0;
  z-index: 620;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(225, 6, 0, 0.35), transparent 50%),
    #050506;
  color: var(--ink);
  font-family: var(--font-mono);
  animation: rick-launch-in 160ms ease-out both;
}
.rick-launch-inner {
  width: min(92vw, 420px);
  display: grid;
  gap: 0.75rem;
  text-align: center;
  border: 1px solid var(--red-line);
  background: rgba(10, 10, 12, 0.92);
  padding: 1.25rem 1.1rem 1.35rem;
  box-shadow: 0 0 40px rgba(225, 6, 0, 0.35), 4px 4px 0 rgba(225, 6, 0, 0.25);
}
.rick-launch-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-hot);
  font-weight: 700;
}
.rick-launch-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #fff;
}
.rick-launch-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.rick-launch-count {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  color: var(--red-hot);
  line-height: 1;
  min-height: 1em;
  animation: rick-countdown-pop 0.35s var(--ease) both;
  text-shadow: 0 0 24px rgba(225, 6, 0, 0.65);
}
.rick-launch-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
.rick-launch-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.35s linear;
}

/* atmospheric contamination floater (session) */
.rick-contam {
  position: fixed;
  z-index: 480;
  width: min(18vw, 110px);
  cursor: pointer;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: rick-contam-bob 2.4s ease-in-out infinite;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}
.rick-contam:hover {
  opacity: 1;
  transform: scale(1.08) rotate(4deg);
}
.rick-contam-tag {
  position: fixed;
  z-index: 481;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-hot);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--red-line);
  padding: 0.15rem 0.35rem;
  pointer-events: none;
}

/* ── ORBITAL STRIKE + SESSION FALLOUT ── */
@keyframes rick-orbital-spin {
  0% { filter: hue-rotate(0deg) saturate(1.3) contrast(1.1); }
  50% { filter: hue-rotate(-25deg) saturate(1.7) contrast(1.25); }
  100% { filter: hue-rotate(12deg) saturate(1.4) contrast(1.15); }
}

@keyframes rick-fallout-grain {
  0%, 100% { opacity: 0.04; }
  40% { opacity: 0.09; }
  70% { opacity: 0.06; }
}

@keyframes rick-fallout-glitch {
  0%, 100% { transform: none; filter: none; }
  20% { transform: translate(-2px, 0); filter: hue-rotate(-20deg) saturate(1.4); }
  40% { transform: translate(2px, 1px); filter: hue-rotate(15deg); }
  60% { transform: translate(-1px, -1px) skewX(-0.4deg); }
  80% { transform: translate(1px, 0); }
}

@keyframes rick-corrupt-blink {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.35; color: var(--red-hot); }
  55% { opacity: 1; }
}

.rickroll-easter-egg.is-orbital {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 90, 40, 0.35), transparent 38%),
    radial-gradient(circle at 20% 70%, rgba(225, 6, 0, 0.35), transparent 32%),
    radial-gradient(circle at 80% 40%, rgba(120, 40, 255, 0.12), transparent 30%),
    rgba(0, 0, 0, 0.95);
  animation:
    rickroll-enter 80ms ease-out both,
    rickroll-shake 220ms ease-out 40ms 6;
}
.rickroll-easter-egg.is-orbital::after {
  background: rgba(255, 40, 20, 0.4);
  animation: rick-nuclear-flash 0.45s steps(2, end) infinite;
}
.rickroll-easter-egg.is-orbital .rickroll-video-shell {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--red-hot),
    0 0 80px rgba(225, 6, 0, 0.55);
}
.rickroll-easter-egg.is-orbital .rickroll-gif {
  animation-duration: 9.2s;
}
.rick-launch.is-orbital .rick-launch-inner {
  border-color: rgba(255, 80, 60, 0.7);
  box-shadow: 0 0 50px rgba(225, 6, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.rickroll-easter-egg.is-interstellar {
  background:
    radial-gradient(circle at 50% 50%, rgba(140, 80, 255, 0.18), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(255, 90, 40, 0.4), transparent 36%),
    radial-gradient(circle at 15% 75%, rgba(225, 6, 0, 0.4), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(80, 120, 255, 0.16), transparent 28%),
    rgba(0, 0, 0, 0.96);
  animation:
    rickroll-enter 70ms ease-out both,
    rickroll-shake 180ms ease-out 30ms 8;
}
.rickroll-easter-egg.is-interstellar::after {
  background: rgba(160, 60, 255, 0.28);
  animation: rick-nuclear-flash 0.35s steps(2, end) infinite;
}
.rickroll-easter-egg.is-interstellar .rickroll-video-shell {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--red-hot),
    0 0 0 8px rgba(120, 80, 255, 0.55),
    0 0 90px rgba(225, 6, 0, 0.6);
}
.rickroll-easter-egg.is-interstellar .rickroll-gif {
  animation-duration: 9.5s;
}
body.is-rick-interstellar .app {
  animation: rick-orbital-spin 0.75s steps(3, end) infinite;
}
body.is-rick-interstellar .logo-text {
  color: #c8b0ff;
  text-shadow: 0 0 14px rgba(140, 80, 255, 0.7), 0 0 8px rgba(225, 6, 0, 0.4);
}
.rick-launch.is-interstellar .rick-launch-inner {
  border-color: rgba(160, 100, 255, 0.65);
  box-shadow:
    0 0 50px rgba(140, 80, 255, 0.4),
    0 0 40px rgba(225, 6, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}
.rick-launch.is-interstellar .rick-launch-title {
  color: #e8d8ff;
  text-shadow: 0 0 24px rgba(140, 80, 255, 0.75), 0 0 12px rgba(225, 6, 0, 0.5);
}
.rick-launch.is-interstellar .rick-launch-kicker {
  color: #c8b0ff;
}

/* ── MULTIVERSAL COLLAPSE ── */
@keyframes rick-collapse-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rick-collapse-scan {
  0% { background-position: 0 0; }
  100% { background-position: 0 40px; }
}
@keyframes rick-collapse-glitch {
  0%, 100% { transform: none; filter: none; }
  30% { transform: translate(-3px, 1px); filter: hue-rotate(-30deg); }
  60% { transform: translate(3px, -1px) skewX(-0.6deg); }
}

.rickroll-easter-egg.is-multiversal {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 0, 40, 0.35), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(80, 0, 120, 0.3), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(225, 6, 0, 0.35), transparent 30%),
    #000;
  animation:
    rickroll-enter 60ms ease-out both,
    rickroll-shake 140ms ease-out 20ms 10;
}
.rickroll-easter-egg.is-multiversal::after {
  background: rgba(255, 0, 40, 0.45);
  animation: rick-nuclear-flash 0.28s steps(2, end) infinite;
}
.rickroll-easter-egg.is-multiversal .rickroll-video-shell {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 6px #e10600,
    0 0 0 10px rgba(0, 0, 0, 0.9),
    0 0 100px rgba(225, 6, 0, 0.75);
}
body.is-rick-multiversal .app {
  animation: rick-collapse-glitch 0.5s steps(2, end) infinite;
  filter: contrast(1.2) saturate(1.4);
}

.rick-launch.is-multiversal .rick-launch-inner {
  border-color: #e10600;
  background: #050306;
  box-shadow: 0 0 60px rgba(225, 6, 0, 0.65), inset 0 0 40px rgba(225, 6, 0, 0.12);
}
.rick-launch.is-multiversal .rick-launch-title {
  color: #fff;
  text-shadow: 0 0 20px #e10600, 0 0 40px rgba(225, 6, 0, 0.8);
}
.rick-launch.is-multiversal .rick-launch-kicker {
  color: var(--red-hot);
}

/* permanent kill screen — classic BSOD · only refresh recovers */
@keyframes bsod-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.rick-collapse {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  align-content: start;
  justify-items: stretch;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
  overflow: auto;
  /* classic Windows NT/9x/XP blue */
  background: #0000aa;
  color: #ffffff;
  font-family: "Lucida Console", "Courier New", ui-monospace, monospace;
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
  line-height: 1.45;
  cursor: not-allowed;
  user-select: none;
  animation: rick-collapse-in 120ms steps(2, end) both;
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}
.rick-collapse-bsod {
  width: min(100%, 52rem);
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}
.rick-collapse .bsod-lead {
  margin: 0 0 1.1em;
  font-weight: 400;
}
.rick-collapse .bsod-stop-name {
  margin: 0 0 1.1em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rick-collapse .bsod-body {
  margin: 0 0 1.05em;
  font-weight: 400;
}
.rick-collapse .bsod-tech-h {
  margin: 1.2em 0 0.55em;
  font-weight: 400;
}
.rick-collapse .bsod-tech {
  margin: 0 0 0.35em;
  font-weight: 400;
  word-break: break-word;
}
.rick-collapse .bsod-dump {
  margin-top: 1.1em;
}
.rick-collapse .bsod-lyric {
  margin: 1.4em 0 0;
  opacity: 0.92;
  letter-spacing: 0.02em;
}
.rick-collapse .bsod-reboot {
  margin: 1.5em 0 0;
  font-weight: 400;
}
.rick-collapse .bsod-blink {
  display: inline-block;
  width: 0.55em;
  background: #fff;
  color: transparent;
  animation: bsod-blink 1.05s steps(1, end) infinite;
}

body.is-rick-collapsed {
  overflow: hidden !important;
  cursor: not-allowed;
  background: #0000aa;
}
body.is-rick-collapsed .app {
  /* fully buried under BSOD — no peek of the portfolio */
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
body.is-rick-collapsed .mischief-layer,
body.is-rick-collapsed .cmd {
  display: none !important;
}

@media (max-width: 640px) {
  .rick-collapse {
    font-size: 0.7rem;
    padding: 1rem 0.85rem 2rem;
  }
}

.rick-launch.is-orbital .rick-launch-title {
  color: var(--red-hot);
  text-shadow: 0 0 20px rgba(225, 6, 0, 0.7);
}

body.is-rick-orbital .app {
  animation: rick-orbital-spin 1.1s steps(3, end) infinite;
}
body.is-rick-orbital .logo-text span {
  color: var(--red-hot);
}

/* session-long site-wide fallout (after orbital) */
body.is-rick-fallout .grain {
  opacity: 0.09;
  animation: rick-fallout-grain 3.5s steps(2, end) infinite;
}
body.is-rick-fallout .void {
  background:
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(225, 6, 0, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 80%, rgba(255, 60, 40, 0.05), transparent 50%),
    var(--bg);
}
body.is-rick-fallout .logo-text {
  text-shadow: 0 0 8px rgba(225, 6, 0, 0.25);
}
body.is-rick-fallout .top-tag,
body.is-rick-fallout .floor-msg,
body.is-rick-fallout .floor-domain {
  animation: rick-corrupt-blink 5s steps(2, end) infinite;
}
body.is-rick-fallout .live-pill {
  border-color: var(--red-line);
}
body.is-rick-fallout .live-pill-text {
  color: var(--red-hot);
}
body.is-rick-fallout .dock-btn.is-active .dock-label {
  color: var(--red-hot);
}
body.is-rick-fallout.is-rick-glitching .app {
  animation: rick-fallout-glitch 0.35s steps(2, end);
}
body.is-rick-fallout .window-flag {
  color: var(--red-hot);
}
.rr-corrupt-mark {
  color: var(--red-hot) !important;
  text-shadow: 0 0 6px rgba(225, 6, 0, 0.4);
}

@media (max-width: 640px) {
  .rickroll-easter-egg {
    padding:
      max(0.65rem, env(safe-area-inset-top, 0px))
      max(0.65rem, env(safe-area-inset-right, 0px))
      max(3.5rem, env(safe-area-inset-bottom, 0px))
      max(0.65rem, env(safe-area-inset-left, 0px));
  }
  .rickroll-stage {
    padding:
      max(0.35rem, env(safe-area-inset-top, 0px))
      max(0.35rem, env(safe-area-inset-right, 0px))
      max(3.25rem, env(safe-area-inset-bottom, 0px))
      max(0.35rem, env(safe-area-inset-left, 0px));
  }
  .rickroll-video-stack {
    width: min(92vw, 560px);
    max-width: calc(100vw - 1.5rem);
  }
  .rickroll-video-shell {
    width: 100%;
  }
  .rickroll-gif-cool { width: min(48vw, 230px); }
  .rickroll-gif-spin { width: min(36vw, 160px); }
  .rickroll-gif-sing { width: min(42vw, 190px); }
  .rickroll-video-chrome { font-size: 0.6rem; }
  .rick-contam { width: min(28vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .rickroll-easter-egg,
  .rickroll-video-shell,
  .rickroll-video-shell.is-stack,
  .rickroll-easter-egg::before,
  .rickroll-easter-egg.is-nuclear::after,
  .rickroll-easter-egg.is-orbital::after,
  .rick-ghost,
  .rickroll-close.is-fleeing,
  .rick-rain-drop,
  .rick-launch,
  .rick-launch-count,
  .rick-contam,
  body.is-rick-nuclear .app,
  body.is-rick-orbital .app,
  body.is-rick-interstellar .app,
  body.is-rick-multiversal .app,
  .rick-collapse,
  body.is-rick-fallout .grain,
  body.is-rick-fallout .top-tag,
  body.is-rick-fallout .floor-msg,
  body.is-rick-fallout .floor-domain,
  body.is-rick-fallout.is-rick-glitching .app {
    animation: none !important;
  }
  .rickroll-video-shell.is-stack {
    opacity: 1;
    transform: translate(-50%, -50%)
      translate(var(--rr-sx, 0px), var(--rr-sy, 0px))
      scale(var(--rr-ss, 1)) rotate(var(--rr-sr, 0deg));
  }
  .rickroll-gif {
    animation: none !important;
    opacity: 0.55;
    transform: translate(var(--rick-x1), var(--rick-y1)) rotate(var(--rick-r1)) scale(calc(var(--rick-s1) * 0.85));
  }
  .rickroll-video-flag,
  .dot.d-red.is-warned,
  .dot.d-red.is-doomed,
  body.is-rickrolled .window-flag,
  body.is-rick-scarred .live-pill-text,
  body.is-rick-scarred .st-bad {
    animation: none !important;
  }
}
