:root {
  color-scheme: dark;
  --route-panel-bg-image: none;
  --route-panel-fit-width: 100%;
  --route-panel-bg-size: var(--route-panel-fit-width) auto;
  --route-panel-bg-position: center top;
  --bg: #0a1620;
  --bg-soft: #13232f;
  --surface: rgba(17, 30, 40, 0.78);
  --surface-strong: rgba(10, 18, 26, 0.9);
  --line: rgba(162, 195, 209, 0.2);
  --line-strong: rgba(225, 242, 248, 0.32);
  --text: #eff6fb;
  --muted: #adc0cb;
  --accent: #88dcff;
  --accent-2: #b8e9a4;
  --danger: #ff8a95;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --shell-width: 430px;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font-ui: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Chakra Petch", var(--font-ui);
  --font-mystic: var(--font-ui);
  --font-voice: "Nanum Gothic Coding", "D2Coding", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 16%, rgba(101, 198, 204, 0.18), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(93, 177, 141, 0.1), transparent 26%),
    linear-gradient(180deg, #0c1620 0%, #071017 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

body {
  overflow-x: hidden;
}

body.route-variant-a,
body.route-variant-b {
  --route-panel-bg-size: 100% auto;
  --route-panel-bg-position: center top;
}

body.route-variant-a {
  --route-panel-bg-image:
    linear-gradient(180deg, rgba(3, 7, 11, 0.2), rgba(3, 7, 11, 0.76)),
    radial-gradient(circle at 50% 20%, rgba(134, 215, 189, 0.12), transparent 30%),
    url("./a-route-bg.png");
}

body.route-variant-b {
  --route-panel-bg-image:
    linear-gradient(180deg, rgba(248, 252, 255, 0.26), rgba(214, 233, 248, 0.52)),
    radial-gradient(circle at 50% 14%, rgba(211, 241, 255, 0.46), transparent 24%),
    url("./b-route-bg.png");
}

body,
p,
h1,
h2,
h3,
span,
strong,
button,
label,
li,
input {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  padding: 0 0 env(safe-area-inset-bottom);
}

.scene-transition {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at center, rgba(136, 217, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.2), rgba(3, 6, 12, 0.86));
  backdrop-filter: blur(4px);
  transition: opacity 520ms var(--ease);
}

.scene-transition.is-active {
  opacity: 1;
  visibility: visible;
}

.scene-transition-ring,
.scene-transition-beam {
  position: absolute;
}

.scene-transition-ring {
  width: 44vw;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(126, 215, 255, 0.2);
  box-shadow: 0 0 64px rgba(126, 215, 255, 0.08);
  animation: veilPulse 1.1s ease-in-out infinite;
}

.scene-transition-ring-alt {
  width: 66vw;
  max-width: 500px;
  border-color: rgba(212, 255, 117, 0.14);
  animation-duration: 1.8s;
}

.scene-transition-beam {
  width: 82vw;
  max-width: 620px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  filter: blur(0.5px);
  animation: veilScan 1.1s linear infinite;
}

.ambient-grid,
.ambient-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(180, 209, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 209, 235, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 100%);
}

.ambient-noise {
  opacity: 0.08;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 22%, transparent 78%, rgba(255,255,255,0.02)),
    radial-gradient(circle at 50% 50%, rgba(126, 215, 255, 0.05), transparent 56%);
}

.app-frame {
  position: relative;
  z-index: 1;
  width: min(100%, var(--shell-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 12px 18px;
}

.top-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

body:not(.scene-intro-active) .top-rail {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

#topRail.is-dissolving {
  animation: introRailBreak 920ms cubic-bezier(0.2, 0.74, 0.12, 1) both;
}

#topRail.is-dissolving #railKicker,
#topRail.is-dissolving #soundToggle {
  animation: introRailShard 880ms cubic-bezier(0.2, 0.74, 0.12, 1) both;
}

#topRail.is-dissolving #soundToggle {
  animation-delay: 80ms;
}

#topRail.is-destroyed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.rail-kicker,
.eyebrow,
.meta-label,
.status-badge,
.future-label,
.detail-label,
.question-kicker,
.result-type,
.result-code,
.panel-copy,
.field-label,
.form-hint {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-kicker,
.eyebrow,
.meta-label,
.status-badge,
.future-label,
.detail-label,
.result-code,
.question-kicker {
  color: var(--muted);
  font-size: 0.74rem;
}

.rail-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene {
  display: none;
  min-height: calc(100svh - 72px);
}

.scene-active {
  display: block;
  animation: sceneFade 760ms cubic-bezier(0.15, 0.8, 0.12, 1);
}

.scene-panel {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 88px);
  height: calc(100svh - 88px);
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(18, 31, 41, 0.94), rgba(11, 19, 28, 0.92)),
    linear-gradient(120deg, rgba(136, 220, 255, 0.08), transparent 42%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scene-panel > * {
  position: relative;
  z-index: 1;
}

body.route-variant-a .scene-panel::after,
body.route-variant-b .scene-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--route-panel-bg-image);
  background-position: var(--route-panel-bg-position);
  background-repeat: no-repeat;
  background-size: var(--route-panel-bg-size);
  opacity: 0.94;
}

body.route-variant-b .scene-panel::after {
  opacity: 0.82;
  mix-blend-mode: screen;
}

.scene-panel-result {
  height: auto;
  min-height: calc(100svh - 88px);
}

.scene-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: calc(var(--radius-xl) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.scene-panel-hero {
  display: grid;
  align-content: end;
  gap: 20px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 22%, rgba(123, 218, 226, 0.18), transparent 24%),
    radial-gradient(circle at 52% 70%, rgba(125, 184, 142, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(10, 21, 29, 0.98), rgba(8, 14, 21, 0.98));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 336px);
  margin: 0 auto 6px;
  text-align: center;
}

.hero-title,
.panel-title,
.result-title {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

.hero-title {
  font-size: clamp(2.06rem, 7.3vw, 3.28rem);
  max-width: 7.2ch;
  margin-inline: auto;
  text-wrap: balance;
  letter-spacing: -0.03em;
}

.hero-note {
  margin: 10px auto 0;
  max-width: 29ch;
  color: rgba(223, 238, 244, 0.72);
  font-size: 0.76rem;
  line-height: 1.5;
}

.hero-lead,
.panel-copy,
.question-copy,
.result-summary,
.future-slot p,
.detail-block p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-lead {
  white-space: pre-line;
}

.hero-actions,
.form-actions,
.result-actions {
  display: grid;
  gap: 12px;
}

.hero-actions {
  gap: 10px;
}

.hero-actions.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-actions.is-hidden .hero-cta {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  filter: blur(10px) saturate(0.5);
}

.hero-actions.is-visible .hero-cta {
  pointer-events: auto;
}

.cta {
  position: relative;
  width: 100%;
  padding: 16px 15px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
}

.cta-primary {
  background: linear-gradient(180deg, #f4fbff 0%, #bfdfff 100%);
  color: #04111e;
  box-shadow: 0 18px 40px rgba(126, 215, 255, 0.2);
}

.cta-secondary,
.cta-tertiary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.hero-cta {
  isolation: isolate;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 14px 16px 15px;
  text-align: left;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(12, 20, 28, 0.94), rgba(16, 25, 33, 0.9)),
    radial-gradient(circle at top right, rgba(136, 220, 255, 0.1), transparent 38%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 14px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  filter: blur(10px) saturate(0.5);
}

.hero-cta::before,
.hero-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-cta .hero-cta-label,
.hero-cta .hero-cta-title,
.hero-cta .hero-cta-meta {
  transition:
    transform 520ms var(--ease),
    opacity 520ms var(--ease);
}

.hero-cta .hero-cta-label,
.hero-cta .hero-cta-meta {
  opacity: 0;
  transform: translateY(10px);
}

.hero-cta .hero-cta-title {
  opacity: 0;
  transform: translateY(14px);
}

.hero-cta::before {
  inset: 1px;
  border-radius: 21px;
  border: 1px solid rgba(255,255,255,0.04);
}

.hero-cta::after {
  inset: auto -20% 12px auto;
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 215, 255, 0.42), transparent);
  transform: rotate(-22deg);
  opacity: 0.8;
}

