﻿:root {
  --bg: #050505;
  --ink: #0b0b0f;
  --panel: rgba(7, 12, 22, 0.72);
  --panel-dark: rgba(7, 12, 22, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(10, 10, 15, 0.12);
  --hud: rgba(36, 213, 255, 0.54);
  --hud-soft: rgba(47, 124, 255, 0.18);
  --text: #f7f7f8;
  --dark-text: #f7fbff;
  --muted: #9ca3af;
  --muted-dark: #9aa8ba;
  --blue: #2f7cff;
  --cyan: #24d5ff;
  --green: #26d984;
  --pink: #ff4fd8;
  --amber: #ffbd3e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

html {
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 213, 255, 0.62) rgba(5, 8, 14, 0.82);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 213, 255, 0.62) rgba(5, 8, 14, 0.82);
}

body::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(36, 213, 255, 0.06), transparent 32%, rgba(255, 79, 216, 0.05)),
    rgba(5, 8, 14, 0.86);
}

html::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(36, 213, 255, 0.06), transparent 32%, rgba(255, 79, 216, 0.05)),
    rgba(5, 8, 14, 0.86);
}

body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 8, 14, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36, 213, 255, 0.9), rgba(47, 124, 255, 0.74), rgba(255, 79, 216, 0.66));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.14);
}

html::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 8, 14, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36, 213, 255, 0.9), rgba(47, 124, 255, 0.74), rgba(255, 79, 216, 0.66));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.14);
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7ee9ff, var(--blue), #ff7ce5);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7ee9ff, var(--blue), #ff7ce5);
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  overflow: hidden;
  padding: 20px clamp(16px, 4vw, 54px) 104px;
  background:
    radial-gradient(circle at 72% 42%, rgba(36, 213, 255, 0.1), transparent 34%),
    linear-gradient(115deg, transparent 0 18%, rgba(36, 213, 255, 0.1) 18.1% 18.3%, transparent 18.4% 100%),
    linear-gradient(70deg, transparent 0 72%, rgba(255, 79, 216, 0.08) 72.1% 72.3%, transparent 72.4% 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  pointer-events: none;
}

.globe-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.88;
}

.globe-canvas:active {
  cursor: default;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(36, 213, 255, 0.12) 48.1% 48.25%, transparent 48.35% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.38;
  animation: terminalScan 7s linear infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.86) 0 58%, transparent 82%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border: 1px solid rgba(36, 213, 255, 0.1);
  background:
    linear-gradient(90deg, transparent 0 calc(50% - 1px), rgba(36, 213, 255, 0.16) calc(50% - 1px) 50%, transparent 50% 100%),
    linear-gradient(transparent 0 calc(50% - 1px), rgba(47, 124, 255, 0.12) calc(50% - 1px) 50%, transparent 50% 100%);
}

.circuit-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
}

.circuit-layer span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(36, 213, 255, 0.04) 48%, rgba(36, 213, 255, 0.62) 82%, rgba(255, 255, 255, 0.92) 100%);
  filter: drop-shadow(0 0 4px rgba(36, 213, 255, 0.36));
  opacity: 0;
}

.circuit-layer span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 8px rgba(36, 213, 255, 0.74), 0 0 14px rgba(47, 124, 255, 0.22);
  transform: translate(50%, -50%);
}

.circuit-layer .is-horizontal {
  left: calc(var(--start) - var(--len));
  top: var(--cross);
  width: var(--len);
  height: 2px;
  animation: circuitMoveX 5.6s linear both;
  animation-duration: var(--duration, 5.6s);
  animation-delay: var(--delay);
}

.circuit-layer .is-vertical {
  left: var(--cross);
  top: calc(var(--start) - var(--len));
  width: 2px;
  height: var(--len);
  background: linear-gradient(180deg, transparent 0%, rgba(36, 213, 255, 0.04) 48%, rgba(36, 213, 255, 0.62) 82%, rgba(255, 255, 255, 0.92) 100%);
  animation: circuitMoveY 6.4s linear both;
  animation-duration: var(--duration, 6.4s);
  animation-delay: var(--delay);
}

.circuit-layer .is-vertical::after {
  right: auto;
  left: 50%;
  top: auto;
  bottom: 0;
  transform: translate(-50%, 50%);
}

