:root {
  --bg: #050307;
  --panel: rgba(13, 8, 18, .78);
  --panel-strong: rgba(20, 10, 26, .94);
  --ink: #f8eaff;
  --muted: #b499bd;
  --line: rgba(255, 90, 178, .2);
  --red: #ff244d;
  --pink: #ff4fbf;
  --violet: #a855f7;
  --purple: #5d2cff;
  --cyan: #65fff0;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;

  /* /osi's 7-layer spectrum, anchored at the site's own pink (L1) and cyan (L7). */
  --osi-l1: #ff4fbf;
  --osi-l2: #ff6a4d;
  --osi-l3: #ffab3d;
  --osi-l4: #4ade80;
  --osi-l5: #2dd4bf;
  --osi-l6: #38b6e0;
  --osi-l7: #65fff0;
}

/*
  /secretchat runs a deliberately different palette from the rest of the site -
  green-phosphor terminal instead of cyan/pink. Reused chrome (site-header,
  .eyebrow, .panel-kicker, panel borders/backgrounds) picks this up for free
  since those rules read the custom properties; a couple of header pieces hard-
  code cyan/pink instead of the variables, so they get explicit overrides below.
*/
body.secretchat-theme {
  --ink: #eafff0;
  --muted: #6fae82;
  --line: rgba(57, 255, 20, .22);
  --pink: #39ff14;
  --cyan: #7cffb2;
  --panel: rgba(4, 16, 7, .82);
  --panel-strong: rgba(6, 22, 10, .94);
  background:
    radial-gradient(circle at 72% 18%, rgba(34, 197, 94, .16), transparent 26rem),
    radial-gradient(circle at 22% 36%, rgba(16, 80, 36, .2), transparent 24rem),
    linear-gradient(135deg, #010402 0%, #030c05 45%, #04190a 100%);
}

body.secretchat-theme .lang-toggle {
  border-color: rgba(57, 255, 20, .28);
  background: rgba(57, 255, 20, .07);
}

body.secretchat-theme .lang-toggle:hover {
  border-color: rgba(124, 255, 178, .44);
  color: var(--cyan);
}

body.secretchat-theme .brand-mark {
  border-color: rgba(57, 255, 20, .5);
  background: linear-gradient(135deg, rgba(16, 120, 40, .3), rgba(6, 60, 20, .25));
  box-shadow: 0 0 24px rgba(57, 255, 20, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 18%, rgba(168, 85, 247, .18), transparent 26rem),
    radial-gradient(circle at 22% 36%, rgba(255, 36, 77, .14), transparent 24rem),
    linear-gradient(135deg, #050307 0%, #0c0612 45%, #120719 100%);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
body.intro-locked { overflow: hidden; }
body.ctf-first-blood .terminal-panel {
  border-color: rgba(101, 255, 240, .46);
  box-shadow: 0 24px 90px rgba(0,0,0,.28), 0 0 32px rgba(101,255,240,.1);
}

#matrix {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .5;
}

/*
  /osi swaps the homepage's falling-code canvas for a live node-graph
  (drawn by osi.js) plus a faint schematic grid + pink/cyan glow on the body
  itself - same brand colors and dark base as the rest of the site, but a
  motif that actually reads as "network" instead of reusing the matrix rain.
*/
body.osi-page {
  background:
    linear-gradient(rgba(101, 255, 240, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 191, .05) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(101, 255, 240, .14), transparent 30rem),
    radial-gradient(circle at 18% 42%, rgba(255, 79, 191, .12), transparent 26rem),
    linear-gradient(135deg, #050307 0%, #0a0710 45%, #0d0a14 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

body.osi-page #matrix {
  opacity: .65;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 79, 191, .2), transparent 32rem),
    radial-gradient(circle at 20% 80%, rgba(255, 36, 77, .18), transparent 28rem),
    #020104;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility .55s ease;
}

.intro-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}



.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) saturate(1.22) hue-rotate(-8deg) brightness(.82);
  transform: scale(1.18);
}

.intro-vignette,
.intro-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-vignette {
  background:
    linear-gradient(90deg, rgba(5,3,7,.84), transparent 28%, transparent 72%, rgba(5,3,7,.86)),
    radial-gradient(circle at 50% 48%, transparent 0 34%, rgba(0,0,0,.62) 78%),
    linear-gradient(180deg, rgba(0,0,0,.36), rgba(255,36,77,.1), rgba(0,0,0,.72));
}

.intro-scan {
  background:
    linear-gradient(rgba(57,255,136,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,79,191,.05) 1px, transparent 1px);
  background-size: 100% 14px, 44px 100%;
  mix-blend-mode: screen;
  opacity: .52;
  animation: introScan 1.2s linear infinite;
}

.intro-copy {
  position: absolute;
  left: clamp(20px, 6vw, 72px);
  bottom: clamp(48px, 9vw, 110px);
  display: grid;
  gap: 8px;
  color: white;
  text-shadow: 0 0 28px rgba(255, 79, 191, .36);
}

.intro-copy span {
  color: var(--cyan);
  font: 900 12px/1 var(--mono);
  letter-spacing: .18em;
}

.intro-copy strong {
  max-width: 720px;
  font: 950 clamp(34px, 7vw, 86px)/.9 var(--mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-controls {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: clamp(18px, 4vw, 42px);
  display: flex;
  align-items: center;
  gap: 9px;
}

.intro-skip,
.intro-sound {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(101, 255, 240, .28);
  border-radius: 6px;
  background: rgba(0, 8, 3, .68);
  color: var(--cyan);
  font: 900 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro-sound {
  border-color: rgba(57, 255, 136, .36);
  color: #39ff88;
  box-shadow: 0 0 18px rgba(57, 255, 136, .08);
}

.intro-sound.is-active {
  border-color: rgba(255, 79, 191, .5);
  color: var(--pink);
}

.intro-skip:hover,
.intro-sound:hover {
  border-color: rgba(255, 79, 191, .5);
  color: var(--pink);
}

.construction-banner {
  position: relative;
  z-index: 12;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 79, 191, .26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,36,77,.14), rgba(168,85,247,.1), rgba(7,9,14,.72)),
    rgba(9, 4, 13, .78);
  box-shadow: 0 18px 48px rgba(0,0,0,.22), 0 0 28px rgba(255,79,191,.08);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.construction-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(101,255,240,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,79,191,.04) 1px, transparent 1px);
  background-size: 100% 18px, 42px 100%;
  opacity: .55;
}

.construction-banner strong,
.construction-banner span {
  display: block;
}

.construction-banner strong {
  color: white;
  font: 900 clamp(18px, 2.1vw, 30px)/1.05 var(--mono);
  letter-spacing: 0;
}

.construction-banner span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tool-window-dots {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  gap: 5px;
  padding-top: 3px;
}

.tool-window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255,79,191,.5);
}

.tool-window-dots span:nth-child(2) {
  background: var(--violet);
}

.tool-window-dots span:nth-child(3) {
  background: var(--cyan);
}

.tool-label {
  margin-bottom: 7px;
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  letter-spacing: .16em;
}

.construction-copy,
.construction-tooling,
.construction-logo {
  position: relative;
  z-index: 1;
}

.construction-logo {
  position: relative;
  width: 58px;
  height: 54px;
  filter: drop-shadow(0 0 18px rgba(255, 79, 191, .36));
}

.construction-logo span {
  position: absolute;
  display: block;
}

.logo-ear {
  top: 2px;
  width: 13px;
  height: 35px;
  border: 1px solid rgba(255, 79, 191, .62);
  border-radius: 999px 999px 8px 8px;
  background: #030105;
}

.logo-ear.left {
  left: 16px;
  transform: rotate(-18deg);
}

.logo-ear.right {
  right: 16px;
  transform: rotate(18deg);
}

.logo-face {
  left: 10px;
  bottom: 2px;
  width: 38px;
  height: 32px;
  border: 1px solid rgba(255, 79, 191, .62);
  border-radius: 44% 44% 40% 40%;
  background:
    radial-gradient(circle at 64% 44%, #ff244d 0 3px, transparent 4px),
    #050108;
}

.logo-spark {
  right: -1px;
  top: 12px;
  width: 13px;
  height: 13px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: logoSpark 1.5s ease-in-out infinite;
}

.construction-tooling {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  min-width: 230px;
}

.tool-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(101, 255, 240, .2);
  border-radius: 999px;
  background: rgba(101, 255, 240, .06);
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  white-space: nowrap;
  text-transform: uppercase;
}

.tool-progress {
  grid-column: 1 / -1;
  height: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  overflow: hidden;
}

.tool-progress span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--pink), var(--cyan));
  box-shadow: 0 0 18px rgba(255,79,191,.42);
  animation: toolProgress 2.4s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 3, 7, .72);
  backdrop-filter: blur(18px);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  border: 1px solid rgba(101, 255, 240, .28);
  border-radius: 6px;
  background: rgba(101, 255, 240, .07);
  color: var(--cyan);
  font: 900 12px/1 var(--mono);
  letter-spacing: .08em;
}

.lang-toggle:hover {
  border-color: rgba(255, 79, 191, .44);
  color: var(--pink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 79, 191, .58);
  background: linear-gradient(135deg, rgba(255,36,77,.2), rgba(93,44,255,.18));
  color: white;
  font: 800 12px/1 var(--mono);
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(255, 79, 191, .22);
}

.photo-mark {
  overflow: visible;
  border-radius: 50%;
}

.photo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.photo-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 148px;
  min-height: 172px;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 0 0 14px;
  border: 1px solid rgba(255, 79, 191, .34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, transparent 0 74%, rgba(5,3,7,.86) 74%),
    url("assets/profile-burrowpwner.png") center / cover no-repeat;
  color: white;
  font: 900 14px/1 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.78);
  transform-origin: top left;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 26px 70px rgba(0,0,0,.42), 0 0 34px rgba(255,79,191,.22);
  z-index: 80;
}

.photo-mark:hover .photo-pop,
.brand:focus-visible .photo-pop {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; }
.brand small { color: var(--muted); font: 11px/1.4 var(--mono); }

nav {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font: 700 12px/1 var(--mono);
  text-transform: uppercase;
}

nav a:hover { color: var(--pink); }

.side-dock {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  top: 114px;
  z-index: 35;
  width: 232px;
  display: grid;
  gap: 12px;
  touch-action: none;
}

.side-dock::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at center, rgba(255,36,77,.44), rgba(255,36,77,.14) 38%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(255,36,77,.2), transparent);
  filter: blur(14px);
  opacity: 0;
  transition: opacity .32s ease, transform .22s ease;
}

.side-dock.is-dragging::after {
  opacity: .68;
}

.side-dock.trail-left::after { transform: translateX(52px) scaleX(1.42); }
.side-dock.trail-right::after { transform: translateX(-52px) scaleX(1.42); }
.side-dock.trail-up::after { transform: translateY(52px) scaleY(1.32); }
.side-dock.trail-down::after { transform: translateY(-52px) scaleY(1.32); }

.music-bar {
  position: relative;
  width: 100%;
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(101, 255, 240, .18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(101,255,240,.08), rgba(255,79,191,.07), rgba(0,0,0,.34)),
    rgba(4, 9, 13, .88);
  box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 0 28px rgba(101,255,240,.04);
  backdrop-filter: blur(18px);
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.side-dock.is-dragging .music-bar {
  cursor: grabbing;
  box-shadow: 0 26px 74px rgba(255,36,77,.16), inset 0 0 28px rgba(255,36,77,.05);
}

.game-launch {
  position: relative;
  min-height: 84px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 79, 191, .24);
  border-radius: 10px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,36,77,.15), rgba(101,255,240,.08)),
    rgba(4, 9, 13, .86);
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 0 22px rgba(255,79,191,.05);
  overflow: hidden;
  transition: width .2s ease, min-height .2s ease, padding .2s ease, grid-template-columns .2s ease, border-color .18s ease, transform .18s ease;
}

.game-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,36,77,.2), transparent),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 12px;
  opacity: .55;
  transform: translateX(-35%);
  transition: transform .32s ease;
}

.game-launch:hover::before {
  transform: translateX(15%);
}

.game-launch > span {
  position: relative;
  z-index: 1;
}

.game-launch small,
.game-launch strong {
  display: block;
}

.game-launch small {
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.music-bar.is-collapsed + .game-launch {
  width: 86px;
  min-height: 76px;
  grid-template-columns: 1fr;
  justify-items: center;
  justify-self: end;
  gap: 0;
  padding: 10px;
}

.music-bar.is-collapsed + .game-launch span:last-child {
  display: none;
}

.music-bar.is-collapsed + .game-launch .game-launch-icon {
  width: 54px;
  height: 54px;
}

.game-launch strong {
  margin-top: 5px;
  color: white;
  font: 900 15px/1.1 var(--mono);
  text-transform: uppercase;
}

.game-launch-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(101,255,240,.24);
  border-radius: 12px;
  background: #06040a;
  box-shadow: 0 0 18px rgba(255,36,77,.18);
}

.game-launch-icon i,
.game-launch-icon b {
  position: absolute;
  display: block;
}

.game-launch-icon i {
  left: 14px;
  top: 23px;
  width: 26px;
  height: 15px;
  background:
    linear-gradient(#f7f7f7 0 0) 0 0 / 22px 11px no-repeat,
    linear-gradient(#050505 0 0) 17px 3px / 6px 8px no-repeat,
    linear-gradient(#050505 0 0) 3px 11px / 19px 5px no-repeat;
}

.game-launch-icon b {
  left: 22px;
  top: 9px;
  width: 8px;
  height: 20px;
  background: #f7f7f7;
  box-shadow: 9px -3px 0 -1px #f7f7f7, 16px 4px 0 -2px #f7f7f7;
  transform: skew(18deg);
}

.music-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(101,255,240,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,79,191,.04) 1px, transparent 1px);
  background-size: 100% 18px, 48px 100%;
  opacity: .7;
}

.music-dots,
.music-collapse,
.music-cover-wrap,
.music-cat-icon,
.music-meta,
.music-visualizer,
.music-dial,
.music-controls {
  position: relative;
  z-index: 1;
}

.music-dots {
  display: flex;
  gap: 4px;
}

.music-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(248,234,255,.65);
}

.music-collapse {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(0,0,0,.36);
  color: rgba(248,234,255,.82);
  font: 900 14px/1 var(--mono);
  cursor: pointer;
  transition: color .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}

.music-collapse:hover {
  color: var(--cyan);
  border-color: rgba(101,255,240,.5);
  background: rgba(101,255,240,.12);
  transform: translateY(-1px);
}

/* A few attention pulses shortly after load, so first-time visitors notice the
   player can be tucked away. Stops itself - see the timers in initMusicPlayer. */
.music-bar.is-hinting .music-collapse {
  animation: musicCollapseHint 1.8s ease-in-out 3;
}

@keyframes musicCollapseHint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(101, 255, 240, 0); border-color: rgba(255,255,255,.14); }
  50% { box-shadow: 0 0 0 6px rgba(101, 255, 240, .18); border-color: rgba(101,255,240,.6); }
}

@media (prefers-reduced-motion: reduce) {
  .music-bar.is-hinting .music-collapse { animation: none; border-color: rgba(101,255,240,.6); }
}

.music-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 79, 191, .22);
  border-radius: 18px;
  background: rgba(0,0,0,.34);
  overflow: hidden;
  box-shadow: 0 0 22px rgba(255,79,191,.16);
}

.music-cover-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.music-pulse {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(101,255,240,.28);
  opacity: 0;
}

.music-bar.is-playing .music-pulse {
  animation: musicPulse 1.1s ease-in-out infinite;
}

