:root {
  color-scheme: dark;
  --bg: #090b18;
  --bg-soft: #121632;
  --bg-deep: #050711;
  --panel: rgba(13, 16, 34, 0.82);
  --panel-strong: rgba(16, 19, 40, 0.96);
  --line: rgba(135, 130, 255, 0.22);
  --text: #f6f4ef;
  --text-soft: #c3c8de;
  --mint: #6ef0d0;
  --orange: #ffb438;
  --purple: #7366f2;
  --red: #ff667e;
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-strong: rgba(255, 255, 255, 0.14);
  --chip-surface: rgba(255, 255, 255, 0.05);
  --chip-surface-strong: rgba(255, 255, 255, 0.06);
  --surface-panel: linear-gradient(180deg, rgba(16, 20, 42, 0.94), rgba(7, 9, 18, 0.95));
  --surface-panel-strong: linear-gradient(180deg, rgba(15, 18, 36, 0.94), rgba(9, 10, 20, 0.92));
  --surface-panel-feature:
    radial-gradient(circle at 18% 18%, rgba(110, 240, 208, 0.12), transparent 26%),
    radial-gradient(circle at 85% 22%, rgba(255, 180, 56, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(16, 20, 42, 0.94), rgba(7, 9, 18, 0.95));
  --surface-panel-warm:
    radial-gradient(circle at top right, rgba(255, 180, 56, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(14, 18, 40, 0.94), rgba(7, 9, 18, 0.95));
  --surface-panel-reward:
    radial-gradient(circle at 50% 18%, rgba(255, 180, 56, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(16, 20, 42, 0.94), rgba(7, 9, 18, 0.96));
  --shadow: 0 36px 120px rgba(0, 0, 0, 0.34);
  --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.24);
  --shadow-panel-hover: 0 34px 74px rgba(0, 0, 0, 0.3);
  --shadow-floating: 0 22px 60px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --orbit-rail-width: clamp(118px, 9vw, 172px);
  --mobile-dock-height: 82px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(110, 240, 208, 0.12), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(255, 180, 56, 0.12), transparent 24%),
    radial-gradient(circle at 52% -10%, rgba(115, 102, 242, 0.12), transparent 28%),
    linear-gradient(180deg, #080a15 0%, #0d1020 42%, #050711 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
strong,
small,
a,
li,
span {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  isolation: isolate;
  padding: 24px clamp(18px, 4vw, 42px) 64px;
  --pointer-x: 50%;
  --pointer-y: 32%;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

.ambient-a {
  left: -12vw;
  top: 18vh;
  background: rgba(110, 240, 208, 0.16);
}

.ambient-b {
  right: -10vw;
  top: 42vh;
  background: rgba(255, 180, 56, 0.12);
}

.grid-sky {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  opacity: 0.5;
  z-index: -3;
}

.ai-sky,
.scanlines,
.noise-mask,
.data-streams {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ai-sky {
  z-index: -4;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.scanlines {
  z-index: -2;
  opacity: 0.22;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px 160px);
  background-size: 100% 4px, 160px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 95%);
}

.noise-mask {
  z-index: -1;
  opacity: 0.12;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.4px),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.2px);
  background-size: 24px 24px, 32px 32px, 20px 20px;
  mix-blend-mode: screen;
}

.data-streams {
  z-index: -1;
  overflow: hidden;
}

.data-streams span {
  position: absolute;
  top: -30%;
  left: var(--stream-left);
  width: 1px;
  height: 160%;
  opacity: 0.4;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(110, 240, 208, 0.05) 8%,
      rgba(110, 240, 208, 0.35) 34%,
      rgba(255, 180, 56, 0.1) 66%,
      transparent 100%
    );
  box-shadow: 0 0 18px rgba(110, 240, 208, 0.22);
  animation: data-fall var(--stream-duration) linear infinite;
  animation-delay: var(--stream-delay);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 24px;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.16) 26%, transparent 28%),
    linear-gradient(135deg, var(--mint), var(--orange));
  box-shadow: 0 0 24px rgba(110, 240, 208, 0.55);
  animation: pulse-glow 2.8s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.topnav {
  display: flex;
  gap: 18px;
  color: var(--text-soft);
  font-weight: 700;
}

.mobile-dock {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 240, 208, 0.18);
  background:
    linear-gradient(180deg, rgba(16, 21, 44, 0.92), rgba(7, 9, 18, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 34px rgba(0, 0, 0, 0.22);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), #c2fff3);
  box-shadow: 0 0 18px rgba(110, 240, 208, 0.66);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.status-pill strong,
.status-pill small {
  display: block;
}

.status-pill strong {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill small {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.topnav a {
  position: relative;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  transition: transform 220ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after,
.topnav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.topnav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: clamp(18px, 5vw, 42px) 0 42px;
}

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

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.hero-kickers span,
.command-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-kickers span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-kickers span::before,
.command-card span::before,
.stage-hud span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--orange));
  box-shadow: 0 0 12px rgba(110, 240, 208, 0.46);
}

