/* SourceLess Chain — Intellectual property of Alexandru Marius Stratulat and the SourceLess team. GitHub: alexccoin · Email: alex@strlabs.io · All rights reserved. No use without written consent. See LICENSE. */


/* ---------- Registered Custom Properties for Scroll-Fade Tabs ---------- */
@property --fade-start {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@property --fade-end {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

/* ---------- Balanced 22% Black Reading Scrim Over Live 3D / Tree World ---------- */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, .22);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ---------- Unified SourceLess Header Pill (.bar-shell) ---------- */
.bar-shell {
  --pad: clamp(16px, 3.6vw, 48px);
  --max: 1320px;
  --glass-sheen: linear-gradient(155deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .035) 38%, rgba(255, 255, 255, .01) 70%, rgba(167, 255, 82, .035) 100%);
  --glass-bevel: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 1px 0 0 rgba(255, 255, 255, .07), inset -1px 0 0 rgba(255, 255, 255, .07);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 6px;
  pointer-events: none;
}
.bar-top {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--pad));
  margin: 0 auto;
  min-height: 54px;
  padding: 6px 8px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  background: var(--glass-sheen), rgba(7, 11, 22, .80);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: var(--glass-bevel), 0 18px 44px -18px rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
  color: #FFFFFF;
  text-decoration: none;
  padding: 4px 2px;
}
.brand-word {
  width: 148px;
  height: auto;
  aspect-ratio: 1024 / 148;
  filter: drop-shadow(0 0 12px rgba(96, 81, 237, .32));
}
.brand-sep {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent);
}
.realm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(167, 255, 82, .40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  font: 400 11.5px/1 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .05em;
  color: #FFFFFF;
  white-space: nowrap;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A7FF52;
  box-shadow: 0 0 10px #A7FF52;
  animation: sl-pulse 2.4s ease-in-out infinite;
}
@keyframes sl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bar-burger {
  anchor-name: --bar-burger;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(167, 255, 82, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26);
  color: #FFFFFF;
  font: 400 11.5px/1 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .22s, background-color .22s, color .22s;
}
.bar-burger:hover,
.bar-burger[aria-expanded="true"] {
  border-color: #A7FF52;
  background: rgba(167, 255, 82, .14);
  color: #A7FF52;
}
.bar-burger-icon {
  position: relative;
  width: 16px;
  height: 12px;
  display: inline-block;
  flex: 0 0 auto;
}
.bar-burger-icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform .24s cubic-bezier(.34, 1.38, .64, 1), opacity .18s, top .24s cubic-bezier(.34, 1.38, .64, 1);
}
.bar-burger-icon i:nth-child(1) { top: 0; }
.bar-burger-icon i:nth-child(2) { top: 5.25px; }
.bar-burger-icon i:nth-child(3) { top: 10.5px; }
.bar-burger[aria-expanded="true"] .bar-burger-icon i:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.bar-burger[aria-expanded="true"] .bar-burger-icon i:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.bar-burger[aria-expanded="true"] .bar-burger-icon i:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

