:root {
  --bg: #07080f;
  --bg-elev: #0f111d;
  --bg-card: rgba(18, 21, 36, 0.78);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f6fb;
  --text-dim: #a9afc7;
  --text-mute: #767d99;
  --neon-pink: #ff347f;
  --sunset-gold: #ff9c69;
  --coast-cyan: #54e2f6;
  --violet: #9e7bff;
  --grad-brand: linear-gradient(135deg, #ff347f 0%, #ff9c69 52%, #54e2f6 100%);
  --grad-warm: linear-gradient(135deg, #ff347f 0%, #ff8a5c 100%);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(255, 52, 127, 0.16), transparent 62%),
    radial-gradient(960px 580px at 10% 18%, rgba(84, 226, 246, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 8, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1rem;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(255, 52, 127, 0.35);
}
.brand-sub {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--coast-cyan);
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(84, 226, 246, 0.12);
  border: 1px solid rgba(84, 226, 246, 0.25);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
}
.lang-toggle button {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: 0.18s ease;
}
.lang-toggle button.active {
  background: var(--text);
  color: var(--bg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 52, 127, 0.34);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(255, 52, 127, 0.48); }
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.32); }
.btn-sm { padding: 8px 15px; font-size: 0.82rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 122px 0 84px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg picture, .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.12) contrast(1.04) brightness(0.56);
  transform: scale(1.03);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(7, 8, 15, 0.94) 0%, rgba(7, 8, 15, 0.68) 48%, rgba(7, 8, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(7, 8, 15, 0.45) 0%, rgba(7, 8, 15, 0.15) 45%, var(--bg) 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 52, 127, 0.14);
  border: 1px solid rgba(255, 52, 127, 0.34);
  color: #ff9ec2;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: #d6daea;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.hero-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
}
.pill {
  padding: 12px 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 17, 29, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.pill strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
}
.pill span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Hero Floating Showcase Deck */
.hero-deck {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}
.deck-card {
  position: relative;
  width: 240px;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card.main { z-index: 3; transform: rotate(-2deg); }
.deck-card.back-left {
  position: absolute;
  width: 196px;
  left: 2%;
  top: 48px;
  z-index: 2;
  transform: rotate(-11deg);
  opacity: 0.92;
}
.deck-card.back-right {
  position: absolute;
  width: 196px;
  right: 2%;
  bottom: 24px;
  z-index: 2;
  transform: rotate(10deg);
  opacity: 0.92;
}
.hero-deck:hover .deck-card.main { transform: translateY(-6px) rotate(0deg) scale(1.03); }
.hero-deck:hover .deck-card.back-left { transform: translateX(-10px) rotate(-14deg); }
.hero-deck:hover .deck-card.back-right { transform: translateX(10px) rotate(13deg); }
.deck-tag {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
}
.deck-tag small { color: var(--coast-cyan); font-weight: 700; letter-spacing: 0.06em; }

/* Sections */
.section {
  padding: 88px 0;
  position: relative;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.section-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coast-cyan);
  margin-bottom: 8px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.section-desc {
  margin: 0;
  color: var(--text-dim);
  max-width: 520px;
  font-size: 0.96rem;
}

/* Squad Cards */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.idol-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.idol-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-lg);
}
.idol-photo {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #101322;
}
.idol-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.idol-card:hover .idol-photo img { transform: scale(1.05); }
.idol-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 8, 15, 0.92) 100%);
}
.idol-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(7, 8, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.idol-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
}
.idol-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.idol-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.idol-height {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
}
.idol-sub {
  font-size: 0.8rem;
  color: var(--sunset-gold);
  font-weight: 700;
  margin-top: 2px;
}
.idol-body {
  padding: 15px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.idol-burst {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}
.idol-burst strong { color: #fff; }
.idol-more {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coast-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Stages & Gallery */
.stage-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.stage-tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: 0.2s ease;
}
.stage-tab.active {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 52, 127, 0.3);
}
.stage-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}
.stage-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}
.stage-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(7, 8, 15, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 700;
}
.stage-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}
.stage-info-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.stage-info-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}
.stage-info-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #e4e7f5;
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coast-cyan);
  flex-shrink: 0;
}
.mini-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini-shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}
.mini-shot img { width: 100%; height: 100%; object-fit: cover; }
.mini-shot span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(7, 8, 15, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* OST Player */
.ost-shell {
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 320px at 90% 10%, rgba(255, 52, 127, 0.16), transparent 65%),
    radial-gradient(500px 320px at 10% 90%, rgba(84, 226, 246, 0.12), transparent 65%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}
.ost-now {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ost-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad-warm);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(255, 52, 127, 0.42);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.play-btn:hover { transform: scale(1.06); }
.ost-title { font-size: 1.18rem; font-weight: 800; margin: 0; }
.ost-sub { font-size: 0.84rem; color: var(--text-dim); margin: 2px 0 0; }
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
  margin-left: auto;
}
.eq-bars i {
  display: block;
  width: 4px;
  height: 6px;
  border-radius: 4px;
  background: var(--coast-cyan);
  transition: height 0.2s ease;
}
.ost-shell.playing .eq-bars i:nth-child(1) { animation: eq 0.65s infinite alternate; }
.ost-shell.playing .eq-bars i:nth-child(2) { animation: eq 0.52s 0.12s infinite alternate; }
.ost-shell.playing .eq-bars i:nth-child(3) { animation: eq 0.78s 0.22s infinite alternate; }
.ost-shell.playing .eq-bars i:nth-child(4) { animation: eq 0.58s 0.08s infinite alternate; }
@keyframes eq {
  from { height: 5px; background: var(--coast-cyan); }
  to { height: 22px; background: var(--neon-pink); }
}
.ost-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.ost-range {
  flex: 1;
  accent-color: var(--neon-pink);
  cursor: pointer;
}
.track-list {
  display: grid;
  gap: 10px;
}
.track-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: 0.18s ease;
}
.track-btn:hover { background: rgba(255, 255, 255, 0.07); }
.track-btn.active {
  background: rgba(255, 52, 127, 0.14);
  border-color: rgba(255, 52, 127, 0.45);
}
.track-left { display: flex; align-items: center; gap: 12px; }
.track-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--coast-cyan);
  width: 24px;
}
.track-name { font-weight: 700; font-size: 0.92rem; display: block; }
.track-mood { font-size: 0.78rem; color: var(--text-dim); display: block; }
.track-dur { font-size: 0.78rem; color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* Story & YouTube Hub */
.story-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.88fr);
  gap: 24px;
  align-items: stretch;
}
.story-video-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #060710;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}
.story-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #060710;
}
.story-live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 8, 16, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.story-live-badge .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2b4a;
  box-shadow: 0 0 10px #ff2b4a;
  display: inline-block;
}
.story-side {
  display: flex;
}
.story-info-card {
  width: 100%;
  padding: 26px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(460px 260px at 90% 10%, rgba(255, 52, 127, 0.16), transparent 65%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.story-info-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.35;
}
.story-info-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.story-chapters {
  display: grid;
  gap: 8px;
}
.chapter-chip {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.18s ease;
  color: #eef1ff;
}
.chapter-chip:hover {
  background: rgba(255, 52, 127, 0.16);
  border-color: rgba(255, 52, 127, 0.45);
  transform: translateX(2px);
}
.chapter-chip span {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--coast-cyan);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}
.chapter-chip strong {
  font-size: 0.84rem;
  font-weight: 700;
}
.story-banner {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 52, 127, 0.16), rgba(158, 123, 255, 0.14) 55%, rgba(84, 226, 246, 0.12));
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 28px;
  align-items: center;
}
.story-banner h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 900; }
.story-banner p { margin: 0; color: #dce0f0; max-width: 640px; font-size: 0.95rem; }

/* Gameplay Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pillar-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(84, 226, 246, 0.12);
  border: 1px solid rgba(84, 226, 246, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.pillar-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.pillar-card p { margin: 0; font-size: 0.88rem; color: var(--text-dim); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 5, 10, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  padding: 20px;
}
.modal-backdrop.open { display: grid; }
.modal-card {
  width: min(760px, 100%);
  border-radius: var(--radius-xl);
  background: #101322;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
  position: relative;
}
.modal-img { background: #090b14; aspect-ratio: 2 / 3; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 8, 15, 0.75);
  border: 1px solid var(--border-strong);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.stat-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.stat-box span { display: block; font-size: 0.72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-box strong { font-size: 0.9rem; color: #fff; }

/* Subpage (Privacy / Support) */
.doc-main {
  padding: 124px 0 88px;
}
.doc-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.doc-card h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 900; }
.doc-card .doc-updated { color: var(--text-mute); font-size: 0.85rem; margin-bottom: 28px; }
.doc-card h2 { margin: 28px 0 10px; font-size: 1.18rem; color: var(--coast-cyan); }
.doc-card p, .doc-card li { color: #d4d8ea; font-size: 0.94rem; }
.doc-card ul { padding-left: 20px; }
.faq-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 0.98rem; color: #fff; }
.faq-item p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--text-mute);
  font-size: 0.86rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a:hover { color: var(--text); }

