/* Femme Portals preview. Dark velvet + ivory + champagne gold, one blush accent. */
:root {
  --bg: #0a0809;
  --bg-2: #141013;
  --surface: #1a1318;
  --line: rgba(227, 155, 198, 0.2);
  --ink: #f8f1f5;
  --ink-2: #bba8b4;
  --gold: #e39bc6;
  --gold-hi: #f4c9e0;
  --gold-ink: #2a0f1f;
  --berry: #a8457f;
  --berry-hi: #c25b97;
  --blush: #ff8f8f;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tint: none;
  --bw: none;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fbf4f7;
  --bg-2: #f3e6ed;
  --surface: #fffafd;
  --line: rgba(156, 59, 115, 0.2);
  --ink: #1b0f17;
  --ink-2: #6a5562;
  --gold: #9c3b73;
  --gold-hi: #c25b97;
  --gold-ink: #ffffff;
  --blush: #c2413f;
  --shadow: 0 18px 40px -22px rgba(90, 20, 60, 0.3);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
i[class^="ph"] { font-size: 1.15em; line-height: 1; }

/* soft grain, fixed and non-interactive */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 0 34px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink); font-weight: 600; letter-spacing: .02em; font-size: 16px; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(227,155,198, .55), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .16s var(--ease), box-shadow .2s var(--ease);
}
.btn-gold:active { transform: scale(.97); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); font-weight: 500; white-space: nowrap; transition: transform .16s var(--ease);
}
.btn-ghost:active { transform: scale(.97); }
@media (hover: hover) {
  .btn-gold:hover { box-shadow: 0 14px 34px -10px rgba(227,155,198, .7), inset 0 1px 0 rgba(255,255,255,.5); }
  .btn-ghost:hover { border-color: var(--gold); }
}

/* ---------- INTRO ---------- */
.intro {
  position: fixed; inset: 0; z-index: 10; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 110%, #4a1236 0%, #120a10 45%, #070607 100%);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.intro.leaving { opacity: 0; transform: scale(1.12); pointer-events: none; }
.intro-sky {
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 62%, rgba(227,155,198,.18), transparent 70%);
  opacity: 0; animation: fade 2.4s var(--ease) .2s forwards;
}
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 13svh;
  fill: #0a0809; opacity: 0; animation: rise 1.6s var(--ease) .1s forwards;
  filter: drop-shadow(0 -8px 24px rgba(227,155,198,.12));
}
.skyline .eye { fill: none; stroke: #0a0809; stroke-width: 3; }

.door-wrap { position: absolute; left: 50%; top: 8svh; transform: translateX(-50%); width: min(40vw, 24svh, 190px); aspect-ratio: 1 / 1.9; perspective: 900px; }
.door-light {
  position: absolute; inset: 0; border-radius: 999px 999px 4px 4px;
  background: radial-gradient(70% 55% at 50% 60%, #fff0f7 0%, #f6c6df 35%, #c25b97 70%, #5a1a40 100%);
  opacity: 0; animation: glow 1.8s var(--ease) 1.1s forwards;
}
.door { position: absolute; inset: 0; border-radius: 999px 999px 4px 4px; overflow: hidden; border: 1px solid rgba(227,155,198,.55); box-shadow: 0 0 0 6px rgba(227,155,198,.06); }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(180deg, #24161f, #140c11);
  border: 1px solid rgba(227,155,198,.35);
  transition: transform 1.9s var(--ease);
}
.leaf span { position: absolute; top: 52%; width: 6px; height: 22px; border-radius: 3px; background: var(--gold); opacity: .8; }
.leaf.left { left: 0; transform-origin: left center; border-radius: 999px 0 0 0 / 999px 0 0 0; }
.leaf.left span { right: 10px; }
.leaf.right { right: 0; transform-origin: right center; border-radius: 0 999px 0 0 / 0 999px 0 0; }
.leaf.right span { left: 10px; }
.intro.open .leaf.left { transform: rotateY(-78deg); }
.intro.open .leaf.right { transform: rotateY(78deg); }
.floor-light {
  position: absolute; left: 50%; top: 100%; width: 260%; height: 60%; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgba(246,198,223,.32), transparent 70%);
  opacity: 0; animation: fade 2s var(--ease) 1.4s forwards;
}
.intro-copy {
  position: relative; align-self: end; text-align: center;
  padding: 0 24px calc(17svh + env(safe-area-inset-bottom)); max-width: 520px;
}
.intro-copy > * { opacity: 0; transform: translateY(12px); animation: up 1s var(--ease) forwards; }
.intro-copy .brand { animation-delay: 1.9s; font-family: var(--serif); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.intro-copy h1 { animation-delay: 2.15s; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 8.4vw, 46px); line-height: 1.12; text-wrap: balance; margin-bottom: 26px; color: #f8f1f5; }
.intro-copy h1 em { color: var(--gold-hi); font-weight: 400; display: inline-block; padding-bottom: 4px; }
.intro-copy .btn-gold { animation-delay: 2.5s; }

@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes glow { to { opacity: 1; } }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- APP SHELL ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100svh; position: relative; }
.screen { animation: enter .5s var(--ease) backwards; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- TONIGHT ---------- */
.tonight {
  min-height: 100svh; display: flex; flex-direction: column; gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom));
}
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.greet { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; text-wrap: balance; }
.meta { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.t-head-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2); transition: transform .16s var(--ease); }
.icon-btn:active { transform: scale(.94); }
.streak { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }

