/* ==========================================================================
   Zodiac Knights v2 · design system + shared pages
   Mobile first. Brand: cosmic navy, gold, emerald. Cinzel + Inter.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #03050c;
  --bg-1: #060914;
  --bg-2: #0a1020;
  --bg-3: #111a30;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(243, 186, 47, 0.32);

  --gold-1: #ffe270;
  --gold-2: #f3ba2f;
  --gold-3: #b87b10;
  --emerald: #10e898;
  --emerald-2: #059669;
  --cyan: #38bdf8;
  --crimson: #f43f5e;

  --text-1: #f5f7fb;
  --text-2: #c3cbdf;
  --text-3: #8f9bb6;
  --ink: #1b1203;

  --el-fire: #ff7a45;
  --el-water: #38bdf8;
  --el-earth: #10e898;
  --el-air: #a5d8ff;
  --el-light: #ffe270;
  --el-dark: #b18cff;

  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.9vw, 2.9rem);
  --fs-h1: clamp(2.3rem, 1.6rem + 3vw, 4.1rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-lg: 0 30px 80px -32px rgba(0, 0, 0, 0.85);
  --grad-gold: linear-gradient(180deg, #ffe88a 0%, #f7c443 52%, #e2a21f 100%);
  color-scheme: dark;
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, picture, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
.pillar__media > picture, .news-card__media > picture, .art-stage > picture, .cta-band__bg > picture,
.story-band__bg > picture, .page-hero__bg > picture, .saga__banner > picture, .news-item__media > picture,
.short-card > picture { display: block; width: 100%; height: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--gold-1); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { color: var(--text-1); line-height: 1.12; font-weight: 700; text-wrap: balance; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: rgba(243, 186, 47, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200; padding: 0.75rem 1rem; border-radius: 10px;
  background: var(--gold-2); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 18%, var(--bg-1) 82%, var(--bg-0) 100%); }
.section + .section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); letter-spacing: 0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem;
  font-size: var(--fs-12); font-weight: 600; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.75; }
.eyebrow--emerald { color: var(--emerald); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.75; }
.section-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; max-width: none; }
.section-title { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: 0.005em; line-height: 1.08; }
.section-lead { margin-top: 1rem; font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem); color: var(--text-2); max-width: 40rem; }
.section-head--center .section-lead { margin-inline: auto; }
.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: var(--fs-14);
  color: var(--gold-1); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover { color: #fff; }
.text-link:hover svg { transform: translateX(3px); }
.prose { color: var(--text-2); font-size: var(--fs-16); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-h3); margin-top: 2.5rem; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { color: var(--text-1); }
.prose code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--surface-2); color: var(--text-1); }
.muted { color: var(--text-3); }
.gold { color: var(--gold-1); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--btn-h); padding: 0 1.3rem; border-radius: 12px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 650; line-height: 1.1; letter-spacing: 0.01em; text-decoration: none; text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary {
  color: var(--ink); background: var(--grad-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(120, 72, 0, 0.35), 0 10px 26px -10px rgba(243, 186, 47, 0.7);
}
.btn--primary:hover { color: var(--ink); filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 34px -12px rgba(243, 186, 47, 0.85); }
.btn--secondary { color: var(--gold-1); background: rgba(243, 186, 47, 0.05); border-color: rgba(243, 186, 47, 0.55); }
.btn--secondary:hover { color: #fff; background: rgba(243, 186, 47, 0.12); border-color: var(--gold-1); }
.btn--ghost { color: var(--text-1); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.btn--emerald { color: #02150d; background: linear-gradient(180deg, #5bf5bf, #10e898 55%, #0bbf7c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 26px -12px rgba(16, 232, 152, 0.7); }
.btn--emerald:hover { color: #02150d; filter: brightness(1.05); transform: translateY(-1px); }
.btn--sm { --btn-h: 38px; padding: 0 0.95rem; font-size: 0.85rem; border-radius: 10px; }
.btn--lg { --btn-h: 56px; padding: 0 1.7rem; font-size: 1rem; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Platform buttons: "Get it on Android" / "Join the iOS beta" */
.btn-platform {
  --btn-h: 62px;
  display: inline-flex; align-items: center; gap: 0.85rem; min-height: var(--btn-h); min-width: 236px;
  padding: 0 1.5rem 0 1.15rem; border-radius: 16px; border: 1px solid transparent; text-decoration: none; text-align: left;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s, background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-platform svg { width: 30px; height: 30px; flex: none; }
.btn-platform__text { display: flex; flex-direction: column; line-height: 1.1; }
.btn-platform__small { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.78; }
.btn-platform__big { margin-top: 0.15rem; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
.btn-platform:active { transform: translateY(1px) scale(0.99); }
.btn-platform--android {
  color: var(--ink); background: var(--grad-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(120, 72, 0, 0.35), 0 14px 34px -14px rgba(243, 186, 47, 0.85);
}
.btn-platform--android:hover { color: var(--ink); filter: brightness(1.05); transform: translateY(-2px); }
.btn-platform--ios {
  color: #0a0f1e; background: linear-gradient(180deg, #ffffff 0%, #e9edf6 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(10, 15, 30, 0.12), 0 14px 34px -14px rgba(200, 215, 255, 0.55);
}
.btn-platform--ios:hover { color: #0a0f1e; transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 18px 40px -14px rgba(200, 215, 255, 0.7); }
.btn-platform--dark { color: var(--text-1); background: rgba(6, 9, 20, 0.7); border-color: var(--line-2); }
.btn-platform--dark:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.platform-row { display: flex; flex-direction: column; gap: 0.75rem; width: min(100%, 360px); }
.platform-row .btn-platform { width: 100%; }
@media (min-width: 640px) {
  .platform-row { flex-direction: row; width: auto; }
  .platform-row .btn-platform { width: auto; }
}

/* ---------- Chips / meta ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 30px; padding: 0 0.7rem; border-radius: var(--r-pill);
  font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.04em; color: var(--text-1); background: var(--surface-2);
  border: 1px solid var(--line);
}
.chip img { width: 18px; height: 18px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; font-size: var(--fs-13); color: var(--text-3); }
.meta-row > * { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot-sep > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 0.85rem; border-radius: 50%; background: currentColor; opacity: 0.6; vertical-align: middle; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  transition: background-color 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(3, 5, 12, 0.84); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text-1); flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(243, 186, 47, 0.35); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.08em; line-height: 1; }
.brand__name small { display: block; margin-top: 0.3rem; font-family: var(--font-sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; color: var(--gold-2); }
.brand:hover { color: #fff; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 550; letter-spacing: 0.01em;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 5px; height: 2px; border-radius: 2px; background: var(--gold-2);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-actions .btn--primary { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text-1);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
@media (min-width: 420px) {
  .header-actions .btn--primary { display: inline-flex; }
}
@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-actions { margin-left: 0.75rem; }
  .nav-toggle { display: none; }
}
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 59; overflow-y: auto; overscroll-behavior: contain;
  padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: rgba(3, 5, 12, 0.98);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: menuIn 0.28s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a.mm-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text-1); text-decoration: none;
}
.mobile-menu a.mm-link svg { width: 20px; height: 20px; color: var(--gold-2); }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--gold-1); }
.mobile-menu .platform-row { margin-top: 1.75rem; width: 100%; }
.mobile-menu__foot { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-14); }
html.menu-open { overflow: hidden; }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(2.5rem, 6vw, 4.25rem);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(243, 186, 47, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(3, 5, 12, 0.55) 0%, rgba(3, 5, 12, 0.75) 55%, var(--bg-0) 100%);
}
.page-hero h1 { font-family: var(--font-display); font-size: var(--fs-h1); letter-spacing: 0.005em; }
.page-hero .lead { margin-top: 1rem; max-width: 40rem; font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem); color: var(--text-2); }
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-inline: auto; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 640px; min-height: max(640px, 100svh); max-height: 1100px;
  padding-top: var(--header-h);
}
.hero__media { position: absolute; inset: 0; z-index: -3; background: #050812; }
.hero__media picture, .hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 12, 0.72) 0%, rgba(3, 5, 12, 0.08) 18%, rgba(3, 5, 12, 0) 38%, rgba(3, 5, 12, 0.55) 62%, rgba(3, 5, 12, 0.94) 84%, var(--bg-0) 100%),
    radial-gradient(60% 40% at 50% 100%, rgba(16, 232, 152, 0.1), transparent 70%);
}
.hero__cast { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__cast img { position: absolute; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.hero__cast .cast-main { width: min(98vw, 520px); left: 50%; top: calc(var(--header-h) + 1vh); transform: translateX(-50%); }
.hero__cast .cast-side { display: none; }
.hero__content { position: relative; width: 100%; padding-bottom: clamp(2.25rem, 6vh, 4.5rem); text-align: center; }
.hero__logo { margin: 0 auto; width: min(76vw, 440px); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65)); }
.hero__pitch {
  margin: 0.85rem auto 1.6rem; max-width: 30ch; color: var(--text-1);
  font-size: clamp(1.06rem, 0.98rem + 0.55vw, 1.32rem); line-height: 1.5; font-weight: 500;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.hero .platform-row { margin-inline: auto; justify-content: center; }
.hero__meta { margin-top: 1.15rem; justify-content: center; color: var(--text-2); }
.hero__meta strong { color: var(--text-1); font-weight: 650; }
.hero__trailer-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-1); font-weight: 600; text-decoration: none; }
.hero__trailer-link .ring { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 226, 112, 0.6); color: var(--gold-1); }
.hero__trailer-link .ring svg { width: 12px; height: 12px; margin-left: 2px; }
.hero__trailer-link:hover { color: #fff; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 1.1rem; z-index: 2; display: none; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; color: var(--text-1); background: rgba(3, 5, 12, 0.5); border: 1px solid var(--line-2);
}
.hero__pause svg { width: 14px; height: 14px; }
.hero.has-video .hero__pause { display: grid; }
@media (min-width: 640px) {
  .hero__cast .cast-main { width: min(70vw, 560px); }
}
@media (min-width: 1024px) {
  .hero { align-items: center; }
  .hero__content { text-align: left; padding-bottom: 0; padding-top: 3vh; }
  .hero__logo { margin: 0; width: min(36vw, 500px); }
  .hero__pitch { margin-left: 0; }
  .hero .platform-row { justify-content: flex-start; margin-left: 0; }
  .hero__meta { justify-content: flex-start; }
  .hero__inner { max-width: 600px; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(3, 5, 12, 0.9) 0%, rgba(3, 5, 12, 0.55) 34%, rgba(3, 5, 12, 0) 62%),
      linear-gradient(180deg, rgba(3, 5, 12, 0.7) 0%, rgba(3, 5, 12, 0) 20%, rgba(3, 5, 12, 0) 70%, var(--bg-0) 100%);
  }
  .hero__cast .cast-main { width: min(40vw, 660px); left: auto; right: 6vw; top: auto; bottom: -3vh; transform: none; }
  .hero__cast .cast-side { display: block; opacity: 0.9; }
  .hero__cast .cast-side--l { width: min(20vw, 330px); right: 35vw; bottom: 18vh; }
  .hero__cast .cast-side--r { width: min(18vw, 300px); right: -2vw; bottom: 24vh; }
}
.scroll-cue { display: none; }
@media (min-width: 1024px) and (min-height: 760px) {
  .scroll-cue {
    position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.45rem;
    font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-3); text-decoration: none;
  }
  .scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--gold-2), transparent); animation: cue 2.4s var(--ease) infinite; }
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Video frame (trailer) ---------- */
.trailer-switch {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; width: fit-content; max-width: 100%;
  margin: 0 auto 1.15rem; padding: 0.3rem; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line-2);
}
.trailer-tab {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0 1.05rem; border-radius: var(--r-pill);
  font-size: var(--fs-13); font-weight: 650; color: var(--text-2); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.trailer-tab:hover { color: #fff; }
.trailer-tab[aria-pressed="true"] {
  color: #fff; background: linear-gradient(180deg, rgba(243, 186, 47, 0.22), rgba(243, 186, 47, 0.08));
  box-shadow: inset 0 0 0 1px rgba(243, 186, 47, 0.55);
}
.trailer-tab__dur { font-size: var(--fs-12); font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.trailer-tab[aria-pressed="true"] .trailer-tab__dur { color: var(--gold-1); }
.video-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg);
  background: #000; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 226, 112, 0.14); text-align: left;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.video-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(3, 5, 12, 0.85)); }
.video-frame:hover img { transform: scale(1.03); }
.play-badge {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); border-radius: 50%;
  color: var(--ink); background: var(--grad-gold); box-shadow: 0 0 0 10px rgba(243, 186, 47, 0.16), 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.play-badge svg { width: 34%; height: 34%; margin-left: 6%; }
.video-frame:hover .play-badge { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 16px rgba(243, 186, 47, 0.14), 0 20px 50px -10px rgba(0, 0, 0, 0.8); }
.video-frame__caption { position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); bottom: clamp(0.9rem, 2.5vw, 1.6rem); display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.video-frame__title { font-family: var(--font-display); font-size: clamp(1rem, 0.9rem + 0.8vw, 1.5rem); color: var(--text-1); }
.video-frame__tag { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-1); }
.video-frame__dur { font-size: var(--fs-13); color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: clamp(2rem, 4vw, 2.75rem); counter-reset: pillar; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 2.5vw, 2.5rem); } }
.pillar__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 0.8s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__num { display: block; margin-top: 1.4rem; font-family: var(--font-display); font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.2em; color: var(--gold-2); }
.pillar h3 { margin-top: 0.45rem; font-family: var(--font-display); font-size: var(--fs-h3); }
.pillar p { margin-top: 0.6rem; color: var(--text-2); }

/* ---------- Carousels ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74%, 290px); gap: clamp(0.85rem, 2vw, 1.25rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0.5rem var(--gutter) 1.25rem; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track:focus-visible { outline-offset: -2px; }
.carousel__nav { display: none; gap: 0.5rem; }
.carousel__btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--text-1);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover:not([disabled]) { border-color: var(--gold-2); background: rgba(243, 186, 47, 0.1); color: var(--gold-1); }
.carousel__btn[disabled] { opacity: 0.3; cursor: default; }
@media (min-width: 900px) {
  .carousel__nav { display: flex; }
  .carousel__track { grid-auto-columns: calc((100% - 3 * 1.25rem - 2 * var(--gutter)) / 4); }
}
@media (min-width: 1280px) {
  .carousel__track { grid-auto-columns: calc((min(100vw, calc(var(--maxw) + 2 * var(--gutter))) - 2 * var(--gutter) - 3 * 1.25rem) / 4); }
}

/* Knight cards */
.knight-card {
  --accent: #f3ba2f; --accent-a: rgba(243, 186, 47, 0.35);
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4.15; overflow: hidden; border-radius: var(--r-lg); color: inherit; text-decoration: none;
  background:
    radial-gradient(90% 65% at 50% 38%, var(--accent-a) 0%, transparent 70%),
    linear-gradient(180deg, #0e1530 0%, #070b18 100%);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.knight-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(3, 5, 12, 0.92) 85%); }
.knight-card__art { position: absolute; z-index: -2; left: 50%; top: 2%; width: 112%; max-width: none; transform: translateX(-50%); transition: transform 0.6s var(--ease); }
.knight-card:hover { box-shadow: 0 0 0 1px var(--accent), 0 24px 50px -24px var(--accent-a); transform: translateY(-3px); }
.knight-card:hover .knight-card__art { transform: translateX(-50%) scale(1.04); }
.knight-card__body { padding: 1rem 1.1rem 1.15rem; }
.knight-card__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--text-1); line-height: 1.1; }
.knight-card__title { margin-top: 0.25rem; font-size: var(--fs-13); color: var(--text-2); line-height: 1.35; }
.knight-card__meta { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.knight-card__meta img { width: 24px; height: 24px; }
.tier-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

/* ---------- Summon teaser ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr 1fr; } .split--rev > :first-child { order: 2; } }
.art-stage { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.art-stage > picture img { width: 100%; height: 100%; object-fit: cover; }
.art-stage__cutout { position: absolute; z-index: 1; right: -3%; bottom: -10%; width: 58%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.art-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(3, 5, 12, 0.55)); pointer-events: none; }
.rates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1.6rem 0 2rem; }
@media (min-width: 560px) { .rates { grid-template-columns: repeat(4, 1fr); } }
.rate { padding: 0.85rem 0.9rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.rate dt { font-size: var(--fs-12); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.rate dd { margin-top: 0.25rem; font-size: 1.2rem; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
.rate--divine dt { color: var(--emerald); }
.rate--gold dt { color: var(--gold-2); }
.rate--silver dt { color: #d8e0f0; }
.rate--bronze dt { color: #e3a26f; }

/* ---------- Story teaser ---------- */
.story-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem); }
.story-band__bg { position: absolute; inset: 0; z-index: -2; }
.story-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.story-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg-0) 0%, rgba(3, 5, 12, 0.6) 18%, rgba(3, 5, 12, 0.6) 82%, var(--bg-0) 100%),
    linear-gradient(90deg, rgba(3, 5, 12, 0.92) 0%, rgba(3, 5, 12, 0.7) 45%, rgba(3, 5, 12, 0.2) 100%);
}
.story-band__inner { max-width: 560px; }
.saga-list { list-style: none; padding: 0; margin: 2rem 0 2.25rem; border-top: 1px solid var(--line-2); }
.saga-list li { border-bottom: 1px solid var(--line-2); }
.saga-list a { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 0.75rem; min-height: 60px; color: var(--text-1); text-decoration: none; }
.saga-list .num { font-family: var(--font-display); font-weight: 700; color: var(--gold-2); }
.saga-list .name { font-weight: 600; }
.saga-list .ch { font-size: var(--fs-13); color: var(--text-3); }
.saga-list a:hover .name { color: var(--gold-1); }