.music-cat-icon {
  width: 46px;
  height: 46px;
  justify-self: center;
  margin-top: -36px;
  border: 1px solid rgba(101,255,240,.3);
  border-radius: 12px;
  background: #06040a;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(101,255,240,.18);
}

.music-meta {
  min-width: 0;
  text-align: center;
}

.music-meta strong {
  display: block;
  color: white;
  font: 500 20px/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-meta > span {
  display: block;
  margin-top: 4px;
  color: var(--pink);
  font: 900 12px/1 var(--mono);
  text-transform: uppercase;
}

.music-progress {
  height: 7px;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  overflow: hidden;
}

.music-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--red));
  box-shadow: 0 0 16px rgba(255,79,191,.34);
}

.music-visualizer {
  position: absolute;
  right: 15px;
  bottom: 14px;
  height: 40px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}

.music-visualizer span {
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  opacity: .42;
  transform-origin: bottom;
}

.music-bar.is-playing .music-visualizer span {
  animation: equalize .72s ease-in-out infinite;
}

.music-visualizer span:nth-child(2) { animation-delay: .08s; }
.music-visualizer span:nth-child(3) { animation-delay: .16s; }
.music-visualizer span:nth-child(4) { animation-delay: .04s; }
.music-visualizer span:nth-child(5) { animation-delay: .2s; }
.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.music-controls button {
  display: grid;
  place-items: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(101,255,240,.82);
  font: 900 28px/1 var(--mono);
  text-transform: uppercase;
}

#music-play {
  min-width: 52px;
  min-height: 52px;
  color: white;
  background: linear-gradient(135deg, #6d28d9, var(--pink), #0ea5e9);
  box-shadow: 0 0 24px rgba(255,79,191,.24);
}

.music-controls button:hover,
.music-controls button.is-hot {
  color: var(--pink);
}

.music-dial {
  display: flex;
  justify-content: center;
  gap: 5px;
  min-height: 8px;
}

.music-dial span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(101,255,240,.8);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.music-dial span.is-active {
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
  opacity: 1;
  transform: translateY(-4px) scale(1.32);
}

.music-bar.is-switching .music-dial span {
  animation: dotWave .52s ease;
}

.music-bar.is-collapsed {
  width: 86px;
  padding: 12px;
  gap: 8px;
  justify-self: end;
}

.music-bar.is-collapsed .music-cover-wrap,
.music-bar.is-collapsed .music-meta,
.music-bar.is-collapsed .music-controls,
.music-bar.is-collapsed .music-dial {
  display: none;
}

.music-bar.is-collapsed .music-cat-icon {
  margin-top: 0;
  width: 54px;
  height: 54px;
}

.music-bar.is-collapsed .music-visualizer {
  position: relative;
  right: auto;
  bottom: auto;
  justify-self: center;
  height: 22px;
}

.section-band {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  padding-block: clamp(64px, 9vw, 118px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font: 800 12px/1.4 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(54px, 9vw, 124px);
  line-height: .88;
  letter-spacing: 0;
  text-shadow: 0 0 40px rgba(255, 79, 191, .2);
}

.hero-title-glitch {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hero-title-glitch::before,
.hero-title-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: screen;
}

.hero-title-glitch::before {
  color: var(--cyan);
  text-shadow: -2px 0 14px rgba(101,255,240,.4);
  clip-path: inset(0 0 58% 0);
  animation: heroGlitchSlice 5.8s steps(1, end) infinite;
}

.hero-title-glitch::after {
  color: var(--hot);
  text-shadow: 2px 0 16px rgba(255,36,77,.32);
  clip-path: inset(58% 0 0 0);
  animation: heroGlitchSlice 6.4s steps(1, end) infinite reverse;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: .98;
  letter-spacing: 0;
}

h3 { font-size: 22px; }

.hero-lede {
  max-width: 700px;
  color: #dccbe4;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
}

.hero-actions, .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-guide {
  position: relative;
  width: min(420px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(101,255,240,.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(101,255,240,.08), rgba(255,36,77,.06)),
    rgba(0,0,0,.22);
  box-shadow: inset 0 0 24px rgba(101,255,240,.04), 0 18px 50px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease;
}

.terminal-guide:hover {
  border-color: rgba(255,79,191,.4);
  transform: translateY(-1px);
}

.terminal-guide-copy strong,
.terminal-guide-copy small {
  display: block;
}

.terminal-guide-copy strong {
  color: var(--cyan);
  font: 1000 13px/1 var(--mono);
  letter-spacing: .12em;
}

.terminal-guide-copy small {
  margin-top: 6px;
  color: rgba(248,234,255,.7);
  font: 800 11px/1.2 var(--mono);
  text-transform: uppercase;
}

.terminal-guide-path {
  position: relative;
  width: 126px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-guide-path::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink));
  box-shadow: 0 0 12px rgba(101,255,240,.42);
}

.terminal-guide-path i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(101,255,240,.8);
  animation: terminalGuidePulse 1.8s ease infinite;
}

.terminal-guide-path i:nth-child(2) { animation-delay: .18s; }
.terminal-guide-path i:nth-child(3) { animation-delay: .36s; }

.terminal-guide-path b {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--pink);
  border-right: 3px solid var(--pink);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(255,79,191,.72));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 800 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--pink) 55%, var(--violet));
  color: white;
  box-shadow: 0 14px 34px rgba(255, 36, 77, .22);
}

.btn.ghost { background: rgba(255,255,255,.03); color: var(--ink); }
.btn.arcade {
  border-color: rgba(101,255,240,.34);
  background: rgba(101,255,240,.08);
  color: var(--cyan);
  box-shadow: 0 14px 34px rgba(101,255,240,.08);
}
.btn:hover, .contact-links a:hover { transform: translateY(-2px); }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 820px;
  margin: 36px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.telemetry-copy {
  max-width: 680px;
  margin: 24px 0 12px;
  color: rgba(248,234,255,.82);
  font-family: var(--mono);
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,79,191,.22);
}

.signal-strip div {
  padding: 16px;
  background: rgba(10, 5, 14, .74);
}

dt {
  color: var(--pink);
  font: 800 11px/1.5 var(--mono);
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 79, 191, .2);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.orbit-one { width: 420px; height: 420px; }
.orbit-two {
  width: 310px;
  height: 310px;
  border-color: rgba(101, 255, 240, .2);
  animation-duration: 8s;
  animation-direction: reverse;
}

.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 22px var(--pink);
}

.orbit::before { top: 28px; left: 80px; }
.orbit::after { right: 38px; bottom: 88px; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); }

.rabbit-core {
  position: relative;
  width: 230px;
  height: 230px;
  filter: drop-shadow(0 0 44px rgba(255, 79, 191, .38));
  animation: pulse 3.2s ease-in-out infinite;
}

.rabbit-core span { position: absolute; display: block; }
.ear {
  width: 54px;
  height: 156px;
  top: 0;
  background: #030105;
  border: 1px solid rgba(255, 79, 191, .45);
  border-radius: 70% 70% 42% 42%;
}
.ear-left { left: 50px; transform: rotate(-18deg); }
.ear-right { right: 50px; transform: rotate(18deg); }
.head {
  left: 30px;
  bottom: 10px;
  width: 170px;
  height: 150px;
  border-radius: 48% 48% 42% 42%;
  background: radial-gradient(circle at 60% 40%, rgba(255,79,191,.16), transparent 25%), #040107;
  border: 1px solid rgba(255, 79, 191, .5);
}
.eye {
  right: 74px;
  bottom: 84px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 20px var(--red);
}

.eye::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 16px;
  width: 106px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,36,77,.72), transparent);
  filter: blur(.8px);
  opacity: .62;
}

.scanner-card, .packet {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(11, 6, 16, .82);
  backdrop-filter: blur(12px);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.scanner-card {
  right: 0;
  bottom: 86px;
  width: min(260px, 58vw);
  padding: 18px;
  overflow: hidden;
}

.scanner-card p {
  margin-bottom: 8px;
  color: var(--cyan);
  font: 800 11px/1 var(--mono);
  letter-spacing: .16em;
}

.scanner-card strong { font-size: 20px; }
.scan-line {
  inset: 0;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 0 24px var(--pink);
  animation: scan 2.4s ease-in-out infinite;
}

.packet {
  padding: 9px 11px;
  color: var(--cyan);
  font: 800 12px/1 var(--mono);
}
.packet-a { left: 16px; top: 122px; }
.packet-b { right: 72px; top: 34px; color: var(--pink); }
.packet-c { left: 80px; bottom: 120px; color: var(--red); }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 780px;
}

.ops-panel, .timeline-list article, .project, .ids-console, .contact {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0,0,0,.22);
}

.ops-panel {
  min-height: 220px;
  padding: 24px;
}

.ops-panel.wide { grid-column: 1 / -1; }

/* SOC card runs blue, Attack card runs red. */
.ops-duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ops-card-soc {
  border-color: rgba(90, 150, 255, .55) !important;
  background:
    linear-gradient(160deg, rgba(60, 130, 255, .22), transparent 60%),
    var(--panel);
  box-shadow: 0 24px 90px rgba(0,0,0,.22), 0 0 46px rgba(70, 130, 255, .24);
}

.ops-card-attack {
  border-color: rgba(255, 70, 95, .55) !important;
  background:
    linear-gradient(160deg, rgba(255, 60, 75, .22), transparent 60%),
    var(--panel);
  box-shadow: 0 24px 90px rgba(0,0,0,.22), 0 0 46px rgba(255, 70, 95, .24);
}

@media (max-width: 900px) {
  .ops-duo {
    grid-template-columns: 1fr;
  }
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: -24px -24px 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 800 12px/1 var(--mono);
}

.status-dot { color: var(--cyan); }
.panel-kicker {
  color: var(--pink);
  font: 800 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.terminal-output {
  min-height: 260px;
  padding: 22px 0;
  color: #e9dcf0;
  font: 14px/1.7 var(--mono);
}

.terminal-trail {
  margin-left: auto;
  color: rgba(101,255,240,.68);
  font: 900 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.ctf-vault-ready .terminal-trail {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255,79,191,.42);
}

.terminal-line { min-height: 24px; white-space: pre-wrap; }
.terminal-line.dim { color: var(--muted); }
.terminal-line.ok { color: var(--cyan); }
.terminal-line.hot { color: var(--pink); }
.terminal-line.err { color: var(--red); }

.terminal-ascii-rabbit {
  margin: 6px 0 2px;
  text-align: center;
  font: 700 14px/1.3 var(--mono);
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(101,255,240,.55);
  animation: asciiRabbitIn .5s ease both;
}

@keyframes asciiRabbitIn {
  from { opacity: 0; transform: translateY(6px) scale(.92); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-ascii-rabbit { animation: none; }
}

.ctf-toast {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 90;
  max-width: min(420px, calc(100vw - 28px));
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(101,255,240,.32);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(101,255,240,.13), transparent 34%),
    rgba(8, 4, 12, .96);
  box-shadow: 0 20px 70px rgba(0,0,0,.42), 0 0 30px rgba(101,255,240,.12);
  font: 900 12px/1.45 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .22s ease, transform .22s ease;
}

.ctf-toast.hot {
  border-color: rgba(255,79,191,.38);
  box-shadow: 0 20px 70px rgba(0,0,0,.42), 0 0 30px rgba(255,79,191,.16);
}

.ctf-toast.ok {
  border-color: rgba(101,255,240,.44);
}

.ctf-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.ctf-assistant-unlocked .rabbit-bot-status {
  background: var(--cyan);
  color: #050307;
}

.rabbit-aside-bubble {
  position: absolute;
  right: 112px;
  bottom: 126px;
  z-index: 3;
  width: min(280px, calc(100vw - 148px));
  padding: 11px 13px;
  border: 1px solid rgba(255,79,191,.32);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,79,191,.14), transparent 42%),
    rgba(8,4,12,.94);
  box-shadow: 0 18px 52px rgba(0,0,0,.38), 0 0 24px rgba(255,79,191,.12);
  font: 900 11px/1.45 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(12px, 10px, 0) scale(.96);
  transition: opacity .18s ease, transform .18s ease;
}

.rabbit-aside-bubble::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  border-right: 1px solid rgba(255,79,191,.32);
  border-bottom: 1px solid rgba(255,79,191,.32);
  background: rgba(8,4,12,.94);
  transform: rotate(-45deg);
}

.rabbit-aside-bubble.success {
  border-color: rgba(101,255,240,.4);
  box-shadow: 0 18px 52px rgba(0,0,0,.38), 0 0 24px rgba(101,255,240,.16);
}

.rabbit-aside-bubble.playful {
  border-color: rgba(101,255,240,.32);
  background:
    linear-gradient(135deg, rgba(101,255,240,.12), transparent 46%),
    rgba(8,4,12,.94);
  box-shadow: 0 18px 52px rgba(0,0,0,.38), 0 0 24px rgba(101,255,240,.12);
}

.rabbit-aside-bubble.warning {
  border-color: rgba(255,36,77,.52);
}

.rabbit-aside-bubble.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  /* The base rule sets pointer-events:none. Restore it once visible, or the
     prompt buttons and click-to-dismiss inside the bubble cannot be reached. */
  pointer-events: auto;
}

.rabbit-bubble-image {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  border-radius: 6px;
}

.ctf-medium-intro {
  position: fixed;
  inset: 0;
  z-index: 92;
  pointer-events: none;
  overflow: hidden;
}

.ctf-medium-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,36,77,.16), transparent 32%),
    rgba(0,0,0,.28);
  backdrop-filter: blur(5px) saturate(.85);
  animation: ctfMediumBlur 6.2s ease both;
}

.ctf-medium-stage {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  width: max-content;
  transform: translate3d(-125%, -50%, 0);
  animation: ctfMediumRide 6.2s linear both;
}

.ctf-medium-intro img {
  position: relative;
  z-index: 3;
  order: 1;
  width: min(390px, 42vw);
  height: auto;
  margin-right: clamp(-90px, -7vw, -34px);
  filter: drop-shadow(0 22px 42px rgba(0,0,0,.58)) drop-shadow(0 0 18px rgba(255,36,77,.32));
}

.ctf-medium-intro strong {
  position: relative;
  z-index: 2;
  order: 2;
  display: block;
  max-width: min(860px, 65vw);
  color: #ff244d;
  font: 1000 clamp(34px, 6.4vw, 94px)/.86 var(--mono);
  text-transform: uppercase;
  text-shadow:
    4px 0 #050307,
    -4px 0 #050307,
    0 0 26px rgba(255,36,77,.7),
    0 18px 36px rgba(0,0,0,.62);
  letter-spacing: .02em;
}

.ctf-medium-intro strong::before,
.ctf-medium-intro strong::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .72;
  mix-blend-mode: screen;
}

.ctf-medium-intro strong::before {
  color: #050307;
  transform: translate3d(4px, -2px, 0);
  clip-path: inset(0 0 48% 0);
  animation: ctfTextGlitch .7s steps(2, end) infinite;
}

.ctf-medium-intro strong::after {
  color: #9b000f;
  transform: translate3d(-4px, 2px, 0);
  clip-path: inset(52% 0 0 0);
  animation: ctfTextGlitch .55s steps(2, end) infinite reverse;
}

.ctf-vault-celebration {
  position: fixed;
  left: clamp(10px, 2.2vw, 28px);
  bottom: clamp(12px, 4vw, 42px);
  z-index: 88;
  width: min(270px, 42vw);
  pointer-events: none;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.42));
  animation: ctfCharacterEnter .5s cubic-bezier(.2,.8,.2,1) both;
}

.ctf-vault-celebration.is-closing {
  animation: ctfCharacterExit .2s ease both;
}

.ctf-vault-celebration img {
  display: block;
  width: min(230px, 36vw);
  height: auto;
}