main::before,
main::after {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  color: rgba(36, 213, 255, 0.42);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.8;
  white-space: pre;
  text-shadow: 0 0 18px rgba(36, 213, 255, 0.28);
}

main::before {
  content: "NODE 18 ONLINE\A LATENCY 24MS\A MODEL SYNC 99.7%\A ALPHA ROUTE ACTIVE";
  left: clamp(16px, 4vw, 54px);
  bottom: 132px;
}

main::after {
  content: "GT-AI QUANT MESH\A ORDER FLOW ACTIVE\A HYPERLIQUID LINK\A RISK ENGINE ARMED";
  right: clamp(16px, 4vw, 54px);
  top: 118px;
  text-align: right;
}

.gold-glow {
  display: none;
}

.topbar {
  position: relative;
  z-index: 12;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 6, 8, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #ffffff 0%, #d7dce5 36%, #8f98a8 64%, #f5f7fb 100%);
  color: #07090d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 -12px 22px rgba(18, 24, 36, 0.18), 0 12px 28px rgba(10, 18, 32, 0.26);
}

.brand-mark b {
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.brand-word {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-word b {
  font-size: 15px;
  font-weight: 950;
}

.brand-word small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.back-btn,
.lang-trigger,
.lang-option,
.choice,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
}

.back-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 7, 10, 0.76);
  color: #ffffff;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.back-btn:hover {
  border-color: rgba(36, 213, 255, 0.56);
  background: rgba(36, 213, 255, 0.12);
  transform: translateY(-1px);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-btn.is-hidden {
  visibility: hidden;
}

.language {
  position: relative;
}

.lang-trigger {
  display: grid;
  grid-template-columns: 7px 18px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  width: min(224px, 38vw);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(36, 213, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 213, 255, 0.12), transparent 42%),
    rgba(7, 12, 22, 0.9);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 0 18px rgba(36, 213, 255, 0.08);
  backdrop-filter: blur(16px);
}

.lang-trigger::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(38, 217, 132, 0.8);
}

.lang-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.lang-trigger small {
  padding: 3px 6px;
  border: 1px solid rgba(36, 213, 255, 0.24);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-icon,
.chevron-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chevron-icon {
  color: var(--blue);
  transition: transform 160ms ease;
}

.language:hover .chevron-icon,
.language:focus-within .chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 6px;
  width: min(280px, calc(100vw - 32px));
  max-height: 330px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(36, 213, 255, 0.26);
  border-radius: 8px;
  background: rgba(7, 12, 22, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 160ms ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 124, 255, 0.9) rgba(10, 10, 15, 0.08);
}

.lang-menu::before {
  content: "LANGUAGE_MATRIX";
  position: sticky;
  top: -10px;
  z-index: 1;
  display: block;
  margin: -10px -10px 8px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(36, 213, 255, 0.16);
  background: rgba(7, 12, 22, 0.98);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
}

.lang-menu::-webkit-scrollbar {
  width: 8px;
}

.lang-menu::-webkit-scrollbar-track {
  background: rgba(10, 10, 15, 0.06);
  border-radius: 999px;
}

.lang-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue), var(--pink));
  border-radius: 999px;
}

.language:hover .lang-menu,
.language:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.lang-option::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(36, 213, 255, 0.42);
  box-shadow: 0 0 10px rgba(36, 213, 255, 0.25);
}

.lang-option:hover {
  background: rgba(36, 213, 255, 0.1);
  transform: translateX(-2px);
}

.lang-option small {
  color: var(--muted-dark);
}

.lang-option.is-active {
  border-color: rgba(36, 213, 255, 0.62);
  background:
    linear-gradient(90deg, rgba(36, 213, 255, 0.18), transparent 70%),
    rgba(36, 213, 255, 0.08);
}

.lang-option.is-active::before {
  background: var(--green);
  box-shadow: 0 0 12px rgba(38, 217, 132, 0.8);
}

main {
  position: relative;
  z-index: 6;
  max-width: 1120px;
  margin: 0 auto;
  pointer-events: auto;
}

.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: clamp(28px, 5vw, 62px) 0 20px;
}

.intro-copy,
.question-panel,
.market-card,
.signal-panel,
.success-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-copy::before,
.question-panel::before,
.market-card::after,
.signal-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, var(--hud), transparent 28%, transparent 72%, rgba(255, 79, 216, 0.42)) 1;
  pointer-events: none;
}