/* Worldview & Pageant Arena */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lore-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.lore-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}
.lore-num {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--sunset-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lore-card h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; }
.lore-card p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }

.pageant-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(640px 360px at 86% 12%, rgba(255, 52, 127, 0.2), transparent 65%),
    radial-gradient(520px 320px at 14% 90%, rgba(255, 156, 105, 0.15), transparent 65%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.council-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.council-chip {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: #eef1ff;
}
.council-chip strong { color: var(--sunset-gold); }
.pageant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.contestant-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(10, 12, 22, 0.85);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.contestant-card.winner {
  border-color: rgba(255, 156, 105, 0.65);
  box-shadow: 0 12px 36px rgba(255, 156, 105, 0.18);
}
.contestant-top {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.contestant-top img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rank-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: rgba(7, 8, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.contestant-card.winner .rank-ribbon {
  background: linear-gradient(135deg, #ffb454, #ff347f);
  border-color: transparent;
  color: #fff;
}
.score-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(7, 8, 15, 0.85);
  color: var(--coast-cyan);
  border: 1px solid rgba(84, 226, 246, 0.35);
}
.contestant-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.contestant-info h3 { margin: 0; font-size: 1.08rem; font-weight: 800; }
.contestant-info p { margin: 0; font-size: 0.8rem; color: var(--text-dim); }
.vote-bar-wrap {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 4px;
}
.vote-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-warm);
  transition: width 0.35s ease;
}
.vote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-dim);
}
.cheer-btn {
  margin-top: auto;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  transition: 0.18s ease;
}
.cheer-btn:hover { background: rgba(255, 52, 127, 0.2); border-color: var(--neon-pink); }
.cheer-btn.voted {
  background: var(--grad-warm);
  border-color: transparent;
  color: #fff;
}

