/* ═══════════════════════════════════════════════════════════════════════════
   CURIOVEX PRISM OVERHAUL v5.0
   Luminous Obsidian Glass · 3D Neural Forge Boot · From-Scratch Architect ·
   Interactive Flashcards & Labs · 10-Realm Quest RPG & Boss Raid Arena
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --prism-bg: #090909;
  --prism-surface: rgba(20, 20, 20, 0.72);
  --prism-surface-2: rgba(29, 29, 29, 0.78);
  --prism-border: rgba(161, 161, 161, 0.16);
  --prism-border-hi: rgba(196, 196, 196, 0.42);
  --prism-cyan: #a5a5a5;
  --prism-mint: #adadad;
  --prism-violet: #999999;
  --prism-amber: #c1c1c1;
  --prism-rose: #909090;
  --prism-teal: #afafaf;
  --prism-grad: linear-gradient(125deg, #adadad 0%, #a5a5a5 50%, #999999 100%);
  --prism-grad-warm: linear-gradient(125deg, #c1c1c1 0%, #909090 55%, #999999 100%);
}

html, body {
  background-color: var(--prism-bg) !important;
  color: #f2f2f2;
}

body::before {
  background:
    radial-gradient(46vmax 40vmax at 12% 6%, rgba(165, 165, 165, 0.13), transparent 62%),
    radial-gradient(42vmax 42vmax at 88% 14%, rgba(153, 153, 153, 0.12), transparent 62%),
    radial-gradient(45vmax 38vmax at 52% 96%, rgba(173, 173, 173, 0.09), transparent 64%),
    var(--prism-bg) !important;
}

/* ── Global Glass Chrome & Navigation Polish ── */
.topbar.site-header {
  background: rgba(15, 15, 15, 0.76) !important;
  border: 1px solid rgba(161, 161, 161, 0.18) !important;
  border-image: none !important;
  backdrop-filter: blur(26px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.5) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

.brand .mint {
  background: var(--prism-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.brand-period {
  color: var(--prism-cyan) !important;
}

.header-link {
  transition: color 0.2s ease;
}
.header-link:hover {
  color: #ffffff !important;
}
.header-link.active, .header-link[aria-current] {
  color: #ffffff !important;
}
.header-link.active::after, .header-link[aria-current]::after {
  width: 18px !important;
  height: 2px !important;
  border-radius: 99px !important;
  left: calc(50% - 9px) !important;
  background: var(--prism-grad) !important;
  box-shadow: 0 0 12px rgba(165, 165, 165, 0.75) !important;
}

.sidebar {
  background: linear-gradient(175deg, rgba(18, 18, 18, 0.84), rgba(12, 12, 12, 0.9)) !important;
  border: 1px solid rgba(161, 161, 161, 0.15) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.nav-item {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-item:hover {
  background: rgba(165, 165, 165, 0.08) !important;
  color: #fafafa !important;
}
.nav-item.active, .nav-item[aria-current] {
  background: linear-gradient(105deg, rgba(165, 165, 165, 0.16), rgba(153, 153, 153, 0.08)) !important;
  border-color: rgba(165, 165, 165, 0.3) !important;
  box-shadow: inset 2px 0 0 var(--prism-cyan), inset 0 0 0 1px rgba(165, 165, 165, 0.2) !important;
  color: #ffffff !important;
}
.nav-item.active .icon {
  color: var(--prism-cyan) !important;
}
.nav-new {
  background: linear-gradient(125deg, rgba(173, 173, 173, 0.22), rgba(165, 165, 165, 0.24)) !important;
  color: #c4c4c4 !important;
  border: 1px solid rgba(165, 165, 165, 0.35) !important;
  font-weight: 600 !important;
}
.status-dot, .notifications i, .news-live-dot {
  background: var(--prism-mint) !important;
  box-shadow: 0 0 10px rgba(173, 173, 173, 0.75) !important;
}

/* ── Buttons & Interactive Controls ── */
.button {
  border-radius: 11px !important;
  border: 1px solid rgba(161, 161, 161, 0.22) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #ececec !important;
}
.button:hover:not(:disabled) {
  border-color: rgba(196, 196, 196, 0.5) !important;
  background: rgba(165, 165, 165, 0.1) !important;
}
.button.primary {
  background: linear-gradient(130deg, #adadad 0%, #a5a5a5 54%, #919191 100%) !important;
  color: #0f0f0f !important;
  border: 1px solid rgba(222, 222, 222, 0.55) !important;
  font-weight: 650 !important;
  box-shadow: 0 8px 24px rgba(165, 165, 165, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
}
.button.primary:hover:not(:disabled) {
  box-shadow: 0 12px 32px rgba(165, 165, 165, 0.38), 0 0 20px rgba(173, 173, 173, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transform: translate3d(var(--bx, 0px), calc(var(--by, 0px) - 2px), 0) !important;
}

/* ── 3D Perspective Tilt & Specular Radial Card Glow ── */
.panel, .stat-card, .path-card, .challenge-card, .cert-card, .plan-card, .case-card,
.studio-card, .ai-lesson-card, .ai-lab-card, .forge-panel, .player-card, .region-map {
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.78), rgba(16, 16, 16, 0.86)) !important;
  border: 1px solid rgba(161, 161, 161, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.3) !important;
}

.is-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) !important;
  border-color: rgba(196, 196, 196, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 44px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(165, 165, 165, 0.12) !important;
}

.studio-card::before, .ai-lesson-card::before, .ai-lab-card::before,
.forge-blueprint-card::before, .quest-class-card::before, .relic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 20%), rgba(165, 165, 165, 0.14), transparent 55%);
}
.studio-card, .ai-lesson-card, .ai-lab-card, .forge-blueprint-card, .quest-class-card, .relic-card {
  position: relative;
  overflow: hidden;
}
.studio-card:hover::before, .ai-lesson-card:hover::before, .ai-lab-card:hover::before,
.forge-blueprint-card:hover::before, .quest-class-card:hover::before, .relic-card:hover::before {
  opacity: 1;
}

/* Difficulty & Semantic Badges Restored */
.difficulty.Easy, .diff.easy {
  color: #adadad !important;
  background: rgba(173, 173, 173, 0.12) !important;
  border-color: rgba(173, 173, 173, 0.3) !important;
}
.difficulty.Medium, .diff.medium {
  color: #c1c1c1 !important;
  background: rgba(193, 193, 193, 0.12) !important;
  border-color: rgba(193, 193, 193, 0.3) !important;
}
.difficulty.Hard, .diff.hard {
  color: #909090 !important;
  background: rgba(144, 144, 144, 0.12) !important;
  border-color: rgba(144, 144, 144, 0.32) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10x COOLER LOADING / BOOT SCREEN: 3D NEURAL FORGE IGNITION
   ═══════════════════════════════════════════════════════════════════════════ */
.boot-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9000 !important;
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(33, 33, 33, 0.58), rgba(6, 6, 6, 0.98) 72%),
    #060606 !important;
  color: #f4f4f4 !important;
  overflow: hidden !important;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.75s ease, transform 0.85s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.85s !important;
}
.boot-screen.intro-exit {
  clip-path: circle(0% at 50% 48%) !important;
  opacity: 0 !important;
  transform: scale(1.06);
  pointer-events: none !important;
}
.boot-screen.dismissed {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.boot-neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.intro-grid {
  position: absolute;
  inset: 6% 5%;
  width: auto !important;
  height: auto !important;
  opacity: 0.26 !important;
  background-image:
    linear-gradient(rgba(165, 165, 165, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 165, 165, 0.12) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000000 25%, transparent 80%);
  border: 0 !important;
}

.boot-hud-frame {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  z-index: 1;
}
.boot-hud-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(165, 165, 165, 0.45);
  border-style: solid;
}
.boot-hud-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.boot-hud-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.boot-hud-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.boot-hud-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

.intro-topline {
  inset: 34px 44px auto !important;
  color: #c4c4c4 !important;
  font: 10.5px var(--mono) !important;
  letter-spacing: 2px !important;
  z-index: 2;
  align-items: center;
}
.boot-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(165, 165, 165, 0.1);
  border: 1px solid rgba(165, 165, 165, 0.3);
  color: #dedede;
}
.boot-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #adadad;
  box-shadow: 0 0 10px #adadad;
  animation: boot-blink 1.2s ease-in-out infinite;
}
@keyframes boot-blink { 50% { opacity: 0.35; transform: scale(0.8); } }