.intro-copy::after,
.question-panel::after,
.signal-panel::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud), transparent);
  opacity: 0.8;
  animation: hudSweep 2800ms ease-in-out infinite;
  pointer-events: none;
}

.intro-copy,
.question-panel,
.success-card {
  border: 1px solid rgba(36, 213, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(36, 213, 255, 0.07), transparent 38%),
    rgba(7, 12, 22, 0.96);
  color: var(--dark-text);
}

.intro-copy,
.question-panel {
  padding: clamp(24px, 4vw, 42px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(36, 213, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(36, 213, 255, 0.16), rgba(47, 124, 255, 0.08));
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: 0;
}

.question-panel h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.quiz-scene .question-panel {
  background:
    linear-gradient(135deg, rgba(36, 213, 255, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%),
    rgba(7, 12, 22, 0.86);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(36, 213, 255, 0.05);
}

p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 16px;
  line-height: 1.65;
}

.fineprint {
  margin-top: 18px;
  font-size: 12px;
}

.tech-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 213, 255, 0.15);
}

.tech-status span {
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(36, 213, 255, 0.2);
  border-radius: 6px;
  background: rgba(36, 213, 255, 0.06);
  color: rgba(220, 248, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.tech-radar {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(36, 213, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(36, 213, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.03);
}

.radar-core {
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(36, 213, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(36, 213, 255, 0.22), transparent 35%),
    repeating-radial-gradient(circle, transparent 0 10px, rgba(36, 213, 255, 0.16) 11px 12px);
}

.radar-core::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform-origin: left center;
  animation: radarSweep 2.8s linear infinite;
}

.radar-core i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(36, 213, 255, 0.8);
  transform: translate(-50%, -50%);
  transition: left 520ms ease, top 520ms ease, opacity 220ms ease;
}

.radar-core i:nth-child(3) {
  background: var(--pink);
}

.tech-radar b,
.tech-radar span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-radar b {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
}

.tech-radar span {
  margin-top: 4px;
  color: rgba(220, 248, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.intro-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.primary-btn {
  border: 1px solid rgba(120, 174, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(36, 213, 255, 0.18), transparent 42%),
    var(--blue);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(47, 124, 255, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(47, 124, 255, 0.34);
}

.primary-btn:active,
.ghost-btn:active,
.choice:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  cursor: not-allowed;
  border-color: rgba(36, 213, 255, 0.22);
  color: rgba(220, 248, 255, 0.62);
  opacity: 0.68;
  box-shadow: inset 0 0 18px rgba(36, 213, 255, 0.08);
  transform: none;
}

.ghost-btn {
  border: 1px solid rgba(36, 213, 255, 0.22);
  background: rgba(7, 12, 22, 0.62);
  color: var(--text);
}

.market-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--text);
}

.market-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%);
  pointer-events: none;
}

.market-head,
.market-stats,
.chart,
.quote-strip {
  position: relative;
  z-index: 1;
}

.market-head,
.market-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.market-stats {
  flex-wrap: wrap;
}

.market-head span,
.market-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-head strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 18px;
}

.market-head em {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(38, 217, 132, 0.13);
  color: var(--green);
  font-style: normal;
  font-weight: 950;
}

.quote-strip {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.quote-strip div {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: quoteTicker 14s linear infinite;
  will-change: transform;
}

.quote-strip span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.quote-strip b {
  color: var(--green);
}

.chart {
  height: 188px;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-area {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: drawLine 2200ms ease forwards, glowLine 2200ms ease-in-out infinite alternate;
}

.scan-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(36, 213, 255, 0.9), transparent);
  animation: scanChart 2.8s ease-in-out infinite;
}

.market-stats b {
  color: #ffffff;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 850;
}

.choices {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.choices.multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 213, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 124, 255, 0.06), transparent 42%),
    rgba(8, 9, 13, 0.035);
  color: var(--text);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice:hover {
  border-color: rgba(47, 124, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(36, 213, 255, 0.13), transparent 54%),
    rgba(47, 124, 255, 0.06);
  transform: translateY(-1px);
}

.choice.is-selected {
  border-color: rgba(47, 124, 255, 0.72);
  background: linear-gradient(135deg, rgba(47, 124, 255, 0.14), rgba(255, 79, 216, 0.08));
  box-shadow: inset 0 0 0 1px rgba(47, 124, 255, 0.12);
}

