/* =========================================================================
   Reveil — design system (premium layout). Matches reveil-final-premium.
   ========================================================================= */

:root {
  --coral: oklch(62% 0.16 25);
  --coral-deep: oklch(52% 0.18 25);
  --coral-soft: oklch(92% 0.04 25);
  --coral-whisper: oklch(96% 0.02 25);
  --gold: oklch(78% 0.1 80);
  --gold-soft: oklch(92% 0.04 80);
  --ivory: oklch(96% 0.015 80);
  --black: oklch(15% 0.01 25);
  --charcoal: oklch(25% 0.01 25);
  --dark: oklch(22% 0.012 25);
  --bg: oklch(99% 0.003 80);
  --surface: oklch(100% 0 0);
  --surface-warm: oklch(97.5% 0.008 80);
  --text: oklch(20% 0.015 25);
  --text-sub: oklch(42% 0.01 25);
  --text-muted: oklch(58% 0.006 25);
  --border: oklch(91% 0.008 80);
  --border-soft: oklch(94% 0.005 80);
  --alive: oklch(68% 0.16 155);
  --caution: oklch(72% 0.14 30);
  --shadow-sm: 0 2px 8px oklch(20% 0.02 25 / 0.04);
  --shadow-md: 0 8px 32px oklch(20% 0.02 25 / 0.06);
  --shadow-lg: 0 20px 60px oklch(20% 0.02 25 / 0.1);
  --shadow-glow: 0 4px 20px oklch(62% 0.16 25 / 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --bg-image: url('/assets/bg-light.webp');
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; text-wrap: balance; }
a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.screen { min-height: 100vh; animation: emerge 0.6s var(--ease-out-quint); }
@keyframes emerge { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--coral); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }

/* ═══════ NAV ═══════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: oklch(99% 0.003 80 / 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(91% 0.008 80 / 0.5);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; color: var(--coral); letter-spacing: -0.02em; }
.brand-mark { font-weight: 700; font-size: 1.4rem; color: var(--coral); font-family: 'Playfair Display', serif; }
.brand-text { font-weight: 300; font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-btn {
  padding: 11px 26px; background: var(--coral); color: #fff;
  border: none; border-radius: 100px; font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.02em; cursor: pointer; transition: all 0.25s var(--ease-out);
  box-shadow: var(--shadow-glow);
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px oklch(62% 0.16 25 / 0.25); }
.nav-ghost { background: transparent; color: var(--text-sub); border: 1px solid var(--border); box-shadow: none; }
.nav-ghost:hover { border-color: var(--coral); color: var(--coral); box-shadow: none; }

/* theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-sub); cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--coral); color: var(--coral); }
.theme-fab { position: fixed; bottom: 20px; left: 20px; z-index: 350; width: 46px; height: 46px; box-shadow: var(--shadow-md); background: var(--surface); }

/* ═══════ HERO ═══════ */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 140px 40px 100px; text-align: center; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(ellipse, oklch(92% 0.04 25 / 0.25) 0%, oklch(96% 0.015 80 / 0.15) 40%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 700px; position: relative; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-sub); margin-bottom: 32px; box-shadow: var(--shadow-sm);
}
.hero-pill::before { content: ''; width: 6px; height: 6px; background: var(--alive); border-radius: 50%; animation: pulse 2.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px; color: var(--charcoal); }
.hero h1 em { font-style: italic; color: var(--coral); font-weight: 400; }
.hero-sub { font-size: 1.1rem; color: var(--text-sub); max-width: 46ch; margin: 0 auto 44px; line-height: 1.7; font-weight: 300; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 42px;
  background: var(--coral); color: #fff; border: none; border-radius: 100px;
  font-weight: 500; font-size: 1rem; letter-spacing: 0.01em; cursor: pointer;
  transition: all 0.3s var(--ease-out); box-shadow: 0 8px 32px oklch(62% 0.16 25 / 0.25);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px oklch(62% 0.16 25 / 0.35); }
.hero-cta svg { transition: transform 0.3s var(--ease-out); }
.hero-cta:hover svg { transform: translateX(3px); }
.hero-metrics { display: flex; gap: 48px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.hm { text-align: center; }
.hm-num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--coral); letter-spacing: -0.02em; }
.hm-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════ FEATURES ═══════ */
.features { padding: 100px 40px; background: var(--surface-warm); border-top: 1px solid var(--border-soft); }
.features-inner { max-width: 1000px; margin: 0 auto; }
.features h2 { text-align: center; font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--charcoal); }
.features-sub { text-align: center; color: var(--text-sub); margin-bottom: 64px; font-size: 1rem; font-weight: 300; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feat { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: all 0.3s var(--ease-out); }
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--coral-whisper); border-radius: 12px; margin-bottom: 18px; color: var(--coral); }
.feat h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feat p { font-size: 0.88rem; color: var(--text-sub); line-height: 1.6; font-weight: 300; }

/* ═══════ JOURNEY ═══════ */
.journey { padding: 100px 40px; background: var(--dark); color: oklch(92% 0.01 80); }
.journey-inner { max-width: 900px; margin: 0 auto; }
.journey h2 { text-align: center; font-size: 2.2rem; color: oklch(96% 0.01 80); margin-bottom: 12px; }
.journey-sub { text-align: center; color: oklch(65% 0.01 80); margin-bottom: 56px; font-weight: 300; }
.j-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.js { padding: 28px 22px; border-radius: var(--radius-lg); background: oklch(26% 0.012 25); border: 1px solid oklch(32% 0.01 25); }
.js-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--coral); margin-bottom: 12px; opacity: 0.8; }
.js h3 { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; color: oklch(92% 0.01 80); margin-bottom: 8px; }
.js p { font-size: 0.84rem; color: oklch(62% 0.008 80); line-height: 1.55; font-weight: 300; }

