:root {
  color-scheme: dark;
  --bg: #0e0c14;
  --bg-raised: #17141f;
  --bg-card: #1c1826;
  --border: #2c2738;
  --text: #ece8f4;
  --text-muted: #a49db3;
  --accent: #ff7a59;
  --accent-strong: #ff9474;
  --accent-soft: rgba(255, 122, 89, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
.muted { color: var(--text-muted); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 2000; background: var(--accent); color: #1a0f0b; padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(14, 12, 20, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; white-space: nowrap; color: var(--text); font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #b44bff); color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
/* Main menu: four items, the Characters dropdown, then Log in and Join free (or Members area) */
.nav-link, .nav-group-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; }
.nav-link:hover, .nav-group-btn:hover, .nav-group.open .nav-group-btn { background: rgba(255, 255, 255, 0.05); }
.nav-group { position: relative; }
.nav-group-btn { border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.nav-group-btn:hover, .nav-group.open .nav-group-btn, .nav-group-btn.is-current { color: var(--text); }
.nav-chev { width: 14px; height: 14px; transition: transform 0.18s ease; }
.nav-group.open .nav-chev { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 12px); left: -8px; z-index: 1100; width: 340px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: rgba(23, 20, 31, 0.97); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s; }
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps the hover alive across the gap */
.nav-group.open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.site-nav .nav-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; white-space: normal; }
.site-nav .nav-item:hover, .site-nav .nav-item:focus-visible { background: var(--bg-card); }
.site-nav .nav-item[aria-current="page"] { background: var(--accent-soft); }
.site-nav .nav-panel-all { display: block; margin: 6px 4px 2px; padding: 10px 12px 6px; border-top: 1px solid var(--border); color: var(--accent); font-size: 14px; font-weight: 600; }
.site-nav .nav-panel-all:hover, .site-nav .nav-panel-all:focus-visible { color: var(--accent-strong); }
.nav-item-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.nav-item-icon svg { width: 22px; height: 22px; }
.nav-item-text { display: grid; gap: 1px; }
.nav-item-text strong { color: var(--text); font-size: 15px; font-weight: 600; }
.nav-item-text small { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: 14px; }
.site-nav .nav-login { color: var(--text); font-weight: 600; }
.site-nav .nav-login:hover { color: var(--accent-strong); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #1a0f0b; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s; font-family: var(--font-body); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
/* Both buttons light up on hover (and keyboard focus): brighter orange with a glow, or an orange
   outline and tint on the outlined one */
.btn-primary { background: var(--accent); color: #1a0f0b; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-strong); color: #1a0f0b; box-shadow: 0 6px 22px rgba(255, 122, 89, 0.35); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.btn:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 112px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(255, 122, 89, 0.22), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 640px; height: 640px; background: radial-gradient(circle, rgba(180, 75, 255, 0.16), transparent 62%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 20px; color: var(--text-muted); max-width: 56ch; margin-bottom: 32px; }

/* Page header (non-home) */
.page-head { padding: 72px 0 24px; }
.page-head .lede { font-size: 19px; color: var(--text-muted); max-width: 62ch; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-note { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; }
.caption .stats-note { margin: -10px 0 16px; font-size: 13px; color: var(--text-muted); text-shadow: none; }
.stat { background: var(--bg-raised); padding: 28px 24px; }
.stat-value { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; margin-bottom: 8px; }
.stat-label { color: var(--text-muted); font-size: 14px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
a.card { color: var(--text); }
a.card:hover { border-color: rgba(255, 122, 89, 0.5); transform: translateY(-2px); color: var(--text); }
.card p { color: var(--text-muted); }
.card .card-link { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 15px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; }

/* Before/after contrast (About page) */
.contrast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 44px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); text-align: center; }
.contrast-value { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1.1; color: var(--text-muted); margin-bottom: 8px; }
.contrast-value.accent { color: var(--accent); }
.contrast-label { color: var(--text-muted); font-size: 15px; }
.contrast-arrow { font-size: 36px; color: var(--text-muted); }

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 40px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 72px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text-muted); }

/* Tiers */
.tier { text-align: left; }
.tier-price { font-family: var(--font-display); font-size: 36px; margin: 4px 0 12px; }
.tier-price small { font-family: var(--font-body); font-size: 15px; color: var(--text-muted); }
.tier.featured { border-color: rgba(255, 122, 89, 0.55); background: linear-gradient(180deg, rgba(255, 122, 89, 0.08), var(--bg-card) 40%); }
.paypal-slot { margin-top: auto; padding-top: 12px; min-height: 52px; }
.refill-slot { width: 100%; max-width: 360px; justify-self: end; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.4; margin: 10px 0 0; overflow-wrap: anywhere; }
.notice.success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.45); color: #dcfce7; }
.notice.cancel { background: rgba(234, 179, 8, 0.12); border: 1px solid rgba(234, 179, 8, 0.45); color: #fef9c3; }
.notice.error { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.45); color: #ffe4e6; }
.notice .paypal-report { margin-left: 6px; color: inherit; font-size: inherit; }
.paypal-hint { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }

/* Signup band */
.band { background: var(--bg-raised); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.band h2 { margin-bottom: 8px; }
.band p { color: var(--text-muted); margin: 0; }

/* Forms */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field .ga-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; font-size: 16px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; padding: 13px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; color: var(--text); font: inherit; font-size: 16px; }
.inline-form input:focus { outline: none; border-color: var(--accent); }
.form-status { font-size: 14px; min-height: 20px; margin: 4px 0 0; }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ff8a8a; }
.hp { position: absolute; left: -9999px; }
.field ::placeholder { color: rgba(164, 157, 179, 0.6); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* Character Forge writing desk: the idea is the centerpiece, email and send share one row */
.forge-desk { background: var(--bg-raised); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 44px; }
.forge-desk h2 { margin-bottom: 6px; }
.forge-intro { color: var(--text-muted); margin-bottom: 28px; }
.forge-idea textarea { min-height: 320px; padding: 22px 24px; font-family: var(--font-display); font-size: 19px; line-height: 1.65; resize: vertical; }
.forge-sparks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 32px; }
.forge-sparks span { color: var(--text-muted); font-size: 14px; margin-right: 4px; }
.spark { background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; color: var(--text-muted); font: 14px var(--font-body); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.spark:hover { border-color: rgba(255, 122, 89, 0.5); color: var(--text); }
.forge-send { display: flex; align-items: flex-end; gap: 12px; }
.forge-send .field { flex: 1; }
.forge-access { color: var(--text-muted); font-size: 15px; margin: 8px 0 0; }

/* Links list */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); }
.link-list a:hover { border-color: rgba(255, 122, 89, 0.5); }
.badge-18 { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 40px 0; color: var(--text-muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { flex-basis: 100%; margin: 8px 0 0; text-align: center; font-size: 12px; color: rgba(164, 157, 179, 0.7); }
.footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: var(--text); }

/* Responsive */
/* Four cards get cramped before three do */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 32px; }
}
/* The menu folds into the hamburger before it gets cramped */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  /* Phones and small tablets: a full-height menu sheet; the Characters group shows open */
  .site-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 999; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; background: var(--bg); padding: 8px 20px 28px; }
  .site-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  /* A blurred header would hold the fixed sheet inside its own 68px, so the blur goes while open */
  body.nav-open .site-header, body.nav-open.story .site-header { backdrop-filter: none; background: var(--bg); border-bottom-color: var(--border); }
  .nav-group-btn { pointer-events: none; padding: 18px 4px 6px; border-radius: 0; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: none !important; }
  .nav-group-btn.is-current { color: var(--accent); }
  .nav-chev { display: none; }
  .nav-panel { position: static; width: auto; padding: 0 0 8px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; backdrop-filter: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-panel::before { display: none; }
  .site-nav .nav-item { padding: 10px 4px; }
  .site-nav .nav-panel-all { margin: 4px 0 0; padding: 10px 4px 4px; border-top: 0; }
  .site-nav .nav-link { padding: 16px 4px; border-radius: 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav-link:hover { background: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin: auto 0 0; padding-top: 24px; }
  .nav-actions .btn, .site-nav .nav-login { display: block; padding: 13px 20px; border-radius: 999px; text-align: center; font-size: 16px; }
  .site-nav .nav-login { border: 1px solid var(--border); }
  .nav-actions .acct { align-self: stretch; }
  /* The Members area button sits right above, so the account section skips its own link */
  .nav-actions .acct-menu a[href="/members/"] { display: none; }
  .story .site-nav .nav-group-btn { color: var(--accent); }
  .story .site-nav .nav-link { color: var(--text); }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .forge-desk { padding: 28px 20px; }
  .contrast { grid-template-columns: 1fr; gap: 16px; padding: 32px 20px; }
  .contrast-arrow { transform: rotate(90deg); }
  .forge-send { flex-direction: column; align-items: stretch; }
  .stat-value { font-size: 32px; }
}

/* ===== Story homepage (photographer-style chapters) ===== */
.story .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background 0.3s, border-color 0.3s; }
.story .site-header.scrolled { background: rgba(14, 12, 20, 0.85); backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.story .site-nav a { color: rgba(236, 232, 244, 0.8); }
.story .site-nav a:hover { color: #fff; }
.story .nav-group-btn { color: rgba(236, 232, 244, 0.8); }
.story .nav-group-btn:hover, .story .nav-group.open .nav-group-btn { color: #fff; }
.story .site-nav a.btn-primary { color: #1a0f0b; }

/* Image frame: real image layered over a placeholder gradient, so a missing file still shows a frame */
.frame { position: absolute; inset: 0; background-image: var(--img, none), var(--ph, none); background-size: cover; background-position: var(--pos, center); transform-origin: var(--pos, center); }
@media (orientation: portrait) {
  .frame { background-position: var(--pos-tall, var(--pos, center)); transform-origin: var(--origin-tall, var(--pos-tall, var(--pos, center))); }
}
.ph::after { content: "Placeholder: " attr(data-shot); position: absolute; right: 20px; bottom: 20px; z-index: 3; font: 12px/1.4 var(--font-body); color: rgba(255,255,255,0.6); border: 1px dashed rgba(255,255,255,0.35); border-radius: 6px; padding: 6px 10px; max-width: 280px; }

/* Opening reel: photos crossfade with a slow zoom; each slide has a matching chapter caption */
.reel { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #000; --slide-ms: 10s; }
.reel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.reel .slide .frame { transform: scale(1.02); transition: transform 12s linear; }
.reel .slide.active { opacity: 1; }
.reel .slide.active .frame { transform: scale(1.07) translate(-1%, 0); }
.reel .slide:nth-child(even).active .frame { transform: scale(1.07) translate(1%, 0); }
.reel-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(14,12,20,0.95) 100%), linear-gradient(90deg, rgba(10,8,14,0.8) 0%, rgba(10,8,14,0.45) 30%, rgba(10,8,14,0) 55%); }

/* Captions share one grid cell so they stack in place and the block keeps the tallest height */
.reel-captions { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(12vh + 40px); }
.reel-captions .container { display: grid; align-items: end; }
.caption { grid-area: 1 / 1; max-width: 34rem; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s; }
.caption.active { opacity: 1; visibility: visible; transform: none; transition: opacity 1s ease 0.6s, transform 1s ease 0.6s, visibility 0s; }
.caption h1 { font-weight: 400; font-size: clamp(34px, 4.4vw, 64px); max-width: none; margin: 0 0 16px; text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
.caption:first-child { max-width: none; }
.caption h1 span { display: block; }
.caption h2 { font-weight: 400; font-size: clamp(32px, 4vw, 54px); margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
.caption p { color: rgba(236,232,244,0.85); font-size: 19px; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.caption .caption-brand { color: rgba(236,232,244,0.75); letter-spacing: 0.24em; text-transform: uppercase; font-size: 13px; margin: 0; }
.chapter-num { display: block; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.chapter-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 4px; color: #fff; font-weight: 500; letter-spacing: 0.04em; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 4px; }
.chapter-link:hover { color: var(--accent); border-color: var(--accent); }
.chapter-stats { display: flex; gap: 36px; margin: 4px 0 18px; }
.chapter-stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; color: #fff; line-height: 1.1; }
.chapter-stats span { font-size: 13px; color: var(--text-muted); }

/* Chapter markers: the active one fills over its --slide-ms (display only; main.js runs the timer).
   Slide length is set per marker: the opening is shorter since it has the least text. */
.reel-markers { position: absolute; z-index: 3; left: 0; right: 0; bottom: 32px; }
.reel-markers .container { display: flex; gap: 8px; }
.reel-markers button { flex: 1; position: relative; background: none; border: 0; padding: 14px 0 0; text-align: left; font: 500 11px/1.3 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(236,232,244,0.5); cursor: pointer; transition: color 0.3s; }
.reel-markers button::before, .reel-markers button::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.reel-markers button::before { background: rgba(255,255,255,0.22); }
.reel-markers button::after { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.reel-markers button:first-child { --slide-ms: 6s; }
.reel-markers button:hover, .reel-markers button.active { color: #fff; }
.reel-markers button.active::after { animation: marker-fill var(--slide-ms) linear forwards; }
.reel.paused .reel-markers button.active::after { animation-play-state: paused; }
@keyframes marker-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Signup below the reel */
.follow { padding: 110px 0 60px; text-align: center; }
.follow h2 { font-weight: 400; font-size: clamp(34px, 5vw, 64px); }
.follow .lede { color: var(--text-muted); max-width: 46ch; margin: 0 auto 30px; }
.follow .inline-form { max-width: 480px; margin: 0 auto; }
.follow-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 56px; }
.follow-links a { color: var(--text); letter-spacing: 0.04em; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.follow-links a:hover { color: var(--accent); border-color: var(--accent); }
.story .site-footer { margin-top: 0; }

/* Placeholder grades (shown until real images exist) */
.g-1 { background-color: #1d1522; --ph: radial-gradient(ellipse at 70% 40%, #6b3a2e 0%, transparent 55%), radial-gradient(ellipse at 20% 80%, #2a2350 0%, transparent 60%); }
.g-2 { background-color: #10161f; --ph: radial-gradient(ellipse at 30% 30%, #24506a 0%, transparent 55%), radial-gradient(ellipse at 80% 70%, #7a4a26 0%, transparent 55%); }
.g-3 { background-color: #170f14; --ph: radial-gradient(ellipse at 60% 50%, #5c2a3e 0%, transparent 60%); }
.g-4 { background-color: #0f1418; --ph: radial-gradient(ellipse at 75% 35%, #3a5a5a 0%, transparent 55%), radial-gradient(ellipse at 30% 90%, #4a2a1a 0%, transparent 55%); }
.g-5 { background-color: #140c08; --ph: radial-gradient(ellipse at 70% 60%, #a0441c 0%, transparent 45%), radial-gradient(ellipse at 85% 20%, #5a2410 0%, transparent 50%); }

@media (max-width: 760px) {
  .reel-captions { bottom: calc(8vh + 40px); }
  .caption p { font-size: 17px; }
  .chapter-stats { gap: 24px; }
  .chapter-stats strong { font-size: 32px; }
  .reel-markers button { font-size: 0; }
  .ph::after { top: 84px; bottom: auto; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel .slide, .reel .slide .frame, .caption, .caption.active { transition: none !important; }
  .reel .slide.active .frame, .reel .slide .frame { transform: none !important; }
  .reel-markers button.active::after { animation: none; transform: none; }
}

/* Cookie consent banner (added by main.js) */
.consent { position: fixed; z-index: 1500; right: 24px; bottom: 24px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
.consent p { margin: 0; font-size: 14px; color: var(--text-muted); }
.consent-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 600px) {
  .consent { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Join page */
/* Hero: the photo fills the band, the copy and email form sit on the shaded left side */
.join-hero { position: relative; display: flex; align-items: center; min-height: min(calc(100svh - 69px), 780px); padding: 72px 0; overflow: hidden; background: #000; }
.join-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.join-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,12,20,0.96) 0%, rgba(14,12,20,0.88) 36%, rgba(14,12,20,0.35) 52%, rgba(14,12,20,0) 68%), linear-gradient(0deg, var(--bg) 0%, rgba(14,12,20,0) 22%); }
.join-hero .container { position: relative; z-index: 1; width: 100%; }
.join-copy { max-width: 480px; }
.join-hero h1 { font-weight: 400; font-size: clamp(48px, 6.4vw, 84px); margin-bottom: 18px; }
.join-hero .lede { font-size: 19px; color: rgba(236, 232, 244, 0.85); max-width: 40ch; margin-bottom: 28px; }
.join-form .inline-form input { background: rgba(14, 12, 20, 0.7); }
.join-hint { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Ellie's note: the one handwritten moment on the page */
/* What a free account opens: four cards, each linking to its public page */
.join-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.join-perk { padding: 22px; }
.join-perk .nav-item-icon { margin-bottom: 14px; }
.join-perk .nav-item-icon svg { width: 22px; height: 22px; }
.join-perk h3 { font-size: 20px; margin-bottom: 6px; }
.join-perk p { margin: 0; font-size: 15px; color: var(--text-muted); }
.join-note-small { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); }
.join-how { margin: 12px 0 0; font-size: 14px; color: var(--text); }
.join-tiers { margin: 0 0 18px; }
.join-back-lede { color: var(--text-muted); max-width: 66ch; margin-bottom: 28px; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.join-prior { margin-top: 24px; }

.join-consent { margin: 16px 0; font-size: 13px; color: var(--text-muted); }
/* PayPal's iframes inherit the page's dark color-scheme and paint an opaque white canvas; light keeps them transparent */
.paypal-slot iframe { color-scheme: light; }

@media (max-width: 900px) {
  /* Photo becomes a band on top, the copy follows below it */
  .join-hero { display: block; min-height: 0; padding: 0 0 40px; background: var(--bg); }
  /* The photo is 16:9, so a 16:9 band shows all of it; short enough to keep the email box on screen */
  .join-hero-img { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .join-hero-shade { bottom: auto; aspect-ratio: 16 / 9; background: linear-gradient(0deg, var(--bg) 0%, rgba(14,12,20,0) 30%); }
  .join-hero .container { margin-top: 18px; }
  .join-hero h1 { font-size: 40px; margin-bottom: 12px; }
  .join-hero .lede { font-size: 17px; margin-bottom: 20px; }
  .join-hero .chapter-num { margin-bottom: 10px; }
  /* Note sits in the photo's bottom-left corner, over the trees and clear of her face; its bottom edge is
     anchored 12px above the photo's bottom (56.25vw) whatever its height */
  /* Email box and button stay side by side here (the shared inline form stacks below 760px) */
  .join-form .inline-form { flex-direction: row; }
  .join-form .inline-form .btn { padding: 13px 18px; white-space: nowrap; }
  .join-perks { grid-template-columns: 1fr; gap: 20px; }
}
.follow-cta { justify-content: center; }

/* Login and members area */
.login-form { max-width: 520px; margin-top: 8px; }
.login-adult { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; color: var(--text-muted); cursor: pointer; }
.login-adult input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:disabled { opacity: 0.6; cursor: default; }
.form-hint { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }

/* Account menu (header, when logged in) */
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.acct-btn:hover, .acct.open .acct-btn { border-color: var(--text-muted); }
.acct-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #b44bff); color: #fff; font-size: 14px; font-weight: 700; }
.acct-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { width: 14px; height: 14px; color: var(--text-muted); transition: transform 0.15s; }
.acct.open .acct-chev { transform: rotate(180deg); }
.acct-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); z-index: 1100; }
.acct.open .acct-menu { display: block; }
.acct-head { margin: 0 0 6px; padding: 10px 12px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.acct-head strong { display: block; color: var(--text); font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-menu button, .site-nav .acct-menu a { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; background: none; border: 0; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg-card); color: var(--text); }
/* Admins and Team: Test as a tier. The avatar's dot shows a test tier is on. */
.acct-test { display: flex; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; padding: 7px 12px; font-size: 15px; font-weight: 500; color: var(--text); }
.acct-test[hidden] { display: none; }
.acct-test select { flex: 1; min-width: 0; max-width: 150px; padding: 4px 6px; border-radius: 6px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); font: inherit; font-size: 14px; }
.acct-avatar { position: relative; }
.acct-avatar.is-testing::after { content: ''; position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: #f5b83d; border: 2px solid var(--bg); }
@media (max-width: 1000px) {
  .site-nav .acct { margin-top: 4px; }
  .site-nav .acct-btn { display: none; }
  .site-nav .acct-menu { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .site-nav .acct-head { padding: 12px 4px; }
  .site-nav .acct-menu a, .site-nav .acct-menu button { padding: 12px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--border); }
}

/* Members area shell (after the DreamyGirls layout): top bar, sidebar, main area */
.members-app { background: var(--bg); }
.mbar { position: sticky; top: 0; z-index: 1000; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #000; border-bottom: 1px solid var(--border); }
.mbar .brand { margin-right: 0; font-size: 19px; }
.brand-sub { margin-left: 2px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mbar-link { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.mbar-link:hover { color: var(--text); }
.mbar-burger { display: block; margin-left: -8px; background: none; border: 0; border-radius: 8px; color: var(--text); padding: 8px; cursor: pointer; }
.mbar-burger:hover { background: var(--bg-card); }
.mbar-burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }
.mshell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.mside { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 24px; background: #000; border-right: 1px solid var(--border); }
.mside-label { margin: 16px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mside-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 10px; background: none; border: 0; color: var(--text-muted); font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
a.mside-item:hover, button.mside-item:hover { background: var(--bg-card); color: var(--text); }
.mside-item[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.mside-item.is-soon { cursor: default; opacity: 0.6; }
/* A thin, dark scrollbar when the sidebar's links are taller than the window */
.mside { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.mside::-webkit-scrollbar { width: 6px; }
.mside::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
/* Wide screens: the menu button hides the sidebar and the page takes the full width */
@media (min-width: 901px) {
  .mside-collapsed .mshell { grid-template-columns: minmax(0, 1fr); }
  .mside-collapsed .mside { display: none; }
}
.mside-backdrop { position: fixed; inset: 64px 0 0; z-index: 900; background: rgba(0, 0, 0, 0.6); }
.mmain { padding: 36px 36px 40px; display: flex; flex-direction: column; }
.mmain > [data-mstate], .mmain > .mwelcome { flex: 0 0 auto; }
.mtitle { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.mhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 8px; }
.mlede { margin: 0 0 4px; }
.mcount { color: var(--text-muted); font-size: 15px; }
.mfoot { margin: auto 0 0; padding-top: 48px; font-size: 12px; color: rgba(164, 157, 179, 0.7); }
.mfoot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.badge svg { width: 11px; height: 11px; }
.badge-lock { color: var(--accent-strong); border-color: rgba(255, 122, 89, 0.4); }
.tier-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(255, 122, 89, 0.35); color: var(--accent-strong); font-size: 13px; font-weight: 700; }
@media (max-width: 900px) {
  .mbar { padding: 0 12px; }
  .mbar-link { display: none; }
  .mshell { grid-template-columns: minmax(0, 1fr); }
  .mside { position: fixed; top: 64px; left: 0; bottom: 0; width: 270px; height: auto; z-index: 950; transform: translateX(-100%); transition: transform 0.2s ease; }
  .mside.open { transform: none; }
  .mmain { padding: 24px 16px 32px; }
}
@media (max-width: 420px) {
  .mbar .brand { font-size: 17px; gap: 8px; }
  .acct-btn .acct-name, .acct-btn .acct-chev { display: none; }
  .acct-btn { padding: 3px; }
}

/* Members home: offering tiles */
.offer-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 28px; }
.offer-tile { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: transform 0.2s, border-color 0.2s; }
a.offer-tile:hover, a.offer-tile:focus-visible { transform: translateY(-2px); border-color: rgba(255, 122, 89, 0.55); color: var(--text); }
.offer-visual { height: 132px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 70% 25%, rgba(255, 122, 89, 0.3), transparent 65%), linear-gradient(160deg, #262036, #120f19); color: var(--accent-strong); }
.offer-visual svg { width: 46px; height: 46px; }
.offer-visual.has-faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-card); margin-left: -16px; }
.offer-visual.has-faces img:first-child { margin-left: 0; }
.offer-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.offer-body h3 { margin: 0; font-size: 21px; }
.offer-body p { margin: 0; color: var(--text-muted); font-size: 15px; }
.offer-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--accent); font-size: 15px; font-weight: 600; }
.offer-tile.is-soon { opacity: 0.75; }
.offer-tile.is-soon .offer-visual, .offer-tile.is-locked .offer-visual { filter: grayscale(1) brightness(0.7); }
.skel-tile, .skel-card { border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-card) 30%, #282236 50%, var(--bg-card) 70%); background-size: 300% 100%; animation: skel 1.4s ease-in-out infinite; }
.skel-tile { height: 290px; }
.skel-card { height: 400px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel-tile, .skel-card { animation: none; } }

/* Members: characters toolbar, account panels, welcome */
.notice-line { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.notice-line a { text-decoration: underline; text-underline-offset: 2px; }
.mtoolbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 22px; }
.msearch, .msort { padding: 11px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; color: var(--text); font: inherit; font-size: 15px; }
.msearch { flex: 1 1 240px; max-width: 420px; }
.msearch:focus, .msort:focus { outline: none; border-color: var(--accent); }
.mpanel { max-width: 640px; margin-top: 20px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.mpanel h2 { font-size: 22px; margin: 0 0 6px; }
.mpanel p { margin: 0 0 12px; }
.mpanel .btn + .btn { margin-left: 8px; }
.mwelcome { max-width: 520px; margin: 6vh auto 0; }
.mwelcome .muted { margin: 10px 0 20px; }
.mwelcome .link-button { margin-top: 6px; color: var(--text-muted); }

/* Character cards (after the DreamyGirls character grid) */
.char-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.char-card { position: relative; display: block; height: 400px; border: 1px solid rgba(255, 122, 89, 0.55); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); color: #fff; transition: transform 0.2s ease, border-color 0.2s ease; }
.char-card:hover, .char-card:focus-visible { transform: scale(1.02); border-color: var(--accent); color: #fff; }
.char-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.char-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent); pointer-events: none; }
.char-card.no-image { background: radial-gradient(ellipse at 70% 30%, rgba(255, 122, 89, 0.25), transparent 60%), var(--bg-card); }
.char-card-text { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; }
.char-card h3 { margin: 0 0 6px; font-size: 20px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-card-tagline { display: block; margin: -2px 0 6px; font-size: 13px; font-weight: 600; color: var(--accent-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, 0.9); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.35em); }
.char-card-cta { display: block; text-align: right; font-size: 13px; font-weight: 600; color: var(--accent-strong); }
@media (max-width: 560px) { .char-card { height: 500px; } }

/* Membership page */
/* Tier cards scroll sideways and snap, so each is wide enough to read; short bullets with info tips */
/* A page heading followed straight away by content: no double gap between them (Updates, About,
   Pricing, the method, Contact, Disclaimer, Privacy) */
.page-head + .section-tight { padding-top: 8px; }
.tier-scroller { position: relative; }
/* Arrows sit on the cards' left and right edges, each only while cards are hidden on its side */
.tier-scroll-btn { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(14, 12, 20, 0.88); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); }
.tier-scroll-btn:hover { border-color: var(--accent); color: var(--accent); }
.tier-scroll-btn.is-prev { left: -22px; }
.tier-scroll-btn.is-next { right: -22px; }
.tier-scroll-btn[hidden] { display: none; }
@media (max-width: 700px) {
  .tier-scroll-btn.is-prev { left: -6px; }
  .tier-scroll-btn.is-next { right: -6px; }
}
.member-tiers { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 2px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.member-tiers:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.member-tiers .tier { flex: 0 0 min(305px, 84%); scroll-snap-align: start; display: flex; flex-direction: column; }
.tier-lead { margin: 0 0 14px; }
.tier-perks { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.tier-perks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.tier-perks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.tier-perks strong { color: var(--text); }
.perk-info { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-raised); color: var(--text-muted); font: italic 700 11px/1 Georgia, serif; vertical-align: 1px; cursor: help; }
.perk-info:hover, .perk-info:focus-visible { border-color: var(--accent); color: var(--accent); }
.perk-tip { position: fixed; z-index: 1200; max-width: 280px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); color: var(--text); font-size: 14px; line-height: 1.45; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); pointer-events: none; }
.tier-action { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tier-action .btn { margin-top: 0; }
.tier-action .paypal-slot { width: 100%; }
.tier-note { margin: 0; font-size: 13px; color: var(--text-muted); }
.tier.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.membership-note { margin: 24px 0 0; font-size: 15px; max-width: 72ch; }
.membership-continue { margin-top: 28px; }

/* Join page: after submitting */
.join-done { margin-top: 8px; padding: 20px 22px; background: rgba(14, 12, 20, 0.75); border: 1px solid rgba(255, 122, 89, 0.45); border-radius: var(--radius); }
.join-done h2 { font-size: 26px; margin: 0 0 6px; outline: none; }
.join-done p { margin: 0 0 8px; }
.tier-terms { width: 100%; margin: 4px 0 12px; padding: 12px 14px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text); }
.tier-terms ul { margin: 0; padding-left: 18px; }
.tier-terms li + li { margin-top: 6px; }
.tier-terms p { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; }
[data-membership-status] { margin: 0 0 20px; max-width: 72ch; }

/* GPT Girlfriend intro on the characters page */
.gptgf-intro { max-width: 760px; margin: 18px 0 16px; padding: 20px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.gptgf-intro h2 { font-size: 22px; margin: 0 0 6px; }
.gptgf-intro p { margin: 0 0 14px; color: var(--text-muted); }

/* Show NSFW switch (account menu and characters toolbar) */
.nsfw-switch { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: none; border: 0; border-radius: 8px; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.nsfw-switch:hover { background: var(--bg-card); }
.nsfw-switch:disabled { opacity: 0.6; cursor: default; }
.acct-menu button.nsfw-switch { display: flex; width: 100%; }
.mtoolbar .nsfw-switch { padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); }
.nsfw-track { position: relative; flex: 0 0 auto; width: 36px; height: 20px; border-radius: 999px; background: var(--border); transition: background 0.15s; }
.nsfw-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: transform 0.15s, background 0.15s; }
.nsfw-switch[aria-checked="true"] .nsfw-track { background: var(--accent); }
.nsfw-switch[aria-checked="true"] .nsfw-track::after { transform: translateX(16px); background: #fff; }
.nsfw-hidden-note { margin: -8px 0 18px; }
@media (max-width: 1000px) { .site-nav .acct-test { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--border); } }
@media (max-width: 1000px) { .site-nav .acct-menu .nsfw-switch { padding: 12px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--border); } }

/* NSFW confirmation */
.nsfw-dialog { width: min(480px, calc(100vw - 32px)); padding: 28px 26px 22px; background: var(--bg-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.nsfw-dialog::backdrop { background: rgba(8, 6, 12, 0.75); backdrop-filter: blur(4px); }
.nsfw-dialog h2 { font-size: 26px; margin: 0 0 12px; }
.nsfw-dialog p { margin: 0 0 12px; color: var(--text-muted); }
.nsfw-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 480px) {
  .mbar .brand { white-space: nowrap; }
  .mbar .brand-sub { display: none; }
}

/* Updates feed and posts */
.update-feed { display: grid; gap: 24px; max-width: 760px; }
.update-card { position: relative; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
/* Feed cards: the title link stretches over the whole card; buttons and links inside sit above it */
.update-card:not(.is-full) { transition: border-color 0.2s ease, transform 0.2s ease; }
.update-card:not(.is-full):hover { border-color: rgba(255, 122, 89, 0.45); transform: translateY(-2px); }
.update-card:not(.is-full):has(.update-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.update-card:not(.is-full) .update-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.update-card:not(.is-full) .update-title a:focus-visible { outline: none; }
.update-card .update-cta, .update-card .update-body a { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .update-card:not(.is-full):hover { transform: none; } }
.update-card.is-full { background: none; border: 0; border-radius: 0; overflow: visible; }
.update-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 70% 30%, rgba(255, 122, 89, 0.22), transparent 60%), linear-gradient(160deg, #262036, #120f19); overflow: hidden; }
/* Post page: the photo is a button that enlarges it */
.update-zoom { padding: 0; border: 0; font: inherit; color: inherit; cursor: zoom-in; }
.update-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-dialog { max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; padding: 16px; border: 0; background: transparent; display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.photo-dialog[open] { display: flex; }
.photo-dialog::backdrop { background: rgba(0, 0, 0, 0.9); }
.photo-dialog img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.photo-dialog-close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: rgba(14, 12, 20, 0.7); color: #fff; cursor: pointer; }
.photo-dialog-close svg { width: 20px; height: 20px; }
.update-card.is-full .update-media { border-radius: var(--radius); }
.update-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Real photos fit whole inside the 16:9 frame with black borders, never cropped (screenshots
   lose their edges otherwise). The blurred locked preview still fills the frame. */
.update-media:not(.update-blur) { background: #000; }
.update-media:not(.update-blur) img { position: relative; object-fit: contain; }
/* A blurred, darkened copy of the photo fills the space the whole photo leaves */
.update-media img.update-fill { position: absolute; inset: 0; object-fit: cover; filter: blur(28px) brightness(0.55) saturate(1.2); transform: scale(1.2); }
.update-blur img { filter: blur(24px) saturate(1.1); transform: scale(1.25); }
.update-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(14, 12, 20, 0.78); border: 1px solid rgba(255, 122, 89, 0.45); color: var(--text); font-size: 14px; font-weight: 700; backdrop-filter: blur(4px); }
.update-lock svg { width: 15px; height: 15px; color: var(--accent-strong); }
.update-head { padding: 20px 24px 16px; }
.update-text { padding: 16px 24px 22px; }
.update-card.is-full .update-head { padding: 0 0 20px; }
.update-card.is-full .update-text { padding: 20px 0 0; }
.update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; color: var(--text-muted); }
.update-title { font-size: 26px; margin: 0; }
.update-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
/* Who a post is for: soft blue for Public, coral (the site accent) for Members and paid tiers,
   with a lock icon when it's locked for this reader */
.update-badges .badge { padding: 4px 10px; font-size: 12px; }
.update-badges .badge svg { width: 12px; height: 12px; }
.badge-public { color: #bfdbfe; background: rgba(96, 165, 250, 0.14); border-color: rgba(96, 165, 250, 0.45); }
.badge-restricted { color: var(--accent-strong); background: var(--accent-soft); border-color: rgba(255, 122, 89, 0.45); }
.badge-ok { color: #bbf7d0; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.45); } /* the .notice.success green */
.badge-draft { color: #fdba74; background: rgba(249, 115, 22, 0.14); border-color: rgba(249, 115, 22, 0.5); }
.badge-nsfw { color: #fca5a5; background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.5); }
.update-card .card-link { display: inline-block; color: var(--accent); font-weight: 600; font-size: 15px; }
.update-card .card-link::after { content: ' \2192'; }
.update-card:not(.is-full):hover .card-link { color: var(--accent-strong); }
.update-card.is-full .update-title { font-size: clamp(32px, 5vw, 48px); }
.update-title a { color: var(--text); }
.update-title a:hover { color: var(--accent-strong); }
.update-body { color: var(--text); font-size: 17px; line-height: 1.7; }
.update-body p { margin: 0 0 14px; }
.update-body h2 { font-size: 26px; margin: 32px 0 12px; }
.update-body h3 { font-size: 20px; margin: 24px 0 10px; }
.update-body > :is(h2, h3):first-child { margin-top: 0; }
/* Feed previews (posts without a teaser): headings are left out of the three-line preview */
.update-body.is-clamped :is(h2, h3) { display: none; }
.update-body a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.update-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; color: var(--text-muted); font-size: 16px; }
.update-body.is-clamped p { margin: 0 0 8px; }
.update-teaser { color: var(--text-muted); margin: 0 0 16px; }
.update-cta { align-items: center; }
.update-cta .tier-note { flex-basis: 100%; }
.update-video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 20px; border-radius: var(--radius); overflow: hidden; background: #000; }
.update-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.update-page { max-width: 760px; }
.update-page .back-link { margin-bottom: 20px; }

/* Updates posting page (admins) */
.post-editor { max-width: 760px; margin-top: 20px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 18px; }
.post-editor .field { margin: 0; }
.post-editor-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.post-editor-row .field { flex: 1 1 240px; }
.post-nsfw { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--text-muted); font-size: 15px; cursor: pointer; }
.post-nsfw input { width: 18px; height: 18px; accent-color: var(--accent); }
.post-nsfw:has(input:disabled) { opacity: 0.5; cursor: default; }
.label-note { font-weight: 400; color: rgba(164, 157, 179, 0.75); margin-left: 6px; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.post-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.post-photo img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.post-editing { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--text); font-size: 14px; }
.post-admin-heading { font-size: 24px; margin: 36px 0 12px; }
.post-admin-list { max-width: 760px; display: grid; gap: 10px; }
.post-admin-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.post-admin-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-admin-row .muted { font-size: 13px; }
.post-admin-actions { display: flex; gap: 14px; font-size: 14px; }
.post-admin-actions { flex-wrap: wrap; }

/* Comps and codes (members/admin/access) */
.admin-lede { max-width: 760px; margin-top: 4px; }
.admin-block { max-width: 760px; }
.admin-block > .muted { margin: 0 0 16px; }
.admin-form { display: grid; gap: 16px; margin-bottom: 20px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-form .field { margin: 0; }
.admin-form .cta-row { margin: 0; }
.admin-form .form-status { margin: 0; }
.admin-form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.admin-form-row .field { flex: 1 1 180px; }
.admin-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.post-admin-row.is-ended { opacity: 0.6; }
.code-name { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.code-redemptions { flex-basis: 100%; font-size: 14px; }
.code-redemptions p { margin: 0 0 4px; }

/* Promo codes: redeem page, Account page box, Join page note */
.redeem-form, .redeem-enter { max-width: 520px; margin-top: 20px; }
.redeem-form input, .redeem-enter input { text-transform: uppercase; letter-spacing: 0.04em; }
.redeem-form input::placeholder, .redeem-enter input::placeholder { text-transform: none; letter-spacing: normal; }
.access-line { color: var(--accent-strong); }
.join-code-note { margin: 12px 0 0; font-size: 14px; color: var(--accent-strong); }

/* Stats Studio (members/stats). Charts: thin marks, recessive grid, accent for the
   character in focus, gray for context (dataviz rules: one axis, text never in series color). */
.stats-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.stats-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: 10px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
.stats-table th, .stats-table td:first-child { padding-left: 14px; }
.stats-table th:last-child, .stats-table td:last-child { padding-right: 14px; }
.stats-table thead th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table th { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.stats-table tbody tr:last-child td { border-bottom: 0; }
.stats-table .badge { margin-left: 8px; }
.stats-table-wrap + .tier-note { margin-top: 10px; }
.stats-viewing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; }
.stats-viewing label { font-size: 14px; color: var(--text-muted); }
.stats-viewing select { max-width: 100%; }
.stats-back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--text-muted); }
.stats-back:hover { color: var(--accent); }
.stats-detail-meta { margin: 0 0 18px; }
.stats-name { color: var(--text); font-weight: 600; }
.stats-name:hover, .stats-name:focus-visible { color: var(--accent); text-decoration: underline; }
.stats-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stats-tile-label { font-size: 13px; color: var(--text-muted); }
.stats-tile-value { font-size: 24px; font-weight: 600; }
.stats-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 12px; margin-bottom: 18px; }
.stats-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.stats-card-head h3 { margin: 0; font-family: var(--font-body); font-size: 17px; }
.stats-range { display: flex; flex-wrap: wrap; gap: 6px; }
.stats-detail > .stats-range { margin: 0 0 14px; }
.chart-edit { stroke: var(--text-muted); stroke-width: 1; stroke-opacity: 0.6; }
.chart-edit-dot { fill: var(--text-muted); stroke: var(--bg-card); stroke-width: 2; }
.chart-key.chart-key-edit { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.stats-range button { background: transparent; border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.stats-range button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.stats-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); }
.stats-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.stats-chart { position: relative; min-height: 220px; outline: none; transition: opacity 0.2s; }
.stats-chart.is-loading { opacity: 0.5; }
.stats-chart:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 6px; }
.stats-chart svg { display: block; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-tick { fill: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-cross { stroke: var(--text-muted); stroke-width: 1; }
.chart-bar { fill: var(--accent); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line-context { stroke: #6e6680; stroke-opacity: 0.55; }
.chart-area { fill: var(--accent); fill-opacity: 0.1; }
.chart-dot { fill: var(--accent); stroke: var(--bg-card); stroke-width: 2; }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.chart-tip-row { display: flex; align-items: center; gap: 8px; }
.chart-tip-row strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.chart-tip-label { color: var(--text-muted); }
.chart-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--accent); flex: none; }
.chart-key-context { background: #6e6680; }
.stats-table-view { margin-top: 8px; font-size: 14px; }
.stats-table-view summary { cursor: pointer; color: var(--text-muted); padding: 4px 0; }
.stats-table-view .stats-table-wrap { margin-top: 8px; max-height: 320px; overflow-y: auto; }


/* Stats Studio: connecting a creator, banners and setup */
.stats-connect { max-width: 680px; margin-top: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stats-connect h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 8px; }
.stats-connect > .muted { margin: 0 0 18px; font-size: 15px; }
.stats-connect-row { display: flex; gap: 10px; }
.stats-connect-row input { flex: 1; min-width: 0; }
.stats-connect-row .btn { flex: none; }
.stats-confirm { border-top: 1px solid var(--border); padding-top: 18px; }
.stats-connect .stats-confirm { border-top: 0; padding-top: 0; }
.stats-confirm-who { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.stats-confirm-pic { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.stats-confirm-name { margin: 0; font-size: 18px; font-weight: 600; }
.stats-confirm-who .tier-note { margin: 2px 0 0; }
.stats-confirm-q { margin: 16px 0 10px; font-weight: 600; }
.stats-confirm .cta-row { margin: 0; }
.stats-confirm > .tier-note { margin-top: 12px; }
.stats-banner { max-width: 680px; margin: 18px 0; padding: 16px 18px; background: var(--accent-soft); border: 1px solid rgba(255, 122, 89, 0.35); border-radius: var(--radius); }
.stats-banner > p { margin: 0; font-size: 15px; }
.stats-banner .stats-connect-form { margin-top: 14px; }
.stats-setup { max-width: 680px; margin: 18px 0; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.stats-history-note { margin: 14px 0 0; }
@media (max-width: 560px) {
  .stats-connect { padding: 18px; }
  .stats-connect-row { flex-direction: column; }
}
.stats-connect-lede { margin: 0 0 14px; color: var(--text-muted); font-size: 16px; }
.stats-benefits { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--text-muted); }
.stats-benefits strong { color: var(--text); font-weight: 600; }
.stats-callout { margin: 0 0 20px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid rgba(255, 122, 89, 0.45); border-left-width: 4px; border-radius: 10px; }
.stats-callout p { margin: 0; font-size: 15px; }
.stats-callout p + p { margin-top: 6px; }
.stats-callout .stats-callout-title { margin: 0 0 4px; font-weight: 700; color: var(--text); }
.stats-field-hint { margin: -2px 0 8px; font-size: 13px; color: var(--text-muted); }
.stats-field-hint strong { color: var(--text); }
.stats-trust { margin: 2px 0 0; }
.page-head.redeem { padding-bottom: 96px; min-height: 60vh; }
.redeem h1 { max-width: 16ch; }
.redeem-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }
.redeem-eyebrow .eyebrow { margin: 0; }
.redeem-tag { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 122, 89, 0.45); background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.redeem-new { font-size: 18px; color: var(--accent-strong); margin: 0 0 8px; }
.redeem-includes { max-width: 560px; margin: 24px 0 28px; }
.redeem-includes-label { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.redeem-includes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.redeem-includes li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.redeem-includes li span { color: var(--text-muted); font-size: 15px; }
.redeem-join { max-width: 560px; }
.redeem-join .join-consent { margin: 12px 0 0; }
.redeem-login { margin: 18px 0 0; color: var(--text-muted); }
.redeem-why { max-width: 560px; font-size: 18px; }
.admin-form .form-status:empty { display: none; }
.redeem-help { margin: 12px 0 20px; font-size: 15px; color: var(--text-muted); }

/* Character Forge v3.0: a character's page (members/forge3/character/) */
/* Forge v3.0 images: every set in one row, newest on the left, 4 in view (2 on phones); only
   the row scrolls sideways, never the page */
.f3-gallery { display: flex; gap: 12px; margin-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; }
.f3-gallery .f3-shot { flex: 0 0 calc((100% - 36px) / 4); min-width: 0; scroll-snap-align: start; }
@media (max-width: 600px) { .f3-gallery .f3-shot { flex-basis: calc((100% - 12px) / 2); } }
.f3-gallery figure { margin: 0; }
.f3-gallery img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-raised); }
.f3-gallery figcaption { margin-top: 6px; font-size: 13px; }
.f3-gallery figcaption .f3-link-btn { margin-left: 10px; }
/* Arrows on the row's edges, only when there's more that way */
.f3-gallery-wrap { position: relative; }
.f3-arrow { position: absolute; top: calc(50% - 22px); z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.f3-arrow:hover { border-color: var(--accent); }
.f3-arrow-prev { left: -8px; }
.f3-arrow-next { right: -8px; }
.f3-arrow[hidden] { display: none; }
/* Forge v3.0 image viewer: large on desktop, full screen on phones */
.f3-viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.92); color: #fff; }
.f3-viewer[open] { display: flex; align-items: center; justify-content: center; }
.f3-viewer::backdrop { background: transparent; }
.f3-viewer img { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; }
.f3-viewer .f3-arrow { top: calc(50% - 20px); }
.f3-viewer-prev { left: 20px; }
.f3-viewer-next { right: 20px; }
.f3-viewer-close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.f3-viewer-bar { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 20px; font-size: 14px; }
.f3-viewer-get { color: var(--accent); }
@media (max-width: 600px) {
  .f3-viewer img { max-width: 100vw; max-height: calc(100vh - 100px); border-radius: 0; }
  .f3-viewer-prev { left: 8px; }
  .f3-viewer-next { right: 8px; }
}
/* The cost sits right beside New images, as one unit */
.f3-images-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.f3-images-note { margin: 0 0 8px; font-size: 14px; }
.f3-images-note:empty { display: none; }
.f3-link-btn { padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.f3-link-btn:hover { color: var(--text); }
.f3-link-btn:disabled { opacity: 0.5; cursor: default; }
.f3-cost { font-size: 14px; white-space: nowrap; }
.f3-sheet pre { margin: 0 0 8px; max-height: 420px; overflow: auto; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.f3-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.f3-name-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Forge v3.0 progress: steps with a spinner on the current one, a running clock, and shimmering
   placeholders where the images will land. Still (no motion) when the device asks for less motion. */
.f3-spinner, .f3-step-icon { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; }
.f3-spinner { border: 2px solid currentColor; border-right-color: transparent; animation: f3-spin 0.8s linear infinite; }
.f3-progress { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.f3-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.f3-steps li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.f3-steps li.is-active { color: var(--text); font-weight: 600; }
.f3-steps li.is-done { color: var(--text); }
.f3-step-icon { width: 18px; height: 18px; border: 2px solid var(--border); }
.f3-steps li.is-active .f3-step-icon { border-color: var(--accent); border-right-color: transparent; animation: f3-spin 0.8s linear infinite; }
.f3-steps li.is-done .f3-step-icon { border-color: rgba(34, 197, 94, 0.6); background: rgba(34, 197, 94, 0.18); position: relative; }
.f3-steps li.is-done .f3-step-icon::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #bbf7d0; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.f3-clock { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.f3-placeholder { aspect-ratio: 2 / 3; border-radius: 10px; border: 1px solid var(--border); background: linear-gradient(100deg, var(--bg-raised) 30%, var(--bg-card) 50%, var(--bg-raised) 70%); background-size: 250% 100%; animation: f3-shimmer 1.6s ease-in-out infinite; }
@keyframes f3-spin { to { transform: rotate(360deg); } }
@keyframes f3-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .f3-spinner, .f3-steps li.is-active .f3-step-icon, .f3-placeholder { animation: none; }
}
.badge .f3-spinner { width: 9px; height: 9px; border-width: 1.5px; }
.f3-thumbs { display: flex; gap: 8px; margin: 2px 0 10px 28px; }
.f3-thumbs .f3-placeholder { width: 44px; border-radius: 6px; }
.f3-thumbs:empty { display: none; }

/* Forge v3.0 sheet editing: version line, edit box, history */
.f3-version { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.f3-edit { display: block; width: 100%; min-height: 120px; max-height: 420px; overflow: auto; margin: 0 0 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; resize: none; }
.f3-edit:hover { border-color: var(--text-muted); }
.f3-edit:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f3-sheet > .f3-actions { margin-bottom: 8px; }
.f3-edit:disabled { opacity: 0.6; cursor: not-allowed; }
.f3-revise-label { display: block; margin-bottom: 6px; font-weight: 600; }
.f3-revise .f3-revise-box { min-height: 64px; }
.f3-hint { margin: 0 0 10px; font-size: 13px; }
.f3-history { margin: 4px 0 6px; font-size: 14px; }
.f3-history summary { cursor: pointer; color: var(--text-muted); }
.f3-history-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.f3-history-row > div:first-child { flex: 1 1 260px; }
.f3-history-row pre { flex: 1 1 100%; }

/* ---- Character gallery (/members/gallery/) ---- */
.gallery-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-size: 14px; color: var(--text-muted); }
.gallery-crumbs a { color: var(--accent); }
.gallery-lede { max-width: 760px; margin: 6px 0 0; }
.gallery-lede[hidden] { display: none; }
/* A picture slot: the photo, a blurred teaser (.update-blur) or a plain panel */
.gallery-pic { position: relative; overflow: hidden; background: var(--bg-card); }
.gallery-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-pic.is-empty { background: radial-gradient(ellipse at 70% 30%, rgba(255, 122, 89, 0.22), transparent 60%), var(--bg-card); }
.gallery-card .gallery-card-pic { position: absolute; inset: 0; }
.gallery-albums { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-album { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); color: var(--text); transition: border-color 0.2s ease, transform 0.2s ease; }
.gallery-album:hover, .gallery-album:focus-visible { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.gallery-album-pic { aspect-ratio: 4 / 5; }
.gallery-album-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; }
.gallery-album-meta h3 { flex: 1 1 100%; margin: 0; font-size: 18px; }
.gallery-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid rgba(255, 122, 89, 0.45); border-radius: var(--radius); background: var(--bg-card); }
.gallery-pic .update-lock, .gallery-locked .update-lock { white-space: nowrap; }
.gallery-locked .update-lock { position: static; transform: none; }
.gallery-locked p { flex: 1 1 260px; margin: 0; }
/* The primary photo large on top, the remaining photos in a grid below */
.gallery-primary { max-width: 900px; height: min(78vh, 900px); margin: 0 0 22px; border-radius: var(--radius); border: 1px solid var(--border); background: #000; }
.gallery-primary:not(.update-blur) img { object-fit: contain; }
.gallery-photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery-photo { aspect-ratio: 4 / 5; border-radius: 10px; border: 1px solid var(--border); }
.gallery-open { position: absolute; inset: 0; z-index: 1; cursor: zoom-in; }
.gallery-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery-like { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: rgba(14, 12, 20, 0.72); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); }
.gallery-like svg { width: 16px; height: 16px; }
.gallery-like svg path { fill: transparent; stroke: #fff; }
.gallery-like.is-liked svg path { fill: var(--accent); stroke: var(--accent); }
.gallery-like:disabled { opacity: 0.7; }
.f3-viewer-extra .gallery-like { position: static; }
.f3-viewer-extra:empty, .f3-viewer-get[hidden] { display: none; }
.f3-viewer-bar { align-items: center; }

/* ---- Gallery admin (/members/admin/gallery/) ---- */
.ga-subhead { margin: 28px 0 8px; font-size: 18px; }
.ga-drop { display: grid; gap: 4px; padding: 22px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg-card); text-align: center; cursor: pointer; }
.ga-drop.is-over { border-color: var(--accent); }
.ga-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ga-drop:focus-within { border-color: var(--accent); }
.ga-progress { margin: 12px 0 0; }
.ga-progress-bar { height: 8px; border-radius: 999px; background: var(--bg-raised); overflow: hidden; }
.ga-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }
.ga-progress p { margin: 6px 0 0; }
.ga-failed { margin: 10px 0 0; padding-left: 18px; color: var(--accent-strong); font-size: 14px; }
.ga-primary { display: inline-grid; gap: 6px; }
.ga-primary img { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 2px solid var(--accent); }
.ga-order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ga-order-head .cta-row { margin: 18px 0 0; }
.ga-photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 12px 0 0; padding: 0; list-style: none; }
.ga-photo { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); cursor: grab; }
.ga-photo.is-dragging { opacity: 0.45; border-color: var(--accent); }
.ga-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; pointer-events: none; }
.ga-photo-name { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-photo-actions { display: flex; justify-content: space-between; gap: 4px; }
.ga-mini { flex: 1; min-height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-raised); color: var(--text); font-size: 13px; cursor: pointer; }
.ga-mini:hover:not(:disabled) { border-color: var(--accent); }
.ga-mini:disabled { opacity: 0.35; cursor: default; }
.ga-album-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ga-album-row { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.ga-album-cover { flex: 0 0 56px; height: 70px; border-radius: 6px; overflow: hidden; background: var(--bg-raised); }
.ga-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.ga-album-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ga-album-text a { font-weight: 700; }
.ga-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* Characters: a searchable card grid (admin section and picker dialog) */
.ga-browse-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; }
.ga-browse-search { flex: 1 1 220px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised); color: var(--text); font: inherit; }
.ga-browse-filter { min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised); color: var(--text); font: inherit; }
.ga-browse-count { font-size: 13px; }
.ga-char-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0; padding: 0; list-style: none; }
.ga-char-card { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.ga-char-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ga-char-card .post-admin-actions { padding: 0 4px; }
.ga-char-main { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.ga-char-main, a.ga-char-main { cursor: pointer; border-radius: 8px; text-decoration: none; }
button.ga-char-main:hover strong, a.ga-char-main:hover strong { color: var(--accent); }
.ga-char-card:has(a.ga-char-main:hover) { border-color: var(--accent); }
.ga-draft-count { color: #fdba74; }
/* One character's view: picture, name, badges, bio */
.ga-char-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.ga-char-head-text { display: grid; gap: 8px; min-width: 0; }
.ga-char-head-text .post-admin-heading { margin: 0; }
.ga-char-bio { margin: 0; max-width: 70ch; }
.ga-portrait-head { width: 110px; height: 138px; border-radius: 10px; font-size: 36px; }
.ga-here-form { margin: 0 0 14px; }
[data-ga-status-line] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ga-char-text { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.ga-char-text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-portrait { display: inline-grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: var(--bg-raised); color: var(--text-muted); font-weight: 700; }
.ga-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ga-portrait-card { width: 64px; height: 80px; font-size: 22px; }
.ga-portrait-small { width: 36px; height: 44px; border-radius: 6px; font-size: 15px; }
.ga-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ga-pick:hover { border-color: var(--accent); }
.ga-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-pick-change { font-size: 13px; }
.ga-picker { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); }
.ga-picker::backdrop { background: rgba(0, 0, 0, 0.6); }
.ga-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ga-picker-head h2 { margin: 0; }
/* Your own character's form: picture on the left, fields on the right */
.ga-char-form { margin: 14px 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.ga-char-form .ga-subhead { margin-top: 0; }
.ga-char-form-body { display: flex; flex-wrap: wrap; gap: 16px; }
.ga-char-form-fields { flex: 1 1 260px; display: grid; gap: 10px; align-content: start; }
.ga-portrait-drop { position: relative; display: grid; place-items: center; gap: 6px; width: 160px; padding: 8px; border: 2px dashed var(--border); border-radius: 10px; text-align: center; font-size: 13px; cursor: pointer; }
.ga-portrait-drop.is-over, .ga-portrait-drop:hover { border-color: var(--accent); }
.ga-portrait-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ga-portrait-preview { display: block; width: 140px; height: 175px; border-radius: 8px; overflow: hidden; background: var(--bg-raised); }
.ga-portrait-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Members: a character's picture and bio above their albums */
.gallery-char-head { display: flex; align-items: flex-start; gap: 20px; margin: 0 0 24px; }
.gallery-char-story { min-width: 0; }
.gallery-char-bio { margin: 0; max-width: 70ch; color: var(--text-muted); }
.gallery-char-more { margin-top: 6px; }
/* A GPT Girlfriend character's chat card: the characters page's card, picture and name only */
.char-card.gallery-chat-card { flex: none; width: 220px; height: 330px; }
.gallery-chat-card .char-card-text { left: 12px; right: 12px; bottom: 12px; }
.gallery-chat-card .char-card-cta { text-align: left; }
.gallery-chat-card img { object-position: top; }
/* Characters page: the gallery pill on a card's picture */
.char-card-wrap { position: relative; }
.char-card-wrap:hover .char-card { transform: scale(1.02); border-color: var(--accent); }
.char-card-gallery { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; backdrop-filter: blur(4px); }
.char-card-gallery:hover, .char-card-gallery:focus-visible { border-color: var(--accent); color: #fff; background: rgba(0, 0, 0, 0.85); }
.char-card-gallery svg { width: 15px; height: 15px; }
.gallery-char-portrait { flex: none; width: 120px; height: 150px; border-radius: 10px; }
.gallery-char-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 600px) {
  .gallery-primary { height: 62vh; }
  .gallery-photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ga-photos { grid-template-columns: repeat(2, 1fr); }
  .ga-album-row { flex-wrap: wrap; }
  .ga-char-grid { grid-template-columns: 1fr; }
  /* Phones: the chat card and the story side by side, four lines of story, two albums per row */
  .gallery-char-head { gap: 14px; }
  .char-card.gallery-chat-card { width: 130px; height: 195px; }
  .gallery-chat-card h3 { font-size: 16px; margin-bottom: 2px; }
  .gallery-chat-card .char-card-cta { font-size: 12px; white-space: normal; }
  .gallery-char-bio { font-size: 15px; }
  .gallery-char-bio.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
  .gallery-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-album-meta { padding: 10px; gap: 4px 8px; }
  .gallery-album-meta h3 { font-size: 15px; }
  .gallery-album-meta .muted { font-size: 13px; }
  .gallery-album .update-lock { font-size: 12px; padding: 5px 9px; }
}
.admin-block > .form-status:empty { display: none; }

/* ===== Public pages: Tools, Original characters, Galleries, Character Forge ===== */
.tier-chip { display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.12); color: #bbf7d0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tier-chip.is-paid { border-color: rgba(255, 122, 89, 0.5); background: var(--accent-soft); color: var(--accent-strong); }
.tool-lead { font-size: 19px; color: var(--text); margin: 0 0 18px; }
.tool-note { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; }
.tools-hero { padding-bottom: 40px; }
.tool-panels { display: grid; gap: 96px; padding-bottom: 24px; }
.tool-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; scroll-margin-top: 96px; }
.tool-panel.is-flipped .tool-visual { order: 2; }
.tool-copy h2 { font-size: 38px; margin-bottom: 8px; }
.tool-copy .tier-perks { margin-bottom: 20px; }
.tool-visual { position: relative; min-height: 340px; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: radial-gradient(ellipse at 20% 0%, rgba(255, 122, 89, 0.2), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(180, 75, 255, 0.16), transparent 50%), var(--bg-raised); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); overflow: hidden; }
/* The illustrations are built in the page: character sheets, sample images and a chart */
.tool-visual-sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.sheet-card { padding: 14px 16px 16px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: rgba(14, 12, 20, 0.75); display: grid; gap: 8px; }
.sheet-card span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); }
.sheet-card i { display: block; height: 7px; border-radius: 4px; background: rgba(236, 232, 244, 0.14); }
.sheet-card i:nth-child(3n) { width: 70%; }
.sheet-card i:nth-child(3n + 1) { width: 88%; }
.tool-visual-v3 { display: grid; gap: 14px; align-content: center; }
.sheet-card-wide i:nth-child(odd) { width: 92%; }
.v3-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.v3-images img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); }
.tool-visual-stats { display: grid; gap: 12px; align-content: center; }
.tool-visual-stats svg { width: 100%; height: 200px; }
.stats-mock-head, .stats-mock-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.stats-mock-head b { color: var(--text); font-weight: 600; }
.split-hero { padding: 64px 0 40px; }
.split-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.split-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.split-hero .lede { color: var(--text-muted); }
.stats-mock-chart { position: relative; }
.stats-mock-pin { position: absolute; top: 0; left: 62%; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: rgba(14, 12, 20, 0.9); font-size: 12px; color: var(--text); white-space: nowrap; }
.split-hero-art { margin: 0; }
.split-hero-art img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; object-position: center 30%; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.split-hero-art figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.gallery-mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 440px; }
.gallery-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); }
.gallery-mosaic img:first-child { grid-row: span 2; }
.gallery-mosaic img:nth-child(4) { display: none; }
.access-cards .card h3 { margin-top: 2px; }
.gallery-extras { margin-top: 28px; }
.split-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.feature-cards .card { display: flex; flex-direction: column; }
.feature-cards .card-link { margin-top: auto; }
.forge-compare { align-items: stretch; }
.forge-version h2 { font-size: 30px; margin-bottom: 6px; }
/* Information, not a choice: no "selected" outline, a thin accent line on top instead, and each
   card's action is its own button at the bottom */
.forge-version.is-featured { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255, 122, 89, 0.06), var(--bg-card) 45%); scroll-margin-top: 96px; }
.forge-version.is-featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #b44bff); }
.forge-version .tier-perks { margin-bottom: 22px; }
.forge-version-cta { margin-top: auto; }
.method-video { margin: 28px 0 0; color: var(--text-muted); }
.join-free-title { font-size: 26px; margin-bottom: 18px; }
@media (max-width: 900px) {
  .tool-panel, .split-hero-grid, .split-feature { grid-template-columns: 1fr; gap: 28px; }
  .tool-panel.is-flipped .tool-visual { order: 0; }
  .tool-panels { gap: 64px; }
  .tool-visual { min-height: 0; padding: 20px; }
  .tool-copy h2 { font-size: 30px; }
  .gallery-mosaic { height: 320px; }
}
@media (max-width: 560px) {
  .tool-visual-sheets { grid-template-columns: 1fr; }
  .tool-visual-sheets .sheet-card:nth-child(n + 3) { display: none; }
  .v3-images { grid-template-columns: repeat(2, 1fr); }
}
.tool-copy .card-link, .forge-version .card-link { color: var(--accent); font-weight: 600; font-size: 15px; }
.tool-copy .card-link:hover, .forge-version .card-link:hover { color: var(--accent-strong); }
.stat[hidden] { display: none; }
@media (min-width: 761px) and (max-width: 1000px) { .join-perks { grid-template-columns: 1fr 1fr; } }

/* ===== Stats Studio public page: the process in four illustrated steps ===== */
.stats-hero .tier-chip { display: table; margin-bottom: 14px; }
.stats-promise { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); }
.process { position: relative; display: grid; gap: 112px; margin: 0; padding: 24px 0 8px; list-style: none; }
/* A thin line down the middle ties the steps together */
.process::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--border) 8%, var(--border) 92%, transparent); }
.process-step { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 72px; }
.process-step.is-flipped { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.process-step.is-flipped .process-picture { order: -1; }
.process-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: #1a0f0b; font-weight: 700; font-size: 18px; box-shadow: 0 0 0 6px var(--accent-soft); }
.process-copy h2 { font-size: 34px; margin-bottom: 12px; }
.process-copy p { color: var(--text-muted); }
.process-note { font-size: 14px; }
.showcase-card { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: radial-gradient(ellipse at 0% 0%, rgba(255, 122, 89, 0.12), transparent 55%), var(--bg-raised); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.showcase-sub { margin-top: 18px; }
.showcase-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.showcase-profile strong { display: block; }
.showcase-profile .muted { font-size: 13px; }
.showcase-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #b44bff); color: #fff; font-weight: 700; font-size: 15px; }
.showcase-pill { margin-left: auto; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.12); color: #bbf7d0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.showcase-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .showcase-tiles { grid-template-columns: 1fr 1fr; } }
.showcase-table-small { margin-top: 14px; }
.showcase-asof { margin: 56px 0 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.process-closer { margin: 8px auto 0; max-width: 46ch; text-align: center; font-family: var(--font-display); font-size: 24px; line-height: 1.35; }
/* Without the snapshot the text reads on its own */
[data-showcase]:not(.has-data) .process-picture { display: none; }
[data-showcase]:not(.has-data) .process-step { grid-template-columns: 1fr; }
[data-showcase]:not(.has-data)::before { display: none; }
/* Steps fade up as they come into view; their charts draw left to right */
.process-step { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.process-step.is-visible { opacity: 1; transform: none; }
.reveal-chart svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(0.22, 0.8, 0.3, 1) 0.25s; }
.process-step.is-visible .reveal-chart svg { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .process-step, .reveal-chart svg { transition: none; }
  .process-step { opacity: 1; transform: none; }
  .reveal-chart svg { clip-path: none; }
}
@media (max-width: 900px) {
  .process { gap: 72px; }
  .process::before { display: none; }
  .process-step, .process-step.is-flipped { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .process-step.is-flipped .process-picture { order: 0; }
  .process-copy h2 { font-size: 28px; }
  .showcase-card { padding: 16px; }
}