.boot-inner {
  position: relative;
  z-index: 2;
  width: min(88vw, 960px) !important;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot-reactor {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.boot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(165, 165, 165, 0.36);
  box-shadow: 0 0 30px rgba(165, 165, 165, 0.18), inset 0 0 20px rgba(165, 165, 165, 0.12);
  animation: boot-spin 10s linear infinite;
}
.boot-ring.r2 {
  inset: 12px;
  border-style: dashed;
  border-color: rgba(173, 173, 173, 0.5);
  animation-direction: reverse;
  animation-duration: 7s;
}
.boot-ring.r3 {
  inset: 24px;
  border-color: rgba(153, 153, 153, 0.55);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation-duration: 3.6s;
}
.boot-reactor-core {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(165, 165, 165, 0.28), rgba(23, 23, 23, 0.9));
  border: 1px solid rgba(196, 196, 196, 0.45);
  box-shadow: 0 0 36px rgba(165, 165, 165, 0.45);
  animation: boot-core-pulse 2.2s ease-in-out infinite;
}
.boot-reactor-core img {
  width: 28px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(173, 173, 173, 0.7));
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
@keyframes boot-core-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 54px rgba(173, 173, 173, 0.65); } }

.boot-kicker {
  color: #bebebe !important;
  font: 11px var(--mono) !important;
  letter-spacing: 3.2px !important;
  margin: 0 0 12px !important;
  text-transform: uppercase;
}