.hero h1,
.story-panel h2,
.playground h2,
.channel-strip h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  max-width: 11ch;
}

.hero h1 span {
  display: block;
  color: var(--orange);
}

.hero-text,
.story-panel p,
.playground-copy p,
.channel-copy p {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
  max-width: 60ch;
}

.hero-actions,
.channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.mission-wire {
  position: relative;
  margin: 0 0 22px;
  padding: 18px 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(255, 180, 56, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 16, 34, 0.96), rgba(8, 10, 20, 0.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mission-wire::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(110, 240, 208, 0.12) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: scan 6.5s linear infinite;
}

.mission-wire-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-wire-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(110, 240, 208, 0.72);
}

.mission-wire strong,
.game-record strong {
  display: block;
  position: relative;
  margin-bottom: 8px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.mission-wire p,
.game-secret {
  position: relative;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.command-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.command-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 180, 56, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 48, 0.94), rgba(8, 10, 18, 0.92));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.command-card strong {
  display: block;
  margin: 14px 0 6px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.command-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.52;
  font-size: 0.92rem;
}

.hero-companion {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-companion-icon {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.hero-companion span {
  display: block;
  margin-bottom: 4px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-companion strong {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

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

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button-primary {
  color: #08101c;
  background: linear-gradient(135deg, var(--mint), #8ef7e3 65%, var(--orange));
  box-shadow: 0 24px 48px rgba(110, 240, 208, 0.22);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  color: var(--text);
  background: var(--chip-surface);
  border: 1px solid var(--panel-border-strong);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-strip > div,
.story-panel,
.channel-strip,
.game-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 18, 36, 0.94), rgba(9, 10, 20, 0.92));
  box-shadow: var(--shadow);
}

.signal-strip > div::before,
.story-panel::before,
.channel-strip::before,
.game-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 48%, transparent 100%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 220ms ease;
}

.signal-strip > div:hover::before,
.story-panel:hover::before,
.channel-strip:hover::before,
.game-shell:hover::before {
  opacity: 1;
}

.signal-strip > div {
  padding: 18px;
}

.signal-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  color: var(--text);
}

.signal-strip span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-stage {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  --stage-glow:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(110, 240, 208, 0.16), transparent 24%),
    radial-gradient(circle at 62% 18%, rgba(255, 180, 56, 0.12), transparent 18%);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: var(--stage-glow);
  filter: blur(24px);
  opacity: 0.92;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 42%, transparent 72%);
  opacity: 0.75;
}

.hero-lattice {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(115, 102, 242, 0.2), transparent 58%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 34px);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 30%, transparent 78%);
  opacity: 0.42;
  animation: spin 24s linear infinite reverse;
}

.orbit-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: spin 14s linear infinite;
}

.orbit-ring-a {
  width: min(84vw, 640px);
  height: min(84vw, 640px);
}

.orbit-ring-b {
  width: min(64vw, 520px);
  height: min(64vw, 520px);
  border-style: dashed;
  animation-duration: 18s;
  animation-direction: reverse;
}

.stage-badge {
  position: absolute;
  top: 12%;
  right: 8%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-hud {
  position: absolute;
  width: min(230px, 34vw);
  padding: 18px 18px 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 21, 44, 0.88), rgba(8, 10, 18, 0.9));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.stage-hud-left {
  left: 0;
  top: 20%;
}

.stage-hud-right {
  right: 0;
  bottom: 12%;
}

.stage-hud span {
  color: var(--mint);
}

.stage-hud strong {
  display: block;
  margin: 14px 0 8px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.stage-hud p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.stage-drone {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, rgba(110, 240, 208, 0.9), rgba(255, 180, 56, 0.92));
  box-shadow:
    0 0 24px rgba(110, 240, 208, 0.4),
    0 18px 26px rgba(0, 0, 0, 0.2);
}

.stage-drone::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: spin 6s linear infinite;
}

.stage-drone-a {
  left: 14%;
  top: 12%;
  animation: drone-drift 7.2s ease-in-out infinite;
}

.stage-drone-b {
  right: 18%;
  top: 26%;
  animation: drone-drift 8.4s ease-in-out infinite reverse;
}

.stage-drone-c {
  left: 22%;
  bottom: 14%;
  animation: drone-drift 9.2s ease-in-out infinite;
}

.robot-card {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  padding: 46px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 30% 22%, rgba(110, 240, 208, 0.2), transparent 24%),
    radial-gradient(circle at 70% 14%, rgba(255, 180, 56, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(19, 23, 52, 0.95), rgba(10, 12, 24, 0.94));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.robot-card::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 34px;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(110, 240, 208, 0.18), transparent 32%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.robot-card::after {
  content: "";
  position: absolute;
  inset: auto 8% 10% 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 240, 208, 0.72), transparent);
  filter: blur(0.2px);
  animation: scan 7.2s linear infinite;
}

