/* Canonical Nexus tokens: Assets/Game/UI/UiTheme.cs. */
:root {
  --background: #041018;
  --surface: #0b202b;
  --raised: #11313d;
  --line: #295360;
  --ink: #e4f3f5;
  --muted: #a6bec8;
  --cyan: #53dae6;
  --mint: #7fe4b8;
  --gold: #ffc85a;
  --on-primary: #05222a;
  /* BossHazardVisual: armed Color(1, .22f, .32f). */
  --rift: #ff3852;
  --accent: var(--cyan);
}

html { background: var(--background); }
body { background: var(--background); color: var(--ink); }
p, .hero .intro, .hero-bottom, .navlinks, .foot { color: var(--muted); }
main > section { position: relative; isolation: isolate; }
.hero-grid, .chapter-heading, .story-panels, .play > .wrap,
.homecoming > .wrap, .closing > .wrap { position: relative; z-index: 2; }
.nav { color: var(--ink); border-color: var(--line); }
.navlinks a:hover, .foot a:hover { color: var(--cyan); }
.small-cta { border-color: var(--line); }
.eyebrow, .hero .eyebrow, .closing .eyebrow { color: var(--gold); }
.hero h1, .closing h2, .c .type { color: var(--ink); }
.hero h1 .outlined, .closing h2 span { color: var(--gold); }
.hero-bottom { border-color: var(--line); }
.hero-bottom span:first-child { color: var(--cyan); }
.btn { background: var(--cyan); color: var(--on-primary); }
.btn:hover { box-shadow: 0 0 35px #53dae62b; }
.btn.alt { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.alt:hover { border-color: var(--cyan); }
.section, .foot { border-color: var(--line); }
.chapter-number { color: var(--line); }
.comic-card, .story-pane {
  background: var(--raised);
  border: 1px solid var(--line);
}
.comic-card img, .story-pane img { border-color: var(--background); }
.comic-card figcaption, .story-pane figcaption { color: var(--muted); }
.comic-card:before { color: var(--on-primary); background: var(--gold); border-color: var(--on-primary); }
.speech, .speech:after { background: var(--ink); color: var(--on-primary); border-color: var(--on-primary); }
.speech { box-shadow: 5px 5px 0 var(--on-primary); }
.play { background: var(--surface); color: var(--ink); overflow: clip; }
.play .eyebrow { color: var(--gold); }
.play .chapter-number { color: var(--line); }
.play p, .play .caption { color: var(--muted); }
.play .feature { border-color: var(--line); }
.play .feature span { color: var(--cyan); }
.play .phone {
  background: var(--background);
  border-color: var(--line);
  box-shadow: 14px 18px 0 #04101880, 0 0 50px #53dae60a;
}
.phone video { display: block; width: 100%; aspect-ratio: 720 / 1560; object-fit: cover; border-radius: 14px; background: var(--background); }
.play-visual { height: 560px; }
.tag { color: var(--muted); border-color: var(--line); }
.closing .tag { color: var(--gold); border-color: var(--line); }
.foot { padding-bottom: 35px; }
.motion {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 10px 14px;
  white-space: nowrap;
}
.motion:disabled { cursor: default; }
.motion:hover:not(:disabled) { color: var(--ink); border-color: var(--cyan); }
.platforms { display: flex; justify-content: center; align-items: center; gap: 25px; margin: 27px 0 12px; font-size: 19px; color: var(--ink); }
.platforms i { color: var(--cyan); font-size: 11px; }
.closing .note { color: var(--muted); font-size: 11px; }

/* The city uses a true alpha cutout; parallax never depends on blend backdrops. */
.homecoming { overflow: clip; background: var(--background); }
.homecoming .split { grid-template-columns: 1fr 1.1fr; gap: 30px; }
.homecoming h2 { font-size: clamp(45px, 5.2vw, 76px); }
.nexus-stage { position: relative; min-height: 600px; display: grid; place-items: center; isolation: isolate; background: transparent; }
.homecoming .city {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 650px;
  height: auto;
  mix-blend-mode: normal;
  filter: none;
  mask-image: none;
}
.nexus-halo {
  position: absolute;
  inset: 9% -8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #53dae61f 0%, #53dae609 43%, transparent 70%);
  filter: blur(22px);
}
.nexus-grid { position: absolute; inset: -4%; width: 108%; height: 108%; color: var(--cyan); opacity: .18; z-index: 1; }
.nexus-orbit { position: absolute; border: 1px solid #53dae621; border-radius: 50%; z-index: 2; pointer-events: none; }
.orbit-a { width: 88%; aspect-ratio: 1; animation: orbit 70s linear infinite; }
.orbit-b { width: 105%; height: 50%; rotate: -32deg; border-color: #ffc85a25; }
.orbit-a:after { content: ''; position: absolute; width: 6px; height: 6px; top: 15%; left: 13%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.scene-label { position: absolute; z-index: 4; font-size: 9px; line-height: 1.5; letter-spacing: .16em; color: var(--muted); }
.label-north { top: 6%; left: 2%; }
.label-south { bottom: 2%; right: 2%; }
.label-south b { color: var(--gold); margin-left: 16px; }
.nexus-spark { position: absolute; width: 5px; height: 5px; background: var(--cyan); rotate: 45deg; box-shadow: 0 0 15px var(--cyan); z-index: 4; animation: drift 8s ease-in-out infinite; }
.s1 { left: 4%; top: 27%; }
.s2 { right: 6%; top: 30%; animation-delay: -3s; background: var(--gold); }
.s3 { left: 19%; bottom: 12%; animation-delay: -5s; }
.s4 { right: 25%; top: 9%; animation-delay: -1s; width: 3px; height: 3px; }
.s5 { right: 5%; bottom: 20%; animation-delay: -6s; width: 3px; height: 3px; }

/* A fracture crosses each chapter. Enemy illustrations retain their authored colors. */
.hero { overflow: clip; }
.story-panels { position: relative; }
.enemy-study {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.enemy-study-copy { max-width: 360px; }
.enemy-study .eyebrow { color: var(--rift); font-size: 10px; }
.enemy-study p { font-size: 12px; margin-top: 7px; }
.enemy-portraits { display: flex; margin-left: auto; gap: 10px; }
.enemy-portrait { width: 100px; height: 110px; display: grid; place-items: center; position: relative; }
.enemy-portrait img { width: 86px; height: 86px; object-fit: contain; }
.enemy-portrait span { position: absolute; bottom: -2px; font-size: 9px; color: var(--muted); letter-spacing: .1em; }
.closing { background: radial-gradient(ellipse, #11313d66, transparent 65%); }
.closing:before { color: #ffc85a05; }
.closing-orbit { position: absolute; width: 700px; height: 700px; left: calc(50% - 350px); top: 30px; border: 1px solid #53dae616; border-radius: 50%; z-index: 0; }
.closing-orbit:after { content: ''; position: absolute; inset: 45px; border: 1px dashed #ffc85a14; border-radius: 50%; }
.closing .pixel { filter: drop-shadow(0 0 30px #53dae62b); }
.outside-view *, .paused * { animation-play-state: paused !important; }
.paused [data-depth] { transform: none !important; }
@keyframes drift { 50% { translate: 0 -13px; rotate: 5deg; } }
@keyframes orbit { to { rotate: 360deg; } }

@media (max-width: 1100px) and (min-width: 801px) {
  .hero h1 { font-size: 77px; }
  .homecoming .split { gap: 20px; }
  .homecoming h2 { font-size: 54px; }
  .nexus-stage { min-height: 480px; }
  .play .split { gap: 40px; }
  .play .phone { width: 175px; }
}
@media (max-width: 800px) {
  .homecoming .split { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .homecoming h2 { font-size: 50px; }
  .nexus-stage { min-height: 370px; }
  .nexus-grid { inset: 0; width: 100%; height: 100%; }
  .label-north { top: 0; font-size: 8px; }
  .label-south { bottom: -5px; font-size: 7px; }
  .orbit-b { width: 100%; }
  .hero h1 { font-size: clamp(56px, 17vw, 73px); }
  .hero .hero-grid { gap: 38px; }
  .hero .intro { max-width: 100%; }
  .hero { padding-top: 125px; }
  .comic-card img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .hero-bottom { font-size: 8px; }
  .play .split { gap: 40px; }
  .play-visual { height: 420px; }
  .play .phone { width: min(42vw, 175px); padding: 6px; }
  .foot { gap: 22px; }
  .foot-links { font-size: 11px; gap: 19px; }
  .scene-label { max-width: 90%; }
  .enemy-study { align-items: start; flex-direction: column; gap: 12px; }
  .enemy-portraits { margin-left: 0; justify-content: space-between; width: 100%; }
  .enemy-portrait { width: 29%; }
  .enemy-portrait img { width: 80px; max-width: 100%; }
}
@media (max-width: 360px) {
  .brand img { width: 33px; height: 33px; }
  .nav { gap: 15px; }
  .brand { gap: 8px; }
  .small-cta { padding: 10px 12px; font-size: 10px; }
  .homecoming h2, .closing h2 { font-size: 40px; }
  .chapter-heading { gap: 10px; }
  .chapter-number { font-size: 42px; }
  .chapter-heading h2 { font-size: 35px; }
  .play h2 { font-size: 40px; }
  .btn { padding: 14px 17px; gap: 20px; }
  .nexus-stage { min-height: 325px; }
  .play-visual { height: 340px; }
  .foot-links { gap: 13px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-depth] { transform: none !important; }
}