.boot-title {
  justify-content: center;
  font-size: clamp(56px, 10.5vw, 136px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.065em !important;
  margin: 0 0 20px !important;
  color: #ffffff !important;
  text-shadow: 0 10px 45px rgba(165, 165, 165, 0.25);
}
.boot-title .intro-word:first-child {
  color: #fafafa !important;
}
.boot-title .intro-word:nth-child(2) {
  background: linear-gradient(125deg, #adadad 0%, #a5a5a5 52%, #999999 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.boot-title .intro-period {
  color: #a5a5a5 !important;
  -webkit-text-fill-color: #a5a5a5 !important;
}

.boot-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}
.boot-modules span {
  font: 9.5px var(--mono);
  letter-spacing: 1.2px;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid rgba(161, 161, 161, 0.2);
  background: rgba(23, 23, 23, 0.65);
  color: #727272;
  transition: all 0.35s ease;
}
.boot-modules span.online {
  color: #f9f9f9;
  border-color: rgba(173, 173, 173, 0.55);
  background: rgba(145, 145, 145, 0.16);
  box-shadow: 0 0 16px rgba(173, 173, 173, 0.25);
}

.boot-telemetry-box {
  width: min(100%, 720px);
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(15, 15, 15, 0.72);
  border: 1px solid rgba(196, 196, 196, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
}
.intro-bottomline {
  border-top: 0 !important;
  padding-top: 0 !important;
  align-items: center !important;
  color: #d4d4d4 !important;
}
.boot-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.boot-stage-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 11px var(--mono);
}
#boot-stage-tag {
  color: #adadad;
  font-weight: 700;
}
#boot-tensors {
  color: #727272;
  font-size: 10px;
}
#boot-status {
  color: #e7e7e7 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.intro-counter {
  font-size: clamp(30px, 4.2vw, 48px) !important;
  font-weight: 600 !important;
  background: var(--prism-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-counter-total {
  font-size: 13px !important;
  color: #c4c4c4 !important;
  -webkit-text-fill-color: #c4c4c4;
}

.boot-progress-track {
  height: 6px !important;
  background: rgba(161, 161, 161, 0.14) !important;
  border-radius: 99px !important;
  margin-top: 14px !important;
  overflow: hidden;
  position: relative;
}
.boot-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #adadad, #a5a5a5, #999999) !important;
  box-shadow: 0 0 18px rgba(165, 165, 165, 0.85) !important;
}