.robot-card-glow {
  position: absolute;
  inset: auto 8% 10% 8%;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(18px);
}

.robot-portrait-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 348px);
  display: flex;
  justify-content: center;
}

.robot-profile {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.4));
  animation: float 4.6s ease-in-out infinite;
}

.speech-callout {
  position: absolute;
  top: 40px;
  right: 18px;
  max-width: 240px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 180, 56, 0.55);
  background: rgba(11, 14, 28, 0.92);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  animation: float 6s ease-in-out infinite;
}

.speech-callout::after {
  content: "";
  position: absolute;
  right: 68px;
  bottom: -16px;
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(255, 180, 56, 0.55);
  border-bottom: 1px solid rgba(255, 180, 56, 0.55);
  background: rgba(11, 14, 28, 0.92);
  transform: rotate(45deg);
}

.speech-callout span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.speech-callout p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}

.hero-pills {
  position: absolute;
  left: 5%;
  bottom: 4%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 360px;
}

.hero-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 64px;
}

.story-panel {
  grid-column: span 4;
  padding: 28px;
}

.story-panel-wide {
  grid-column: span 7;
}

.story-panel-dark {
  grid-column: span 5;
  background:
    radial-gradient(circle at top right, rgba(115, 102, 242, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(9, 12, 28, 0.95), rgba(6, 7, 14, 0.96));
}

.story-panel-neural {
  grid-column: span 5;
  min-height: 320px;
  background:
    radial-gradient(circle at 25% 20%, rgba(110, 240, 208, 0.14), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(255, 180, 56, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(14, 18, 40, 0.94), rgba(7, 9, 18, 0.96));
}

.neural-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 34px;
  margin-top: 24px;
  padding: 18px 8px 4px;
}

.neural-grid::before {
  content: "";
  position: absolute;
  inset: 24px 18px 12px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: calc(100% / 3) calc(100% / 2);
  opacity: 0.32;
}

.neural-grid span {
  --node-scale: 1;
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--orange));
  box-shadow: 0 0 18px rgba(110, 240, 208, 0.46);
  animation: neural-pulse 2.8s ease-in-out infinite;
  transform: scale(var(--node-scale));
}

.neural-grid span:nth-child(2n) {
  animation-delay: -0.5s;
}

.neural-grid span:nth-child(3n) {
  animation-delay: -1.1s;
}

.neural-grid span.is-core {
  --node-scale: 1.4;
  background: linear-gradient(135deg, #fff1a8, var(--orange));
  box-shadow: 0 0 28px rgba(255, 180, 56, 0.62);
}

.panel-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.panel-icon-mint {
  background: linear-gradient(135deg, var(--mint), rgba(110, 240, 208, 0.2));
}

.panel-icon-orange {
  background: linear-gradient(135deg, var(--orange), rgba(255, 180, 56, 0.2));
}

.story-panel h2,
.playground h2,
.channel-strip h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.story-panel h3 {
  margin: 0 0 12px;
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
}

.signal-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
}

.signal-list span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--orange));
  box-shadow: 0 0 22px rgba(110, 240, 208, 0.45);
}

.episode-vault,
.mission-hub {
  margin: 24px 0 74px;
}

.vault-head,
.mission-hub-copy {
  max-width: 68ch;
  margin-bottom: 22px;
  min-width: 0;
}

.vault-head h2,
.mission-hub h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.96;
}

.vault-head p,
.mission-hub-copy p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.orbit-safe {
  position: relative;
}

.vault-signal,
.mission-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.vault-signal > div,
.mission-context > div {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--panel-border);
  background: var(--surface-panel-strong);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.vault-signal span,
.mission-context span {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vault-signal strong,
.mission-context strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.1;
}

.mission-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--orange);
  font-weight: 800;
}

.mission-source::after {
  content: ">";
  font-size: 0.92rem;
}

.vault-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  margin-bottom: 22px;
  border-radius: 34px;
  border: 1px solid var(--panel-border);
  background: var(--surface-panel-feature);
  box-shadow: var(--shadow);
}

.vault-feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--panel-border);
  min-height: 100%;
}

.vault-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transform: scale(1.01);
}

.vault-feature-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 17, 0.92));
}

.vault-feature-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(7, 10, 22, 0.86);
  border: 1px solid rgba(255, 180, 56, 0.3);
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vault-feature-copy h3,
.episode-card h3,
.mission-task h3,
.mission-reward strong {
  margin: 0;
  font-family: "Syne", sans-serif;
}

.vault-feature-copy {
  min-width: 0;
}

.vault-feature-copy h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 14px;
  max-width: 12ch;
  text-wrap: balance;
}