.hero-cta-label,
.hero-cta-meta {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-cta-label {
  font-size: 0.66rem;
  color: rgba(171, 218, 232, 0.76);
}

.hero-cta-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: #f4fbff;
}

.hero-cta-meta {
  font-size: 0.6rem;
  color: rgba(208, 228, 245, 0.48);
}

.hero-cta-primary {
  background:
    linear-gradient(180deg, rgba(241, 250, 248, 0.98), rgba(193, 224, 214, 0.94)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.84), transparent 42%);
  color: #0b1820;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.48),
    0 18px 34px rgba(113, 191, 176, 0.18),
    0 0 28px rgba(113, 191, 176, 0.09);
}

.hero-cta-primary .hero-cta-label,
.hero-cta-primary .hero-cta-meta {
  color: rgba(11, 24, 32, 0.58);
}

.hero-cta-primary .hero-cta-title {
  color: #0b1820;
}

.hero-cta-secondary {
  background:
    linear-gradient(180deg, rgba(13, 21, 28, 0.98), rgba(12, 19, 27, 0.94)),
    radial-gradient(circle at top right, rgba(184, 233, 164, 0.12), transparent 38%);
  border-color: rgba(184, 233, 164, 0.2);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.hero-cta-primary:hover,
.hero-cta-primary:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.58),
    0 24px 54px rgba(126, 215, 255, 0.28),
    0 0 36px rgba(126, 215, 255, 0.16);
}

.hero-cta.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
  animation: heroCtaWake 820ms cubic-bezier(0.16, 0.86, 0.12, 1) both;
}

.hero-cta.is-revealed .hero-cta-label,
.hero-cta.is-revealed .hero-cta-title,
.hero-cta.is-revealed .hero-cta-meta {
  opacity: 1;
  transform: translateY(0);
}

.hero-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  text-align: left;
}

.hero-meta.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.hero-meta > div {
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5, 11, 19, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  filter: blur(8px) saturate(0.55);
}

.hero-meta.is-visible > div.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
  animation: heroMetaWake 720ms cubic-bezier(0.16, 0.86, 0.12, 1) both;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.96;
}

.coord-ring,
.orb-core,
.rail-cluster,
.hero-scanline,
.question-orb,
.question-rails,
.loading-orb,
.loading-rail,
.loading-beam,
.result-orb-hero {
  position: absolute;
}

.coord-ring {
  border-radius: 50%;
  border: 1px solid rgba(126, 215, 255, 0.18);
  animation: spinSlow 18s linear infinite;
}

.coord-ring-1 {
  width: 396px;
  height: 396px;
  right: 12px;
  top: 78px;
}

.coord-ring-2 {
  width: 246px;
  height: 246px;
  right: 88px;
  top: 160px;
  animation-direction: reverse;
}

.coord-ring-3 {
  width: 480px;
  height: 480px;
  right: -18px;
  top: 18px;
}

.orb-core,
.loading-orb,
.question-orb,
.result-orb-hero {
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(206, 237, 255, 0.52) 18%, rgba(86, 193, 255, 0.34) 52%, rgba(23, 67, 102, 0.7) 74%, rgba(8, 17, 27, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 44px rgba(121, 215, 255, 0.35),
    0 18px 34px rgba(0, 0, 0, 0.45);
}

.orb-core {
  right: 88px;
  top: 208px;
  width: 206px;
  height: 206px;
  animation: floatOrb 5.4s ease-in-out infinite;
}

.orb-glow,
.orb-shell,
.orb-inscription {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.orb-shell {
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.orb-glow {
  inset: -16px;
  background: radial-gradient(circle, rgba(126, 215, 255, 0.22), transparent 70%);
  filter: blur(4px);
}

.orb-inscription {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(237, 249, 255, 0.78);
  letter-spacing: 0.16em;
}

.rail-cluster {
  width: 320px;
  height: 118px;
  right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  transform: rotate(-18deg);
  box-shadow: inset 0 0 0 1px rgba(126, 215, 255, 0.06);
}

.rail-cluster::before,
.rail-cluster::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  border: 1px solid rgba(126, 215, 255, 0.16);
}

.rail-cluster::after {
  inset: 36px;
}

.rail-cluster-top {
  top: 138px;
}

.rail-cluster-bottom {
  top: 430px;
  right: 72px;
  transform: rotate(4deg);
}

.hero-scanline {
  inset: auto 0 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: scanDown 5s linear infinite;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head-center {
  text-align: center;
}

.panel-title {
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  max-width: 9ch;
}

.scene-panel-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.scene-panel-form .panel-head,
.scene-panel-form .issuance-form {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.issuance-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sequence-node {
  position: relative;
  transition:
    transform 360ms var(--ease),
    opacity 360ms var(--ease),
    filter 420ms var(--ease),
    box-shadow 360ms var(--ease),
    border-color 360ms var(--ease);
}

.sequence-node::before,
.sequence-node::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition:
    opacity 360ms var(--ease),
    transform 420ms var(--ease),
    backdrop-filter 360ms var(--ease),
    background 360ms var(--ease);
}

.sequence-node::before {
  inset: 0;
  border-radius: inherit;
  display: none;
}

.sequence-node::after {
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 241, 252, 0.62);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 14, 23, 0.52);
  opacity: 0;
}

.sequence-node > * {
  transition:
    filter 420ms var(--ease),
    transform 420ms var(--ease),
    opacity 320ms var(--ease);
}

.sequence-node.is-active {
  transform: translateY(0);
}

.sequence-node.is-active::before {
  opacity: 0.08;
  transform: scale(0.994);
  background: linear-gradient(180deg, rgba(136, 220, 255, 0.05), rgba(136, 220, 255, 0.02));
}

.sequence-node.is-active > * {
  filter: none;
  transform: none;
  opacity: 1;
}

.sequence-node:focus-within::before {
  opacity: 0.18;
  backdrop-filter: blur(5px);
  transform: scale(0.992);
}

.sequence-node:focus-within > * {
  filter: none;
  transform: none;
  opacity: 1;
}

.sequence-node:focus-within::after {
  opacity: 0.44;
}

.sequence-node.is-completed::before {
  opacity: 0.1;
  backdrop-filter: none;
}

.sequence-node.is-completed > * {
  filter: none;
  transform: none;
  opacity: 1;
}

.sequence-node.is-completed::before {
  background:
    linear-gradient(180deg, rgba(184, 233, 164, 0.05), rgba(184, 233, 164, 0.02)),
    linear-gradient(120deg, rgba(136, 220, 255, 0.04), transparent 40%);
}

.sequence-node.is-activating {
  animation: nodeLift 520ms var(--ease);
}

.sequence-node.is-sealing {
  animation: nodeSeal 560ms var(--ease);
}

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

.oracle-field {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 13px;
  border-radius: 24px;
  border: 1px solid rgba(136, 220, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 20, 28, 0.94), rgba(17, 26, 34, 0.88)),
    radial-gradient(circle at top left, rgba(136, 220, 255, 0.08), transparent 34%);
  overflow: hidden;
}

.oracle-field::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.oracle-field::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -18%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(126, 215, 255, 0.24), transparent);
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}

.field-label {
  color: #dfeeff;
  font-size: 0.78rem;
}