/* ---------- Shorts ---------- */
.shorts .carousel__track { grid-auto-columns: min(46%, 230px); }
@media (min-width: 900px) { .shorts .carousel__track { grid-auto-columns: calc((100% - 4 * 1.25rem - 2 * var(--gutter)) / 5); } }
@media (min-width: 1280px) { .shorts .carousel__track { grid-auto-columns: calc((min(100vw, calc(var(--maxw) + 2 * var(--gutter))) - 2 * var(--gutter) - 4 * 1.25rem) / 5); } }
.short-card {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-lg);
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); color: var(--text-1); text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.short-card img, .short-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.short-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 5, 12, 0.1) 40%, rgba(3, 5, 12, 0.9) 100%); }
.short-card__body { position: absolute; z-index: 2; left: 0.9rem; right: 0.9rem; bottom: 0.95rem; }
.short-card__title { font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.short-card__meta { margin-top: 0.2rem; font-size: var(--fs-12); color: var(--text-2); }
.short-card__play {
  position: absolute; z-index: 2; top: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--ink); background: var(--grad-gold);
}
.short-card__play svg { width: 14px; height: 14px; margin-left: 2px; }
.short-card__soon {
  position: absolute; z-index: 2; top: 0.75rem; left: 0.75rem; padding: 0.3rem 0.6rem; border-radius: var(--r-pill);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-1);
  background: rgba(3, 5, 12, 0.6); border: 1px solid var(--line-2);
}
button.short-card:hover, a.short-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gold-2), 0 24px 50px -24px rgba(243, 186, 47, 0.5); }
.short-card[aria-disabled="true"] { cursor: default; }

