/* =========================================================
   Captain's Codex — unofficial Lust Goddess fan & play hub
   Built on Bootstrap 5.3. Edit the tokens below to re-skin.
   ========================================================= */

:root {
  --ink: #140c20;          /* page background, deep aubergine night */
  --ink-2: #1c1230;        /* raised panels */
  --ink-3: #261a3d;        /* hover / inputs */
  --line: rgba(236, 222, 255, 0.10);
  --line-strong: rgba(236, 222, 255, 0.20);
  --paper: #f7f0fb;        /* main text */
  --mist: #b8abcc;         /* secondary text */
  --rose: #ff4d8d;         /* primary accent — Play buttons */
  --rose-deep: #d22a68;
  --amber: #ffc15e;        /* secondary accent — dates, highlights */
  --cyan: #5ad1e6;         /* Peacekeepers / info */

  /* faction colours used on character cards */
  --f-commander: #ff4d8d;
  --f-mercenary: #ffc15e;
  --f-replica: #5ad1e6;

  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --nav-h: 72px;

  /* Bootstrap overrides */
  --bs-body-bg: var(--ink);
  --bs-body-color: var(--paper);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 255, 193, 94;
  --bs-link-hover-color-rgb: 255, 214, 150;
  --bs-emphasis-color: var(--paper);
  --bs-secondary-color: var(--mist);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 77, 141, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(90, 209, 230, 0.08), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--paper);
}
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
p { max-width: 68ch; }
.text-mist { color: var(--mist) !important; }
.text-amber { color: var(--amber) !important; }
.text-rose { color: var(--rose) !important; }
a { text-underline-offset: 3px; }
::selection { background: var(--rose); color: #fff; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--amber); color: #1a1022; padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--mist); font-size: 1.1rem; margin: 14px 0 0; }

/* ---------- disclosure strip ---------- */
.disclosure-bar {
  background: #0d0716;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.82rem;
  padding: 7px 0;
}
.disclosure-bar .badge-18 {
  display: inline-grid; place-items: center;
  width: 28px; height: 20px; border-radius: 5px;
  background: var(--rose); color: #fff; font-weight: 800; font-size: 0.7rem;
  margin-right: 8px; vertical-align: 1px;
}
.disclosure-bar a { color: var(--paper); }

/* ---------- navbar ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 1030;
  min-height: var(--nav-h);
  background: rgba(20, 12, 32, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); background: rgba(20, 12, 32, 0.9); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: conic-gradient(from 210deg, var(--rose), var(--amber), var(--rose));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #1a1022; font-size: 1.05rem;
  box-shadow: 0 8px 24px -8px rgba(255, 77, 141, .7);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.brand-sub { font-size: 0.72rem; color: var(--mist); }
.site-nav .nav-link {
  color: var(--mist); font-weight: 600; font-size: 0.97rem;
  padding: 10px 14px !important; border-radius: 10px;
}
.site-nav .nav-link:hover { color: var(--paper); background: rgba(255,255,255,.04); }
.site-nav .nav-link.active { color: var(--paper); }
.site-nav .nav-link.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin-top: 4px;
  background: var(--rose); border-radius: 2px;
}
.navbar-toggler {
  border: 1px solid var(--line-strong); color: var(--paper);
  width: 46px; height: 46px; border-radius: 12px; padding: 0;
}
.navbar-toggler:focus { box-shadow: none; }
.offcanvas { background: var(--ink-2); color: var(--paper); border-left: 1px solid var(--line) !important; }
.offcanvas .nav-link { font-size: 1.15rem; padding: 14px 4px !important; border-bottom: 1px solid var(--line); border-radius: 0; }
.offcanvas .nav-link.active::after { display: none; }
.offcanvas .nav-link.active { color: var(--rose); }

/* ---------- buttons ---------- */
.btn { font-weight: 700; border-radius: 14px; padding: 12px 22px; letter-spacing: .01em; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; border-radius: 16px; }
.btn-play {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  border: 0;
  box-shadow: 0 14px 34px -14px rgba(255, 77, 141, .9), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-play:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 20px 40px -14px rgba(255, 77, 141, 1), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-play:active { transform: translateY(0); }
.btn-ghost {
  --bs-btn-color: var(--paper);
  --bs-btn-hover-color: var(--paper);
  --bs-btn-hover-bg: rgba(255,255,255,.06);
  --bs-btn-active-bg: rgba(255,255,255,.1);
  --bs-btn-active-color: var(--paper);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.35); }
.btn i { margin-right: 8px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 7vw, 110px); position: relative; }
.hero h1 {
  font-size: clamp(3rem, 1.6rem + 6vw, 6.4rem);
  line-height: .95;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 .hero-sub {
  display: block; font-size: .36em; letter-spacing: -0.01em; line-height: 1.15;
  color: var(--mist); font-weight: 500; margin-top: 18px; max-width: 18ch;
}
.hero-lead { font-size: 1.2rem; color: var(--mist); max-width: 44ch; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero-facts li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .9rem; color: var(--mist);
  background: rgba(255,255,255,.02);
}
.hero-facts i { color: var(--amber); }

/* the card fan — the one bold element on the page */
.fan {
  position: relative;
  height: clamp(380px, 46vw, 560px);
  perspective: 1400px;
}
.fan .lg-card {
  position: absolute;
  left: 50%; bottom: 4%;
  width: clamp(150px, 17vw, 236px);
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  animation: deal .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--d, 0s);
}
.fan .lg-card:nth-child(1) { --r: -24deg; --y: 18px; --d: .05s; z-index: 1; }
.fan .lg-card:nth-child(2) { --r: -12deg; --y: 4px;  --d: .12s; z-index: 2; }
.fan .lg-card:nth-child(3) { --r: 0deg;   --y: -10px; --d: .19s; z-index: 5; }
.fan .lg-card:nth-child(4) { --r: 12deg;  --y: 4px;  --d: .26s; z-index: 2; }
.fan .lg-card:nth-child(5) { --r: 24deg;  --y: 18px; --d: .33s; z-index: 1; }
.fan:hover .lg-card:nth-child(1) { --r: -30deg; }
.fan:hover .lg-card:nth-child(2) { --r: -15deg; }
.fan:hover .lg-card:nth-child(4) { --r: 15deg; }
.fan:hover .lg-card:nth-child(5) { --r: 30deg; }
.fan .lg-card:hover { --y: -34px; z-index: 10; }
@keyframes deal {
  from { transform: translateX(-50%) rotate(0deg) translateY(120px); opacity: 0; }
  to   { transform: translateX(-50%) rotate(var(--r)) translateY(var(--y)); opacity: 1; }
}
.fan-glow {
  position: absolute; inset: 18% 10% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 77, 141, .35), transparent);
  filter: blur(30px); z-index: 0;
}