.field-meta {
  color: rgba(126, 215, 255, 0.66);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.oracle-input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(126, 215, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(8, 15, 24, 0.96), rgba(18, 28, 42, 0.7)),
    radial-gradient(circle at 10% 50%, rgba(126, 215, 255, 0.08), transparent 26%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.oracle-input-prefix {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: rgba(126, 215, 255, 0.74);
}

.oracle-input-shell input {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
  font-size: 1.02rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.name-seal-button {
  flex: 0 0 auto;
  display: grid;
  gap: 1px;
  min-width: 88px;
  padding: 10px 12px 9px;
  border-radius: 16px;
  border: 1px solid rgba(126, 215, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.98), rgba(18, 28, 44, 0.92)),
    radial-gradient(circle at top, rgba(126, 215, 255, 0.1), transparent 48%);
  color: #ecf7ff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    filter 220ms var(--ease),
    opacity 220ms var(--ease);
}

.name-seal-button-kicker,
.name-seal-button-label {
  display: block;
  text-align: left;
}

.name-seal-button-kicker {
  font-family: var(--font-display);
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  color: rgba(126, 215, 255, 0.62);
}

.name-seal-button-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: none;
}

.name-seal-button.is-armed {
  border-color: rgba(126, 215, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(126, 215, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(126, 215, 255, 0.1);
}

.name-seal-button:hover,
.name-seal-button:focus-visible,
.name-seal-button.is-armed:hover,
.name-seal-button.is-armed:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(212, 255, 117, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(212, 255, 117, 0.08),
    0 14px 26px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(212, 255, 117, 0.09);
}

.name-seal-button.is-confirmed {
  border-color: rgba(212, 255, 117, 0.44);
  background:
    linear-gradient(180deg, rgba(18, 32, 26, 0.98), rgba(11, 22, 21, 0.94)),
    radial-gradient(circle at top, rgba(212, 255, 117, 0.14), transparent 46%);
  box-shadow:
    inset 0 0 0 1px rgba(212, 255, 117, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(212, 255, 117, 0.09);
}

.name-seal-button.is-confirmed .name-seal-button-kicker {
  color: rgba(212, 255, 117, 0.78);
}

.oracle-input-shell input::placeholder {
  color: rgba(221, 235, 245, 0.34);
}

.oracle-field:focus-within {
  border-color: rgba(126, 215, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(126, 215, 255, 0.2), 0 0 32px rgba(126, 215, 255, 0.08);
}

.oracle-field.is-signed,
.oracle-field.is-shifted {
  border-color: rgba(212, 255, 117, 0.34);
  box-shadow:
    0 0 0 1px rgba(212,255,117,0.08),
    0 0 28px rgba(212,255,117,0.07),
    inset 0 0 26px rgba(126, 215, 255, 0.04);
}

.oracle-field.is-signed::after {
  opacity: 1;
  animation: fieldScan 620ms var(--ease) forwards;
}

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

.blood-button,
.stepper-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 215, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.96), rgba(14, 20, 31, 0.92)),
    radial-gradient(circle at top, rgba(126, 215, 255, 0.1), transparent 40%);
  color: #eaf5ff;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease);
}

.blood-button {
  min-height: 48px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.14em;
}

.blood-button:hover,
.blood-button:focus-visible,
.blood-button.is-selected {
  transform: translateY(-1px);
  border-color: rgba(212, 255, 117, 0.44);
  box-shadow:
    0 0 0 1px rgba(212, 255, 117, 0.12),
    inset 0 0 26px rgba(212, 255, 117, 0.08),
    0 14px 24px rgba(0, 0, 0, 0.26);
  background:
    linear-gradient(180deg, rgba(20, 33, 28, 0.96), rgba(12, 20, 22, 0.92)),
    radial-gradient(circle at top, rgba(212, 255, 117, 0.16), transparent 42%);
}

.stepper-shell {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: stretch;
  gap: 10px;
}

.stepper-button {
  min-height: 56px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}

.stepper-button:hover,
.stepper-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 215, 255, 0.5);
  box-shadow: inset 0 0 24px rgba(126, 215, 255, 0.12);
}

.stepper-value-wrap {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 20px;
  border: 1px solid rgba(126, 215, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 16, 26, 0.98), rgba(15, 24, 36, 0.92)),
    radial-gradient(circle at center, rgba(126, 215, 255, 0.08), transparent 38%);
}

.stepper-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.12em;
  color: #f1f8ff;
}

.stepper-unit {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: rgba(126, 215, 255, 0.66);
  letter-spacing: 0.16em;
}

@media (min-width: 861px) {
  .oracle-field-stepper .field-meta {
    display: none;
  }

  .scene-panel-form .stepper-unit {
    display: none;
  }
}

input[type="hidden"] {
  display: none;
}

.form-hint,
.form-error {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-footer {
  display: grid;
  gap: 10px;
  padding: 12px 0 0;
  border-radius: 24px;
}

.form-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.form-error {
  color: var(--danger);
}

.scene-panel-question {
  display: grid;
  align-content: start;
  gap: 10px;
}

.progress-head {
  display: grid;
  gap: 6px;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.progress-shell {
  height: 10px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #d8f1ff);
  transition: width 280ms var(--ease);
}

.question-card {
  position: relative;
  min-height: 392px;
  height: auto;
  padding: 16px 16px 108px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(136, 220, 255, 0.12);
  background:
    radial-gradient(circle at 82% 18%, rgba(136, 220, 255, 0.1), transparent 26%),
    radial-gradient(circle at 54% -8%, rgba(184, 233, 164, 0.05), transparent 32%),
    linear-gradient(180deg, rgb(10, 18, 29), rgb(12, 22, 33));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 24px 54px rgba(0, 0, 0, 0.32);
}

.question-title {
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.34rem, 5.5vw, 1.84rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: #f4fbff;
  text-shadow: 0 0 14px rgba(136, 220, 255, 0.08);
  min-height: 2.52em;
  padding-bottom: 0.08em;
}

.question-copy {
  margin-top: 10px;
  max-width: 29ch;
  min-height: 3.7em;
  font-size: 0.86rem;
  line-height: 1.64;
  color: rgba(230, 241, 252, 0.84);
  text-shadow: none;
  padding-bottom: 0.08em;
}

.question-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  color: rgba(170, 218, 232, 0.78);
  min-height: 1.2em;
}

.question-whisper {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(174, 197, 220, 0.42);
}

.question-typed::after {
  content: "";
  display: inline-block;
  width: 0.56em;
  height: 1px;
  margin-left: 0.14em;
  vertical-align: middle;
  background: rgba(182, 234, 255, 0.72);
  box-shadow: 0 0 12px rgba(126, 215, 255, 0.4);
  animation: blinkCursor 1s steps(1, end) infinite;
}

.question-typed.is-complete::after {
  animation: none;
  opacity: 0;
  width: 0;
  margin-left: 0;
}

.type-line::after {
  content: "";
  display: inline-block;
  width: 0.56em;
  height: 1px;
  margin-left: 0.14em;
  vertical-align: middle;
  background: rgba(182, 234, 255, 0.72);
  box-shadow: 0 0 12px rgba(126, 215, 255, 0.4);
  animation: blinkCursor 1s steps(1, end) infinite;
}

.type-line.is-complete::after {
  animation: none;
  opacity: 0;
  width: 0;
  margin-left: 0;
}

.goodbrother-voice {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: none;
}

#introTitle.goodbrother-voice,
#introLead.goodbrother-voice,
#questionKicker.goodbrother-voice,
#questionTitle.goodbrother-voice,
#questionCopy.goodbrother-voice,
#videoPanelTitle.goodbrother-voice,
#videoCloseButton.goodbrother-voice {
  font-family: var(--font-ui) !important;
}

#questionKicker.goodbrother-voice,
#videoPanelTitle.goodbrother-voice,
#videoCloseButton.goodbrother-voice {
  letter-spacing: 0.02em;
}

#introTitle.goodbrother-voice,
#questionTitle.goodbrother-voice {
  letter-spacing: -0.03em;
}

#introEyebrow {
  transition: opacity 320ms var(--ease), filter 320ms var(--ease), transform 320ms var(--ease);
}

