@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

[hidden] { display: none !important; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dusk:     #0a0a0a;
  --midnight: #000000;
  --violet:   #6b3fa0;
  --rose:     #c2547a;
  --gold:     #f0c060;
  --mist:     #c8b8e8;
  --light:    #f0f0f0;
  --glass:    rgba(255,255,255,0.06);
  --border:   rgba(255,255,255,0.12);
}

html {
  scroll-behavior: smooth;
  background: #000; /* fallback — shows on pages with no .page-bg */
}

body {
  background: transparent; /* lets fixed .page-bg show through */
  color: var(--light);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

/* body background handles the base black — no pseudo-element needed */

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-login {
  border: 1px solid rgba(240,192,96,0.4);
  border-radius: 20px;
  padding: 0.3rem 0.75rem !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}
.nav-login:hover {
  background: rgba(240,192,96,0.1);
  border-color: var(--gold);
  color: var(--gold) !important;
}

/* ── Logged-in user menu ── */
.nav-user { position: relative; }

.nav-user-btn {
  background: rgba(240,192,96,0.1);
  border: 1px solid rgba(240,192,96,0.4);
  border-radius: 20px;
  color: var(--gold);
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.nav-user-btn:hover { background: rgba(240,192,96,0.18); border-color: var(--gold); }
.nav-user-caret { font-size: 0.6rem; margin-left: 3px; opacity: 0.7; }

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
}
.nav-user-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--mist);
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s;
}
.nav-user-dropdown a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ── Page sections ── */
.hero {
  text-align: center;
  padding: 7rem 2rem 5rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--gold) 0%, var(--mist) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: var(--mist);
  font-size: 1.05rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--rose));
  color: #fff;
  box-shadow: 0 4px 24px rgba(107,63,160,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107,63,160,0.6);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--mist);
  background: transparent;
  margin-left: 1rem;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Cards / glass panels ── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(200,184,232,0.4);
  transform: translateY(-3px);
}

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* ── Section containers ── */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--mist);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ── Chapter list ── */
.chapter-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--light);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.chapter-item:hover {
  background: var(--glass);
  border-color: var(--border);
}

.chapter-num {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--rose);
  min-width: 2.5rem;
  letter-spacing: 0.05em;
}

.chapter-title { font-size: 1rem; }

.chapter-note {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--mist);
  opacity: 0.6;
}

/* ── Art gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,8,32,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--mist);
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.3;
  width: 100%;
  height: 100%;
}

/* ── About / bio ── */
.bio-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 640px) {
  .bio-layout { grid-template-columns: 1fr; }
}

.bio-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--violet);
  box-shadow: 0 0 40px rgba(107,63,160,0.5);
  display: block;
}

.bio-avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--glass);
  border: 3px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.5;
}

.bio-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.bio-text .handle {
  color: var(--rose);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.bio-text p { margin-bottom: 1rem; color: var(--mist); }

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--mist);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}

.link-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--mist);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ── Site banner ──────────────────────────────────────────────────────────
   The banner sits flush below the nav, edge-to-edge across the viewport.

   width: 100%
     Stretch the container to the full browser width, ignoring any page
     padding. Because <body> has no horizontal padding itself, this
     reaches wall-to-wall.

   height: 420px
     A fixed pixel height for the "frame". The image inside will be
     cropped/scaled to fit this box — so no matter how tall your original
     art is, the banner is always exactly this tall on screen.
     Tweak this number freely to make the banner taller or shorter.

   overflow: hidden
     The image will be slightly larger than its container after
     object-fit: cover scales it up. overflow: hidden clips anything
     that spills outside the 420px frame, keeping edges clean.

   position: relative
     Needed so that the ::after gradient overlay (see below) can be
     positioned relative to the banner, not the whole page.
────────────────────────────────────────────────────────────────────────── */
/* ── Site banner ──────────────────────────────────────────────────────────
   Instead of a fixed-height strip that force-crops the art, this uses a
   centered card approach — like the reference. The image displays at its
   natural proportions inside a max-width container, so nothing gets cut.

   padding: 2rem 2rem 0
     Gives breathing room on the left/right and top so the card floats
     away from the nav a little. No bottom padding — the card's bottom
     edge blends into the hero section below via the ::after gradient.

   The outer wrapper is just for horizontal centering + side padding.
────────────────────────────────────────────────────────────────────────── */
.site-banner {
  /* No padding — image goes wall to wall */
}

