:root {
  --v5-canvas: #14110f;
  --v5-canvas-soft: #1b1714;
  --v5-surface: #211c18;
  --v5-vellum: #e6dcc7;
  --v5-muted: #aa9f8c;
  --v5-gold: #c7a566;
  --v5-gold-soft: rgba(199, 165, 102, 0.22);
  --v5-line: rgba(230, 220, 199, 0.13);
  --v5-radius: 8px;
}

html.codex-v5-ready,
html.codex-v5-ready body {
  background: var(--v5-canvas);
  color: var(--v5-vellum);
  overflow-x: clip;
}

html.codex-v5-ready body {
  min-height: 100%;
}

.codex-v5-ready .landing-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.codex-v5-ready .landing-topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  min-height: 72px;
  padding: 24px clamp(20px, 4vw, 64px);
  justify-content: flex-end;
  pointer-events: none;
}

.codex-v5-ready .landing-topbar .language-toggle {
  width: auto;
  padding: 0;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.codex-v5-ready .language-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--v5-muted);
  font: 600 12px/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.codex-v5-ready .language-button.is-active,
.codex-v5-ready .language-button:hover,
.codex-v5-ready .language-button:focus-visible {
  border-color: var(--v5-gold);
  color: var(--v5-vellum);
  background: transparent;
  transform: translateY(-2px);
}

.v5-page {
  width: 100%;
  background: var(--v5-canvas);
  color: var(--v5-vellum);
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
}

.v5-page *,
.v5-page *::before,
.v5-page *::after {
  box-sizing: border-box;
}

.codex-v5-ready .codex-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html[lang^="ru"] .v5-page [lang="en"],
html[lang^="en"] .v5-page [lang="ru"] {
  display: none !important;
}

.v5-hero {
  --v5-atlas-x: 0px;
  --v5-atlas-y: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
  min-height: 100dvh;
  padding: clamp(88px, 10vh, 118px) clamp(24px, 4vw, 64px) clamp(36px, 5vh, 56px);
  overflow: clip;
  background:
    radial-gradient(circle at 16% 58%, rgba(199, 165, 102, 0.09), transparent 29%),
    linear-gradient(90deg, rgba(230, 220, 199, 0.018), transparent 48%);
}

.v5-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: min(58%, 820px);
  background:
    radial-gradient(circle at 21% 76%, rgba(199, 165, 102, 0.13), transparent 20%),
    linear-gradient(110deg, rgba(199, 165, 102, 0.045), transparent 46%);
  pointer-events: none;
}

.v5-hero-atlas {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: min(57%, 800px);
  color: var(--v5-gold);
  opacity: 0.33;
  pointer-events: none;
  transform: translate3d(var(--v5-atlas-x), var(--v5-atlas-y), 0);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;
  mask-image: linear-gradient(90deg, #000 0 64%, transparent 100%);
}

.v5-hero-atlas svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v5-atlas-rings {
  transform-origin: 118px 174px;
  animation: v5-atlas-spin 42s linear infinite;
}

.v5-atlas-rings circle:nth-child(2) { stroke-dasharray: 7 16; }
.v5-atlas-rings circle:nth-child(3) { stroke-dasharray: 2 22; }

.v5-atlas-route {
  stroke-dasharray: 8 13;
  animation: v5-atlas-route 18s linear infinite;
}

.v5-atlas-route.route-branch-a { animation-delay: -4s; }
.v5-atlas-route.route-branch-b { animation-delay: -8s; }
.v5-atlas-route.route-branch-c { animation-delay: -12s; }

.v5-atlas-nodes circle {
  fill: var(--v5-canvas);
  transform-box: fill-box;
  transform-origin: center;
  animation: v5-atlas-node 4.2s ease-in-out infinite;
}

.v5-atlas-nodes circle:nth-child(2n) { animation-delay: -1.4s; }
.v5-atlas-nodes circle:nth-child(3n) { animation-delay: -2.8s; }

.v5-atlas-glyph {
  transform-origin: 0 0;
  animation: v5-atlas-glyph 9s ease-in-out infinite;
}

@keyframes v5-atlas-spin {
  to { transform: rotate(360deg); }
}

@keyframes v5-atlas-route {
  to { stroke-dashoffset: -210; }
}

@keyframes v5-atlas-node {
  0%, 100% { opacity: 0.35; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes v5-atlas-glyph {
  0%, 100% { opacity: 0.38; transform: rotate(-3deg) scale(0.96); }
  50% { opacity: 0.78; transform: rotate(3deg) scale(1.04); }
}

.v5-hero-copy {
  position: relative;
  z-index: 7;
  align-self: center;
  max-width: 520px;
}

.v5-hero h1,
.v5-section h2,
.v5-epilogue h2 {
  margin: 0;
  color: var(--v5-vellum);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.v5-hero h1 {
  max-width: 9ch;
  font-size: clamp(72px, 7.2vw, 118px);
  line-height: 0.88;
}

.v5-hero-genre {
  display: block;
  width: max-content;
  max-width: 30ch;
  margin-top: clamp(18px, 2.6vh, 26px);
  color: var(--v5-gold);
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v5-hero-lede {
  margin: clamp(24px, 4vh, 38px) 0 0;
  max-width: 28ch;
  color: var(--v5-gold);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.35;
}

.v5-hero-actions-slot {
  margin-top: clamp(28px, 4vh, 42px);
}

.v5-launch-zone {
  position: relative;
  width: max-content;
}

.v5-launch-zone::before,
.v5-launch-zone::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -26px;
  border: 1px solid rgba(199, 165, 102, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-62%);
}

.v5-launch-zone::before {
  width: 104px;
  height: 104px;
  border-style: dashed;
  animation: v5-launch-orbit 24s linear infinite;
}

.v5-launch-zone::after {
  width: 72px;
  height: 72px;
  opacity: 0.55;
}

.v5-hero #launch-button {
  inline-size: 286px;
  min-height: 64px;
  padding: 0 13px 1px 26px;
  font-family: "Geist", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.v5-hero #launch-button::after {
  content: "▶";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(33, 27, 19, 0.34);
  border-radius: 50%;
  font-size: 10px;
  opacity: 0.82;
}

.v5-hero #launch-button:hover::after,
.v5-hero #launch-button:focus-visible::after {
  transform: translateX(2px) scale(1.06);
}

@keyframes v5-launch-orbit {
  to { transform: translateY(-62%) rotate(360deg); }
}

.v5-hero-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .v5-page,
  .v5-page * {
    cursor: none !important;
  }

  .v5-hero-cursor {
    --v5-cursor-x: -80px;
    --v5-cursor-y: -80px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(230, 220, 199, 0.78);
    background: rgba(20, 17, 15, 0.26);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--v5-cursor-x), var(--v5-cursor-y), 0) translate(-50%, -50%) rotate(45deg);
    transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1), height 260ms cubic-bezier(0.16, 1, 0.3, 1), border-radius 260ms ease, border-color 260ms ease, background 260ms ease, opacity 160ms ease, transform 100ms linear;
  }

  .v5-hero-cursor.is-visible {
    opacity: 1;
  }

  .v5-hero-cursor i {
    width: 4px;
    height: 4px;
    background: var(--v5-gold);
    transform: rotate(-45deg);
    transition: width 240ms ease, height 240ms ease, clip-path 240ms ease, transform 240ms ease;
  }

  .v5-hero-cursor.is-action {
    width: 44px;
    height: 44px;
    border-color: rgba(199, 165, 102, 0.88);
    border-radius: 50%;
    background: rgba(20, 17, 15, 0.72);
    transform: translate3d(var(--v5-cursor-x), var(--v5-cursor-y), 0) translate(-50%, -50%) rotate(0deg);
  }

  .v5-hero-cursor.is-action i {
    width: 15px;
    height: 10px;
    background: var(--v5-vellum);
    clip-path: polygon(0 42%, 62% 42%, 62% 0, 100% 50%, 62% 100%, 62% 58%, 0 58%);
    transform: rotate(0deg);
  }

  .v5-hero-cursor.is-launch {
    width: 68px;
    height: 68px;
    border-color: var(--v5-gold);
    border-radius: 50%;
    background: rgba(20, 17, 15, 0.78);
    transform: translate3d(var(--v5-cursor-x), var(--v5-cursor-y), 0) translate(-50%, -50%) rotate(0deg);
  }

  .v5-hero-cursor.is-launch i {
    width: 15px;
    height: 18px;
    background: var(--v5-vellum);
    clip-path: polygon(12% 0, 100% 50%, 12% 100%);
    transform: translateX(2px) rotate(0deg);
  }
}