#introEyebrow.is-dissolving {
  animation: introEyebrowShatter 880ms cubic-bezier(0.2, 0.74, 0.12, 1) both;
}

#introEyebrow.is-destroyed {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(-8px) scale(0.98);
}

#introLead.goodbrother-voice,
#questionCopy.goodbrother-voice {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.question-visual {
  inset: auto 0 0;
  height: 104px;
  pointer-events: none;
}

.question-orb {
  width: 96px;
  height: 96px;
  right: var(--question-orb-right, 18px);
  bottom: var(--question-orb-bottom, 18px);
  animation: floatOrb 4.2s ease-in-out infinite;
  filter: saturate(0.72) brightness(1.06);
  pointer-events: none;
  will-change: transform;
}

.question-rails {
  inset: auto var(--question-rails-right, -10px) var(--question-rails-bottom, 28px) auto;
  width: 212px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(126, 215, 255, 0.18);
  transform: rotate(var(--question-rails-rotate, -12deg));
  will-change: transform;
}

.question-rails::before,
.question-rails::after {
  content: "";
  position: absolute;
}

.question-rails::before {
  inset: 16px;
  border-radius: inherit;
  border: 1px solid rgba(126, 215, 255, 0.14);
}

.question-rails::after {
  inset: 24px;
  border-radius: inherit;
  border: 1px solid rgba(126, 215, 255, 0.14);
}

.answer-stack {
  display: grid;
  gap: 8px;
}

.answer-button {
  position: relative;
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 18px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.38;
  background:
    linear-gradient(180deg, rgba(13, 21, 29, 0.98), rgba(18, 26, 33, 0.94)),
    radial-gradient(circle at left, rgba(136, 220, 255, 0.06), transparent 36%);
  color: #f2f8ff;
  border: 1px solid rgba(136, 220, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease),
    opacity 200ms var(--ease),
    box-shadow 160ms var(--ease);
}

.answer-button::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(126, 215, 255, 0.28);
  box-shadow: inset 0 0 12px rgba(126, 215, 255, 0.08);
}

.answer-button.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.answer-button:hover,
.answer-button:focus-visible,
.answer-button.is-active {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(20, 31, 38, 0.98), rgba(15, 23, 30, 0.94)),
    radial-gradient(circle at left, rgba(184, 233, 164, 0.12), transparent 32%);
  color: #f9fcff;
  border-color: rgba(184, 233, 164, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(184,233,164,0.08),
    0 12px 24px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(136, 220, 255, 0.06);
}

.answer-button.is-active::before {
  border-color: rgba(212, 255, 117, 0.52);
}

.answer-button.is-active::after {
  background: rgba(212, 255, 117, 0.86);
  box-shadow: 0 0 18px rgba(212, 255, 117, 0.42);
}

.scene-panel-loading {
  display: grid;
  align-content: center;
  gap: 14px;
}

.loading-stage {
  position: relative;
  height: 236px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 18, 27, 0.98), rgba(9, 16, 24, 0.98)),
    radial-gradient(circle at center, rgba(136, 220, 255, 0.12), transparent 42%),
    radial-gradient(circle at 50% 30%, rgba(184, 233, 164, 0.06), transparent 28%);
}

.loading-stage::before,
.loading-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loading-stage::before {
  background:
    radial-gradient(circle at 30% 40%, rgba(126, 215, 255, 0.12), transparent 20%),
    radial-gradient(circle at 72% 52%, rgba(212, 255, 117, 0.12), transparent 16%),
    linear-gradient(180deg, transparent, rgba(126, 215, 255, 0.05), transparent);
  mix-blend-mode: screen;
  animation: loadingNebula 4s ease-in-out infinite;
}

.loading-stage::after {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent),
    radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 60%);
  transform: translateX(-110%);
  opacity: 0;
}

.loading-stage[data-phase="scan"]::after,
.loading-stage[data-phase="forge"]::after,
.loading-stage[data-phase="engrave"]::after,
.loading-stage[data-phase="release"]::after {
  opacity: 1;
  animation: loadingSweep 1.15s var(--ease);
}

.loading-vortex,
.loading-orbit,
.loading-core,
.loading-flare {
  position: absolute;
}

.loading-vortex {
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(126, 215, 255, 0.12), transparent 54%);
  filter: blur(10px);
}

.loading-orbit {
  left: 50%;
  top: 49%;
  border-radius: 50%;
  border: 1px solid rgba(126, 215, 255, 0.12);
  transform: translate(-50%, -50%);
}

.loading-orbit-1 {
  width: 168px;
  height: 168px;
  animation: spinSlow 5.5s linear infinite;
}

.loading-orbit-2 {
  width: 224px;
  height: 224px;
  border-color: rgba(212, 255, 117, 0.08);
  animation: spinSlow 7.2s linear infinite reverse;
}

.loading-rail {
  inset: 58% 11% auto;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(126, 215, 255, 0.2);
  transform: translateY(-50%);
}

.loading-rail::before,
.loading-rail::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(126, 215, 255, 0.16);
}

.loading-rail::after {
  inset: -64px auto auto 52%;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 1px solid rgba(126, 215, 255, 0.12);
  transform: translateX(-50%);
}

.loading-core {
  left: 50%;
  top: 40%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(255,255,255,0.9), rgba(126,215,255,0.24) 24%, transparent 58%);
  filter: blur(1px);
}

.loading-orb {
  width: 88px;
  height: 88px;
  left: 16%;
  top: calc(58% - 44px);
  transition: left 520ms var(--ease);
  z-index: 2;
}

.loading-beam {
  inset: auto 12% 22% 12%;
  height: 120px;
  background: radial-gradient(circle, rgba(126, 215, 255, 0.1), transparent 72%);
  filter: blur(14px);
}

.loading-flare {
  inset: auto 10% 18% 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  box-shadow: 0 0 24px rgba(126,215,255,0.24);
  animation: scanDown 1.7s linear infinite;
}

.loading-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loading-step {
  padding: 11px 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.loading-step.is-active {
  color: var(--text);
  border-color: rgba(136, 220, 255, 0.32);
  background: rgba(136, 220, 255, 0.08);
}

.scene-panel-result {
  display: grid;
  gap: 18px;
}

.result-banner,
.archive-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.result-card {
  position: relative;
  padding: 20px 20px 210px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(225, 242, 248, 0.22);
  background:
    radial-gradient(circle at 50% 18%, rgba(136, 220, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(11, 20, 29, 0.98), rgba(9, 16, 24, 0.98));
}

.result-card::before,
.result-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.result-card::before {
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(255,255,255,0.05);
}

.result-card::after {
  inset: auto 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 215, 255, 0.24), transparent);
}

.result-aurora,
.result-constellation {
  position: absolute;
  pointer-events: none;
}

.result-aurora {
  inset: -30px -20px auto -20px;
  height: 260px;
  background:
    radial-gradient(circle at 32% 38%, rgba(126,215,255,0.16), transparent 26%),
    radial-gradient(circle at 72% 26%, rgba(212,255,117,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 70%);
  filter: blur(8px);
  opacity: 0.88;
  animation: auroraDrift 8s ease-in-out infinite;
}

.result-constellation {
  inset: 12px;
  border-radius: 26px;
  background-image:
    radial-gradient(circle at 16% 22%, rgba(255,255,255,0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 28%, rgba(126,215,255,0.38) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,0.45) 0 1px, transparent 1.5px),
    linear-gradient(120deg, transparent 0 42%, rgba(126,215,255,0.08) 46%, transparent 50%);
  opacity: 0.72;
}

.result-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.result-type {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: var(--text);
}

.result-title {
  margin-top: 10px;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
}

.result-job {
  margin: 10px 0 0;
  font-size: 1rem;
  color: #d9e8ef;
  font-family: var(--font-ui);
  font-weight: 700;
}

.result-summary {
  max-width: 34ch;
}

.result-orb-hero {
  width: 190px;
  height: 190px;
  right: 22px;
  bottom: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 0 60px rgba(126,215,255,0.18),
    0 26px 38px rgba(0,0,0,0.42);
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(126, 215, 255, 0.1);
  border: 1px solid rgba(126, 215, 255, 0.24);
}

.result-chip-risk {
  background: rgba(255, 123, 138, 0.12);
  border-color: rgba(255, 123, 138, 0.28);
}

.result-reasons,
.result-deep-dive,
.future-slot {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.section-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.reason-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: #deedf9;
  line-height: 1.6;
}

.reason-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), #ffffff);
  box-shadow: 0 0 14px rgba(126, 215, 255, 0.4);
}