/* ---------- News ---------- */
.news-grid { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.news-card__media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__meta { margin-top: 1.1rem; display: flex; gap: 0.75rem; font-size: var(--fs-12); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.news-card__meta .tag { color: var(--gold-2); }
.news-card__meta time { color: var(--text-3); }
.news-card h3 { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.25; }
.news-card:hover h3 { color: var(--gold-1); }
.news-card p { margin-top: 0.5rem; color: var(--text-2); font-size: var(--fs-14); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; padding: 1rem 0; cursor: pointer;
  list-style: none; font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem); font-weight: 650; color: var(--text-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--gold-1), var(--gold-1)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--gold-1), var(--gold-1)) center / 1.5px 11px no-repeat;
  transition: transform 0.3s var(--ease), background-size 0.3s;
}
.faq details[open] summary::after { transform: rotate(180deg); background-size: 11px 1.5px, 1.5px 0; }
.faq summary:hover { color: var(--gold-1); }
.faq .faq__a { padding: 0 2.75rem 1.4rem 0; color: var(--text-2); }
.faq .faq__a > * + * { margin-top: 0.75rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem); text-align: center; box-shadow: 0 0 0 1px var(--line-gold), var(--shadow-lg); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 50% 50%, rgba(3, 5, 12, 0.55), rgba(3, 5, 12, 0.92)); }
.cta-band h2 { font-family: var(--font-display); font-size: var(--fs-h2); }
.cta-band p { margin: 1rem auto 2rem; max-width: 34rem; color: var(--text-1); font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem); }
.cta-band .platform-row { margin-inline: auto; justify-content: center; }
.cta-band__foot { margin-top: 1.4rem; font-size: var(--fs-14); color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(3rem, 6vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom)); background: #02040a; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(243, 186, 47, 0.5), transparent); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { width: 190px; height: auto; }
.footer-brand p { margin-top: 1rem; max-width: 26rem; font-size: var(--fs-14); color: var(--text-3); }
.footer-title { font-family: var(--font-sans); font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-1); margin-bottom: 0.9rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; font-size: var(--fs-14); }
.footer-links a:hover { color: var(--gold-1); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; font-size: var(--fs-12); color: var(--text-3); }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1fr auto; } }
.social-row { display: flex; gap: 0.5rem; margin-top: 1.25rem; }