/* landing footer */
.land-foot { padding: 44px 40px; background: var(--dark); border-top: 1px solid oklch(30% 0.01 25); text-align: center; color: oklch(62% 0.008 80); }
.land-foot a { color: oklch(80% 0.01 80); }
.land-foot .brand { justify-content: center; }

/* ═══════ REGISTRATION ═══════ */
.reg { display: flex; min-height: 100vh; }
.reg-left { width: 400px; background: var(--dark); padding: 52px 38px; display: flex; flex-direction: column; justify-content: center; position: sticky; top: 0; height: 100vh; }
.reg-left h2 { color: oklch(96% 0.01 80); font-size: 1.7rem; line-height: 1.25; margin-bottom: 16px; }
.reg-left p { color: oklch(68% 0.01 80); font-size: 0.9rem; line-height: 1.65; font-weight: 300; }
.reg-steps { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.rs { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: oklch(55% 0.01 80); }
.rs.active { color: oklch(96% 0.01 80); font-weight: 500; }
.rs-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(40% 0.01 80); transition: all 0.3s var(--ease-out); }
.rs.active .rs-dot { background: var(--coral); box-shadow: 0 0 0 3px oklch(62% 0.16 25 / 0.3); }
.reg-right { flex: 1; padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; max-width: 680px; }
.reg-right h3 { font-size: 1.5rem; margin-bottom: 6px; color: var(--charcoal); }
.reg-right > p { color: var(--text-sub); margin-bottom: 28px; font-size: 0.9rem; font-weight: 300; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fi { display: flex; flex-direction: column; gap: 5px; }
.fi.full { grid-column: 1 / -1; }
.fi label { font-size: 0.78rem; font-weight: 500; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.05em; }
.fi input, .fi select, .fi textarea {
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; font-weight: 300;
}
.fi input:focus, .fi select:focus, .fi textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px oklch(62% 0.16 25 / 0.08); }
.fi textarea { resize: vertical; min-height: 72px; }
.gender-picks { display: flex; gap: 10px; flex-wrap: wrap; }
.g-pick { flex: 1; min-width: 90px; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: all 0.2s var(--ease-out); background: var(--surface); }
.g-pick:hover { border-color: oklch(80% 0.06 25); }
.g-pick.sel { border-color: var(--coral); background: var(--coral-whisper); }
.g-pick input { display: none; }
.g-pick .lbl { font-size: 0.8rem; font-weight: 500; display: block; margin-top: 4px; }
.g-pick .ico { font-size: 1.2rem; }
.value-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.value-chip { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text-sub); font-size: 0.82rem; cursor: pointer; transition: all 0.15s var(--ease-out); }
.value-chip:hover { border-color: oklch(80% 0.06 25); }
.value-chip.sel { background: var(--coral); color: #fff; border-color: var(--coral); box-shadow: var(--shadow-glow); }
.weekly-badge { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: oklch(48% 0.09 80); background: var(--gold-soft); padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
.weekly-card { border-color: var(--gold); box-shadow: 0 4px 20px oklch(78% 0.1 80 / 0.18); }

/* Veiled Tables */
.table-card:hover, .table-cta:hover { border-color: var(--coral); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.table-room { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); z-index: 50; }
.table-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.table-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.trow { display: flex; flex-direction: column; max-width: 78%; }
.trow.me { align-self: flex-end; align-items: flex-end; }
.trow.them { align-self: flex-start; align-items: flex-start; }
.talias { font-size: 0.68rem; color: var(--text-muted); margin: 0 0 3px 6px; font-weight: 600; }
.tbubble { padding: 9px 14px; border-radius: 16px; font-size: 0.92rem; line-height: 1.45; word-break: break-word; }
.trow.them .tbubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.trow.me .tbubble { background: var(--coral); color: #fff; border-bottom-right-radius: 5px; }
.tsys { align-self: center; font-size: 0.74rem; color: var(--text-muted); padding: 2px 10px; }
.table-composer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.table-composer .input { flex: 1; }
.table-composer .btn { padding: 0 18px; display: flex; align-items: center; justify-content: center; }
.form-btns { display: flex; justify-content: space-between; margin-top: 28px; gap: 16px; align-items: center; }
.form-err { color: var(--coral-deep); font-size: 0.85rem; margin-top: 14px; }
.reg-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.82rem; color: var(--text-sub); }
.reg-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--coral); flex: none; }
.reg-sec { margin-top: 14px; }
.reg-sec:first-child { margin-top: 0; }
.reg-sec span { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1rem; color: var(--coral); }
.btn-p { padding: 14px 32px; background: var(--coral); color: #fff; border: none; border-radius: 100px; font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: all 0.2s var(--ease-out); box-shadow: var(--shadow-glow); }
.btn-p:hover { transform: translateY(-1px); }
.btn-p:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-s { padding: 14px 32px; background: transparent; color: var(--text-sub); border: 1.5px solid var(--border); border-radius: 100px; font-weight: 400; font-size: 0.9rem; cursor: pointer; }

/* ═══════ MATCHING ═══════ */
.match-scr { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 32px; text-align: center; background: var(--dark); }
.match-vis { width: 140px; height: 140px; position: relative; margin-bottom: 28px; }
.match-ring { position: absolute; inset: 0; border: 1px solid oklch(35% 0.01 25); border-radius: 50%; animation: orbit 8s linear infinite; }
.match-ring::after { content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; background: var(--coral); border-radius: 50%; }
@keyframes orbit { to { transform: rotate(360deg); } }
.match-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; background: var(--coral); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: corePulse 2s ease-in-out infinite; }
@keyframes corePulse { 0%,100% { box-shadow: 0 0 0 0 oklch(62% 0.16 25 / 0.3); } 50% { box-shadow: 0 0 0 20px oklch(62% 0.16 25 / 0); } }
.match-scr h2 { font-size: 1.6rem; color: oklch(94% 0.01 80); margin-bottom: 8px; }
.match-scr > p { color: oklch(58% 0.008 80); max-width: 34ch; margin-bottom: 20px; font-weight: 300; }
.found { animation: emerge 0.6s var(--ease-out-quint); }
.found-card { padding: 34px; background: oklch(26% 0.012 25); border-radius: var(--radius-xl); border: 1px solid oklch(32% 0.01 25); box-shadow: 0 20px 60px oklch(10% 0.02 25 / 0.4); max-width: 340px; margin: 0 auto; }
.found-faces { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.found-face { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.found-face.me { background: oklch(30% 0.015 25); }
.found-face.them { background: oklch(30% 0.015 80); }
.found-spark { width: 24px; height: 24px; background: var(--coral); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.found-card h3 { font-size: 1.1rem; color: oklch(94% 0.01 80); margin-bottom: 4px; }
.found-card > p { font-size: 0.8rem; color: oklch(58% 0.008 80); margin-bottom: 16px; font-weight: 300; }
.found-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.found-tag { padding: 4px 10px; background: oklch(30% 0.012 25); border: 1px solid oklch(36% 0.01 25); border-radius: 100px; font-size: 0.72rem; color: oklch(70% 0.008 80); }
.match-cancel { margin-top: 22px; background: transparent; border: 1px solid oklch(38% 0.01 25); color: oklch(70% 0.008 80); padding: 10px 24px; border-radius: 100px; cursor: pointer; }

/* ═══════ CHAT ═══════ */
.chat-scr { display: grid; grid-template-columns: 260px 1fr; height: 100vh; }
.chat-side { background: var(--dark); border-right: 1px solid oklch(28% 0.01 25); display: flex; flex-direction: column; }
.chat-side-head { padding: 22px 18px 16px; border-bottom: 1px solid oklch(28% 0.01 25); display:flex; align-items:flex-start; justify-content:space-between; }
.chat-side-head h3 { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; color: oklch(92% 0.01 80); }
.chat-side-head span { font-size: 0.72rem; color: oklch(50% 0.008 80); }
.chat-side-back { background:none; border:none; color: oklch(70% 0.01 80); cursor:pointer; font-size:1.1rem; }
.chat-items { flex: 1; overflow-y: auto; padding: 10px; }
.ci { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: var(--radius-md); cursor: pointer; transition: background 0.15s; margin-bottom: 3px; border: 1px solid transparent; width: 100%; text-align: left; background: transparent; }
.ci:hover { background: oklch(26% 0.012 25); }
.ci.on { background: oklch(28% 0.015 25); border: 1px solid oklch(34% 0.01 25); }
.ci-ava { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; background: oklch(30% 0.012 25); }
.ci-body { flex: 1; min-width: 0; }
.ci-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.82rem; font-weight: 500; color: oklch(88% 0.01 80); }
.ci-preview { font-size: 0.74rem; color: oklch(50% 0.008 80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; font-weight: 300; }
.ci-time { font-size: 0.66rem; color: oklch(45% 0.006 80); }
.timer-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; background: oklch(30% 0.02 25); border-radius: 100px; font-size: 0.64rem; color: var(--coral); font-weight: 600; }
.chat-empty { padding: 24px; color: oklch(55% 0.008 80); font-size: 0.82rem; text-align: center; }
.chat-body { display: flex; flex-direction: column; background: var(--bg); min-width: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.ch-left { display: flex; align-items: center; gap: 11px; }
.ch-back { display:none; background:none; border:none; cursor:pointer; font-size:1.2rem; color: var(--text-sub); }
.ch-ava { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; background: var(--coral-whisper); }
.ch-info h4 { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; }
.ch-info span { font-size: 0.72rem; color: var(--alive); }
.ch-actions { display:flex; align-items:center; gap:10px; }
.ch-timer { display: flex; align-items: center; gap: 7px; padding: 7px 14px; background: var(--surface-warm); border-radius: 100px; font-size: 0.78rem; color: var(--text-sub); border: 1px solid var(--border); white-space: nowrap; }
.ch-timer strong { color: var(--text); font-weight: 600; }
.ch-leave { background:none; border:none; color: var(--text-muted); cursor:pointer; font-size:0.8rem; }
.pact-btn { padding: 7px 16px; background: var(--coral); color:#fff; border:none; border-radius:100px; font-size:0.78rem; font-weight:600; cursor:pointer; box-shadow: var(--shadow-glow); }
.meter-bar { height: 3px; background: var(--border); position: relative; }
.meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--coral), var(--gold)); border-radius: 2px; transition: width 1s var(--ease-out); }
.meter-label { position: absolute; right: 14px; top: 8px; font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }
.msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 9px; max-width: 70%; animation: msgSlide 0.35s var(--ease-out); }
@keyframes msgSlide { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg.out { align-self: flex-end; flex-direction: row-reverse; }
.msg-ava { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.msg-bubble { padding: 12px 16px; border-radius: 18px; font-size: 0.86rem; line-height: 1.55; font-weight: 300; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.in .msg-ava { background: var(--coral-whisper); }
.msg.in .msg-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.out .msg-ava { background: oklch(30% 0.012 25); }
.msg.out .msg-bubble { background: var(--dark); color: oklch(92% 0.01 80); border-bottom-right-radius: 4px; }
.msg.sending .msg-bubble { opacity: 0.6; }
.msg-time { font-size: 0.64rem; color: var(--text-muted); margin-top: 3px; }
.msg.out .msg-time { text-align: left; }
.sys-msg { align-self: center; text-align: center; font-size: 0.74rem; color: var(--text-muted); padding: 7px 16px; background: var(--surface-warm); border-radius: 100px; border: 1px solid var(--border); font-weight: 400; }
.truth-msg { align-self: center; padding: 16px 22px; background: var(--coral-whisper); border: 1px solid oklch(88% 0.04 25); border-radius: var(--radius-md); text-align: center; max-width: 82%; }
.truth-label { font-size: 0.68rem; font-weight: 600; color: var(--coral); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.truth-q { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--text); font-style: italic; }
.truth-answer { display:flex; gap:8px; margin-top:12px; }
.truth-answer input { flex:1; padding:10px 14px; border:1.5px solid var(--border); border-radius: var(--radius-sm); font-size:0.85rem; background: var(--surface); outline:none; }
.truth-answer button { padding:10px 16px; background: var(--coral); color:#fff; border:none; border-radius: var(--radius-sm); font-weight:500; cursor:pointer; font-size:0.82rem; }
.typing-row { align-self:flex-start; display:inline-flex; gap:4px; padding:12px 16px; background: var(--surface); border:1px solid var(--border); border-radius:18px; }
.typing-row i { width:6px; height:6px; border-radius:50%; background: var(--text-muted); animation: pulse 1.2s infinite; }
.typing-row i:nth-child(2){ animation-delay:.15s } .typing-row i:nth-child(3){ animation-delay:.3s }
.chat-input-area { padding: 14px 22px; background: var(--surface); border-top: 1px solid var(--border-soft); position: relative; }
.more-pop { position: absolute; bottom: 68px; left: 22px; width: min(340px, calc(100% - 44px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 12px; animation: emerge 0.2s var(--ease-out); z-index: 20; }
.more-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; background: transparent; border-radius: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text); }
.more-item:hover { background: var(--coral-whisper); }
.more-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 10px 4px 6px; }
.more-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-chip { padding: 6px 12px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); cursor: pointer; font-size: 0.76rem; color: var(--text-sub); transition: all 0.15s var(--ease-out); }
.flag-chip:hover { border-color: var(--alive); color: var(--alive); }
.chat-input-wrap { display: flex; align-items: center; gap: 10px; padding: 4px 5px 4px 18px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 100px; transition: border-color 0.2s; }
.chat-input-wrap:focus-within { border-color: var(--coral); }
.chat-inp { flex: 1; border: none; outline: none; font-size: 0.86rem; background: transparent; color: var(--text); padding: 10px 0; font-weight: 300; }
.chat-send { width: 36px; height: 36px; background: var(--coral); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s var(--ease-out); box-shadow: var(--shadow-glow); flex:none; }
.chat-send:hover { transform: scale(1.06); }
.chat-attach { width: 36px; height: 36px; flex: none; border: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease-out); }
.chat-attach:hover { color: var(--coral); background: var(--coral-whisper); }
.chat-attach.recording { color: #fff; background: var(--coral); animation: corePulse 1.4s ease-in-out infinite; }
.msg-audio { max-width: 230px; height: 40px; }
.msg-img { max-width: 240px; border-radius: 14px; border: 1px solid var(--border); display: block; animation: unblur 1.3s var(--ease-out) both; }
@keyframes unblur { from { filter: blur(18px); opacity: 0.35; } to { filter: blur(0); opacity: 1; } }
.song-msg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--coral-whisper); border: 1px solid oklch(88% 0.04 25); color: var(--coral-deep); font-size: 0.86rem; font-weight: 500; text-decoration: none; max-width: 240px; }
.song-msg:hover { text-decoration: underline; }
.song-ico { font-size: 1rem; }