/* Mobile Popover Menu + Mandatory 45% Black Overlay */
.bar-menu {
  position: fixed;
  inset: auto;
  inset-block-start: 4.5rem;
  inset-block-start: anchor(--bar-burger bottom);
  inset-inline-end: max(12px, clamp(16px, 3.6vw, 48px));
  inline-size: min(calc(100dvw - 24px), 22rem);
  max-inline-size: calc(100dvw - 24px);
  block-size: fit-content;
  max-block-size: calc(100dvh - 5.5rem);
  margin: 10px 0 0;
  padding: 14px;
  overflow-y: auto;
  border-radius: 22px;
  background: var(--glass-sheen), rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: var(--glass-bevel), 0 28px 64px -16px rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  color: #FFFFFF;
}
.bar-menu[popover]:not(:is(:popover-open, .\:popover-open)) { display: none; }
.bar-menu[popover]:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.bar-menu::backdrop {
  background-color: rgba(0, 0, 0, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .bar-menu[popover] {
    transition: opacity .22s ease, translate .26s cubic-bezier(.34, 1.38, .64, 1), display .26s, overlay .26s;
    transition-behavior: allow-discrete;
  }
  .bar-menu[popover]:not(:is(:popover-open, .\:popover-open)) {
    opacity: 0;
    translate: 0 -8px;
  }
  @starting-style {
    .bar-menu[popover]:is(:popover-open, .\:popover-open) {
      opacity: 0;
      translate: 0 -8px;
    }
  }
  .bar-menu::backdrop {
    transition: background-color .24s ease, display .24s, overlay .24s;
    transition-behavior: allow-discrete;
  }
  .bar-menu:not(:is(:popover-open, .\:popover-open))::backdrop { background-color: rgba(0, 0, 0, 0); }
  @starting-style {
    .bar-menu:is(:popover-open, .\:popover-open)::backdrop { background-color: rgba(0, 0, 0, 0); }
  }
}
.bar-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #E2E8F0;
  font: 600 16px/1.2 "Rajdhani", "Archivo", system-ui, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 0 15px;
  border-radius: 13px;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.bar-menu a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .11);
}
.bar-menu a.bar-back {
  color: #A7FF52;
  background: rgba(167, 255, 82, .08);
  border: 1px solid rgba(167, 255, 82, .26);
}
.bar-menu a.bar-back:hover {
  background: rgba(167, 255, 82, .16);
}

/* Expanded inline desktop nav */
.bar-shell:not(.is-expanded) .bar-nav { margin-left: auto; }
.bar-shell.is-expanded .bar-burger { display: none; }
.bar-shell.is-expanded .bar-menu {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  inline-size: auto;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.bar-shell.is-expanded .bar-menu a {
  min-height: 36px;
  font-size: 14.5px;
  padding: 6px 11px;
  border-radius: 999px;
}
.bar-shell.is-measuring,
.bar-shell.is-measuring * {
  transition: none !important;
}

.bar-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.bar-tool-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #E2E8F0;
  font: 600 13.5px/1 "Rajdhani", "Archivo", system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color .22s, background-color .22s, color .22s, box-shadow .22s;
}
.bar-tool-btn:hover {
  color: #FFFFFF;
  border-color: rgba(167, 255, 82, .52);
  background: rgba(255, 255, 255, .12);
}
.bar-tool-btn[aria-pressed="true"],
.bar-tool-btn[aria-expanded="true"] {
  background: #A7FF52;
  border-color: #A7FF52;
  color: #030408;
  box-shadow: 0 0 18px rgba(167, 255, 82, .36);
}
.bar-tool-primary {
  border-color: rgba(167, 255, 82, .45);
  color: #A7FF52;
}

@media (max-width: 820px) {
  .brand-sep,
  .realm-pill { display: none; }
  .brand-word { width: 122px; }
  .bar-tool-btn { padding: 0 10px; font-size: 12px; min-height: 34px; }
}
@media (max-width: 440px) {
  .brand-word { width: 106px; }
  .bar-burger-label { display: none; }
  .bar-burger { padding: 0 10px; min-height: 34px; }
}

