/* BOLO.INSTINCT homepage styles (extracted from index.html). */
:root {
  --bg-void: #000000;
  --text-bold: #ffffff;
  --text-dim: #8e9bb0;
  --panel: rgba(18, 18, 22, 0.94);
  --border: rgba(255, 255, 255, 0.08);
  --aura-chem: #00e5ff;
  --aura-bio: #2ecc71;
  --aura-phy: #b026ff;
  --aura-env: #ffaa00;
  --aura-base: radial-gradient(circle at center, rgba(0, 140, 255, 0.13) 0%, rgba(0, 110, 255, 0.05) 30%, var(--bg-void) 62%);
  --core-reset-ring: radial-gradient(circle at 50% 50%, rgba(70, 205, 255, 0.30) 0%, rgba(0, 150, 255, 0.16) 30%, rgba(0, 115, 255, 0) 72%);
  --hud-icon-color: #ffaa00;
  --hud-icon-glow: rgba(255, 170, 0, 0.7);
  --orbit-line: rgba(135, 225, 255, 0.15);
  --orbit-glow: rgba(0, 205, 255, 0.38);
  --radius: clamp(160px, min(30vh, 34vw), 350px);
  --fluid-curve: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-curve: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-gurmukhi: 'Noto Sans Gurmukhi', 'Mukta Mahee', 'Gurmukhi Sangam MN', 'Nirmala UI', 'Raavi', 'Lohit Gurmukhi', sans-serif;
}
/* CLASSIC = light colorway matching the lecture decks (legacy palette):
   predominant white with blue #0b56c5 / orange #f26a21 accents.
   Orb vars (--aura-base, --core-reset-*) are NOT overridden — the energy
   orb keeps the exact same glow in both themes. */
body[data-theme="CLASSIC"] {
  --bg-void: #f8fbff;
  --text-bold: #182437;
  --text-dim: #5c6f86;
  --panel: rgba(255, 255, 255, 0.92);
  --border: rgba(11, 74, 168, 0.14);
  --aura-chem: #0b56c5;
  --aura-bio: #179c65;
  --aura-phy: #0946a0;
  --aura-env: #f26a21;
  --hud-icon-color: #f26a21;
  --hud-icon-glow: rgba(242, 106, 33, 0.35);
  --orbit-line: rgba(11, 86, 197, 0.16);
  --orbit-glow: rgba(11, 86, 197, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg-void); overflow-x: clip; }
body {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--text-bold);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, var(--font-gurmukhi);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 8%, rgba(0, 0, 0, 0.98) 100%);
}

button, input { font: inherit; }
button { border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@keyframes deltaWave { 0%, 100% { opacity: 0.02; transform: scale(1); } 50% { opacity: 0.05; transform: scale(1.05); } }
@keyframes auraBreathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.85; } }
@keyframes appIgnition { 0% { opacity: 0; transform: scale(0.94) translateY(18px); filter: blur(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
@keyframes orbitalSpin { to { transform: rotate(360deg); } }

.neural-mesh {
  position: fixed;
  inset: -5%;
  z-index: -3;
  width: 110vw;
  height: 110vh;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: deltaWave 8s infinite ease-in-out;
  contain: paint;
  will-change: transform;
}

.aura-bleed {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 120vw;
  height: 120vh;
  transform: translate(-50%, -50%);
  background: var(--aura-base);
  transition: background 1s var(--fluid-curve);
  animation: auraBreathe 10s ease-in-out infinite;
  contain: paint;
  will-change: transform, opacity;
  pointer-events: none;
}

body.ambience-paused .neural-mesh,
body.ambience-paused .aura-bleed { animation-play-state: paused; }

/* Page hand-off veil. Earlier builds grew a hard-edged white circle out of
   the centre, which flashed white in CLASSIC and felt abrupt in NEON. This
   is a flat, theme-aware dissolve instead: a solid layer in the current
   background colour (--veil-solid) plus a soft accent bloom, so leaving and
   arriving pages cross-fade seamlessly in both colourways. */
.gateway-core {
  --veil-solid: 1;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  color: var(--aura-chem);
  transition: opacity 0.19s var(--fluid-curve);
  will-change: opacity;
}
.gateway-core::before { content: ''; position: absolute; inset: 0; background: var(--bg-void); opacity: var(--veil-solid); }
.gateway-core::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, currentColor 34%, transparent) 0%, transparent 62%); }
body.gateway-active .gateway-core { opacity: 1; }
/* The support widget floats on its own very high z-index, so fade it with
   the page instead of letting it sit on top of the dissolve. */
body.gateway-active #bmc-widget, body.page-enter #bmc-widget { opacity: 0; transition: opacity 0.22s ease; }
@keyframes veilFadeOut { from { opacity: 1; } to { opacity: 0; } }
/* Arrival half of the same dissolve: the veil is already opaque on the very
   first paint, then melts away to reveal the menu. */
body.page-enter .gateway-core { animation: veilFadeOut 0.32s var(--fluid-curve) forwards; }

.web-utility-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  padding: max(24px, env(safe-area-inset-top)) 48px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  animation: appIgnition 1.2s var(--fluid-curve) forwards;
}

