@keyframes glow {
  from {
    text-shadow: 0 0 6px rgba(255, 42, 42, 0.9), 0 0 14px rgba(255, 42, 42, 0.65), 0 0 24px rgba(140, 0, 0, 0.5);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 42, 42, 1), 0 0 18px rgba(255, 42, 42, 0.8), 0 0 30px rgba(140, 0, 0, 0.55);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1) translateX(0);
  }
  20% {
    transform: translate(-50%, -50%) scale(1) translateX(-3px);
  }
  40% {
    transform: translate(-50%, -50%) scale(1) translateX(3px);
  }
  60% {
    transform: translate(-50%, -50%) scale(1) translateX(-2px);
  }
  80% {
    transform: translate(-50%, -50%) scale(1) translateX(2px);
  }
}

.matrix-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 120;
}

.matrix-overlay.is-active {
  opacity: 0.45;
}

.secret-toast {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%) translateY(-0.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 155;
}

.secret-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 92, 92, 0.34), rgba(120, 0, 0, 0.88) 56%, rgba(35, 0, 0, 0.98) 100%),
    linear-gradient(135deg, rgba(115, 0, 22, 0.28) 0 12%, transparent 12% 24%, rgba(115, 0, 22, 0.18) 24% 36%, transparent 36% 48%, rgba(115, 0, 22, 0.28) 48% 60%, transparent 60% 72%, rgba(115, 0, 22, 0.18) 72% 84%, transparent 84% 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 170, 170, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 30%, rgba(255, 170, 170, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255, 170, 170, 0.12) 0 1px, transparent 2px);
  background-size: cover, 140px 140px, 18px 18px, 22px 22px, 26px 26px;
  backdrop-filter: blur(2px) saturate(1.25) contrast(1.04);
  mix-blend-mode: screen;
  z-index: 145;
  transition: opacity 0.14s ease;
}

.secret-flash.is-active {
  opacity: 1;
}

.secret-toast.is-default {
  background: rgba(14, 8, 20, 0.92);
  color: #ace4aa;
  border: 1px solid rgba(172, 228, 170, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.secret-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.secret-toast.is-konami {
  top: calc(42% + clamp(8rem, 18vw, 12rem));
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  background: transparent;
  border: 0;
  color: #ff2a2a;
  display: block;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  font-size: clamp(1.6rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.85),
    0 0 10px rgba(255, 42, 42, 0.85),
    0 0 20px rgba(255, 42, 42, 0.55),
    0 0 28px rgba(130, 0, 0, 0.45);
  -webkit-text-stroke: 1px rgba(80, 0, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

.secret-toast.is-konami.is-show {
  transform: translate(-50%, -50%) scale(1);
  animation:
    glow 2s ease-in-out infinite alternate,
    shake 420ms ease-in-out 1;
}

.secret-logo {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(58vw, 520px);
  max-width: calc(100vw - 2rem);
  height: auto;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  z-index: 154;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.secret-logo.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes dogeFall {
  0% {
    transform: translate3d(0, -22vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 118vh, 0) rotate(10deg);
    opacity: 0;
  }
}

@keyframes susPulse {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  20% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.doge-rain {
  position: fixed;
  inset: 0;
  z-index: 146;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.doge-rain.is-active {
  opacity: 1;
}

.doge-token {
  position: absolute;
  top: -20vh;
  color: #ffd587;
  font-family: "Press Start 2P", var(--font-mono);
  font-size: clamp(1rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(255, 166, 0, 0.45);
  animation-name: dogeFall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  white-space: nowrap;
}

.doge-token.is-emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: clamp(1.35rem, 4.2vw, 2.8rem);
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(255, 217, 120, 0.55);
}

.sus-scan {
  position: fixed;
  inset: 0;
  z-index: 151;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(circle at center, rgba(255, 56, 56, 0.18), rgba(45, 4, 4, 0.72));
}

.sus-scan.is-active {
  opacity: 1;
}

.sus-scan-card {
  border: 1px solid rgba(255, 120, 120, 0.75);
  border-radius: 14px;
  width: min(420px, calc(100vw - 2rem));
  padding: 1rem;
  background: rgba(28, 7, 7, 0.9);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46);
  text-align: center;
  animation: susPulse 260ms ease forwards;
}

.sus-scan-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd7d7;
}

.sus-scan-score {
  margin: 0.45rem 0 0;
  font-family: "Press Start 2P", var(--font-mono);
  color: #ff6464;
  font-size: clamp(1.05rem, 3.3vw, 1.55rem);
  text-shadow: 0 0 14px rgba(255, 61, 61, 0.5);
}

.sus-scan-hint {
  margin: 0.45rem 0 0;
  color: #ffb7b7;
  font-size: 0.8rem;
}

/* BSOD & BIOS Easter Egg */
.bsod-context-menu {
  position: fixed;
  z-index: 10000;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px;
  min-width: 160px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 1);
  font-family: "Tahoma", "Sora", sans-serif;
  font-size: 11px;
  display: none;
  user-select: none;
}

.bsod-context-menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 3px 20px 3px 25px;
  cursor: default;
  color: black;
  display: block;
}

.bsod-context-menu button:not(.disabled):hover {
  background: #000080;
  color: white;
}

.bsod-context-menu button.disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #ffffff;
}

.bsod-context-menu .separator {
  height: 1px;
  background: #808080;
  border-bottom: 1px solid #ffffff;
  margin: 3px 1px;
}

.bsod-screen {
  position: fixed;
  inset: 0;
  background: #0000aa;
  color: white;
  z-index: 10001;
  font-family: "Consolas", "Courier New", monospace;
  padding: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.6;
}

.bsod-content {
  max-width: 800px;
  text-align: left;
}

.bsod-title {
  background: #aaaaaa;
  color: #0000aa;
  display: inline-block;
  padding: 0 10px;
  margin-bottom: 20px;
}

.bios-screen {
  position: fixed;
  inset: 0;
  background: black;
  color: white;
  z-index: 10002;
  font-family: "Consolas", "Courier New", monospace;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 5px;
  font-size: 16px;
}

.bios-line {
  opacity: 0;
}

.bios-line.visible {
  opacity: 1;
}

.engineer-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.engineer-trigger:hover {
  color: var(--accent-2);
}

.secret-media-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.secret-media-modal[hidden] {
  display: none !important;
}

.secret-media-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, 0.72);
  backdrop-filter: blur(3px);
}