/* ---------- Sticky Part Navigator Pill Rail (.part-rail) ---------- */
.part-rail {
  --pad: clamp(16px, 3.6vw, 48px);
  --max: 1320px;
  position: sticky;
  top: 68px;
  z-index: 32;
  padding: 2px var(--pad) 8px;
  pointer-events: none;
}
.is-all-parts .part-rail {
  scroll-target-group: auto;
}
.part-rail-track {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--pad));
  margin: 0 auto;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)), rgba(7, 11, 22, .78);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 14px 32px -18px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  transition: --fade-start .2s ease, --fade-end .2s ease;
}
.part-rail-track::-webkit-scrollbar { display: none; }
.part-pill {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #CBD5E1;
  font: 600 13px/1 "Rajdhani", "Archivo", system-ui, sans-serif;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s;
}
.part-pill b {
  font: 400 11px/1 "Share Tech Mono", ui-monospace, monospace;
  color: var(--p-c, #66DCCE);
}
.part-pill:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .08);
}
.part-pill:is(:target-current, .target-current) {
  color: #FFFFFF;
  background: color-mix(in srgb, var(--p-c, #A7FF52) 18%, rgba(255, 255, 255, .08));
  border-color: color-mix(in srgb, var(--p-c, #A7FF52) 56%, rgba(255, 255, 255, .24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

/* ---------- Interactive Part / Act Deck Bar & Continuation Cards ---------- */
.part-deck-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px) 0 10px;
  position: relative;
  z-index: 3;
}
.part-deck-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.part-deck-kicker {
  font: 400 12px/1.3 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A7FF52;
  margin: 0;
}
.part-all-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #E2E8F0;
  font: 400 12px/1 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .22s, background-color .22s, color .22s;
}
.part-all-btn:hover {
  color: #FFFFFF;
  border-color: rgba(167, 255, 82, .55);
}
.part-all-btn[aria-pressed="true"] {
  background: rgba(167, 255, 82, .16);
  border-color: #A7FF52;
  color: #A7FF52;
}
.part-tablist {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)), rgba(7, 11, 22, .72);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 18px 40px -20px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
}
.part-tablist::-webkit-scrollbar { display: none; }
.part-tab {
  flex: none;
  scroll-snap-align: start;
  position: relative;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #CBD5E1;
  font: 600 14.5px/1 "Rajdhani", "Archivo", system-ui, sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .22s, background-color .22s, border-color .22s;
}
.part-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .06);
}
.part-tab-num {
  font: 400 11.5px/1 "Share Tech Mono", ui-monospace, monospace;
  color: var(--t-c, #A7FF52);
}
.part-tab-rng {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font: 400 10.5px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #94A3B8;
}
.part-tab[aria-selected="true"] {
  color: #FFFFFF;
  background: color-mix(in srgb, var(--t-c, #A7FF52) 15%, rgba(255, 255, 255, .07));
  border-color: color-mix(in srgb, var(--t-c, #A7FF52) 54%, rgba(255, 255, 255, .24));
}
.part-tab[aria-selected="true"] .part-tab-rng {
  color: #FFFFFF;
  border-color: color-mix(in srgb, var(--t-c, #A7FF52) 55%, transparent);
}
.part-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 14px 3px;
  border-block-end: 2.5px solid var(--t-c, #A7FF52);
  border-radius: 2px;
}

/* Keep [role="tabpanel"] completely unstyled so hidden="until-found" renders zero height */
.part-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.part-panel[hidden]:not([hidden="until-found"]) { display: none; }
.part-panel-inner { padding-bottom: 8px; }

.part-next-card {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 10px auto 30px;
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  border-radius: 22px;
  background:
    radial-gradient(360px circle at 92% 50%, color-mix(in srgb, var(--p-acc, #A7FF52) 18%, transparent), transparent 72%),
    linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)),
    rgba(8, 13, 25, .78);
  border: 1px solid color-mix(in srgb, var(--p-acc, #A7FF52) 42%, rgba(255, 255, 255, .20));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 20px 44px -22px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
}
.part-next-kicker {
  display: block;
  font: 400 11.5px/1.2 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p-acc, #A7FF52);
  margin-bottom: 5px;
}
.part-next-title {
  display: block;
  font: 700 clamp(17px, 1.55vw, 21px)/1.25 "Rajdhani", "Archivo", system-ui, sans-serif;
  color: #FFFFFF;
}
.part-next-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #A7FF52;
  border: 1px solid #A7FF52;
  color: #030408;
  font: 700 14.5px/1 "Rajdhani", "Archivo", system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(167, 255, 82, .34);
  transition: transform .2s, box-shadow .2s;
}
.part-next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(167, 255, 82, .52);
}

/* ---------- Sovereign Card Top Tab (.chap-tab) & Progressive Disclosures ---------- */
.chap-tab {
  position: relative;
  z-index: 3;
  min-height: 42px;
  padding: 7px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--acc, #A7FF52) 14%, rgba(255, 255, 255, .05)) 0%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .04) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font: 400 11.5px/1 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .05em;
  color: #E2E8F0;
}
.chap-tab::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--acc, #A7FF52) 0%, color-mix(in srgb, var(--acc, #A7FF52) 45%, #7658FF) 48%, transparent 92%);
  opacity: .92;
}
.chap-tab-left { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.chap-tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc, #A7FF52); box-shadow: 0 0 10px var(--acc, #A7FF52); flex: 0 0 auto; }
.chap-tab-part { color: var(--acc, #A7FF52); text-transform: uppercase; white-space: nowrap; }
.chap-tab-right { display: inline-flex; align-items: center; gap: 6px; }
.chap-nav-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #E2E8F0;
  font: 400 11px/1 "Share Tech Mono", ui-monospace, monospace;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chap-nav-btn:hover {
  color: var(--acc, #A7FF52);
  border-color: color-mix(in srgb, var(--acc, #A7FF52) 60%, rgba(255, 255, 255, .24));
  background: rgba(255, 255, 255, .11);
}
.chap-pos-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid color-mix(in srgb, var(--acc, #A7FF52) 44%, rgba(255, 255, 255, .18));
  color: var(--acc, #A7FF52);
  font-size: 10.5px;
  white-space: nowrap;
}

details.prose-more,
details.qa-deck {
  margin: 14px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}
details.prose-more > summary,
details.qa-deck > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  font: 400 12.5px/1.2 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  color: var(--acc, #A7FF52);
}
details.prose-more > summary::-webkit-details-marker,
details.qa-deck > summary::-webkit-details-marker { display: none; }
details.prose-more > summary::after,
details.qa-deck > summary::after {
  content: "+";
  font-size: 15px;
  line-height: 1;
  transition: transform .22s ease;
}
details.prose-more[open] > summary::after,
details.qa-deck[open] > summary::after {
  transform: rotate(45deg);
}
.prose-more-body,
.qa-deck-body {
  padding: 2px 16px 14px;
}

.gloss-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}
.gloss-search-input {
  flex: 1 1 260px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(6, 10, 21, .78);
  color: #FFFFFF;
  font: 400 13.5px/1 "Share Tech Mono", ui-monospace, monospace;
}
.gloss-search-input:focus-visible {
  outline: 2px solid #A7FF52;
  outline-offset: 2px;
}
.gloss-search-count {
  font: 400 12px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #94A3B8;
}

/* ---------- HEX Realm Tokens & Overrides ---------- */
:root {
  --void: #030408;
  --night: #040812;
  --meridian: #07101f;
  --panel: #091527;
  --line: rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .09);
  --blue: #8FB4FF;
  --blue-strong: #66DCCE;
  --lime: #A7FF52;
  --aqua: #66DCCE;
  --violet: #7658FF;
  --amber: #F2B350;
  --ink: #FFFFFF;
  --body: #E2E8F0;
  --dim: #CBD5E1;
  --label: #94A3B8;
  --hex-accent: #8FB4FF;
  scroll-padding-top: 124px;
}
html, body {
  background: var(--void);
  color: var(--ink);
}

/* CRITICAL: .page must NOT create a stacking context so section.ch::before (z:1),
 * .s3d-canvas (z:2), and .ch-text / figure.stage (z:3) interleave cleanly! */
.page {
  position: relative;
  z-index: auto !important;
  padding-left: clamp(16px, 3.6vw, 48px);
  padding-right: clamp(16px, 3.6vw, 48px);
}
.topbar { display: none !important; }

/* Compact now-reading readout inside SourceLess pill header */
.hex-now-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 136px;
  max-width: 200px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hex-now-pill .now-reading {
  font: 400 11px/1.15 "Share Tech Mono", ui-monospace, monospace;
  color: #CBD5E1;
}
.hex-now-pill .progress {
  height: 3px;
  border-top: 0;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  overflow: hidden;
}
.hex-now-pill .progress-fill {
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #A7FF52, #66DCCE, #8FB4FF);
}
@media (max-width: 1540px) {
  .hex-now-pill { display: none; }
}
.bar-shell,
.part-rail {
  --max: 1380px;
}

.sound .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound .bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] .bars i:nth-child(1) { height: 6px; }
.sound[aria-pressed="true"] .bars i:nth-child(2) { height: 12px; }
.sound[aria-pressed="true"] .bars i:nth-child(3) { height: 8px; }

/* Searchable Full-Screen Chapter Index Modal (#contents — Unified with PoE) */
#contents-open.bar-tool-primary {
  background: #A4F957;
  border-color: #A4F957;
  color: #030408;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(164, 249, 87, .34);
}
#contents-open.bar-tool-primary:hover {
  background: #bdff7a;
  color: #030408;
  box-shadow: 0 0 30px rgba(167, 255, 82, .55);
}
#contents-open .idx-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(3, 4, 8, .84);
  color: #A7FF52;
  font: 400 11px/1 "Share Tech Mono", ui-monospace, monospace;
}

.index {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: auto;
  transform: none !important;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 84px clamp(16px, 3.6vw, 48px) 48px;
}
.index[hidden] { display: none !important; }
.index-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, .06) 100%),
    rgba(6, 10, 20, .92);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 32px 72px -18px rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
}
.ix-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.ix-top h2 {
  font: 700 clamp(22px, 2.6vw, 30px)/1.1 "Orbitron", var(--font-display);
  color: #FFFFFF;
  margin: 0;
}
.ix-search {
  flex: 1 1 240px;
  max-width: 360px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(3, 5, 12, .72);
  color: #FFFFFF;
  font: 400 13px/1 "Share Tech Mono", ui-monospace, monospace;
  outline: none;
}
.ix-search:focus {
  border-color: #A7FF52;
  box-shadow: 0 0 0 3px rgba(167, 255, 82, .16);
}
.ix-close-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26);
  color: #FFFFFF;
  font: 700 14px/1 "Rajdhani", system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .2s, background-color .2s, color .2s;
}
.ix-close-btn:hover {
  border-color: rgba(167, 255, 82, .55);
  background: rgba(255, 255, 255, .12);
  color: #A7FF52;
}
.ix-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font: 400 12.5px/1.3 "Share Tech Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 14px 0 18px;
}
.ix-links a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #66DCCE;
  text-decoration: none;
}
.ix-links a:hover { color: #A7FF52; border-color: rgba(167, 255, 82, .45); }
.ix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
}
@media (max-width: 980px) {
  .ix-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .index { padding: 72px 12px 32px; }
  .ix-list { grid-template-columns: minmax(0, 1fr); }
}
.ix-list > li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .12);
}
.ix-list > li[hidden],
.ix-list li li[hidden] { display: none; }
.ix-part {
  font: 700 16px/1.2 "Rajdhani", system-ui, sans-serif;
  color: #FFFFFF;
  margin: 0 0 8px;
}
.ix-part b {
  font: 400 12.5px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #A7FF52;
  margin-right: 6px;
}
.ix-list ol { list-style: none; margin: 0; padding: 0; }
.ix-list li li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 6px;
  border-radius: 8px;
  color: #E2E8F0;
  text-decoration: none;
  font: 500 15px/1.35 "Rajdhani", system-ui, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, .08);
  transition: color .2s, background-color .2s;
}
.ix-list li li:first-child a { border-top: 0; }
.ix-list li li a .n,
.ix-list li li a span:first-child {
  font: 400 12px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #A7FF52;
  flex: none;
}
.ix-list li li a:hover,
.ix-list li li a[aria-current] {
  color: #A7FF52;
  background: rgba(167, 255, 82, .08);
}