.header-left { display: flex; align-items: center; gap: 32px; pointer-events: auto; }
.header-logo {
  background: linear-gradient(135deg, #fff 0%, #8e9bb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.header-center { display: flex; align-items: center; gap: 16px; }
.domain-router {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}
.domain-btn {
  padding: 8px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.35s var(--fluid-curve), background 0.35s var(--fluid-curve), transform 0.35s var(--fluid-curve);
}
.domain-btn:hover, .domain-btn:focus-visible { color: #fff; outline: none; }
.domain-btn.active { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); }
.subject-router, .mode-router { flex: 0 0 auto; overflow-x: auto; scrollbar-width: none; }
.subject-router::-webkit-scrollbar, .mode-router::-webkit-scrollbar { display: none; }
.subject-router { max-width: min(32vw, 300px); }
.lecture-navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.header-brand .mobile-about { display: none; }
.lecture-subjects {
  position: fixed; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 100; width: 248px; padding: 12px; border: 1px solid var(--border); border-radius: 18px;
  background: rgba(18, 18, 22, 0.92); backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px #0005;
}
.lecture-subjects[hidden] { display: none; }
#resumeBtn[hidden] { display: none; }
.lecture-subject-label { display: block; margin: 0 4px 8px; color: var(--text-dim); font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.lecture-subjects .subject-router { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.lecture-subjects .domain-btn { min-height: 44px; padding: 8px; border-radius: 10px; text-transform: none; letter-spacing: 0; white-space: normal; text-align: left; font-size: 0.75rem; }
.lecture-subjects .subject-btn small { display: block; font-size: 0.58rem; font-weight: 500; opacity: 0.8; margin-top: 3px; }
body[data-theme="CLASSIC"] .lecture-subjects { background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 30px #10305218; }
.lecture-subjects .domain-btn:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.mode-router { max-width: min(46vw, 500px); }
.mode-router .domain-btn { padding-inline: 10px; }
.subject-btn, .mode-btn { white-space: nowrap; }
.header-divider { width: 1px; height: 32px; background: rgba(255, 255, 255, 0.15); }
.header-trust { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trust-primary { color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: 1.5px; line-height: 1.1; white-space: nowrap; text-transform: uppercase; transition: opacity 0.25s; }
.trust-secondary { color: var(--text-dim); font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; line-height: 1.25; text-transform: uppercase; }
@media (max-width: 1439px) {
  .trust-primary { font-size: 0.82rem; letter-spacing: 1px; }
  .trust-secondary { display: none; }
}
@media (max-width: 1119px) {
  .header-trust, .header-divider { display: none; }
}
.header-right { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.hud-pill.hub-home-link { display: none; }
html[data-app="im"] .hub-home-link, html[data-app="med"] .hub-home-link { display: inline-flex; min-height: 44px; text-decoration: none; white-space: nowrap; }
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-bold);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background 0.35s var(--fluid-curve), transform 0.35s var(--fluid-curve), border-color 0.35s var(--fluid-curve);
}
.hud-pill:hover, .hud-pill:focus-visible { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); outline: none; }
.hub-home-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hud-icon { color: var(--hud-icon-color); text-shadow: 0 0 10px var(--hud-icon-glow); }

.arena-wrapper { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; perspective: 1500px; opacity: 0; animation: appIgnition 1.2s 0.18s var(--fluid-curve) forwards; }
.arena { position: relative; width: 100%; height: 100%; box-sizing: border-box; padding-top: clamp(48px, 10vh, 112px); display: flex; align-items: center; justify-content: center; cursor: grab; transform-style: preserve-3d; backface-visibility: hidden; touch-action: none; will-change: transform; transition: opacity 0.34s var(--fluid-curve), filter 0.34s var(--fluid-curve); }
.arena:active { cursor: grabbing; }
body.is-placeholder .arena { touch-action: pan-y; cursor: default; }
body.is-placeholder .abim-launch,
body.is-placeholder .med-launch,
body.is-placeholder #bmc-widget { display: none; }
.arena.fade-out { opacity: 0; filter: blur(7px); }
.mode-placeholder {
  --accent: #00e5ff;
  position: absolute;
  top: var(--module-top, 160px);
  z-index: 20;
  width: min(88vw, 740px);
  max-height: var(--module-height, 70dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  cursor: default;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.96), rgba(7, 7, 10, 0.96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(24px);
  animation: placeholderRise 0.7s var(--fluid-curve);
}
.mode-placeholder[hidden] { display: none; }
.mode-placeholder:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes placeholderRise { 0% { opacity: 0; transform: translateY(26px) scale(0.94); filter: blur(8px); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
.mode-placeholder-badge { display: inline-block; margin-bottom: 18px; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 999px; color: var(--accent); font-size: 0.62rem; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); }
.mode-placeholder h1 { font-size: clamp(1.8rem, 7vw, 3rem); font-weight: 900; letter-spacing: 1px; line-height: 1; }
.mode-placeholder p { max-width: 62ch; margin: 16px auto 0; color: var(--text-dim); font-size: clamp(0.84rem, 2.5vw, 0.96rem); font-weight: 600; line-height: 1.65; }
.module-details { margin-top: 20px; text-align: left; }
.module-details[hidden] { display: none; }
.module-details h2 { font-size: 1.15rem; line-height: 1.6; color: var(--text-bold); }
.module-details a { color: var(--accent); text-underline-offset: 3px; }
.module-details a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.module-details .module-note { font-size: 0.8rem; }
.module-state { display: inline-block; padding: 3px 8px; border: 1px solid currentColor; border-radius: 8px; font-size: 0.7rem; color: var(--accent); }
.game-preview { display: grid; gap: 20px; margin-top: 20px; }
.game-preview figure { margin: 0; }
.game-preview a { display: block; }
.game-preview img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.game-preview figcaption { margin-top: 8px; color: var(--text-dim); font-size: 0.75rem; line-height: 1.6; }
.mode-placeholder-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.mode-placeholder-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ffaa00; box-shadow: 0 0 12px rgba(255, 170, 0, 0.8); }
.mode-placeholder-status[hidden] { display: none; }
.mode-placeholder-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 14px 30px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: #fff; font-family: inherit; font-size: 0.82rem; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer; transition: all 0.3s var(--fluid-curve); box-shadow: 0 0 30px -10px var(--accent); }
.mode-placeholder-cta:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: 0 10px 34px -8px var(--accent); }
.mode-placeholder-cta[hidden] { display: none; }
/* Mode-switch feedback: a soft accent bloom that fades in and out (no solid
   layer, no growing circle edge). */
body.orb-pulse .gateway-core { --veil-solid: 0; opacity: 0.5; transition: opacity 0.42s var(--fluid-curve); }
/* The orb's interaction pulse belongs to the orb, so it stays live under
   reduced motion too; only the placeholder card's entrance is suppressed. */
@media (prefers-reduced-motion: reduce) { .mode-placeholder { animation: none; } .gateway-core { transition: opacity 0.28s linear !important; } body.page-enter .gateway-core { animation-duration: 0.2s; } .arena { transition: opacity 0.2s linear !important; } .arena.fade-out { filter: none; } }
.core-lbl { display: none; }
.orbit-meter { position: absolute; top: calc(100% + clamp(18px, 3vh, 30px)); left: 50%; z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); text-align: center; white-space: nowrap; pointer-events: none; transition: opacity 0.5s var(--fluid-curve); }
.orbit-count { display: inline-flex; align-items: baseline; gap: 5px; color: var(--text-bold); font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.orbit-count i { color: var(--text-dim); font-style: normal; font-weight: 700; }
.orbit-count .total { color: var(--text-dim); }
.orbit-hint { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 0.62rem; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; opacity: 0.9; transition: opacity 0.6s var(--fluid-curve); }
.orbit-hint .pa { font-family: var(--font-gurmukhi); font-size: 0.86rem; font-weight: 700; letter-spacing: 0; line-height: 1.7; text-transform: none; }
.orbit-hint .sep { opacity: 0.5; }
body.has-explored .orbit-hint { opacity: 0; }
.arena-locked .orbit-meter { opacity: 0; }
body.is-placeholder .orbit-meter { opacity: 0; }
.dial { --orbit-accent: var(--aura-chem); --motion-energy: 0; position: absolute; z-index: 5; width: 0; height: 0; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; will-change: transform; }
.dial::before,
.dial::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--radius) * 2);
  height: calc(var(--radius) * 2);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.dial::before {
  border: 1px solid var(--orbit-line);
  background: repeating-conic-gradient(from -1deg, var(--orbit-line) 0 1deg, transparent 1deg 15deg);
  box-shadow: 0 0 42px color-mix(in srgb, var(--orbit-glow) 20%, transparent), inset 0 0 36px color-mix(in srgb, var(--orbit-glow) 12%, transparent);
  opacity: calc(0.62 + var(--motion-energy) * 0.34);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.dial::after {
  background: conic-gradient(from 18deg, transparent 0 66%, color-mix(in srgb, var(--orbit-accent) 78%, transparent) 73%, color-mix(in srgb, var(--orbit-accent) 28%, transparent) 78%, transparent 84% 100%);
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--orbit-accent) 62%, transparent));
  opacity: calc(0.5 + var(--motion-energy) * 0.46);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: orbitSweep 16s linear infinite;
}
@keyframes orbitSweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.node-anchor { position: absolute; transform-style: preserve-3d; will-change: transform, opacity, filter; }
.arena-locked .node-anchor { transition: opacity 0.8s var(--fluid-curve), filter 0.8s var(--fluid-curve); }
.arena-locked .node-anchor:not(.is-active) { opacity: 0 !important; filter: blur(20px) !important; pointer-events: none; }
.node-anchor.is-active { z-index: 100 !important; opacity: 1 !important; filter: blur(0) !important; }