.gates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gate-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.gate-card strong { display: block; font-size: 0.96rem; margin-bottom: 6px; color: #fff; }
.gate-card p { margin: 0; font-size: 0.84rem; color: var(--text-dim); }

/* EP.0 Starting Story Cinema */
.ep0-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ep0-cinema {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
}
.ep0-viewport {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.ep0-pane { display: none; }
.ep0-pane.active { display: block; }
.ep0-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #04050b;
  aspect-ratio: 16 / 9;
}
.ep0-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #04050b;
}
.ep0-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.ep0-badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(7, 8, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eef1ff;
  backdrop-filter: blur(8px);
}
.ep0-badge.live {
  background: rgba(255, 52, 127, 0.88);
  border-color: rgba(255, 190, 214, 0.55);
  color: #fff;
}
.ep0-foot-note {
  margin: 12px 4px 2px;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.ep0-still-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #060812;
  aspect-ratio: 16 / 9;
}
.ep0-still-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep0-still-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 15, 0.84) 38%, rgba(7, 8, 15, 0.96) 100%);
}
.ep0-timecode {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--coast-cyan);
  margin-bottom: 4px;
}
.ep0-still-meta h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 900;
}
.ep0-still-meta p {
  margin: 0;
  font-size: 0.86rem;
  color: #dce0f0;
}
.ep0-board-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #060812;
  border: 1px solid var(--border);
}
.ep0-acts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep0-act-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.ep0-act-card:hover {
  border-color: rgba(255, 156, 105, 0.48);
  background: rgba(24, 28, 48, 0.86);
  transform: translateY(-2px);
}
.ep0-act-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ep0-act-head .lore-num { margin-bottom: 0; }
.ep0-act-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(84, 226, 246, 0.12);
  color: var(--coast-cyan);
  border: 1px solid rgba(84, 226, 246, 0.28);
}
.ep0-act-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}
.ep0-act-card p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.ep0-act-card blockquote {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--neon-pink);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffe3ee;
}
.ep0-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.ep0-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #0a0c16;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ep0-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep0-thumb span {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(7, 8, 15, 0.82);
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
}
.ep0-thumb:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.45); }
.ep0-thumb.active {
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 2px rgba(255, 52, 127, 0.35);
}