/* candle-lit ambience — a soft warm glow rising in the dark-theme chat */
[data-theme='dark'] .chat-body { position: relative; }
[data-theme='dark'] .chat-body::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 46% at 50% 100%, oklch(62% 0.16 25 / 0.07), transparent 70%);
  animation: candle 6s ease-in-out infinite alternate;
}
[data-theme='dark'] .chat-body > * { position: relative; z-index: 1; }
@keyframes candle { from { opacity: 0.45; } to { opacity: 1; } }

/* ═══════ Share widget (unique bloom) ═══════ */
.share-wrap { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; z-index: 360; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.share-fab { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--coral); color: #fff; box-shadow: var(--shadow-glow); cursor: pointer; display: grid; place-items: center; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.share-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 30px oklch(62% 0.16 25 / 0.35); }
.share-fab.on { transform: rotate(90deg); }
.share-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px; width: 268px; animation: emerge 0.25s var(--ease-out); }
.share-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 12px; color: var(--charcoal); }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.share-net { display: flex; flex-direction: column; align-items: center; gap: 6px; border: none; background: transparent; cursor: pointer; color: var(--text-sub); animation: emerge 0.35s var(--ease-out) both; }
.share-net:nth-child(2){animation-delay:.04s}.share-net:nth-child(3){animation-delay:.07s}.share-net:nth-child(4){animation-delay:.1s}.share-net:nth-child(5){animation-delay:.13s}.share-net:nth-child(6){animation-delay:.16s}.share-net:nth-child(7){animation-delay:.19s}.share-net:nth-child(8){animation-delay:.22s}
.share-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--net); transition: transform 0.2s var(--ease-out); }
.share-net:hover .share-ico { transform: scale(1.08); }
.share-lbl { font-size: 0.66rem; }
.share-native { margin-top: 14px; width: 100%; padding: 10px; border-radius: 100px; border: 1px solid var(--border); background: transparent; color: var(--text-sub); cursor: pointer; }
.share-native:hover { border-color: var(--coral); color: var(--coral); }

