:root {
  --bg: #111315;
  --card: rgba(255, 255, 255, 0.05);
  --text: rgba(255, 255, 255, 0.92);
  --muted: #cccccc;
  --gold: #ffba2c;
  --logo: #f5b301;
  --yellow: #fbac43;
  --line: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.sr-only, .skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px; z-index: 5; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17, 19, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { font-size: 28px; font-weight: 800; text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--logo); }
.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav > a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,.82); }
.primary-nav > a.is-active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.member { font-size: 14px; color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border-radius: 8px;
  border: 0; text-decoration: none; font-weight: 800; font-size: 15px; cursor: pointer;
}
.btn-yellow { background: var(--yellow); color: #111315; }
.btn-gray { background: rgba(255,255,255,.08); color: #fff; }
.btn-block { width: 100%; margin-top: 10px; }
.burger {
  display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 8px;
}
.burger span { display: block; height: 2px; margin: 6px 0; background: #fff; border-radius: 2px; }
.hero { padding: 28px 0 10px; }
h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; font-weight: 800; }
h2 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; white-space: pre-line; }
h3 { margin: 0 0 6px; font-size: 20px; }
.lede, .pre { white-space: pre-line; color: var(--text); }
.quick-links { display: flex; gap: 14px; margin: 8px 0 16px; }
.quick-links a { color: var(--gold); font-weight: 700; text-transform: lowercase; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 4px 8px 4px 16px; margin: 22px 0 14px;
}
.search input {
  flex: 1; background: transparent; border: 0; outline: none; min-height: 44px;
}
.search button { background: transparent; border: 0; color: #fff; cursor: pointer; }
.tag-scroller { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.tag {
  flex: none; text-decoration: none; background: rgba(255,255,255,.05);
  border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.9);
}
.tag.is-active { background: var(--gold); color: #111; }
.persona-grid, .gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 18px;
}
.persona {
  position: relative; display: block; height: 360px; border-radius: 12px; overflow: hidden;
  background: var(--card); text-decoration: none; color: #fff;
}
.persona-photo, .persona-photo img, .gallery-item img, .chat-side img, .preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.persona-photo { position: absolute; inset: 0; }
.persona-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  background: rgba(0,0,0,.7); color: var(--gold); border-radius: 20px;
  padding: 4px 14px 5px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.persona-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 36px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88) 45%);
}
.persona-name { display: block; font-size: 22px; font-weight: 800; }
.persona-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--muted); font-size: 13px; margin-top: 4px;
}
.persona-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s;
}
.persona:hover .persona-hover { opacity: 1; }
.persona-hover span {
  background: rgba(255,186,44,.9); color: #000; border-radius: 25px; padding: 12px 20px; font-weight: 700;
}
.empty { color: var(--muted); }
.cta-band, .reviews, .dream, .faq-block, .prose, .profile, .chat-page { padding: 42px 0; }
.cta-band { text-align: center; }
.eyebrow { color: var(--gold); letter-spacing: .04em; text-transform: lowercase; }
.reviews h3 { margin-top: 22px; }
.reviews p, .dream-copy p, .prose p, .faq-block p { color: rgba(255,255,255,.86); }
.dream-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.dream-lead { color: var(--gold); white-space: pre-line; font-size: 18px; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 10px;
  background: #fff; color: #111; text-decoration: none; font-weight: 800;
}
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; }
.footer-grid a { display: block; text-decoration: none; color: rgba(255,255,255,.75); margin: 6px 0; }
.footer-grid h2 { font-size: 16px; }
.socials { display: flex; gap: 12px; margin-top: 10px; }
.copy { text-align: center; color: rgba(255,255,255,.45); }
.age-gate {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate[hidden] { display: none; }
.age-card {
  width: min(560px, 100%); max-height: min(86vh, 760px); overflow: auto;
  background: #1b1e22; border-radius: 16px; padding: 22px;
}
.age-copy { max-height: 42vh; overflow: auto; color: rgba(255,255,255,.8); font-size: 14px; padding-right: 8px; }
.disclaimer { font-size: 12px; color: rgba(255,255,255,.6); }
.tab-bar { display: flex; gap: 8px; margin: 8px 0; }
.tab-btn {
  background: transparent; border: 0; color: rgba(255,255,255,.7);
  border-bottom: 2px solid transparent; padding: 8px 10px; cursor: pointer; font-weight: 800;
}
.tab-btn.is-active { color: var(--gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-note { color: rgba(255,255,255,.75); }
.tab-note a { color: var(--gold); }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; }
.profile-grid, .chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; }
.profile-photo { position: relative; }
.profile-photo img, .chat-side img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: 16px; height: auto;
}
.faq-block details, .prose details {
  border-bottom: 1px solid var(--line); padding: 12px 0;
}
.faq-block summary, .prose summary { cursor: pointer; font-weight: 700; }
.faq-block summary span {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%; margin-right: 8px;
  align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: var(--gold);
}
.gallery-item { text-decoration: none; }
.gallery-item img { height: 280px; width: 100%; object-fit: cover; border-radius: 12px; }
.gallery-item span { display: block; margin-top: 8px; font-weight: 800; }
.narrow { width: min(760px, 100%); }
.stack-form { display: grid; gap: 8px; margin-top: 16px; }
.stack-form input, .stack-form textarea, .stack-form select, .chat-main input {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px;
}
.notice { background: rgba(251,172,67,.15); border-radius: 10px; padding: 12px; }
.preview img { width: 240px; height: 320px; object-fit: cover; border-radius: 12px; }
.chat-main { display: flex; flex-direction: column; gap: 12px; }
.messages { display: grid; gap: 10px; }
.bubble { margin: 0; padding: 12px 14px; border-radius: 14px; max-width: 80%; }
.bubble.character { background: rgba(255,255,255,.06); }
.bubble.user { background: rgba(251,172,67,.2); margin-left: auto; }
.chat-main form { display: flex; gap: 8px; }
.chat-main input { flex: 1; }
.hint { color: rgba(255,255,255,.5); font-size: 13px; }
@media (max-width: 980px) {
  .burger { display: block; }
  .primary-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #16181b; padding: 16px; flex-direction: column; align-items: flex-start;
  }
  body.nav-open .primary-nav { display: flex; }
  .dream-layout, .profile-grid, .chat-layout, .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { order: -1; }
}