.v5-hero .hero-actions,
.v5-hero .hero-launch-shell {
  width: auto;
  display: flex;
  justify-content: flex-start;
}

.v5-hero #how-button {
  display: none;
}

.v5-page .button-primary,
.v5-page .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px 1px;
  border-radius: 2px;
  box-shadow: none;
  font-family: "Segoe UI Variable Text", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: none;
  animation: none;
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease;
}

.v5-page .button-primary {
  justify-content: space-between;
  gap: 20px;
  inline-size: 240px;
  border: 1px solid var(--v5-gold);
  background: var(--v5-gold);
  color: #211b13;
}

.v5-page .button-primary::after {
  content: "→";
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  font: 500 17px/1 "Segoe UI Variable Text", "Segoe UI", sans-serif;
  opacity: 0.68;
  transform: translateX(0);
  animation: none;
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-page .button-primary:hover,
.v5-page .button-primary:focus-visible {
  background: #d9bb82;
  color: #17120e;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(199, 165, 102, 0.18);
}

.v5-page .button-primary:hover::after,
.v5-page .button-primary:focus-visible::after {
  opacity: 1;
  transform: translateX(4px);
}

.v5-page .button-primary:active {
  transform: scale(0.98);
}

.v5-world-stage {
  --v5-shift-x: 0px;
  --v5-shift-y: 0px;
  --v5-pointer-x: 50%;
  --v5-pointer-y: 50%;
  position: relative;
  isolation: isolate;
  align-self: center;
  width: 100%;
  height: clamp(520px, 76dvh, 780px);
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--v5-canvas-soft);
  box-shadow: none;
}

.v5-world-stage::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--v5-pointer-x) var(--v5-pointer-y), rgba(255, 235, 190, 0.16), transparent 34%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 420ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .v5-world-stage:hover::after {
    opacity: 1;
  }
}

.v5-media {
  position: absolute;
  z-index: 1;
  inset: -3% 0;
  overflow: hidden;
  background: var(--v5-canvas-soft);
}

.v5-world-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translate3d(var(--v5-shift-x), var(--v5-shift-y), 0) scale(1.045);
  will-change: transform, opacity;
  transition: opacity 480ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-world-film.is-active {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .v5-world-stage:hover .v5-world-film.is-active {
    transform: translate3d(var(--v5-shift-x), var(--v5-shift-y), 0) scale(1.07);
  }
}

.v5-threshold {
  display: none;
}

.v5-threshold::before,
.v5-threshold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(18px, 5vw, 76px);
  background: #d8c6a6;
  box-shadow: inset 0 0 0 1px rgba(71, 52, 30, 0.18);
}

.v5-threshold::before { left: 0; }
.v5-threshold::after { right: 0; }