.site-banner-inner {
  position: relative;
  overflow: hidden;
  background: #000;
  max-height: 320px;
}

.site-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Hero banner — home page only, taller than the gallery banner */
.site-banner--hero .site-banner-inner { max-height: 560px; }
.site-banner--hero img { height: 560px; }

/* Gradient fade at the bottom of the card — same pseudo-element trick
   as before, but now it fades over just the bottom portion of the art
   so the card bleeds smoothly into the hero section below it. */
.site-banner-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    #000 100%
  );
  pointer-events: none;
}

/* ── Navigation cards section ── */

/* Outer section — just vertical breathing room against the banner */
.nav-section {
  padding: 2.5rem 0 4rem;
}

/* The gray "slab" — inset from the edges so black peeks through on sides.
   border-radius rounds its corners so it floats rather than cuts hard. */
.nav-section-inner {
  background: #141414;
  margin: 0 3rem;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Three equal columns with a gap between them */
.nav-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

/* Each card is a link — position:relative anchors the overlay inside it */
.nav-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav-card:hover {
  border-color: rgba(240,192,96,0.5);
  box-shadow: 0 0 32px rgba(240,192,96,0.12);
}

/* Image fills the card; object-fit:cover crops it to the 4:3 box */
.nav-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s ease;
}

.nav-card:hover img {
  transform: scale(1.05);
}

/* Dark gradient that rises from the bottom — the label sits on top of it */
.nav-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.3)  45%,
    transparent      100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
  transition: background 0.3s;
}

.nav-card:hover .nav-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.4)  50%,
    transparent      100%
  );
}

/* The label text */
.nav-card-label {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-card:hover .nav-card-label {
  color: var(--gold);
}

/* ── Synopsis section ── */

/* The outer section — slightly lighter than pure black so it reads
   as a distinct "layer" without being harsh */
.synopsis-section {
  padding: 4rem 3rem;
}

/* Side-by-side: story card (wider) + links card */
.synopsis-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.5rem;
  align-items: start;
}

.synopsis-inner {
  min-width: 0; /* prevents grid blowout from wide inner content */
  text-align: center;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--violet);
  border-radius: 20px;
  padding: 3.5rem;
}

/* Small label above the title */
.synopsis-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

/* Main title */
.synopsis-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Decorative horizontal rule — a thin gold line with fade on the edges */
.synopsis-rule {
  width: 120px;
  height: 1px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold),
    transparent
  );
}

/* Two-column row: text left, cover right */
.synopsis-columns {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

/* The paragraphs */
.synopsis-body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.synopsis-body p {
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Character names in italics get a subtle gold tint */
.synopsis-body em {
  color: #e8d4a0;
  font-style: italic;
}

/* Book cover — 2:3 portrait ratio, like a real cover */
.synopsis-cover {
  flex-shrink: 0;
  width: 220px;
}

.synopsis-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

.synopsis-cover-placeholder {
  width: 220px;
  height: 330px;  /* 2:3 ratio */
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

/* ── About the Author section ── */
.author-section {
  padding: 0 3rem 4rem;
}

/* Two columns: donations | bio */
.author-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Bio card — warm dark tone to contrast the synopsis above */
.author-card {
  position: relative;
  background: #12100e;
  border: 1px solid rgba(240,192,96,0.15);
  border-top: 3px solid var(--gold);
  border-radius: 20px;
  padding: 2.5rem;
}

/* Profile picture — sits in the top-right corner of the card */
.author-avatar {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240,192,96,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.author-avatar-placeholder {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #1e1a14;
  border: 2px solid rgba(240,192,96,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

/* Links card — cool dark tone, rose accent */
.links-card {
  background: #0e1018;
  border: 1px solid rgba(194,84,122,0.18);
  border-top: 3px solid var(--rose);
  border-radius: 20px;
  padding: 2.5rem;
}

.author-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.author-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}

.author-rule {
  width: 80px;
  height: 1px;
  margin-bottom: 1.75rem;
  background: linear-gradient(to right, var(--gold), transparent);
}

.author-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.author-body p {
  color: var(--mist);
  font-size: 0.97rem;
  line-height: 1.85;
}

.author-body em {
  color: #e8d4a0;
  font-style: italic;
}

/* Links list */
.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--mist);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.link-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--light);
}

.link-icon { font-size: 1.1rem; flex-shrink: 0; }
.link-name { flex: 1; font-size: 0.95rem; }
.link-arrow { font-size: 0.85rem; opacity: 0.4; }

/* Discord link gets a subtle purple highlight */
.link-item-discord { border-color: rgba(88,101,242,0.2); }
.link-item-discord:hover { background: rgba(88,101,242,0.1); border-color: rgba(88,101,242,0.4); }

/* Discord button at top of bio card */
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.35);
  color: #9aa3f5;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.discord-btn:hover {
  background: rgba(88,101,242,0.25);
  border-color: rgba(88,101,242,0.6);
}