/* footer official socials */
.foot-socials { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.foot-social { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: oklch(82% 0.01 80); }
.foot-soon { opacity: 0.6; }
.soon-tag { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid oklch(45% 0.01 80); border-radius: 100px; padding: 1px 6px; margin-left: 5px; }

/* ═══════ Mobile optimisation ═══════ */
@supports (height: 100dvh) {
  .chat-scr, .reg-left { height: 100dvh; }
  .landing, .reg, .match-scr, .screen-dark, .screen { min-height: 100dvh; }
}
@media (max-width: 768px) {
  .fi input, .fi select, .fi textarea, .input, .chat-inp { font-size: 16px; } /* stop iOS zoom-on-focus */
  .share-panel { width: min(80vw, 300px); }
}
.chat-input-area { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.theme-fab { bottom: calc(20px + env(safe-area-inset-bottom)); }
.ch-chats { display: none; background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-sub); }
@media (max-width: 768px) { .ch-chats { display: inline-flex; } }
.chat-footer-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; font-size: 0.68rem; color: var(--text-muted); font-weight: 300; }
.chat-footer-note::before { content: ''; width: 5px; height: 5px; background: var(--alive); border-radius: 50%; }

/* ═══════ Shared: buttons / cards / inputs used by gate, verify, profile ═══════ */
.container { width: min(100% - 2.5rem, 1000px); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 560px); margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 13px 28px; border: 1px solid transparent; border-radius: 100px; font-weight: 500; cursor: pointer; transition: all 0.25s var(--ease-out); background: var(--coral); color: #fff; box-shadow: var(--shadow-glow); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 9px 20px; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--text-sub); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: oklch(72% 0.02 80 / 0.4); box-shadow: none; }
.btn-outline-light:hover { border-color: var(--ivory); }
.field label { display:block; font-size: 0.78rem; font-weight:500; text-transform:uppercase; letter-spacing:0.05em; color: var(--text-sub); margin-bottom:6px; }
.input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size:0.9rem; outline:none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px oklch(62% 0.16 25 / 0.08); }
.hint { font-size: 0.8rem; color: var(--text-muted); }
.stack > * + * { margin-top: 16px; }
.section-pad { padding: 120px 40px 60px; }