.v5-threshold i,
.v5-threshold b {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 3px;
  background: #f1cb78;
  box-shadow: 0 0 18px rgba(241, 203, 120, 0.62);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-threshold i {
  left: clamp(18px, 5vw, 76px);
  transform: translateX(38vw);
}

.v5-threshold b {
  right: clamp(18px, 5vw, 76px);
  transform: translateX(-38vw);
}

.codex-v5-entered .v5-threshold i,
.codex-v5-entered .v5-threshold b {
  transform: translateX(0);
}

.v5-world-copy {
  position: absolute;
  z-index: 8;
  right: clamp(18px, 3vw, 38px);
  bottom: 78px;
  width: min(340px, calc(100% - 48px));
  padding: 18px 20px;
  border-left: 2px solid var(--v5-gold);
  background: rgba(20, 17, 15, 0.82);
  color: var(--v5-vellum);
  backdrop-filter: blur(12px);
  transition: background 260ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-world-stage:hover .v5-world-copy {
  background: rgba(20, 17, 15, 0.9);
  transform: translateY(-4px);
}

.v5-world-caption {
  display: none;
}

.v5-world-caption.is-active {
  display: block;
  animation: v5-caption-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes v5-caption-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.v5-world-caption strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.v5-world-caption p {
  margin: 8px 0 0;
  color: var(--v5-muted);
  font-size: 14px;
  line-height: 1.45;
}

.v5-world-controls {
  position: absolute;
  z-index: 9;
  right: clamp(18px, 3vw, 38px);
  bottom: 24px;
  left: clamp(18px, 3vw, 38px);
  display: flex;
  gap: 6px;
}

.v5-world-controls button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(230, 220, 199, 0.35);
  border-radius: 4px;
  background: rgba(20, 17, 15, 0.7);
  color: var(--v5-vellum);
  font: 600 12px/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.v5-world-controls button:hover,
.v5-world-controls button:focus-visible,
.v5-world-controls button.is-active {
  border-color: var(--v5-gold);
  background: var(--v5-gold);
  color: #211b13;
  transform: translateY(-2px);
}

.v5-world-controls button:active {
  transform: scale(0.98);
}

[data-v5-intro] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.codex-v5-entered [data-v5-intro] {
  opacity: 1;
  transform: translateY(0);
}

.v5-section,
.v5-epilogue {
  width: min(1400px, calc(100% - clamp(40px, 8vw, 128px)));
  margin: 0 auto;
  padding: clamp(96px, 13vw, 176px) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 820px;
}

.v5-section-head {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin-bottom: clamp(44px, 7vw, 84px);
}

.v5-section h2,
.v5-epilogue h2 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.96;
}

.v5-section-head > p,
.v5-epilogue-copy > p {
  max-width: 58ch;
  margin: 0;
  color: var(--v5-muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
}

.codex-v5-ready [data-v5-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.codex-v5-ready [data-v5-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.v5-intent-stage,
.v5-systems .tech-card,
.v5-timeline li,
.v5-channels .platform-panel,
.v5-epilogue-links > * {
  transition: background-color 320ms ease, color 320ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 420ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .v5-intent-stage:hover {
    background: rgba(230, 220, 199, 0.018);
  }

  .v5-systems .tech-card:hover {
    z-index: 2;
    transform: translateY(-8px);
    box-shadow: 0 18px 48px rgba(8, 6, 5, 0.2);
  }

  .v5-systems .tech-card:hover .tech-title,
  .v5-timeline li:hover > span {
    color: var(--v5-gold);
  }

  .v5-systems .tech-card:hover .v5-system-motion {
    opacity: 0.62;
    transform: scale(1.025);
  }

  .v5-systems .tech-card:hover .v5-system-index {
    color: var(--v5-gold);
  }

  .v5-timeline li:hover {
    background: rgba(199, 165, 102, 0.055);
    transform: translateY(-5px);
  }

  .v5-channels .platform-panel:hover,
  .v5-channels .platform-panel:focus-within,
  .v5-epilogue-links > *:hover,
  .v5-epilogue-links > *:focus-within {
    z-index: 2;
    background-color: #28211c;
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(8, 6, 5, 0.22);
  }
}

.v5-intent-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  height: clamp(640px, 56vw, 720px);
  border: 1px solid rgba(199, 165, 102, 0.16);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(199, 165, 102, 0.075), transparent 31%),
    linear-gradient(135deg, rgba(230, 220, 199, 0.026), transparent 48%),
    var(--v5-canvas);
  box-shadow: inset 0 1px rgba(230, 220, 199, 0.035), 0 34px 90px rgba(7, 5, 4, 0.18);
  touch-action: pan-y;
}

.v5-intent-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 165, 102, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 165, 102, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.34;
  mask-image: linear-gradient(110deg, #000, transparent 68%);
}

.v5-teaser-messages-slot,
.v5-teaser-input-slot,
.v5-response {
  position: relative;
  z-index: 1;
}

.v5-teaser-messages-slot {
  min-height: 0;
  padding: clamp(30px, 4vw, 52px) clamp(28px, 4vw, 54px) 20px;
  overflow: hidden;
}

.v5-teaser-input-slot {
  grid-column: 1;
  padding: 8px clamp(28px, 4vw, 54px) clamp(28px, 3.5vw, 44px);
}

.v5-response {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: auto minmax(286px, 1fr) minmax(164px, auto);
  padding: 30px clamp(26px, 3vw, 42px) 36px;
  border-left: 1px solid var(--v5-line);
  overflow: hidden;
  background:
    radial-gradient(circle at 54% 34%, rgba(199, 165, 102, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(230, 220, 199, 0.045), rgba(18, 15, 13, 0.72));
}

.v5-response::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 44%, rgba(199, 165, 102, 0.05) 44.2%, transparent 44.5%);
  pointer-events: none;
}

.v5-response-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--v5-muted);
  font: 600 10px/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.v5-response-head > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.v5-response-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v5-gold);
  box-shadow: 0 0 0 5px rgba(199, 165, 102, 0.09);
}

.v5-response-head b {
  color: var(--v5-gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.v5-dice-arena {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 286px;
  padding: 6px 0 24px;
  color: var(--v5-gold);
  opacity: 1;
}

.v5-d20-stage {
  position: relative;
  width: min(100%, clamp(240px, 24vw, 310px));
  aspect-ratio: 1;
}

.v5-d20-canvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
}

.v5-d20-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #f3d792;
  text-align: center;
}

.v5-d20-fallback strong {
  font: 800 58px/1 "Geist", "Segoe UI Variable Display", sans-serif;
  letter-spacing: -0.07em;
}