.mini-h { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.just-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.just-row::-webkit-scrollbar { display: none; }
.just-item {
  flex: 0 0 auto; width: 236px; scroll-snap-align: start; display: flex; gap: 10px; align-items: center;
  padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left;
}
.just-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; filter: var(--tint); flex-shrink: 0; background: var(--bg-2); }
.just-item b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.just-item > span { min-width: 0; }
.just-item small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.just-item .tag { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--gold-ink); background: var(--gold); border-radius: 4px; padding: 1px 5px; margin-right: 4px; vertical-align: 1px; }
.just-item.fresh { animation: pop .6s var(--ease) both; border-color: var(--gold); }
@keyframes pop { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.hero-card {
  position: relative; flex: 1 1 auto; min-height: 330px; border-radius: var(--r); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .2s var(--ease);
}
.hero-card:active { transform: scale(.985); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--tint); transition: transform 1.2s var(--ease); }
@media (hover: hover) { .hero-card:hover .hero-photo img { transform: scale(1.03); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,9,0) 20%, rgba(10,8,9,.55) 50%, rgba(10,8,9,.96) 100%); }
.hero-body { position: relative; padding: 20px 18px 18px; color: #f8f1f5; }
.hero-k { font-size: 12px; font-weight: 600; color: var(--gold-hi); margin-bottom: 4px; }
[data-theme="light"] .hero-k { color: #f4c9e0; }
.hero-name { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; }
.hero-why { color: #e2d4dc; font-size: 14px; margin: 8px 0 12px; max-width: 40ch; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.facts li { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(248,241,245,.1); border: 1px solid rgba(248,241,245,.14); font-size: 12.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-go { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font-weight: 600; font-size: 14px; }
[data-theme="light"] .hero-go { color: #f4c9e0; }
.hero-go i { transition: transform .2s var(--ease); }
@media (hover: hover) { .hero-card:hover .hero-go i { transform: translateX(4px); } }

.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); min-height: 112px;
}
.tile-top { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 12px; font-weight: 600; }
.tile-title { font-family: var(--serif); font-size: 19px; line-height: 1.15; font-weight: 500; }
.tile-sub { color: var(--ink-2); font-size: 12.5px; margin-top: auto; }
.challenge { transition: transform .16s var(--ease), border-color .2s; }
.challenge:active { transform: scale(.98); }
.challenge[aria-pressed="true"] { border-color: var(--gold); }
.challenge[aria-pressed="true"] .tile-sub { color: var(--gold); }

/* ---------- VENUE ---------- */
.venue { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.v-photo { position: relative; height: 48svh; min-height: 300px; overflow: hidden; }
.v-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--tint); }
.v-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,9,.35) 0%, transparent 30%, transparent 55%, var(--bg) 100%); }
.back {
  position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); left: 14px; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(10,8,9,.55); color: #f8f1f5; border: 1px solid rgba(248,241,245,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .16s var(--ease);
}
.back:active { transform: scale(.94); }
.v-body { padding: 0 16px; margin-top: -54px; position: relative; }
.v-area { color: var(--gold); font-size: 13px; font-weight: 600; }
.v-name { font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.02; margin: 4px 0 10px; text-wrap: balance; }
.v-scene { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--ink-2); max-width: 32ch; padding-bottom: 2px; }

.v-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 8px; }
.v-facts > div { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.v-facts .wide { grid-column: 1 / -1; }
.v-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.v-facts dd { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.15; }
.v-facts dd.n { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); font-weight: 400; margin-top: 4px; line-height: 1.45; }
.v-facts .wide dd.n { color: var(--ink); }

.v-sec { margin-top: 30px; }
.v-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.v-sec p { max-width: 62ch; color: var(--ink); }
.openers { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.openers::-webkit-scrollbar { display: none; }
.opener {
  flex: 0 0 78%; scroll-snap-align: start; padding: 18px; border-radius: var(--r);
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 21px; line-height: 1.3; font-style: italic; min-height: 128px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.opener small { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--ink-2); }
.etiquette { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.etiquette h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.etiquette div:last-child h3 { color: var(--blush); }
.etiquette ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.etiquette li { padding-top: 10px; border-top: 1px solid var(--line); line-height: 1.4; }
.leave p { font-family: var(--serif); font-size: 20px; line-height: 1.4; }

.v-bar {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom));
  width: min(100%, 480px); padding: 12px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
  background: linear-gradient(180deg, transparent, var(--bg) 35%);
}
.v-bar .btn-gold { width: 100%; padding: 0 18px; }
.v-bar .btn-ghost { padding: 0 16px; }
#saveBtn.saved { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

/* ---------- TAB BAR ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 0; width: min(100%, 480px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; color: var(--ink-2); font-size: 11px; font-weight: 500; transition: color .2s; }
.tab i { font-size: 24px; transition: transform .2s var(--ease); }
.tab:active i { transform: scale(.9); }
.tab.on { color: var(--gold); }
.tab.on::before { content: ""; position: absolute; top: -7px; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.dot { position: absolute; top: 6px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; z-index: 40; left: 50%; top: calc(12px + env(safe-area-inset-top));
  width: min(calc(100% - 24px), 440px); padding: 12px 14px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--gold);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translate(-50%, -140%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast i { color: var(--gold); font-size: 22px; flex-shrink: 0; }
.toast b { display: block; font-size: 13.5px; }
.toast small { color: var(--ink-2); font-size: 12.5px; }

/* ---------- desktop frame ---------- */
.ia-link {
  position: fixed; z-index: 35; right: 18px; top: 16px; font-size: 13px; color: var(--ink-2); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); display: none;
}
.ia-link:hover { color: var(--gold); border-color: var(--gold); }
@media (min-width: 760px) {
  .ia-link { display: block; }
  body.in-app { background: radial-gradient(80% 60% at 50% 0%, var(--bg-2), var(--bg)); }
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
}