.vault-feature-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.feature-chips span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--chip-surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.episode-card {
  grid-column: span 3;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  background: var(--surface-panel);
  box-shadow: var(--shadow-panel);
  transition:
    transform 260ms var(--ease-out-quart),
    border-color 260ms ease,
    box-shadow 260ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 340px 420px;
}

.episode-card:hover,
.episode-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(110, 240, 208, 0.22);
  box-shadow: var(--shadow-panel-hover);
}

.episode-card-fresh {
  border-color: rgba(255, 180, 56, 0.22);
}

.episode-card-wide {
  grid-column: span 6;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: none;
}

.episode-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.episode-card-wide .episode-thumb {
  aspect-ratio: auto;
  min-height: 100%;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.94));
}

.episode-card-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 20px;
}

.episode-card-wide .episode-card-copy {
  padding: 22px 22px 22px 0;
}

.episode-card-top,
.mission-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.episode-id,
.mission-level {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.episode-tag,
.mission-time {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--chip-surface-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.episode-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  max-width: 14ch;
  text-wrap: balance;
}

.episode-card-wide h3 {
  font-size: clamp(1.75rem, 2.5vw, 2.3rem);
  max-width: 13ch;
}

.episode-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.62;
  font-size: 0.94rem;
}

.episode-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--orange);
  font-weight: 800;
}

.episode-link::after {
  content: ">";
  font-size: 0.92rem;
}

.mission-hub {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.mission-progress-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid var(--panel-border);
  background: var(--surface-panel-warm);
  box-shadow: var(--shadow-panel);
}

.mission-progress-panel strong {
  display: block;
  margin-bottom: 14px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.08;
  text-wrap: balance;
}

.mission-progress-panel p {
  margin: 12px 0 0;
}

.mission-progress-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--chip-surface-strong);
  overflow: hidden;
}

.mission-progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), #9cf7e2, var(--orange));
  box-shadow: 0 0 24px rgba(110, 240, 208, 0.3);
  transition: width 320ms var(--ease-out-quart);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  grid-template-areas:
    "featured reward"
    "invent reward"
    "family reward";
  gap: 18px;
}

.mission-task,
.mission-reward {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface-panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-panel);
  content-visibility: auto;
  contain-intrinsic-size: 320px 360px;
}

.mission-task::before,
.mission-reward::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 240ms ease;
}

.mission-task:hover::before,
.mission-reward:hover::before {
  opacity: 1;
}

.mission-task h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-wrap: balance;
}

.mission-task p,
.mission-reward p {
  color: var(--text-soft);
  line-height: 1.62;
}

.mission-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 20px;
  list-style: none;
}

.mission-points li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 700;
}

.mission-toggle {
  min-width: 100%;
  margin-top: auto;
}

.mission-task.is-complete {
  border-color: rgba(110, 240, 208, 0.3);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(110, 240, 208, 0.18),
    0 0 52px rgba(110, 240, 208, 0.08);
}

.mission-task.is-complete .mission-toggle {
  color: #09131a;
  background: linear-gradient(135deg, var(--mint), #bbfff2);
  border-color: transparent;
}

.mission-reward {
  grid-area: reward;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-panel-reward);
}

.mission-task[data-mission="sensor"] {
  grid-area: featured;
}

.mission-task[data-mission="invent"] {
  grid-area: invent;
}

.mission-task[data-mission="family"] {
  grid-area: family;
}

.mission-task-featured {
  background:
    radial-gradient(circle at 14% 18%, rgba(110, 240, 208, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(16, 22, 44, 0.95), rgba(7, 9, 18, 0.96));
}

.mission-badge-core {
  width: 110px;
  height: 110px;
  margin: 8px 0 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, rgba(110, 240, 208, 0.94), rgba(255, 180, 56, 0.82));
  box-shadow:
    0 0 40px rgba(110, 240, 208, 0.26),
    inset 0 0 0 10px rgba(7, 9, 18, 0.3);
  animation: pulse-glow 3.2s ease-in-out infinite;
}

.mission-reward strong {
  display: block;
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 10px;
}

.mission-signal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--panel-border);
}

.mission-signal span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-signal p {
  margin: 0;
}

.playground {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  margin: 30px 0 70px;
}

.playground-hud {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.playground-hud > div {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.playground-hud strong,
.game-chip span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.playground-hud span,
.game-chip strong {
  color: var(--text-soft);
}

.game-shell {
  padding: 18px;
}

.game-shell::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(110, 240, 208, 0.08);
  pointer-events: none;
}

.game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.game-chip {
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#robotito-game {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 20%, rgba(110, 240, 208, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(18, 23, 48, 0.95), rgba(8, 10, 20, 0.95));
}

.game-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.game-record {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
}

.game-record strong {
  margin: 6px 0 0;
}

.game-secret {
  max-width: 38ch;
  text-align: right;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
}

.legend-dot-mint {
  background: var(--mint);
}

.legend-dot-red {
  background: var(--red);
}

.legend-dot-purple {
  background: var(--purple);
}

.channel-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.channel-scan {
  min-width: min(280px, 100%);
  padding: 20px 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(110, 240, 208, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(15, 19, 38, 0.92), rgba(8, 10, 18, 0.9));
}

.scan-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  margin-bottom: 12px;
}