.v5-d20-fallback small,
.v5-d20-label {
  color: var(--v5-muted);
  font: 600 9px/1 "Geist", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.v5-dice-arena.is-canvas-ready .v5-d20-fallback {
  display: none;
}

.v5-d20-label {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  text-align: center;
}

.v5-critical-mark {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  color: var(--v5-gold);
  font: 600 10px/1 "Geist", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-response[data-state="resolved"] .v5-critical-mark {
  opacity: 1;
  transform: translateY(0);
}

.v5-response-states {
  position: relative;
  z-index: 3;
  min-height: 164px;
}

.v5-response-states article {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.v5-response[data-state="waiting"] [data-response-state="waiting"],
.v5-response[data-state="question"] [data-response-state="question"],
.v5-response[data-state="choice"] [data-response-state="choice"],
.v5-response[data-state="resolving"] [data-response-state="resolving"],
.v5-response[data-state="resolved"] [data-response-state="resolved"] {
  opacity: 1;
  transform: translateY(0);
}

.v5-response-states em {
  margin-bottom: 16px;
  color: var(--v5-gold);
  font: 600 11px/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  font-style: normal;
}

.v5-response-states strong {
  display: block;
  color: var(--v5-gold);
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.v5-response-states p {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--v5-muted);
  font-size: 14px;
  line-height: 1.55;
}

.v5-intent #teaser-messages {
  align-content: start;
  height: 100%;
  padding: 4px 8px 18px 0;
  overflow: hidden;
  overscroll-behavior: auto;
  touch-action: pan-y;
  scrollbar-width: none;
}

.v5-intent #teaser-messages::-webkit-scrollbar {
  display: none;
}

.v5-intent .teaser-bubble {
  max-width: 88%;
  min-height: 0;
  padding: 22px 24px 22px 88px;
  border: 1px solid rgba(199, 165, 102, 0.2);
  border-left: 2px solid rgba(199, 165, 102, 0.72);
  border-radius: 2px;
  background:
    linear-gradient(105deg, rgba(199, 165, 102, 0.075), transparent 48%),
    rgba(24, 20, 17, 0.9);
  box-shadow: 0 18px 44px rgba(7, 5, 4, 0.16);
}

.v5-intent .teaser-bubble.is-player {
  max-width: 76%;
  padding: 20px 24px;
  border: 1px solid rgba(199, 165, 102, 0.28);
  border-right: 2px solid var(--v5-gold);
  background: linear-gradient(135deg, rgba(199, 165, 102, 0.13), rgba(61, 41, 27, 0.42));
}

.v5-intent .teaser-bubble.is-system {
  max-width: 94%;
  padding: 18px 22px;
  border: 1px dashed rgba(199, 165, 102, 0.3);
  background: rgba(199, 165, 102, 0.055);
}

.v5-intent .teaser-avatar {
  top: 19px;
  left: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(199, 165, 102, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(199, 165, 102, 0.06), 0 0 28px rgba(199, 165, 102, 0.1);
}

.v5-intent .bubble-author {
  color: var(--v5-gold);
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v5-intent .bubble-text {
  color: var(--v5-vellum);
  font-size: 15px;
  line-height: 1.55;
}

.v5-intent .teaser-input-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(199, 165, 102, 0.24);
  border-radius: 2px;
  background: rgba(13, 11, 10, 0.92);
  box-shadow: 0 18px 54px rgba(7, 5, 4, 0.28);
}

.v5-intent .teaser-input-shell::before {
  content: "";
  position: absolute;
  right: 104px;
  bottom: -1px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v5-gold), transparent);
  opacity: 0.42;
}

.v5-intent .teaser-input {
  border-radius: 0;
  background: rgba(230, 220, 199, 0.022);
}

.v5-intent .teaser-send {
  inline-size: 184px;
  min-width: 184px;
}

.v5-systems .tech-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(306px, auto);
  gap: 12px;
  background: transparent;
}

.v5-systems .tech-card {
  position: relative;
  isolation: isolate;
  display: flex;
  grid-column: span 5;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 306px;
  padding: clamp(28px, 4vw, 54px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 24%, rgba(199, 165, 102, 0.095), transparent 36%),
    var(--v5-canvas-soft);
  box-shadow: none;
}

.v5-systems .tech-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 220, 199, 0.045), transparent 42%);
  opacity: 0.55;
  pointer-events: none;
}

.v5-systems .tech-card:first-child {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 624px;
}

.v5-systems .tech-title {
  position: relative;
  z-index: 3;
  max-width: 12ch;
  margin: 0;
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.v5-systems .tech-copy {
  position: relative;
  z-index: 3;
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--v5-muted);
  font-size: 15px;
  line-height: 1.6;
}

.v5-system-index {
  position: absolute;
  z-index: 3;
  top: 26px;
  left: clamp(28px, 4vw, 54px);
  color: var(--v5-muted);
  font: 600 11px/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  transition: color 320ms ease;
}

.v5-system-motion {
  position: absolute;
  z-index: 1;
  inset: 0;
  color: var(--v5-gold);
  opacity: 0.34;
  pointer-events: none;
  transform-origin: 72% 28%;
  transition: opacity 400ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-system-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--v5-canvas-soft) 8%, transparent 58%);
}

.v5-system-motion svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v5-gm-rings {
  transform-origin: 466px 286px;
  animation: v5-system-spin 32s linear infinite;
}

.v5-gm-rings circle:nth-child(2) {
  stroke-dasharray: 5 12;
}

.v5-gm-rings circle:nth-child(3) {
  stroke-dasharray: 2 18;
}

.v5-gm-scan {
  fill: currentColor;
  opacity: 0.09;
  transform-origin: 466px 286px;
  animation: v5-system-spin 11s linear infinite;
}

.v5-system-node {
  fill: var(--v5-canvas-soft);
  animation: v5-system-pulse 3.8s ease-in-out infinite;
}

.v5-system-node.node-b { animation-delay: -1.2s; }
.v5-system-node.node-c { animation-delay: -2.4s; }