/* ---------- shared full-screen velvet ---------- */
.ob, .reveal {
  min-height: 100svh; position: relative;
  background: radial-gradient(120% 70% at 50% 115%, #4a1236 0%, #120a10 50%, #070607 100%);
  color: #f8f1f5;
}
[data-theme="light"] .ob, [data-theme="light"] .reveal { background: radial-gradient(120% 70% at 50% 115%, #f2cfe2 0%, #f8eaf1 55%, #fdf6f9 100%); color: var(--ink); }

/* ---------- ONBOARDING ---------- */
.ob { display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { body.full { background: #070607; } [data-theme="light"] body.full { background: #fdf6f9; } }
.ob-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 52px; }
.ob-top .icon-btn { color: inherit; }
.ob-dots { display: flex; justify-content: center; gap: 6px; }
.ob-dots span { width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: .22; transition: width .35s var(--ease), opacity .35s, background-color .35s; }
.ob-dots span.done { background: var(--gold); opacity: .9; }
.ob-dots span.on { width: 20px; background: var(--gold); opacity: 1; }
.ob-count { font-size: 12px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.ob-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 6svh; }
.ob-q h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 9vw, 44px); line-height: 1.08; text-wrap: balance; margin-bottom: 26px;
  animation: obIn .55s var(--ease) both;
}
@keyframes obIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } to { opacity: 1; transform: none; } }
.ob-opts { display: grid; gap: 10px; }
.ob-opt {
  display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px; text-align: left;
  min-height: 76px; padding: 12px 16px 12px 14px; border-radius: var(--r);
  background: rgba(248,241,245,.05); border: 1px solid var(--line);
  animation: obIn .55s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 80ms);
  transition: transform .16s var(--ease), border-color .2s, background-color .2s;
}
[data-theme="light"] .ob-opt { background: rgba(255,255,255,.55); }
.ob-opts.many .ob-opt { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.ob-opt > i:first-child { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; font-size: 22px; color: var(--gold); border: 1px solid var(--line); }
.ob-opt b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.ob-opt small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ob-opt .go { color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); }
.ob-opt:active { transform: scale(.98); }
.ob-opt[aria-checked="true"] { border-color: var(--gold); background: rgba(227,155,198,.12); }
.ob-opt[aria-checked="true"] .go { opacity: 1; transform: none; }
@media (hover: hover) { .ob-opt:hover { border-color: rgba(227,155,198,.55); } .ob-opt:hover .go { opacity: .7; transform: none; } }
.ob-note { margin-top: 16px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- REVEAL: the sealed invitation ---------- */
.reveal { overflow-x: hidden; }
.env-scene {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 16px;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.env-scene.gone { opacity: 0; transform: translateY(-30px) scale(.96); pointer-events: none; }
.env-k { font-family: var(--serif); font-size: 24px; font-style: italic; color: var(--gold-hi); }
[data-theme="light"] .env-k { color: var(--gold); }
.env-hint { font-size: 13px; color: var(--ink-2); transition: opacity .3s; }
.env.opened ~ .env-hint { opacity: 0; }
.env { position: relative; width: min(84vw, 340px); aspect-ratio: 1.45; perspective: 1200px; animation: rise .9s var(--ease) both; }
.env-back, .env-front, .env-flap, .env-flap-w, .env-front-w { position: absolute; inset: 0; border-radius: 8px; }
.env-back { background: linear-gradient(180deg, #d9bccb, #e4cdd9); box-shadow: 0 30px 60px -24px rgba(0,0,0,.65); z-index: 1; }
.env-letter {
  position: absolute; left: 7%; right: 7%; top: 8%; bottom: 6%; z-index: 2; border-radius: 6px;
  background: #fbf3f7; box-shadow: inset 0 0 0 1px rgba(156,59,115,.35), inset 0 0 0 6px #fbf3f7, inset 0 0 0 7px rgba(156,59,115,.3);
  display: grid; place-items: start center; padding-top: 14%;
  transition: transform .7s var(--ease);
}
.env-letter span { font-family: var(--serif); font-size: 22px; color: #3a1430; }
.env-front-w { z-index: 3; filter: drop-shadow(0 -2px 3px rgba(90,30,65,.25)); }
.env-front { background: linear-gradient(180deg, #f5e8ef, #ead5e0); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.env-flap-w {
  z-index: 4; filter: drop-shadow(0 4px 5px rgba(80,25,60,.35));
  transform-origin: top center; transition: transform .7s var(--ease), z-index 0s linear .35s;
}
.env-flap { background: linear-gradient(180deg, #f8eef3 0%, #efdde7 70%, #e3c9d6 100%); clip-path: polygon(0 0, 100% 0, 50% 58%); }
.seal {
  position: absolute; z-index: 5; left: 50%; top: 58%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  display: grid; place-items: center; animation: breathe 2.4s ease-in-out 1s infinite;
  filter: drop-shadow(0 6px 8px rgba(70,20,50,.5));
}
.seal-half {
  position: absolute; inset: 0; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, #f7d3e6, #c25b97 55%, #6e2350 100%);
  box-shadow: inset 0 0 0 5px rgba(255,235,245,.18), inset 0 -4px 8px rgba(100,30,70,.35);
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.seal-half.l { clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%); }
.seal-half.r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%); }
.seal em { position: relative; font-family: var(--serif); font-style: italic; font-size: 26px; color: #4a1035; text-shadow: 0 1px 0 rgba(255,235,245,.5); transition: opacity .25s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.env.opened .seal { animation: none; pointer-events: none; }
.env.opened .seal em { opacity: 0; }
.env.opened .seal-half.l { transform: translate(-26px, 34px) rotate(-28deg); opacity: 0; }
.env.opened .seal-half.r { transform: translate(26px, 34px) rotate(28deg); opacity: 0; }
.env.opened .env-flap-w { transform: rotateX(180deg); z-index: 0; transition-delay: .15s, .5s; }
.env.out .env-letter { transform: translateY(-58%); }

.plan { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); }
.plan-card {
  background: #faf2f6; color: #1b0f17; border-radius: 20px; padding: 28px 20px 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(156,59,115,.35), inset 0 0 0 7px #faf2f6, inset 0 0 0 8px rgba(156,59,115,.25);
  animation: planIn .8s var(--ease) both;
}
@keyframes planIn { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.plan-card > * { animation: up .7s var(--ease) both; }
.plan-card > *:nth-child(n+3) { animation-delay: .25s; }
.plan-card > *:nth-child(n+5) { animation-delay: .4s; }
.plan-card > *:nth-child(n+7) { animation-delay: .55s; }
.plan-h { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; text-align: center; }
.plan-sub { text-align: center; color: #6d5664; font-size: 14px; margin: 6px auto 0; max-width: 32ch; }
.plan-sec { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 20px; color: #9c3b73; margin: 24px 0 10px; padding-top: 18px; border-top: 1px solid rgba(156,59,115,.25); }
.plan-places { list-style: none; display: grid; gap: 12px; }
.plan-places li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.plan-places img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; filter: var(--tint); background: #ead7e1; }
.plan-places b, .plan-event b { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.15; }
.plan-places small, .plan-event small { display: block; color: #6d5664; font-size: 13px; line-height: 1.4; }
.plan-duo { display: grid; gap: 0 18px; }
.plan-duo p, .plan-skill { font-size: 14.5px; line-height: 1.5; }
.plan-skill b { display: block; font-weight: 600; margin-bottom: 2px; }
.plan-name { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(156,59,115,.25); display: grid; gap: 8px; }
.plan-name label { font-size: 13px; font-weight: 600; color: #4d3343; }
.plan-name input {
  height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(110,40,80,.35); background: #fffafc; color: #1b0f17; font: inherit; font-size: 16px;
}
.plan-name input::placeholder { color: #7f6676; }
.plan-name input:focus { outline: none; border-color: #9c3b73; box-shadow: 0 0 0 3px rgba(156,59,115,.2); }
.plan-name .btn-gold { margin-top: 8px; width: 100%; background: linear-gradient(180deg, #24161f, #151012); color: #f4c9e0; box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); }
@media (min-width: 640px) { .plan-card { padding: 40px 36px 32px; } .plan-duo { grid-template-columns: 1fr 1fr; } }
.v-soon { margin-top: 24px; padding: 16px; border-radius: var(--r); border: 1px dashed var(--line); color: var(--ink-2); font-size: 14px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .intro .leaf { transform: rotateY(-78deg); }
  .intro .leaf.right { transform: rotateY(78deg); }
  .seal { animation: none !important; }
}

/* ---------- PORTALS ---------- */
.portals { padding: calc(14px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.p-title { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; transition: transform .16s var(--ease), border-color .2s;
}
.filter-btn:active { transform: scale(.97); }
.filter-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-size: 11.5px; display: grid; place-items: center; }
@media (hover: hover) { .filter-btn:hover { border-color: var(--gold); } }

.vibe-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 12px; padding: 0 16px; scrollbar-width: none; }
.vibe-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { border-color: var(--gold); color: var(--ink); } }

.p-map { height: 34svh; min-height: 220px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 0; }
.leaflet-tile-pane { filter: grayscale(1) invert(1) sepia(.6) hue-rotate(282deg) saturate(1.4) brightness(.72) contrast(.95); }
[data-theme="light"] .leaflet-tile-pane { filter: grayscale(1) sepia(.35) hue-rotate(282deg) saturate(1.2) brightness(1.02) contrast(.92); }
.map-off { padding: 24px; color: var(--ink-2); font-size: 14px; }
.leaflet-container { font-family: var(--sans); background: var(--bg-2); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 80%, transparent) !important; color: var(--ink-2) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.pin { display: grid; place-items: center; }
.pin span {
  width: 14px; height: 14px; border-radius: 99px; background: var(--gold); border: 2px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(227,155,198,.25), 0 4px 10px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), opacity .25s;
}
.pin.on span { transform: scale(1.45); box-shadow: 0 0 0 6px rgba(227,155,198,.35), 0 4px 12px rgba(0,0,0,.5); }
.pin.dim span { opacity: .25; transform: scale(.8); }

.p-count { margin: 16px 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.p-list { list-style: none; display: grid; gap: 10px; }
.p-card a {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 10px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: border-color .2s, transform .16s var(--ease);
}
.p-card { animation: up .45s var(--ease) both; animation-delay: calc(var(--i) * 40ms); opacity: 0; transform: translateY(8px); }
.p-card a:active { transform: scale(.985); }
.p-card.on a { border-color: var(--gold); }
.p-card img { width: 96px; height: 112px; border-radius: 12px; object-fit: cover; filter: var(--tint); background: var(--bg-2); }
.p-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 2px 4px 2px 0; }
.p-type { color: var(--gold); font-size: 12px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.in-plan { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--gold-ink); background: var(--gold); border-radius: 4px; padding: 1px 6px; }
.p-body b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.p-why { color: var(--ink-2); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: var(--ink); }
.p-meta span { display: inline-flex; align-items: center; gap: 4px; }
.p-meta i { color: var(--gold); }
.p-empty { text-align: center; padding: 34px 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); display: grid; justify-items: center; gap: 12px; }
.p-empty i { font-size: 32px; color: var(--gold); }

/* ---------- FILTER SHEET ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 45; background: rgba(8,6,7,.55); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-bg.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 46; left: 50%; bottom: 0; width: min(100%, 480px); max-height: 88svh;
  display: flex; flex-direction: column; border-radius: 24px 24px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.6);
  transform: translate(-50%, 100%); transition: transform .38s var(--ease);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 10px auto 0; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 0 20px; }
.sheet-top h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.sheet-body { overflow-y: auto; padding: 4px 20px 12px; overscroll-behavior: contain; }
.f-group { border: 0; margin-top: 16px; }
.f-group legend { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--line); cursor: pointer; }
.f-toggle b { display: block; font-weight: 600; font-size: 15px; }
.f-toggle small { color: var(--ink-2); font-size: 13px; }
.f-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-toggle i { flex-shrink: 0; width: 48px; height: 28px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); position: relative; transition: background-color .2s; }
.f-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: var(--ink-2); transition: transform .25s var(--ease), background-color .2s; }
.f-toggle input:checked + i { background: var(--gold); border-color: var(--gold); }
.f-toggle input:checked + i::after { transform: translateX(20px); background: var(--gold-ink); }
.f-toggle input:focus-visible + i { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.sheet-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn-gold { width: 100%; padding: 0 18px; }
.btn-gold:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (min-width: 760px) { .sheet { bottom: 50%; border-radius: 24px; border-bottom: 1px solid var(--line); transform: translate(-50%, 60%); opacity: 0; transition: transform .38s var(--ease), opacity .25s; } .sheet.show { transform: translate(-50%, 50%); opacity: 1; } .sheet-handle { display: none; } }

/* ---------- EVENTS ---------- */
.events { padding: calc(14px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--gold); }
.live-pill i { width: 7px; height: 7px; border-radius: 99px; background: var(--gold); animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.month-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 4px; padding: 0 16px 2px; scrollbar-width: none; }
.month-row::-webkit-scrollbar { display: none; }
.m-chip { position: relative; color: color-mix(in srgb, var(--ink-2) 70%, transparent); }
.m-chip.has { color: var(--ink); }
.m-chip.has::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 99px; background: var(--gold); }
.m-chip.has[aria-pressed="true"]::after { background: var(--gold-ink); }
.e-group h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 22px 0 10px; }
.e-group ul { list-style: none; display: grid; gap: 10px; }
.e-card { animation: up .45s var(--ease) both; animation-delay: calc(var(--i) * 40ms); opacity: 0; transform: translateY(8px); }
.e-card a {
  display: grid; grid-template-columns: 58px 1fr 64px; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .16s var(--ease);
}
.e-card a:active { transform: scale(.985); }
@media (hover: hover) { .e-card a:hover { border-color: rgba(227,155,198,.55); } }
.e-card.is-new a { border-color: var(--gold); }
.e-date { display: grid; justify-items: center; align-content: center; height: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.e-date b { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1; }
.e-date small { font-size: 10.5px; color: var(--ink-2); margin-top: 3px; }
.e-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.e-body b { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; }
.e-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; filter: var(--tint); background: var(--bg-2); }
.saved-tag { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-2); font-weight: 500; }

/* event page */
.v-facts dd.big { font-family: var(--serif); font-size: 20px; color: var(--ink); font-weight: 500; line-height: 1.2; }
.ev-dress { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board-tile {
  position: relative; min-height: 104px; padding: 14px; border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.3;
}
.board-tile .sw { width: 34px; height: 34px; border-radius: 99px; background: var(--sw); border: 1px solid rgba(248,241,245,.3); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); }
.board-tile:nth-child(4) { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.board-tile:first-child { grid-row: span 2; background: linear-gradient(160deg, color-mix(in srgb, var(--sw) 45%, var(--surface)), var(--surface)); }
.board-tile:first-child .sw { width: 52px; height: 52px; }
.board-tile:first-child span:last-child { font-family: var(--serif); font-size: 21px; }
.ev-formula { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.tips { list-style: none; counter-reset: t; display: grid; gap: 10px; }
.tips li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; }
.tips li::before { content: counter(t); width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); font-family: var(--serif); font-size: 18px; }
.prep { display: grid; gap: 14px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(227,155,198,.1), transparent 60%); }
.prep h2 { margin-bottom: 4px; }
.prep p { color: var(--ink-2); font-size: 14px; }
.prep .btn-ghost { justify-self: start; border-color: var(--gold); color: var(--gold); }
#evSave.saved { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.saved[role="link"] { cursor: pointer; transition: transform .16s var(--ease), border-color .2s; }
.saved[role="link"]:active { transform: scale(.98); }
@media (hover: hover) { .saved[role="link"]:hover { border-color: rgba(227,155,198,.55); } }
@media (prefers-reduced-motion: reduce) { .live-pill i { animation: none; } }

/* ---------- COACH ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.chatting { overflow: hidden; }
.coach {
  height: 100svh; display: flex; flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top)) 0 calc(72px + env(safe-area-inset-bottom));
}
.c-head { display: flex; align-items: center; gap: 12px; padding: 0 12px 12px 16px; border-bottom: 1px solid var(--line); }
.c-avatar {
  width: 46px; height: 46px; border-radius: 99px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, #f7d3e6, #c25b97 60%, #6e2350);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line);
}
.c-who { flex: 1; min-width: 0; }
.c-who h1 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1; }
.c-who .meta { margin-top: 3px; }
.c-left { font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.c-left.elite { color: var(--gold); }
.c-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.her { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-bottom-right-radius: 6px; font-weight: 500; }
.msg + .msg.me, .msg.me + .msg.her { margin-top: 8px; }
.msg.in { animation: msgIn .35s var(--ease) both; }
.msg.me.in { transform-origin: bottom right; }
.msg.her.in { transform-origin: bottom left; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.msg.card { max-width: 92%; padding: 18px 18px 14px; background: #faf2f6; color: #1b0f17; border: 0; box-shadow: inset 0 0 0 1px rgba(156,59,115,.35), inset 0 0 0 6px #faf2f6, inset 0 0 0 7px rgba(156,59,115,.25); }
.msg.card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; margin-bottom: 10px; }
.msg.card dl { display: grid; gap: 10px; }
.msg.card dl div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(156,59,115,.22); }
.msg.card dt { font-family: var(--serif); font-style: italic; font-size: 17px; color: #9c3b73; line-height: 1.3; }
.msg.card dd { font-size: 14px; line-height: 1.45; }
.msg.sys { align-self: stretch; max-width: none; text-align: center; padding: 16px; border-radius: var(--r); border: 1px dashed var(--line); color: var(--ink-2); display: grid; gap: 12px; justify-items: center; }
.msg.sys b { color: var(--ink); }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-2); animation: dot 1.1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.c-bottom { padding: 8px 16px 10px; border-top: 1px solid var(--line); background: var(--bg); }
.c-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
.c-chips::-webkit-scrollbar { display: none; }
.c-chips:empty { display: none; }
.c-compose { display: grid; grid-template-columns: 1fr 48px; gap: 8px; }
.c-compose input {
  height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 16px; min-width: 0;
}
.c-compose input::placeholder { color: var(--ink-2); }
.c-compose input:focus { outline: none; border-color: var(--gold); }
.c-compose input:disabled { opacity: .6; }
.c-send { width: 48px; height: 48px; border-radius: 99px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 20px; transition: transform .16s var(--ease), opacity .2s; }
.c-send:active { transform: scale(.94); }
.c-send:disabled { opacity: .35; cursor: not-allowed; }
.c-send i { font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .msg.typing i { animation: none; opacity: .6; } }

/* ---------- ME ---------- */
.me, .sub { padding: calc(14px + env(safe-area-inset-top)) 16px calc(100px + env(safe-area-inset-bottom)); }
a.streak { color: var(--gold); text-decoration: none; }
.key-card {
  margin-top: 16px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 18px;
  border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(227,155,198,.16), transparent 60%), var(--surface);
}
.key-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.key-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.key-ring circle { fill: none; stroke-width: 4; }
.key-ring .trk { stroke: var(--line); }
.key-ring .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.key-ring i { color: var(--gold); font-size: 44px; transition: font-size .6s var(--ease); filter: drop-shadow(0 4px 10px rgba(227,155,198,.35)); }
.key-ring[data-level="1"] i { font-size: 54px; }
.key-ring[data-level="2"] i { font-size: 64px; }
.key-ring[data-level="3"] i { font-size: 74px; }
.key-k { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.key-copy h2 { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; margin: 2px 0 6px; color: var(--gold-hi); }
[data-theme="light"] .key-copy h2 { color: var(--gold); }
.key-copy p { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.key-copy .key-next { color: var(--ink); margin-top: 8px; font-weight: 500; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r); }
.me-stats div { display: grid; justify-items: center; padding: 12px 4px; }
.me-stats div + div { border-left: 1px solid var(--line); }
.me-stats b { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.me-stats span { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }
.me-challenge {
  width: 100%; display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); transition: transform .16s var(--ease), border-color .2s;
}
.me-challenge:active { transform: scale(.985); }
.me-challenge b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.15; }
.mc-detail { color: var(--ink-2); font-size: 13.5px; }
.mc-cta { margin-top: 8px; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 600; }
.me-challenge[aria-pressed="true"] { border-color: var(--gold); }
.me-challenge[aria-pressed="true"] .mc-cta { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.me-menu { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.me-menu > * {
  width: 100%; display: grid; grid-template-columns: 28px 1fr 18px; gap: 12px; align-items: center; padding: 14px 16px;
  text-align: left; color: inherit; text-decoration: none; transition: background-color .2s;
}
.me-menu > * + * { border-top: 1px solid var(--line); }
.me-menu > * > i:first-child { font-size: 22px; color: var(--gold); }
.me-menu > * > i:last-child { color: var(--ink-2); }
.me-menu b { display: block; font-weight: 600; font-size: 15px; }
.me-menu small { display: block; color: var(--ink-2); font-size: 12.5px; }
@media (hover: hover) { .me-menu > *:hover { background: rgba(227,155,198,.06); } }
.badges { margin-top: 20px; }
.badge-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.badge { display: grid; justify-items: center; gap: 6px; text-align: center; opacity: .38; }
.badge span { width: 52px; height: 52px; border-radius: 99px; display: grid; place-items: center; border: 1px dashed var(--line); font-size: 22px; color: var(--ink-2); }
.badge small { font-size: 11px; line-height: 1.25; color: var(--ink-2); }
.badge.got { opacity: 1; }
.badge.got span { border: 0; color: var(--gold-ink); background: radial-gradient(circle at 35% 30%, #f7d3e6, #c25b97 60%, #6e2350); box-shadow: 0 6px 14px -6px rgba(201,163,92,.6); }
.badge.got small { color: var(--ink); }

/* sub screens */
.sub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.back-link { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); text-decoration: none; flex-shrink: 0; font-size: 18px; transition: transform .16s var(--ease); }
.back-link:active { transform: scale(.94); }

/* academy */
.ac-h { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 20px 0 10px; }
.ac-list { display: grid; gap: 10px; }
.ac-card {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  animation: up .45s var(--ease) both; animation-delay: calc(var(--i) * 30ms); opacity: 0; transform: translateY(8px);
  transition: border-color .2s;
}
@media (hover: hover) { .ac-card:hover { border-color: rgba(227,155,198,.55); } }
.ac-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: var(--gold); background: var(--bg-2); border: 1px solid var(--line); }
.ac-body small { display: block; font-size: 12px; font-weight: 600; color: var(--gold); }
.ac-body b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.15; }
.ac-state { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.ac-state i { font-size: 24px; }
.ac-card.done .ac-state { color: var(--gold); }
.ac-card.locked .ac-ic, .ac-card.locked .ac-body { opacity: .55; }
.ac-card.locked .ac-state { color: var(--ink-2); }

/* lesson player */
.lesson { min-height: 100svh; display: flex; flex-direction: column; }
.ls-head { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.ls-bars { display: flex; gap: 5px; }
.ls-bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.ls-bars i.on { background: var(--gold); }
.ls-bars i.now::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: barIn .5s var(--ease) both; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(.5); } }
.ls-stage { flex: 1; display: flex; align-items: center; padding: 24px 4px; }
.ls-card { width: 100%; animation: obIn .45s var(--ease) both; --dir: 1; }
.ls-card small { display: block; font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.ls-card h1 { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.05; margin-bottom: 20px; text-wrap: balance; }
.ls-card p { font-size: 15px; color: var(--ink-2); }
.ls-text { font-family: var(--serif); font-size: 27px !important; line-height: 1.3; color: var(--ink) !important; text-wrap: pretty; }
.ls-opts { display: grid; gap: 10px; margin-top: 22px; }
.ls-opt { text-align: left; min-height: 56px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-size: 15px; transition: border-color .2s, background-color .2s, transform .16s var(--ease); }
.ls-opt:active { transform: scale(.98); }
.ls-opt.right { border-color: var(--gold); background: rgba(227,155,198,.16); }
.ls-opt.wrong { border-color: var(--blush); opacity: .8; }
.ls-opt:disabled { cursor: default; }
.ls-fb { margin-top: 14px; color: var(--gold) !important; font-weight: 600; }
.ls-foot { padding-bottom: 8px; }
.ls-foot .btn-gold { width: 100%; }

/* style studio */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; border: 1px solid var(--line); margin-bottom: 4px; }
.seg button { height: 40px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.st-h { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 6px 0 2px; }
#stOutfits .meta { margin-bottom: 14px; }
.st-avoid { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.st-avoid b { color: var(--blush); font-weight: 600; }
.cap-pal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 18px; }
.pal { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: var(--r); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; transition: border-color .2s; }
.pal[aria-checked="true"] { border-color: var(--gold); background: rgba(227,155,198,.1); }
.pal-sw { display: flex; }
.pal-sw i { width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--surface); margin-left: -6px; }
.pal-sw i:first-child { margin-left: 0; }
.cap-prog { display: grid; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.cap-track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cap-track i { display: block; height: 100%; background: var(--gold); transform-origin: left; transition: transform .5s var(--ease); }
.cap-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cap-item { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s; }
.cap-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cap-item i { grid-row: span 2; width: 26px; height: 26px; border-radius: 99px; background: var(--sw); border: 1px solid rgba(248,241,245,.3); opacity: .35; transition: opacity .2s; }
.cap-item span { font-size: 13.5px; line-height: 1.25; font-weight: 500; }
.cap-item small { font-size: 11.5px; color: var(--ink-2); }
.cap-item:has(input:checked) { border-color: var(--gold); }
.cap-item:has(input:checked) i { opacity: 1; }
.cap-item:has(input:checked) small { color: var(--gold); }
.cap-item:has(input:focus-visible) { outline: 1.5px solid var(--gold); outline-offset: 2px; }
.cap-note { margin-top: 14px; }
.e-card .sv-img { width: 58px; height: 64px; }
.saved-screen .e-card a { grid-template-columns: 58px 1fr 18px; }
.ls-stage, .ob-stage, .lesson, .ob { overflow-x: clip; }
html { overflow-x: clip; }
.board-tile .sw, .cap-item i { border-color: rgba(227,155,198,.55); }
.pal-sw i { border: 1.5px solid rgba(227,155,198,.6); }

/* ---------- SAFETY ---------- */
.sos {
  width: 100%; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; text-align: left;
  padding: 16px; border-radius: var(--r); background: linear-gradient(160deg, #6e2a2a, #3e1719); color: #fbeee9;
  border: 1px solid rgba(255,143,143,.4); box-shadow: 0 16px 34px -18px rgba(110,42,42,.8); transition: transform .16s var(--ease);
}
.sos:active { transform: scale(.985); }
.sos > i { width: 52px; height: 52px; border-radius: 99px; display: grid; place-items: center; font-size: 26px; background: rgba(251,238,233,.14); }
.sos b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.sos small { display: block; font-size: 12.5px; opacity: .8; margin-top: 3px; }
.s-card { margin-top: 12px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.s-card h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.s-note { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.s-wide { width: 100%; }
.s-status { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.s-status a { color: var(--gold); }
.s-form { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; margin-bottom: 12px; }
.fld label, .fld-l { font-size: 13px; font-weight: 600; }
.fld input {
  height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--ink); font: inherit; font-size: 16px;
}
.fld input::placeholder { color: var(--ink-2); }
.fld input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,155,198,.18); }
.fld input[aria-invalid="true"] { border-color: var(--blush); }
.fld-err { font-size: 13px; color: var(--blush); }
.fld .f-chips { margin-top: 2px; }
.f-saved { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.f-av { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; background: var(--bg-2); border: 1px solid var(--line); color: var(--gold); }
.f-saved b { display: block; font-weight: 600; }
.f-saved small { color: var(--ink-2); font-size: 13px; }
.btn-ghost.sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.t-live { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 0 14px; }
.t-ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.t-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.t-ring circle { fill: none; stroke-width: 4; }
.t-ring .trk { stroke: var(--line); }
.t-ring .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.t-ring span { display: grid; }
.t-ring b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.05; }
.t-ring small { font-size: 12px; color: var(--ink-2); }
.t-live.over .bar { stroke: var(--blush); }
.t-live.over b { color: var(--blush); }
.t-where { font-weight: 600; }
.t-warn { font-size: 14px; color: var(--blush); max-width: 34ch; }
.t-actions, .t-send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.t-actions .btn-gold, .t-actions .btn-ghost, .t-send .btn-ghost { width: 100%; padding: 0 12px; text-decoration: none; font-size: 14px; }
.t-send .btn-ghost { min-height: 46px; }
.btn-sos-soft { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; border-radius: 999px; background: #6e2a2a; color: #fbeee9; font-weight: 600; text-decoration: none; padding: 0 12px; font-size: 14px; }
.s-guide { margin-top: 8px; }
.g-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 8px; overflow: hidden; }
.g-item summary { list-style: none; display: grid; grid-template-columns: 26px 1fr 18px; gap: 10px; align-items: center; padding: 15px 16px; cursor: pointer; font-weight: 600; }
.g-item summary::-webkit-details-marker { display: none; }
.g-item summary i:first-child { color: var(--gold); font-size: 20px; }
.g-item summary i:last-child { color: var(--ink-2); transition: transform .25s var(--ease); }
.g-item[open] summary i:last-child { transform: rotate(180deg); }
.g-item ul { list-style: none; display: grid; gap: 10px; padding: 0 16px 16px 52px; font-size: 14.5px; line-height: 1.45; }
.g-item li { position: relative; }
.g-item li::before { content: ""; position: absolute; left: -16px; top: .6em; width: 6px; height: 1px; background: var(--gold); }
.s-safe { margin-top: 12px; text-decoration: none; }
.sos-dialog {
  position: fixed; z-index: 47; left: 50%; top: 50%; width: min(calc(100% - 32px), 380px); padding: 24px 20px 14px; border-radius: 22px;
  background: var(--surface); border: 1px solid rgba(255,143,143,.45); box-shadow: 0 30px 70px -20px rgba(0,0,0,.7);
  display: grid; gap: 10px; text-align: center;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .25s var(--ease), opacity .2s;
}
.sos-dialog.show { transform: translate(-50%, -50%); opacity: 1; }
.sos-dialog h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.sos-dialog p { color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
.btn-sos { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border-radius: 999px; background: #8f2f2f; color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; }
.sos-cancel { min-height: 44px; color: var(--ink-2); font-weight: 500; }
.night-pill {
  position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--gold); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.night-pill i { color: var(--gold); font-size: 17px; }
.night-pill.over { border-color: var(--blush); }
.night-pill.over i { color: var(--blush); }
body.night-on .tonight { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
body.night-on .portals, body.night-on .events, body.night-on .me, body.night-on .sub { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
#tChips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#tChips .chip { padding: 0 6px; }
body.night-on .tonight { padding-bottom: calc(132px + env(safe-area-inset-bottom)); gap: 10px; }
body.night-on .hero-card { min-height: 260px; }
body.night-on .hero-why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- PORTAL ELITE ---------- */
body.focus .tabbar, body.focus .night-pill { display: none; }
.elite { min-height: 100svh; padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(90% 55% at 50% 0%, rgba(227,155,198,.18), transparent 70%); }
.el-pay, .el-member { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: calc(100svh - 40px); }
.el-close { position: absolute; left: 0; top: 0; }
.el-emblem {
  margin-top: 26px; width: 92px; height: 92px; border-radius: 99px; display: grid; place-items: center; font-size: 44px; color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, #f7d3e6, #c25b97 60%, #6e2350);
  box-shadow: 0 0 0 6px rgba(227,155,198,.12), 0 0 0 14px rgba(227,155,198,.06), 0 20px 40px -16px rgba(201,163,92,.7);
}
.el-h { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; margin: 16px 0 8px; text-wrap: balance; }
.el-sub { color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.el-list { list-style: none; display: grid; gap: 14px; text-align: left; margin: 24px 0 20px; width: 100%; max-width: 420px; }
.el-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.el-list li > i { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; font-size: 20px; color: var(--gold); border: 1px solid var(--line); }
.el-list b { display: block; font-weight: 600; font-size: 15px; }
.el-list small { display: block; color: var(--ink-2); font-size: 13px; }
.el-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.el-plan {
  position: relative; display: grid; justify-items: start; gap: 2px; text-align: left; padding: 16px 14px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s, transform .16s var(--ease);
}
.el-plan:active { transform: scale(.98); }
.el-plan[aria-checked="true"] { border-color: var(--gold); background: rgba(227,155,198,.1); box-shadow: inset 0 0 0 1px var(--gold); }
.el-plan em { position: absolute; top: -10px; right: 12px; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); }
.el-pl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.el-plan b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; font-variant-numeric: lining-nums; }
.el-plan small { font-size: 12.5px; color: var(--ink-2); }
.el-note { font-size: 12px; color: var(--gold); margin-top: 6px; }
.el-cta { width: 100%; max-width: 420px; margin-top: 18px; }
.el-fine { margin-top: 12px; font-size: 12px; color: var(--ink-2); max-width: 36ch; }
.el-list.done li > i { background: var(--gold); color: var(--gold-ink); border: 0; }
.el-member.joined .el-emblem { animation: bloom 1.1s var(--ease) both; }
.el-member.joined .el-h, .el-member.joined .el-sub, .el-member.joined .el-list li { animation: up .7s var(--ease) both; }
.el-member.joined .el-h { animation-delay: .25s; opacity: 0; transform: translateY(12px); }
.el-member.joined .el-sub { animation-delay: .35s; opacity: 0; transform: translateY(12px); }
.el-member.joined .el-list li { opacity: 0; transform: translateY(12px); }
.el-member.joined .el-list li:nth-child(1) { animation-delay: .45s; }
.el-member.joined .el-list li:nth-child(2) { animation-delay: .52s; }
.el-member.joined .el-list li:nth-child(3) { animation-delay: .59s; }
.el-member.joined .el-list li:nth-child(4) { animation-delay: .66s; }
@keyframes bloom { 0% { transform: scale(.6) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.el-dialog { border-color: var(--gold); }
.el-demo { font-size: 11.5px; font-weight: 600; color: var(--gold); margin: 0 !important; }
.el-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 600; }
.p-card.locked img { filter: blur(3px) brightness(.6); }
.p-card.locked b { opacity: .8; }
.pin.locked span { background: var(--surface); border-color: var(--gold); box-shadow: none; transform: scale(.8); }
@media (prefers-reduced-motion: reduce) { .el-member.joined * { animation: none !important; opacity: 1 !important; transform: none !important; } }


/* ---------- BRAND: Femme Fatale pink and black ---------- */
.btn-gold {
  background: linear-gradient(180deg, var(--berry-hi), var(--berry));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(194, 91, 151, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}
@media (hover: hover) { .btn-gold:hover { box-shadow: 0 14px 34px -10px rgba(194, 91, 151, .85), inset 0 1px 0 rgba(255, 255, 255, .28); } }
.btn-gold:disabled { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.plan-name .btn-gold { background: linear-gradient(180deg, #2a1622, #140b11); color: #f4c9e0; }

.intro-copy .brand { color: var(--gold-hi); }
.seal em { color: #fff; text-shadow: 0 1px 2px rgba(70, 20, 50, .5); }

/* photos: hero gets the pink wash, the venue page stays black and white, like alternating reels */
.v-photo img { filter: var(--bw); }

/* tiny, quiet legal links */
.legal-link { position: fixed; z-index: 11; left: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); font-size: 11px; color: rgba(248,241,245,.32); text-decoration: none; display: none; }
#intro:not([hidden]) ~ .legal-link { display: block; }
.legal-link:hover { color: rgba(248,241,245,.6); }
.me-legal { margin: 18px 0 0; text-align: center; }
.me-legal a { font-size: 11.5px; color: var(--ink-2); opacity: .55; text-decoration: none; }