/* ---------- mercenary card (used in hero + characters) ---------- */
.lg-card {
  --fc: var(--f-commander);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(160deg, var(--fc), rgba(255,255,255,.08) 45%, var(--fc));
  box-shadow: var(--shadow-card);
  display: block;
  color: var(--paper);
  text-decoration: none;
}
.lg-card[data-type="mercenary"] { --fc: var(--f-mercenary); }
.lg-card[data-type="replica"] { --fc: var(--f-replica); }
.lg-card-inner {
  position: relative; height: 100%; border-radius: calc(var(--radius) - 2px);
  overflow: hidden; background: var(--ink-2);
}
.lg-card-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.lg-card-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 44px 14px 14px;
  background: linear-gradient(to top, rgba(14, 8, 22, .95), transparent);
}
.lg-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; display: block; }
.lg-card-role { font-size: .78rem; color: var(--fc); font-weight: 700; }
.lg-card-gem {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 14px; height: 14px; transform: rotate(45deg);
  background: var(--fc); box-shadow: 0 0 14px var(--fc);
  border-radius: 3px;
}

/* image placeholders: shown until you add real images, an <img> covers it */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 12px),
    radial-gradient(120% 80% at 70% 0%, color-mix(in srgb, var(--fc, var(--rose)) 45%, transparent), transparent 65%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.ph::before {
  content: attr(data-ph);
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.04em;
  color: rgba(255,255,255,.09);
  text-transform: none;
  padding: 0 10px; text-align: center; line-height: 1;
}
.lg-card .ph::before { font-size: clamp(4rem, 9vw, 6.5rem); }
.ph.ph-wide::before { font-size: clamp(1rem, 2vw, 1.4rem); color: rgba(255,255,255,.28); letter-spacing: 0; font-weight: 600; }

/* ---------- dossier facts strip ---------- */
.dossier {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  overflow: hidden;
}
.dossier-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.dossier-item { padding: 24px 26px; border-right: 1px solid var(--line); }
.dossier-item:last-child { border-right: 0; }
.dossier-item dt { font-size: .82rem; color: var(--mist); font-weight: 600; margin-bottom: 6px; }
.dossier-item dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

/* ---------- battle steps (a real sequence, so numbered) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { position: relative; padding: 0 26px 0 0; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  background: var(--ink-2); border: 1px solid var(--line-strong); color: var(--amber);
  margin-bottom: 22px; position: relative; z-index: 1;
}
.step::after {
  content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--mist); font-size: .98rem; margin: 0; }

/* ---------- feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 110px); }
.feature-row.is-flipped .feature-media { order: 2; }
.feature-media { position: relative; }
.shot-frame {
  border-radius: var(--radius-lg); padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.shot-frame .ph { aspect-ratio: 16 / 10; border-radius: calc(var(--radius-lg) - 10px); overflow: hidden; }
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.feature-copy h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 16px; }
.feature-copy p { color: var(--mist); font-size: 1.08rem; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { display: flex; gap: 12px; padding: 8px 0; color: var(--paper); }
.check-list li i { color: var(--rose); margin-top: 2px; }

/* ---------- subclass trio ---------- */
.subclass-wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.subclass { padding: clamp(26px, 3vw, 40px); border-right: 1px solid var(--line); position: relative; }
.subclass:last-child { border-right: 0; }
.subclass-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 20px;
  background: color-mix(in srgb, var(--sc) 16%, transparent); color: var(--sc);
}
.subclass h3 { margin-bottom: 8px; }
.subclass p { color: var(--mist); margin: 0; font-size: 1rem; }
.meter { margin-top: 22px; display: grid; gap: 10px; font-size: .85rem; color: var(--mist); }
.meter-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.meter-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: var(--w); background: var(--sc); border-radius: 6px; }