/* The energy orb is the product's signature and is deliberately exempt from
   the reduced-motion reset: it keeps its full, lively animation on every
   device. These re-assert the base animations with !important so they
   survive the global `*` reduced-motion reset further down (class
   specificity also beats that `*` rule, so ordering is not relied on). */
@media (prefers-reduced-motion: reduce) {
  .core-system { animation: coreFloat 7s ease-in-out infinite !important; }
  .core-ring { animation: auraPulse 6s ease-in-out infinite !important; }
  .orb-glow { animation: orbBreathe 6.5s ease-in-out infinite !important; }
  .orb-body { animation: orbBreathe 7.5s ease-in-out infinite reverse !important; }
  .orb-plasma { animation: plasmaDrift1 9s ease-in-out infinite !important; }
  .orb-hot, .core-val { animation: coreThrob 2.6s ease-in-out infinite !important; }
  .core-val::before { animation: coreGlint 5s ease-in-out infinite !important; }
  .orb-flare { animation: orbFlare 8s ease-in-out infinite !important; }
  .orb-spark.s1 { animation: sparkOrbit1 3.1s linear infinite !important; }
  .orb-spark.s2 { animation: sparkOrbit2 4.3s linear infinite !important; }
  .orb-spark.s3 { animation: sparkOrbit3 2.4s linear infinite !important; }
  .orb-spark.s4 { animation: sparkOrbit4 3.7s linear infinite !important; }
  .orb-spark.s5 { animation: sparkOrbit5 2.9s linear infinite !important; }
  .orb-spark.s6 { animation: sparkOrbit6 5.1s linear infinite !important; }
  .orb-ember.e1 { animation: ember1 3.4s ease-out infinite !important; }
  .orb-ember.e2 { animation: ember2 4.1s ease-out infinite !important; animation-delay: 1.2s !important; }
  .orb-ember.e3 { animation: ember3 3.8s ease-out infinite !important; animation-delay: 2.1s !important; }
}