.boot-skip {
  margin-top: 18px !important;
  padding: 9px 18px !important;
  border-radius: 99px !important;
  border: 1px solid rgba(161, 161, 161, 0.25) !important;
  background: rgba(23, 23, 23, 0.65) !important;
  color: #d4d4d4 !important;
  font: 11.5px var(--font) !important;
  gap: 10px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.boot-skip:hover {
  border-color: rgba(165, 165, 165, 0.6) !important;
  background: rgba(165, 165, 165, 0.14) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.boot-skip kbd {
  font: 9.5px var(--mono);
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #bebebe;
}
.boot-footer {
  position: absolute;
  inset: auto 44px 30px !important;
  display: flex;
  justify-content: space-between;
  color: #727272 !important;
  font: 9.5px var(--mono) !important;
  letter-spacing: 1.4px !important;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODEL STUDIO (#ai-models) REFORMATTED BENTO & LUMINOUS ORBITS
   ═══════════════════════════════════════════════════════════════════════════ */
.studio-hero-v2 {
  border: 1px solid rgba(165, 165, 165, 0.28) !important;
  background:
    radial-gradient(640px 340px at 85% 20%, rgba(165, 165, 165, 0.18), transparent 65%),
    radial-gradient(500px 300px at 15% 90%, rgba(153, 153, 153, 0.15), transparent 65%),
    #111111 !important;
}
.studio-hero-v2 h1 em {
  background: var(--prism-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.studio-hero-badges span {
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(165, 165, 165, 0.09);
  border: 1px solid rgba(165, 165, 165, 0.24);
  color: #dedede !important;
}

.studio-launchpads > * {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(161, 161, 161, 0.18) !important;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.82), rgba(16, 16, 16, 0.9)) !important;
}
.studio-launchpads > *:nth-child(1) { --lp: #adadad; }
.studio-launchpads > *:nth-child(2) { --lp: #a5a5a5; }
.studio-launchpads > *:nth-child(3) { --lp: #999999; }
.studio-launchpads > *::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lp, #a5a5a5), transparent);
}
.studio-launchpads span { color: var(--lp, #a5a5a5) !important; }
.studio-launchpads b { color: var(--lp, #a5a5a5) !important; font-weight: 600 !important; }

.studio-card[data-model-provider="local"] { --mc: #adadad; }
.studio-card[data-model-provider="gemini"] { --mc: #a5a5a5; }
.studio-card[data-model-provider="groq"] { --mc: #999999; }
.studio-card .model-visual {
  background:
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--mc, #a5a5a5) 20%, transparent), transparent 68%),
    linear-gradient(135deg, #131313, #1d1d1d) !important;
}
.studio-card .model-visual > span {
  color: var(--mc, #a5a5a5) !important;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--mc, #a5a5a5) 55%, transparent)) !important;
}
.studio-card .model-orbit {
  border-color: color-mix(in srgb, var(--mc, #a5a5a5) 34%, transparent) !important;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.studio-card:hover .model-orbit:nth-child(1) { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(75deg) scale(1.06); }
.studio-card:hover .model-orbit:nth-child(2) { transform: translate(-50%, -50%) rotateY(60deg) rotateZ(-75deg) scale(1.06); }
.studio-card .studio-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--mc, #a5a5a5) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--mc, #a5a5a5) 32%, transparent);
  color: var(--mc, #a5a5a5) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODEL FORGE (#ai-build): FROM-SCRATCH NEURAL ARCHITECT WORKBENCH
   ═══════════════════════════════════════════════════════════════════════════ */
.forge-architect-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 34px 36px;
  border-radius: 24px;
  margin: 18px 0 30px;
  background:
    radial-gradient(600px 320px at 0% 0%, rgba(173, 173, 173, 0.16), transparent 62%),
    radial-gradient(560px 320px at 100% 100%, rgba(153, 153, 153, 0.18), transparent 64%),
    rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(165, 165, 165, 0.3);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.forge-architect-hero h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -2.2px;
  margin: 12px 0 16px;
}
.forge-architect-hero h1 em {
  font-style: normal;
  background: var(--prism-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.forge-architect-hero p {
  color: #bfbfbf;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 20px;
  max-width: 620px;
}
.forge-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.forge-hero-pills span {
  font: 10px var(--mono);
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(165, 165, 165, 0.1);
  border: 1px solid rgba(165, 165, 165, 0.25);
  color: #dedede;
}

.forge-blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.forge-blueprint-card {
  --bp: #a5a5a5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--bp) 10%, rgba(24, 24, 24, 0.92)), rgba(15, 15, 15, 0.94));
  border: 1px solid color-mix(in srgb, var(--bp) 28%, rgba(161, 161, 161, 0.16));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.forge-blueprint-card:hover {
  border-color: color-mix(in srgb, var(--bp) 65%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 28px color-mix(in srgb, var(--bp) 18%, transparent);
}
.forge-bp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.forge-bp-tag {
  font: 9.5px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--bp);
  background: color-mix(in srgb, var(--bp) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bp) 32%, transparent);
}
.forge-bp-glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--bp);
  background: color-mix(in srgb, var(--bp) 14%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--bp) 30%, transparent);
}
.forge-blueprint-card h3 {
  font-size: 20px;
  margin: 4px 0 0;
  letter-spacing: -0.5px;
  color: #fafafa;
}
.forge-blueprint-card p {
  font-size: 12.5px;
  line-height: 1.65;
  color: #b0b0b0;
  margin: 0;
  flex: 1;
}
.forge-bp-specs {
  list-style: none;
  padding: 10px 0 0;
  margin: 4px 0 6px;
  border-top: 1px dashed rgba(161, 161, 161, 0.16);
  display: grid;
  gap: 5px;
  font: 10.5px var(--mono);
  color: #9f9f9f;
}
.forge-bp-specs li::before {
  content: '▹ ';
  color: var(--bp);
}

/* Quick Custom Layer Architect Bar on #ai-build Home & Step 2 */
.forge-quick-arch {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid rgba(161, 161, 161, 0.18);
}
.forge-layer-builder {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 14px 0;
}
.forge-layer-node {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 142px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(165, 165, 165, 0.28);
}
.forge-layer-node.fixed {
  border-style: dashed;
  border-color: rgba(161, 161, 161, 0.25);
  min-width: 115px;
  justify-content: center;
}
.forge-layer-node header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 10px var(--mono);
  color: #c4c4c4;
}
.forge-layer-node strong {
  font-size: 16px;
  color: #fafafa;
}
.forge-layer-node input[type="range"] {
  margin: 4px 0 0 !important;
  accent-color: #a5a5a5 !important;
}
.forge-param-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(165, 165, 165, 0.08);
  border: 1px solid rgba(165, 165, 165, 0.22);
  font-size: 12px;
  color: #d4d4d4;
  margin-top: 12px;
}
.forge-param-bar strong {
  font-family: var(--mono);
  color: #adadad;
}

/* Network SVG Color Enhancements */
.forge-net .e { stroke: #a5a5a5 !important; }
.forge-net .e.neg { stroke: #909090 !important; }
.forge-net .n { fill: #171717 !important; stroke: #c4c4c4 !important; }
.forge-net .n.hid { stroke: #999999 !important; }
.forge-net .n.out { fill: #adadad !important; stroke: #e0e0e0 !important; }
.forge-chart path.main { stroke: #a5a5a5 !important; filter: drop-shadow(0 0 6px rgba(165, 165, 165, 0.55)) !important; }
.forge-chart path.soft { stroke: #999999 !important; }
.forge-bar.top i::after {
  background: linear-gradient(90deg, #adadad, #a5a5a5) !important;
  box-shadow: 0 0 14px rgba(165, 165, 165, 0.55) !important;
}

/* Raw Source Code Inspector (PyTorch / JS) */
.forge-code-box {
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid rgba(161, 161, 161, 0.2);
  background: #0a0a0a;
  overflow: hidden;
}
.forge-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(161, 161, 161, 0.14);
}
.forge-code-tabs {
  display: flex;
  gap: 6px;
}
.forge-code-tabs button {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(161, 161, 161, 0.2);
  background: transparent;
  color: #a1a1a1;
  font: 11px var(--mono);
  cursor: pointer;
}
.forge-code-tabs button.active {
  background: rgba(165, 165, 165, 0.16);
  border-color: rgba(165, 165, 165, 0.45);
  color: #efefef;
}
.forge-code-pre {
  margin: 0;
  padding: 16px 18px;
  max-height: 360px;
  overflow: auto;
  font: 12px/1.65 var(--mono);
  color: #d4d4d4;
  white-space: pre;
}

/* Generative Mini-LM & Tabular Predictor Workbench */
.forge-lm-corpus {
  min-height: 190px;
  font: 13px/1.7 var(--mono) !important;
}
.forge-seed-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.forge-lm-output {
  margin-top: 14px;
  padding: 16px 18px;
  min-height: 120px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(165, 165, 165, 0.25);
  font: 14px/1.75 var(--font);
  color: #f4f4f4;
  white-space: pre-wrap;
}
.forge-lm-output .gen-prompt { color: #a1a1a1; }
.forge-lm-output .gen-token {
  color: #c4c4c4;
  background: rgba(165, 165, 165, 0.1);
  border-radius: 4px;
  padding: 0 2px;
}
.forge-lm-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.forge-lm-step-chip {
  font: 10.5px var(--mono);
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(161, 161, 161, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d4;
  cursor: pointer;
}
.forge-lm-step-chip.active {
  border-color: #adadad;
  background: rgba(173, 173, 173, 0.14);
  color: #f9f9f9;
}

.forge-tab-wrap {
  overflow-x: auto;
  margin-top: 14px;
}
.forge-tab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.forge-tab-table th, .forge-tab-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(161, 161, 161, 0.14);
  text-align: left;
}
.forge-tab-table th {
  font: 10px var(--mono);
  color: #bebebe;
  text-transform: uppercase;
}
.forge-tab-table input, .forge-tab-table select {
  margin: 0 !important;
  padding: 6px 8px !important;
  font-size: 12px !important;
}

.forge-starter-drawer {
  margin-top: 32px;
  border-radius: 18px;
  border: 1px solid rgba(161, 161, 161, 0.16);
  background: rgba(20, 20, 20, 0.55);
  padding: 18px 22px;
}
.forge-starter-drawer summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #d4d4d4;
  list-style: none;
}
.forge-starter-drawer summary::-webkit-details-marker { display: none; }
.forge-starter-drawer[open] summary {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(161, 161, 161, 0.14);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI & ML LEARNING HUB (#ai): TRACKS, 3D FLASHCARDS, CHEATSHEET & 5 LABS
   ═══════════════════════════════════════════════════════════════════════════ */
.ai-track-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.ai-track-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-track-pill {
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid rgba(161, 161, 161, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1a1;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-track-pill:hover {
  color: #f4f4f4;
  border-color: rgba(165, 165, 165, 0.4);
}
.ai-track-pill.active {
  background: linear-gradient(125deg, rgba(173, 173, 173, 0.2), rgba(165, 165, 165, 0.22));
  border-color: rgba(165, 165, 165, 0.55);
  color: #ffffff;
  font-weight: 600;
}
.ai-lesson-search {
  min-width: 230px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(161, 161, 161, 0.2);
  background: rgba(14, 14, 14, 0.75);
  color: #e7e7e7;
  font-size: 12px;
}

.ai-lesson-card.is-done {
  border-color: rgba(173, 173, 173, 0.42) !important;
}
.ai-lesson-card .ai-track-tag {
  color: #c4c4c4;
}

/* 3D Interactive Flashcard Deck */
.ai-flashcard-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 16px;
}
.ai-flashcard-wrap {
  perspective: 1100px;
  min-height: 240px;
}
.ai-flashcard {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.ai-flashcard.flipped {
  transform: rotateY(180deg);
}
.ai-fc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 26px 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.92), rgba(16, 16, 16, 0.96));
  border: 1px solid rgba(165, 165, 165, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.ai-fc-face.back {
  transform: rotateY(180deg);
  border-color: rgba(173, 173, 173, 0.42);
  background: linear-gradient(145deg, rgba(34, 34, 34, 0.94), rgba(17, 17, 17, 0.96));
}
.ai-fc-face h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 8px 0;
  color: #fafafa;
}
.ai-fc-face p {
  font-size: 13px;
  line-height: 1.75;
  color: #d4d4d4;
  margin: 0;
}
.ai-fc-formula {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(173, 173, 173, 0.25);
  font: 12px var(--mono);
  color: #cacaca;
}
.ai-fc-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(21, 21, 21, 0.78);
  border: 1px solid rgba(161, 161, 161, 0.16);
}

/* Quick Reference Cheatsheet Cards */
.ai-cheatsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.ai-cheat-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.74);
  border: 1px solid rgba(161, 161, 161, 0.16);
}
.ai-cheat-card h3 {
  font-size: 15px;
  margin: 6px 0 10px;
  color: #f4f4f4;
}
.ai-cheat-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.75;
  color: #aeaeae;
}
.ai-cheat-card code {
  color: #c4c4c4;
  font-family: var(--mono);
  font-size: 11px;
}

/* New AI Labs (5-card grid & Attention / Playground visualizers) */
.ai-lab-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}
.ai-attn-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.ai-attn-token {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(161, 161, 161, 0.24);
  background: rgba(165, 165, 165, calc(var(--w, 0) * 0.42 + 0.04));
  color: #f4f4f4;
  font: 13px var(--mono);
  cursor: pointer;
  transition: all 0.18s ease;
}
.ai-attn-token.selected {
  border-color: #adadad;
  box-shadow: 0 0 16px rgba(173, 173, 173, 0.35);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10x BETTER QUEST RPG (#graph): CLASSES, SKILL TREE, BOSS RAID, RELICS
   ═══════════════════════════════════════════════════════════════════════════ */
.quest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.quest-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid rgba(161, 161, 161, 0.18);
  background: rgba(21, 21, 21, 0.72);
  color: #a1a1a1;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quest-tab:hover {
  color: #fafafa;
  border-color: rgba(165, 165, 165, 0.38);
}
.quest-tab.active {
  background: linear-gradient(125deg, rgba(173, 173, 173, 0.18), rgba(165, 165, 165, 0.2));
  border-color: rgba(165, 165, 165, 0.55);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(165, 165, 165, 0.18);
}
.quest-tab small {
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  font: 10px var(--mono);
  color: #c4c4c4;
}

.quest-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.quest-class-card {
  --qc: #a5a5a5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: linear-gradient(155deg, color-mix(in srgb, var(--qc) 11%, rgba(22, 22, 22, 0.92)), rgba(15, 15, 15, 0.94));
  border: 1px solid color-mix(in srgb, var(--qc) 26%, rgba(161, 161, 161, 0.16));
  transition: all 0.22s ease;
}
.quest-class-card.active {
  border-color: var(--qc);
  box-shadow: 0 0 28px color-mix(in srgb, var(--qc) 24%, transparent), inset 0 0 0 1px var(--qc);
}
.quest-class-card .qc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quest-class-card .qc-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--qc);
  background: color-mix(in srgb, var(--qc) 16%, transparent);
}
.quest-class-card strong { font-size: 16px; color: #fafafa; }
.quest-class-card p { font-size: 12px; color: #aeaeae; margin: 0; line-height: 1.55; }
.quest-class-card small { font: 10.5px var(--mono); color: var(--qc); }

/* Skill Tree Perks */
.skill-tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}
.skill-node {
  padding: 18px;
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.8);
  border: 1px solid rgba(161, 161, 161, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-node.unlocked {
  border-color: rgba(173, 173, 173, 0.45);
  background: linear-gradient(150deg, rgba(145, 145, 145, 0.1), rgba(21, 21, 21, 0.86));
}
.skill-node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skill-node-top span {
  font: 10px var(--mono);
  color: #adadad;
}

/* Interactive Tactical Boss Raid / Skirmish Arena */
.raid-arena {
  --rc: #909090;
  padding: 24px 26px;
  border-radius: 22px;
  margin-bottom: 22px;
  background:
    radial-gradient(620px 300px at 50% 0%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 68%),
    rgba(14, 14, 14, 0.94);
  border: 1px solid color-mix(in srgb, var(--rc) 45%, rgba(161, 161, 161, 0.2));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px color-mix(in srgb, var(--rc) 14%, transparent);
  animation: card-in 0.35s ease both;
}
.raid-hud {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(161, 161, 161, 0.16);
}
.raid-boss-bar, .raid-shield-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.raid-hp-track {
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(144, 144, 144, 0.3);
}
.raid-hp-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #909090, #686868, #c1c1c1);
  box-shadow: 0 0 14px rgba(144, 144, 144, 0.65);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.raid-shields {
  display: flex;
  gap: 6px;
  align-items: center;
}
.raid-shield-pip {
  padding: 4px 9px;
  border-radius: 8px;
  font: 11px var(--mono);
  background: rgba(165, 165, 165, 0.16);
  border: 1px solid rgba(165, 165, 165, 0.45);
  color: #c4c4c4;
}
.raid-shield-pip.broken {
  opacity: 0.28;
  border-color: rgba(161, 161, 161, 0.2);
  background: transparent;
}
.raid-timer-pill {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(193, 193, 193, 0.12);
  border: 1px solid rgba(193, 193, 193, 0.38);
  font: 700 16px var(--mono);
  color: #c1c1c1;
  text-align: center;
}
.raid-timer-pill.urgent {
  color: #909090;
  border-color: #909090;
  background: rgba(144, 144, 144, 0.16);
  animation: pulse-glow 0.7s infinite;
}
.raid-powers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.raid-power-btn {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(153, 153, 153, 0.35);
  background: rgba(153, 153, 153, 0.12);
  color: #dadada;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.raid-power-btn:hover:not(:disabled) {
  background: rgba(153, 153, 153, 0.24);
  border-color: #999999;
}
.raid-power-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.raid-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.raid-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(161, 161, 161, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: #e7e7e7;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.18s ease;
}
.raid-choice:hover:not(:disabled) {
  border-color: rgba(165, 165, 165, 0.55);
  background: rgba(165, 165, 165, 0.1);
  transform: translateY(-2px);
}
.raid-choice.eliminated {
  opacity: 0.25;
  text-decoration: line-through;
  pointer-events: none;
}
.raid-choice.hit {
  border-color: #adadad;
  background: rgba(173, 173, 173, 0.18);
  color: #ffffff;
}
.raid-choice.miss {
  border-color: #909090;
  background: rgba(144, 144, 144, 0.18);
}

/* Relic Vault & Rarity Tiers */
.relic-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
}
.relic-card {
  --rl: #a1a1a1;
  padding: 16px;
  border-radius: 16px;
  background: rgba(21, 21, 21, 0.78);
  border: 1px solid rgba(161, 161, 161, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.relic-card.locked {
  opacity: 0.45;
  filter: saturate(0.3);
}
.relic-card.rare { --rl: #a5a5a5; }
.relic-card.epic { --rl: #999999; }
.relic-card.mythic { --rl: #c1c1c1; }
.relic-card.owned {
  border-color: color-mix(in srgb, var(--rl) 52%, transparent);
  background: radial-gradient(180px 110px at 50% 0%, color-mix(in srgb, var(--rl) 16%, transparent), transparent 72%), rgba(21, 21, 21, 0.88);
}
.relic-rarity {
  font: 9.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rl);
}

/* Interactive Red-vs-Blue Kill-Chain Simulator */
.killchain-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.killchain-mode-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(161, 161, 161, 0.18);
}
.killchain-mode-toggle button {
  padding: 6px 13px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #a1a1a1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.killchain-mode-toggle button.red.active {
  background: rgba(144, 144, 144, 0.2);
  color: #b8b8b8;
}
.killchain-mode-toggle button.blue.active {
  background: rgba(165, 165, 165, 0.2);
  color: #c4c4c4;
}
.killchain-detail {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.78);
  border: 1px solid rgba(161, 161, 161, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Responsive Refinements */
@media (max-width: 960px) {
  .forge-architect-hero, .ai-flashcard-stage, .raid-hud, .killchain-detail {
    grid-template-columns: 1fr;
  }
  .raid-choices {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .intro-topline { inset: 18px 18px auto !important; }
  .boot-footer { inset: auto 18px 18px !important; }
  .boot-hud-frame { inset: 10px; }
  .boot-reactor { width: 88px; height: 88px; margin-bottom: 14px; }
  .boot-modules { gap: 5px; margin-bottom: 18px; }
  .boot-modules span { font-size: 8px; padding: 4px 8px; }
}

.motion-off .boot-ring,
.motion-off .boot-reactor-core,
.motion-off .boot-live-pill i {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .boot-ring, .boot-reactor-core, .boot-live-pill i { animation: none !important; }
  .is-tilting { transform: none !important; }
  .ai-flashcard { transition: none !important; }
}