.scan-bars span {
  flex: 1;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(110, 240, 208, 0.96), rgba(255, 180, 56, 0.32));
  box-shadow: 0 0 20px rgba(110, 240, 208, 0.24);
  animation: signal-bars 2.4s ease-in-out infinite;
}

.scan-bars span:nth-child(2) {
  animation-delay: -0.2s;
}

.scan-bars span:nth-child(3) {
  animation-delay: -0.45s;
}

.scan-bars span:nth-child(4) {
  animation-delay: -0.7s;
}

.scan-bars span:nth-child(5) {
  animation-delay: -0.95s;
}

.scan-bars span:nth-child(6) {
  animation-delay: -1.2s;
}

.scan-bars span:nth-child(7) {
  animation-delay: -1.45s;
}

.channel-scan p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.orbit-companion {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 18;
  width: clamp(120px, 14vw, 170px);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition:
    opacity 240ms ease,
    transform 220ms var(--ease-out-quart);
}

.orbit-companion.is-live {
  opacity: 1;
}

.orbit-companion-shell {
  position: relative;
  padding: 12px 14px 14px;
  border-radius: 30px;
  border: 1px solid rgba(115, 102, 242, 0.2);
  background:
    radial-gradient(circle at 30% 22%, rgba(110, 240, 208, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(14, 18, 40, 0.94), rgba(7, 9, 18, 0.92));
  box-shadow: var(--shadow-floating);
}

.orbit-companion-glow {
  position: absolute;
  inset: auto 12px -8px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(14px);
}

.orbit-companion-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 22px;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.28));
}

.orbit-companion-bubble {
  position: relative;
  z-index: 1;
  margin-top: -6px;
  padding: 12px 12px 2px;
}

.orbit-companion-bubble span {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.orbit-companion-bubble p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.32;
  font-weight: 700;
}

.orbit-companion[data-section="playground"] .orbit-companion-shell {
  border-color: rgba(115, 102, 242, 0.34);
}

.orbit-companion[data-section="universo"] .orbit-companion-shell {
  border-color: rgba(110, 240, 208, 0.28);
}

.orbit-companion[data-section="senal"] .orbit-companion-shell {
  border-color: rgba(255, 180, 56, 0.3);
}

.signal-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 28px));
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(110, 240, 208, 0.34);
  background: rgba(8, 10, 20, 0.9);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
}

.signal-toast.is-visible {
  animation: toast-pop 3.2s cubic-bezier(0.2, 0.75, 0.18, 1);
}

.cursor-spark {
  position: fixed;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 999px;
  background: var(--spark-color, var(--mint));
  box-shadow: 0 0 24px color-mix(in srgb, var(--spark-color, var(--mint)) 85%, transparent);
  pointer-events: none;
  z-index: 20;
  animation: spark-fade 700ms ease-out forwards;
}

body.turbo-mode .ambient-a {
  background: rgba(115, 102, 242, 0.22);
}

body.turbo-mode .ambient-b {
  background: rgba(255, 180, 56, 0.18);
}

body.turbo-mode .grid-sky {
  opacity: 0.72;
}

body.turbo-mode .robot-card,
body.turbo-mode .mission-wire {
  box-shadow:
    0 36px 120px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(115, 102, 242, 0.24),
    0 0 60px rgba(115, 102, 242, 0.16);
}

body.turbo-mode .stage-badge,
body.turbo-mode .button-primary {
  background: linear-gradient(135deg, #8f7aff, var(--orange));
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.75, 0.18, 1);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js-ready [data-reveal="zoom"] {
  transform: translateY(22px) scale(0.94);
}

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

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

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px rgba(110, 240, 208, 0.55);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 32px rgba(255, 180, 56, 0.45);
  }
}

@keyframes scan {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes toast-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  12%,
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes spark-fade {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2) translateY(-26px);
  }
}

@keyframes data-fall {
  from {
    transform: translateY(-12%);
  }
  to {
    transform: translateY(12%);
  }
}

@keyframes drone-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes neural-pulse {
  0%,
  100% {
    transform: scale(var(--node-scale));
    box-shadow: 0 0 18px rgba(110, 240, 208, 0.46);
  }
  45% {
    transform: scale(calc(var(--node-scale) * 1.16));
    box-shadow: 0 0 30px rgba(255, 180, 56, 0.28);
  }
}