/* ═══════ Age gate + immersive dark ═══════ */
.screen-dark { background: radial-gradient(120% 120% at 50% 0%, var(--charcoal), var(--black)); color: var(--ivory); min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px; }
.gate-panel { width: min(100%, 560px); background: oklch(20% 0.012 25); border: 1px solid oklch(42% 0.02 25); border-radius: var(--radius-xl); padding: clamp(28px,5vw,44px) clamp(22px,4vw,36px); box-shadow: 0 24px 70px oklch(0% 0 0 / 0.45); text-align: center; }
.gate-seal { width: 66px; height: 66px; margin: 0 auto 14px; border: 2px solid var(--coral); border-radius: 50%; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: var(--coral); }
.gate-kicker { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.72rem; font-weight: 600; color: var(--coral); margin-bottom: 6px; }
.gate-panel h1 { color: var(--ivory); font-size: 1.9rem; margin-bottom: 4px; }
.gate-notice { text-align: left; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: oklch(25% 0.01 25); border-left: 3px solid var(--coral); color: oklch(84% 0.02 80 / 0.88); font-size: 0.9rem; line-height: 1.55; }
.gate-notice ul { list-style: disc; margin: 8px 0 8px 18px; }
.gate-fine { font-size: 0.75rem; color: oklch(74% 0.02 80 / 0.6); }
.gate-restart { background: none; border: none; color: oklch(74% 0.02 80 / 0.6); text-decoration: underline; cursor: pointer; }

/* ═══════ Toast ═══════ */
#toast-root { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 300; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: var(--radius-md); background: var(--dark); color: var(--ivory); box-shadow: var(--shadow-lg); font-size: 0.9rem; animation: emerge 0.3s var(--ease-out); }
.toast.warn { background: var(--coral-deep); }
.toast.good { background: oklch(30% 0.06 155); }