/* ---------- Mobile download dock ---------- */
.dl-dock {
  position: fixed; z-index: 45; left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.5rem; border-radius: 18px;
  background: rgba(6, 9, 20, 0.92); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  transform: translateY(calc(100% + 1.5rem)); transition: transform 0.4s var(--ease); visibility: hidden;
}
.dl-dock.is-visible { transform: none; visibility: visible; }
.dl-dock .btn { --btn-h: 46px; padding: 0 0.6rem; font-size: 0.9rem; border-radius: 12px; }
.dl-dock .btn svg { width: 20px; height: 20px; }
.dl-dock .btn--ios { color: #0a0f1e; background: linear-gradient(180deg, #fff, #e6ebf5); }
@media (min-width: 900px) { .dl-dock { display: none; } }

/* ---------- Modal (video) ---------- */
.modal {
  width: min(100% - 2rem, 1120px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text-1);
  overflow: visible;
}
.modal::backdrop { background: rgba(2, 3, 8, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 0.28s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.modal__title { font-family: var(--font-display); font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem); margin-right: auto; }
.modal__cuts { display: inline-flex; gap: 0.3rem; padding: 0.22rem; border-radius: var(--r-pill); background: rgba(6, 9, 20, 0.85); border: 1px solid var(--line-2); }
.modal__cuts[hidden] { display: none; }
.modal__cut { min-height: 34px; padding: 0 0.8rem; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.modal__cut:hover { color: #fff; }
.modal__cut[aria-pressed="true"] { color: #fff; background: rgba(243, 186, 47, 0.2); box-shadow: inset 0 0 0 1px rgba(243, 186, 47, 0.55); }
.modal__close { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); color: var(--text-1); flex: none; }
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: rgba(255, 255, 255, 0.16); }
.modal video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2); }
.modal.modal--vertical { width: min(100% - 2rem, 440px); }
.modal.modal--vertical video { aspect-ratio: 9 / 16; max-height: calc(100svh - 7rem); width: auto; margin-inline: auto; }

/* ---------- Beta / download hub ---------- */
.dl-hero .platform-badges { margin-top: 1.5rem; }
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; padding: 0.35rem; width: 100%; max-width: 560px;
  border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2);
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 54px; padding: 0 0.75rem; border-radius: 14px;
  color: var(--text-2); font-weight: 650; font-size: 0.98rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tab svg { width: 22px; height: 22px; flex: none; }