.ctf-vault-close {
  position: absolute;
  right: clamp(4px, 1vw, 12px);
  top: clamp(2px, .8vw, 8px);
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(8, 4, 12, .82);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  cursor: pointer;
  pointer-events: auto;
  font: 900 15px/1 var(--mono);
}

.ctf-vault-close:hover {
  color: #050307;
  background: var(--cyan);
}

.ctf-vault-message {
  width: min(230px, 42vw);
  margin-top: -10px;
  padding: 11px 13px;
  border: 1px solid rgba(101,255,240,.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,79,191,.18), transparent 42%),
    rgba(8, 4, 12, .93);
  box-shadow: 0 18px 54px rgba(0,0,0,.36), 0 0 28px rgba(255,79,191,.18);
  font-family: var(--mono);
}

.ctf-vault-message strong,
.ctf-vault-message span {
  display: block;
}

.ctf-vault-message strong {
  color: var(--cyan);
  font-size: clamp(18px, 4vw, 28px);
  line-height: 1;
}

.ctf-vault-message span {
  margin-top: 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.terminal-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--pink);
  font-family: var(--mono);
}

.terminal-form input {
  min-width: 0;
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 12px;
  outline: none;
}

.terminal-form input:focus { border-color: rgba(255, 79, 191, .55); }
.terminal-form button {
  min-width: 70px;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  color: white;
  background: var(--pink);
  font-weight: 800;
}

.telemetry-panel {
  position: relative;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,79,191,.26);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0,0,0,.22);
  background:
    radial-gradient(circle at 58% 52%, rgba(255,79,191,.12), transparent 18rem),
    linear-gradient(rgba(255,79,191,.035) 1px, transparent 1px),
    rgba(7, 3, 10, .86);
  backdrop-filter: blur(18px);
}

.hero-telemetry {
  max-width: 680px;
  margin-top: 0;
}

.telemetry-rabbit-bg {
  position: absolute;
  right: 9%;
  top: 12%;
  width: 260px;
  height: 260px;
  opacity: .2;
  filter: drop-shadow(0 0 28px rgba(255,79,191,.28));
  pointer-events: none;
  transform: rotate(-8deg);
}

.telemetry-rabbit-bg span {
  position: absolute;
  display: block;
}

.tr-ear {
  top: 4px;
  width: 54px;
  height: 158px;
  border: 1px solid rgba(255,79,191,.42);
  border-radius: 70% 70% 36% 36%;
  background: #020006;
  box-shadow: inset 0 -14px 26px rgba(255,79,191,.04);
}

.tr-ear-left { left: 58px; transform: rotate(-15deg); }
.tr-ear-right { right: 58px; transform: rotate(15deg); }

.tr-head {
  left: 32px;
  bottom: 14px;
  width: 196px;
  height: 164px;
  border: 1px solid rgba(255,79,191,.48);
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 67% 43%, rgba(255,36,77,.18), transparent 22%),
    #030007;
}

.tr-eye {
  right: 78px;
  bottom: 106px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 26px var(--red), 0 0 46px rgba(255,36,77,.42);
}

.tr-eye::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 17px;
  width: 112px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,36,77,.7), transparent);
  filter: blur(.8px);
}

.telemetry-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,79,191,.18);
  color: var(--muted);
  font: 800 12px/1 var(--mono);
}

.telemetry-dots {
  display: flex;
  gap: 9px;
}

.telemetry-dots span {
  width: 10px;
  height: 10px;
  background: var(--pink);
}

.telemetry-dots span:nth-child(2) { background: var(--violet); }
.telemetry-dots span:nth-child(3) { background: var(--cyan); }

#telemetry-current {
  min-width: 0;
  color: rgba(248,234,255,.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#telemetry-count {
  color: var(--pink);
  font-weight: 950;
}

.telemetry-feed {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 294px;
  padding: 18px;
  color: rgba(248,234,255,.62);
  font: 800 13px/1.35 var(--mono);
}

.telemetry-line {
  min-height: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.telemetry-line.dim { color: rgba(248,234,255,.38); }
.telemetry-line.ok { color: var(--cyan); text-shadow: 0 0 10px rgba(101,255,240,.18); }
.telemetry-line.hot {
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255,79,191,.28);
}

.telemetry-line.hot::after,
.telemetry-line.ok::after {
  content: "";
  display: inline-block;
  width: 76px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: .65;
}

.telemetry-feed::after {
  content: "";
  width: 10px;
  height: 18px;
  margin-top: 4px;
  background: var(--pink);
  box-shadow: 0 0 18px rgba(255,79,191,.42);
  animation: cursorBlink 1s steps(2) infinite;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px;
}

.timeline-list span {
  color: var(--cyan);
  font: 800 12px/1.4 var(--mono);
}

.timeline-list p, .ops-panel p, .project p, .contact p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.experience-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
}

.experience-feature,
.experience-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,36,77,.1), rgba(101,255,240,.04)),
    var(--panel);
  box-shadow: 0 24px 90px rgba(0,0,0,.2);
}

.experience-feature {
  position: relative;
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
}

.experience-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: clamp(56px, 7vw, 86px);
  max-height: 86px;
  object-fit: contain;
  opacity: .94;
  filter: drop-shadow(0 0 18px rgba(255, 198, 0, .28));
  z-index: 1;
}

.experience-feature h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .95;
  padding-right: 92px;
}

.experience-feature p {
  max-width: 760px;
  color: #e9dff0;
  line-height: 1.75;
  padding-right: 72px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(101,255,240,.2);
  border-radius: 999px;
  background: rgba(101,255,240,.06);
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.experience-open,
.experience-card {
  cursor: pointer;
}

.experience-open {
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,79,191,.34);
  border-radius: 6px;
  background: rgba(255,79,191,.08);
  color: white;
  font: 900 11px/1 var(--mono);
  text-transform: uppercase;
}

.experience-stack {
  display: grid;
  gap: 10px;
}

.experience-card {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 15px;
  color: var(--ink);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.experience-card:hover,
.experience-card.is-expanded {
  transform: translateX(-4px);
  border-color: rgba(101,255,240,.34);
  background: rgba(101,255,240,.06);
}

.experience-card span {
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.experience-card strong {
  font-size: 15px;
}

.experience-card small {
  color: var(--muted);
  font: 800 11px/1.35 var(--mono);
}

.experience-feature.is-expanded,
.experience-card.is-expanded {
  border-color: rgba(255,79,191,.42);
}

.experience-detail {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(255,79,191,.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,36,77,.12), rgba(101,255,240,.06)),
    rgba(5,3,7,.72);
  color: var(--ink);
  box-shadow: inset 0 0 28px rgba(255,79,191,.04);
  animation: expandIn .2s ease both;
}

.experience-card + .experience-detail {
  margin-top: -2px;
}

.experience-detail h4 {
  margin: 0;
  font-size: 20px;
}

.experience-detail p {
  margin: 0;
  padding: 0;
  color: var(--cyan);
  font: 900 12px/1.4 var(--mono);
}

.experience-detail ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.experience-detail li {
  position: relative;
  padding-left: 18px;
  color: #e9dff0;
  line-height: 1.6;
}

.experience-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  align-items: center;
  gap: 34px;
  padding: clamp(24px, 5vw, 54px);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
  color: #e7d7ee;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 8px;
  height: 8px;
  background: var(--red);
  box-shadow: 0 0 16px var(--red);
}

.ids-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.04);
  font: 800 12px/1 var(--mono);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.ids-source-link svg { width: 16px; height: 16px; flex: none; }

.ids-source-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(101,255,240,.08);
}

.ids-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.ids-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 79, 191, .22);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.ids-map span {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  font: 800 13px/1.3 var(--mono);
  text-align: center;
  z-index: 1;
}

.ids-demo .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.ids-console {
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
}

.ids-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: calc(clamp(18px, 3vw, 28px) * -1) calc(clamp(18px, 3vw, 28px) * -1) 0;
  padding: 18px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 36, 77, .12), rgba(168, 85, 247, .08));
}

.ids-topbar strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 34px);
}

.demo-badge {
  padding: 10px 12px;
  border: 1px solid rgba(101, 255, 240, .34);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(101, 255, 240, .08);
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}

.ids-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.ids-metrics div {
  min-width: 0;
  padding: 16px;
  background: rgba(7, 3, 10, .72);
}

.ids-metrics span, .ids-metrics small {
  display: block;
}

.ids-metrics span {
  color: var(--ink);
  font: 900 clamp(22px, 4vw, 42px)/1 var(--mono);
}

.ids-metrics small {
  margin-top: 8px;
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ids-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 14px;
}

.alert-feed, .evidence-panel, .attack-map, .case-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 4, 12, .78);
  overflow: hidden;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.feed-rows {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.alert-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  background: rgba(255,255,255,.03);
}

.alert-row.active {
  border-color: rgba(255, 36, 77, .72);
  background: linear-gradient(90deg, rgba(255,36,77,.16), rgba(255,79,191,.06));
  box-shadow: 0 0 34px rgba(255, 36, 77, .16);
}

.alert-row strong, .alert-row span, .alert-row small {
  min-width: 0;
}

.alert-row strong {
  color: var(--ink);
  font: 850 14px/1.3 var(--mono);
}

.alert-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font: 12px/1.45 var(--mono);
  overflow-wrap: anywhere;
}

.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.severity.high { color: white; background: rgba(255, 36, 77, .86); }
.severity.medium { color: #150812; background: var(--pink); }
.severity.critical { color: white; background: linear-gradient(135deg, var(--red), var(--violet)); }

.alert-time {
  color: var(--cyan);
  font: 800 11px/1 var(--mono);
  text-align: right;
}

.evidence-panel pre {
  min-height: 232px;
  margin: 0;
  padding: 18px;
  color: #f4d9ff;
  background:
    linear-gradient(rgba(101,255,240,.04) 1px, transparent 1px),
    rgba(0,0,0,.22);
  background-size: 100% 28px;
  font: 12px/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.evidence-tags span {
  padding: 8px 9px;
  border: 1px solid rgba(101, 255, 240, .18);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(101, 255, 240, .06);
  font: 800 10px/1 var(--mono);
  text-transform: uppercase;
}

.attack-map {
  position: relative;
  min-height: 250px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,79,191,.15), transparent 36%),
    rgba(8, 4, 12, .78);
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--ink);
  font: 850 11px/1 var(--mono);
  text-transform: uppercase;
}

.node.attacker { left: 24px; top: 32px; border-color: rgba(255,36,77,.7); }
.node.waf { left: 36%; top: 102px; }
.node.snort { right: 32px; top: 38px; }
.node.soc { right: 18%; bottom: 30px; border-color: rgba(101,255,240,.42); }
.node.active { box-shadow: 0 0 28px rgba(255,36,77,.3); }

.trace {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, var(--red), var(--pink), transparent);
  opacity: .78;
  animation: tracePulse 2.6s ease-in-out infinite;
}

.trace-one { left: 110px; top: 64px; width: 190px; transform: rotate(20deg); }
.trace-two { left: 46%; top: 124px; width: 170px; transform: rotate(-24deg); animation-delay: .35s; }
.trace-three { right: 96px; top: 92px; width: 145px; transform: rotate(88deg); animation-delay: .72s; }

.case-panel {
  padding: 18px;
}

.case-panel h3 {
  margin: 10px 0;
}

.case-progress {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.case-progress span {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  overflow: hidden;
}

.case-progress span::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--step) * 25%);
  background: linear-gradient(90deg, rgba(255,36,77,.26), rgba(255,79,191,.12));
  z-index: -1;
}

.ids-product-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 780px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 10px;
  overflow: hidden;
  background: #020202;
  box-shadow: 0 32px 120px rgba(0,0,0,.36), 0 0 48px rgba(59, 130, 246, .1);
}

.ids-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,.06);
  background: #080808;
}

.ids-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 28px;
  padding: 10px;
}

.ids-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(185, 226, 255, .52));
}

.ids-brand strong,
.ids-brand span {
  display: block;
  min-width: 0;
}

.ids-brand strong {
  color: #f7fbff;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 0 14px rgba(173, 220, 255, .38);
}

.ids-brand span {
  margin-top: 4px;
  color: #8fb6d9;
  font: 800 8px/1.25 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ids-nav {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #737373;
  font: 850 12px/1 var(--sans);
  text-align: left;
  cursor: pointer;
}

.ids-nav.active {
  color: white;
  background: #2563eb;
  box-shadow: 0 18px 34px rgba(37, 99, 235, .22);
}

.ids-nav.danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, .08);
}

.ids-nav.danger.active {
  color: white;
  background: #dc2626;
  box-shadow: 0 18px 34px rgba(220, 38, 38, .22);
}

.ids-nav:hover {
  color: white;
  background: rgba(255,255,255,.05);
}

.ids-product-main {
  min-width: 0;
  background:
    radial-gradient(circle at 74% 0%, rgba(37, 99, 235, .13), transparent 34rem),
    #050505;
}

.ids-window-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0, 0, 0, .42);
}

.ids-window-top strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 14px;
  text-transform: uppercase;
}

.ids-screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}

.ids-screen {
  display: none;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: #0a0a0a;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.ids-screen.is-active {
  display: block;
  animation: idsScreenIn .22s ease both;
}

.featured-screen {
  grid-row: span 2;
}

.screen-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.screen-title span,
.screen-title small {
  color: #737373;
  font: 800 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.screen-title strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 22px;
  line-height: 1.1;
}

.screen-title small {
  color: #60a5fa;
  white-space: nowrap;
}

.ids-kpis,
.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.overview-screen .ids-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ids-kpis div,
.intel-grid div,
.profile-card {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.32);
  padding: 14px;
}

.ids-kpis span,
.intel-grid span,
.profile-card strong {
  display: block;
  color: white;
  font: 900 28px/1 var(--mono);
}

.ids-kpis small,
.intel-grid small,
.profile-card span,
.profile-card small {
  display: block;
  margin-top: 8px;
  color: #737373;
  font: 800 10px/1.25 var(--mono);
  text-transform: uppercase;
}

.ids-kpis .hot span {
  color: #ef4444;
  text-shadow: 0 0 18px rgba(239, 68, 68, .32);
}

.threat-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(239, 68, 68, .34);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(239, 68, 68, .16), rgba(249, 115, 22, .08), rgba(37, 99, 235, .04)),
    rgba(0,0,0,.24);
  box-shadow: 0 0 34px rgba(239, 68, 68, .12);
}

.threat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #dc2626;
  color: white;
  font: 950 26px/1 var(--mono);
  box-shadow: 0 0 28px rgba(239, 68, 68, .42);
  animation: threatPulse 1.35s ease-in-out infinite;
}

.threat-banner strong,
.threat-banner p,
.threat-banner span {
  display: block;
}

.threat-banner strong {
  color: white;
  font-size: 20px;
}