.result-deep-dive {
  display: grid;
  gap: 14px;
}

.detail-block p {
  margin: 6px 0 0;
}

.future-slot {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 11, 0.78);
  backdrop-filter: blur(18px);
  animation: modalBackdropIn 520ms var(--ease);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), 430px);
  max-height: calc(100svh - 32px);
  margin: 16px auto;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 20, 0.94);
  box-shadow: var(--shadow);
  overflow: auto;
  animation: modalPanelIn 620ms cubic-bezier(0.15, 0.82, 0.12, 1);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
}

.video-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(2, 5, 10, 0.98), rgba(4, 8, 14, 0.98)),
    radial-gradient(circle at 50% 38%, rgba(126, 215, 255, 0.08), transparent 38%);
  aspect-ratio: 9 / 16;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 20px 40px rgba(0,0,0,0.34),
    0 0 48px rgba(126, 215, 255, 0.08);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  filter: saturate(0.8) contrast(1.04);
}

.modal-cta {
  margin-top: 16px;
}

.modal-panel-video {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.98), rgba(4, 8, 14, 0.98)),
    radial-gradient(circle at top, rgba(126, 215, 255, 0.08), transparent 28%);
}

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

.video-panel-title {
  display: block;
  margin: 4px 0 0;
  max-width: 18.5ch;
  height: 1.08em;
  overflow: hidden;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.12rem, 4.7vw, 1.56rem);
  line-height: 0.98;
  transition: opacity 360ms var(--ease), filter 360ms var(--ease), transform 360ms var(--ease);
}

.video-panel-title-tail {
  display: block;
  will-change: transform;
  transition: transform 140ms linear;
}

#videoPanelTitle.is-dissolving {
  animation: videoTitleShatter 860ms cubic-bezier(0.18, 0.72, 0.12, 1) both;
}

#videoPanelTitle.is-destroyed {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(-10px) scale(0.97);
}

#videoCloseButton.type-line::after {
  width: 0.34em;
  margin-left: 0.08em;
}

.video-device {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(126, 215, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 13, 22, 0.98), rgba(6, 11, 18, 0.96)),
    radial-gradient(circle at 50% 10%, rgba(126, 215, 255, 0.08), transparent 30%);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 18px 40px rgba(0,0,0,0.28);
}

.video-device::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.video-device-grid,
.video-device-rings,
.video-bezel,
.video-veil,
.video-noise,
.video-scan,
.video-core {
  position: absolute;
}

.video-device-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 209, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 209, 235, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, #000 36%, transparent 100%);
}

.video-device-rings {
  inset: 0;
  pointer-events: none;
}

.video-device-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(126, 215, 255, 0.12);
  animation: spinSlow 14s linear infinite;
}

.video-device-rings span:nth-child(1) {
  width: 320px;
  height: 320px;
  right: -84px;
  top: -42px;
}

.video-device-rings span:nth-child(2) {
  width: 204px;
  height: 204px;
  left: -56px;
  bottom: 72px;
  animation-direction: reverse;
  animation-duration: 10s;
}

.video-device-rings span:nth-child(3) {
  width: 120px;
  height: 120px;
  right: 26px;
  bottom: 26px;
  animation-duration: 7s;
}

.video-bezel {
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(126, 215, 255, 0.04),
    inset 0 0 28px rgba(255,255,255,0.02);
  pointer-events: none;
  z-index: 2;
}

.video-veil {
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.82), rgba(6, 10, 18, 0.46)),
    radial-gradient(circle at center, rgba(126, 215, 255, 0.12), transparent 38%);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), visibility 900ms var(--ease);
}

.video-noise {
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 24%, transparent 76%, rgba(255,255,255,0.02));
  background-size: 92px 92px, 120px 120px, auto;
  opacity: 0.6;
}

.video-scan {
  inset: -14% 0 auto;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
  mix-blend-mode: screen;
  animation: videoScan 1.9s linear infinite;
}

.video-core {
  inset: 50% auto auto 50%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.96), rgba(126, 215, 255, 0.34) 24%, rgba(5,10,18,0.08) 66%);
  box-shadow:
    0 0 54px rgba(126, 215, 255, 0.22),
    0 0 0 1px rgba(255,255,255,0.18) inset;
  animation: videoPulse 2.2s ease-in-out infinite;
}

.video-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 215, 255, 0.16);
  background: rgba(4, 8, 14, 0.58);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(225, 241, 252, 0.82);
}

.modal-panel-video.is-phase-boot .video-core {
  animation-duration: 1.4s;
}

.modal-panel-video.is-phase-sync .video-status::after,
.modal-panel-video.is-phase-open .video-status::after {
  content: "";
  position: absolute;
  inset: auto 16px 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 255, 117, 0.72), transparent);
}

.modal-panel-video.is-phase-open .video-veil {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}

.modal-panel-video.is-phase-open .video-shell iframe {
  opacity: 1;
  transform: scale(1);
}

@keyframes videoTitleShatter {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    letter-spacing: 0.03em;
  }
  28% {
    opacity: 0.9;
    filter: blur(0.8px);
    transform: translate3d(0, -1px, 0) scale(1.01);
  }
  54% {
    opacity: 0.55;
    filter: blur(3px);
    transform: translate3d(2px, -5px, 0) scale(1.018);
    letter-spacing: 0.09em;
  }
  100% {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(10px, -14px, 0) scale(0.965);
    letter-spacing: 0.16em;
  }
}

.archive-preview {
  position: relative;
  padding: 18px 18px 132px;
  margin: 18px 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.archive-preview-copy {
  position: relative;
  z-index: 1;
}

.archive-preview-copy .panel-copy {
  max-width: 28ch;
}

.archive-preview-orb {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(126, 215, 255, 0.1),
    0 24px 46px rgba(0, 0, 0, 0.36);
}

.archive-preview-ring {
  position: absolute;
  right: -18px;
  bottom: 10px;
  width: 188px;
  height: 78px;
  border-radius: 999px;
  border: 1px solid rgba(126, 215, 255, 0.12);
  transform: rotate(-10deg);
}

.archive-preview-ring::before,
.archive-preview-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px solid rgba(126, 215, 255, 0.1);
}

.archive-preview-ring::after {
  inset: 24px;
}

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

.archive-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  color: var(--text);
}

.archive-card.is-selected {
  border-color: rgba(126, 215, 255, 0.46);
  background: rgba(126, 215, 255, 0.08);
}

.archive-card-code {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.archive-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.05;
}

.archive-card-sub {
  font-size: 0.86rem;
  color: var(--muted);
}

body.route-variant-b {
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 235, 255, 0.7), transparent 30%),
    linear-gradient(180deg, #eef8ff 0%, #dceffc 100%);
  --text: #0f2233;
  --muted: #43586b;
  --line: rgba(104, 143, 170, 0.18);
  --line-strong: rgba(88, 125, 150, 0.34);
  --accent: #4ebaff;
  --accent-2: #8fd39a;
  --danger: #d85d7f;
  --shadow: 0 26px 70px rgba(87, 126, 153, 0.18);
}

body.route-variant-b .ambient-grid {
  opacity: 0.34;
}

body.route-variant-b .ambient-noise {
  opacity: 0.05;
}