.secret-panic-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 182;
  border: 1px solid rgba(255, 92, 92, 0.55);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(110, 16, 16, 0.92);
  color: #ffe3e3;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.secret-panic-close:hover {
  background: rgba(132, 22, 22, 0.96);
}

.secret-media-card {
  position: relative;
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(19, 33, 45, 0.98), rgba(9, 20, 30, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  padding: 0.8rem;
}

.secret-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.secret-media-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.secret-media-head button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.secret-media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1219;
}

.secret-media-fallback {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.secret-media-fallback a {
  color: var(--accent-2);
}

.easter-terminal {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 2rem));
  border: 1px solid rgba(89, 255, 186, 0.28);
  border-radius: 10px;
  background: rgba(7, 18, 14, 0.94);
  z-index: 135;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

.easter-terminal.is-neofetch {
  width: min(980px, calc(100vw - 1.25rem));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46);
}

.easter-terminal[hidden],
.dino-overlay[hidden] {
  display: none !important;
}

.easter-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(89, 255, 186, 0.24);
  padding: 0.4rem 0.6rem;
  color: #73f8bf;
  font-size: 0.74rem;
}

.easter-terminal-log {
  max-height: 180px;
  overflow: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #9efac8;
  display: grid;
  gap: 0.3rem;
  transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1), font-size 320ms ease, line-height 320ms ease;
}

.easter-terminal.is-neofetch .easter-terminal-log {
  max-height: min(66vh, 560px);
  font-size: 0.9rem;
  line-height: 1.35;
}

.easter-terminal-log p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.easter-terminal-log .terminal-line-danger {
  color: #ff4c4c;
  font-weight: 800;
}

.easter-terminal-log .terminal-line-command {
  color: #8bd3ff;
  font-weight: 700;
}

.easter-terminal-log .terminal-line-help {
  color: #b7ffd7;
}

.easter-terminal-log .terminal-line-matrix {
  color: #67ff9f;
}

.easter-terminal-log .terminal-line-dino {
  color: #ffe082;
}

.easter-terminal-log .terminal-line-train {
  color: #ffa96d;
}

.easter-terminal-log .terminal-line-whoami {
  color: #8cc6ff;
}

.easter-terminal-log .terminal-line-pls {
  color: #d9b3ff;
}

.easter-terminal-log .terminal-line-hack {
  color: #7ef0cf;
}

.easter-terminal-log .terminal-line-stonks {
  color: #ffe48a;
}