/* ---------- character grid ---------- */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.char-item { display: flex; flex-direction: column; gap: 14px; }
.char-item p { font-size: .94rem; color: var(--mist); margin: 0; }
.char-item .lg-card { transition: transform .25s ease; }
.char-item .lg-card:hover { transform: translateY(-6px); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.filter-btn {
  border: 1px solid var(--line-strong); background: transparent; color: var(--mist);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.filter-btn:hover { color: var(--paper); }
.filter-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.search-input {
  background: var(--ink-2); border: 1px solid var(--line-strong); color: var(--paper);
  border-radius: 999px; padding: 10px 18px 10px 42px; min-width: 240px;
}
.search-input::placeholder { color: var(--mist); }
.search-input:focus { background: var(--ink-3); color: var(--paper); border-color: var(--amber); box-shadow: none; }
.search-wrap { position: relative; margin-left: auto; }
.search-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mist); }
.empty-state { display: none; padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--mist); }

/* ---------- news timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 0 0 44px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-date { font-family: var(--font-display); color: var(--amber); font-weight: 600; font-size: .98rem; text-align: right; padding-right: 26px; padding-top: 2px; }
.tl-item::after {
  content: ""; position: absolute; left: 145px; top: 9px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--rose);
}
.tl-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tl-body p { color: var(--mist); margin: 0; }
.tl-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--cyan); margin-bottom: 6px; }

/* ---------- platforms ---------- */
.platform-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.platform-row { display: grid; grid-template-columns: 56px 1.2fr 1fr 2fr; gap: 20px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.platform-row:last-child { border-bottom: 0; }
.platform-row > i { font-size: 1.6rem; color: var(--paper); }
.platform-row h3 { font-size: 1.15rem; margin: 0; }
.platform-row p { margin: 0; color: var(--mist); font-size: .97rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-yes { color: #7be3a3; }
.status-partial { color: var(--amber); }
.status-no { color: var(--mist); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 14px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  padding: 0; cursor: zoom-in; position: relative; display: block; width: 100%;
}
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(n+4) { grid-column: span 2; }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-body { padding: 0; }
.lightbox img { width: 100%; border-radius: var(--radius); }
.lightbox .btn-close { position: absolute; top: -44px; right: 0; filter: invert(1); opacity: .9; }

/* ---------- FAQ accordion ---------- */
.faq .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--paper);
  --bs-accordion-border-color: var(--line);
  --bs-accordion-btn-color: var(--paper);
  --bs-accordion-active-color: var(--paper);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-padding-y: 22px;
  --bs-accordion-btn-padding-x: 4px;
  --bs-accordion-body-padding-x: 4px;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc15e'%3e%3cpath d='M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff4d8d'%3e%3cpath d='M3.5 7.25h9a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5z'/%3e%3c/svg%3e");
}
.faq .accordion-item { border-left: 0; border-right: 0; }
.faq .accordion-item:first-of-type { border-top: 0; }
.faq .accordion-button { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.faq .accordion-button:not(.collapsed) { box-shadow: none; }
.faq .accordion-body { color: var(--mist); padding-top: 0; padding-bottom: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(600px 300px at 90% 120%, rgba(255,193,94,.25), transparent 60%),
    radial-gradient(700px 400px at 0% -20%, rgba(255,77,141,.35), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
}
.cta-band h2 { max-width: 16ch; margin-bottom: 16px; }
.cta-band p { color: var(--mist); font-size: 1.12rem; }
.cta-cards { position: absolute; right: clamp(-40px, 2vw, 40px); top: 50%; transform: translateY(-50%); display: flex; }
.cta-cards .lg-card { width: 150px; margin-left: -50px; }
.cta-cards .lg-card:nth-child(1) { transform: rotate(-10deg) translateY(10px); }
.cta-cards .lg-card:nth-child(2) { transform: rotate(0deg); z-index: 2; }
.cta-cards .lg-card:nth-child(3) { transform: rotate(10deg) translateY(10px); }

/* ---------- page header (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.page-hero p { color: var(--mist); font-size: 1.15rem; max-width: 60ch; }
.crumbs { font-size: .9rem; color: var(--mist); margin-bottom: 18px; }
.crumbs a { color: var(--mist); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- long-form (guide, legal) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose p, .prose li { color: #ddd2ea; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--rose); }
.prose strong { color: var(--paper); }
.tip {
  border-left: 3px solid var(--amber);
  background: rgba(255,193,94,.06);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.tip p { margin: 0; color: var(--paper); }
.tip strong { color: var(--amber); }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc h2 { font-size: 1rem; color: var(--mist); font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }
.toc .nav-link {
  color: var(--mist); padding: 7px 0 7px 16px !important; border-left: 2px solid var(--line);
  font-size: .95rem; border-radius: 0;
}
.toc .nav-link:hover { color: var(--paper); }
.toc .nav-link.active { color: var(--paper); border-left-color: var(--rose); background: none; }
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px 26px; margin: 40px 0;
  background: rgba(255,77,141,.06);
}
.inline-cta p { margin: 0; color: var(--paper); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; margin-top: 40px; background: #0f0919; }
.site-footer h2 { font-size: .95rem; font-family: var(--font-body); color: var(--paper); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: .86rem; color: var(--mist); }
.footer-legal p { max-width: none; }

/* ---------- age gate ---------- */
.age-gate .modal-content {
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
}
.age-gate .modal-body { padding: clamp(28px, 5vw, 48px); text-align: center; }
.age-gate .age-badge {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 22px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
  background: var(--rose); color: #fff; box-shadow: 0 16px 40px -14px rgba(255,77,141,.9);
}
.age-gate h2 { font-size: 1.7rem; margin-bottom: 12px; }
.age-gate p { color: var(--mist); margin: 0 auto 26px; }
.modal-backdrop.show { opacity: .92; }

/* ---------- go / redirect page ---------- */
.go-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.spinner-rose { width: 3rem; height: 3rem; color: var(--rose); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .dossier-grid { grid-template-columns: repeat(3, 1fr); }
  .dossier-item:nth-child(3) { border-right: 0; }
  .dossier-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cta-cards { opacity: .35; }
}
@media (max-width: 991.98px) {
  .hero { text-align: left; }
  .fan { margin-top: 20px; height: clamp(340px, 70vw, 480px); }
  .fan .lg-card { width: clamp(140px, 28vw, 210px); }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .step:nth-child(2)::after { display: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-flipped .feature-media { order: 0; }
  .subclass-wrap { grid-template-columns: 1fr; }
  .subclass { border-right: 0; border-bottom: 1px solid var(--line); }
  .subclass:last-child { border-bottom: 0; }
  .platform-row { grid-template-columns: 44px 1fr auto; }
  .platform-row p { grid-column: 2 / -1; }
  .cta-cards { display: none; }
  .toc { position: static; margin-bottom: 32px; }
}
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .dossier-grid { grid-template-columns: 1fr 1fr; }
  .dossier-item { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .dossier-item:nth-child(2n) { border-right: 0 !important; }
  .dossier-item:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0 !important; }
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .tl-item::after { left: 0; top: 6px; }
  .tl-date { text-align: left; padding: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .search-wrap { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .char-item p { display: none; }
  .lg-card-name { font-size: .98rem; }
}
@media (max-width: 575.98px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .step { padding: 0; }
  .fan { height: 330px; }
  .fan .lg-card { width: 132px; }
  .hero .btn-lg { width: 100%; }
  .platform-row { padding: 18px 18px; gap: 6px 14px; }
  .brand-sub { display: none; }
  .inline-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