@keyframes signal-bars {
  0%,
  100% {
    height: 28%;
    opacity: 0.72;
  }
  40% {
    height: 96%;
    opacity: 1;
  }
  70% {
    height: 58%;
    opacity: 0.84;
  }
}

@media (max-width: 1100px) {
  .hero,
  .playground,
  .mission-hub,
  .vault-feature {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 620px;
  }

  .story-panel-wide,
  .story-panel-dark,
  .story-panel,
  .story-panel-neural {
    grid-column: span 12;
  }

  .channel-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .command-deck {
    grid-template-columns: 1fr;
  }

  .stage-hud {
    width: min(240px, 42vw);
  }

  .episode-grid,
  .mission-grid {
    gap: 18px;
  }

  .episode-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .episode-card {
    grid-column: span 3;
  }

  .episode-card-wide {
    grid-column: span 6;
  }

  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "featured reward"
      "invent family";
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 18px 14px calc(var(--mobile-dock-height) + 52px);
  }

  .topbar,
  .topbar-side,
  .topnav,
  .game-topline,
  .game-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 28;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, calc(100vw - 18px));
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--panel-border);
    background: rgba(8, 10, 20, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
  }

  .mobile-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }

  .mobile-dock a[aria-current="page"] {
    color: var(--text);
    background: rgba(110, 240, 208, 0.14);
    border-color: rgba(110, 240, 208, 0.24);
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .vault-signal,
  .mission-context,
  .episode-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-areas:
      "featured"
      "invent"
      "family"
      "reward";
  }

  .episode-card,
  .episode-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .vault-feature {
    padding: 16px;
    border-radius: 26px;
  }

  .vault-feature-media img {
    min-height: 240px;
  }

  .mission-task,
  .mission-reward {
    padding: 18px;
  }

  .episode-card-wide .episode-card-copy {
    padding: 18px;
  }

  .status-pill {
    width: 100%;
  }

  .hero-stage {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .hero-companion {
    display: flex;
  }

  .hero-kickers {
    gap: 8px;
  }

  .orbit-companion {
    width: 86px;
  }

  .orbit-companion-shell {
    padding: 8px;
    border-radius: 22px;
  }

  .orbit-companion-bubble {
    display: none;
  }

  .robot-card {
    padding: 28px;
  }

  .stage-hud {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 14px;
  }

  .stage-drone {
    display: none;
  }

  .speech-callout {
    left: 16px;
    right: 16px;
    top: 18px;
    max-width: none;
  }

  .speech-callout::after {
    right: auto;
    left: 42px;
  }

  .hero-pills {
    position: static;
    margin-top: 22px;
  }

  .channel-scan {
    width: 100%;
  }

  .game-secret {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

  .orbit-companion {
    right: 14px;
    bottom: 16px;
    left: auto;
    top: auto;
    opacity: 1;
    transform: none !important;
  }

  .ai-sky,
  .data-streams,
  .scanlines,
  .noise-mask {
    display: none;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1180px) {
  .orbit-safe {
    padding-inline-end: var(--orbit-rail-width);
  }

  .episode-card:not(.episode-card-wide):nth-child(3n + 2) {
    margin-top: 24px;
  }
}

body.refined-ui {
  background:
    radial-gradient(circle at 16% 16%, rgba(110, 240, 208, 0.12), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(255, 180, 56, 0.1), transparent 20%),
    linear-gradient(180deg, #0a1020 0%, #08101b 56%, #070b14 100%);
}

body.refined-ui .scanlines,
body.refined-ui .noise-mask,
body.refined-ui .data-streams {
  display: none;
}

body.refined-ui .grid-sky {
  opacity: 0.18;
}

body.refined-ui .ambient {
  opacity: 0.24;
  filter: blur(88px);
}

body.refined-ui .topbar {
  gap: 20px;
  padding: 12px 0 8px;
}

body.refined-ui .topbar-side {
  margin-left: auto;
  gap: 18px;
}

body.refined-ui .topnav {
  align-items: center;
  gap: 24px;
  color: var(--text);
}

body.refined-ui .topnav a {
  font-size: 0.96rem;
}

body.refined-ui .topbar-cta {
  min-height: 44px;
  padding-inline: 18px;
}

body.refined-ui .button-primary {
  box-shadow: none;
}

body.refined-ui .button-ghost {
  background: transparent;
}

body.refined-ui .hero {
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 64px);
  min-height: auto;
  padding: clamp(26px, 6vw, 72px) 0 72px;
}

body.refined-ui .hero-copy {
  max-width: 36rem;
}

body.refined-ui .hero-companion,
body.refined-ui .hero-kickers,
body.refined-ui .mission-wire,
body.refined-ui .command-deck,
body.refined-ui .signal-strip,
body.refined-ui .stage-badge,
body.refined-ui .stage-hud,
body.refined-ui .stage-drone,
body.refined-ui .hero-pills,
body.refined-ui .orbit-ring-b {
  display: none;
}

body.refined-ui .hero h1 {
  max-width: 8ch;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

body.refined-ui .hero h1 span {
  color: inherit;
}

body.refined-ui .hero-text {
  max-width: 34rem;
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.68;
}

body.refined-ui .hero-actions {
  margin: 28px 0 24px;
}

body.refined-ui .hero-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body.refined-ui .hero-ledger > div {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 16, 29, 0.46);
  transition:
    transform 220ms var(--ease-out-quart),
    border-color 220ms ease,
    background 220ms ease;
}

body.refined-ui .hero-ledger strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

body.refined-ui .hero-ledger span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

body.refined-ui .hero-ledger > div:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 240, 208, 0.2);
  background: rgba(12, 18, 33, 0.72);
}