body.route-variant-b .scene-transition {
  background:
    radial-gradient(circle at center, rgba(91, 188, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(229, 244, 255, 0.26), rgba(176, 202, 226, 0.56));
  backdrop-filter: blur(9px);
}

body.route-variant-b .scene-transition-ring {
  border-color: rgba(84, 160, 214, 0.2);
  box-shadow: 0 0 54px rgba(78, 186, 255, 0.12);
}

body.route-variant-b .scene-transition-ring-alt {
  border-color: rgba(139, 208, 160, 0.16);
}

body.route-variant-b .scene-transition-beam {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
}

body.route-variant-b .top-rail {
  color: var(--text);
}

body.route-variant-b .rail-kicker,
body.route-variant-b .eyebrow,
body.route-variant-b .meta-label,
body.route-variant-b .status-badge,
body.route-variant-b .future-label,
body.route-variant-b .detail-label,
body.route-variant-b .question-kicker,
body.route-variant-b .result-type,
body.route-variant-b .result-code,
body.route-variant-b .field-label,
body.route-variant-b .form-hint {
  color: rgba(43, 71, 94, 0.9);
}

body.route-variant-b .rail-ghost {
  border-color: rgba(98, 138, 165, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(120, 153, 175, 0.12);
}

body.route-variant-b .scene-panel {
  border-color: rgba(103, 144, 171, 0.18);
  box-shadow: 0 24px 60px rgba(99, 131, 156, 0.16);
}

body.route-variant-b .scene-panel::before {
  border-color: rgba(255, 255, 255, 0.82);
}

body.route-variant-b .scene-panel-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(241, 249, 255, 0.16)),
    linear-gradient(180deg, rgba(238, 247, 255, 0.92), rgba(221, 238, 250, 0.86));
}

body.route-variant-b .hero-title,
body.route-variant-b .panel-title,
body.route-variant-b .result-title,
body.route-variant-b .question-title,
body.route-variant-b .section-head h3,
body.route-variant-b .archive-card-title {
  color: #0f2233;
  text-shadow: none;
}

body.route-variant-b .hero-lead,
body.route-variant-b .panel-copy,
body.route-variant-b .question-copy,
body.route-variant-b .result-summary,
body.route-variant-b .future-slot p,
body.route-variant-b .detail-block p,
body.route-variant-b .hero-note,
body.route-variant-b .question-whisper,
body.route-variant-b .result-job,
body.route-variant-b .archive-card-sub {
  color: #43586b;
}

body.route-variant-b .coord-ring {
  border-color: rgba(87, 164, 214, 0.16);
}

body.route-variant-b .orb-core,
body.route-variant-b .loading-orb,
body.route-variant-b .question-orb,
body.route-variant-b .result-orb-hero {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.58) inset,
    0 0 42px rgba(78, 186, 255, 0.18),
    0 18px 30px rgba(116, 141, 161, 0.18);
}

body.route-variant-b .hero-cta {
  border-color: rgba(111, 158, 188, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 252, 0.92)),
    radial-gradient(circle at top right, rgba(98, 195, 255, 0.12), transparent 42%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 16px 28px rgba(124, 154, 177, 0.14);
}

body.route-variant-b .hero-cta::before {
  border-color: rgba(99, 147, 177, 0.12);
}

body.route-variant-b .hero-cta::after {
  background: linear-gradient(90deg, transparent, rgba(78, 186, 255, 0.42), transparent);
}

body.route-variant-b .hero-cta-label {
  color: rgba(39, 67, 89, 0.82);
}

body.route-variant-b .hero-cta-title {
  color: #0f2233;
}

body.route-variant-b .hero-cta-meta {
  color: rgba(49, 76, 97, 0.72);
}

body.route-variant-b .hero-cta-primary {
  background:
    linear-gradient(180deg, rgba(79, 189, 255, 0.96), rgba(34, 151, 228, 0.92)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 40%);
  border-color: rgba(67, 150, 207, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 18px 36px rgba(78, 186, 255, 0.22);
}

body.route-variant-b .hero-cta-primary .hero-cta-label,
body.route-variant-b .hero-cta-primary .hero-cta-meta,
body.route-variant-b .hero-cta-primary .hero-cta-title {
  color: #ffffff;
}

body.route-variant-b .hero-meta > div,
body.route-variant-b .status-badge,
body.route-variant-b .progress-shell,
body.route-variant-b .oracle-field,
body.route-variant-b .stepper-value-wrap,
body.route-variant-b .result-reasons,
body.route-variant-b .result-deep-dive,
body.route-variant-b .future-slot,
body.route-variant-b .archive-preview,
body.route-variant-b .archive-card,
body.route-variant-b .loading-step,
body.route-variant-b .modal-panel {
  border-color: rgba(103, 144, 171, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(122, 151, 176, 0.12);
}

body.route-variant-b .oracle-input-shell,
body.route-variant-b .stepper-value-wrap,
body.route-variant-b .blood-button,
body.route-variant-b .stepper-button,
body.route-variant-b .answer-button,
body.route-variant-b .result-card,
body.route-variant-b .question-card,
body.route-variant-b .video-device,
body.route-variant-b .video-shell {
  border-color: rgba(100, 144, 175, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 253, 0.92)),
    radial-gradient(circle at top, rgba(78, 186, 255, 0.1), transparent 40%);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(121, 150, 174, 0.14);
}

body.route-variant-b .oracle-input-prefix,
body.route-variant-b .stepper-unit,
body.route-variant-b .name-seal-button-kicker {
  color: rgba(47, 74, 95, 0.82);
}

body.route-variant-b .oracle-input-shell input,
body.route-variant-b .stepper-value,
body.route-variant-b .answer-button,
body.route-variant-b .blood-button,
body.route-variant-b .stepper-button,
body.route-variant-b .result-type,
body.route-variant-b .result-job {
  color: #112739;
}

body.route-variant-b .oracle-input-shell input::placeholder {
  color: rgba(67, 89, 108, 0.52);
}

body.route-variant-b .name-seal-button {
  border-color: rgba(99, 144, 173, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 252, 0.92)),
    radial-gradient(circle at top, rgba(78, 186, 255, 0.08), transparent 44%);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(118, 149, 172, 0.12);
}

body.route-variant-b .name-seal-button.is-confirmed,
body.route-variant-b .blood-button:hover,
body.route-variant-b .blood-button:focus-visible,
body.route-variant-b .blood-button.is-selected,
body.route-variant-b .stepper-button:hover,
body.route-variant-b .stepper-button:focus-visible,
body.route-variant-b .oracle-field:focus-within,
body.route-variant-b .oracle-field.is-signed,
body.route-variant-b .oracle-field.is-shifted,
body.route-variant-b .answer-button:hover,
body.route-variant-b .answer-button:focus-visible,
body.route-variant-b .answer-button.is-active,
body.route-variant-b .archive-card.is-selected {
  border-color: rgba(78, 186, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(232, 245, 255, 0.98), rgba(221, 239, 252, 0.94)),
    radial-gradient(circle at top, rgba(78, 186, 255, 0.12), transparent 42%);
  box-shadow:
    inset 0 0 0 1px rgba(78, 186, 255, 0.08),
    0 16px 28px rgba(106, 144, 175, 0.16);
}

body.route-variant-b .answer-button::before,
body.route-variant-b .status-badge,
body.route-variant-b .result-chip,
body.route-variant-b .result-chip-risk {
  border-color: rgba(78, 186, 255, 0.22);
}

body.route-variant-b .question-card {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 24px 46px rgba(121, 150, 174, 0.16);
}

body.route-variant-b .question-orb,
body.route-variant-b .question-rails {
  opacity: 0.78;
}