/* ═══════ Boot splash ═══════ */
.boot-splash { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.boot-mark { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 3rem; color: var(--coral); }
.boot-veil { display:inline-block; width:46px; height:3px; margin-left:4px; border-radius:100px; background: linear-gradient(90deg, var(--gold), transparent); vertical-align: middle; animation: pulse 1.8s var(--ease-out) infinite; }
.boot-tag { color: var(--text-muted); font-size: 0.8rem; }

/* honeypot + turnstile */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.turnstile-field { margin: 4px 0; min-height: 66px; }

/* legal pages */
.legal { max-width: 640px; margin: 0 auto; padding: 120px 24px 60px; }
.legal h1 { font-size: 2rem; }
.legal h2 { margin-top: 30px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--text-sub); }
.legal ul { margin: 8px 0 8px 20px; }
.legal-draft { background: var(--coral-whisper); border: 1px solid var(--coral-soft); border-left: 3px solid var(--coral); border-radius: 12px; padding: 14px 16px; color: var(--text-sub); font-size: 0.9rem; margin: 16px 0 8px; }
.meter-label-legacy { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════ Pact + Reveil overlays + utilities ═══════ */
.overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: oklch(15% 0.01 25 / 0.72); backdrop-filter: blur(6px); animation: emerge 0.35s var(--ease-out); }
.pact-modal { width: min(100%, 440px); background: var(--surface); border-radius: var(--radius-xl); padding: 32px; text-align: center; box-shadow: var(--shadow-lg); }
.pact-modal h2 { font-size: 1.6rem; color: var(--charcoal); }
.pact-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.reveil-scene { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; text-align: center; color: var(--ivory); background: radial-gradient(120% 120% at 50% 30%, var(--charcoal), var(--black)); }
.reveil-veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ivory), var(--gold-soft)); opacity: 0.9; transform-origin: top center; animation: veil-lift 2.4s var(--ease-out) forwards; }
@keyframes veil-lift { 0% { transform: translateY(0); opacity: 0.92; } 100% { transform: translateY(-110%); opacity: 0; } }
.reveil-copy { position: relative; z-index: 1; animation: emerge 1.6s var(--ease-out) 1s both; }
.reveil-copy h1 { color: var(--ivory); font-style: italic; font-size: 2.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.72rem; color: var(--gold); font-weight: 600; }
.serif { font-family: 'Playfair Display', serif; }
.text-sub { color: var(--text-sub); }
.text-muted { color: var(--text-muted); }

/* ═══════ Dark theme ═══════ */
[data-theme='dark'] {
  --coral: oklch(67% 0.16 25);
  --coral-deep: oklch(75% 0.15 25);
  --coral-whisper: oklch(26% 0.03 25);
  --gold: oklch(82% 0.1 80);
  --bg: oklch(16% 0.012 25);
  --surface: oklch(21% 0.012 25);
  --surface-warm: oklch(19% 0.012 25);
  --text: oklch(92% 0.008 80);
  --text-sub: oklch(76% 0.008 80);
  --text-muted: oklch(60% 0.006 80);
  --border: oklch(32% 0.012 25);
  --border-soft: oklch(28% 0.01 25);
  --charcoal: oklch(94% 0.01 80);
  --bg-image: url('/assets/bg-dark.webp');
}
[data-theme='dark'] .nav { background: oklch(16% 0.012 25 / 0.9); border-bottom-color: oklch(30% 0.012 25); }
[data-theme='dark'] .theme-toggle { background: var(--surface); }

/* ═══════ Responsive ═══════ */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 120px 20px 80px; }
  .features, .journey { padding: 64px 20px; }
  .reg-left { display: none; }
  .reg-right { padding: 90px 20px 40px; }
  .fg { grid-template-columns: 1fr; }
  .hero-metrics { gap: 28px; }
  .feat-grid { grid-template-columns: 1fr; }
  .chat-scr { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .chat-side.show { display: flex; position: fixed; inset: 0; z-index: 50; width: 100%; }
  .ch-back { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ═══════ Official icon + dynamic veiled-lady background ═══════ */
.brand-logo { height: 32px; width: auto; display: block; border-radius: 8px; }

@keyframes heroDrift { from { transform: scale(1.05); } to { transform: scale(1.14) translate(-1.5%, -1%); } }

/* Landing hero: the veiled lady emerges from the right, scrimmed into the bg, slowly drifting. */
.hero { overflow: hidden; }
.hero::before { z-index: 1; }
.hero-inner { z-index: 2; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--bg), transparent 62%), linear-gradient(0deg, var(--bg), transparent 40%), var(--bg-image);
  background-repeat: no-repeat; background-size: cover, cover, cover; background-position: center, center, right center;
  animation: heroDrift 42s ease-in-out infinite alternate;
}

/* Dark immersive screens: same figure as a moody, low-opacity backdrop. */
.match-scr, .screen-dark { position: relative; overflow: hidden; }
.match-scr::before, .screen-dark::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(0deg, var(--dark), transparent 62%), url('/assets/bg-dark.webp');
  background-repeat: no-repeat; background-size: cover, cover; background-position: center, right center;
  opacity: 0.4; animation: heroDrift 52s ease-in-out infinite alternate;
}
.match-scr > *, .screen-dark > * { position: relative; z-index: 1; }

.reg-left { overflow: hidden; }
.reg-left::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--dark), transparent 95%), url('/assets/bg-dark.webp');
  background-repeat: no-repeat; background-size: cover, cover; background-position: center, right center;
  opacity: 0.28;
}
.reg-left > * { position: relative; z-index: 1; }