.shard { position: absolute; width: min(90vw, 372px); display: flex; flex-direction: column; overflow: hidden; padding: clamp(16px, 4vw, 24px); border: 1px solid rgba(255, 255, 255, 0.045); border-radius: 24px; background: var(--panel); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.95); cursor: pointer; --shard-rot: 0deg; --shard-scale: 1; --shard-pop: 1; transform: translate(-50%, -50%) rotate(var(--shard-rot)) scale(calc(var(--shard-scale) * var(--shard-pop))); backface-visibility: hidden; will-change: transform; transition: background 0.42s var(--fluid-curve), box-shadow 0.42s var(--fluid-curve), border-color 0.42s var(--fluid-curve), width 0.42s var(--fluid-curve), opacity 0.24s; }
.shard::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: linear-gradient(112deg, transparent 20%, rgba(255, 255, 255, 0.11) 48%, transparent 72%); opacity: 0; pointer-events: none; transform: translateX(-125%); }
.shard-anchor.is-targeted .shard { --shard-pop: 1.06; border-color: rgba(255, 255, 255, 0.14); border-top-color: currentColor; background: linear-gradient(180deg, rgba(18, 18, 23, 1) 0%, rgba(6, 7, 11, 1) 100%); box-shadow: 0 36px 76px rgba(0, 0, 0, 0.97), 0 0 52px -12px currentColor, inset 0 1px 2px rgba(255, 255, 255, 0.16); }
.shard-anchor.is-targeted .shard::before { opacity: 0.5; animation: shardSheen 6.8s 1.1s var(--fluid-curve) infinite; }
.s-head, .s-expansion { position: relative; z-index: 1; }
@keyframes shardSheen { 0%, 62%, 100% { transform: translateX(-125%); opacity: 0; } 73% { opacity: 0.5; } 88% { transform: translateX(125%); opacity: 0; } }
.shard-anchor.is-targeted .pa-title { color: var(--text-bold); text-shadow: 0 0 20px color-mix(in srgb, currentColor 45%, transparent); }
.shard-anchor.is-targeted .ch-icon { color: currentColor; filter: drop-shadow(0 0 7px currentColor); }
.shard-anchor.is-targeted .ch-num { color: currentColor; }
.shard-anchor.is-active .shard { width: min(94vw, 396px); border-top-color: currentColor; background: linear-gradient(180deg, rgba(15, 15, 18, 1) 0%, rgba(5, 5, 8, 1) 100%); box-shadow: 0 50px 100px rgba(0, 0, 0, 0.99), inset 0 2px 4px rgba(255, 255, 255, 0.15); cursor: default; --shard-scale: 1.06 !important; }
.shard-anchor.is-active .pa-title { color: currentColor; text-shadow: 0 0 25px currentColor; }
.shard-anchor.is-active .btn-prime { border-color: currentColor; color: currentColor; }
.shard-anchor.is-active .ch-icon { color: currentColor; filter: drop-shadow(0 0 8px currentColor); }
.s-head { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; }
.s-titles { flex: 1; display: flex; align-items: flex-start; gap: 11px; min-width: 0; overflow: visible; text-align: left; }
.ch-icon { width: 14px; height: 14px; margin-top: 6px; flex: none; color: var(--text-dim); transition: color 0.5s var(--fluid-curve); }
.ch-icon svg { width: 100%; height: 100%; stroke: currentColor; }
.ch-num { padding-top: 4px; color: var(--text-dim); font-size: 0.85rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.title-group { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-right: 2px; }
.pa-title { color: var(--text-bold); font-family: var(--font-gurmukhi); font-size: clamp(1rem, 3.5vw, 1.1rem); font-weight: 700; line-height: 1.55; overflow-wrap: break-word; transition: color 0.5s var(--fluid-curve), text-shadow 0.5s var(--fluid-curve); }
.en-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--text-dim); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; line-height: 1.45; overflow-wrap: break-word; text-transform: uppercase; }
.svg-progress-container { position: relative; width: clamp(38px, 10vw, 44px); height: clamp(38px, 10vw, 44px); display: flex; align-items: center; justify-content: center; flex: none; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; transition: transform 0.4s var(--spring-curve), background 0.4s; }
.svg-progress-container:hover, .svg-progress-container:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; transform: scale(1.08); }
.prog-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.prog-ring circle { fill: transparent; stroke-width: 2.5; }
.prog-ring .bg { stroke: rgba(255, 255, 255, 0.05); }
.prog-ring .fill { stroke: currentColor; stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--spring-curve); }
.prog-text { z-index: 1; color: var(--text-dim); font-size: 0.65rem; font-weight: 800; font-variant-numeric: tabular-nums; pointer-events: none; }
.svg-progress-container.done .prog-text { color: currentColor; font-size: 0.8rem; text-shadow: 0 0 10px currentColor; }
.svg-progress-container.done .fill { stroke-dashoffset: 0 !important; filter: drop-shadow(0 0 6px currentColor); }
.svg-progress-container.locked { opacity: 0.42; cursor: not-allowed; }
.s-expansion { display: grid; grid-template-rows: 0fr; width: 100%; transition: grid-template-rows 0.6s var(--fluid-curve); }
.s-expansion-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding-top: 0; opacity: 0; transition: padding-top 0.6s var(--fluid-curve), opacity 0.4s; }
.shard-anchor.is-active .s-expansion { grid-template-rows: 1fr; }
.shard-anchor.is-active .s-expansion-inner { padding-top: 16px; opacity: 1; }
.rune-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rune { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.025); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--text-dim); font-family: var(--font-gurmukhi); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; }
.rune.soon { color: #ffaa00; }
.action-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.btn-prime { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.025); color: var(--text-bold); cursor: pointer; font-family: var(--font-gurmukhi); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.4px; text-decoration: none; transition: transform 0.3s var(--fluid-curve), background 0.3s var(--fluid-curve), border-color 0.3s var(--fluid-curve); }
.btn-prime:hover, .btn-prime:focus-visible { background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); outline: none; }
.btn-prime[aria-disabled="true"] { color: var(--text-dim); cursor: not-allowed; }