/* Inline link within bio text */
.inline-link {
  color: #9aa3f5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--light); }

/* Donations card — rose accent like the links card but distinct */
.donations-card {
  background: #100e14;
  border: 1px solid rgba(194,84,122,0.18);
  border-top: 3px solid var(--rose);
  border-radius: 20px;
  padding: 2rem 1.75rem;
}

.donations-blurb {
  color: var(--mist);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.donations-btn {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}

.donations-feed {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
  min-height: 80px;
}

.donations-empty {
  color: rgba(200,184,232,0.35);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.6;
}

/* ── Discord age gate ── */
.agegate-wrapper {
  min-height: calc(100vh - 64px - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.agegate-card {
  max-width: 520px;
  width: 100%;
  background: #0e1018;
  border: 1px solid rgba(194,84,122,0.2);
  border-top: 3px solid var(--rose);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.agegate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.agegate-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0;
}

.agegate-warning {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.25rem;
}

.agegate-body {
  color: var(--mist);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.agegate-body strong { color: var(--light); }
.agegate-body em { color: #e8d4a0; font-style: italic; }

.agegate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.agegate-actions .btn { width: 100%; text-align: center; }
.agegate-actions .btn-outline { margin-left: 0; }

.agegate-fine {
  font-size: 0.75rem;
  color: rgba(200,184,232,0.4);
  line-height: 1.6;
}

/* ── Chapters section ── */
.chapters-section {
  padding: 0 3rem 4rem;
}

.chapters-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--violet);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem;
}

.chapters-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

/* Each chapter row */
.chapter-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0.5rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
  border-radius: 8px;
}

.chapter-row:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.chapter-row:hover {
  background: rgba(255,255,255,0.04);
}

/* Square thumbnail */
.cr-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.cr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text column */
.cr-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.cr-title {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
  transition: color 0.2s;
}

.chapter-row:hover .cr-title {
  color: #f8d87a;
}

.cr-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: rgba(200,184,232,0.5);
}

.cr-hearts { letter-spacing: 0.03em; }
.cr-date   { letter-spacing: 0.03em; }

.chapters-footer {
  margin-top: 1.5rem;
  text-align: center;
}

/* ── Full-screen blurry background ──────────────────────────────────────
   Used on the chapters hub and individual chapter pages.

   position: fixed / inset: 0
     Pins the background to the viewport so it stays still while the
     page content scrolls over it. Covers the entire screen.

   z-index: -1
     Sits behind everything else on the page.

   The <img> inside is scaled to cover the full viewport (object-fit: cover),
   blurred with CSS filter, and slightly scaled up (scale 1.08) to hide the
   soft white fringe that blur always creates at the edges.

   .page-bg-overlay is a dark semi-transparent layer on top of the blurred
   image so text stays readable regardless of how bright the image is.
────────────────────────────────────────────────────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(14px);
  transform: scale(1.08); /* hides blur fringe at edges */
}

.page-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* ── Chapter hub ── */
.hub-wrapper {
  min-height: calc(100vh - 64px - 80px);
  padding: 4rem 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hub-card {
  width: 100%;
  max-width: 860px;
  background: rgba(8,8,8,0.72);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 3px solid var(--violet);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(8px);
  text-align: center;
}

.hub-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
}

.hub-blurb {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.8;
}

.hub-blurb em { color: #e8d4a0; font-style: italic; }

/* The chapter list inside the hub — same rows as homepage but no cap */
.hub-card .chapters-list { text-align: left; }

/* ── Individual chapter view ── */
.chapter-view-wrapper {
  min-height: calc(100vh - 64px - 80px);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-view-card {
  width: 100%;
  max-width: 600px;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 3px solid var(--gold);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(8px);
  text-align: center;
}

.chapter-back {
  display: inline-block;
  color: var(--mist);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.chapter-back:hover { opacity: 1; }

.chapter-view-num {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.chapter-view-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold);
  font-weight: 600;
  line-height: 1.25;
}

.chapter-view-meta {
  font-size: 0.85rem;
  color: rgba(200,184,232,0.5);
  margin-bottom: 1.25rem;
}
.chapter-view-meta span { color: var(--mist); }

.chapter-view-note {
  color: var(--mist);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-style: italic;
  opacity: 0.8;
}

.chapter-view-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.chapter-read-btn {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
}

.chapter-view-links .btn-outline { margin-left: 0; }

/* ── Art gallery page ── */
.gallery-page-wrapper {
  padding: 4rem 3rem;
}

.gallery-page-card {
  max-width: 1100px;
  margin: 0 auto;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--rose);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  min-height: 600px;
}

.gallery-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.8;
  margin: 0 0 0.5rem;
}

.gallery-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(240,192,96,0.55), 0 0 6px rgba(240,192,96,0.25);
  line-height: 1.15;
}