.easter-terminal-log .terminal-line-warn {
  color: #ffbd80;
}

.easter-terminal-log .terminal-line-neo {
  color: #8ad9b2;
}

.easter-terminal-log .terminal-line-neo-user {
  color: #7ee0ff;
  font-weight: 700;
}

.easter-terminal-log .terminal-line-neo-separator {
  color: #4fc8ea;
}

.easter-terminal-log .terminal-line-neo-label {
  color: #ffd878;
  font-weight: 700;
}

.easter-terminal-log .terminal-line-neo-value {
  color: #d9f9ea;
}

.terminal-palette {
  display: inline-flex;
  gap: 0.2rem;
  vertical-align: middle;
  margin-left: 0.2rem;
}

.terminal-swatch {
  display: inline-block;
  width: 0.92rem;
  height: 0.7rem;
  border-radius: 2px;
}

.terminal-swatch.is-0 {
  background: #2e3c46;
}

.terminal-swatch.is-1 {
  background: #d84f4f;
}

.terminal-swatch.is-2 {
  background: #6abf61;
}

.terminal-swatch.is-3 {
  background: #d6a654;
}

.terminal-swatch.is-4 {
  background: #5f86d8;
}

.terminal-swatch.is-5 {
  background: #b37ad8;
}

.terminal-swatch.is-6 {
  background: #58c5bb;
}

.terminal-swatch.is-7 {
  background: #d9e3e8;
}

.easter-terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-top: 1px solid rgba(89, 255, 186, 0.2);
  padding: 0.45rem 0.6rem;
  font-family: var(--font-mono);
}

.easter-terminal-input-row span {
  color: #73f8bf;
  font-size: 0.78rem;
}

.easter-terminal-input {
  width: 100%;
  background: transparent;
  border: 0;
  color: #dfffee;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
}

.dino-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 11, 16, 0.72);
  z-index: 136;
}

.dino-card {
  width: min(720px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 18, 24, 0.96);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.dino-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.dino-head h3 {
  margin: 0;
  font-size: 0.92rem;
}

.dino-head button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
}

.dino-canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7f8;
  display: block;
}

.dino-help {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Biz Easter Egg */
.biz-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.biz-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 105, 180, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9900;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 105, 180, 0.2);
}

.biz-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: rgba(255, 20, 147, 0.4);
  border-color: rgba(255, 105, 180, 0.8);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.6);
}

.biz-close:active {
  transform: rotate(90deg) scale(0.95);
}

.biz-overlay[hidden] {
  display: none !important;
}

.biz-title {
  margin-top: 10vh;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 30px rgba(230, 20, 80, 0.8);
  z-index: 9800;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  user-select: none;
}

.biz-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.biz-photo {
  position: absolute;
  width: min(38vw, 300px);
  background: #fdfdfd;
  padding: 12px 12px 40px 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border-radius: 2px;
  opacity: 0;
  transform: scale(1.5) rotate(0deg);
  transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 201;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.biz-photo.is-visible {
  opacity: 1;
}

.biz-photo.is-dragging {
  cursor: grabbing;
}

.biz-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.signal-decoder {
  position: fixed;
  inset: 0;
  z-index: 191;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.signal-decoder[hidden] {
  display: none !important;
}

.signal-decoder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 16, 0.78);
  backdrop-filter: blur(3px);
}

.signal-decoder-card {
  position: relative;
  width: min(1020px, 100%);
  border: 1px solid rgba(138, 255, 220, 0.3);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 28, 32, 0.96), rgba(12, 20, 31, 0.96));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.55);
  padding: 0.9rem;
}

.signal-decoder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.signal-decoder-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #defff4;
}

.signal-decoder-head button {
  border: 1px solid rgba(166, 255, 226, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8ffef;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.signal-decoder-canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(178, 255, 230, 0.25);
  background: linear-gradient(180deg, rgba(6, 16, 24, 0.98), rgba(7, 22, 29, 0.98));
}

.signal-decoder-help {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #98d7c0;
}

.gradient-descent-modal {
  position: fixed;
  inset: 0;
  z-index: 192;
  display: grid;
  place-items: center;
  background: rgba(10, 4, 14, 0.86);
  backdrop-filter: blur(3px);
}

.gradient-descent-modal[hidden] {
  display: none !important;
}

.gradient-descent-card {
  width: min(860px, calc(100vw - 1.8rem));
  border: 1px solid rgba(239, 131, 84, 0.32);
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(18, 8, 24, 0.97), rgba(24, 12, 32, 0.97));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
  padding: 0.9rem;
}