.choice-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #07111f;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(36, 213, 255, 0.2), 0 0 18px rgba(36, 213, 255, 0.12);
}

.choice-label {
  min-width: 0;
  font-weight: 850;
  line-height: 1.35;
}

.choice-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(36, 213, 255, 0.28);
  border-radius: 50%;
}

.choice.is-selected .choice-check {
  border-color: var(--blue);
  background: var(--blue);
}

.choice.is-selected .choice-check::before {
  content: "\2713";
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  transform: translateY(-1px);
}

.signal-panel {
  align-self: center;
  padding: 12px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(36, 213, 255, 0.035) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(7, 12, 22, 0.96);
  color: var(--text);
}

.quiz-scene .signal-panel {
  background:
    repeating-linear-gradient(90deg, rgba(36, 213, 255, 0.03) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%),
    rgba(7, 12, 22, 0.86);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(36, 213, 255, 0.05);
}

.dash-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dash-title span::before {
  content: "SYS/";
  color: var(--cyan);
}

.dash-title b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
}

.dash-title b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(38, 217, 132, 0.12);
  animation: statusPulse 1300ms ease-in-out infinite;
}

.order-tape {
  position: relative;
  height: 178px;
  margin-bottom: 12px;
  overflow: hidden;
}

.model-accordion,
.model-chart,
.order-tape {
  min-width: 0;
  max-width: 100%;
}

.code-terminal {
  margin-top: 10px;
  height: 154px;
  overflow: hidden;
  border: 1px solid rgba(36, 213, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 213, 255, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.code-terminal div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(36, 213, 255, 0.13);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.code-terminal b {
  color: var(--green);
}

.code-terminal pre {
  margin: 0;
  max-width: 100%;
  height: 112px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 9px 10px 11px;
  color: rgba(220, 248, 255, 0.86);
  font: 11px/1.65 Consolas, "SFMono-Regular", ui-monospace, monospace;
  white-space: pre-wrap;
}

.code-terminal pre::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 4px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: caretBlink 900ms steps(1) infinite;
}

.order-tape::before,
.order-tape::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
}

.order-tape::before {
  top: 0;
  background: linear-gradient(rgba(10, 10, 14, 0.96), transparent);
}

.order-tape::after {
  bottom: 0;
  background: linear-gradient(transparent, rgba(10, 10, 14, 0.96));
}

.order-stream {
  display: grid;
  gap: 7px;
  animation: orderStream 12.8s linear infinite;
  will-change: transform;
}

.order-tape span {
  display: grid;
  grid-template-columns: 58px 62px 42px minmax(0, 1fr) 64px 52px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(36, 213, 255, 0.06), transparent),
    linear-gradient(90deg, rgba(47, 124, 255, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.052);
  box-shadow: inset 3px 0 0 rgba(47, 124, 255, 0.58);
}

.order-tape b,
.order-tape small,
.order-tape mark,
.order-tape em,
.order-tape strong,
.order-tape i {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-tape mark {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(47, 124, 255, 0.16);
  color: #9cc0ff;
}

.order-tape mark.stock {
  background: rgba(255, 79, 216, 0.15);
  color: #ffacec;
}

.order-tape mark.etf {
  background: rgba(255, 189, 62, 0.14);
  color: #ffd68a;
}

.order-tape mark.index {
  background: rgba(36, 213, 255, 0.14);
  color: #98ebff;
}

.order-tape mark.hyper {
  background: rgba(38, 217, 132, 0.14);
  color: #94f0bf;
}

.order-tape mark.futures,
.order-tape mark.options {
  background: rgba(123, 97, 255, 0.15);
  color: #c9bdff;
}

.order-tape mark.fx,
.order-tape mark.rates {
  background: rgba(36, 213, 255, 0.13);
  color: #9af0ff;
}

.order-tape mark.statarb,
.order-tape mark.market,
.order-tape mark.news,
.order-tape mark.onchain,
.order-tape mark.credit,
.order-tape mark.commod,
.order-tape mark.vol,
.order-tape mark.basket,
.order-tape mark.arb {
  background: rgba(47, 124, 255, 0.16);
  color: #a9c7ff;
}

.order-tape small {
  color: #ffffff;
}

.order-tape b {
  color: var(--green);
}

.order-tape b.sell {
  color: var(--pink);
}

.order-tape b.hold {
  color: var(--amber);
}

.order-tape em,
.order-tape i {
  color: var(--muted);
}

.order-tape strong {
  color: #ffffff;
  text-align: right;
}

.model-accordion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.model-accordion button {
  min-width: 0;
  min-height: 46px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 213, 255, 0.06), transparent 58%),
    rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.model-accordion button:hover,