.gallery-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  border-radius: 2px;
  margin: 0.75rem auto 2rem;
}

.gallery-tile-placeholder {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px dashed rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.15);
  font-weight: 300;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.gallery-tile-placeholder:hover {
  border-color: rgba(194, 84, 122, 0.3);
  background: rgba(194, 84, 122, 0.04);
}

/* Sidebar + main layout inside the card */
.gallery-inner {
  display: flex;
  gap: 0;
  min-height: 500px;
  align-items: flex-start;
}

.gallery-sidebar {
  width: 150px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 1.5rem;
  margin-right: 2rem;
  padding-top: 0.25rem;
}

.gallery-sidebar-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 0.75rem;
}

.gallery-cat {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  text-decoration: none;
  color: var(--gold);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 0.2rem;
  transition: background 0.15s, color 0.15s, text-shadow 0.15s;
  text-shadow: 0 0 10px rgba(240,192,96,0.35);
}

.gallery-cat:hover {
  background: rgba(240,192,96,0.07);
  color: #ffe89a;
  text-shadow: 0 0 14px rgba(240,192,96,0.6);
}

.gallery-cat.active {
  background: rgba(240,192,96,0.12);
  color: #ffe89a;
  text-shadow: 0 0 16px rgba(240,192,96,0.7);
  font-weight: 700;
}

.gallery-main {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.gallery-empty-msg {
  grid-column: 1 / -1;
  padding: 3rem 0;
  color: rgba(200,184,232,0.3);
  font-size: 0.95rem;
}

/* 3-column grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: left;
  align-items: start;
}

.gallery-tile {
  display: block;
  position: relative;
  padding-top: 116.67%; /* 7÷6 = 6:7 portrait ratio */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s, border-color 0.25s;
}

.gallery-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.25);
}

.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.gallery-tile:hover img {
  transform: scale(1.03);
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  display: block;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
}

.lightbox-caption {
  color: var(--mist);
  font-size: 0.9rem;
  opacity: 0.7;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ── Art view (single artwork page) ── */
.art-view-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.art-view-back {
  display: inline-block;
  color: var(--mist);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 2rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.art-view-back:hover { opacity: 1; }

.art-view-image-wrap {
  background: #0d0d0d;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  margin-bottom: 1.75rem;
  text-align: center;
}

.art-view-image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.art-view-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.art-view-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--light);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.art-view-cat-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(194,84,122,0.12);
  border: 1px solid rgba(194,84,122,0.28);
  padding: 0.3em 0.85em;
  border-radius: 20px;
  white-space: nowrap;
}