.threat-banner p {
  margin: 5px 0 0;
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.threat-banner span {
  padding: 8px 10px;
  border: 1px solid rgba(239, 68, 68, .34);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(239, 68, 68, .12);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.overview-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 12px;
  margin-top: 12px;
}

.chart-card {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  padding: 14px;
}

.overview-dashboard-grid .chart-card {
  margin-top: 0;
}

.main-chart {
  grid-row: span 2;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.chart-head strong,
.chart-head span,
.chart-head b {
  display: block;
}

.chart-head strong {
  color: white;
  font-size: 14px;
}

.chart-head span {
  margin-top: 4px;
  color: #737373;
  font: 800 10px/1.3 var(--mono);
  text-transform: uppercase;
}

.chart-head b {
  padding: 7px 8px;
  border: 1px solid rgba(239,68,68,.24);
  border-radius: 999px;
  color: #fca5a5;
  background: rgba(239,68,68,.09);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.chart-card p {
  margin: 12px 0 0;
  color: #737373;
  font: 800 10px/1 var(--mono);
  text-transform: uppercase;
}

.fake-area-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 122px;
  padding-top: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.threat-chart {
  height: 292px;
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
  padding: 30px 10px 0;
}

.threat-chart::after {
  content: "";
  position: absolute;
  left: 49%;
  top: 18px;
  bottom: 0;
  border-left: 1px dashed rgba(239,68,68,.46);
  box-shadow: 0 0 20px rgba(239,68,68,.4);
}

.fake-area-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #ef4444, #f97316 42%, rgba(37,99,235,.1));
  box-shadow: 0 -10px 24px rgba(239, 68, 68, .18);
}

.severity-card {
  display: grid;
  justify-items: center;
}

.severity-card .chart-head {
  width: 100%;
}

.severity-donut {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: conic-gradient(#ef4444 0 24%, #f97316 24% 62%, #3b82f6 62% 91%, #22c55e 91% 100%);
  position: relative;
  box-shadow: 0 0 28px rgba(239,68,68,.16);
}

.severity-donut::after {
  content: "91";
  position: absolute;
  inset: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a0a0a;
  color: white;
  font: 950 32px/1 var(--mono);
}

.legend-list {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.legend-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a3a3a3;
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
}

.legend-list b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.red-dot { background: #ef4444; }
.orange-dot { background: #f97316; }
.blue-dot { background: #3b82f6; }

.attack-bars {
  display: grid;
  gap: 12px;
}

.attack-bars div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.attack-bars span,
.attack-bars em {
  color: #a3a3a3;
  font: 800 11px/1 var(--mono);
  font-style: normal;
}

.attack-bars b {
  height: 10px;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #f97316, #3b82f6);
  box-shadow: 0 0 18px rgba(239,68,68,.16);
}

.mini-stream {
  display: grid;
  gap: 10px;
}

.mini-stream div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
}

.mini-stream b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 16px rgba(239,68,68,.54);
}

.mini-stream span,
.mini-stream em {
  min-width: 0;
  color: #d4d4d4;
  font: 800 11px/1.35 var(--mono);
}

.mini-stream em {
  color: #737373;
  font-style: normal;
  overflow-wrap: anywhere;
}

.intrusions-screen.is-active {
  min-height: 590px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row span,
.filter-row b {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  background: #111;
  color: #737373;
  font: 750 11px/1.3 var(--mono);
}

.filter-row b {
  color: #e5e5e5;
  text-transform: uppercase;
}

.ids-table {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: hidden;
}

.ids-tr {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 82px 86px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #d4d4d4;
  font: 12px/1.35 var(--mono);
  width: 100%;
  background: transparent;
  text-align: left;
}

.ids-tr:first-child {
  border-top: 0;
}

.ids-head {
  color: #737373;
  background: rgba(17,17,17,.55);
  font-size: 10px;
  text-transform: uppercase;
}

.ids-tr span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-row {
  cursor: pointer;
}

.event-row:hover,
.event-row.active {
  background: rgba(37, 99, 235, .08);
}

.event-row.active {
  box-shadow: inset 3px 0 0 #60a5fa;
}

.ids-tr b,
.ids-tr em {
  justify-self: start;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
  font-style: normal;
}

.ids-tr b.critical { color: #fca5a5; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.24); }
.ids-tr b.high { color: #fdba74; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.24); }
.ids-tr b.medium { color: #93c5fd; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.24); }
.ids-tr em { color: #bfdbfe; background: rgba(59,130,246,.08); }

.detail-drawer {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(59,130,246,.22);
  border-radius: 10px;
  background: rgba(37, 99, 235, .08);
}

.detail-drawer strong,
.detail-drawer code {
  display: block;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.detail-drawer strong {
  color: white;
}

.detail-head span {
  padding: 6px 8px;
  border: 1px solid rgba(59,130,246,.24);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59,130,246,.08);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.event-meta div {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  padding: 10px;
}

.event-meta dt {
  color: #737373;
  font-size: 9px;
}

.event-meta dd {
  margin: 5px 0 0;
  color: #dbeafe;
  font: 800 11px/1.25 var(--mono);
  overflow-wrap: anywhere;
}

.detail-drawer code {
  color: #93c5fd;
  font: 11px/1.55 var(--mono);
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
}

.detail-drawer p {
  margin: 12px 0 0;
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.6;
}

.rules-screen pre {
  margin: 14px 0 0;
  min-height: 170px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: #111;
  color: #d4d4d4;
  font: 11px/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-card strong {
  margin-top: 8px;
  color: #60a5fa;
  font-size: 24px;
}

.intel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intel-grid span {
  font-size: 24px;
}

.donut-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.donut {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0 42%, #ef4444 42% 62%, #22c55e 62% 78%, #a855f7 78% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #0a0a0a;
}

.donut-row p {
  margin: 0;
  color: #737373;
  font-size: 13px;
  line-height: 1.6;
}

.defense-stack,
.origin-list {
  display: grid;
  gap: 10px;
}

.defense-stack div,
.origin-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.32);
  padding: 14px;
}

.defense-stack strong,
.origin-list span {
  color: white;
  font-weight: 850;
}

.defense-stack span,
.origin-list b {
  color: #60a5fa;
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.screen-copy {
  margin: 16px 0 0;
  color: #a3a3a3;
  line-height: 1.7;
}

.rabbit-game .section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.game-shell {
  border: 1px solid rgba(101, 255, 240, .26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(101,255,240,.04) 1px, transparent 1px),
    linear-gradient(rgba(255,79,191,.05) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(101,255,240,.16), transparent 22rem),
    radial-gradient(circle at 78% 34%, rgba(255,36,77,.18), transparent 24rem),
    rgba(3, 6, 13, .92);
  background-size: 34px 100%, 100% 28px, auto, auto, auto;
  box-shadow: 0 34px 100px rgba(0,0,0,.38), inset 0 0 46px rgba(101,255,240,.06);
  overflow: hidden;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,36,77,.12), rgba(101,255,240,.04));
}

.game-topbar strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 18px;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.game-stats span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(101, 255, 240, .18);
  border-radius: 6px;
  background: rgba(101, 255, 240, .06);
  color: var(--muted);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.game-stats b {
  color: var(--cyan);
  font-size: 13px;
}

#rabbit-game {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 260px;
  max-height: 360px;
  background: #050812;
  image-rendering: pixelated;
  cursor: pointer;
}

.scoreboard-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(101,255,240,.04), rgba(255,36,77,.07)),
    rgba(0,0,0,.2);
}

.rabbit-fragment-panel {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(255,79,191,.34);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,36,77,.13), transparent 42%),
    rgba(6,2,10,.76);
  box-shadow: inset 0 0 28px rgba(255,79,191,.08);
}

.rabbit-fragment-panel.is-hidden {
  display: none;
}

.rabbit-fragment-panel strong {
  color: white;
  font: 900 12px/1.25 var(--mono);
  text-transform: uppercase;
}

.rabbit-fragment-panel code {
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(101,255,240,.28);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(101,255,240,.07);
  font: 900 12px/1.3 var(--mono);
  user-select: all;
  overflow-wrap: anywhere;
}

.rabbit-fragment-panel small {
  color: var(--muted);
  font: 800 10px/1.4 var(--mono);
  text-transform: uppercase;
}

.scoreboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scoreboard-head strong {
  display: block;
  margin-top: 5px;
  color: white;
}

.score-refresh,
.score-submit button {
  min-height: 34px;
  border: 1px solid rgba(101,255,240,.24);
  border-radius: 6px;
  background: rgba(101,255,240,.06);
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.score-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: scores;
}

.score-list li {
  counter-increment: scores;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  background: rgba(0,0,0,.22);
  color: var(--muted);
  font: 800 11px/1.35 var(--mono);
}

.score-list li::before {
  content: "#" counter(scores);
  color: var(--pink);
}

.score-list strong {
  color: white;
  overflow-wrap: anywhere;
}

.score-list span {
  color: var(--cyan);
}

.score-list small {
  color: rgba(248,234,255,.58);
}

.score-submit {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.score-submit.is-hidden {
  display: none;
}

.score-submit label {
  color: var(--pink);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.score-submit input {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 0 10px;
}

.score-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font: 800 11px/1.4 var(--mono);
}

.game-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.game-controls span {
  color: var(--muted);
  font: 800 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lifecycle {
  max-width: 720px;
  margin: 0 auto;
}

.lifecycle-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lifecycle-stage {
  --stage-c: var(--cyan);
  position: relative;
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--stage-c);
  border-radius: 10px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  text-align: center;
}

.lifecycle-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 2px;
  height: 20px;
  background: color-mix(in srgb, var(--stage-c) 55%, var(--line));
  transform: translateX(-1px);
}

.lifecycle-num {
  display: block;
  color: var(--stage-c);
  font: 900 11px/1 var(--mono);
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.lifecycle-stage strong {
  display: block;
  color: var(--ink);
  font: 900 16px/1 var(--mono);
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.lifecycle-tagline {
  margin: 0 0 14px;
  color: var(--muted);
  font: 500 12px/1.5 var(--sans);
}

.lifecycle-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.lifecycle-items li {
  color: var(--muted);
  font: 600 12px/1.4 var(--sans);
}

.lifecycle-connector {
  position: relative;
  height: 40px;
}

.lifecycle-connector::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--line);
  transform: translateX(-1px);
}

.lifecycle-connector--merge::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% / 6);
  right: calc(100% / 6);
  border-top: 2px solid var(--line);
}

.lifecycle-stage04 {
  max-width: 400px;
  margin: 0 auto;
}

/* Terminal node of the diagram now - no connector runs below it. */
.lifecycle-stage04::after { display: none; }

@media (max-width: 640px) {
  .lifecycle-row { grid-template-columns: 1fr; gap: 36px; }
  .lifecycle-connector--merge::before { display: none; }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
  padding: clamp(24px, 5vw, 48px);
}

.contact-console {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  color: var(--ink);
  font: 800 13px/1.3 var(--mono);
  transition: transform .18s ease, border-color .18s ease;
}

.signal-box {
  position: relative;
  border: 1px solid rgba(101,255,240,.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(101,255,240,.04) 1px, transparent 1px),
    rgba(0,0,0,.26);
  background-size: 100% 18px;
  padding: 14px;
  overflow: hidden;
}

.signal-lightning {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  opacity: .88;
}

.signal-lightning span {
  position: absolute;
  height: 2px;
  width: 46%;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
  filter: drop-shadow(0 0 10px rgba(101,255,240,.5));
  transform-origin: left center;
  animation: signalBolt 2.2s ease-in-out infinite;
}

.signal-lightning span:nth-child(1) {
  top: 22px;
  left: 6%;
  transform: rotate(12deg);
}

.signal-lightning span:nth-child(2) {
  top: 56px;
  right: 4%;
  width: 36%;
  transform: rotate(-16deg);
  animation-delay: .35s;
}

.signal-lightning span:nth-child(3) {
  bottom: 28px;
  left: 22%;
  width: 58%;
  transform: rotate(4deg);
  animation-delay: .72s;
}

.signal-screen {
  position: relative;
  z-index: 1;
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(0,0,0,.28);
  font: 900 13px/1.55 var(--mono);
  overflow-wrap: anywhere;
}

.signal-screen.is-flashing {
  animation: signalFlash .65s ease;
}

.signal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.signal-actions button {
  min-height: 34px;
  border: 1px solid rgba(255,79,191,.28);
  border-radius: 6px;
  background: rgba(255,79,191,.06);
  color: var(--ink);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.rabbit-assistant {
  --bot-x: 0px;
  --bot-y: 0px;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 144px;
  height: 172px;
  pointer-events: none;
  transform: translate3d(var(--bot-x), var(--bot-y), 0);
  transition: transform 1.2s cubic-bezier(.22,.72,.2,1);
}

.rabbit-assistant.is-open {
  z-index: 60;
}

.rabbit-bot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 10px rgba(255,36,77,.34))
    drop-shadow(0 0 18px rgba(101,255,240,.1))
    drop-shadow(0 14px 20px rgba(0,0,0,.34));
  pointer-events: none;
}

.rabbit-assistant.is-moving .rabbit-bot-canvas {
  filter: drop-shadow(-14px 0 12px rgba(255,36,77,.24)) drop-shadow(0 0 12px rgba(101,255,240,.18));
}

.rabbit-assistant.is-moving::before {
  opacity: .82;
  filter: blur(1px) saturate(1.25);
}

.rabbit-assistant::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 28px;
  top: 34px;
  bottom: 20px;
  z-index: -1;
  opacity: .34;
  pointer-events: none;
  background:
    radial-gradient(circle at 64% 48%, rgba(255,36,77,.32), transparent 22%),
    linear-gradient(90deg, transparent 0 10%, rgba(255,36,77,.32) 10% 13%, transparent 13% 42%, rgba(101,255,240,.2) 42% 45%, transparent 45%),
    repeating-linear-gradient(180deg, transparent 0 11px, rgba(255,79,191,.14) 11px 13px, transparent 13px 24px);
  filter: blur(.4px);
  clip-path: polygon(0 15%, 84% 0, 100% 26%, 78% 38%, 96% 64%, 60% 100%, 7% 84%);
  animation: rabbitGlitch 2.4s steps(2, end) infinite;
}

.rabbit-assistant::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -6px;
  bottom: 2px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 62% 50%, rgba(255,36,77,.24), transparent 44%),
    linear-gradient(90deg, transparent, rgba(101,255,240,.24), rgba(255,79,191,.2), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,79,191,.12) 18px 20px, transparent 20px 38px);
  filter: blur(1.4px);
  opacity: .62;
  transform: perspective(180px) rotateX(62deg);
  animation: rabbitLane 3.6s linear infinite;
}

.rabbit-bot-avatar {
  position: absolute;
  inset: 10px 12px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.rabbit-bot-status {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  color: var(--cyan);
  font: 900 9px/1 var(--mono);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(101,255,240,.65);
  opacity: .8;
}

.rabbit-chat-panel {
  position: absolute;
  right: 24px;
  bottom: 164px;
  width: min(340px, calc(100vw - 28px));
  border: 1px solid rgba(255,79,191,.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(38,5,28,.95), rgba(3,1,8,.96)),
    var(--panel);
  box-shadow: 0 24px 90px rgba(0,0,0,.42);
  overflow: hidden;
  pointer-events: auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .08;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(101,255,240,.1) 34px 35px, transparent 35px 68px),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(255,79,191,.08) 13px 14px, transparent 14px 28px);
  mix-blend-mode: screen;
  animation: cryptSweep 12s linear infinite;
}

.rabbit-chat-panel.is-hidden {
  display: none;
}

.rabbit-chat-head,
.rabbit-chat-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rabbit-chat-head strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.rabbit-chat-head button,
.rabbit-chat-form button,
.rabbit-chat-prompts button {
  border: 1px solid rgba(101,255,240,.24);
  border-radius: 6px;
  background: rgba(101,255,240,.07);
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.rabbit-chat-head button {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.rabbit-chat-log {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
}

.rabbit-message {
  max-width: 86%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--muted);
  font: 800 11px/1.5 var(--mono);
}

.rabbit-message.bot {
  justify-self: start;
  background: rgba(101,255,240,.06);
}

.rabbit-message.user {
  justify-self: end;
  color: var(--ink);
  background: rgba(255,36,77,.12);
}

.rabbit-chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 12px 12px;
}

.rabbit-chat-prompts button {
  min-height: 28px;
  padding: 0 9px;
}

.rabbit-chat-prompts button:disabled {
  cursor: not-allowed;
  color: rgba(255,255,255,.34);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  opacity: .72;
}

.rabbit-chat-form {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 0;
}

.rabbit-chat-form input {
  min-width: 0;
  flex: 1;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 0 10px;
}