/* Hero */
.hero {
  position: relative;
  z-index: 3;
}
html.is-immersive .hero { height: 185vh; }
html.is-immersive .hero-sticky {
  top: 112px;
  height: calc(100vh - 112px);
  padding: 28px 0 54px;
}
.hero-text {
  max-width: 760px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background:
    radial-gradient(480px circle at 12% 0%, rgba(143, 180, 255, .14), transparent 70%),
    linear-gradient(160deg, rgba(10, 16, 30, .62), rgba(5, 8, 18, .72));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 24px 60px -24px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}
.title {
  font-family: "Orbitron", var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 8.2vw, 112px);
  letter-spacing: -.03em;
  background: linear-gradient(95deg, #FFFFFF 0%, #E8FFC6 52%, #8FB4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title .logo-hero {
  width: clamp(160px, 18vw, 250px);
  margin-bottom: .35em;
}
.dim-line span { color: #A7FF52; }
.dim-line i, .dim-line::before, .dim-line::after { background: #A7FF52; }
.btn {
  border-radius: 999px;
  background: #A7FF52;
  border-color: #A7FF52;
  color: #030408;
  font: 700 15px/1 "Rajdhani", var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(167, 255, 82, .35);
}
.btn:hover {
  background: #bfff7a;
  color: #030408;
}

/* Overview Frosted Card + Filter Bar + /get/inside/-Style Door Cards */
.overview {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 24px auto 12px;
  padding: clamp(26px, 3.4vw, 44px) !important;
  border-radius: 26px;
  background:
    radial-gradient(620px circle at 16% 0%, rgba(167, 255, 82, .11), transparent 68%),
    linear-gradient(165deg, rgba(11, 17, 33, .68), rgba(6, 10, 20, .76)) !important;
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 26px 64px -24px rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.overview-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
}
.ov-filter-btn {
  appearance: none;
  cursor: pointer;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  color: #CBD5E1;
  font: 400 12px/1 "Share Tech Mono", ui-monospace, monospace;
  transition: border-color .2s, background-color .2s, color .2s;
}
.ov-filter-btn:hover { color: #FFFFFF; border-color: rgba(167, 255, 82, .45); }
.ov-filter-btn[aria-pressed="true"] {
  background: rgba(167, 255, 82, .16);
  border-color: #A7FF52;
  color: #A7FF52;
}
.cards {
  gap: 12px;
  background: transparent;
  border: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr));
}
.cards li[hidden] { display: none; }
.cards a {
  border-radius: 18px;
  padding: 16px 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 55%),
    rgba(8, 14, 28, .72);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.cards a:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 255, 82, .52);
  background: rgba(14, 24, 46, .84);
}
.cards .n { color: #A7FF52; }

/* Interlude Banners */
.interlude {
  position: relative;
  z-index: 3;
  min-height: 0 !important;
  max-width: 1280px;
  margin: 18px auto 22px;
  padding: 24px 30px !important;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--acc, #8FB4FF) 42%, rgba(255, 255, 255, .20)) !important;
  background:
    radial-gradient(480px circle at 88% 50%, color-mix(in srgb, var(--acc, #8FB4FF) 18%, transparent), transparent 72%),
    linear-gradient(160deg, rgba(10, 17, 32, .68), rgba(6, 10, 20, .74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 44px -22px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
}
.interlude h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin-bottom: 6px;
}
.interlude p { margin-bottom: 0; }

/* Sovereign Chapter Cards (section.ch)
 * CRITICAL: NO z-index and NO backdrop-filter on section.ch itself!
 * Frosted glass lives on section.ch::before (z-index: 1) so .s3d-canvas (z-index: 2)
 * paints cleanly above it and underneath .ch-text / figure.stage (z-index: 3)! */
section.ch {
  position: relative;
  z-index: auto;
  max-width: 1280px;
  margin: 0 auto 28px;
  padding: 0;
  border: 0;
  border-radius: 24px;
}
html.is-immersive section.ch::before,
section.ch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx, 18%) var(--my, 0%), color-mix(in srgb, var(--acc, #8FB4FF) 15%, rgba(255, 255, 255, .05)), transparent 70%),
    linear-gradient(165deg, rgba(11, 18, 34, .66) 0%, rgba(7, 11, 22, .72) 58%, rgba(5, 8, 17, .76) 100%);
  border: 1px solid color-mix(in srgb, var(--acc, #8FB4FF) 32%, rgba(255, 255, 255, .18));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--acc, #8FB4FF) 55%, rgba(255, 255, 255, .36)),
    0 24px 60px -24px rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  transition: border-color .3s ease;
}
section.ch:hover::before,
section.ch:focus-within::before {
  border-color: color-mix(in srgb, var(--acc, #8FB4FF) 56%, rgba(255, 255, 255, .28));
}
section.ch.has-chap-tab .ch-text > .fig { display: none; }

.ch-grid {
  padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.8vw, 36px) clamp(20px, 2.4vw, 28px);
  gap: clamp(22px, 3vw, 40px);
}
.ch-text {
  position: relative;
  z-index: 3;
  max-width: none;
}
.ch-text h2 {
  font-family: "Rajdhani", var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.7vw, 36px);
  letter-spacing: -.01em;
}
.lead {
  padding: 9px 14px;
  border-left: 2.5px solid var(--acc, #8FB4FF);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--acc, #8FB4FF) 8%, rgba(255, 255, 255, .02));
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  color: #E2E8F0;
}

/* Clickable compact step cards */
ol.steps > li {
  cursor: pointer;
  padding: 10px 12px 10px 44px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  transition: border-color .22s, background-color .22s, color .22s;
}
ol.steps > li::before { left: 12px; top: 10px; }
ol.steps > li:hover { border-color: rgba(143, 180, 255, .36); background: rgba(255, 255, 255, .05); }
ol.steps > li.is-on {
  border-color: var(--acc, #A7FF52);
  background: color-mix(in srgb, var(--acc, #A7FF52) 11%, rgba(255, 255, 255, .04));
  color: #FFFFFF;
}
ol.steps > li.is-on::before { color: var(--acc, #A7FF52); }

/* Stage & 3D Schematic Pedestal */
.stage {
  position: sticky;
  top: 132px;
  z-index: 3;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(6, 10, 21, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px -20px rgba(0, 0, 0, .75);
}
html.s3d-on:not(.s3d-static) .stage:has(.s3d) {
  background: transparent;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none;
}
html.s3d-on:not(.s3d-static) .stage:has(.s3d) > figcaption,
html.s3d-on:not(.s3d-static) .stage:has(.s3d) > .stage-box,
html.s3d-on:not(.s3d-static) .stage:has(.s3d) > .stage-note {
  background: #060A15;
}
.s3d {
  --slot-bg: #060A15;
  --plate: rgba(6, 10, 21, .90);
}
.ph-cap { background: #060A15; }

/* Closing Card */
.closing {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 12px auto 48px;
  padding: clamp(28px, 3.6vw, 46px) !important;
  border-radius: 26px;
  background:
    radial-gradient(580px circle at 85% 15%, rgba(167, 255, 82, .12), transparent 70%),
    linear-gradient(165deg, rgba(10, 16, 30, .68), rgba(5, 8, 17, .78)) !important;
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 24px 60px -24px rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
}

@media (max-width: 980px) {
  .stage,
  .ch-text > .stage {
    position: relative !important;
    top: 0 !important;
    order: 0;
    margin: 18px 0 22px;
    z-index: 3;
  }
  .s3d {
    height: clamp(255px, 36vh, 320px);
  }
}
@media (max-width: 560px) {
  .s3d {
    --s3d-fs: 10.5px;
    --s3d-lw: min(172px, 48vw);
    --s3d-pw: min(268px, 78vw);
  }
  .s3d-label .s3d-tx {
    white-space: pre-wrap;
    padding: 2px 6px;
  }
  .s3d-label.k-panel .s3d-tx,
  .s3d-label.k-note .s3d-tx {
    max-width: min(268px, 78vw);
    white-space: pre-wrap;
  }
  .s3d-label.k-title .s3d-tx {
    font-size: 12.5px;
  }
}
@media (max-width: 900px) {
  html, :root { scroll-padding-top: 76px; }
  .part-rail,
  #deeper-toggle,
  .hex-now-pill,
  #sound-toggle,
  .sound {
    display: none !important;
  }
  .bar-shell { padding: max(10px, env(safe-area-inset-top)) 12px 6px; }
  .bar-top {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 7px 9px 7px 14px;
    min-height: 50px;
  }
  .brand-sep,
  .realm-pill { display: none !important; }
  .brand-word { width: 114px; }
  .sound .sound-lbl { display: none !important; }
  #sound-toggle.bar-tool-btn {
    min-height: 36px;
    height: 36px;
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .bar-burger {
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    gap: 7px;
    font-size: 11.5px;
  }
  .bar-tool-btn {
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    gap: 6px;
  }
  .hero,
  html.is-immersive .hero {
    height: auto !important;
    min-height: 0 !important;
  }
  .hero-sticky,
  html.is-immersive .hero-sticky {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding: 10px 0 24px !important;
  }
  .hero-text {
    padding: 22px 18px;
  }
}
@media (max-width: 760px) {
  .ch-grid { padding: 18px 16px 20px; }
  .chap-tab { padding: 7px 14px; }
}
@media (max-width: 480px) {
  .brand-word { width: 102px; }
  .bar-burger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .bar-burger { width: 36px; min-width: 36px; padding: 0; }
}

/* ---------- Unified Menu, Pill Rail, Tablist & Button Centering ---------- */
.bar-shell.is-expanded .bar-nav {
  flex: 1 1 auto;
  justify-content: center;
}
.bar-shell.is-expanded .bar-menu {
  justify-content: center;
  margin-inline: auto;
}
.bar-menu[popover] a,
.bar-menu a,
.bar-burger,
.bar-tool-btn,
.tb-btn,
.part-pill,
.part-tab,
.part-all-btn,
.part-next-btn,
.ov-filter-btn,
.btn,
.ctl,
.mchip,
.wtab,
.chap-nav-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.part-rail-track {
  width: fit-content;
  max-width: min(100%, calc(var(--max) - 2 * var(--pad)));
  margin-inline: auto;
}
.part-tablist,
.overview-filters {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
}
.part-rail-track > :first-child,
.part-tablist > :first-child,
.overview-filters > :first-child {
  margin-inline-start: auto;
}
.part-rail-track > :last-child,
.part-tablist > :last-child,
.overview-filters > :last-child {
  margin-inline-end: auto;
}
.part-deck-head,
.ctl-row,
.wtabs,
.back {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  text-align: center;
}
@media (max-width: 760px) {
  .intro-actions,
  .part-next-card {
    justify-content: center;
    text-align: center;
  }
}


/* ---------- Mobile Minimal Ambient Animation (Replaces Heavy Background WebGL on Mobile) ---------- */
html.is-mobile-minimal #stage {
  display: none !important;
}
html.is-mobile-minimal .hero {
  height: auto !important;
}
html.is-mobile-minimal .hero-sticky {
  position: relative !important;
  top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 20px 0 28px !important;
}
html.is-mobile-minimal body::after {
  content: "";
  position: fixed;
  inset: -12% -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46vw 46vw at 76% 18%, rgba(96, 81, 237, .22), transparent 70%),
    radial-gradient(42vw 42vw at 22% 62%, rgba(167, 255, 82, .11), transparent 72%),
    radial-gradient(38vw 38vw at 68% 82%, rgba(102, 220, 206, .10), transparent 70%);
  will-change: transform, opacity;
  animation: sl-mobile-aurora 14s ease-in-out infinite alternate;
}
@keyframes sl-mobile-aurora {
  0% { transform: translate3d(-2%, -1.5%, 0) scale(1); opacity: .78; }
  100% { transform: translate3d(2%, 2%, 0) scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html.is-mobile-minimal body::after { animation: none !important; }
}