/* ═══════ AVATAR PICKER (onboarding · step 04) ═══════ */
.avatar-picker { display: flex; flex-direction: column; gap: 12px; }
.ap-tabs {
  display: inline-flex; gap: 4px; align-self: flex-start;
  background: var(--surface-warm); border: 1px solid var(--border); border-radius: 100px; padding: 4px;
}
.ap-tab {
  padding: 7px 16px; border: none; background: transparent; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-sub); cursor: pointer;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.ap-tab.on { background: var(--coral); color: #fff; box-shadow: var(--shadow-glow); }
.ap-tab:hover:not(.on) { color: var(--coral); }
.ap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px;
  max-height: 380px; overflow-y: auto; padding: 4px; scrollbar-width: thin;
}
.ap-look {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  padding: 6px 6px 8px; transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.ap-look:hover { transform: translateY(-2px); border-color: oklch(80% 0.06 25); box-shadow: var(--shadow-sm); }
.ap-look.sel { border-color: var(--coral); box-shadow: 0 0 0 3px oklch(62% 0.16 25 / 0.14); }
.ap-look::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, oklch(100% 0 0 / 0.4) 50%, transparent 60%);
  transform: translateX(-140%); transition: transform 0.75s var(--ease-out);
}
.ap-look:hover::before { transform: translateX(140%); }
.ap-img {
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  background-size: cover; background-position: center 18%; background-color: var(--coral-whisper);
}
.ap-name { display: block; margin-top: 6px; font-size: 0.68rem; font-weight: 600; text-align: center; color: var(--text-sub); line-height: 1.2; }
.ap-check {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 0.64rem;
  opacity: 0; transform: scale(0.4); box-shadow: var(--shadow-sm);
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out-quint);
}
.ap-look.sel .ap-check { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .ap-look, .ap-look::before, .ap-check { transition: none; } }
@media (max-width: 560px) { .ap-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); max-height: 320px; } }