.rabbit-chat-form button {
  align-self: stretch;
  padding: 0 12px;
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.admin-hero {
  margin-bottom: 24px;
}

.admin-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 92px);
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-login,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,36,77,.1), rgba(101,255,240,.04)),
    var(--panel);
  box-shadow: 0 24px 90px rgba(0,0,0,.24);
}

.admin-login {
  max-width: 520px;
  padding: 24px;
}

.admin-login h2,
.admin-card h2 {
  margin: 0;
  font-size: 24px;
}

.admin-login form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-login label {
  display: grid;
  gap: 7px;
  color: var(--pink);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.admin-login input {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 0 12px;
}

.admin-login button,
.admin-card button {
  min-height: 38px;
  border: 1px solid rgba(101,255,240,.24);
  border-radius: 6px;
  background: rgba(101,255,240,.07);
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

#admin-login-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font: 800 11px/1.4 var(--mono);
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-grid.is-hidden,
.admin-login.is-hidden {
  display: none;
}

.admin-card {
  min-width: 0;
  padding: 18px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-metric {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  padding: 13px;
  background: rgba(0,0,0,.22);
}

.admin-metric span {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font: 900 19px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-metric small {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font: 900 9px/1 var(--mono);
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-actions span {
  color: var(--muted);
  font: 800 11px/1.4 var(--mono);
}

.admin-danger {
  border-color: rgba(255,36,77,.42);
  background: rgba(255,36,77,.1);
  color: var(--hot);
}

.admin-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-insights section,
.ip-tag-form {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(0,0,0,.18);
  padding: 12px;
}

.admin-insights h3 {
  margin: 0 0 10px;
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
}

.admin-list {
  display: grid;
  gap: 7px;
  min-height: 30px;
  color: rgba(255,255,255,.52);
  font: 800 10px/1.4 var(--mono);
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 5px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding: 6px 8px;
  font: 800 10px/1.3 var(--mono);
  text-align: left;
}

.admin-list-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row b {
  color: var(--pink);
}

.ip-tag-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(170px, 1.4fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.ip-tag-form label {
  display: grid;
  gap: 6px;
  color: var(--pink);
  font: 900 9px/1 var(--mono);
  text-transform: uppercase;
}

.ip-tag-form input {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 0 10px;
}

.admin-subsection {
  margin-bottom: 26px;
}

.admin-subsection h3 {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 900 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.schat-code-form {
  grid-template-columns: minmax(160px, 1.4fr) minmax(110px, .8fr) minmax(110px, .8fr) auto auto;
}

.schat-owner-check {
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--pink) !important;
  font: 900 9px/1 var(--mono) !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.schat-owner-check input { min-height: auto; }

.schat-owner-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font: 700 10px/1.5 var(--mono);
}

.schat-new-code-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(101, 255, 240, .4);
  border-radius: 7px;
  background: rgba(101, 255, 240, .08);
}

.schat-new-code-banner strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font: 800 11px/1.4 var(--mono);
}

.schat-new-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schat-new-code-row code {
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(0,0,0,.4);
  color: var(--ink);
  font: 900 14px/1 var(--mono);
  letter-spacing: .08em;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
}

.admin-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1320px;
}

.admin-card th,
.admin-card td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  color: var(--muted);
  font: 800 11px/1.4 var(--mono);
}

.admin-card th {
  color: var(--cyan);
  background: rgba(0,0,0,.24);
  text-transform: uppercase;
}

.admin-card td:nth-child(1),
.admin-card td:nth-child(2) {
  color: var(--ink);
}

.admin-cell-stack span,
.admin-cell-stack small {
  display: block;
}

.admin-cell-stack small {
  margin-top: 4px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .ctf-medium-stage {
    gap: 0;
  }

  .ctf-medium-intro img {
    width: 54vw;
    margin-right: -16vw;
  }

  .ctf-medium-intro strong {
    max-width: 68vw;
    font-size: clamp(26px, 11vw, 54px);
  }

  .rabbit-assistant {
    right: 10px;
    bottom: 10px;
    width: 122px;
    height: 146px;
    transform: translate3d(var(--bot-x), var(--bot-y), 0);
  }

  .rabbit-bot-avatar {
    inset: 22px 18px 12px;
  }

  .rabbit-chat-panel {
    right: 0;
    left: auto;
    bottom: 154px;
    transform: none;
    width: calc(100vw - 20px);
  }

  .rabbit-aside-bubble {
    right: 86px;
    bottom: 116px;
    width: min(238px, calc(100vw - 112px));
    font-size: 10px;
  }

  .rabbit-chat-log {
    max-height: 210px;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-insights,
  .ip-tag-form {
    grid-template-columns: 1fr;
  }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoSpark {
  0%, 100% { transform: scale(.86) rotate(0deg); opacity: .55; }
  50% { transform: scale(1.12) rotate(20deg); opacity: 1; }
}
@keyframes toolProgress {
  0%, 100% { transform: translateX(0); filter: saturate(1); }
  50% { transform: translateX(9%); filter: saturate(1.25); }
}
@keyframes pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.03); }
}
@keyframes rabbitGlitch {
  0%, 84%, 100% { transform: translate(0,0); opacity: .22; }
  88% { transform: translate(-5px,1px); opacity: .42; }
  92% { transform: translate(4px,-1px); opacity: .28; }
}
@keyframes rabbitLane {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 76px 0; }
}
@keyframes cryptSweep {
  from { background-position: 0 0, 0 0; }
  to { background-position: 136px 0, 0 84px; }
}
@keyframes heroGlitchSlice {
  0%, 84%, 100% { transform: translate3d(0,0,0); opacity: .16; filter: saturate(1); }
  86% { transform: translate3d(-2px,0,0); opacity: .38; filter: saturate(1.45); }
  88% { transform: translate3d(2px,0,0); opacity: .3; filter: saturate(1.2); }
  90% { transform: translate3d(0,0,0); opacity: .2; filter: saturate(1); }
  94% { transform: translate3d(1px,0,0); opacity: .34; }
}
@keyframes ctfCharacterEnter {
  from { opacity: 0; transform: translate3d(-26px, 18px, 0) scale(.92); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes ctfCharacterExit {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(-18px, 12px, 0) scale(.94); }
}
@keyframes ctfMediumRide {
  0% { opacity: 0; transform: translate3d(-125%, -50%, 0); }
  8%, 84% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(108vw, -50%, 0); }
}
@keyframes ctfMediumBlur {
  0%, 100% { opacity: 0; }
  10%, 86% { opacity: 1; }
}
@keyframes ctfTextGlitch {
  0%, 100% { opacity: .32; transform: translate3d(0,0,0); }
  35% { opacity: .88; transform: translate3d(5px,-2px,0); }
  65% { opacity: .66; transform: translate3d(-5px,2px,0); }
}
@keyframes terminalGuidePulse {
  0%, 100% { transform: scale(.78); opacity: .45; }
  45% { transform: scale(1.18); opacity: 1; }
}
@keyframes scan {
  0% { transform: translateY(-4px); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(116px); opacity: 0; }
}
@keyframes tracePulse {
  0%, 100% { opacity: .16; filter: blur(1px); }
  45%, 60% { opacity: .95; filter: blur(0); }
}
@keyframes idsScreenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes expandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes threatPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(239, 68, 68, .34); }
  50% { transform: scale(1.05); box-shadow: 0 0 38px rgba(239, 68, 68, .58); }
}
@keyframes introScan {
  from { transform: translateY(-14px); }
  to { transform: translateY(0); }
}
@keyframes musicPulse {
  0%, 100% { opacity: .12; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.05); }
}
@keyframes equalize {
  0%, 100% { height: 14px; opacity: .42; }
  35% { height: 48px; opacity: 1; }
  70% { height: 26px; opacity: .7; }
}
@keyframes dotWave {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-5px) scale(1.22); }
}
@keyframes signalFlash {
  0% { box-shadow: 0 0 0 rgba(101,255,240,0); }
  35% { box-shadow: 0 0 30px rgba(101,255,240,.26); border-color: rgba(101,255,240,.42); }
  100% { box-shadow: 0 0 0 rgba(101,255,240,0); }
}
@keyframes signalBolt {
  0%, 100% { opacity: .08; clip-path: inset(0 100% 0 0); }
  28% { opacity: .9; clip-path: inset(0 0 0 0); }
  46% { opacity: .24; clip-path: inset(0 0 0 72%); }
}
@keyframes cursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: .08; }
}
@media (max-width: 900px) {
  .construction-banner {
    width: min(100% - 24px, 1180px);
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .construction-tooling {
    grid-column: 2 / -1;
    min-width: 0;
  }
  .side-dock {
    position: relative;
    top: auto;
    right: auto;
    left: auto !important;
    width: min(100% - 24px, 320px);
    margin: 18px auto 0;
    transform: none !important;
  }
  .music-bar {
    width: 100%;
  }
  .music-visualizer,
  .music-controls {
    grid-column: auto;
  }
  .game-topbar { align-items: flex-start; flex-direction: column; }
  .game-stats { justify-content: flex-start; }
  .site-header { align-items: flex-start; flex-direction: column; position: static; }
  nav {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: clamp(10px, 3vw, 20px);
  }
  .nav-cybermap {
    order: -1;
    margin: 2px 0 4px;
  }
  .nav-osi {
    order: -1;
    margin: 2px 0 4px;
  }
  .hero, .project, .contact, .experience-board { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-visual { min-height: 420px; }
  .signal-strip { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .timeline-list article { grid-template-columns: 1fr; }
  .ids-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ids-dashboard-grid { grid-template-columns: 1fr; }
  .ids-product-shell { grid-template-columns: 1fr; }
  .ids-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .ids-brand { margin-bottom: 0; min-width: 210px; }
  .ids-nav { min-width: max-content; }
  .overview-screen .ids-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-dashboard-grid { grid-template-columns: 1fr; }
  .main-chart { grid-row: auto; }
  .featured-screen { grid-row: auto; }
}

@media (max-width: 560px) {
  .section-band { width: min(100% - 24px, 1180px); }
  .intro-copy {
    left: 18px;
    right: 18px;
    bottom: 72px;
  }
  .intro-copy strong { font-size: 34px; }
  .construction-banner { grid-template-columns: auto minmax(0, 1fr); }
  .tool-window-dots { display: none; }
  .construction-logo { width: 54px; }
  .construction-tooling {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .music-bar {
    width: min(100% - 24px, 300px);
  }
  .music-visualizer,
  .music-controls {
    grid-column: auto;
  }
  .music-controls button {
    flex: 0 0 auto;
  }
  #rabbit-game {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }
  .game-controls .btn {
    flex: 1 1 140px;
  }
  nav { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  h1 { font-size: 50px; }
  .hero-visual { min-height: 360px; }
  .orbit-one { width: 310px; height: 310px; }
  .orbit-two { width: 230px; height: 230px; }
  .rabbit-core { transform: scale(.82); }
  .scanner-card { right: 10px; bottom: 36px; }
  .ids-map { grid-template-columns: 1fr; }
  .ids-topbar { align-items: flex-start; flex-direction: column; }
  .ids-metrics { grid-template-columns: 1fr; }
  .alert-row { grid-template-columns: 1fr; }
  .alert-time { text-align: left; }
  .attack-map { min-height: 320px; }
  .node.attacker { left: 16px; top: 24px; }
  .node.waf { left: 22px; top: 120px; }
  .node.snort { right: 18px; top: 80px; }
  .node.soc { right: 18px; bottom: 26px; }
  .ids-window-top { align-items: flex-start; flex-direction: column; }
  .ids-screen-grid { padding: 12px; }
  .ids-kpis, .intel-grid { grid-template-columns: 1fr; }
  .overview-screen .ids-kpis { grid-template-columns: 1fr; }
  .threat-banner { grid-template-columns: 1fr; }
  .threat-chart { height: 220px; }
  .attack-bars div { grid-template-columns: 1fr; }
  .mini-stream div { grid-template-columns: auto minmax(0, 1fr); }
  .mini-stream em { grid-column: 2; }
  .filter-row { grid-template-columns: 1fr; }
  .ids-tr { grid-template-columns: 1fr; }
  .event-meta { grid-template-columns: 1fr; }
  .donut-row { grid-template-columns: 1fr; }
  .terminal-form { grid-template-columns: auto 1fr; }
  .terminal-form button { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- LynxGate detection sandbox ---------- */
.ids-nav.live {
  color: #86efac;
  background: rgba(34, 197, 94, .08);
}

.ids-nav.live.active {
  color: white;
  background: #16a34a;
  box-shadow: 0 18px 34px rgba(22, 163, 74, .22);
}

.sandbox-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 10px;
  background: rgba(0,0,0,.32);
}

.sandbox-form label {
  color: #60a5fa;
  font: 800 11px/1 var(--mono);
  white-space: nowrap;
}

.sandbox-form input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(0,0,0,.4);
  color: #e5e7eb;
  font: 12px/1.4 var(--mono);
}

.sandbox-form input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, .5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.sandbox-form button {
  padding: 10px 16px;
  border: 1px solid rgba(37, 99, 235, .4);
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font: 850 11px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}

.sandbox-form button:hover { background: #1d4ed8; }

.sandbox-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.sandbox-chip {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(0,0,0,.3);
  color: #93c5fd;
  font: 700 10px/1.2 var(--mono);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.sandbox-chip:hover {
  color: white;
  border-color: rgba(59, 130, 246, .4);
  background: rgba(37, 99, 235, .16);
}

.sandbox-trace {
  display: grid;
  gap: 3px;
  min-height: 54px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.34);
}

.sandbox-trace-line {
  font: 700 11px/1.5 var(--mono);
  animation: idsScreenIn .18s ease both;
}

.sandbox-trace-line.dim { color: #737373; }
.sandbox-trace-line.ok { color: #86efac; }
.sandbox-trace-line.err { color: #fca5a5; }

.sandbox-banner.is-clean {
  border-color: rgba(34, 197, 94, .34);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, .16), rgba(16, 185, 129, .08), rgba(37, 99, 235, .04)),
    rgba(0,0,0,.24);
  box-shadow: 0 0 34px rgba(34, 197, 94, .12);
}

.sandbox-banner.is-clean .threat-icon {
  background: #16a34a;
  box-shadow: 0 0 28px rgba(34, 197, 94, .42);
  animation: none;
}

.sandbox-banner.is-clean p { color: #bbf7d0; }

.sandbox-banner.is-clean span {
  border-color: rgba(34, 197, 94, .34);
  color: #bbf7d0;
  background: rgba(34, 197, 94, .12);
}

.sandbox-verdict .detail-drawer code mark {
  padding: 1px 2px;
  border-radius: 3px;
  background: rgba(239, 68, 68, .3);
  color: #fecaca;
  font-weight: 800;
}

.sandbox-coverage {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.24);
}

.sandbox-coverage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sandbox-coverage-head strong {
  color: white;
  font-size: 13px;
}

.sandbox-coverage-head span {
  color: #60a5fa;
  font: 900 11px/1 var(--mono);
}

.sandbox-coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.sandbox-cov {
  padding: 8px 6px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.3);
  color: #525252;
  font: 800 9px/1.2 var(--mono);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sandbox-cov.is-hit {
  border-color: rgba(34, 197, 94, .34);
  background: rgba(34, 197, 94, .12);
  color: #86efac;
}

.sandbox-reward {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, .34);
  border-radius: 10px;
  background: rgba(34, 197, 94, .08);
}

.sandbox-reward strong {
  display: block;
  margin: 6px 0 8px;
  color: white;
  font-size: 13px;
}

.sandbox-reward code {
  display: block;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 8px;
  background: rgba(0,0,0,.34);
  color: #86efac;
  font: 800 12px/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.sandbox-reward small {
  display: block;
  margin-top: 8px;
  color: #a3a3a3;
  font-size: 11px;
}

.event-row.is-live {
  border-left: 2px solid rgba(34, 197, 94, .6);
}

.event-row.is-live em {
  color: #86efac;
  background: rgba(34, 197, 94, .1);
}

@media (max-width: 900px) {
  .sandbox-form { grid-template-columns: minmax(0, 1fr); }
  .sandbox-coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Containment simulator ---------- */
.containment {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 10px;
  background: rgba(0,0,0,.26);
}

.containment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.containment-head strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 16px;
}

#containment-record {
  padding: 6px 10px;
  border: 1px solid rgba(59,130,246,.24);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59,130,246,.08);
  font: 900 11px/1 var(--mono);
  white-space: nowrap;
}

.containment-intro {
  margin: 0 0 14px;
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.6;
}

.containment-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.3);
}

.containment-alert b {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font: 900 9px/1 var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.containment-alert b.critical { color: #fca5a5; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.24); }
.containment-alert b.high { color: #fdba74; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.24); }
.containment-alert b.medium { color: #93c5fd; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.24); }

.containment-alert strong {
  display: block;
  color: white;
  font-size: 14px;
}

.containment-alert p {
  margin: 6px 0 0;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.6;
}

.containment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.containment-action {
  flex: 1 1 auto;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(0,0,0,.34);
  color: #dbeafe;
  font: 800 11px/1.2 var(--sans);
  cursor: pointer;
}

.containment-action:hover:not(:disabled) {
  color: white;
  border-color: rgba(59,130,246,.5);
  background: rgba(37,99,235,.2);
}

.containment-action:disabled { cursor: default; opacity: .5; }

.containment-action.is-best {
  opacity: 1;
  color: #bbf7d0;
  border-color: rgba(34,197,94,.5);
  background: rgba(34,197,94,.14);
}

.containment-action.is-wrong {
  opacity: 1;
  color: #fecaca;
  border-color: rgba(239,68,68,.5);
  background: rgba(239,68,68,.14);
}

.containment-outcome {
  padding: 14px;
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  background: rgba(239,68,68,.07);
}

.containment-outcome.is-correct {
  border-color: rgba(34,197,94,.34);
  background: rgba(34,197,94,.08);
}

.containment-outcome strong {
  display: block;
  margin-bottom: 8px;
  color: #fecaca;
  font-size: 14px;
}

.containment-outcome.is-correct strong { color: #86efac; }

.containment-outcome p {
  margin: 0 0 10px;
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.65;
}

.containment-tradeoff {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #a3a3a3 !important;
  font-style: italic;
}

#containment-next {
  padding: 9px 16px;
  border: 1px solid rgba(37,99,235,.4);
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font: 850 11px/1 var(--sans);
  cursor: pointer;
}

#containment-next:hover { background: #1d4ed8; }

@media (max-width: 900px) {
  .containment-action { flex-basis: 100%; }
}

/* ---------- Footprint panel ---------- */
.footprint-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(380px, calc(100vw - 44px));
  padding: 16px;
  border: 1px solid rgba(255, 79, 191, .32);
  border-radius: 14px;
  background: rgba(8, 4, 12, .96);
  box-shadow: 0 28px 80px rgba(0,0,0,.6), 0 0 40px rgba(255, 79, 191, .12);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .24s ease, transform .24s ease;
}

.footprint-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footprint-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.footprint-head strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 16px;
}

.footprint-close {
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: transparent;
  color: #a3a3a3;
  font: 800 12px/1 var(--mono);
  cursor: pointer;
}

.footprint-close:hover { color: white; border-color: rgba(255,79,191,.4); }

.footprint-intro,
.footprint-outro {
  margin: 0;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.6;
}

.footprint-list {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.footprint-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.34);
}

.footprint-list dt {
  color: #737373;
  font: 800 9px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footprint-list dd {
  margin: 0;
  color: #f0abfc;
  font: 700 11px/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.footprint-outro {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-style: italic;
}

@media (max-width: 760px) {
  .footprint-panel { right: 12px; bottom: 12px; }
  .footprint-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- Admin panel: filters, paging, visitors ---------- */
.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-head-actions select,
.admin-filters select,
.admin-filters input {
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(0,0,0,.4);
  color: #e5e7eb;
  font: 700 11px/1 var(--mono);
}

.admin-ghost {
  border: 1px solid rgba(255,255,255,.14) !important;
  background: transparent !important;
  color: #a3a3a3 !important;
}

.admin-ghost:hover:not(:disabled) {
  color: white !important;
  border-color: rgba(59,130,246,.5) !important;
}

.admin-spark {
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.28);
}

.admin-spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 60px;
}

.admin-spark-bars span {
  flex: 1 1 auto;
  min-width: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #60a5fa, rgba(37,99,235,.3));
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-tab {
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #737373;
  font: 800 12px/1 var(--sans);
  cursor: pointer;
}

.admin-tab.is-active {
  color: white;
  border-bottom-color: #2563eb;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-filters input[type="search"] { flex: 1 1 240px; }
.admin-filters input#filter-country { width: 70px; text-transform: uppercase; }

.admin-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.admin-pager span {
  color: #a3a3a3;
  font: 700 11px/1 var(--mono);
}

.admin-pager button:disabled { opacity: .35; cursor: default; }

.admin-cell-stack.is-clickable {
  cursor: pointer;
  color: #93c5fd;
}

.admin-cell-stack.is-clickable:hover { color: white; text-decoration: underline; }

.admin-drawer {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(59,130,246,.28);
  border-radius: 10px;
  background: rgba(37,99,235,.07);
}

.admin-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-drawer-head strong {
  color: white;
  font: 800 14px/1 var(--mono);
}

#drawer-close {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: transparent;
  color: #a3a3a3;
  cursor: pointer;
}

.admin-drawer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 0;
}

.admin-drawer-list div {
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.3);
}

.admin-drawer-list dt {
  color: #737373;
  font: 800 9px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.admin-drawer-list dd {
  margin: 5px 0 0;
  color: #dbeafe;
  font: 700 11px/1.45 var(--mono);
  overflow-wrap: anywhere;
}

.admin-view.is-hidden,
.admin-filters.is-hidden { display: none; }

@media (max-width: 760px) {
  .admin-head-actions { width: 100%; }
  .admin-filters input[type="search"] { flex-basis: 100%; }
}

/* ---------- Interactive screen markers in the IDS sidebar ---------- */
.ids-nav.interactive {
  position: relative;
  padding-right: 34px;
}

/* Exclamation badge, so the screen reads as "usable" and not another static panel. */
.ids-nav.interactive::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border-radius: 50%;
  background: #fbbf24;
  color: #1c1300;
  font: 950 10px/1 var(--mono);
  box-shadow: 0 0 10px rgba(251, 191, 36, .6);
}

/* Pulsing light on the right edge. */
.ids-nav.interactive::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: navPulse 1.9s ease-out infinite;
}

.ids-nav.interactive.active::after { background: #ffffff; }

@keyframes navPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .65); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); opacity: .85; }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ids-nav.interactive::after { animation: none; }
}