.v5-system-butterfly {
  inset: 0 0 auto;
  height: 68%;
}

.v5-system-route {
  stroke-dasharray: 7 10;
  animation: v5-system-route 16s linear infinite;
}

.v5-system-nodes circle {
  fill: var(--v5-canvas-soft);
}

.v5-system-nodes circle:nth-child(3n + 1) {
  animation: v5-system-pulse 3.6s ease-in-out infinite;
}

.v5-system-d20 {
  inset: -4% -3% auto 20%;
  height: 78%;
}

.v5-d20-shape {
  transform-origin: 294px 165px;
  animation: v5-d20-float 7s ease-in-out infinite;
}

.v5-d20-shape text {
  fill: currentColor;
  stroke: none;
  font: 500 40px/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  text-anchor: middle;
}

.v5-d20-orbit {
  stroke-dasharray: 4 12;
  animation: v5-system-route 14s linear infinite reverse;
}

@keyframes v5-system-spin {
  to { transform: rotate(360deg); }
}

@keyframes v5-system-route {
  to { stroke-dashoffset: -136; }
}

@keyframes v5-system-pulse {
  0%, 100% { opacity: 0.35; stroke-width: 1.25; }
  50% { opacity: 1; stroke-width: 3; }
}

@keyframes v5-d20-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.v5-consequence {
  position: relative;
}

.v5-consequence-map {
  position: relative;
  z-index: 0;
  height: 150px;
  margin: -18px 0 -58px;
  color: var(--v5-gold);
  opacity: 0.42;
  pointer-events: none;
}

.v5-consequence-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.v5-consequence-path {
  stroke-dasharray: 8 13;
  animation: v5-system-route 18s linear infinite;
}

.v5-consequence-path-ghost {
  opacity: 0.32;
  animation-direction: reverse;
}

.v5-consequence-signal {
  fill: var(--v5-gold);
  stroke: var(--v5-canvas);
  stroke-width: 4;
  offset-path: path("M20 126C178 126 178 54 350 54S520 126 604 126 742 54 854 54s168 72 326 72");
  animation: v5-consequence-travel 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes v5-consequence-travel {
  from { offset-distance: 0%; opacity: 0; }
  8%, 92% { opacity: 1; }
  to { offset-distance: 100%; opacity: 0; }
}

@keyframes v5-mobile-flow {
  to { background-position: 0 24px; }
}

.v5-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 1.18fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 0;
}

.v5-timeline li {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 292px;
  padding: 34px clamp(22px, 3vw, 40px);
  border: 1px solid rgba(199, 165, 102, 0.12);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(199, 165, 102, 0.1), transparent 33%),
    rgba(230, 220, 199, 0.022);
}

.v5-timeline li::before {
  content: attr(data-step);
  position: absolute;
  z-index: -1;
  top: -0.2em;
  right: -0.02em;
  color: var(--v5-vellum);
  font: 600 clamp(92px, 11vw, 154px)/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.08em;
  opacity: 0.035;
}

.v5-timeline li::after {
  content: "";
  position: absolute;
  top: 24px;
  left: clamp(22px, 3vw, 40px);
  width: 8px;
  height: 8px;
  border: 1px solid var(--v5-gold);
  background: var(--v5-canvas-soft);
  transform: rotate(45deg);
}