.art-view-caption {
  color: var(--mist);
  opacity: 0.55;
  font-size: 0.9rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

/* Comments section */
.art-view-comments {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.comments-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--mist);
  font-weight: 600;
  margin: 0 0 1.5rem;
  letter-spacing: 0.05em;
}

.comment-signin-prompt {
  background: rgba(255,255,255,0.025);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: rgba(200,184,232,0.4);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  text-align: center;
}

.comment-signin-prompt a {
  color: var(--rose);
  text-decoration: none;
}
.comment-signin-prompt a:hover { text-decoration: underline; }

.comments-empty {
  color: rgba(200,184,232,0.25);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 0;
}

/* Comment form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.comment-form textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--light);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}
.comment-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.comment-form textarea:focus { border-color: rgba(240,192,96,0.45); }

.comment-form-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.comment-char-count {
  font-size: 0.78rem;
  color: rgba(200,184,232,0.35);
}
.comment-char-count.near-limit { color: var(--rose); }

.comment-submit-btn {
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.55rem 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.comment-submit-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.comment-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Individual comments */
.comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.comment-item:last-child { border-bottom: none; }

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.comment-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
}

.comment-time {
  font-size: 0.78rem;
  color: rgba(200,184,232,0.35);
}

.comment-body {
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Spicy comments gate */
.comments-gate {
  background: rgba(255,255,255,0.025);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.5rem 1.5rem;
  color: rgba(200,184,232,0.4);
  font-size: 0.9rem;
  text-align: center;
}
.comments-gate a {
  color: var(--rose);
  text-decoration: none;
}
.comments-gate a:hover { text-decoration: underline; }

/* ── Characters page ── */
.character-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.character-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.character-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.character-portrait-wrap {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.character-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.character-portrait-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.15);
}

.character-name {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.character-role {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.character-info p {
  color: var(--mist);
  font-size: 0.95rem;
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
  margin-left: auto;
}
.nav-hamburger:hover { background: rgba(240,192,96,0.1); }

/* ── Mobile breakpoint ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 0 1rem;
    align-items: center;
  }
  .nav-brand { padding: 0.9rem 0; font-size: 1rem; }
  .nav-hamburger { display: flex; align-items: center; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.65rem 0.25rem;
    font-size: 0.85rem;
    border-radius: 6px;
  }
  .nav-login {
    border-radius: 6px !important;
    padding: 0.65rem 0.75rem !important;
  }

  /* Nav user dropdown on mobile */
  .nav-user { width: 100%; }
  .nav-user-btn {
    width: 100%;
    text-align: left;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
  }
  .nav-user-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 6px;
    margin-top: 0.25rem;
  }

  /* Banners */
  .site-banner img { height: 160px; }
  .site-banner-inner { max-height: 160px; }
  .site-banner--hero img { height: 220px; }
  .site-banner--hero .site-banner-inner { max-height: 220px; }

  /* Home nav cards */
  .nav-section-inner { margin: 0 0.75rem; padding: 1.25rem; }
  .nav-cards-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Synopsis */
  .synopsis-section { padding: 2rem 0.75rem; }
  .synopsis-row { grid-template-columns: 1fr; }
  .synopsis-inner { padding: 2rem 1.25rem; }
  .synopsis-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .synopsis-cover { display: none; }

  /* Author / links */
  .author-section { padding: 0 0.75rem 3rem; }
  .author-row { grid-template-columns: 1fr; }
  .author-avatar,
  .author-avatar-placeholder { top: 1rem; right: 1rem; width: 72px; height: 72px; }

  /* Chapters section */
  .chapters-section { padding: 0 0.75rem 3rem; }
  .chapters-inner { padding: 1.5rem 1.25rem; }
  .cr-thumb { width: 56px; height: 56px; }

  /* Chapter hub / view */
  .hub-wrapper { padding: 2rem 0.75rem; }
  .hub-card { padding: 2rem 1.25rem; }
  .chapter-view-wrapper { padding: 2rem 0.75rem; }
  .chapter-view-card { padding: 2rem 1.25rem; }

  /* Gallery */
  .gallery-page-wrapper { padding: 1.5rem 0.75rem; }
  .gallery-page-card { padding: 1.5rem 1.25rem; min-height: unset; }
  .gallery-inner { flex-direction: column; }
  .gallery-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-right: 0;
    padding-bottom: 0.75rem;
    margin-right: 0;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
  }
  .gallery-sidebar-label { display: none; }
  .gallery-cat { width: auto; margin-bottom: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* Art view */
  .art-view-wrapper { padding: 1.5rem 0.75rem 4rem; }

  /* Characters */
  .character-card { grid-template-columns: 1fr; }
  .character-portrait-wrap { width: 100px; height: 100px; }

  /* Auth page */
  .auth-card { flex-direction: column; }
  .auth-divider { width: auto; height: 1px; margin: 0; }
  .auth-panel { padding: 2rem 1.5rem; }

  /* Discord agegate */
  .agegate-card { padding: 2.5rem 1.5rem; }

  /* Section */
  .section { padding: 3rem 1rem; }
}