/* ═══════ CINEMATIC VEIL ONBOARDING (route: #/onboarding) ═══════ */
.vx-root { position: fixed; inset: 0; z-index: 300; overflow: hidden; background: radial-gradient(150% 120% at 50% 30%, var(--ivory), var(--bg)); }
.vx-skip { position: fixed; top: 18px; right: 18px; z-index: 330; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 80%, transparent); color: var(--text-sub); font-size: 0.8rem; cursor: pointer; backdrop-filter: blur(8px); }
.vx-skip:hover { border-color: var(--coral); color: var(--coral); }
.vx-glit { position: fixed; z-index: 340; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, #fff 0%, oklch(92% 0.11 85 / 0.95) 38%, oklch(80% 0.14 60 / 0.5) 62%, transparent 74%); box-shadow: 0 0 7px 1px oklch(90% 0.11 82 / 0.7); }

/* intro curtain */
.vx-curtain { position: absolute; inset: 0; display: grid; place-items: center; }
.vx-drape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 1;
  -webkit-mask-image: radial-gradient(155% 135% at 50% 24%, #000 56%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(155% 135% at 50% 24%, #000 56%, rgba(0,0,0,0) 100%);
  transform-origin: 50% 0; animation: vxDrapeSway 9s ease-in-out infinite; }
.vx-curtain.lift .vx-drape { animation: vxDrapeLift 1.5s var(--ease-out-quint) forwards; }
.vx-aura { position: absolute; z-index: 2; width: min(80vw, 660px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, oklch(90% 0.07 62 / 0.5), oklch(72% 0.15 25 / 0.14) 42%, transparent 70%); mix-blend-mode: screen; filter: blur(22px); animation: vxAura 6.5s ease-in-out infinite; }
.vx-content { position: relative; z-index: 5; text-align: center; padding: 24px; max-width: 560px; }
.vx-curtain.lift .vx-content { animation: vxFade 0.7s var(--ease-out) forwards; }
.vx-mark { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 11vw, 5.5rem); font-weight: 700; color: var(--coral); line-height: 1; letter-spacing: -0.03em; }
.vx-mark em { font-style: italic; font-weight: 400; }
.vx-tag { margin-top: 14px; font-size: clamp(1rem, 3vw, 1.2rem); color: var(--text-sub); font-weight: 300; }
.vx-cta { margin-top: 36px; padding: 16px 34px; border: none; border-radius: 100px; background: var(--coral); color: #fff; font-size: 1rem; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-glow); transition: transform 0.25s var(--ease-out); }
.vx-cta:hover { transform: translateY(-2px); }
.vx-hint { margin-top: 14px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
@keyframes vxDrapeSway { 0%,100% { transform: scale(1.03) translateY(0); } 50% { transform: scale(1.05) translateY(-0.9%); } }
@keyframes vxDrapeLift { 0% { transform: scale(1.03) translateY(0); opacity: 1; } 100% { transform: scale(1.2) translateY(-112%); opacity: 0; filter: blur(5px); } }
@keyframes vxAura { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes vxFade { to { opacity: 0; transform: translateY(-14px); } }

/* gender presentation */
.vx-select { position: absolute; inset: 0; display: flex; flex-direction: column; }
.vx-head { position: absolute; top: clamp(52px, 8vh, 92px); left: 0; right: 0; text-align: center; z-index: 20; pointer-events: none; padding: 0 20px; }
.vx-head h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); color: var(--charcoal); }
.vx-head p { margin-top: 8px; color: var(--text-sub); font-weight: 300; font-size: 0.95rem; }
.vx-panels { flex: 1; display: flex; }
.vx-panel { position: relative; flex: 1 1 50%; overflow: hidden; cursor: pointer; display: grid; place-items: center; transition: flex-grow 1s var(--ease-out-quint), filter 0.6s var(--ease-out); }
.vx-panel.fem { background: radial-gradient(120% 90% at 50% 24%, var(--coral-soft), var(--bg)); }
.vx-panel.masc { background: radial-gradient(120% 90% at 50% 24%, var(--gold-soft), var(--bg)); }
.vx-panel:focus-visible { outline: none; box-shadow: inset 0 0 0 4px color-mix(in oklab, var(--coral) 85%, transparent); }
.vx-portrait { position: relative; width: min(74%, 320px); aspect-ratio: 3/4; border-radius: 20px; background-size: cover; background-position: 50% 20%; box-shadow: var(--shadow-md);
  filter: saturate(0.72) brightness(0.9); transform: translateY(8px) scale(0.97); transition: filter 0.7s var(--ease-out), transform 0.9s var(--ease-out-quint), box-shadow 0.7s var(--ease-out);
  -webkit-mask-image: radial-gradient(130% 130% at 50% 30%, #000 66%, transparent 100%); mask-image: radial-gradient(130% 130% at 50% 30%, #000 66%, transparent 100%); }
.vx-veil { position: absolute; left: 50%; top: -6%; width: 120%; aspect-ratio: 2/3; transform: translateX(-50%); pointer-events: none; mix-blend-mode: screen; opacity: 0.96; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 78% 84% at 50% 40%, #000 52%, rgba(0,0,0,0) 96%); mask-image: radial-gradient(ellipse 78% 84% at 50% 40%, #000 52%, rgba(0,0,0,0) 96%);
  transition: transform 1.05s var(--ease-out-quint), opacity 0.9s var(--ease-out), filter 1.05s var(--ease-out); }
.vx-label { position: absolute; bottom: 12%; z-index: 6; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.vx-label .g { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--charcoal); }
.vx-label .pick { margin-top: 6px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.vx-divider { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 15; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--coral); font-family: 'Playfair Display', serif; font-style: italic; box-shadow: var(--shadow-md); }
@media (hover: hover) {
  .vx-panel:hover .vx-portrait { filter: saturate(1.08) brightness(1.07); transform: scale(1.03); box-shadow: var(--shadow-lg); }
  .vx-panel:hover .vx-label { opacity: 1; transform: none; }
  .vx-panel:hover .vx-veil { transform: translateX(-50%) translateY(-72%) scale(1.42) rotate(7deg); opacity: 0; filter: blur(11px); }
  .vx-panels:hover .vx-panel:not(:hover) { filter: brightness(0.86) saturate(0.68); }
}
.vx-panel.armed .vx-label { opacity: 1; transform: none; }
.vx-panel.armed .vx-portrait { filter: saturate(1.08) brightness(1.07); transform: scale(1.03); }
.vx-panel.armed .vx-veil { transform: translateX(-50%) translateY(-72%) scale(1.42) rotate(7deg); opacity: 0; filter: blur(11px); }
.vx-all { position: absolute; bottom: clamp(16px, 3vh, 28px); left: 50%; transform: translateX(-50%); z-index: 20; padding: 10px 20px; border-radius: 100px; background: color-mix(in oklab, var(--surface) 84%, transparent); border: 1px solid var(--border); color: var(--text-sub); font-size: 0.82rem; cursor: pointer; backdrop-filter: blur(8px); }
.vx-all:hover { border-color: var(--coral); color: var(--coral); }
@media (max-width: 760px) { .vx-panels { flex-direction: column; } .vx-divider { display: none; } .vx-portrait { width: auto; height: 62%; } .vx-label { opacity: 1; transform: none; } }

/* avatar gallery */
.vx-gallery { position: absolute; inset: 0; overflow-y: auto; padding: clamp(64px, 9vh, 92px) clamp(16px, 4vw, 40px) 104px; }
.vx-gallery h2 { text-align: center; font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--charcoal); }
.vx-gallery .sub { text-align: center; color: var(--text-sub); font-weight: 300; margin-top: 6px; margin-bottom: 24px; }
.vx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.vx-look { position: relative; overflow: hidden; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 8px 8px 10px; cursor: pointer; transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s; }
.vx-look:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: oklch(80% 0.06 25); }
.vx-look.sel { border-color: var(--coral); box-shadow: 0 0 0 3px oklch(62% 0.16 25 / 0.14); }
.vx-look::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 40%, oklch(100% 0 0 / 0.4) 50%, transparent 60%); transform: translateX(-140%); transition: transform 0.75s var(--ease-out); }
.vx-look:hover::before { transform: translateX(140%); }
.vx-thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center 18%; background-color: var(--coral-whisper); }
.vx-nm { display: block; margin-top: 6px; font-size: 0.72rem; font-weight: 600; text-align: center; color: var(--text-sub); }
.vx-ck { position: absolute; top: 10px; left: 10px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 0.64rem; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.25s var(--ease-out-quint); }
.vx-look.sel .vx-ck { opacity: 1; transform: scale(1); }
.vx-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 330; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); background: color-mix(in oklab, var(--surface) 92%, transparent); border-top: 1px solid var(--border-soft); backdrop-filter: blur(12px); }
.vx-bar .chosen { font-size: 0.86rem; color: var(--text-sub); flex: 1; text-align: center; }
.vx-bar .chosen b { color: var(--charcoal); }
.vx-back { padding: 12px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: transparent; color: var(--text-sub); cursor: pointer; }
.vx-back:hover { border-color: var(--coral); color: var(--coral); }
.vx-continue { padding: 13px 26px; border-radius: 100px; border: none; background: var(--coral); color: #fff; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-glow); }
.vx-continue:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .vx-drape, .vx-aura, .vx-veil, .vx-look::before { animation: none !important; } }