.v5-timeline li > span {
  color: var(--v5-gold);
  margin-bottom: auto;
  padding-top: 34px;
  font: 600 11px/1 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v5-timeline strong {
  max-width: 15ch;
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(28px, 2.65vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.v5-timeline p {
  max-width: 34ch;
  margin: 0;
  color: var(--v5-muted);
  font-size: 14px;
  line-height: 1.5;
}

.v5-channels .platform-panels {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, auto);
  gap: 12px;
  min-height: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.v5-channels .platform-panel {
  --platform-pointer-x: 50%;
  --platform-pointer-y: 50%;
  --platform-glow: color-mix(in srgb, var(--channel-accent) 34%, transparent);
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 220, 199, 0.1);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(230, 220, 199, 0.045), transparent 48%),
    var(--v5-canvas-soft);
  filter: none;
  transform: none;
  isolation: isolate;
}

.v5-channels .platform-panel::before {
  display: block;
  z-index: 0;
  inset: 0;
  border: 0;
  background: radial-gradient(circle at var(--platform-pointer-x) var(--platform-pointer-y), var(--platform-glow), transparent 42%);
  opacity: 0;
  transform: none;
  transition: opacity 360ms ease;
}

.v5-channels .platform-panel::after {
  right: 28px;
  bottom: 24px;
  left: 28px;
  opacity: 0.42;
  transform: scaleX(0.24);
  transform-origin: left;
  transition: opacity 320ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-channels .platform-panel[data-channel="google_play"] {
  grid-column: span 7;
  grid-row: span 2;
}

.v5-channels .platform-panel[data-channel="rustore"],
.v5-channels .platform-panel[data-channel="telegram"] {
  grid-column: span 5;
}

.v5-channels .platform-panel[data-channel="apk"],
.v5-channels .platform-panel[data-channel="pwa"],
.v5-channels .platform-panel[data-channel="browser"] {
  grid-column: span 4;
}

.v5-channels .platform-panel-inner {
  position: relative;
  z-index: 2;
  min-height: 100%;
  padding: clamp(26px, 3vw, 44px);
}

.v5-channels .platform-mark {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--channel-accent);
  transition: color 300ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-channels .platform-icon {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.v5-channels .platform-backdrop {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: -20%;
  width: min(62%, 340px);
  aspect-ratio: 1;
  color: var(--channel-accent);
  opacity: 0.055;
  pointer-events: none;
  transform: rotate(-8deg) scale(0.92);
  transition: opacity 420ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-channels .platform-panel[data-channel="google_play"] .platform-backdrop {
  right: -2%;
  bottom: -14%;
  width: min(74%, 520px);
}

.v5-channels .platform-backdrop .platform-icon {
  width: 100%;
  height: 100%;
}

.v5-channels .platform-title {
  font-size: clamp(30px, 3vw, 48px);
}

.v5-channels .platform-panel[data-channel="google_play"] .platform-title {
  max-width: 8ch;
  font-size: clamp(44px, 5vw, 72px);
}

.v5-channels .platform-cta {
  width: max-content;
  transition: color 300ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-channels .platform-description {
  max-width: 42ch;
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .v5-channels .platform-panel:hover::before,
  .v5-channels .platform-panel:focus-within::before {
    opacity: 1;
  }

  .v5-channels .platform-panel:hover::after,
  .v5-channels .platform-panel:focus-within::after {
    opacity: 0.9;
    transform: scaleX(1);
  }

  .v5-channels .platform-panel:hover .platform-mark,
  .v5-channels .platform-panel:focus-within .platform-mark {
    color: var(--v5-vellum);
    transform: translateY(-4px) rotate(-3deg) scale(1.06);
  }

  .v5-channels .platform-panel:hover .platform-backdrop,
  .v5-channels .platform-panel:focus-within .platform-backdrop {
    opacity: 0.13;
    transform: rotate(2deg) scale(1.05);
  }

  .v5-channels .platform-panel:hover .platform-cta,
  .v5-channels .platform-panel:focus-within .platform-cta {
    color: var(--v5-vellum);
    transform: translateX(6px);
  }
}

.v5-epilogue {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}

.v5-epilogue-copy {
  position: sticky;
  top: 96px;
}

.v5-epilogue-copy > p {
  margin-top: 24px;
}

.v5-epilogue-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
}

.v5-epilogue-links > * {
  --epilogue-pointer-x: 50%;
  --epilogue-pointer-y: 50%;
  position: relative;
  min-height: 330px;
  margin: 0;
  padding: clamp(26px, 3.2vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(230, 220, 199, 0.1);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(230, 220, 199, 0.045), transparent 52%),
    var(--v5-canvas-soft);
  box-shadow: none;
  isolation: isolate;
}

.v5-epilogue-links > .blog-cta {
  grid-column: 1 / -1;
  min-height: 390px;
}

.v5-epilogue-links > .telegram-cta,
.v5-epilogue-links > .feedback-cta {
  display: flex;
  align-items: stretch;
}

.v5-epilogue-links > *::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at var(--epilogue-pointer-x) var(--epilogue-pointer-y), rgba(199, 165, 102, 0.17), transparent 40%);
  opacity: 0.32;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.v5-epilogue-links > *::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 30px 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--v5-gold), transparent);
  opacity: 0.35;
  pointer-events: none;
  transform: scaleX(0.28);
  transform-origin: left;
  transition: opacity 320ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-epilogue-links .blog-cta-copy,
.v5-epilogue-links .telegram-cta-copy,
.v5-epilogue-links .feedback-cta-copy {
  position: relative;
  z-index: 3;
  max-width: min(62%, 620px);
  padding: 0;
}

.v5-epilogue-links .telegram-cta-copy,
.v5-epilogue-links .feedback-cta-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 90%;
}

.v5-epilogue-links .blog-cta-eyebrow,
.v5-epilogue-links .telegram-cta-eyebrow,
.v5-epilogue-links .feedback-cta-eyebrow {
  margin: 0;
  color: var(--v5-gold);
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v5-epilogue-links .blog-cta-title,
.v5-epilogue-links .telegram-cta-title,
.v5-epilogue-links .feedback-cta-title {
  max-width: 13ch;
  margin: 20px 0 0;
  color: var(--v5-vellum);
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(32px, 3.1vw, 50px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: none;
  text-wrap: balance;
}

.v5-epilogue-links .blog-cta-title {
  max-width: 16ch;
  font-size: clamp(40px, 4vw, 62px);
}

.v5-epilogue-links .blog-cta-text,
.v5-epilogue-links .telegram-cta-text,
.v5-epilogue-links .feedback-cta-text {
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--v5-muted);
  font-family: "Cabinet Grotesk", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.v5-epilogue-links .blog-cta-actions,
.v5-epilogue-links .telegram-cta-actions,
.v5-epilogue-links .feedback-cta-actions {
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 28px;
}

.v5-epilogue-links .button-primary {
  inline-size: 240px;
  min-height: 52px;
  padding: 0 24px 1px;
  font-size: 14px;
}

.v5-epilogue-motion {
  position: absolute;
  z-index: 1;
  inset: 0;
  color: var(--v5-gold);
  opacity: 0.23;
  pointer-events: none;
  transition: color 400ms ease, opacity 400ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-epilogue-motion svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v5-motion-dash,
.v5-motion-route,
.v5-motion-wave {
  stroke-dasharray: 10 14;
  animation: v5-line-travel 10s linear infinite;
}

.v5-chronicle-planet {
  transform-origin: 500px 178px;
  animation: v5-planet-breathe 9s ease-in-out infinite;
}

.v5-chronicle-sphere {
  fill: rgba(199, 165, 102, 0.025);
  stroke-width: 1.8;
}

.v5-chronicle-grid {
  opacity: 0.52;
  stroke-width: 1;
}

.v5-chronicle-orbit {
  transform-origin: 500px 178px;
  transform-box: view-box;
  stroke-dasharray: 7 9;
  animation: v5-chronicle-orbit 28s linear infinite;
}

.v5-chronicle-moon {
  fill: var(--v5-gold);
  stroke: var(--v5-canvas-soft);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: v5-node-pulse 3.8s ease-in-out infinite;
}

.v5-chronicle-stars {
  fill: currentColor;
  stroke: none;
}

.v5-chronicle-stars circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: v5-star-twinkle 4.4s ease-in-out infinite;
}

.v5-chronicle-stars circle:nth-child(2n) { animation-delay: -1.7s; }
.v5-chronicle-stars circle:nth-child(3n) { animation-delay: -3.1s; }

@keyframes v5-planet-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes v5-chronicle-orbit {
  from { transform: rotate(-18deg); stroke-dashoffset: 0; }
  to { transform: rotate(342deg); stroke-dashoffset: -180; }
}

@keyframes v5-star-twinkle {
  0%, 100% { opacity: 0.22; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.v5-motion-plane {
  animation: v5-plane-float 8s ease-in-out infinite;
}

.v5-motion-plane path:first-child {
  fill: rgba(199, 165, 102, 0.035);
  stroke-width: 1.8;
}

.v5-motion-feedback .wave-b { animation-delay: -3s; }
.v5-motion-feedback .wave-c { animation-delay: -6s; }

.v5-motion-node {
  fill: var(--v5-gold);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: v5-node-pulse 3.6s ease-in-out infinite;
}

.v5-motion-node.node-b { animation-delay: -1.2s; }
.v5-motion-node.node-c { animation-delay: -2.4s; }

@keyframes v5-line-travel {
  to { stroke-dashoffset: -240; }
}

@keyframes v5-plane-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-10px, 8px, 0) rotate(-2deg); }
}

@keyframes v5-node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1.24); }
}