.model-accordion button.is-active {
  border-color: rgba(47, 124, 255, 0.56);
  background: rgba(47, 124, 255, 0.14);
  transform: translateY(-1px);
}

.model-accordion span,
.model-accordion b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-accordion span {
  font-size: 10px;
  font-weight: 850;
}

.model-accordion b {
  margin-top: 4px;
  color: #ffffff;
  font-size: 15px;
}

.model-chart {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(36, 213, 255, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.035);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
}

.model-chart-head {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.model-chart-head b {
  color: var(--green);
}

.model-chart svg {
  position: absolute;
  inset: 22px 0 0;
  width: 100%;
  height: calc(100% - 42px);
}

.model-chart-fill {
  opacity: 0.42;
}

.model-chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 220ms ease;
}

.model-axis {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 800;
}

.model-axis span:nth-child(n + 2) {
  text-align: center;
}

.model-axis span:last-child {
  text-align: right;
}

.bottom-actions {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: 22px;
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(160px, 340px);
  gap: 12px;
  width: min(680px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.result-scene {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.success-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}

.success-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(36, 213, 255, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent, rgba(36, 213, 255, 0.34), transparent) 0 0 / 42% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 79, 216, 0.18), transparent) 100% 0 / 1px 46% no-repeat;
  opacity: 0.72;
  animation: successEdgeScan 4.2s linear infinite;
  pointer-events: none;
}

.success-orbit {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  border: 1px solid rgba(47, 124, 255, 0.24);
  border-radius: 50%;
  background: rgba(47, 124, 255, 0.1);
}

.success-orbit::before,
.success-orbit::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(47, 124, 255, 0.18);
  border-radius: 50%;
  animation: orbitPulse 1.8s ease-out infinite;
}

.success-orbit::after {
  animation-delay: 650ms;
}

.success-orbit span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 38px;
  font-weight: 950;
}

.success-card h1 {
  margin-left: auto;
  margin-right: auto;
}

.result-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.result-grid article {
  padding: 16px;
  border: 1px solid rgba(8, 9, 13, 0.1);
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.04);
  text-align: left;
}

.result-grid strong {
  display: block;
  color: var(--blue);
  margin-bottom: 8px;
}

.result-grid span {
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.45;
}