.tab small { display: none; font-weight: 500; color: var(--text-3); }
@media (min-width: 480px) { .tab small { display: inline; } }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, rgba(243, 186, 47, 0.2), rgba(243, 186, 47, 0.08)); box-shadow: inset 0 0 0 1px rgba(243, 186, 47, 0.55); }
.tab[aria-selected="true"] small { color: var(--gold-1); }
.tab-panel { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.tab-panel:focus-visible { outline: none; }
.panel-intro { max-width: 44rem; margin-bottom: 1.75rem; }
.panel-intro h2 { font-family: var(--font-display); font-size: var(--fs-h3); }
.panel-intro p { margin-top: 0.5rem; }
.dl-layout { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 1024px) { .dl-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; }
.step { position: relative; padding: 1.4rem 1.25rem 1.5rem 4.1rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step.is-done { border-color: rgba(16, 232, 152, 0.45); }
.step__num {
  position: absolute; left: 1.15rem; top: 1.3rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  font-family: var(--font-sans); font-weight: 800; font-size: 0.95rem; color: var(--ink); background: var(--grad-gold);
}
.step.is-done .step__num { background: var(--emerald); color: #02150d; }
.step__title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.step__text { margin-top: 0.35rem; color: var(--text-2); font-size: 0.95rem; }
.step__actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.aside-card { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.aside-card + .aside-card { margin-top: 1rem; }
.aside-card h3 { font-size: 1.05rem; font-weight: 700; }
.aside-card p, .aside-card li { color: var(--text-2); font-size: 0.95rem; }
.aside-card ul { padding-left: 1.1rem; margin-top: 0.5rem; }
.apk-card { display: flex; gap: 1rem; align-items: flex-start; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border-radius: 12px; background: #050913; border: 1px dashed rgba(243, 186, 47, 0.55); }
.code-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-1); }

/* Forms */
.form { display: grid; gap: 1.1rem; margin-top: 1rem; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font-size: 0.9rem; font-weight: 650; color: var(--text-1); }
.field .opt { font-weight: 500; color: var(--text-3); }
.field .hint { font-size: 0.82rem; color: var(--text-3); line-height: 1.45; }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 1rem; border-radius: 12px; font-size: 1rem; color: var(--text-1);
  background: #050913; border: 1px solid rgba(255, 255, 255, 0.16); transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: #66728d; }
.select {
  padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3ba2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px;
}
.select option { background: #0a1020; color: var(--text-1); }
.input:hover, .select:hover { border-color: rgba(255, 255, 255, 0.28); }
.input:focus, .select:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(243, 186, 47, 0.22); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #ff5d78; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18); }
.field-error { display: flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; font-weight: 550; color: #ff8fa3; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; font-size: 0.7rem; font-weight: 800; color: #2a0710; background: #ff8fa3; }
.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; align-items: start; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check__box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, 0.3); background: #050913; display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s; }
.check__box svg { width: 15px; height: 15px; color: var(--ink); opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.2s var(--ease); }
.check input:checked + .check__box { background: var(--gold-2); border-color: var(--gold-2); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--emerald); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check__box { border-color: #ff5d78; }
.form-status { padding: 0.95rem 1.1rem; border-radius: 12px; font-size: 0.93rem; line-height: 1.5; }
.form-status--error { color: #ffdde3; background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.5); }
.form-status--success { color: #d6ffef; background: rgba(16, 232, 152, 0.08); border: 1px solid rgba(16, 232, 152, 0.45); }
.form-status strong { color: #fff; }
.form-note { font-size: 0.82rem; color: var(--text-3); }
.ios-card { padding: clamp(1.35rem, 3.5vw, 2.25rem); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.ios-card__head { display: flex; gap: 1rem; align-items: center; }
.ios-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; color: #0a0f1e; background: linear-gradient(180deg, #fff, #dfe5f2); }
.ios-card__icon svg { width: 28px; height: 28px; }
.ios-card h2 { font-family: var(--font-display); font-size: var(--fs-h3); }
.success { text-align: left; }
.success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #02150d; background: var(--emerald); box-shadow: 0 0 0 10px rgba(16, 232, 152, 0.12); }
.success__icon svg { width: 28px; height: 28px; }
.success h3 { margin-top: 1.25rem; font-family: var(--font-display); font-size: var(--fs-h3); }
.success p { margin-top: 0.5rem; }
.next-steps { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: 0.85rem; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 2.6rem; counter-increment: ns; color: var(--text-2); }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-weight: 800; font-size: 0.85rem; color: var(--gold-1); border: 1px solid rgba(243, 186, 47, 0.55);
}
.next-steps strong { color: var(--text-1); }
.req-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin-top: 0.75rem; }
.req-list li { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; align-items: start; }
.req-list svg { width: 20px; height: 20px; color: var(--emerald); margin-top: 2px; }

/* ---------- Story page ---------- */
.saga-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(3, 5, 12, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.saga-nav ul { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; list-style: none; padding: 0.55rem 0; }
.saga-nav ul::-webkit-scrollbar { display: none; }
.saga-nav a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.9rem; border-radius: 10px; white-space: nowrap; color: var(--text-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.saga-nav a span { font-family: var(--font-display); color: var(--gold-2); }
.saga-nav a:hover, .saga-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.saga { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.saga__banner { position: relative; aspect-ratio: 16 / 8; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
@media (max-width: 640px) { .saga__banner { aspect-ratio: 4 / 3; } }
.saga__banner img { width: 100%; height: 100%; object-fit: cover; }
.saga__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(3, 5, 12, 0.9)); }
.saga__banner-text { position: absolute; z-index: 2; left: clamp(1.1rem, 4vw, 2.5rem); right: clamp(1.1rem, 4vw, 2.5rem); bottom: clamp(1rem, 3.5vw, 2.25rem); }
.saga__num { font-family: var(--font-display); font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.22em; color: var(--gold-1); }
.saga__banner h2 { margin-top: 0.35rem; font-family: var(--font-display); font-size: var(--fs-h2); }
.saga__body { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(1.75rem, 4vw, 2.75rem); }
@media (min-width: 1024px) { .saga__body { grid-template-columns: 0.9fr 1.6fr; } }
.saga__summary p { font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem); color: var(--text-2); }
.saga__facts { margin-top: 1.25rem; }
.chapters { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
.chapter a { display: grid; grid-template-columns: 52px 1fr; gap: 0.85rem; align-items: center; padding: 0.7rem 0.8rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color 0.2s, background-color 0.2s; }
.chapter a:hover { border-color: var(--line-gold); background: rgba(243, 186, 47, 0.05); }
.chapter img { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-3); }
.chapter__no { font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.chapter__name { font-weight: 650; color: var(--text-1); line-height: 1.3; }
.chapter__boss { font-size: var(--fs-13); color: var(--text-3); }
.theater-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.theater-card { display: block; width: 100%; text-align: left; color: inherit; }
.theater-card .video-frame { border-radius: var(--r-md); }
.theater-card .play-badge { width: 54px; height: 54px; box-shadow: 0 0 0 7px rgba(243, 186, 47, 0.16); }
.theater-card__title { margin-top: 0.75rem; font-weight: 650; color: var(--text-1); line-height: 1.35; }
.theater-card__meta { font-size: var(--fs-13); color: var(--text-3); }
.theater-card[aria-disabled="true"] { cursor: default; }
.theater-card[aria-disabled="true"] .play-badge { background: rgba(255, 255, 255, 0.12); color: var(--text-2); box-shadow: none; }

/* ---------- News page ---------- */
.news-list { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.news-item { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
@media (min-width: 900px) { .news-item { grid-template-columns: 1fr 1.05fr; } }
.news-item__media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item h2 { margin-top: 0.6rem; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; }
.news-item .prose { margin-top: 1rem; }
.news-item__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.news-item:target .news-item__media { box-shadow: var(--shadow-lg), 0 0 0 2px var(--gold-2); }

/* ---------- Legal ---------- */
.legal { padding-bottom: clamp(3rem, 6vw, 5rem); }
.legal .meta { margin-top: 1rem; font-size: var(--fs-14); color: var(--text-3); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; }

/* ---------- Reveal + motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Background clips (lazy, muted loops) ---------- */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.bg-video.is-playing { opacity: 1; }
.story-band__cutout { display: none; }
.story-band > .container { position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .story-band__cutout {
    display: block; position: absolute; z-index: 0; right: 4vw; bottom: 0; width: min(32vw, 520px); height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.65));
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .story-band__cutout img { width: 100%; height: auto; }
}
.saga__banner .bg-video { z-index: 0; }
.saga__banner .saga__cutout { position: absolute; z-index: 1; right: 2%; bottom: -10%; width: min(36%, 440px); height: auto; object-fit: contain; filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.saga__banner-text { max-width: min(64%, 620px); }
@media (max-width: 640px) { .saga__banner .saga__cutout { width: 52%; right: -6%; bottom: -6%; } }

/* Knight cards: hover / in-view showcase clip */
.knight-card__video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.knight-card.is-video .knight-card__video { opacity: 1; }
.knight-card .knight-card__art { transition: transform 0.6s var(--ease), opacity 0.35s ease; }
.knight-card.is-video .knight-card__art { opacity: 0; }
.knight-card.has-video .knight-card__body::before {
  content: "Video"; position: absolute; top: 0.85rem; right: 0.85rem; padding: 0.22rem 0.55rem 0.22rem 1.35rem; border-radius: var(--r-pill);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-1);
  background: rgba(3, 5, 12, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffe270'%3E%3Cpath d='M7 4.5v15a1 1 0 0 0 1.52.85l12.2-7.5a1 1 0 0 0 0-1.7L8.52 3.65A1 1 0 0 0 7 4.5z'/%3E%3C/svg%3E") no-repeat 0.5rem 50% / 9px;
  border: 1px solid var(--line-2); transition: opacity 0.3s;
}
.knight-card.is-video .knight-card__body::before { opacity: 0; }
.video-frame.is-inline::after { display: none; }
.video-frame.is-inline video { width: 100%; height: 100%; background: #000; }

/* iOS tab: "See how to join" short */
.ios-short { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; }
.ios-short__btn { position: relative; display: block; width: 112px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line-2); }
.ios-short__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.ios-short__btn:hover img { transform: scale(1.04); }
.ios-short__btn .short-card__play { top: 50%; right: auto; left: 50%; transform: translate(-50%, -50%); }
.bw { font-family: var(--font-sans); font-weight: 750; letter-spacing: -0.01em; text-transform: none; font-size: 0.94em; }