body.route-variant-b .progress-fill {
  background: linear-gradient(90deg, #4ebaff, #b7efff);
}

body.route-variant-b .loading-step.is-active {
  border-color: rgba(78, 186, 255, 0.28);
  background: rgba(226, 242, 255, 0.88);
  color: #112739;
}

body.route-variant-b .result-card {
  background:
    radial-gradient(circle at 50% 18%, rgba(78, 186, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 252, 0.94));
}

body.route-variant-b .result-card::before {
  border-color: rgba(255, 255, 255, 0.84);
}

body.route-variant-b .result-card::after {
  background: linear-gradient(90deg, transparent, rgba(78, 186, 255, 0.44), transparent);
}

body.route-variant-b .reason-list li::before {
  background: linear-gradient(180deg, var(--accent), #ffffff);
  box-shadow: 0 0 14px rgba(78, 186, 255, 0.14);
}

body.route-variant-b .result-chip {
  background: rgba(78, 186, 255, 0.1);
}

body.route-variant-b .result-chip-risk {
  border-color: rgba(216, 93, 127, 0.24);
  background: rgba(216, 93, 127, 0.08);
}

body.route-variant-b .modal-backdrop {
  background: rgba(177, 198, 216, 0.34);
  backdrop-filter: blur(18px);
}

body.route-variant-b .modal-close {
  background: rgba(227, 241, 252, 0.92);
  color: #143146;
}

body.route-variant-b .video-panel-title,
body.route-variant-b .video-status {
  color: #173043;
}

body.route-variant-b .video-status {
  border-color: rgba(101, 147, 179, 0.14);
  background: rgba(243, 250, 255, 0.84);
}

body.route-variant-b .video-device-grid {
  opacity: 0.22;
}

body.route-variant-b .video-veil {
  background:
    linear-gradient(180deg, rgba(230, 242, 252, 0.84), rgba(214, 233, 248, 0.42)),
    radial-gradient(circle at center, rgba(78, 186, 255, 0.12), transparent 38%);
}

body.route-variant-b .scene-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.84)),
    linear-gradient(135deg, rgba(168, 222, 255, 0.16), transparent 46%);
}

body.route-variant-b .scene-panel::after {
  opacity: 0.76;
  filter: saturate(0.92) brightness(1.04);
}

body.route-variant-b .orb-core,
body.route-variant-b .loading-orb,
body.route-variant-b .question-orb,
body.route-variant-b .result-orb-hero {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.98), rgba(239, 249, 255, 0.94) 18%, rgba(135, 214, 255, 0.56) 48%, rgba(193, 235, 255, 0.26) 70%, rgba(241, 249, 255, 0.04) 100%);
}

body.route-variant-b .question-card,
body.route-variant-b .result-card,
body.route-variant-b .archive-preview,
body.route-variant-b .archive-card,
body.route-variant-b .modal-panel,
body.route-variant-b .result-reasons,
body.route-variant-b .result-deep-dive,
body.route-variant-b .detail-block,
body.route-variant-b .hero-meta > div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.9)),
    radial-gradient(circle at top, rgba(134, 212, 255, 0.08), transparent 42%);
}

body.route-variant-b .cta-secondary,
body.route-variant-b .cta-tertiary,
body.route-variant-b .hero-cta-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 254, 0.9)),
    radial-gradient(circle at top right, rgba(154, 224, 205, 0.12), transparent 40%);
  color: #163248;
}

body.route-variant-b .loading-stage {
  border-color: rgba(96, 141, 173, 0.16);
  background:
    radial-gradient(circle at center, rgba(160, 220, 255, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 248, 255, 0.78));
}

body.route-variant-b .loading-rail,
body.route-variant-b .loading-rail::before,
body.route-variant-b .loading-rail::after,
body.route-variant-b .loading-orbit {
  border-color: rgba(88, 158, 206, 0.18);
}

body.route-variant-b .loading-beam {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent);
}

body.route-variant-b .result-banner,
body.route-variant-b .archive-header {
  color: #476173;
}

body.route-variant-b .result-chip,
body.route-variant-b .status-badge {
  background: rgba(96, 188, 244, 0.12);
  color: #14344c;
}

body.route-variant-b .result-chip-risk {
  color: #8c4858;
}

body.route-variant-b .archive-card.is-selected,
body.route-variant-b .answer-button.is-active {
  background:
    linear-gradient(180deg, rgba(232, 245, 255, 0.98), rgba(221, 239, 252, 0.94)),
    radial-gradient(circle at top, rgba(78, 186, 255, 0.16), transparent 42%);
}

body.route-variant-b .toast {
  background: rgba(248, 252, 255, 0.94);
  border-color: rgba(78, 186, 255, 0.18);
  color: #112739;
}

body.route-variant-b .goodbrother-voice,
body.route-variant-b #introTitle.goodbrother-voice,
body.route-variant-b #introLead.goodbrother-voice,
body.route-variant-b #questionKicker.goodbrother-voice,
body.route-variant-b #questionTitle.goodbrother-voice,
body.route-variant-b #questionCopy.goodbrother-voice,
body.route-variant-b #videoPanelTitle.goodbrother-voice,
body.route-variant-b #videoCloseButton.goodbrother-voice {
  color: var(--text);
}

body.route-variant-b #introLead.goodbrother-voice,
body.route-variant-b #questionCopy.goodbrother-voice,
body.route-variant-b .panel-copy,
body.route-variant-b .hero-lead,
body.route-variant-b .question-copy,
body.route-variant-b .result-summary,
body.route-variant-b .result-job,
body.route-variant-b .archive-card-sub,
body.route-variant-b .question-whisper,
body.route-variant-b .form-hint {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  min-width: 220px;
  max-width: calc(100% - 28px);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(7, 16, 25, 0.96);
  border: 1px solid rgba(126, 215, 255, 0.24);
  text-align: center;
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(22, 0, 0, 0.88);
  color: #fff1f1;
}