.result-actions {
  position: relative;
  z-index: 2;
  justify-content: center;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.success-confetti {
  position: absolute;
  width: 8px;
  height: 18px;
  border-radius: 3px;
  background: var(--blue);
  opacity: 0;
  animation: sparkFly 1200ms ease-out infinite;
}

.success-confetti-a {
  left: 22%;
  top: 28%;
  background: var(--cyan);
  animation-delay: 120ms;
}

.success-confetti-b {
  left: 74%;
  top: 24%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  animation-delay: 280ms;
}

.success-confetti-c {
  left: 18%;
  top: 64%;
  background: var(--pink);
  animation-delay: 440ms;
}

.success-confetti-d {
  left: 80%;
  top: 62%;
  background: var(--green);
  animation-delay: 600ms;
}

.success-confetti-e {
  left: 34%;
  top: 18%;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #7b61ff;
  animation-delay: 760ms;
}

.success-confetti-f {
  left: 66%;
  top: 70%;
  background: var(--amber);
  animation-delay: 920ms;
}

.enter-forward {
  animation: slideForward 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.enter-back {
  animation: slideBack 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes slideForward {
  from {
    opacity: 0;
    transform: translateX(44px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideBack {
  from {
    opacity: 0;
    transform: translateX(-44px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes progressFlow {
  to {
    background-position: 200% 0;
  }
}

@keyframes terminalScan {
  0% {
    transform: translateY(-8%);
  }
  100% {
    transform: translateY(8%);
  }
}

@keyframes circuitMoveX {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12%,
  58% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + var(--len)));
  }
}

@keyframes circuitMoveY {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  12%,
  58% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translateY(calc(100vh + var(--len)));
  }
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hudSweep {
  0%,
  100% {
    opacity: 0.18;
    transform: scaleX(0.26);
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

@keyframes tickerMove {
  to {
    transform: translateX(-42px);
  }
}

@keyframes quoteTicker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes orderStream {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glowLine {
  to {
    filter: drop-shadow(0 0 10px rgba(47, 124, 255, 0.7));
  }
}

@keyframes scanChart {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
  90% {
    transform: translateX(390px);
    opacity: 0;
  }
}

@keyframes meterBreathe {
  to {
    opacity: 0.64;
  }
}

@keyframes statusPulse {
  50% {
    box-shadow: 0 0 0 10px rgba(38, 217, 132, 0);
  }
}

@keyframes pulseLine {
  50% {
    transform: scaleY(5);
    opacity: 0.78;
  }
}

@keyframes orbitPulse {
  to {
    opacity: 0;
    transform: scale(1.38);
  }
}

@keyframes successSweep {
  0% {
    background-position: -42% 0, 100% -46%;
    opacity: 0.46;
  }
  35% {
    opacity: 0.78;
  }
  50% {
    background-position: 142% 0, 100% 146%;
  }
  100% {
    background-position: 142% 100%, 0 146%;
    opacity: 0.46;
  }
}

@keyframes sparkFly {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(0deg) scale(0.7);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-34px) rotate(34deg) scale(1);
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding: 14px 14px 106px;
    background:
      radial-gradient(circle at 50% 42%, rgba(36, 213, 255, 0.13), transparent 42%),
      linear-gradient(115deg, transparent 0 16%, rgba(36, 213, 255, 0.07) 16.1% 16.4%, transparent 16.5% 100%),
      linear-gradient(135deg, rgba(3, 6, 12, 0.54) 0%, rgba(8, 17, 31, 0.42) 54%, rgba(3, 4, 7, 0.56) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
  }

  .page-shell::before {
    opacity: 0.24;
  }

  .bg-grid {
    opacity: 0.56;
  }

  main::before,
  main::after {
    display: none;
  }

  .topbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .globe-canvas {
    opacity: 0.58;
  }

  .tech-radar {
    grid-template-columns: 54px 1fr;
    gap: 10px;
  }

  .radar-core {
    width: 48px;
    height: 48px;
  }

  .brand {
    justify-self: start;
    min-width: 0;
    padding: 7px 9px;
    font-size: 14px;
  }

  .brand-mark {
    flex-basis: 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand-mark b {
    font-size: 14px;
  }

  .lang-trigger {
    width: 164px;
    grid-template-columns: 7px 18px minmax(0, 1fr) max-content 16px;
    gap: 6px;
  }

  .scene {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 26px;
  }

  .intro-scene {
    padding-top: 22px;
  }

  .market-card {
    min-height: 300px;
  }

  .chart {
    height: 160px;
  }

  .choices.multi {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 62px;
  }

  .signal-panel {
    display: block;
    align-self: stretch;
    padding: 10px;
    background:
      repeating-linear-gradient(90deg, rgba(36, 213, 255, 0.03) 0 1px, transparent 1px 13px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
      rgba(7, 12, 22, 0.82);
  }

  .quiz-scene .question-panel,
  .quiz-scene .signal-panel {
    background:
      linear-gradient(135deg, rgba(36, 213, 255, 0.09), transparent 40%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 46%),
      rgba(7, 12, 22, 0.68);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(36, 213, 255, 0.06);
    backdrop-filter: blur(12px);
  }

  .order-tape {
    height: 142px;
  }

  .order-tape span {
    grid-template-columns: 52px 58px 40px minmax(0, 1fr) 58px;
    min-height: 32px;
  }

  .order-tape i {
    display: none;
  }

  .model-chart {
    height: 132px;
  }

  .code-terminal pre {
    max-height: 92px;
  }

  .bottom-actions {
    bottom: 14px;
    grid-template-columns: 104px 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 34px;
  }

  .question-panel h1 {
    font-size: 28px;
  }

  .intro-copy,
  .question-panel,
  .success-card {
    padding: 22px 16px;
  }

  .market-card {
    padding: 16px;
  }

  .lang-menu {
    right: -4px;
  }
}