.utility-hub { position: fixed; right: 48px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100; display: flex; gap: 10px; pointer-events: auto; }

/* ABIM Board Prep launcher — home screen only, docked directly above the
   "Support BOLO" coffee pill (which sits raised at bottom: 92px here). */
.abim-launch, .med-launch { position: fixed; right: 20px; z-index: 1100; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border: 1px solid rgba(45, 212, 191, 0.45); border-radius: 999px; background: rgba(10, 22, 24, 0.9); color: #2dd4bf; cursor: pointer; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.5px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 26px -10px #2dd4bf; backdrop-filter: blur(10px); transition: transform 0.3s var(--spring-curve), box-shadow 0.3s var(--fluid-curve), opacity 0.3s var(--fluid-curve); }
.abim-launch, .med-launch { text-decoration: none; }
.abim-launch { bottom: 152px; }
.med-launch { bottom: 210px; border-color: rgba(192, 132, 252, 0.55); background: rgba(35, 20, 47, 0.92); color: #d8b4fe; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 26px -10px #c084fc; }
.abim-launch:hover, .abim-launch:focus-visible, .med-launch:hover, .med-launch:focus-visible { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 36px -8px #2dd4bf; outline: none; }
.med-launch:hover, .med-launch:focus-visible { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 36px -8px #c084fc; }
.abim-launch .abim-launch-icon { font-size: 1.05rem; line-height: 1; }
.med-launch .abim-launch-icon { font-size: 1.05rem; line-height: 1; }
body[data-theme="CLASSIC"] .abim-launch { background: rgba(255, 255, 255, 0.94); border-color: rgba(13, 148, 136, 0.45); color: #0d9488; box-shadow: 0 14px 40px rgba(16, 42, 82, 0.2), 0 0 26px -12px #0d9488; }
body[data-theme="CLASSIC"] .med-launch { background: rgba(255, 255, 255, 0.96); border-color: rgba(147, 51, 234, 0.35); color: #7e22ce; box-shadow: 0 14px 40px rgba(16, 42, 82, 0.16), 0 0 26px -12px #a855f7; }
.abim-launch.abim-launch-hidden, .med-launch.abim-launch-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
.abim-launch-due { padding: 2px 8px; border-radius: 999px; background: #2dd4bf; color: #04211d; font-size: 0.64rem; font-weight: 900; font-variant-numeric: tabular-nums; }
body[data-theme="CLASSIC"] .abim-launch-due { background: #0d9488; color: #ffffff; }
@media (max-width: 520px) {
  .abim-launch, .med-launch { right: 86px; width: 48px; height: 48px; justify-content: center; padding: 0; }
  .abim-launch { bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px)); }
  .med-launch { bottom: max(140px, calc(env(safe-area-inset-bottom) + 126px)); }
  .abim-launch .abim-launch-label { display: none; }
  .med-launch .abim-launch-label { display: none; }
  .abim-launch .abim-launch-icon { font-size: 1.4rem; }
  .med-launch .abim-launch-icon { font-size: 1.4rem; }
  .abim-launch-due { position: absolute; top: -7px; right: -7px; padding: 2px 5px; font-size: 0.58rem; }
  body[data-support="widget"] .bmc-widget.bmc-raise { bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px)); }
}
.round-trigger { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; background: rgba(255, 255, 255, 0.03); color: var(--text-bold); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); backdrop-filter: blur(16px); transition: transform 0.3s var(--fluid-curve), background 0.3s var(--fluid-curve); }
.round-trigger:hover, .round-trigger:focus-visible { transform: scale(1.05); background: rgba(255, 255, 255, 0.06); outline: none; }
.round-trigger svg { width: 17px; height: 17px; stroke: currentColor; }
.round-trigger.theme-trigger { width: auto; min-width: 48px; border-radius: 999px; padding: 0 13px; gap: 7px; }
.round-trigger.is-busy { animation: savePulse 1.1s infinite ease-in-out; }
@keyframes savePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.theme-trigger-label { font-size: 0.55rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); }

.cmd-palette { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 15vh 0 0; border: 0; background: transparent; color: var(--text-bold); }
.cmd-palette[open] { display: flex; align-items: flex-start; justify-content: center; }
.cmd-palette::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(30px); }
.cmd-box { width: min(92vw, 520px); max-height: calc(85dvh - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; background: #0c0c0e; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9); transform: translateY(-30px) scale(0.95); transition: transform 0.5s var(--fluid-curve); }
.cmd-palette.is-open .cmd-box { transform: translateY(0) scale(1); }
.modal-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.modal-title { flex: 1; color: var(--text-bold); font-size: 0.9rem; font-weight: 800; letter-spacing: 1.5px; text-align: center; text-transform: uppercase; }
.cmd-close { flex: none; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text-bold); cursor: pointer; }
.cmd-close:hover { background: rgba(127, 127, 127, 0.15); }
.cmd-close:focus-visible, .round-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cmd-input { width: 100%; padding: 15px 16px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 14px; background: rgba(255, 255, 255, 0.035); color: #fff; font-family: var(--font-gurmukhi); font-size: 0.95rem; outline: none; }
.cmd-input:focus { border-color: #00e5ff; }
.cmd-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 48vh; margin-top: 14px; overflow-y: auto; }
.cmd-results > * { min-width: 0; }
.cmd-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.055); border-radius: 14px; background: rgba(255, 255, 255, 0.025); color: #fff; cursor: pointer; text-align: left; }
.cmd-result:hover, .cmd-result:focus-visible { border-color: currentColor; outline: none; }
.cmd-result-title { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.cmd-result-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-gurmukhi); font-size: 0.9rem; }
.cmd-result-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cmd-result-meta { flex: none; color: var(--text-dim); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
/* Bilingual search: grouped, slide-level results with context snippets. */
.cmd-input-row { position: relative; }
.cmd-hint { margin-top: 9px; color: var(--text-dim); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; text-align: center; }
.cmd-group { margin: 12px 2px 5px; color: var(--text-dim); font-size: 0.6rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.cmd-group:first-child { margin-top: 2px; }
.cmd-result-title strong { font-family: var(--font-gurmukhi); }
.cmd-result-snip { display: block; overflow: hidden; margin-top: 3px; color: var(--text-dim); font-family: var(--font-gurmukhi); font-size: 0.68rem; font-weight: 500; letter-spacing: 0; line-height: 1.75; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.cmd-result mark { padding: 0 2px; border-radius: 3px; background: rgba(0, 229, 255, 0.22); color: inherit; font-weight: 800; }
body[data-theme="CLASSIC"] .cmd-result mark { background: rgba(11, 86, 197, 0.16); }
.cmd-result-kind { flex: none; padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.8px; opacity: 0.75; text-transform: uppercase; }
.cmd-term-pa { font-family: var(--font-gurmukhi); line-height: 1.75; }
@media (max-width: 480px) {
  .cmd-palette { padding-top: 8vh; }
  .cmd-box { max-height: calc(92dvh - 16px); }
  .cmd-box { padding: 18px 14px; border-radius: 18px; }
  .cmd-results { max-height: 56vh; }
  .cmd-result { gap: 8px; padding: 10px 11px; }
  .cmd-result-kind { padding: 2px 6px; border: 0; font-size: 0.52rem; letter-spacing: 0.4px; }
}
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.share-tile { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; background: rgba(255, 255, 255, 0.025); color: #fff; cursor: pointer; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; transition: transform 0.3s var(--fluid-curve), border-color 0.3s var(--fluid-curve), background 0.3s var(--fluid-curve); }
.share-tile:hover, .share-tile:focus-visible { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); outline: none; }
.share-tile svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.toast-notify { position: fixed; right: 48px; bottom: max(90px, env(safe-area-inset-bottom)); z-index: 1000; max-width: min(460px, calc(100vw - 40px)); padding: 12px 22px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; background: #09090b; color: var(--text-bold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); font-family: var(--font-gurmukhi); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.4px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all 0.4s var(--fluid-curve); }
.toast-notify.show { opacity: 1; transform: translateY(0); }
.particle { position: absolute; z-index: 99; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; opacity: 0; }

/* ---------- CLASSIC (light) colorway — matches lecture deck legacy palette ---------- */
html:has(body[data-theme="CLASSIC"]) { background: #f8fbff; }
body[data-theme="CLASSIC"] { background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%); }
body[data-theme="CLASSIC"]::after { background: radial-gradient(circle at center, transparent 34%, rgba(11, 74, 168, 0.06) 100%); }
body[data-theme="CLASSIC"] .neural-mesh { background-image: radial-gradient(rgba(11, 86, 197, 0.9) 1px, transparent 1px); }
body[data-theme="CLASSIC"] .header-logo { background: linear-gradient(135deg, #182437 0%, #0b56c5 100%); -webkit-background-clip: text; background-clip: text; }
body[data-theme="CLASSIC"] .domain-router { background: rgba(255, 255, 255, 0.88); box-shadow: 0 10px 30px rgba(16, 42, 82, 0.12); }
body[data-theme="CLASSIC"] .domain-btn:hover, body[data-theme="CLASSIC"] .domain-btn:focus-visible { color: #0b56c5; }
body[data-theme="CLASSIC"] .domain-btn.active { background: rgba(11, 86, 197, 0.1); color: #0b56c5; box-shadow: none; }
body[data-theme="CLASSIC"] .header-divider { background: rgba(11, 74, 168, 0.2); }
body[data-theme="CLASSIC"] .trust-primary { color: var(--text-bold); }
body[data-theme="CLASSIC"] .hud-pill { border-color: rgba(11, 74, 168, 0.16); background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 20px rgba(16, 42, 82, 0.1); }
body[data-theme="CLASSIC"] .hud-pill:hover, body[data-theme="CLASSIC"] .hud-pill:focus-visible { background: #ffffff; border-color: rgba(11, 74, 168, 0.32); }
body[data-theme="CLASSIC"] .mode-placeholder { border-color: rgba(11, 74, 168, 0.14); background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(238, 244, 255, 0.97)); box-shadow: 0 22px 64px rgba(16, 42, 82, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.9); }
body[data-theme="CLASSIC"] .mode-placeholder-badge { text-shadow: none; }
body[data-theme="CLASSIC"] .mode-placeholder-status { color: var(--text-bold); }
body[data-theme="CLASSIC"] .mode-placeholder-status::before { background: #f26a21; box-shadow: 0 0 10px rgba(242, 106, 33, 0.55); }
body[data-theme="CLASSIC"] .mode-placeholder-cta { color: var(--text-bold); }
body[data-theme="CLASSIC"] .shard { border-color: rgba(11, 74, 168, 0.12); box-shadow: 0 22px 54px rgba(16, 42, 82, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.9); }
body[data-theme="CLASSIC"] .shard::before { background: linear-gradient(112deg, transparent 20%, rgba(11, 86, 197, 0.1) 48%, transparent 72%); }
body[data-theme="CLASSIC"] .shard-anchor.is-targeted .shard { border-color: rgba(11, 74, 168, 0.22); border-top-color: currentColor; background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%); box-shadow: 0 26px 60px rgba(16, 42, 82, 0.2), 0 0 34px -16px currentColor, inset 0 1px 2px rgba(255, 255, 255, 1); }
body[data-theme="CLASSIC"] .shard-anchor.is-targeted .pa-title { text-shadow: none; }
body[data-theme="CLASSIC"] .shard-anchor.is-active .shard { background: linear-gradient(180deg, #ffffff 0%, #e8f0fe 100%); box-shadow: 0 30px 70px rgba(16, 42, 82, 0.24), inset 0 2px 4px rgba(255, 255, 255, 1); }
body[data-theme="CLASSIC"] .shard-anchor.is-active .pa-title { text-shadow: none; }
body[data-theme="CLASSIC"] .svg-progress-container:hover, body[data-theme="CLASSIC"] .svg-progress-container:focus-visible { background: rgba(11, 86, 197, 0.08); }
body[data-theme="CLASSIC"] .svg-progress-container.done .prog-text { text-shadow: none; }
body[data-theme="CLASSIC"] .prog-ring .bg { stroke: rgba(11, 74, 168, 0.12); }
body[data-theme="CLASSIC"] .rune { border-color: rgba(11, 74, 168, 0.1); background: rgba(11, 86, 197, 0.055); }
body[data-theme="CLASSIC"] .rune.soon { color: #c2551a; }
body[data-theme="CLASSIC"] .btn-prime { border-color: rgba(11, 74, 168, 0.18); background: rgba(11, 86, 197, 0.06); }
body[data-theme="CLASSIC"] .btn-prime:hover, body[data-theme="CLASSIC"] .btn-prime:focus-visible { background: rgba(11, 86, 197, 0.12); }
body[data-theme="CLASSIC"] .round-trigger { border-color: rgba(11, 74, 168, 0.16); background: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 30px rgba(16, 42, 82, 0.14); }
body[data-theme="CLASSIC"] .round-trigger:hover, body[data-theme="CLASSIC"] .round-trigger:focus-visible { background: #ffffff; }
body[data-theme="CLASSIC"] .cmd-palette::backdrop { background: rgba(238, 244, 255, 0.72); }
body[data-theme="CLASSIC"] .cmd-box { border-color: rgba(11, 74, 168, 0.16); background: #ffffff; box-shadow: 0 40px 100px rgba(16, 42, 82, 0.28); }
body[data-theme="CLASSIC"] .modal-title { border-bottom-color: rgba(11, 74, 168, 0.12); }
body[data-theme="CLASSIC"] .cmd-input { border-color: rgba(11, 74, 168, 0.2); background: rgba(11, 86, 197, 0.045); color: var(--text-bold); }
body[data-theme="CLASSIC"] .cmd-input:focus { border-color: #0b56c5; }
body[data-theme="CLASSIC"] .cmd-input::placeholder { color: var(--text-dim); }
body[data-theme="CLASSIC"] .cmd-result { border-color: rgba(11, 74, 168, 0.12); background: rgba(11, 86, 197, 0.04); color: var(--text-bold); }
body[data-theme="CLASSIC"] .share-tile { border-color: rgba(11, 74, 168, 0.14); background: rgba(11, 86, 197, 0.04); }
body[data-theme="CLASSIC"] .share-tile:hover, body[data-theme="CLASSIC"] .share-tile:focus-visible { background: rgba(11, 86, 197, 0.09); border-color: rgba(11, 74, 168, 0.3); }
body[data-theme="CLASSIC"] .share-tile[data-share="system"] { color: #0b56c5 !important; }
body[data-theme="CLASSIC"] .toast-notify { border-color: rgba(11, 74, 168, 0.2); background: #ffffff; box-shadow: 0 10px 30px rgba(16, 42, 82, 0.2); }


@media (max-width: 1200px) {
  .web-utility-header { flex-direction: column; gap: 20px; }
  .header-left { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-right { position: absolute; top: max(24px, env(safe-area-inset-top)); right: 24px; }
}
@media (max-width: 768px) {
  :root { --radius: clamp(104px, 21vh, 154px); }
  .web-utility-header { padding: max(16px, env(safe-area-inset-top)) 16px 18px; }
  .header-left { gap: 22px; }
  .header-logo { max-width: 46vw; font-size: 0.92rem; letter-spacing: 1.7px; }
  .header-center { flex-direction: column; align-items: flex-start; gap: 8px; }
  .domain-router { padding: 3px; }
  .domain-btn { padding: 7px 11px; font-size: 0.6rem; }
  .subject-router, .mode-router { max-width: calc(100vw - 32px); }
  .mode-router { flex-wrap: wrap; }
  .subject-router .domain-btn, .mode-router .domain-btn { padding: 7px 9px; font-size: 0.54rem; }
  .header-divider, .trust-secondary { display: none; }
  .trust-primary { font-size: 0.78rem; letter-spacing: 1.2px; }
  .header-right { top: max(16px, env(safe-area-inset-top)); right: 16px; gap: 8px; }
  .hud-pill { min-height: 32px; padding: 7px 9px; font-size: 0.62rem; }
  .core-system { --orb-size: clamp(84px, 22vw, 108px); }
  .core-val { font-size: clamp(1.45rem, 7.4vw, 1.9rem); }
  .core-lbl { font-size: 0.56rem; }
  .shard { width: min(84vw, 304px); padding: 14px; border-radius: 18px; }
  .shard-anchor.is-active .shard { width: min(90vw, 326px); --shard-scale: 1.01 !important; }
  .pa-title { font-size: clamp(0.9rem, 3.2vw, 1rem); }
  .en-title { font-size: 0.62rem; -webkit-line-clamp: 3; line-clamp: 3; }
  .utility-hub { right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .round-trigger { width: 42px; height: 42px; }
  .round-trigger.theme-trigger { min-width: 42px; padding: 0 10px; }
  .theme-trigger-label { display: none; }
  .toast-notify { right: 16px; bottom: max(74px, env(safe-area-inset-bottom)); }
  .neural-mesh, .aura-bleed { animation: none; }
  .neural-mesh { opacity: 0.035; }
  .aura-bleed { opacity: 0.72; }
}
@media (pointer: coarse) and (min-width: 769px) {
  .neural-mesh, .aura-bleed { animation: none; }
  .neural-mesh { opacity: 0.035; }
  .aura-bleed { opacity: 0.72; }
}
@media (max-width: 400px) {
  .header-logo { max-width: 34vw; font-size: 0.82rem; letter-spacing: 1.1px; }
  .hud-pill { min-height: 30px; padding: 6px 8px; font-size: 0.56rem; }
}
@media (max-height: 700px) and (min-width: 769px) { :root { --radius: clamp(140px, 27vh, 220px); } .arena { padding-top: clamp(64px, 12vh, 96px); } .web-utility-header { padding-top: max(18px, env(safe-area-inset-top)); } }
@media (max-height: 500px) and (orientation: landscape) {
  .web-utility-header { padding: max(10px, env(safe-area-inset-top)) 16px 10px; gap: 8px; }
  .header-left { gap: 8px; }
  .header-brand .creator-credit, .header-trust, .header-divider { display: none; }
  .header-center { gap: 8px; }
  .lecture-navigation { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .mode-router { max-width: calc(100vw - 32px); }
  .mode-router .domain-btn { padding: 7px 8px; font-size: 0.58rem; }
  .header-right { top: max(10px, env(safe-area-inset-top)); }
}
@media (max-width: 768px) {
  .web-utility-header { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .web-utility-header .header-left { gap: 4px; }
  .web-utility-header .header-brand { flex-direction: row; align-items: center; gap: 8px; }
  .header-brand .creator-credit-compact { display: none; }
  .header-brand .mobile-about { display: inline-flex; min-width: 44px; min-height: 44px; font-size: 0.65rem; }
  .lecture-subjects { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px)); width: auto; padding: 8px; border-radius: 14px; }
  .lecture-subject-label { margin: 0 4px 5px; font-size: 0.57rem; }
  .lecture-subjects .subject-router { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lecture-subjects .domain-btn { font-size: 0.65rem; padding: 6px 4px; text-align: center; }
  .lecture-subjects .subject-btn small { display: none; }
  body:has(.lecture-subjects:not([hidden])) .toast-notify { bottom: max(165px, calc(env(safe-area-inset-bottom) + 155px)); }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .header-brand .creator-credit-compact { display: none; }
  .web-utility-header .header-brand { flex-direction: row; align-items: center; gap: 8px; }
  .header-brand .mobile-about { display: inline-flex; min-width: 44px; min-height: 44px; font-size: 0.65rem; }
  .header-left { gap: 8px; }
}
@media (min-width: 960px) and (max-width: 1200px) {
  .header-left { flex-direction: row; align-items: center; gap: 20px; }
}
@media (max-width: 520px) and (min-height: 501px) {
  .lecture-subjects { right: auto; width: calc(100vw - 160px); max-width: 248px; }
  .lecture-subjects .subject-router { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 521px) and (max-width: 768px) and (min-height: 501px) {
  .lecture-subjects { right: max(220px, env(safe-area-inset-right)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .header-brand .mobile-about { display: none; }
  .lecture-subjects { left: max(12px, env(safe-area-inset-left)); right: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: min(340px, calc(100vw - 340px)); padding: 6px; }
  .lecture-subject-label { display: none; }
  .lecture-subjects .subject-router { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lecture-subjects .domain-btn { text-align: center; font-size: 0.63rem; padding: 4px; }
  .lecture-subjects .subject-btn small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } .neural-mesh, .aura-bleed { animation: none !important; } }