/* ---------- Rabbit bubble: prompts, hover hold ---------- */
.rabbit-bubble-text {
  margin: 0;
}

.rabbit-aside-bubble:not([data-persist="true"]) {
  cursor: pointer;
}

.rabbit-bubble-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.rabbit-bubble-action {
  flex: 1 1 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  color: inherit;
  font: 800 11px/1.2 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}

.rabbit-bubble-action:hover {
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.42);
}

.rabbit-bubble-action.yes {
  border-color: rgba(101, 255, 240, .5);
  background: rgba(101, 255, 240, .16);
}

.rabbit-bubble-action.yes:hover {
  background: rgba(101, 255, 240, .28);
}

/* ---------- Footprint closing note ---------- */
.footprint-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  transform: translateY(8px) rotate(-1.5deg);
  transition: opacity .3s ease, transform .3s ease;
}

.footprint-note.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
}

.footprint-note img {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
}

.footprint-note figcaption {
  margin-top: 10px;
  color: #737373;
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Shared folder (site theme) ---------- */
.disk-launcher {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 79, 191, .28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 79, 191, .1), transparent 55%),
    rgba(8, 4, 12, .92);
  color: #d9c7e8;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.disk-launcher:hover,
.disk-launcher.is-open {
  transform: translateY(-3px);
  border-color: rgba(101, 255, 240, .6);
  box-shadow: 0 0 26px rgba(101, 255, 240, .18);
  color: white;
}

/* Wireframe folder rather than a skeuomorphic Windows icon. */
.disk-launcher-icon {
  display: block;
  position: relative;
  width: 52px;
  height: 37px;
  border: 2px solid #65fff0;
  border-radius: 3px 7px 7px 7px;
  background: linear-gradient(160deg, rgba(101, 255, 240, .2), rgba(255, 79, 191, .1));
  box-shadow: 0 0 18px rgba(101, 255, 240, .34);
}

.disk-launcher-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -2px;
  width: 20px;
  height: 7px;
  border: 2px solid #65fff0;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(101, 255, 240, .18);
}

.disk-launcher-label {
  font: 800 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.disk-window {
  position: fixed;
  left: 20px;
  bottom: 96px;
  z-index: 56;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 40px));
  max-height: min(520px, calc(100vh - 140px));
  border: 1px solid rgba(255, 79, 191, .3);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 79, 191, .12), transparent 22rem),
    rgba(6, 3, 10, .97);
  box-shadow: 0 30px 90px rgba(0,0,0,.72), 0 0 40px rgba(255, 79, 191, .1);
  overflow: hidden;
}

.disk-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(255, 79, 191, .22);
  background: rgba(0,0,0,.4);
}

.disk-title {
  color: #ff8fd4;
  font: 800 10px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.disk-controls { display: flex; gap: 6px; }

.disk-btn {
  width: 23px;
  height: 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  color: #a3a3a3;
  font: 800 10px/1 var(--mono);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.disk-btn:hover { background: rgba(101,255,240,.16); border-color: rgba(101,255,240,.5); color: white; }
.disk-close:hover { background: rgba(255,36,77,.24); border-color: rgba(255,36,77,.6); color: #ffc2ce; }

.disk-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.3);
}

.disk-up {
  width: 26px;
  height: 24px;
  border: 1px solid rgba(101,255,240,.28);
  border-radius: 5px;
  background: rgba(101,255,240,.08);
  color: #65fff0;
  font-weight: 800;
  cursor: pointer;
}

.disk-up:hover:not(:disabled) { background: rgba(101,255,240,.2); }
.disk-up:disabled { opacity: .25; cursor: default; }

.disk-path {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(101,255,240,.16);
  border-radius: 5px;
  background: rgba(0,0,0,.5);
  color: #65fff0;
  font: 700 10px/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.disk-body { overflow-y: auto; }

.disk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
  padding: 14px;
}

.disk-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #b9a8c9;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.disk-tile:hover {
  border-color: rgba(255, 79, 191, .42);
  background: rgba(255, 79, 191, .12);
  color: white;
}

.disk-tile-icon {
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
}

.disk-tile.folder .disk-tile-icon { color: #65fff0; }
.disk-tile.text .disk-tile-icon { color: #ff4fbf; }
.disk-tile.image .disk-tile-icon { color: #c084fc; }
.disk-tile.trap .disk-tile-icon { color: #ff244d; animation: trapPulse 2.2s ease-in-out infinite; }

@keyframes trapPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  .disk-tile.trap .disk-tile-icon { animation: none; }
}

.disk-tile-label {
  font: 700 9.5px/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.disk-viewer {
  margin: 0 14px 14px;
  border: 1px solid rgba(255, 79, 191, .22);
  border-radius: 8px;
  background: rgba(0,0,0,.55);
}

.disk-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 79, 191, .18);
}

.disk-viewer-head strong {
  color: #ff8fd4;
  font: 800 10px/1 var(--mono);
  letter-spacing: .06em;
}

.disk-viewer-text {
  margin: 0;
  padding: 13px;
  max-height: 260px;
  overflow-y: auto;
  color: #cbb8dd;
  font: 11px/1.75 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.disk-viewer-image {
  display: block;
  width: calc(100% - 26px);
  max-width: 320px;
  margin: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
}

.disk-statusbar {
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.36);
  color: #7a6a88;
  font: 700 8.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- Glitch sequence ---------- */
.glitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: rgba(6, 0, 10, .82);
  opacity: 1;
  transition: opacity .55s ease;
}

.glitch-overlay.is-fading { opacity: 0; }

.glitch-bars {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 36, 77, .16) 0px,
    rgba(255, 36, 77, .16) 2px,
    transparent 2px,
    transparent 5px
  );
  animation: glitchBars .18s steps(2) infinite;
}

.glitch-noise {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(90deg, rgba(101,255,240,.1) 0 3px, transparent 3px 9px),
    repeating-linear-gradient(0deg, rgba(255,79,191,.12) 0 2px, transparent 2px 7px);
  mix-blend-mode: screen;
  animation: glitchShift .12s steps(3) infinite;
}

.glitch-dump {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 18px 22px;
  max-width: min(520px, 88vw);
  color: #ff6b8a;
  font: 800 12px/1.9 var(--mono);
  text-shadow: 1px 0 rgba(101,255,240,.7), -1px 0 rgba(255,79,191,.7);
}

body.is-glitching main,
body.is-glitching .site-header,
body.is-glitching .disk-window {
  animation: glitchShake .09s steps(2) infinite;
}

@keyframes glitchBars { 0% { transform: translateY(0); } 100% { transform: translateY(5px); } }
@keyframes glitchShift { 0% { transform: translate(0,0); } 50% { transform: translate(-6px,3px); } 100% { transform: translate(5px,-4px); } }
@keyframes glitchShake { 0% { transform: translate(0,0); } 33% { transform: translate(-3px,1px); } 66% { transform: translate(2px,-2px); } 100% { transform: translate(0,0); } }

/* Calm variant: no flashing, no shaking, for photosensitive visitors. */
.glitch-overlay.is-calm .glitch-bars,
.glitch-overlay.is-calm .glitch-noise { animation: none; opacity: .4; }
.glitch-overlay.is-calm .glitch-dump { text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .glitch-bars, .glitch-noise { animation: none; }
  body.is-glitching main,
  body.is-glitching .site-header,
  body.is-glitching .disk-window { animation: none; }
}

.disk-warning {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 201;
  width: min(430px, calc(100vw - 40px));
  transform: translate(-50%, 16px);
  padding: 16px 18px;
  border: 1px solid rgba(255, 36, 77, .4);
  border-radius: 12px;
  background: rgba(10, 4, 8, .97);
  box-shadow: 0 24px 70px rgba(0,0,0,.7);
  opacity: 0;
  transition: opacity .26s ease, transform .26s ease;
}

.disk-warning.is-visible { opacity: 1; transform: translate(-50%, 0); }

.disk-warning strong {
  display: block;
  margin-bottom: 8px;
  color: #ff9db1;
  font-size: 15px;
}

.disk-warning p {
  margin: 0 0 12px;
  color: #d4d4d4;
  font-size: 12.5px;
  line-height: 1.65;
}

.disk-warning button {
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #f5f5f5;
  font: 800 11px/1 var(--sans);
  cursor: pointer;
}

.disk-warning button:hover { background: rgba(255,255,255,.16); }

@media (max-width: 760px) {
  .disk-launcher { left: 12px; bottom: 12px; padding: 8px 10px; }
  .disk-launcher-icon { width: 32px; height: 24px; }
  .disk-window { left: 12px; right: 12px; bottom: 82px; width: auto; }
}