body.refined-ui .hero-stage {
  min-height: auto;
  padding: 28px 0 0;
}

body.refined-ui .hero-stage::before {
  inset: 18%;
  opacity: 0.58;
  filter: blur(42px);
}

body.refined-ui .hero-stage::after {
  inset: 14%;
  opacity: 0.42;
}

body.refined-ui .hero-lattice {
  inset: 18%;
  opacity: 0.18;
}

body.refined-ui .orbit-ring-a {
  width: min(78vw, 540px);
  height: min(78vw, 540px);
  border-color: rgba(255, 255, 255, 0.08);
}

body.refined-ui .robot-card {
  width: min(100%, 500px);
  padding: 36px 34px 52px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 24% 18%, rgba(110, 240, 208, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(13, 18, 34, 0.94), rgba(8, 11, 22, 0.96));
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.24);
}

body.refined-ui .robot-card::after {
  display: none;
}

body.refined-ui .robot-card-glow {
  inset: auto 10% 8% 10%;
  opacity: 0.64;
}

body.refined-ui .robot-portrait-frame {
  width: min(100%, 334px);
}

body.refined-ui .speech-callout {
  top: 20px;
  right: 20px;
  max-width: 208px;
  padding: 16px 18px;
}

body.refined-ui .stage-caption {
  max-width: 26rem;
  margin: 20px auto 0;
  text-align: center;
}

body.refined-ui .stage-caption strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

body.refined-ui .stage-caption p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

body.refined-ui .story-grid {
  gap: 16px;
  margin: 0 0 68px;
}

body.refined-ui .story-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 28, 0.54);
  box-shadow: none;
  transition:
    transform 240ms var(--ease-out-quart),
    border-color 240ms ease,
    background 240ms ease;
}

body.refined-ui .story-panel::before {
  display: none;
}

body.refined-ui .story-panel-wide {
  grid-column: span 12;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.refined-ui .story-panel:not(.story-panel-wide) {
  grid-column: span 4;
}

body.refined-ui .story-panel:not(.story-panel-wide):hover {
  transform: translateY(-2px);
  border-color: rgba(110, 240, 208, 0.18);
  background: rgba(12, 18, 33, 0.72);
}

body.refined-ui .story-panel h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  max-width: 11ch;
}

body.refined-ui .story-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

body.refined-ui .panel-icon,
body.refined-ui .neural-grid,
body.refined-ui .signal-list {
  display: none;
}

body.refined-ui .episode-vault,
body.refined-ui .mission-hub,
body.refined-ui .playground {
  margin-top: 0;
}

body.refined-ui .vault-head,
body.refined-ui .mission-hub-copy {
  max-width: 46rem;
}

body.refined-ui .vault-signal,
body.refined-ui .mission-context {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

body.refined-ui .vault-signal > div,
body.refined-ui .mission-context > div {
  min-width: 220px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

body.refined-ui .vault-signal strong,
body.refined-ui .mission-context strong {
  font-size: 1.1rem;
}

body.refined-ui .vault-feature {
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 28, 0.62);
  box-shadow: none;
}

body.refined-ui .vault-feature-media {
  border-radius: 22px;
}

body.refined-ui .vault-feature-copy h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

body.refined-ui .episode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.refined-ui .episode-card,
body.refined-ui .episode-card-wide {
  grid-column: auto;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-rows: none;
  align-items: stretch;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 28, 0.48);
  box-shadow: none;
  contain-intrinsic-size: 220px 180px;
}

body.refined-ui .episode-card:hover,
body.refined-ui .episode-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

body.refined-ui .episode-thumb {
  aspect-ratio: auto;
  min-height: 100%;
}

body.refined-ui .episode-card-copy,
body.refined-ui .episode-card-wide .episode-card-copy {
  padding: 16px 18px 18px 0;
}

body.refined-ui .episode-card h3,
body.refined-ui .episode-card-wide h3 {
  max-width: none;
  font-size: 1.32rem;
}

body.refined-ui .mission-hub {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
}

