/* Base layer: fonts, reset and the design system. css/sections.css is unlayered, so its per-element rules win over this file the way inline styles used to. */
@layer base {
  /* ---------- fonts, reset, keyframes ---------- */
  @font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/anton-latin-ext.woff2) format("woff2");
    unicode-range:
      U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
      U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/anton-latin.woff2) format("woff2");
    unicode-range:
      U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
      U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "Archivo Black";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/archivo-black-latin-ext.woff2) format("woff2");
    unicode-range:
      U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
      U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "Archivo Black";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/archivo-black-latin.woff2) format("woff2");
    unicode-range:
      U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
      U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "Big Shoulders Display";
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url(../fonts/big-shoulders-display-latin-ext.woff2) format("woff2");
    unicode-range:
      U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
      U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "Big Shoulders Display";
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url(../fonts/big-shoulders-display-latin.woff2) format("woff2");
    unicode-range:
      U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
      U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "Fragment Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/fragment-mono-latin-ext.woff2) format("woff2");
    unicode-range:
      U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
      U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "Fragment Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/fragment-mono-latin.woff2) format("woff2");
    unicode-range:
      U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
      U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format("woff2");
    unicode-range:
      U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
      U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(../fonts/schibsted-grotesk-latin.woff2) format("woff2");
    unicode-range:
      U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
      U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "Silkscreen";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/silkscreen-latin-ext.woff2) format("woff2");
    unicode-range:
      U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
      U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "Silkscreen";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/silkscreen-latin.woff2) format("woff2");
    unicode-range:
      U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
      U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  x-dc {
    display: none !important;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
  }
  body {
    margin: 0;
    background: #070a16;
    color: #e6e9f5;
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  html,
  body,
  #dc-root,
  #dc-root > div {
    height: auto !important;
    min-height: 100%;
  }
  #dc-root,
  #dc-root > div {
    overflow: visible !important;
  }
  a {
    color: #9aaeff;
    text-decoration: none;
  }
  a:hover {
    color: #e6e9f5;
  }
  button {
    font: inherit;
    cursor: pointer;
  }
  :focus-visible {
    outline: 2px solid #9aaeff;
    outline-offset: 3px;
  }
  ::selection {
    background: #3354ff;
    color: #f2f4fa;
  }
  @keyframes blink {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.2;
    }
  }
  @keyframes marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
  @keyframes ring {
    0% {
      transform: scale(0.6);
      opacity: 0.6;
    }
    100% {
      transform: scale(1.3);
      opacity: 0;
    }
  }
  @keyframes scanDown {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(260px);
    }
  }
  html {
    scrollbar-color: #3354ff #070a16;
    scrollbar-width: thin;
  }
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #070a16;
    border-left: 1px solid #141a33;
  }
  ::-webkit-scrollbar-thumb {
    background: #1e2647;
    border: 2px solid #070a16;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #3354ff;
  }
  ::-webkit-scrollbar-corner {
    background: #070a16;
  }
  @keyframes flow {
    to {
      stroke-dashoffset: -48;
    }
  }
  @keyframes spinSlow {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes pulseScale {
    0% {
      transform: scale(0.8);
      opacity: 0.9;
    }
    100% {
      transform: scale(1.18);
      opacity: 0;
    }
  }
  @keyframes travel {
    from {
      offset-distance: 0%;
    }
    to {
      offset-distance: 100%;
    }
  }
  @keyframes packetPass {
    0% {
      transform: translateX(0);
      opacity: 0;
    }
    8% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: translateX(420px);
      opacity: 0;
    }
  }
  @keyframes packetBlock {
    0% {
      transform: translateX(0);
      opacity: 0;
    }
    8% {
      opacity: 1;
    }
    45% {
      transform: translateX(198px);
      opacity: 1;
    }
    62% {
      transform: translateX(198px);
      opacity: 0;
    }
    100% {
      transform: translateX(198px);
      opacity: 0;
    }
  }
  @keyframes cursorX {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(358px);
    }
  }
  @keyframes scope {
    from {
      stroke-dashoffset: 0;
    }
    to {
      stroke-dashoffset: -1900;
    }
  }
  @keyframes flash {
    0%,
    100% {
      opacity: 0;
    }
    50% {
      opacity: 0.9;
    }
  }
  summary::-webkit-details-marker {
    display: none;
  }
  @media (pointer: fine) {
    html.has-cur,
    html.has-cur * {
      cursor: none !important;
    }
  }
  svg,
  svg *,
  button,
  summary,
  [aria-hidden="true"],
  [role="img"],
  [data-noselect] {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  svg,
  img {
    -webkit-user-drag: none;
  }
  .nojs {
    max-width: 640px;
    margin: 12vh auto;
    padding: 0 24px;
    font-size: 18px;
    line-height: 1.6;
  }
  .nojs h1 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
  .nojs li {
    margin-bottom: 8px;
  }

  /* ==========================================================================
   AGENTWARE: design system layer
   --------------------------------------------------------------------------
   The template in index.html keeps most component styling inline. This file
   holds what is shared: tokens, the ten type roles, the background system,
   the run rail, phase gates, the hero, and the components that were moved
   from inline boxes to classes.
   ========================================================================== */

  @font-face {
    font-family: "Big Shoulders Stencil";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/big-shoulders-stencil-latin.woff2) format("woff2");
  }
  @font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/chakra-petch-700-latin.woff2) format("woff2");
  }
  @font-face {
    font-family: "Doto";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(../fonts/doto-latin.woff2) format("woff2");
  }
  @font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 75% 112.5%;
    font-display: swap;
    src: url(../fonts/martian-mono-latin.woff2) format("woff2");
  }
  @font-face {
    font-family: "Newsreader";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/newsreader-italic-latin.woff2) format("woff2");
  }

  @property --tint {
    syntax: "<color>";
    inherits: true;
    initial-value: rgba(51, 84, 255, 0.15);
  }

  :root {
    /* color */
    --bg: #070a16;
    --bg-2: #0c1124;
    --bg-3: #111a3d;
    --bg-deep: #050712;
    --line: #141a33;
    --line-2: #1e2647;
    --tx: #e6e9f5;
    --tx-2: #c3c9de;
    --mute: #8a93b4;
    --dim: #7d86a6;
    --faint: #727ca1;
    --ac: #3354ff;
    --ac-2: #9aaeff;
    --ok: #6ee7a8;
    --bad: #ff6b6b;
    /* type roles: one job per family */
    --f-body: "Schibsted Grotesk", system-ui, sans-serif; /* reading text, UI, sentence headlines */
    --f-sys: "Fragment Mono", ui-monospace, monospace; /* system labels, metadata, code */
    --f-wide: "Archivo Black", sans-serif; /* declarations */
    --f-cond: "Anton", sans-serif; /* one-word section titles */
    --f-tall: "Big Shoulders Display", sans-serif; /* numerals and tall slogans */
    --f-pixel: "Silkscreen", monospace; /* level IDs, placeholders */
    --f-serif: "Newsreader", Georgia, serif; /* the human voice: pull quotes */
    --f-data: "Martian Mono", ui-monospace, monospace; /* measured values, readouts */
    --f-dot: "Doto", ui-monospace, monospace; /* counters */
    --f-head:
      "Chakra Petch", "Schibsted Grotesk", system-ui, sans-serif; /* every section heading; change this one line to restyle them all */
    --f-haz: "Big Shoulders Stencil", "Big Shoulders Display", sans-serif; /* hazard states */
    /* motion */
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --d1: 0.2s;
    --d2: 0.4s;
    --d3: 0.8s;
    --d4: 1.2s;
    /* layout */
    --pad: clamp(20px, 4vw, 56px);
    --max: 1320px;
  }

  html {
    --tint: rgba(51, 84, 255, 0.15);
    transition: --tint 1.4s linear;
  }
  html[data-phase="1"] {
    --tint: rgba(154, 174, 255, 0.11);
  }
  html[data-phase="2"] {
    --tint: rgba(255, 107, 107, 0.085);
  }
  html[data-phase="3"] {
    --tint: rgba(110, 231, 168, 0.065);
  }
  html[data-phase="4"] {
    --tint: rgba(230, 233, 245, 0.06);
  }
  html.halted {
    --tint: rgba(255, 107, 107, 0.17);
  }
  html.halted *,
  html.halted *::before,
  html.halted *::after {
    animation-play-state: paused !important;
  }

  #dc-root {
    position: relative;
    z-index: 1;
  }
  ::selection {
    background: var(--ac);
    color: #f2f4fa;
  }
  a {
    text-underline-offset: 0.2em;
  }

  /* ---------- background system ---------- */
  .bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
  }
  .bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(75% 60% at 82% 0%, var(--tint), transparent 72%),
      radial-gradient(50% 45% at 0% 100%, var(--tint), transparent 70%);
  }
  .bg-grid {
    position: absolute;
    inset: -96px;
    opacity: 0.9;
    background-image:
      linear-gradient(to right, rgba(154, 174, 255, 0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(154, 174, 255, 0.04) 1px, transparent 1px),
      linear-gradient(to right, rgba(154, 174, 255, 0.065) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(154, 174, 255, 0.065) 1px, transparent 1px);
    background-size:
      24px 24px,
      24px 24px,
      96px 96px,
      96px 96px;
    -webkit-mask-image: radial-gradient(110% 85% at 70% 15%, #000 10%, transparent 78%);
    mask-image: radial-gradient(110% 85% at 70% 15%, #000 10%, transparent 78%);
  }
  .bg-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: -30vh;
    height: 30vh;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(154, 174, 255, 0.035) 70%,
      rgba(154, 174, 255, 0.09) 99%,
      transparent
    );
    animation: beam 11s linear infinite;
  }
  .bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(3, 5, 12, 0.22) 3px 4px);
  }
  @keyframes beam {
    to {
      transform: translate3d(0, 140vh, 0);
    }
  }

  /* ---------- header ---------- */
  .hd-in {
    max-width: var(--max);
    margin: 0 auto;
    padding: 11px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .hd-r {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .hd nav[aria-label="Primary"] a {
    position: relative;
    padding: 6px 0;
  }
  .hd nav[aria-label="Primary"] a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ac-2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--d2) var(--ease);
  }
  .hd nav[aria-label="Primary"] a:hover::after,
  .hd nav[aria-label="Primary"] a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  .hd-phase {
    display: none;
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--dim);
    white-space: nowrap;
  }
  .hd-phase b {
    font: 500 11px/1 var(--f-data);
    color: var(--ac-2);
    margin-right: 8px;
  }
  .hd-kill {
    display: none;
    align-items: center;
    gap: 9px;
    height: 36px;
    padding: 0 13px;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--ok);
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.14em;
    transition:
      border-color var(--d2) var(--ease),
      background-color var(--d2) var(--ease),
      color var(--d1) var(--ease);
  }
  .hd-kill i {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    transition: border-radius var(--d1) var(--ease);
  }
  .hd-kill:hover {
    border-color: var(--bad);
    color: var(--bad);
  }
  .hd-kill:hover i {
    border-radius: 0;
  }
  .hd-kill:active {
    transform: scale(0.97);
  }
  .hd-kill[data-halted="true"] {
    background: var(--bad);
    border-color: var(--bad);
    color: var(--bg);
  }
  .hd-kill[data-halted="true"] i {
    border-radius: 0;
  }
  @media (min-width: 1200px) {
    .hd-kill {
      display: flex;
    }
  }
  @media (min-width: 1340px) {
    .hd-phase {
      display: block;
    }
  }
  /* phones: the Discord button lives in the slide-out menu, not the header */
  @media (max-width: 700px) {
    .hd-cta {
      display: none;
    }
  }

  /* ---------- run rail ---------- */
  .rail {
    display: none;
  }
  @media (min-width: 1200px) and (min-height: 620px) {
    .rail {
      position: fixed;
      z-index: 20;
      top: 50%;
      left: max(8px, calc(50% - 660px - var(--pad) - 6px));
      width: 40px;
      height: min(420px, 56vh);
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
    }
    @media (max-width: 1560px) {
      .rail {
        left: 8px;
      }
    }
  }
  .rail-line {
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 34px;
    width: 1px;
    background: var(--line-2);
  }
  .rail-fill {
    position: absolute;
    inset: 0;
    background: var(--ac);
    transform-origin: top;
    transform: scaleY(0);
  }
  .rail[data-halted="true"] .rail-fill {
    background: var(--bad);
  }
  .rail-n {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
  }
  .rail-d {
    width: 9px;
    height: 9px;
    border: 1px solid var(--faint);
    background: var(--bg);
    transition:
      transform var(--d2) var(--ease),
      background-color var(--d2) var(--ease),
      border-color var(--d2) var(--ease);
  }
  .rail-n[data-state="done"] .rail-d {
    background: var(--ac);
    border-color: var(--ac);
  }
  .rail-n[data-state="on"] .rail-d {
    background: var(--tx);
    border-color: var(--tx);
    transform: rotate(45deg) scale(1.25);
  }
  .rail[data-halted="true"] .rail-n[data-state="on"] .rail-d {
    background: var(--bad);
    border-color: var(--bad);
  }
  .rail-t {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translate(-6px, -50%);
    padding: 5px 8px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.14em;
    white-space: nowrap;
    color: var(--tx);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--d1) var(--ease),
      transform var(--d2) var(--ease);
  }
  .rail-t b {
    font: 500 11px/1 var(--f-data);
    color: var(--ac-2);
  }
  .rail-n:hover .rail-t,
  .rail-n:focus-visible .rail-t {
    opacity: 1;
    transform: translate(0, -50%);
  }
  .rail-n:hover .rail-d {
    border-color: var(--ac-2);
  }
  .rail-idx {
    font: 400 10px/1 var(--f-data);
    letter-spacing: 0.04em;
    color: var(--faint);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 8px;
  }
  .rail-idx b {
    font-weight: 500;
    color: var(--ac-2);
  }

  /* ---------- section register (index, name, phase) ---------- */
  .reg {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font: 400 12px/1 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--dim);
    white-space: nowrap;
    min-width: 0;
  }
  h2.reg {
    margin: 0 0 36px;
  }
  .reg-i {
    font: 500 11px/1 var(--f-data);
    letter-spacing: 0.02em;
    color: var(--bg);
    background: var(--ac-2);
    padding: 4px 6px;
  }
  .reg-n {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .reg-l {
    flex: 1 1 40px;
    min-width: 24px;
    height: 1px;
    background: var(--line-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--d4) var(--ease-out) 0.1s;
  }
  .reg.is-in .reg-l {
    transform: scaleX(1);
  }
  .reg-p {
    font: 400 11px/1 var(--f-data);
    letter-spacing: 0.06em;
    color: var(--faint);
  }
  .reg-haz {
    color: var(--bad);
  }
  .reg-haz .reg-i {
    background: var(--bad);
  }
  .reg-haz .reg-l {
    height: 5px;
    background: repeating-linear-gradient(-45deg, var(--bad) 0 4px, transparent 4px 9px);
    opacity: 0.55;
  }
  @media (max-width: 560px) {
    .reg-p {
      display: none;
    }
    .reg {
      font-size: 11px;
      gap: 10px;
    }
  }

  /* ---------- phase gates ---------- */
  .gate {
    position: relative;
    border-top: 1px solid var(--line);
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(12, 17, 36, 0.75), rgba(7, 10, 22, 0.2));
  }
  .gate-in {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    height: clamp(96px, 10vw, 148px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--dim);
    white-space: nowrap;
  }
  .gate-prev b {
    font-weight: 400;
    color: var(--ok);
    margin-left: 6px;
  }
  .gate-wire {
    position: relative;
    flex: 0 1 clamp(48px, 16vw, 260px);
    height: 1px;
    background: var(--line-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--d4) var(--ease-out);
  }
  .gate-wire::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -4px;
    width: 9px;
    height: 9px;
    background: var(--ac);
  }
  .gate-wire i {
    position: absolute;
    left: 0;
    top: -2px;
    width: 22px;
    height: 5px;
    background: var(--tx);
    animation: gatePacket 2.6s var(--ease) infinite;
  }
  .gate-no {
    font: 900 clamp(40px, 6vw, 84px)/0.8 var(--f-dot);
    letter-spacing: 0;
    color: var(--ac-2);
    opacity: 0;
    transition: opacity var(--d3) var(--ease) 0.5s;
  }
  .gate-meta {
    opacity: 0;
    transition: opacity var(--d3) var(--ease) 0.7s;
  }
  .gate-name {
    position: absolute;
    right: var(--pad);
    top: 50%;
    font: 400 clamp(72px, 10.5vw, 152px)/0.74 var(--f-cond);
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-2);
    transform: translate(6%, -46%);
    clip-path: inset(0 0 100% 0);
    transition:
      clip-path var(--d4) var(--ease-out) 0.2s,
      transform 1.6s var(--ease-out) 0.2s,
      -webkit-text-stroke-color var(--d4) linear;
  }
  .gate.is-in .gate-wire {
    transform: scaleX(1);
  }
  .gate.is-in .gate-no,
  .gate.is-in .gate-meta {
    opacity: 1;
  }
  .gate.is-in .gate-name {
    clip-path: inset(0 0 0 0);
    transform: translate(0, -46%);
    -webkit-text-stroke-color: #2b3a86;
  }
  @keyframes gatePacket {
    0% {
      transform: translateX(0);
      opacity: 0;
    }
    15% {
      opacity: 1;
    }
    85% {
      opacity: 1;
    }
    100% {
      transform: translateX(calc(clamp(48px, 16vw, 260px) - 22px));
      opacity: 0;
    }
  }
  @media (max-width: 640px) {
    .gate-meta {
      display: none;
    }
    .gate-name {
      -webkit-text-stroke-color: var(--line-2);
    }
  }

  /* ---------- type roles ---------- */
  .t-title {
    margin: 0;
    font: 900 clamp(36px, 9.5vw, 56px)/0.94 var(--f-head);
    letter-spacing: -0.055em;
    white-space: nowrap;
    color: var(--tx);
  }
  @media (min-width: 1081px) {
    .t-title {
      font-size: clamp(44px, 4.4vw, 64px);
    }
  }
  .t-wide {
    margin: 0;
    font: 900 clamp(24px, 2.9vw, 40px)/1 var(--f-head);
    letter-spacing: -0.045em;
    text-wrap: balance;
  }
  .t-wide-s {
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.02;
    max-width: 900px;
  }
  .t-tall {
    margin: 0;
    font: 900 clamp(34px, 4.3vw, 62px)/0.96 var(--f-head);
    letter-spacing: -0.05em;
  }
  .t-tall-s {
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1;
    letter-spacing: -0.045em;
  }
  .t-haz {
    margin: 0;
    font: 900 clamp(34px, 4.3vw, 62px)/0.96 var(--f-head);
    letter-spacing: -0.05em;
    color: var(--tx);
    text-wrap: balance;
  }
  .t-disk {
    margin: 0;
    font: 400 clamp(22px, 2.7vw, 36px)/1.1 var(--f-sys);
    letter-spacing: -0.04em;
    text-transform: uppercase;
  }
  .t-disk::before {
    content: "$ ls ";
    color: var(--ac-2);
    text-transform: none;
  }
  .t-say {
    margin: 0;
    font: 800 clamp(26px, 3.2vw, 44px)/1.04 var(--f-head);
    letter-spacing: -0.04em;
    text-wrap: balance;
  }
  .t-say-s {
    font-size: clamp(24px, 2.7vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  .pull {
    margin: 0;
    font: italic 500 clamp(28px, 3.5vw, 48px)/1.06 var(--f-serif);
    letter-spacing: -0.025em;
    color: var(--ac-2);
    text-wrap: balance;
  }
  .pull::before {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    background: var(--ac-2);
    margin-bottom: 22px;
  }
  .data-n {
    font: 600 24px/1 var(--f-data);
    font-stretch: 87.5%;
    letter-spacing: -0.02em;
    color: var(--ac-2);
    font-variant-numeric: tabular-nums;
  }
  .dot-n {
    font: 900 clamp(64px, 7vw, 104px)/0.78 var(--f-dot);
    letter-spacing: -0.04em;
    color: var(--ac-2);
    font-variant-numeric: tabular-nums;
  }
  .rule-n {
    font: 300 30px/1 var(--f-data);
    font-stretch: 75%;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px var(--ac);
    transition: color var(--d2) var(--ease);
  }
  #rules [data-reveal]:hover .rule-n {
    color: var(--ac);
  }
  /* heading entrances differ by role, so the page does not repeat one reveal */
  .t-in {
    display: block;
    clip-path: inset(0 0 105% 0);
    transform: translateY(18%);
    transition:
      clip-path var(--d4) var(--ease-out),
      transform var(--d4) var(--ease-out);
  }
  .is-in > .t-in {
    clip-path: inset(-12% -4% -12% -4%);
    transform: none;
  }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    overflow-x: clip;
  }
  .hero-in {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(16px, 2.2vw, 30px) var(--pad) clamp(22px, 2.6vw, 38px);
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
  }
  .hero-kick {
    font: 400 12px/1 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--dim);
  }
  .hero-kick span {
    color: var(--ac-2);
  }
  .hero-h1 {
    margin: 0;
    perspective: 600px;
    font: 700 clamp(44px, 13vw, 120px)/0.86 var(--f-head);
    letter-spacing: -0.035em;
    margin-left: -0.03em;
    white-space: nowrap;
  }
  html.halted .hero-h1 {
    animation: glitch 0.5s steps(3) 1 both !important;
    animation-play-state: running !important;
  }
  @keyframes glitch {
    0% {
      text-shadow:
        6px 0 0 var(--bad),
        -6px 0 0 var(--ac);
      transform: translateX(-4px) skewX(-6deg);
    }
    40% {
      text-shadow:
        -4px 0 0 var(--bad),
        4px 0 0 var(--ac);
      transform: translateX(3px);
    }
    100% {
      text-shadow: none;
      transform: none;
    }
  }
  .hero-tag {
    font: 500 clamp(25px, 3vw, 42px)/1.05 var(--f-body);
    letter-spacing: -0.03em;
    color: var(--ac-2);
  }
  .caret {
    display: inline-block;
    width: 0.09em;
    height: 0.85em;
    background: var(--ac-2);
    margin-left: 8px;
    vertical-align: -0.06em;
    animation: blink 1.1s steps(2) infinite;
  }
  .hero-p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--mute);
    max-width: 560px;
    text-wrap: pretty;
  }
  .hero-p span {
    color: var(--tx);
  }
  .hero-cta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
  }
  .hero-when {
    font: 400 12px/1.8 var(--f-sys);
    color: var(--tx);
  }
  .hero-when span {
    color: var(--dim);
  }
  .btn-go {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ac);
    color: #f2f4fa;
    padding: 6px 6px 6px 24px;
    font: 700 16px/1 var(--f-body);
    transform: translate(var(--bx, 0px), var(--by, 0px));
    transition:
      box-shadow var(--d2) var(--ease),
      background-color var(--d2) var(--ease),
      transform 0.5s var(--ease);
  }
  .btn-go span {
    width: 40px;
    height: 40px;
    background: var(--bg);
    color: var(--ac-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--d2) var(--ease);
  }
  .btn-go:hover {
    color: #f2f4fa;
    transform: translate(calc(var(--bx, 0px) - 3px), calc(var(--by, 0px) - 3px));
    box-shadow: 4px 4px 0 #f2f4fa;
  }
  .btn-go:hover span {
    transform: rotate(45deg);
  }
  .btn-sys {
    min-height: 36px;
    padding: 0 14px;
    background: rgba(7, 10, 22, 0.7);
    border: 1px solid var(--line-2);
    color: var(--ac-2);
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.12em;
    transition:
      background-color var(--d2) var(--ease),
      color var(--d2) var(--ease),
      border-color var(--d2) var(--ease),
      transform var(--d1) var(--ease);
  }
  .btn-sys:hover {
    background: var(--ac);
    border-color: var(--ac);
    color: #f2f4fa;
  }
  .btn-sys:active {
    transform: scale(0.96);
  }

  .hero-core {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(100%, 520px);
    margin: 0 auto;
    font: 400 11px/1.4 var(--f-sys);
    letter-spacing: 0.12em;
    color: var(--dim);
  }
  .core-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
  }
  .core-frame {
    position: relative;
    aspect-ratio: 1;
    background:
      linear-gradient(var(--line-2), var(--line-2)) 0 0/22px 1px no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) 0 0/1px 22px no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) 100% 0/22px 1px no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) 100% 0/1px 22px no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) 0 100%/22px 1px no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) 0 100%/1px 22px no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) 100% 100%/22px 1px no-repeat,
      linear-gradient(var(--line-2), var(--line-2)) 100% 100%/1px 22px no-repeat;
  }
  .core-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    cursor: grab;
    touch-action: pan-y;
  }
  .core-ctl {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  @media (min-width: 1081px) {
    .hero-in {
      min-height: min(760px, calc(100svh - 200px));
      justify-content: center;
    }
    .hero-core {
      position: absolute;
      z-index: 1;
      top: 50%;
      right: var(--pad);
      width: min(670px, 51vw, calc(100svh - 268px));
      min-width: 440px;
      transform: translateY(-50%);
      margin: 0;
    }
    .hero-h1 {
      font-size: clamp(92px, 9.4vw, 142px);
    }
    .hero-copy {
      pointer-events: none;
    }
    .hero-copy a,
    .hero-copy p {
      pointer-events: auto;
    }
  }
  @media (max-width: 1080px) {
    .hero-copy {
      order: 1;
    }
    .hero-core {
      order: 2;
    }
  }

  /* ---------- numbers: a ledger, not four cards ---------- */
  .nums {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-2);
  }
  .num {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(16px, 2.4vw, 36px);
    padding: clamp(22px, 2.6vw, 36px) 0 clamp(24px, 2.8vw, 38px);
    border-bottom: 1px solid var(--line-2);
  }
  .num:nth-child(odd) {
    padding-right: clamp(16px, 3vw, 44px);
    border-right: 1px solid var(--line-2);
  }
  .num:nth-child(even) {
    padding-left: clamp(16px, 3vw, 44px);
  }
  .num::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--ac);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--d4) var(--ease-out);
  }
  .num.is-in::after {
    transform: scaleX(0.22);
  }
  .num:hover::after {
    transform: scaleX(1);
  }
  .num-n {
    font: 900 clamp(64px, 7.6vw, 112px)/0.8 var(--f-tall);
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .num-hot .num-n {
    color: var(--ac-2);
  }
  .num-p {
    margin: 0;
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mute);
    text-wrap: pretty;
  }
  .num-p a {
    font: 400 11px/1 var(--f-sys);
    vertical-align: super;
  }
  @media (max-width: 900px) {
    .nums {
      grid-template-columns: minmax(0, 1fr);
    }
    .num,
    .num:nth-child(odd),
    .num:nth-child(even) {
      padding-left: 0;
      padding-right: 0;
      border-right: 0;
    }
    .num {
      grid-template-columns: minmax(0, 1fr);
      gap: 16px;
    }
    .num-n {
      font-size: clamp(64px, 20vw, 120px);
    }
  }

  /* ---------- starting points: indexed rows ---------- */
  .pts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 64px);
    counter-reset: pt;
    border-top: 1px solid var(--line-2);
  }
  .pt {
    position: relative;
    display: grid;
    grid-template-columns: 2.4em minmax(8.5em, 11em) minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    counter-increment: pt;
    transition: border-color var(--d2) var(--ease);
  }
  .pt::before {
    content: counter(pt, decimal-leading-zero);
    font: 400 11px/1 var(--f-data);
    color: var(--faint);
  }
  .pt-k {
    font: 400 12px/1.3 var(--f-sys);
    letter-spacing: 0.1em;
    color: var(--ac-2);
  }
  .pt-v {
    font-size: 16px;
    line-height: 1.45;
    color: var(--tx);
  }
  .pt-k,
  .pt-v {
    transition: transform var(--d2) var(--ease);
  }
  .pt:hover {
    border-bottom-color: var(--ac);
  }
  .pt:hover .pt-k,
  .pt:hover .pt-v {
    transform: translateX(10px);
  }
  .pt:hover::before {
    color: var(--ac-2);
  }
  .pt-wild {
    border-bottom-style: dashed;
    border-bottom-color: var(--ac);
  }
  @media (max-width: 820px) {
    .pts {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  @media (max-width: 480px) {
    .pt {
      grid-template-columns: 2.4em minmax(0, 1fr);
    }
    .pt-v {
      grid-column: 2;
    }
  }

  /* ---------- who this is for: rows ---------- */
  .whos {
    border-top: 1px solid var(--line-2);
  }
  .who {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 17rem) minmax(0, 1fr) minmax(0, 15rem);
    align-items: center;
    gap: clamp(16px, 2.4vw, 36px);
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
  }
  .who::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 calc(var(--pad) * -0.5);
    background: var(--bg-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
  }
  .who:hover::before {
    transform: scaleX(1);
  }
  .who-i {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      border-color var(--d2) var(--ease),
      transform 0.5s var(--ease);
  }
  .who:hover .who-i {
    border-color: var(--ac);
    transform: rotate(-8deg);
  }
  .who-t {
    margin: 0;
    font: 700 clamp(20px, 1.9vw, 26px)/1.1 var(--f-head);
    letter-spacing: -0.025em;
  }
  .who-p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--mute);
    text-wrap: pretty;
  }
  .who-s {
    font: 400 11px/1.5 var(--f-sys);
    letter-spacing: 0.08em;
    color: var(--dim);
    text-align: right;
  }
  .who-s span {
    display: block;
    font: 500 12px/1.4 var(--f-data);
    font-stretch: 87.5%;
    letter-spacing: 0;
    color: var(--ac-2);
  }
  @media (max-width: 980px) {
    .who {
      grid-template-columns: 44px minmax(0, 1fr);
      align-items: start;
      row-gap: 8px;
    }
    .who-p,
    .who-s {
      grid-column: 2;
    }
    .who-s {
      text-align: left;
    }
    .who-s span {
      display: inline;
    }
  }

  /* ---------- judges, faq ---------- */
  #judges > div {
    align-items: start !important;
  }
  .faq-i {
    position: relative;
    border-top: 1px solid var(--line);
    padding-left: clamp(0px, 5vw, 72px);
    transition: border-color var(--d2) var(--ease);
  }
  .faq-i:hover {
    border-top-color: var(--ac);
  }
  .faq-q {
    margin: 0;
    font: 700 clamp(19px, 1.7vw, 23px)/1.2 var(--f-head);
    letter-spacing: -0.02em;
    color: var(--tx);
  }
  .faq-n {
    position: absolute;
    left: 0;
    top: 25px;
    font: 400 11px/1 var(--f-data);
    letter-spacing: 0;
    color: var(--faint);
    transition: color var(--d2) var(--ease);
  }
  .faq-i:hover .faq-n {
    color: var(--ac-2);
  }
  .faq-a {
    margin: 0;
    padding: 2px 0 24px;
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.65;
    color: var(--mute);
    text-wrap: pretty;
  }
  @media (max-width: 640px) {
    .faq-n {
      position: static;
      display: block;
      margin-bottom: 8px;
    }
  }

  /* ---------- kill switch block ---------- */
  .kill-big {
    transition:
      background-color var(--d2) var(--ease),
      color var(--d2) var(--ease),
      transform var(--d1) var(--ease),
      box-shadow var(--d2) var(--ease);
  }
  .kill-big:hover {
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0 var(--bad);
  }
  .kill-big:active {
    transform: scale(0.98);
    box-shadow: none;
  }

  /* ---------- footer ---------- */
  footer {
    position: relative;
    overflow: hidden;
  }
  .ft-run {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad) 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font: 400 11px/1 var(--f-data);
    letter-spacing: 0.08em;
    color: var(--faint);
  }
  .ft-run b {
    font-weight: 500;
    color: var(--ac-2);
  }

  /* ---------- interactions: hover and click-to-reveal ---------- */
  /* faq accordion */
  .faq-b {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
  }
  .faq-qt {
    transition:
      transform var(--d2) var(--ease),
      color var(--d1) var(--ease);
  }
  .faq-b:hover .faq-qt {
    transform: translateX(8px);
    color: var(--ac-2);
  }
  .faq-x {
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-2);
    transition:
      background-color var(--d2) var(--ease),
      border-color var(--d2) var(--ease),
      transform 0.5s var(--ease);
  }
  .faq-x::before,
  .faq-x::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 1px;
    background: var(--ac-2);
    transition:
      transform 0.5s var(--ease),
      background-color var(--d2) var(--ease);
  }
  .faq-x::after {
    transform: rotate(90deg);
  }
  .faq-b:hover .faq-x {
    border-color: var(--ac);
  }
  .faq-i[data-open="true"] .faq-x {
    background: var(--ac);
    border-color: var(--ac);
    transform: rotate(180deg);
  }
  .faq-i[data-open="true"] .faq-x::before,
  .faq-i[data-open="true"] .faq-x::after {
    background: #f2f4fa;
  }
  .faq-i[data-open="true"] .faq-x::after {
    transform: rotate(0deg);
  }
  .faq-i[data-open="true"] {
    border-top-color: var(--ac);
  }
  .faq-i[data-open="true"] .faq-n {
    color: var(--ac-2);
  }
  .faq-p {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--ease);
  }
  .faq-p > div {
    overflow: hidden;
    min-height: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity var(--d2) var(--ease),
      transform 0.5s var(--ease),
      visibility 0s linear 0.55s;
  }
  .faq-i[data-open="true"] .faq-p {
    grid-template-rows: 1fr;
  }
  .faq-i[data-open="true"] .faq-p > div {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.5s var(--ease) 0.12s,
      transform 0.5s var(--ease) 0.08s,
      visibility 0s;
  }
  .faq-all {
    margin-top: 8px;
    align-self: flex-start;
  }
  .faq-all[aria-pressed="true"] {
    background: var(--ac);
    border-color: var(--ac);
    color: #f2f4fa;
  }
  @media (max-width: 640px) {
    .faq-n {
      margin-bottom: 0;
    }
    .faq-b {
      padding: 16px 0;
    }
    .faq-i .faq-n {
      position: absolute;
      top: -9px;
      left: 0;
      background: var(--bg);
      padding-right: 8px;
    }
  }

  /* pointer spotlight inside cells (rules, safety bonus, prizes) */
  .cell,
  #prizes [data-reveal] {
    position: relative;
    isolation: isolate;
  }
  /* target lock: corner brackets close in on the card, and a scan line passes down it once */
  .cell::after,
  #prizes [data-reveal]::after {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(var(--ac-2), var(--ac-2)) 0 0 / 14px 2px no-repeat,
      linear-gradient(var(--ac-2), var(--ac-2)) 0 0 / 2px 14px no-repeat,
      linear-gradient(var(--ac-2), var(--ac-2)) 100% 0 / 14px 2px no-repeat,
      linear-gradient(var(--ac-2), var(--ac-2)) 100% 0 / 2px 14px no-repeat,
      linear-gradient(var(--ac-2), var(--ac-2)) 0 100% / 14px 2px no-repeat,
      linear-gradient(var(--ac-2), var(--ac-2)) 0 100% / 2px 14px no-repeat,
      linear-gradient(var(--ac-2), var(--ac-2)) 100% 100% / 14px 2px no-repeat,
      linear-gradient(var(--ac-2), var(--ac-2)) 100% 100% / 2px 14px no-repeat;
    opacity: 0;
    transition:
      inset 0.35s var(--ease-out),
      opacity 0.2s linear;
  }
  .cell:hover::after,
  #prizes [data-reveal]:hover::after {
    inset: -1px;
    opacity: 1;
  }
  .cell::before,
  #prizes [data-reveal]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    z-index: 1;
    pointer-events: none;
    background: var(--ac-2);
    box-shadow: 0 0 12px 1px var(--ac);
    opacity: 0;
  }
  .cell:hover::before,
  #prizes [data-reveal]:hover::before {
    animation: cell-scan 0.75s var(--ease) 1;
  }
  @keyframes cell-scan {
    from {
      top: 0;
      opacity: 0.9;
    }
    to {
      top: 100%;
      opacity: 0;
    }
  }
  #rules .cell h3 {
    transition: transform var(--d2) var(--ease);
  }
  #rules .cell:hover h3 {
    transform: translateX(6px);
  }

  /* out of scope: the item gets struck through */
  .oos-x {
    display: inline-block;
    transition: transform 0.5s var(--ease);
  }
  .oos:hover .oos-x {
    transform: rotate(90deg) scale(1.25);
  }
  .oos-t {
    background: linear-gradient(currentColor, currentColor) 0 58%/0 1px no-repeat;
    transition: background-size 0.6s var(--ease);
  }
  .oos:hover .oos-t {
    background-size: 100% 1px;
  }

  /* timeline: the marker locks on */
  .tl-m {
    transition:
      transform var(--d2) var(--ease),
      background-color var(--d2) var(--ease);
  }
  .tl-i > div {
    transition: transform var(--d2) var(--ease);
  }
  .tl-i:hover .tl-m {
    background: var(--ac) !important;
    transform: rotate(45deg) scale(1.35);
  }
  .tl-i:hover > div {
    transform: translateX(6px);
  }

  /* hero headline letters lift under the pointer */
  .hero-h1 span {
    pointer-events: auto;
    transition:
      transform 0.45s var(--ease),
      color var(--d2) var(--ease);
  }
  .hero-h1 span:hover {
    transform: translateY(-7%) skewX(-6deg);
    color: var(--ac-2);
    transition-duration: 0.12s;
  }

  /* big numerals: click to replay the count */
  .num {
    cursor: pointer;
  }
  .num-n {
    transition: transform 0.5s var(--ease);
  }
  .num:hover .num-n {
    transform: translateX(6px);
  }
  .num:active .num-n {
    transform: scale(0.98);
  }

  /* phase gates respond to the pointer */
  .gate:hover .gate-name {
    -webkit-text-stroke-color: var(--ac);
  }
  .gate:hover .gate-wire i {
    animation-duration: 0.9s;
  }

  /* section register: the index tab flips when its row is hovered */
  .reg-i {
    transition:
      background-color var(--d2) var(--ease),
      color var(--d2) var(--ease);
  }
  .reg:hover .reg-i {
    background: var(--tx);
  }

  /* ---------- mascots ---------- */
  [data-sec] {
    position: relative;
  }
  /* A mascot stands on the top edge of its host element (or on its baseline with .mas-base). */
  .mas {
    position: absolute;
    z-index: 3;
    bottom: 100%;
    left: var(--ml, 50%);
    width: var(--ms, clamp(46px, 5vw, 72px));
    margin-bottom: -1px;
    color: var(--mc);
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--d2) var(--ease);
  }
  .mas-base {
    bottom: 0;
    margin-bottom: 0;
  }
  .mas svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .mas-in {
    display: block;
    transform-origin: 50% 100%;
    animation: masBob 1.3s steps(2) infinite;
    animation-delay: var(--md, 0s);
  }
  .mas-e {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: masBlink 4.6s steps(1) infinite;
    animation-delay: var(--md, 0s);
  }
  .mas-walk {
    animation: masWalk 11s linear infinite;
    animation-delay: var(--md, 0s);
  }
  .mas-hop .mas-in {
    animation: masHop 2.8s var(--ease) infinite;
    animation-delay: var(--md, 0s);
  }
  .mas:hover .mas-in {
    animation: masJump 0.5s var(--ease) 1;
  }
  .mas.is-poke .mas-in {
    animation: masSpin 0.6s var(--ease) 1;
  }
  html.halted .mas {
    color: var(--bad);
  }
  @keyframes masBob {
    50% {
      transform: translateY(-3px);
    }
  }
  @keyframes masBlink {
    0%,
    92% {
      transform: scaleY(1);
    }
    93%,
    97% {
      transform: scaleY(0.12);
    }
    98% {
      transform: scaleY(1);
    }
  }
  @keyframes masWalk {
    0% {
      transform: translateX(0) scaleX(1);
    }
    48% {
      transform: translateX(var(--mw, 70px)) scaleX(1);
    }
    50% {
      transform: translateX(var(--mw, 70px)) scaleX(-1);
    }
    98% {
      transform: translateX(0) scaleX(-1);
    }
    100% {
      transform: translateX(0) scaleX(1);
    }
  }
  @keyframes masHop {
    0%,
    62%,
    100% {
      transform: translateY(0) scaleY(1);
    }
    68% {
      transform: translateY(0) scaleY(0.8);
    }
    78% {
      transform: translateY(-55%) scaleY(1.08);
    }
    90% {
      transform: translateY(0) scaleY(0.9);
    }
  }
  @keyframes masJump {
    0% {
      transform: translateY(0) scale(1, 1);
    }
    25% {
      transform: translateY(0) scale(1.15, 0.8);
    }
    55% {
      transform: translateY(-70%) scale(0.92, 1.12) rotate(-8deg);
    }
    100% {
      transform: translateY(0) scale(1, 1);
    }
  }
  @keyframes masSpin {
    0% {
      transform: translateY(0) rotate(0);
    }
    50% {
      transform: translateY(-80%) rotate(200deg) scale(1.2);
    }
    100% {
      transform: translateY(0) rotate(360deg);
    }
  }
  @media (max-width: 900px) {
    .mas {
      --ms: clamp(38px, 10vw, 52px);
      left: min(var(--ml, 50%), calc(100% - 130px));
    }
    .mas-walk {
      animation-duration: 8s;
    }
    .mas-wide {
      display: none;
    }
  }

  /* ---------- footer: event links, organiser ---------- */
  .ft-ev {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    align-self: flex-start;
    color: var(--tx-2);
    transition:
      color var(--d2) var(--ease),
      transform var(--d2) var(--ease);
  }
  .ft-ev i {
    font-style: normal;
    font-size: 0.8em;
    color: var(--ac-2);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition:
      opacity var(--d2) var(--ease),
      transform var(--d2) var(--ease);
  }
  .ft-ev:hover {
    color: var(--ac-2);
    transform: translateX(4px);
  }
  .ft-ev:hover i {
    opacity: 1;
    transform: none;
  }
  .ft-org {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    flex: 1 1 140px;
  }
  .ft-org-k {
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--dim);
    margin-bottom: 2px;
  }
  .ft-org a {
    display: block;
    transition:
      transform 0.5s var(--ease),
      filter var(--d2) var(--ease);
  }
  .ft-org a:hover {
    transform: translate(-3px, -3px);
    filter: drop-shadow(4px 4px 0 var(--ac));
  }
  .ft-org img {
    display: block;
    width: 80px;
    height: auto;
  }
  .ft-org-s {
    font: 400 11px/1.7 var(--f-sys);
    letter-spacing: 0.08em;
    color: var(--dim);
  }
  .ft-cast {
    display: flex;
    align-items: flex-end;
    gap: 10px;
  }
  .mas-mini {
    position: relative;
    bottom: auto;
    left: auto;
    width: 22px;
    margin: 0;
  }

  /* ---------- cursor: a targeting reticle ---------- */
  .cur-r {
    position: relative;
    width: 30px;
    height: 30px;
    color: #fff;
  }
  .cur-r::before {
    content: "";
    position: absolute;
    inset: 3px;
    transition:
      inset 0.3s var(--ease),
      transform 0.45s var(--ease);
    background:
      linear-gradient(currentColor, currentColor) 0 0/7px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) 0 0/1.5px 7px no-repeat,
      linear-gradient(currentColor, currentColor) 100% 0/7px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) 100% 0/1.5px 7px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100%/7px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100%/1.5px 7px no-repeat,
      linear-gradient(currentColor, currentColor) 100% 100%/7px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) 100% 100%/1.5px 7px no-repeat;
  }
  .cur-r::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    background: currentColor;
    transition:
      transform 0.25s var(--ease),
      width 0.25s var(--ease),
      height 0.25s var(--ease),
      margin 0.25s var(--ease);
  }
  .cur-r[data-s="on"]::before {
    inset: -5px;
    transform: rotate(90deg);
  }
  .cur-r[data-s="on"]::after {
    transform: rotate(45deg) scale(1.6);
  }
  .cur-r[data-s="down"]::before {
    inset: 7px;
    transform: rotate(90deg);
  }
  .cur-r[data-s="down"]::after {
    transform: scale(2.4);
  }
  .cur-r[data-k="aim"]::after {
    width: 17px;
    height: 17px;
    margin: -8.5px 0 0 -8.5px;
    transform: none;
    background:
      linear-gradient(currentColor, currentColor) 50% 0/1.5px 100% no-repeat,
      linear-gradient(currentColor, currentColor) 0 50%/100% 1.5px no-repeat;
  }
  .cur-r[data-k="poke"]::before {
    inset: -2px;
    transform: rotate(45deg);
  }
  .cur-r[data-halt="1"] {
    color: var(--bad);
  }

  /* ---------- fig. 08: headline, legend and note beside the chart ---------- */
  @media (min-width: 1000px) {
    .f8 {
      display: grid !important;
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      grid-template-areas: "hd hd" "ti ch" "lg ch" "nt ch";
      grid-template-rows: auto auto 1fr auto;
      gap: 18px clamp(28px, 3.5vw, 56px) !important;
      align-items: start;
    }
    .f8 > :nth-child(1) {
      grid-area: hd;
    }
    .f8 > :nth-child(2) {
      grid-area: ti;
      max-width: none;
    }
    .f8 > :nth-child(3) {
      grid-area: ch;
      max-width: none !important;
      align-self: center;
      margin: 0 !important;
      padding: 0 !important;
    }
    .f8 > :nth-child(3) svg {
      min-width: 0 !important;
    }
    .f8 > :nth-child(4) {
      grid-area: lg;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 9px !important;
      padding-top: 16px !important;
      align-self: start;
    }
    .f8 > :nth-child(5) {
      grid-area: nt;
      align-self: end;
    }
    .f8 .t-wide-s {
      font-size: clamp(20px, 2vw, 28px);
    }
  }

  /* ---------- footer: compact ---------- */
  .ft-in {
    padding-top: clamp(40px, 4.6vw, 64px) !important;
    padding-bottom: 22px !important;
    gap: 32px !important;
  }
  .ft-cols {
    gap: 36px clamp(24px, 3vw, 44px) !important;
  }
  .ft-cols > div:first-child {
    gap: 12px !important;
    flex: 1.4 1 220px !important;
  }
  .ft-cols > div:first-child > div:first-child {
    font-size: 24px !important;
  }
  .ft-cols > div:first-child p {
    font-size: 14px !important;
    max-width: 360px !important;
  }
  .ft-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px !important;
    align-content: start;
    font-size: 14px !important;
    flex: 1 1 120px !important;
  }
  .ft-list > span:first-child {
    grid-column: 1/-1;
    margin-bottom: 4px !important;
  }
  .ft-list > * {
    white-space: nowrap;
  }
  .ft-list:not(nav) {
    flex: 1 1 170px !important;
  }
  .ft-cols > div:nth-child(4) {
    gap: 8px !important;
    font-size: 13px !important;
    flex: 1.3 1 230px !important;
  }
  /* organiser block lives inside the Connect column */
  .ft-org {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 18px;
    flex: none;
    order: -1;
    margin-bottom: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-2);
    align-self: stretch;
  }
  .ft-org-k {
    grid-column: 1/-1;
    margin: 0;
  }
  .ft-org img {
    width: 92px;
  }
  .ft-in > div:nth-child(2) {
    padding-top: 18px !important;
  }
  .ft-run {
    padding-bottom: 16px;
    align-items: flex-end;
  }

  /* ---------- tracks ---------- */
  .trks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .trk {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
    border: 1px solid var(--line-2);
    background: #0c1124;
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity var(--d3) var(--ease),
      transform var(--d3) var(--ease),
      border-color var(--d2) var(--ease);
  }
  .trk.is-in {
    opacity: 1;
    transform: none;
  }
  .trk:nth-child(3n + 2) {
    transition-delay: 80ms;
  }
  .trk:nth-child(3n) {
    transition-delay: 160ms;
  }
  .trk:hover {
    border-color: var(--ac);
  }
  .trk-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .trk-id {
    font: 400 34px/0.9 var(--f-pixel);
    color: var(--ac-2);
  }
  .trk-tag {
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.12em;
    color: var(--dim);
  }
  .trk-n {
    margin: 0;
    font: 800 26px/1.05 var(--f-head);
    letter-spacing: -0.03em;
    transition: transform var(--d2) var(--ease);
  }
  .trk:hover .trk-n {
    transform: translateX(6px);
  }
  .trk-p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mute);
    text-wrap: pretty;
  }
  .trk-x {
    margin: 0;
    padding: 12px 14px;
    border-left: 2px solid var(--ac);
    background: rgba(51, 84, 255, 0.06);
    font-size: 14px;
    line-height: 1.55;
    color: var(--tx-2);
    text-wrap: pretty;
  }
  .trk-x span {
    display: block;
    margin-bottom: 6px;
    font: 400 10px/1 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--ac-2);
  }
  .trk-j {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .trk-j li {
    font: 400 11px/1.3 var(--f-sys);
    letter-spacing: 0.06em;
    color: var(--tx);
    border: 1px solid var(--line-2);
    padding: 4px 9px;
  }
  .trk-f {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
    font: 400 11px/1.4 var(--f-sys);
    letter-spacing: 0.08em;
    color: var(--ac-2);
    text-transform: uppercase;
  }
  .trk-f span {
    color: var(--dim);
    margin-right: 10px;
  }
  .trk-open {
    border-style: dashed;
    border-color: var(--ac);
    background: rgba(51, 84, 255, 0.08);
  }
  .trk-open .trk-tag {
    color: var(--ac-2);
  }
  @media (max-width: 980px) {
    .trks {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trk:nth-child(n) {
      transition-delay: 0ms;
    }
  }
  @media (max-width: 600px) {
    .trks {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* ---------- glitch: red and blue slices of the text, offset in short bursts ---------- */
  .glitch {
    position: relative;
  }
  .glitch::before,
  .glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    animation: glitch-a 7s steps(1) var(--gd, 0s) infinite;
  }
  .glitch::before {
    color: var(--bad);
    -webkit-text-stroke-color: var(--bad);
  }
  .glitch::after {
    color: #4de8ff;
    -webkit-text-stroke-color: #4de8ff;
    animation-name: glitch-b;
  }
  .gate-name.glitch::before,
  .gate-name.glitch::after {
    color: transparent;
  }
  .glitch:hover::before,
  .glitch:hover::after,
  .trk:hover .trk-id::before,
  .trk:hover .trk-id::after {
    animation-duration: 0.9s;
    animation-delay: 0s;
  }
  html.halted .glitch::before,
  html.halted .glitch::after {
    animation: none;
  }
  /* the hero headline glitches with coloured shadows instead of a painted copy */
  .hero-h1 {
    animation: glitch-h1 7s steps(1) -2s infinite;
  }
  .hero-h1:hover {
    animation-duration: 0.9s;
  }
  @keyframes glitch-h1 {
    0%,
    88%,
    100% {
      text-shadow: none;
      transform: none;
    }
    89% {
      text-shadow:
        -5px 0 var(--bad),
        5px 0 #4de8ff;
      transform: translate(-2px, 0) skewX(-3deg);
    }
    91% {
      text-shadow:
        4px 0 var(--bad),
        -4px 0 #4de8ff;
      transform: translate(2px, 0);
    }
    93% {
      text-shadow:
        -2px 0 var(--bad),
        2px 0 #4de8ff;
      transform: skewX(2deg);
    }
    95% {
      text-shadow: none;
      transform: none;
    }
    97% {
      text-shadow:
        6px 0 var(--bad),
        -6px 0 #4de8ff;
      transform: translate(-1px, 0);
    }
    98% {
      text-shadow: none;
      transform: none;
    }
  }
  @keyframes glitch-a {
    0%,
    88%,
    100% {
      opacity: 0;
      transform: none;
      clip-path: inset(0 0 0 0);
    }
    89% {
      opacity: 0.9;
      transform: translate(-4px, 0);
      clip-path: inset(8% 0 64% 0);
    }
    91% {
      opacity: 0.9;
      transform: translate(3px, 0);
      clip-path: inset(56% 0 20% 0);
    }
    93% {
      opacity: 0.9;
      transform: translate(-2px, 1px);
      clip-path: inset(30% 0 46% 0);
    }
    95% {
      opacity: 0;
    }
    97% {
      opacity: 0.9;
      transform: translate(5px, 0);
      clip-path: inset(74% 0 6% 0);
    }
    98% {
      opacity: 0;
    }
  }
  @keyframes glitch-b {
    0%,
    88%,
    100% {
      opacity: 0;
      transform: none;
      clip-path: inset(0 0 0 0);
    }
    89% {
      opacity: 0.85;
      transform: translate(4px, 0);
      clip-path: inset(40% 0 34% 0);
    }
    91% {
      opacity: 0.85;
      transform: translate(-3px, -1px);
      clip-path: inset(12% 0 70% 0);
    }
    93% {
      opacity: 0.85;
      transform: translate(2px, 0);
      clip-path: inset(66% 0 12% 0);
    }
    95% {
      opacity: 0;
    }
    97% {
      opacity: 0.85;
      transform: translate(-5px, 0);
      clip-path: inset(22% 0 58% 0);
    }
    98% {
      opacity: 0;
    }
  }

  /* ---------- judges: empty panel slots ---------- */
  .slots {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .slots-hd {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    font: 400 11px/1.4 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--dim);
  }
  .slots-hd span:last-child {
    color: var(--ac-2);
  }
  .slots-g {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  .slot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px dashed var(--line-2);
    background: rgba(12, 17, 36, 0.6);
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity var(--d3) var(--ease),
      transform var(--d3) var(--ease),
      border-color var(--d2) var(--ease);
  }
  .slot.is-in {
    opacity: 1;
    transform: none;
  }
  .slot:nth-child(2) {
    transition-delay: 60ms;
  }
  .slot:nth-child(3) {
    transition-delay: 120ms;
  }
  .slot:nth-child(4) {
    transition-delay: 180ms;
  }
  .slot:nth-child(5) {
    transition-delay: 240ms;
  }
  .slot:nth-child(6) {
    transition-delay: 300ms;
  }
  .slot:hover {
    border-color: var(--ac);
  }
  .slot-id {
    font: 400 11px/1 var(--f-sys);
    letter-spacing: 0.14em;
    color: var(--ac-2);
  }
  /* placeholder portrait: a hatched frame with a slow scan line */
  .slot-av {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(51, 84, 255, 0.09) 7px 8px);
  }
  .slot-av::before {
    content: "?";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font: 400 28px/1 var(--f-pixel);
    color: var(--line-2);
    transition: color var(--d2) var(--ease);
  }
  .slot:hover .slot-av::before {
    color: var(--ac-2);
  }
  .slot-av i {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 30%;
    background: linear-gradient(transparent, rgba(51, 84, 255, 0.16));
    animation: slot-scan 3.6s linear infinite;
  }
  .slot:nth-child(even) .slot-av i {
    animation-delay: -1.8s;
  }
  @keyframes slot-scan {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(340%);
    }
  }
  .slot-n {
    font: 400 22px/1 var(--f-pixel);
    color: var(--tx);
  }
  .slot-r {
    font: 400 10px/1.3 var(--f-sys);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
  }
  @media (max-width: 1080px) {
    .slots-g {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .slot:nth-child(n) {
      transition-delay: 0ms;
    }
  }
  @media (max-width: 520px) {
    .slots-g {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* ---------- corner mascot: a CRT terminal with a kill switch, in CSS 3D, animated in discrete steps ---------- */
  .bud {
    position: fixed;
    right: clamp(12px, 2.4vw, 34px);
    bottom: clamp(10px, 2vw, 22px);
    z-index: 40;
    pointer-events: none;
    --ex: 0px;
    --ey: 0px;
    --case: #e6e9f5;
    --case-2: #b4bcd8;
    --case-3: #8189ab;
  }
  .bud-btn {
    display: block;
    width: 112px;
    height: 98px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    pointer-events: auto;
    perspective: 460px;
    position: relative;
  }
  .bud-hop,
  .bud-rig,
  .bud-box {
    display: block;
    transform-style: preserve-3d;
  }
  .bud-hop {
    position: absolute;
    left: 50%;
    top: 22px;
    width: 0;
    height: 0;
    animation: bud-idle 2.4s steps(1) infinite;
  }
  .bud-rig {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform-origin: 0 28px;
  }
  .bud-box {
    position: absolute;
    left: 0;
    top: 0;
  }
  .bud-f {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    backface-visibility: hidden;
    background: var(--case);
  }
  .bud-left,
  .bud-right {
    background: var(--case-2);
  }
  .bud-top {
    background: #f7f8fd;
  }
  .bud-back,
  .bud-base {
    background: var(--case-3);
  }
  /* casing front: a bezel around the screen, with two vent slots */
  .bud-head .bud-front {
    box-shadow: inset 0 -6px 0 var(--case-2);
  }
  .bud-scr {
    position: absolute;
    inset: 5px 5px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg);
    box-shadow:
      inset 0 0 0 2px #1e2647,
      inset 0 0 14px rgba(110, 231, 168, 0.22);
    overflow: hidden;
  }
  .bud-eye {
    display: block;
    width: 8px;
    height: 13px;
    background: var(--ok);
    transform: translate(var(--ex), var(--ey));
    animation: bud-blink 4.2s steps(1) infinite;
  }
  .bud-mouth {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 10px;
    height: 2px;
    margin-left: -5px;
    background: var(--ok);
    transform: translate(var(--ex), 0);
  }
  .bud-caret {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 5px;
    height: 2px;
    background: var(--ac-2);
    animation: bud-led 1s steps(1) infinite;
  }
  /* the kill switch on its head */
  .bud-kill .bud-f {
    background: #ff6b6b;
  }
  .bud-kill .bud-left,
  .bud-kill .bud-right,
  .bud-kill .bud-back {
    background: #c94a4a;
  }
  .bud-kill .bud-top {
    background: #ff9a9a;
  }
  .bud-neck .bud-f {
    background: #1e2647;
  }
  .bud-pad .bud-f {
    background: var(--ac);
  }
  .bud-pad .bud-left,
  .bud-pad .bud-right,
  .bud-pad .bud-back {
    background: #1d33a8;
  }
  .bud-pad .bud-top {
    background: #5b76ff;
  }
  .bud-pad .bud-base {
    background: var(--ok);
  }
  .bud-hand {
    animation: bud-hand 2.4s steps(1) infinite;
  }
  .bud-hand-r {
    animation-delay: -1.2s;
  }
  .bud-shadow {
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 46px;
    height: 4px;
    margin-left: -23px;
    background: rgba(0, 0, 0, 0.5);
    animation: bud-shadow 2.4s steps(1) infinite;
  }
  /* reaction: a stepped hop and spin, a raised hand, and a grin */
  .bud.is-react .bud-hop {
    animation: bud-jump 1s steps(1) 1;
  }
  .bud.is-react .bud-hand-l {
    animation: bud-wave 1s steps(1) 1;
  }
  .bud.is-react .bud-eye {
    height: 4px;
    animation: none;
    transform: translate(var(--ex), -3px);
  }
  .bud.is-react .bud-mouth {
    width: 16px;
    height: 5px;
    margin-left: -8px;
  }
  /* halted: button pressed in, screen goes red */
  .bud.is-halt .bud-kill {
    margin-top: 4px;
  }
  .bud.is-halt .bud-eye {
    height: 3px;
    background: var(--bad);
    animation: none;
  }
  .bud.is-halt .bud-mouth,
  .bud.is-halt .bud-caret {
    background: var(--bad);
    animation: none;
  }
  .bud.is-halt .bud-scr {
    box-shadow:
      inset 0 0 0 2px #5a1e26,
      inset 0 0 14px rgba(255, 107, 107, 0.3);
  }
  .bud.is-halt .bud-pad .bud-base {
    background: var(--bad);
  }
  .bud.is-halt .bud-hop,
  .bud.is-halt .bud-hand,
  .bud.is-halt .bud-shadow {
    animation: none;
  }
  .bud-say {
    position: absolute;
    right: 10px;
    bottom: calc(100% + 4px);
    width: max-content;
    max-width: min(240px, calc(100vw - 32px));
    padding: 9px 12px;
    border: 1px solid var(--ac);
    background: var(--bg);
    font: 400 11px/1.5 var(--f-sys);
    letter-spacing: 0.04em;
    color: var(--tx);
    visibility: hidden;
  }
  .bud-say.is-on {
    visibility: visible;
  }
  .bud-say::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 100%;
    width: 8px;
    height: 8px;
    background: var(--bg);
    border-right: 1px solid var(--ac);
    border-bottom: 1px solid var(--ac);
    transform: translateY(-4px) rotate(45deg);
  }
  @keyframes bud-idle {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }
  @keyframes bud-hand {
    0%,
    100% {
      margin-top: 0;
    }
    50% {
      margin-top: 3px;
    }
  }
  @keyframes bud-shadow {
    0%,
    100% {
      width: 46px;
      margin-left: -23px;
    }
    50% {
      width: 38px;
      margin-left: -19px;
    }
  }
  @keyframes bud-blink {
    0%,
    94%,
    100% {
      height: 13px;
    }
    95%,
    98% {
      height: 2px;
    }
  }
  @keyframes bud-led {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  @keyframes bud-wave {
    0%,
    100% {
      margin-top: 0;
      margin-left: 0;
    }
    20%,
    60% {
      margin-top: -30px;
      margin-left: -4px;
    }
    40%,
    80% {
      margin-top: -30px;
      margin-left: 6px;
    }
  }
  @keyframes bud-jump {
    0% {
      transform: translateY(0) rotateY(0);
    }
    12% {
      transform: translateY(4px) rotateY(0);
    }
    26% {
      transform: translateY(-12px) rotateY(90deg);
    }
    40% {
      transform: translateY(-16px) rotateY(180deg);
    }
    54% {
      transform: translateY(-12px) rotateY(270deg);
    }
    68% {
      transform: translateY(0) rotateY(360deg);
    }
    80% {
      transform: translateY(3px) rotateY(360deg);
    }
    100% {
      transform: translateY(0) rotateY(360deg);
    }
  }
  @media (max-width: 700px) {
    .bud-btn {
      transform: scale(0.72);
      transform-origin: 100% 100%;
    }
    .bud-say {
      bottom: calc(100% - 26px);
    }
  }
}