/* Build 24 Per-Character Studio Gear Strip */
.gear-showcase {
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gear-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gear-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.gear-note {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sunset-gold);
}
.gear-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.gear-item {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 12, 22, 0.9);
  border: 1px solid var(--border);
  text-align: center;
  padding-bottom: 8px;
}
.gear-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gear-item span {
  display: block;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #dce0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Beta Download Hub */
.beta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
}
.beta-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.beta-card.featured {
  background:
    radial-gradient(520px 280px at 95% 5%, rgba(84, 226, 246, 0.16), transparent 65%),
    radial-gradient(460px 260px at 5% 95%, rgba(255, 52, 127, 0.14), transparent 65%),
    var(--bg-card);
  border-color: rgba(84, 226, 246, 0.36);
  box-shadow: var(--shadow-lg);
}
.beta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.beta-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.beta-badge.android {
  background: rgba(84, 226, 246, 0.14);
  color: var(--coast-cyan);
  border: 1px solid rgba(84, 226, 246, 0.34);
}
.beta-badge.ios {
  background: rgba(255, 156, 105, 0.14);
  color: var(--sunset-gold);
  border: 1px solid rgba(255, 156, 105, 0.32);
}
.beta-ver {
  font-size: 0.8rem;
  font-weight: 800;
  color: #e4e7f5;
}
.beta-card h3 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 900;
}
.beta-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.beta-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.beta-specs span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: #e4e7f5;
}
.beta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.beta-install-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 8px;
}
.beta-install-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: #dce0f0;
  line-height: 1.5;
}
.beta-install-list .feature-dot {
  margin-top: 7px;
}
.beta-sha {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-mute);
}
.beta-sha span {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.beta-sha code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: #b7bed8;
  word-break: break-all;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .stage-feature, .ost-shell, .story-banner, .ep0-cinema, .story-hub, .beta-grid { grid-template-columns: 1fr; }
  .hero-deck { min-height: 360px; margin-top: 10px; }
  .squad-grid, .pageant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep0-strip, .gear-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillars-grid, .lore-grid, .gates-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 102px 0 64px; }
  .hero-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .squad-grid, .pageant-grid { grid-template-columns: 1fr; }
  .ep0-strip, .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal-img { aspect-ratio: 4 / 3; }
  .doc-card { padding: 24px; }
  .story-banner, .ost-shell, .pageant-panel { padding: 22px; }
  .deck-card { width: 200px; }
  .deck-card.back-left, .deck-card.back-right { width: 155px; }
}