/* ---------- is-hidden rules for the newer components ----------
   This stylesheet has no generic .is-hidden rule - every one is scoped to its
   component (.intro-gate.is-hidden, .rabbit-chat-panel.is-hidden, and so on).
   The components below were added later and relied on a generic rule that does
   not exist, so they never actually hid. Most visibly the glitch overlay, which
   stayed pinned over the whole page after the DO_NOT_OPEN trap ran.
*/
.glitch-overlay.is-hidden,
.disk-window.is-hidden,
.disk-viewer.is-hidden,
.disk-viewer-image.is-hidden,
.sandbox-verdict.is-hidden,
.sandbox-reward.is-hidden,
.containment-outcome.is-hidden {
  display: none;
}

/* ---------- is-hidden safety net ----------
   Generic fallback (0-1-0). Anything carrying is-hidden is hidden by default,
   so a component that never gets its own scoped rule fails closed instead of
   sitting on screen. Components needing a fade rather than a hard hide override
   it with a compound selector (0-2-0), which wins regardless of source order -
   see .intro-gate.is-hidden above.
*/
.is-hidden {
  display: none;
}

/* Fades out instead of vanishing, so it must keep its display value. */
.intro-gate.is-hidden {
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Guestbook / public transmission log ---------- */
.guestbook {
  display: block;
  padding: clamp(24px, 5vw, 48px);
}

.guestbook > div {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}

.guestbook-console {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(101, 255, 240, .18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(101, 255, 240, .06), transparent 55%),
    rgba(0,0,0,.32);
}

.guestbook-console label {
  margin-top: 4px;
  color: #737373;
  font: 800 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.guestbook-console input,
.guestbook-console textarea {
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(0,0,0,.42);
  color: var(--ink);
  font: 13px/1.5 var(--sans);
  resize: vertical;
}

.guestbook-console input:focus,
.guestbook-console textarea:focus {
  outline: none;
  border-color: rgba(101, 255, 240, .5);
  box-shadow: 0 0 0 3px rgba(101, 255, 240, .1);
}

.guestbook-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.guestbook-count {
  color: #737373;
  font: 700 10px/1 var(--mono);
}

.guestbook-console button {
  padding: 10px 18px;
  border: 1px solid rgba(101, 255, 240, .4);
  border-radius: 8px;
  background: rgba(101, 255, 240, .12);
  color: #65fff0;
  font: 850 12px/1 var(--sans);
  cursor: pointer;
}

.guestbook-console button:hover:not(:disabled) {
  background: rgba(101, 255, 240, .22);
}

.guestbook-console button:disabled {
  opacity: .55;
  cursor: default;
}

.guestbook-status {
  min-height: 14px;
  margin: 0;
  color: #9ae6dc;
  font: 700 11px/1.4 var(--mono);
}

/* ---------- Admin: messages + scoreboard views ---------- */
.admin-row-delete {
  padding: 6px 11px;
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 7px;
  background: rgba(239, 68, 68, .1);
  color: #fca5a5;
  font: 800 10px/1 var(--mono);
  cursor: pointer;
  white-space: nowrap;
}

.admin-row-delete:hover:not(:disabled) {
  background: rgba(239, 68, 68, .22);
  color: white;
}

.admin-row-delete:disabled { opacity: .45; cursor: default; }

/* ---------- Live threat map ---------- */
.threat-map { padding: clamp(24px, 5vw, 48px); }

.tmap-progress-note {
  max-width: 1080px;
  margin: 0 auto 28px;
  padding: 22px 26px;
  border: 2px dashed rgba(255, 200, 60, .55);
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 200, 60, .09) 0 14px, rgba(255, 200, 60, .02) 14px 28px),
    rgba(20, 14, 4, .55);
  color: #ffd166;
  font: 900 clamp(16px, 2.4vw, 22px)/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 200, 60, .25);
}

.tmap-shell {
  display: grid;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.tmap-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tmap-stats div {
  padding: 14px 10px;
  border: 1px solid rgba(101, 255, 240, .16);
  border-radius: 10px;
  background: rgba(0,0,0,.3);
  text-align: center;
}

.tmap-stats span {
  display: block;
  color: #65fff0;
  font: 900 22px/1.1 var(--mono);
  text-shadow: 0 0 14px rgba(101, 255, 240, .3);
}

.tmap-stats small {
  display: block;
  margin-top: 4px;
  color: #737373;
  font: 800 8.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tmap-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px 18px;
  border: 1px solid rgba(101, 255, 240, .3);
  border-radius: 999px;
  background: rgba(101, 255, 240, .08);
  color: #65fff0;
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
}

.tmap-refresh:hover:not(:disabled) {
  background: rgba(101, 255, 240, .16);
  border-color: rgba(101, 255, 240, .5);
}

.tmap-refresh:disabled { cursor: default; }

.tmap-refresh.is-processing {
  color: var(--pink);
  border-color: rgba(255, 79, 191, .4);
  background: rgba(255, 79, 191, .08);
}

.tmap-refresh.is-processing::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 79, 191, .3);
  border-top-color: var(--pink);
  animation: tmapRefreshSpin .7s linear infinite;
}

@keyframes tmapRefreshSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .tmap-refresh.is-processing::before { animation: none; }
}

.tmap-grid {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 191, .18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(101, 255, 240, .08), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255, 79, 191, .08), transparent 45%),
    #050308;
}

.tmap-graticule {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 8.333%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 12.5%);
}

.tmap-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tmap-points {
  position: absolute;
  inset: 0;
}

.tmap-point {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #ff4fbf;
  box-shadow: 0 0 0 0 rgba(255, 79, 191, .6);
  transform: scale(var(--scale, 1));
  animation: tmapPulse 2.4s ease-out infinite;
  cursor: default;
}

@keyframes tmapPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 79, 191, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 79, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 191, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tmap-point { animation: none; }
}

.tmap-panels {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.tmap-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.26);
}

.tmap-legend-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.02);
}

.tmap-legend-row b {
  color: #d4d4d4;
  font: 700 11px/1.3 var(--sans);
}

.tmap-legend-row em {
  color: #65fff0;
  font: 900 11px/1.3 var(--mono);
  font-style: normal;
}

.tmap-feed {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.26);
  overflow: hidden;
}

.tmap-feed-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tmap-feed-head strong {
  color: white;
  font-size: 12px;
}

.tmap-feed-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}

.tmap-feed-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font: 700 11px/1.4 var(--mono);
}

.tmap-feed-row:last-child { border-bottom: 0; }
.tmap-feed-row span { color: #dbeafe; }
.tmap-feed-row small { color: #737373; white-space: nowrap; }

.tmap-feed-empty {
  margin: 0;
  padding: 14px;
  color: #737373;
  font: 700 11px/1.5 var(--mono);
  text-align: center;
}

.tmap-attribution {
  margin: 0;
  color: #525252;
  font: 700 9.5px/1.5 var(--mono);
  text-align: center;
}

@media (max-width: 760px) {
  .tmap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmap-panels { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Guestbook: fancier transmission console ---------- */

/* .panel-top's -24px margin assumes a 24px parent padding; this console uses
   16px, so the base rule is overridden here to match its own container. */
.guestbook-top {
  margin: -16px -16px 0;
  padding: 12px 14px;
  gap: 10px;
}

.guestbook-top .tool-window-dots {
  align-self: center;
  grid-auto-flow: column;
  gap: 6px;
  padding-top: 0;
}

.guestbook-console {
  position: relative;
  overflow: hidden;
}

.guestbook-console.is-sending {
  border-color: rgba(101, 255, 240, .4);
}

.guestbook-console.is-sent {
  border-color: rgba(74, 222, 128, .5);
  box-shadow: 0 0 40px rgba(74, 222, 128, .12);
}

.guestbook-console.is-error {
  animation: guestbookShake .38s ease;
  border-color: rgba(255, 36, 77, .45);
}

@keyframes guestbookShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* Decorative oscilloscope strip - purely atmospheric, aria-hidden. */
.guestbook-scope {
  position: relative;
  height: 46px;
  margin: 2px 0 4px;
  border: 1px solid rgba(101, 255, 240, .14);
  border-radius: 7px;
  background: rgba(0,0,0,.4);
  overflow: hidden;
}

.guestbook-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 8px;
}

.guestbook-bars span {
  width: 3px;
  height: 22%;
  border-radius: 2px;
  background: linear-gradient(180deg, #65fff0, rgba(101, 255, 240, .25));
  animation: guestbookWave 1.8s ease-in-out infinite;
}

.guestbook-bars span:nth-child(3n) { animation-duration: 2.3s; }
.guestbook-bars span:nth-child(5n) { animation-duration: 1.4s; animation-delay: -.6s; }
.guestbook-bars span:nth-child(7n) { animation-delay: -1.1s; }
.guestbook-bars span:nth-child(2n) { animation-delay: -.3s; background: linear-gradient(180deg, #ff4fbf, rgba(255, 79, 191, .22)); }

@keyframes guestbookWave {
  0%, 100% { height: 18%; }
  50% { height: 78%; }
}

.guestbook-console.is-sending .guestbook-bars span {
  animation-duration: .45s;
  background: linear-gradient(180deg, #65fff0, #ff4fbf);
}

.guestbook-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  animation: guestbookScan 5s linear infinite;
}

.guestbook-console.is-sending .guestbook-scanline {
  animation-duration: .7s;
  background: linear-gradient(90deg, transparent, rgba(101, 255, 240, .3), transparent);
}

@keyframes guestbookScan {
  0% { left: -20%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-bars span { animation: none; height: 40%; }
  .guestbook-scanline { animation: none; opacity: 0; }
  .guestbook-console.is-error { animation: none; }
}

/* Footer: signal-strength meter next to the character count. */
.guestbook-footer {
  flex-wrap: wrap;
  row-gap: 8px;
}

/* The rabbit assistant sits fixed bottom-right; on narrow screens the
   footer's right-aligned submit button would land under it. */
@media (max-width: 900px) {
  .guestbook-footer {
    padding-right: 132px;
  }
}

.guestbook-signal {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
}

.guestbook-signal-label {
  color: #525252;
  font: 800 8.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.guestbook-signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.guestbook-signal-bars i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: rgba(255,255,255,.12);
  font-style: normal;
  transition: background .2s ease, box-shadow .2s ease;
}

.guestbook-signal-bars i:nth-child(1) { height: 30%; }
.guestbook-signal-bars i:nth-child(2) { height: 50%; }
.guestbook-signal-bars i:nth-child(3) { height: 68%; }
.guestbook-signal-bars i:nth-child(4) { height: 84%; }
.guestbook-signal-bars i:nth-child(5) { height: 100%; }

.guestbook-signal-bars i.is-lit {
  background: #65fff0;
  box-shadow: 0 0 8px rgba(101, 255, 240, .6);
}

/* Send button: spinner swaps in for the label while transmitting. */
.guestbook-console button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
}

.guestbook-send-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(5, 3, 7, .25);
  border-top-color: #050307;
  border-radius: 50%;
}

.guestbook-console.is-sending .guestbook-send-spinner {
  display: inline-block;
  animation: guestbookSpin .7s linear infinite;
}

.guestbook-console.is-sending .guestbook-send-label {
  opacity: .75;
}

@keyframes guestbookSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-console.is-sending .guestbook-send-spinner {
    animation: none;
    border-top-color: rgba(5, 3, 7, .6);
  }
}

/* ---------- /cybermap standalone page ---------- */
.cybermap-page {
  padding-top: clamp(24px, 5vw, 40px);
}

.cybermap-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Homepage nav badge -> /cybermap ---------- */
.nav-cybermap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px !important;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff4fbf, #a855f7 45%, #65fff0);
  background-size: 220% 220%;
  color: #050307 !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  box-shadow: 0 0 18px rgba(255, 79, 191, .35);
  animation: navCybermapGradient 6s ease infinite;
}

.nav-cybermap:hover {
  color: #050307 !important;
  box-shadow: 0 0 26px rgba(101, 255, 240, .5);
}

.nav-cybermap::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #050307;
  box-shadow: 0 0 0 0 rgba(5, 3, 7, .6);
  animation: navCybermapPing 1.8s ease-out infinite;
}

@keyframes navCybermapGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes navCybermapPing {
  0%   { box-shadow: 0 0 0 0 rgba(5, 3, 7, .5); }
  70%  { box-shadow: 0 0 0 6px rgba(5, 3, 7, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 3, 7, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-cybermap { animation: none; background-position: 30% 50%; }
  .nav-cybermap::before { animation: none; }
}

/*
  Same shape as .nav-cybermap, same pink/cyan anchors so both badges still
  read as "this site" - but the full 7-stop layer spectrum instead of 3 stops,
  so the two are still easy to tell apart at a glance.
*/
.nav-osi {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px !important;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff4fbf, #ff6a4d 16%, #ffab3d 32%, #4ade80 48%, #2dd4bf 64%, #38b6e0 80%, #65fff0);
  background-size: 260% 260%;
  color: #050307 !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  box-shadow: 0 0 18px rgba(101, 255, 240, .3);
  animation: navCybermapGradient 8s ease infinite;
}

.nav-osi:hover {
  color: #050307 !important;
  box-shadow: 0 0 26px rgba(255, 79, 191, .5);
}

.nav-osi::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #050307;
  box-shadow: 0 0 0 0 rgba(5, 3, 7, .6);
  animation: navCybermapPing 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nav-osi { animation: none; background-position: 30% 50%; }
  .nav-osi::before { animation: none; }
}

/* ---------- Guestbook: transmission discharge on send ---------- */
.guestbook-discharge {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.guestbook-discharge span {
  position: absolute;
  height: 2px;
  width: 60%;
  background: linear-gradient(90deg, transparent, #65fff0, #ff4fbf, #65fff0, transparent);
  filter: drop-shadow(0 0 8px rgba(101, 255, 240, .8)) drop-shadow(0 0 16px rgba(255, 79, 191, .5));
  opacity: 0;
  transform-origin: center;
}

/*
  --rot is read by the keyframe below. The animation's `transform` declaration
  overrides the static one here for its duration, so without a custom property
  every bolt would snap to rotate(0deg) mid-burst instead of holding its angle.
*/
.guestbook-discharge span:nth-child(1) { top: 14%; left: -10%; --rot: 9deg; transform: rotate(9deg); }
.guestbook-discharge span:nth-child(2) { top: 32%; right: -10%; width: 48%; --rot: -14deg; transform: rotate(-14deg); }
.guestbook-discharge span:nth-child(3) { top: 52%; left: -6%; width: 70%; --rot: 4deg; transform: rotate(4deg); }
.guestbook-discharge span:nth-child(4) { top: 68%; right: -8%; width: 40%; --rot: -8deg; transform: rotate(-8deg); }
.guestbook-discharge span:nth-child(5) { top: 82%; left: 10%; width: 55%; --rot: 11deg; transform: rotate(11deg); }
.guestbook-discharge span:nth-child(6) { top: 46%; left: 20%; width: 30%; --rot: -22deg; transform: rotate(-22deg); }

.guestbook-console.is-discharging .guestbook-discharge span {
  animation: guestbookDischarge .55s cubic-bezier(.2, .9, .3, 1) both;
}

.guestbook-console.is-discharging .guestbook-discharge span:nth-child(2) { animation-delay: .04s; }
.guestbook-console.is-discharging .guestbook-discharge span:nth-child(3) { animation-delay: .07s; }
.guestbook-console.is-discharging .guestbook-discharge span:nth-child(4) { animation-delay: .02s; }
.guestbook-console.is-discharging .guestbook-discharge span:nth-child(5) { animation-delay: .1s; }
.guestbook-console.is-discharging .guestbook-discharge span:nth-child(6) { animation-delay: .13s; }

@keyframes guestbookDischarge {
  0%   { opacity: 0; transform: scaleX(.3) rotate(var(--rot, 0deg)); }
  12%  { opacity: 1; }
  30%  { opacity: .3; }
  45%  { opacity: 1; }
  100% { opacity: 0; transform: scaleX(1.08) rotate(var(--rot, 0deg)); }
}

.guestbook-console.is-discharging {
  box-shadow: 0 0 0 1px rgba(101, 255, 240, .5), 0 0 46px rgba(101, 255, 240, .3);
}

/* Static success glow only - no bolt animation - when motion is reduced. */
@media (prefers-reduced-motion: reduce) {
  .guestbook-console.is-discharging .guestbook-discharge span { animation: none; }
  .guestbook-console.is-discharging { box-shadow: none; }
}

/* ---------- Hero: "no signal" easter egg - a real button in the actions row now, not a hidden corner tag ---------- */
.hero-no-signal {
  border-style: dashed;
  color: rgba(255,255,255,.8);
}

.hero-no-signal:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,.4);
}

.no-signal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.no-signal-overlay.is-visible {
  opacity: 1;
}

/*
  Compound selector (0-2-0) beats the bare .is-hidden safety net (0-1-0) only
  when source order also favors it, and this rule sits after .no-signal-overlay
  either way - but writing it explicitly, matching .intro-gate.is-hidden's
  established pattern, means it stays correct even if this block gets reordered.
*/
.no-signal-overlay.is-hidden {
  display: none;
}

.no-signal-static {
  position: absolute;
  inset: -10%;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0px, rgba(255,255,255,.06) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  animation: noSignalStatic .12s steps(2) infinite;
  opacity: .8;
}

@keyframes noSignalStatic {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-1.5%, 1.5%); }
}

.no-signal-image {
  position: relative;
  z-index: 1;
  max-width: min(420px, 70vw);
  max-height: 50vh;
  object-fit: contain;
  filter: grayscale(.25) contrast(1.1);
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}

.no-signal-caption {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  text-align: center;
}

.no-signal-caption strong {
  display: block;
  color: #f5f5f5;
  font: 900 20px/1.2 var(--mono);
  letter-spacing: .1em;
  text-shadow: 0 0 14px rgba(255,255,255,.4);
}

.no-signal-caption span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.6);
  font: 700 12px/1.5 var(--sans);
}