@keyframes sceneFade {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes scanDown {
  from {
    transform: translateY(-180px);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  to {
    transform: translateY(520px);
    opacity: 0;
  }
}

@keyframes blinkCursor {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes veilPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.22;
  }
  50% {
    transform: scale(1);
    opacity: 0.56;
  }
}

@keyframes veilScan {
  from {
    transform: translateY(-120px);
    opacity: 0;
  }
  25%,
  75% {
    opacity: 1;
  }
  to {
    transform: translateY(120px);
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .app-frame {
    padding: 24px 14px 32px;
  }

  body.route-variant-a,
  body.route-variant-b {
    --route-panel-fit-width: calc(var(--shell-width) - 28px);
  }

  .scene-panel-hero {
    min-height: calc(100svh - 132px);
  }

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

  .result-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .scene-panel {
    padding: 10px 10px;
  }

  .scene-panel-hero {
    align-content: end;
    gap: 16px;
  }

  .hero-title {
    font-size: 2.24rem;
  }

  .hero-copy {
    width: min(100%, 300px);
  }

  .hero-note {
    font-size: 0.7rem;
    line-height: 1.42;
  }

  .hero-meta {
    gap: 8px;
    margin-top: 16px;
  }

  .top-rail {
    margin-bottom: 10px;
  }

  .panel-title {
    font-size: clamp(1.65rem, 6.2vw, 2.2rem);
  }

  .scene-panel-form {
    justify-content: flex-start;
    gap: 10px;
    padding-top: 18px;
  }

  .scene-panel-form .eyebrow {
    display: none;
  }

  .scene-panel-form .panel-head {
    margin-bottom: 2px;
  }

  .scene-panel-form .panel-title {
    max-width: none;
    font-size: clamp(1.28rem, 5vw, 1.66rem);
    line-height: 0.98;
  }

  .hero-lead,
  .panel-copy {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .cta {
    padding: 11px 10px;
    font-size: 0.82rem;
    line-height: 1.24;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .issuance-form {
    justify-content: space-evenly;
    gap: 6px;
  }

  .oracle-field {
    padding: 7px;
    gap: 3px;
    border-radius: 18px;
  }

  .oracle-input-shell {
    gap: 7px;
    min-height: 40px;
    padding: 7px 9px;
    border-radius: 14px;
  }

  .oracle-input-prefix {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .oracle-input-shell input {
    font-size: 0.88rem;
  }

  .name-seal-button {
    min-width: 68px;
    padding: 7px 8px 6px;
    border-radius: 12px;
  }

  .name-seal-button-kicker {
    font-size: 0.48rem;
  }

  .name-seal-button-label {
    font-size: 0.74rem;
  }

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

  .blood-button {
    min-height: 30px;
    border-radius: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }

  .stepper-shell {
    grid-template-columns: 34px 1fr 34px;
    gap: 5px;
  }

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

  .stepper-button,
  .stepper-value-wrap {
    min-height: 36px;
    border-radius: 12px;
  }

  .stepper-button {
    font-size: 0.96rem;
  }

  .field-label,
  .form-hint {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .field-meta,
  .stepper-unit {
    font-size: 0.54rem;
  }

  .stepper-value {
    font-size: 0.84rem;
  }

  .stepper-unit {
    margin-top: 2px;
  }

  .panel-head {
    margin-bottom: 6px;
  }

  .form-hint {
    display: none;
  }

  .scene-panel-form .field-meta {
    display: none;
  }

  .form-footer {
    gap: 6px;
    padding-top: 2px;
  }

  .form-error {
    font-size: 0.66rem;
    line-height: 1.28;
  }

  .result-title {
    font-size: 2rem;
  }

  .result-card {
    padding-bottom: 188px;
  }

  .result-orb-hero {
    width: 168px;
    height: 168px;
  }

  .question-title {
    font-size: 1.34rem;
  }

  .question-card {
    min-height: 366px;
    height: auto;
    padding-bottom: 88px;
  }

  .question-copy {
    min-height: 3.35em;
    font-size: 0.82rem;
  }

  .question-visual {
    height: 80px;
  }

  .question-orb {
    width: 76px;
    height: 76px;
    right: 10px;
    bottom: 10px;
  }

  .question-rails {
    width: 164px;
    height: 48px;
    right: -2px;
    bottom: 18px;
  }

  .answer-button {
    padding: 11px 13px 11px 40px;
    font-size: 0.86rem;
  }

  .answer-button::before {
    left: 13px;
    width: 16px;
    height: 16px;
  }

  .loading-stage {
    height: 214px;
  }

  .hero-cta {
    padding: 14px 16px 15px;
  }

  .hero-cta-title {
    font-size: 1rem;
  }

  .hero-meta > div {
    padding: 9px 11px;
  }

  .coord-ring-1 {
    width: 360px;
    height: 360px;
    right: 8px;
    top: 108px;
  }

  .coord-ring-2 {
    width: 224px;
    height: 224px;
    right: 56px;
    top: 186px;
  }

  .coord-ring-3 {
    width: 430px;
    height: 430px;
    right: -14px;
    top: 40px;
  }

  .orb-core {
    width: 178px;
    height: 178px;
    top: 246px;
    right: 64px;
  }

  .rail-cluster {
    width: 284px;
    height: 104px;
  }

  .rail-cluster-top {
    top: 170px;
  }

  .rail-cluster-bottom {
    top: 458px;
    right: 54px;
  }
}

@media (max-height: 860px) {
  .scene-panel-form .eyebrow {
    display: none;
  }

  .scene-panel {
    padding: 8px;
  }

  .scene-panel-form .panel-head {
    margin-bottom: 3px;
  }

  .scene-panel-form .panel-title {
    font-size: clamp(1.12rem, 4.2vw, 1.38rem);
    line-height: 0.98;
  }

  .scene-panel-form .panel-copy {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .scene-panel-form .issuance-form {
    gap: 8px;
  }

  .scene-panel-form .oracle-field {
    padding: 6px;
    gap: 2px;
    border-radius: 16px;
  }

  .scene-panel-form .oracle-input-shell {
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .scene-panel-form .oracle-input-prefix {
    font-size: 0.6rem;
  }

  .scene-panel-form .oracle-input-shell input {
    font-size: 0.82rem;
  }

  .scene-panel-form .name-seal-button {
    min-width: 62px;
    padding: 6px 7px 5px;
  }

  .scene-panel-form .name-seal-button-kicker {
    font-size: 0.42rem;
  }

  .scene-panel-form .name-seal-button-label {
    font-size: 0.68rem;
  }

  .scene-panel-form .blood-matrix {
    gap: 5px;
  }

  .scene-panel-form .blood-button {
    min-height: 27px;
    font-size: 0.76rem;
  }

  .scene-panel-form .chrono-grid {
    gap: 5px;
  }

  .scene-panel-form .stepper-shell {
    grid-template-columns: 30px 1fr 30px;
    gap: 4px;
  }

  .scene-panel-form .stepper-button,
  .scene-panel-form .stepper-value-wrap {
    min-height: 32px;
    border-radius: 10px;
  }

  .scene-panel-form .stepper-button {
    font-size: 0.88rem;
  }

  .scene-panel-form .stepper-value {
    font-size: 0.78rem;
  }

  .scene-panel-form .stepper-unit {
    font-size: 0.5rem;
  }

  .scene-panel-form .field-label {
    font-size: 0.58rem;
  }

  .scene-panel-form .form-actions {
    gap: 6px;
  }

  .scene-panel-form .cta {
    padding: 9px 8px;
    font-size: 0.76rem;
  }

  .scene-panel-form .form-footer {
    padding-top: 0;
    gap: 5px;
  }

  .scene-panel-form .form-error {
    font-size: 0.62rem;
  }
}

@keyframes fieldScan {
  0% {
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(360%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes loadingNebula {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08) translate3d(8px, -6px, 0);
    opacity: 1;
  }
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

@keyframes nodeLift {
  0% {
    transform: translateY(10px) scale(0.985);
    filter: blur(8px);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes nodeSeal {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(212, 255, 117, 0);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 0 24px rgba(212, 255, 117, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(212, 255, 117, 0);
  }
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPanelIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes videoScan {
  from {
    transform: translateY(-120%);
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  to {
    transform: translateY(340%);
    opacity: 0;
  }
}

@keyframes videoPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
}

@keyframes heroCtaWake {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(10px) saturate(0.5);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.02),
      0 0 0 rgba(126, 215, 255, 0);
  }
  42% {
    opacity: 1;
    transform: translateY(-3px) scale(1.015);
    filter: blur(0) saturate(1.05);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.06),
      0 0 30px rgba(126, 215, 255, 0.14);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes heroMetaWake {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(8px) saturate(0.55);
  }
  45% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
    filter: blur(0) saturate(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes introEyebrowShatter {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    letter-spacing: 0.08em;
    text-shadow:
      0 0 10px rgba(126, 215, 255, 0.08),
      0 0 18px rgba(126, 215, 255, 0.04);
  }
  22% {
    opacity: 0.88;
    transform: translateY(-1px) scale(1.01);
    filter: blur(0.4px);
  }
  55% {
    opacity: 0.42;
    transform: translateY(-4px) scale(1.02);
    filter: blur(3px);
    letter-spacing: 0.22em;
    text-shadow:
      0 0 18px rgba(126, 215, 255, 0.16),
      0 0 28px rgba(212, 255, 117, 0.08);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    filter: blur(12px);
    letter-spacing: 0.34em;
    text-shadow:
      0 0 28px rgba(126, 215, 255, 0),
      0 0 42px rgba(212, 255, 117, 0);
  }
}

@keyframes introRailBreak {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-1px);
    filter: blur(0.4px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(12px);
  }
}

@keyframes introRailShard {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    letter-spacing: 0.08em;
  }
  30% {
    opacity: 0.88;
    transform: translateY(-1px) scale(1.01);
  }
  62% {
    opacity: 0.34;
    transform: translateY(-4px) scale(1.02);
    filter: blur(3px);
    letter-spacing: 0.18em;
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    filter: blur(12px);
    letter-spacing: 0.28em;
  }
}