@media (max-width: 480px) {
  .nav-cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Login / Register page ────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: #0a0a0a;
}

.auth-card {
  display: flex;
  width: 100%;
  max-width: 860px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--rose);
  border-radius: 20px;
  overflow: hidden;
}

.auth-panel {
  flex: 1;
  padding: 2.8rem 2.5rem;
}

.auth-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2rem 0;
}

.auth-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(240,192,96,0.4);
  margin-bottom: 1.6rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-field {
  position: relative;
}

.auth-field input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--light);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input::placeholder { color: rgba(255,255,255,0.3); }
.auth-field input:focus { border-color: rgba(240,192,96,0.5); }

.auth-field--password input { padding-right: 2.8rem; }

.auth-eye {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.3);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.auth-eye:hover,
.auth-eye--visible { color: var(--gold); }

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--mist);
  cursor: pointer;
  margin-top: 0.1rem;
}
.auth-remember input[type="checkbox"] { accent-color: var(--gold); }

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.4rem;
}
.auth-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }

.auth-btn--primary {
  background: var(--rose);
  color: #fff;
}

.auth-btn--register {
  background: var(--violet);
  color: #fff;
}

.auth-forgot {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-forgot:hover { color: var(--mist); }

.auth-alert {
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: 7px;
  margin-bottom: 0.75rem;
}
.auth-alert--error   { background: rgba(194,84,122,0.15); color: #e8849e; border: 1px solid rgba(194,84,122,0.3); }
.auth-alert--info    { background: rgba(107,63,160,0.15); color: var(--mist); border: 1px solid rgba(107,63,160,0.3); }
.auth-alert--success { background: rgba(80,160,100,0.15); color: #7dd4a0; border: 1px solid rgba(80,160,100,0.3); }

.auth-age-notice {
  font-size: 0.8rem;
  color: var(--rose);
  background: rgba(194,84,122,0.1);
  border: 1px solid rgba(194,84,122,0.25);
  border-radius: 7px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.auth-age-notice strong { color: #e8849e; }

@media (max-width: 700px) {
  .auth-card { flex-direction: column; }
  .auth-divider { width: auto; height: 1px; margin: 0 2rem; }
}

/* ── Spicy auth gate ──────────────────────────────────────────────────────── */
.spicy-gate {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: #0a0a0a;
}

.spicy-gate-card {
  max-width: 460px;
  text-align: center;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--rose);
  border-radius: 20px;
  padding: 3rem 2.5rem;
}

.spicy-gate-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.spicy-gate-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(240,192,96,0.4);
  margin-bottom: 1rem;
}

.spicy-gate-text {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}
.spicy-gate-text strong { color: var(--rose); }

.spicy-gate-btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.spicy-gate-btn:hover { opacity: 0.88; transform: translateY(-1px); }