body.refined-ui .mission-progress-panel {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(10, 15, 28, 0.58);
  box-shadow: none;
}

body.refined-ui .mission-grid {
  grid-template-columns: 1fr;
  grid-template-areas: none;
  gap: 14px;
}

body.refined-ui .mission-task,
body.refined-ui .mission-reward,
body.refined-ui .mission-task-featured,
body.refined-ui .mission-task[data-mission="sensor"],
body.refined-ui .mission-task[data-mission="invent"],
body.refined-ui .mission-task[data-mission="family"] {
  grid-area: auto;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 28, 0.54);
  box-shadow: none;
}

body.refined-ui .mission-task-featured {
  background:
    radial-gradient(circle at 16% 18%, rgba(110, 240, 208, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(11, 17, 31, 0.92), rgba(8, 11, 22, 0.96));
}

body.refined-ui .mission-task::before,
body.refined-ui .mission-reward::before {
  display: none;
}

body.refined-ui .mission-points {
  margin: 14px 0 18px;
}

body.refined-ui .mission-reward {
  justify-content: flex-start;
}

body.refined-ui .playground {
  gap: 32px;
}

body.refined-ui .game-shell,
body.refined-ui .channel-strip,
body.refined-ui .signal-strip > div {
  box-shadow: none;
}

body.refined-ui .orbit-safe {
  padding-inline-end: 0;
}

body.refined-ui .orbit-companion {
  width: 92px;
}

body.refined-ui .orbit-companion[data-section="hero"],
body.refined-ui .orbit-companion[data-section="universo"] {
  opacity: 0 !important;
  transform: translate3d(0, 18px, 0) scale(0.92) !important;
}

body.refined-ui .orbit-companion-shell {
  padding: 10px;
  border-radius: 22px;
  background: rgba(9, 14, 26, 0.82);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

body.refined-ui .orbit-companion-glow,
body.refined-ui .orbit-companion-bubble {
  display: none;
}

body.refined-ui .orbit-companion-image {
  border-radius: 16px;
}

body.refined-ui .mobile-dock {
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 25, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

body.refined-ui .mobile-dock a {
  min-height: 42px;
  border-radius: 14px;
}

body.refined-ui .mobile-dock a[aria-current="page"] {
  background: rgba(110, 240, 208, 0.12);
}

body.refined-ui .js-ready [data-reveal] {
  transition:
    opacity 520ms ease,
    transform 520ms var(--ease-out-quart);
}

body.refined-ui .robot-profile {
  animation: refined-float 5.2s ease-in-out infinite;
}

body.refined-ui .episode-card:hover .episode-thumb img,
body.refined-ui .vault-feature:hover .vault-feature-media img {
  transform: scale(1.025);
  transition: transform 420ms var(--ease-out-quart);
}

body.refined-ui .mission-task:hover,
body.refined-ui .mission-reward:hover {
  transform: translateY(-2px);
  transition: transform 220ms var(--ease-out-quart);
}

@keyframes refined-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1024px) {
  body.refined-ui .hero,
  body.refined-ui .mission-hub,
  body.refined-ui .playground {
    grid-template-columns: 1fr;
  }

  body.refined-ui .topbar {
    align-items: flex-start;
  }

  body.refined-ui .topbar-side {
    width: 100%;
    justify-content: space-between;
  }

  body.refined-ui .story-panel:not(.story-panel-wide) {
    grid-column: span 12;
  }

  body.refined-ui .episode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.refined-ui .topbar {
    gap: 14px;
  }

  body.refined-ui .topbar-cta {
    display: none;
  }

  body.refined-ui .hero {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  body.refined-ui .hero h1 {
    max-width: 7ch;
    font-size: clamp(2.9rem, 14vw, 4.9rem);
  }

  body.refined-ui .hero-ledger {
    gap: 10px;
  }

  body.refined-ui .hero-ledger > div {
    min-width: 96px;
    padding: 12px 14px;
  }

  body.refined-ui .robot-card {
    padding: 30px 22px 42px;
  }

  body.refined-ui .speech-callout {
    left: 14px;
    right: 14px;
    top: 14px;
    max-width: none;
  }

  body.refined-ui .stage-caption {
    margin-top: 16px;
  }

  body.refined-ui .vault-signal,
  body.refined-ui .mission-context {
    gap: 14px;
  }

  body.refined-ui .vault-signal > div,
  body.refined-ui .mission-context > div {
    min-width: 0;
  }

  body.refined-ui .episode-card,
  body.refined-ui .episode-card-wide {
    grid-template-columns: 1fr;
  }

  body.refined-ui .episode-card-copy,
  body.refined-ui .episode-card-wide .episode-card-copy {
    padding: 16px;
  }

  body.refined-ui .episode-thumb {
    aspect-ratio: 16 / 9;
  }

  body.refined-ui .orbit-companion {
    display: none;
  }
}