@media (prefers-reduced-motion: reduce) {
  .no-signal-static { animation: none; opacity: .4; }
}

/* ---------- /secretchat: green-phosphor terminal chat ---------- */

#schat-matrix {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .5;
}

.schat-page {
  position: relative;
}

/* CRT scanline + vignette flourish, layered behind the content. */
.schat-shell {
  position: relative;
}

.schat-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(57, 255, 20, .05) 0px, rgba(57, 255, 20, .05) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

.schat-shell h1 {
  color: var(--ink);
  text-shadow: 0 0 22px rgba(57, 255, 20, .32);
}

.schat-gate,
.schat-room {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0,0,0,.3), 0 0 32px rgba(57, 255, 20, .08);
}

.schat-step {
  display: none;
  padding: 28px clamp(20px, 4vw, 36px);
}

.schat-step.is-active {
  display: block;
  animation: schatStepIn .3s ease both;
}

@keyframes schatStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.schat-step p {
  margin: 8px 0 18px;
  color: var(--muted);
  font: 500 13px/1.6 var(--mono);
}

.schat-code-input,
.schat-username-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, .35);
  color: var(--ink);
  font: 700 15px/1 var(--mono);
  letter-spacing: .08em;
  caret-color: var(--pink);
}

.schat-code-input {
  text-align: center;
  text-transform: uppercase;
}

.schat-code-input:focus,
.schat-username-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, .12);
}

.schat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(135deg, #16803a, var(--pink) 65%);
  color: #04140a;
  font: 900 12px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.schat-btn:hover { filter: brightness(1.1); }
.schat-btn:disabled { opacity: .55; cursor: default; filter: none; }

.schat-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(57, 255, 20, .05);
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.schat-ghost:hover { color: var(--ink); border-color: var(--pink); }

.schat-gate-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.schat-gate-actions .schat-btn { margin-top: 0; }

.schat-gate-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 36, 77, .4);
  border-radius: 6px;
  background: rgba(255, 36, 77, .08);
  color: #ff8098;
  font: 700 12px/1.5 var(--mono);
}

.schat-room {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  min-height: 520px;
}

.schat-room.is-hidden { display: none; }

.schat-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font: 800 12px/1 var(--mono);
  letter-spacing: .05em;
}

#schat-room-you {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schat-room-tabs {
  display: flex;
  gap: 6px;
}

.schat-room-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  background: transparent;
  color: var(--muted);
  font: 800 10px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.schat-room-tab.is-active {
  border-color: var(--pink);
  background: rgba(57, 255, 20, .1);
  color: var(--ink);
}

.schat-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  flex: 1;
  min-height: 0;
}

.schat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.schat-log {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  overflow-y: auto;
  max-height: 420px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schat-log.is-hidden { display: none; }

.schat-log-empty {
  color: var(--muted);
  font: 600 12px/1.6 var(--mono);
  text-align: center;
  margin-top: 40px;
}

.schat-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 11px/1 var(--mono);
}

.schat-icon-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.schat-delete-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  font: 900 14px/1 var(--mono);
  cursor: pointer;
  padding: 0 4px;
}

.schat-delete-btn:hover { color: #ff8098; }

.schat-message-author {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(57, 255, 20, .35);
}

.schat-message-author::before { content: "> "; }

.schat-message-time {
  color: var(--muted);
  font-weight: 600;
}

.schat-message-body {
  margin: 4px 0 0;
  color: var(--ink);
  font: 500 13px/1.6 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.schat-music {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  gap: 8px;
}

.schat-music strong {
  color: var(--cyan);
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.schat-music-empty,
.schat-music-track {
  margin: 0;
  color: var(--muted);
  font: 600 11px/1.5 var(--mono);
}

.schat-music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}

.schat-music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(57, 255, 20, .06);
  color: var(--ink);
  cursor: pointer;
}

.schat-music-btn:disabled { opacity: .35; cursor: default; }
.schat-music-btn.is-playing { border-color: var(--pink); color: var(--pink); }

.schat-music-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.schat-music-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--pink);
}

.schat-composer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.schat-composer.is-hidden { display: none; }

.schat-composer textarea {
  flex: 1;
  resize: none;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, .35);
  color: var(--ink);
  font: 500 13px/1.5 var(--mono);
  caret-color: var(--pink);
}

.schat-composer textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, .12);
}

.schat-composer .schat-btn {
  width: auto;
  margin-top: 0;
  padding: 0 20px;
}

.schat-icon-picker {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.schat-icon-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .25);
  color: var(--muted);
  font: 800 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

.schat-icon-option img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.schat-icon-option.is-selected {
  border-color: var(--pink);
  background: rgba(57, 255, 20, .1);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, .12);
}

@media (max-width: 760px) {
  .schat-body { grid-template-columns: 1fr; }
  .schat-log { border-right: none; border-bottom: 1px solid var(--line); max-height: 340px; }
  .schat-music { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .schat-music-controls { margin-top: 0; margin-left: auto; }
  .schat-room { min-height: 0; }
  .schat-room-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .schat-step.is-active { animation: none; }
}

/* ---------- /osi: scroll-driven OSI model tutorial ---------- */

.osi-hero {
  text-align: center;
  padding-bottom: clamp(20px, 4vw, 32px);
}

.osi-hero h1 {
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.15;
  text-shadow: 0 0 24px rgba(255, 79, 191, .16);
}

.osi-hero-copy {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font: 500 15px/1.7 var(--sans);
}

.osi-hero-stack {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 20px;
}

.osi-hero-stack span {
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: var(--osi-c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--osi-c) 60%, transparent);
}

.osi-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  animation: osiScrollBob 1.8s ease-in-out infinite;
}

.osi-scroll-cue::after { content: "↓"; font-size: 14px; }

@keyframes osiScrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.osi-now-header {
  padding-block: clamp(8px, 2vw, 16px);
  text-align: center;
}

.osi-now-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color .2s ease;
}

.osi-now-header-link:hover { color: var(--ink); }
.osi-now-header-link .panel-kicker { margin: 0; }

.osi-now-header-arrow {
  color: var(--cyan);
  font-size: 13px;
  animation: osiScrollBob 1.8s ease-in-out infinite;
}

.osi-now-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 12px;
}

.osi-now-panel > p {
  margin: 10px 0 20px;
  color: var(--muted);
  font: 500 13px/1.6 var(--sans);
}

.osi-now-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.osi-now-list dt {
  color: var(--cyan);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.osi-now-list dd {
  margin: 0;
  color: var(--ink);
  font: 500 14px/1.6 var(--sans);
}

.osi-now-list strong {
  color: var(--pink);
  font: 900 13px/1 var(--mono);
}

.osi-now-list strong.is-warning { color: var(--red); }

.osi-now-disclaimer {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #737373;
  font: 700 10.5px/1.6 var(--mono);
}

.osi-journey {
  max-width: 720px;
  margin: 0 auto;
  padding-top: clamp(16px, 3vw, 28px);
  text-align: center;
}

.osi-diagram-wrap {
  overflow-x: auto;
  padding: 8px 4px 4px;
}

.osi-flow {
  display: block;
  width: 100%;
  min-width: 720px;
  max-width: 780px;
  height: auto;
  margin: 0 auto;
}

.osi-flow-url {
  fill: var(--ink);
  font: 800 14px var(--mono);
}

.osi-flow-box {
  fill: var(--panel-strong);
  stroke: var(--line);
  stroke-width: 1.5;
}

.osi-flow-box.osi-flow-violet { stroke: var(--violet); }
.osi-flow-box.osi-flow-grey { stroke: var(--muted); }

.osi-flow-laptop-base {
  fill: var(--panel-strong);
  stroke: var(--line);
  stroke-width: 1.5;
}

.osi-flow-box-title {
  fill: var(--ink);
  font: 800 15px var(--sans);
}

.osi-flow-box-sub {
  fill: var(--muted);
  font: 500 10.5px var(--sans);
  font-style: italic;
}

.osi-flow-arrow { fill: none; stroke-width: 2.4; }
.osi-flow-arrow.osi-flow-red { stroke: var(--red); }
.osi-flow-arrow.osi-flow-orange { stroke: #ffab3d; }
.osi-flow-arrow.osi-flow-maroon { stroke: #b3243d; }
.osi-flow-arrow.osi-flow-green { stroke: #22c55e; }

.osi-flow-head.osi-flow-red { fill: var(--red); }
.osi-flow-head.osi-flow-orange { fill: #ffab3d; }
.osi-flow-head.osi-flow-maroon { fill: #b3243d; }
.osi-flow-head.osi-flow-green { fill: #22c55e; }

.osi-flow-label { font: 700 11.5px var(--sans); }
.osi-flow-label.osi-flow-red { fill: var(--red); }
.osi-flow-label.osi-flow-orange { fill: #ffab3d; }
.osi-flow-label.osi-flow-maroon { fill: #b3243d; }
.osi-flow-label.osi-flow-green { fill: #22c55e; }

.osi-flow-tiny {
  font: 700 9px var(--mono);
  fill: var(--muted);
}

.osi-flow-tiny.osi-flow-green { fill: #22c55e; }

.osi-flow-firewall {
  fill: var(--panel-strong);
  stroke: #ffab3d;
  stroke-width: 1.2;
  color: #ffab3d;
}

.osi-flow-server {
  fill: none;
  stroke: #5b7fd4;
  stroke-width: 1.5;
  rx: 8;
}

.osi-flow-server-label {
  fill: #5b7fd4;
  font: 700 12px var(--sans);
}

.osi-flow-lock { color: var(--osi-l6); }
.osi-flow-lock.is-warning { color: var(--red); }

.osi-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding-block: clamp(32px, 6vw, 56px);
}

.osi-stack-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  height: fit-content;
}

.osi-stack-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  transition: color .2s ease, background .2s ease;
}

.osi-stack-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--osi-c);
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow .2s ease;
  flex: none;
}

.osi-stack-nav a:hover { color: var(--ink); }

.osi-stack-nav a.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--osi-c) 14%, transparent);
}

.osi-stack-nav a.is-active .osi-stack-dot {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--osi-c) 30%, transparent);
}

.osi-layers {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.osi-layer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 26px clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--osi-c);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.osi-layer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.osi-layer-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--osi-c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--osi-c) 45%, transparent);
  color: var(--osi-c);
  font: 900 22px/1 var(--mono);
  text-shadow: 0 0 16px color-mix(in srgb, var(--osi-c) 60%, transparent);
}

.osi-layer-body .panel-kicker { color: var(--osi-c); }

.osi-layer-body h2 {
  margin: 4px 0 10px;
  font-size: clamp(20px, 3vw, 26px);
}

.osi-layer-tagline {
  margin: 0 0 18px;
  color: var(--muted);
  font: 500 14px/1.6 var(--sans);
}

.osi-devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.osi-device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0,0,0,.22);
  color: var(--ink);
  font: 800 12px/1.3 var(--mono);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.osi-device:hover {
  border-color: var(--osi-c);
  background: color-mix(in srgb, var(--osi-c) 10%, transparent);
}

.osi-device svg {
  width: 30px;
  height: 30px;
  color: var(--osi-c);
  flex: none;
}

.osi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.osi-chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 800 9.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.osi-security {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed color-mix(in srgb, var(--osi-c) 45%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--osi-c) 6%, transparent);
  color: var(--ink);
  font: 500 12.5px/1.6 var(--sans);
}

.osi-security-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--osi-c);
  font: 900 9.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.osi-example {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .32);
}

.osi-example-tag {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 900 9.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.osi-example-code {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .4);
  color: var(--osi-c);
  font: 700 12px/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-x: auto;
}

.osi-example-note {
  margin: 0;
  color: var(--muted);
  font: 500 12.5px/1.6 var(--sans);
}

.osi-compare {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.osi-compare h2 { margin: 8px 0 16px; }

.osi-compare p {
  color: var(--muted);
  font: 500 14px/1.7 var(--sans);
}

/* ---------- /osi: device modal ---------- */

.osi-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}

.osi-modal.is-hidden { display: none; }
.osi-modal.is-visible { opacity: 1; }

.osi-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 6, .78);
  backdrop-filter: blur(4px);
}

.osi-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 14px;
  text-align: center;
  transform: scale(.94);
  transition: transform .2s ease;
}

.osi-modal.is-visible .osi-modal-panel { transform: scale(1); }

.osi-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.osi-modal-close:hover { color: var(--ink); border-color: var(--pink); }

.osi-modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.osi-modal-icon svg {
  width: 56px;
  height: 56px;
  color: var(--osi-c, var(--cyan));
}

.osi-modal-panel .panel-kicker {
  color: var(--osi-c, var(--pink));
}

.osi-modal-panel h3 {
  margin: 6px 0 12px;
  font-size: 20px;
}

.osi-modal-panel p {
  margin: 0;
  color: var(--muted);
  font: 500 13px/1.6 var(--sans);
}

@media (max-width: 900px) {
  .osi-body { grid-template-columns: 1fr; }
  .osi-stack-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    overflow-x: auto;
    gap: 2px;
    padding: 8px 4px;
    margin: 0 -4px 8px;
    background: rgba(5,3,7,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .osi-stack-nav a { flex: none; }
  .osi-stack-nav a span:not(.osi-stack-dot) { display: none; }
  .osi-stack-nav a.is-active span:not(.osi-stack-dot) {
    display: inline;
  }
  .osi-layer { grid-template-columns: 1fr; }
  .osi-layer-num { width: 44px; height: 44px; font-size: 18px; }
  .osi-devices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .osi-layer { transition: none; opacity: 1; transform: none; }
  .osi-scroll-cue { animation: none; }
}