@media (hover: hover) and (pointer: fine) {
  .v5-epilogue-links > *:hover::before,
  .v5-epilogue-links > *:focus-within::before {
    opacity: 0.9;
  }

  .v5-epilogue-links > *:hover::after,
  .v5-epilogue-links > *:focus-within::after {
    opacity: 0.9;
    transform: scaleX(1);
  }

  .v5-epilogue-links > *:hover .v5-epilogue-motion,
  .v5-epilogue-links > *:focus-within .v5-epilogue-motion {
    color: var(--v5-vellum);
    opacity: 0.38;
    transform: scale(1.025);
  }
}

.v5-epilogue-play-slot {
  grid-column: 2;
}

.v5-evidence-slot,
.v5-footer-slot {
  width: min(1400px, calc(100% - clamp(40px, 8vw, 128px)));
  margin: 0 auto;
}

.v5-evidence-slot {
  margin-top: clamp(36px, 6vw, 92px);
}

.v5-evidence-slot .seo-evidence {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  column-gap: clamp(48px, 7vw, 118px);
  row-gap: 18px;
  margin: 0;
  padding: clamp(44px, 6vw, 84px) 0 clamp(32px, 4vw, 58px);
  border-top: 1px solid var(--v5-line);
  color: var(--v5-muted);
  font: 400 clamp(15px, 1.15vw, 17px)/1.72 "Segoe UI Variable Text", "Avenir Next", "Segoe UI", sans-serif;
}