.gradient-descent-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #f0e8ec;
}

.gradient-descent-plot {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 260;
  border-radius: 10px;
  border: 1px solid rgba(239, 131, 84, 0.18);
  background: radial-gradient(circle at 50% 0%, rgba(239, 131, 84, 0.07), rgba(14, 6, 20, 0.95) 68%);
  overflow: hidden;
}

.gradient-descent-telemetry {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.gradient-descent-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.gradient-metric {
  border: 1px solid rgba(239, 131, 84, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 10, 28, 0.96), rgba(14, 6, 20, 0.98));
  padding: 0.55rem 0.65rem 0.5rem;
}

.gradient-metric span {
  display: block;
  color: #9a8a90;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gradient-metric strong {
  display: block;
  margin-top: 0.2rem;
  color: #f0e8ec;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.gradient-descent-depth {
  border: 1px solid rgba(170, 253, 226, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 0%, rgba(104, 207, 179, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(7, 20, 27, 0.98), rgba(5, 10, 16, 0.98));
  padding: 0.62rem;
  overflow: hidden;
}

.gradient-descent-depth-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  color: #d9fff0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gradient-descent-depth-hint {
  color: #89b9ac;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.gradient-descent-depth-svg {
  width: 100%;
  height: 150px;
  display: block;
}

.gradient-descent-depth-grid {
  fill: none;
  stroke: rgba(132, 214, 191, 0.18);
  stroke-width: 1;
  stroke-linecap: round;
}

.gradient-descent-depth-axis {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.gradient-descent-depth-axis-x {
  stroke: rgba(147, 255, 220, 0.65);
}

.gradient-descent-depth-axis-y {
  stroke: rgba(107, 208, 255, 0.62);
}

.gradient-descent-depth-axis-z {
  stroke: rgba(255, 184, 91, 0.72);
}

.gradient-descent-depth-trail {
  fill: none;
  stroke: rgba(255, 184, 91, 0.95);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 184, 91, 0.28));
}

.gradient-descent-depth-point {
  fill: #fff2c8;
  stroke: #ffbf45;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px rgba(255, 191, 69, 0.45));
}

.gradient-descent-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gradient-descent-path {
  fill: none;
  stroke: rgba(172, 228, 170, 0.7);
  stroke-width: 2.5;
}

.gradient-descent-trail {
  fill: none;
  stroke: rgba(239, 131, 84, 0.9);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gradient-descent-ball {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd4b8, #ef8354 42%, #b85030 100%);
  box-shadow: 0 0 14px rgba(239, 131, 84, 0.75);
  transform: translate(-50%, -50%);
  left: 12%;
  top: 24%;
}

.gradient-descent-message {
  margin: 0.75rem 0 0;
  min-height: 1.3rem;
  color: #f5b090;
  font-size: 0.86rem;
}

.gradient-descent-close {
  margin-top: 0.7rem;
  border: 1px solid rgba(239, 131, 84, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5b090;
  padding: 0.34rem 0.7rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .gradient-descent-telemetry {
    grid-template-columns: 1fr;
  }

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

  .gradient-descent-depth-svg {
    height: 136px;
  }

  .gradient-descent-message {
    font-size: 0.8rem;
  }
}

/* DVD Logo Screensaver */
.dvd-screensaver {
  position: fixed;
  inset: 0;
  background-color: #30011e;
  background-image: radial-gradient(rgba(239, 131, 84, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 100000;
  display: none;
  overflow: hidden;
  cursor: none;
}

.dvd-screensaver.is-active {
  display: block;
}

.dvd-logo {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  user-select: none;
  pointer-events: none;
}

.dvd-logo-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(239, 131, 84, 0.55);
  object-fit: cover;
  display: block;
  box-shadow:
    0 0 0 0 rgba(239, 131, 84, 0),
    0 8px 32px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dvd-logo-label {
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(239, 131, 84, 0.45);
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.dvd-logo.is-bounce .dvd-logo-img {
  border-color: rgba(239, 131, 84, 1);
  box-shadow:
    0 0 18px rgba(239, 131, 84, 0.7),
    0 0 48px rgba(239, 131, 84, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.6);
}

.dvd-logo.is-bounce .dvd-logo-label {
  color: rgba(239, 131, 84, 0.9);
}