.v5-evidence-slot .seo-evidence h2 {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
  max-width: 9ch;
  margin: 0;
  color: var(--v5-vellum);
  font: 400 clamp(42px, 4.8vw, 72px)/0.96 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.v5-evidence-slot .seo-evidence h3,
.v5-evidence-slot .seo-evidence p {
  grid-column: 2;
  margin: 0;
}

.v5-evidence-slot .seo-evidence h3 {
  margin-top: 12px;
  color: var(--v5-gold);
  font: 600 11px/1.35 "Cabinet Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v5-footer-slot .landing-footer {
  border-color: var(--v5-line);
}

.v5-page :focus-visible {
  outline: 2px solid var(--v5-gold);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .v5-hero {
    grid-template-columns: minmax(260px, 0.72fr) minmax(440px, 1.28fr);
    gap: 32px;
  }

  .v5-world-stage {
    height: clamp(480px, 72dvh, 680px);
  }

  .v5-channels .platform-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v5-channels .platform-panel[data-channel] {
    grid-column: span 1;
    grid-row: span 1;
  }

  .v5-channels .platform-panel[data-channel="google_play"] {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  /* Mobile landing overflow guards. */
  .codex-v5-ready .landing-topbar {
    min-height: 58px;
    padding: 14px 18px;
    align-items: flex-start;
  }

  .codex-v5-ready .landing-topbar .language-toggle {
    width: auto;
  }

  .codex-v5-ready .language-button {
    flex: 0 0 auto;
  }

  .v5-hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    min-height: 100dvh;
    padding: 82px 16px 18px;
  }

  .v5-hero-copy {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .v5-hero-genre {
    width: fit-content;
    max-width: 100%;
  }

  .v5-hero h1 {
    max-width: none;
    font-size: clamp(52px, 17vw, 72px);
    line-height: 0.92;
  }

  .v5-hero-genre {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.11em;
  }

  .v5-hero-lede {
    margin-top: 18px;
    font-size: 17px;
  }

  .v5-hero-actions-slot {
    width: 100%;
    min-width: 0;
    margin-top: 22px;
  }

  .v5-launch-zone {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .v5-launch-zone:has(.loading-shell.is-visible)::before,
  .v5-launch-zone:has(.loading-shell.is-visible)::after {
    display: none;
  }

  .v5-hero .loading-shell {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    overflow: hidden;
    background: #0e0c0a;
  }

  .v5-hero .loading-shell-top {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .v5-hero .loading-copy,
  .v5-hero .loading-title,
  .v5-hero .loading-stage {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .v5-hero .loading-meta {
    flex-wrap: wrap;
  }

  .v5-hero .hero-actions,
  .v5-hero .hero-launch-shell {
    width: 100%;
  }

  .v5-hero .button-primary {
    width: auto;
    min-width: 190px;
  }

  .v5-hero-atlas {
    width: 100%;
    opacity: 0.2;
    transform: none;
    mask-image: linear-gradient(90deg, #000 0 72%, transparent 100%);
  }

  .v5-hero #launch-button {
    width: 240px;
    inline-size: 240px;
    min-height: 60px;
  }

  .v5-launch-zone::before {
    right: -18px;
    width: 92px;
    height: 92px;
  }

  .v5-launch-zone::after {
    right: -8px;
    width: 62px;
    height: 62px;
  }

  .v5-world-stage {
    width: calc(100% + 32px);
    height: clamp(480px, 66dvh, 640px);
    min-height: 0;
    margin-left: -16px;
    border-radius: 0;
  }

  .v5-world-film {
    object-position: center center;
  }

  .v5-world-copy {
    right: 14px;
    bottom: 72px;
    left: 14px;
    width: auto;
    padding: 14px 16px;
  }

  .v5-world-caption p {
    display: none;
  }

  .v5-world-controls {
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 4px;
  }

  .v5-world-controls button {
    flex: 1;
    padding: 0 8px;
    font-size: 11px;
  }

  .v5-section,
  .v5-epilogue,
  .v5-evidence-slot,
  .v5-footer-slot {
    width: calc(100% - 32px);
  }

  .v5-section,
  .v5-epilogue {
    padding: 80px 0;
  }

  .v5-section h2,
  .v5-epilogue h2 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1;
  }

  .v5-section-head {
    margin-bottom: 38px;
  }

  .v5-intent-stage,
  .v5-systems .tech-grid,
  .v5-timeline,
  .v5-channels .platform-panels,
  .v5-epilogue {
    grid-template-columns: 1fr;
  }

  .v5-intent-stage {
    grid-template-rows: minmax(440px, auto) auto auto;
    height: auto;
    min-height: 0;
  }

  .v5-teaser-messages-slot {
    padding: 24px 20px 12px;
    overflow: hidden;
  }

  .v5-teaser-input-slot {
    padding: 8px 20px 22px;
  }

  .v5-intent .teaser-bubble {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 16px 16px 16px 66px;
    overflow-wrap: anywhere;
  }

  .v5-intent .teaser-bubble.is-player {
    max-width: 92%;
    padding: 16px;
  }

  .v5-intent .teaser-bubble.is-system {
    max-width: 100%;
    padding: 16px;
  }

  .v5-intent .teaser-avatar {
    top: 15px;
    left: 14px;
    width: 38px;
    height: 38px;
  }

  .v5-intent #teaser-messages {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
  }

  .v5-intent .teaser-send {
    align-self: center;
    inline-size: 112px;
    min-width: 112px;
    min-height: 52px;
    height: 52px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .v5-intent .teaser-input-shell {
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    gap: 8px;
    height: 68px;
    padding: 7px;
  }

  .v5-intent .teaser-input {
    min-width: 0;
    min-height: 52px;
    height: 52px;
    padding-right: 10px;
    padding-left: 12px;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .v5-d20-stage {
    width: min(100%, clamp(220px, 72vw, 280px));
  }

  .v5-evidence-slot {
    margin-top: 28px;
  }

  .v5-evidence-slot .seo-evidence {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    padding: 42px 0 30px;
    font-size: 15px;
    line-height: 1.68;
  }

  .v5-evidence-slot .seo-evidence h2,
  .v5-evidence-slot .seo-evidence h3,
  .v5-evidence-slot .seo-evidence p {
    grid-column: 1;
    grid-row: auto;
  }

  .v5-evidence-slot .seo-evidence h2 {
    max-width: 10ch;
    margin-bottom: 12px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .v5-evidence-slot .seo-evidence h3 {
    margin-top: 10px;
  }

  .v5-epilogue-links {
    grid-template-columns: 1fr;
  }

  .v5-epilogue-links > .blog-cta {
    grid-column: 1;
  }

  .v5-epilogue-links > * {
    min-height: 330px;
  }

  .v5-epilogue-links .blog-cta-copy,
  .v5-epilogue-links .telegram-cta-copy,
  .v5-epilogue-links .feedback-cta-copy {
    max-width: 94%;
  }

  .v5-epilogue-links .blog-cta-title,
  .v5-epilogue-links .telegram-cta-title,
  .v5-epilogue-links .feedback-cta-title {
    font-size: clamp(34px, 10vw, 48px);
  }

  .v5-motion-chronicles {
    opacity: 0.16;
  }

  .v5-motion-chronicles svg {
    transform: translate3d(86px, 84px, 0) scale(0.72);
    transform-origin: center;
  }

  .v5-channels .platform-panel[data-channel] {
    grid-column: 1;
  }

  .v5-channels .platform-panel-inner {
    padding: 26px 22px;
  }

  .v5-channels .platform-backdrop {
    width: min(58%, 240px);
  }

  .v5-response {
    grid-column: 1;
    grid-row: 3;
    grid-template-rows: auto minmax(260px, auto) minmax(176px, auto);
    height: auto;
    min-height: 520px;
    padding: 24px 22px 26px;
    border-top: 1px solid var(--v5-line);
    border-left: 0;
  }

  .v5-response-states {
    align-self: end;
    width: 100%;
    min-height: 176px;
  }

  .v5-response-states strong {
    font-size: clamp(28px, 9vw, 36px);
  }

  .v5-systems .tech-card:first-child {
    grid-column: 1;
    grid-row: auto;
    min-height: 450px;
  }

  .v5-systems .tech-card {
    grid-column: 1;
    min-height: 350px;
  }

  .v5-system-gm {
    inset: -4% -24% 16% -8%;
  }

  .v5-system-butterfly,
  .v5-system-d20 {
    height: 62%;
  }

  .v5-consequence-map {
    display: none;
  }

  .v5-timeline {
    position: relative;
    gap: 12px;
    padding-left: 24px;
  }

  .v5-timeline li {
    min-height: 260px;
    border: 1px solid rgba(199, 165, 102, 0.12);
  }

  .v5-timeline li::after {
    left: -29px;
    top: 42px;
    background: var(--v5-canvas);
  }

  .v5-timeline::before {
    content: "";
    position: absolute;
    top: 42px;
    bottom: 42px;
    left: 0;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(to bottom, var(--v5-gold) 0 7px, transparent 7px 14px);
    opacity: 0.55;
    animation: v5-mobile-flow 1.8s linear infinite;
  }

  .v5-epilogue-copy {
    position: static;
  }

  .v5-epilogue-play-slot {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .codex-v5-ready [data-v5-intro],
  .codex-v5-ready [data-v5-reveal],
  .codex-v5-ready [data-v5-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .v5-threshold i,
  .v5-threshold b {
    transform: translateX(0);
    transition: none;
  }

  .v5-world-film,
  .v5-page *,
  .v5-page *::before,
  .v5-page *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
