/* Beauty Dolls app. Same palette and type as the landing (web/public/index.html),
   plus the hot pink of the logo for the doll box. Mobile first, one hand, thumb zone.
   Tokens: cream paper, berry for text accents, hot pink only for money and the main action. */
:root {
  --cream: #fbf3ee; --paper: #fffaf7; --blush: #f4dcd8; --rose: #d9909c;
  --berry: #a8435d; --berry-deep: #8a3049; --ink: #3d1f29; --muted: #85606a;
  --gold: #c49a62; --line: #edd3cd; --ok: #3f7d58;
  --box: #f32a96; --box-deep: #c81677; --box-light: #ff8cc6;
  --r: 18px;
  --shadow: 0 24px 50px -22px #6b2a3d66;
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); line-height: 1.45;
  background: var(--cream);
  background-image: radial-gradient(circle at 12% -10%, #ffe1ec 0, transparent 42%),
                    radial-gradient(circle at 110% 30%, #fbe3d6 0, transparent 38%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #f32a9666; outline-offset: 2px; }

/* ── top bar ── */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: #fbf3eed9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #edd3cd80; }
.brand { display: block; width: 84px; color: var(--box); }
.brand svg { width: 100%; height: auto; display: block; }
.bar-right { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: var(--paper); border: 1px solid var(--line); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--box); display: inline-block; }
.pill.empty { border-color: var(--box); color: var(--box-deep); }
.pill.streak { padding: 6px 10px; color: #ff6a3d; }
.pill.streak svg { width: 16px; height: 16px; }
.pill.streak b { color: var(--ink); }
.pill.streak.cold { color: var(--rose); }

/* in-app browser hint */
.iab { position: sticky; top: 58px; z-index: 19; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  margin: 0; padding: 10px 12px 10px 16px; background: var(--ink); color: var(--cream); font-size: 13px; }
.iab button { font-size: 12px; font-weight: 700; padding: 8px 10px; border-radius: 10px; background: #ffffff1f; }
.iab button:last-child { background: none; width: 30px; padding: 4px; }
.iab svg { width: 16px; height: 16px; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
body.has-tabs main { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 28px); }
.view { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── bottom tabs ── */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 560px; margin: 0 auto; padding: 6px 10px calc(6px + var(--safe-b)); background: #fffaf7ee; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px -22px #6b2a3d66; }
.tabs button { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 0; border-radius: 16px;
  font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tabs svg { width: 24px; height: 24px; }
.tabs button[aria-current=true] { color: var(--box-deep); }
.tabs button[aria-current=true] svg { filter: drop-shadow(0 4px 8px #f32a9655); }
.tabs .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--box); box-shadow: 0 0 0 2px var(--paper); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* ── type ── */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--berry); }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 4px #a8435d22; }
.kicker.light { color: #fff; } .kicker.light::before { background: #fff; box-shadow: 0 0 0 4px #ffffff33; }
h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(38px, 11vw, 54px); line-height: 1.02;
  letter-spacing: -.025em; margin: 14px 0 14px; }
h1 em, h2 em { font-weight: 500; color: var(--berry); }
h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -.015em; }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ok { color: var(--ok); display: flex; align-items: center; gap: 6px; } .ok svg { width: 16px; height: 16px; }
.center { text-align: center; }
.mt { margin-top: 18px; } .mt-s { margin-top: 10px; }

/* ── buttons ── */
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 15px 22px; border-radius: 16px;
  background: var(--berry); color: #fff; font-weight: 700; font-size: 16px; transition: background .15s, transform .12s; text-decoration: none; }
.cta svg { width: 19px; height: 19px; }
.cta:active { transform: scale(.98); }
.cta:hover { background: var(--berry-deep); }
.cta:disabled { opacity: .55; cursor: default; }
.cta.pink { background: var(--box); box-shadow: 0 12px 26px -14px #f32a96; } .cta.pink:hover { background: var(--box-deep); }
.ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 13px; border-radius: 16px;
  background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.ghost svg { width: 18px; height: 18px; }
.ghost.slim { width: auto; padding: 13px 20px; }
.link { display: block; width: 100%; padding: 12px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.danger { color: var(--berry-deep); }
.stack { display: grid; gap: 10px; }
.card-paper { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.cost { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #ffffff33; }

/* ── the doll box: every look lives in a toy package ── */
.box { position: relative; border-radius: 26px; padding: 86px 16px 16px; margin: 0 auto; max-width: 400px;
  background: linear-gradient(160deg, var(--box-light), var(--box) 38%, var(--box-deep));
  box-shadow: var(--shadow), inset 0 2px 0 #ffffff55, inset 0 -3px 0 #00000022; }
.box::before { content: ''; position: absolute; top: -18px; left: 50%; width: 64px; height: 26px; transform: translateX(-50%);
  border-radius: 14px 14px 6px 6px; background: var(--box-deep);
  box-shadow: inset 0 0 0 7px var(--box-deep), inset 0 0 0 11px var(--cream); }
.box .box-logo { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 80px; color: #fff; filter: drop-shadow(0 2px 3px #7a0d4966); }
.box .box-logo svg { width: 100%; height: auto; display: block; }
.window { position: relative; border-radius: 16px 16px 40% 40% / 16px 16px 8% 8%; overflow: hidden; aspect-ratio: 2 / 3;
  background: linear-gradient(#ffe4f1, #ffd0e6); box-shadow: inset 0 0 0 3px #ffffffaa, inset 0 6px 22px #c8167744; }
.window img { width: 100%; height: 100%; object-fit: cover; }
.window::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, #ffffff40 40%, transparent 48%, transparent 70%, #ffffff22 76%, transparent 82%); }
.box.small { padding: 46px 8px 8px; border-radius: 18px; max-width: 250px; }
.box.small .box-logo { width: 46px; top: 9px; }
.box.small::before { width: 44px; height: 18px; top: -12px; }

/* ── waiting: in the chair ── */
.chair { position: relative; }
.chair .window { display: grid; place-items: center; }
.chair .window img { position: absolute; inset: 0; filter: blur(3px) saturate(.9); opacity: .55; }
.sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparkles b { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 12px 3px #ffffffcc; animation: twinkle 2.6s infinite; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.dryer { position: relative; z-index: 2; width: 120px; height: 120px; border-radius: 50%; background: #fffaf7ee; display: grid; place-items: center;
  box-shadow: 0 10px 30px #c8167755; }
.dryer svg { width: 64px; height: 64px; color: var(--box); animation: spin 3.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.making .chair .box.small { max-width: 270px; }
.wait-line { min-height: 2.8em; margin-top: 16px; text-align: center; font-family: 'Playfair Display', serif; font-size: 21px; font-style: italic; }
.wait-line span { display: inline-block; animation: rise .5s both; }
.progress { height: 6px; border-radius: 6px; background: var(--blush); overflow: hidden; margin: 12px 0 8px; }
.progress i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--rose), var(--box)); transition: width 1s linear; }

/* ── onboarding ── */
.ob { display: flex; flex-direction: column; min-height: calc(100dvh - 120px); }
.ob .ob-actions { margin-top: auto; padding-top: 18px; }
.ob-art { position: relative; height: min(330px, 42dvh); margin: 6px 0 18px; }
.ob-art img { position: absolute; top: 0; width: 56%; aspect-ratio: 3/4; object-fit: cover; border-radius: 22px;
  box-shadow: var(--shadow); outline: 5px solid var(--paper); animation: rise .6s calc(var(--i) * .12s) both; }
.ob-art.n2 img:nth-child(1) { left: 2%; top: 20px; rotate: -5deg; }
.ob-art.n2 img:nth-child(2) { right: 2%; top: 44px; rotate: 4deg; }
.ob-art.n3 img { width: 46%; }
.ob-art.n3 img:nth-child(1) { left: 0; top: 40px; rotate: -7deg; }
.ob-art.n3 img:nth-child(2) { left: 27%; top: 0; z-index: 2; }
.ob-art.n3 img:nth-child(3) { right: 0; top: 52px; rotate: 6deg; }
.ob-h { font-size: clamp(34px, 9.5vw, 46px); margin: 10px 0 10px; }
.dots { display: flex; gap: 6px; margin-bottom: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: width .25s; }
.dots i.on { width: 24px; background: var(--box); }
.ob-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 22px; flex-shrink: 0; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { min-height: 56px; padding: 14px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; text-align: left; }
.chip.on { background: var(--box); border-color: var(--box); color: #fff; }

/* ── selfie ── */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.tips div { padding: 12px 6px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-align: center; font-size: 12.5px; font-weight: 500; }
.tips svg { width: 24px; height: 24px; margin: 0 auto 6px; color: var(--berry); display: block; }
.preview { width: 58%; margin: 6px auto 12px; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 13px 14px; border-radius: 14px; background: var(--paper);
  border: 1.5px solid var(--line); font-size: 14px; cursor: pointer; margin-top: 10px; }
.check input { width: 22px; height: 22px; accent-color: var(--box); margin-top: 1px; }
.check.shake { animation: shake .4s; border-color: var(--box); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.note { width: 100%; min-height: 80px; resize: vertical; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.note:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px #a8435d1f; }

/* ── play ── */
.hero { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: center; padding-top: 10px; }
.hero-box .box.small { max-width: none; }
.hero-box.is-busy .dryer { display: none; }
.hero-box.is-busy .window::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, transparent 20%, #ffffff66 50%, transparent 80%); animation: sweep 1.6s infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hero-side { display: grid; gap: 6px; align-content: center; min-width: 0; }
.hero-side h2 { font-size: 25px; }
.meter { display: flex; gap: 3px; margin: 4px 0 4px; }
.meter i { flex: 1; height: 5px; border-radius: 5px; background: var(--blush); }
.meter i.done { background: var(--gold); } .meter i.cur { background: var(--box); }
.hero-btns { display: grid; gap: 6px; margin-top: 4px; }
.own-btn { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; text-align: left; padding: 9px 10px; min-height: 48px;
  border-radius: 14px; background: var(--ink); color: var(--cream); }
.own-btn svg { width: 20px; height: 20px; justify-self: center; color: var(--box-light); }
.own-btn b { display: block; font-size: 13.5px; line-height: 1.15; } .own-btn small { display: block; font-size: 11px; opacity: .72; line-height: 1.2; }
.own-btn.alt { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.own-btn.alt svg { color: var(--box); }

.path { display: flex; gap: 8px; overflow-x: auto; margin: 16px -16px 0; padding: 4px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.path::-webkit-scrollbar { display: none; }
.step { flex: 0 0 auto; scroll-snap-align: center; display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px 8px 8px; border-radius: 99px;
  font-weight: 700; font-size: 13.5px; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); white-space: nowrap; }
.step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--blush); }
.step .n svg { width: 13px; height: 13px; }
.step.done .n { background: var(--gold); color: #fff; }
.step.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.step.active .n { background: var(--box); color: #fff; }
.step.locked { opacity: .55; }
.step.drop { border-color: #f32a9666; background: linear-gradient(120deg, #fff0f7, #ffe3f1); }
.step.drop .n { background: var(--box); color: #fff; }
.step.drop.active { background: var(--box-deep); border-color: var(--box-deep); }
.step.secret .n { background: var(--ink); color: var(--gold); }
.restyle { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.restyle button { padding: 6px 11px; border-radius: 99px; background: #fff; border: 1px dashed var(--rose); font-weight: 700; font-size: 12.5px; color: var(--berry); }

.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tile { position: relative; text-align: left; border-radius: 14px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--blush);
  box-shadow: 0 10px 24px -16px #6b2a3d80; transition: transform .15s; animation: rise .4s both; }
.tile:active { transform: scale(.97); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .art { position: absolute; inset: 0; background: linear-gradient(160deg, #f7a9c8, #e98bb0); }
.tile .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 8px; color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.2;
  background: linear-gradient(transparent, #3d1f29cc); }
.locked-grid .tile { filter: blur(5px) saturate(.7); transform: scale(.98); animation: none; }
.lock-note { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.lock-note svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--paper); color: var(--berry); box-shadow: var(--shadow); box-sizing: content-box; }
.lock-note b { max-width: 260px; padding: 10px 14px; border-radius: 14px; background: #fffaf7ee; font-size: 14px; }

/* ── gallery ── */
.dolls { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 6px 16px 12px; scrollbar-width: none; }
.dolls::-webkit-scrollbar { display: none; }
.doll-av { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.doll-av img, .doll-av > span { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--blush);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--line); display: grid; place-items: center; }
.doll-av.on img, .doll-av.on > span { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--box); }
.doll-av.on { color: var(--ink); }
.doll-av.add > span { background: var(--paper); border: 1.5px dashed var(--rose); box-shadow: none; color: var(--box); }
.doll-av svg { width: 24px; height: 24px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); margin: 4px 0 6px; }
.seg button { flex: 1; min-height: 38px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--cream); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 8px; }
.section-head h2 { font-size: 21px; }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gt { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--blush); }
.gt img, .gt video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gt .vbadge { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 3px; padding: 3px 7px 3px 5px; border-radius: 99px;
  background: #3d1f29b3; color: #fff; font-size: 11px; font-weight: 700; }
.gt .vbadge svg { width: 12px; height: 12px; }
.gt .fav { position: absolute; top: 6px; right: 6px; color: var(--box); filter: drop-shadow(0 1px 2px #0005); }
.gt .fav svg { width: 18px; height: 18px; }
.gt .cur { position: absolute; top: 6px; left: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--box); box-shadow: 0 0 0 2px #fff; }
.gt.doll { box-shadow: inset 0 0 0 3px var(--box); }
.busy-tile { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, #ffe4f1, #ffd0e6); font-weight: 700; color: var(--box-deep); }
.busy-tile svg { width: 26px; height: 26px; animation: spin 3.4s linear infinite; }
.shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, #ffffff88 50%, transparent 80%); animation: sweep 1.6s infinite; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 60px 20px; text-align: center; }
.empty svg { width: 42px; height: 42px; color: var(--rose); }

/* ── full-screen viewer ── */
.vw { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: #1d0e13; color: #fff; animation: fade .2s both; }
.vw-top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 10px 6px; font-size: 13px; font-weight: 700; opacity: .9; }
.vw-top button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.vw-top button svg { width: 24px; height: 24px; }
.vw-top button.on { color: var(--box-light); }
.vw-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; overflow: hidden; padding: 0 12px; }
.vw-stage img, .vw-stage video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 16px; object-fit: contain; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #ffffff22; }
.vw-nav svg { width: 22px; height: 22px; } .vw-nav.l { left: 8px; } .vw-nav.r { right: 8px; }
.vw-sound { position: absolute; right: 22px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0006; }
.vw-sound svg { width: 20px; height: 20px; }
.vw-info { padding: 10px 16px calc(12px + var(--safe-b)); background: linear-gradient(transparent, #0004); }
.vw-title h2 { font-size: 22px; } .vw-title .muted { color: #ffffffaa; }
.vw .tree { margin-top: 8px; } .vw .tree .muted { color: #ffffff99; }
.tree-row { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.tree-row button, .tree-row .me { flex: 0 0 auto; width: 34px; height: 46px; border-radius: 8px; overflow: hidden; background: #ffffff22; }
.tree-row img { width: 100%; height: 100%; object-fit: cover; }
.tree-row .me { box-shadow: 0 0 0 2px var(--box-light); }
.tree-row i { flex: 0 0 8px; height: 2px; background: #ffffff55; border-radius: 2px; }
.vw-acts { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.vw-acts button { flex: 1 1 0; min-width: 52px; display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; font-size: 11.5px; font-weight: 700; }
.vw-acts button:active { background: #ffffff1a; }
.vw-acts svg { width: 23px; height: 23px; }
.vw .wm { margin-top: 6px; color: #ffffff88; font-size: 11.5px; text-align: center; }

/* ── reveal ── */
.reveal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; overflow-y: auto; padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + var(--safe-b));
  background: radial-gradient(circle at 50% 32%, #c2226f, #6e0b40 58%, #3a0622); color: #fff; animation: fade .3s both; }
.rv-in { width: min(400px, 100%); text-align: center; }
.rv-in h2 { font-size: 30px; margin: 8px 0 18px; color: #fff; }
.rv-box { position: relative; animation: unbox .9s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes unbox { from { transform: scale(.7) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rv-box .box { max-width: 280px; box-shadow: 0 30px 60px -20px #4a0629aa, inset 0 2px 0 #ffffff55; }
.rv-box .window img { animation: reveal 1.1s .3s cubic-bezier(.2,.9,.2,1) both; }
@keyframes reveal { from { opacity: 0; transform: scale(1.12); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.rv-media { width: min(280px, 72vw); margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px #4a0629aa; outline: 6px solid #ffffffcc; }
.rv-media video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }
.rv-acts { display: grid; gap: 10px; margin-top: 22px; }
.rv-acts .cta.pink { background: #fff; color: var(--box-deep); box-shadow: 0 14px 30px -14px #4a0629; }
.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-row .ghost { background: #ffffff26; border-color: #ffffff55; color: #fff; }
.rv-row .ghost:only-child { grid-column: 1 / -1; }

/* spark burst */
.burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.burst i { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff;
  animation: burst 1.1s var(--d) cubic-bezier(.1,.8,.3,1) both; }
.burst i:nth-child(3n) { background: #ffd36e; } .burst i:nth-child(4n) { background: var(--box-light); border-radius: 50%; }
@keyframes burst { from { transform: translate(0,0) scale(.3) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1) rotate(200deg); opacity: 0; } }

/* ── me ── */
.me-top { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.streak-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 20px;
  background: linear-gradient(135deg, #fff1e6, #ffe0ea); border: 1px solid #ffd2c0; }
.streak-card h2 { font-size: 19px; }
.streak-card .small { margin-top: 4px; color: var(--berry); font-weight: 700; }
.flame { position: relative; width: 58px; height: 58px; display: grid; place-items: center; color: #ff6a3d; }
.flame svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px #ff6a3d66); }
.flame b { position: relative; margin-top: 16px; color: #fff; font-size: 17px; }
.streak-card.cold .flame { color: var(--rose); } .streak-card.cold .flame svg { filter: none; }
.week { display: flex; gap: 5px; margin-top: 6px; }
.week i { width: 18px; height: 8px; border-radius: 8px; background: #ffffffaa; border: 1px solid #ffc9b5; }
.week i.on { background: #ff6a3d; border-color: #ff6a3d; }
.credit-card { display: grid; align-content: center; justify-items: center; gap: 2px; min-width: 96px; padding: 12px; border-radius: 20px; background: var(--ink); color: var(--cream); }
.credit-card small { font-size: 11px; opacity: .7; } .credit-card b { font-family: 'Playfair Display', serif; font-size: 32px; line-height: 1; }
.credit-card span { font-size: 11.5px; font-weight: 700; color: var(--box-light); }
.daily { display: flex; align-items: center; gap: 6px; } .daily svg { width: 16px; height: 16px; color: var(--box); }
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.sticker { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.sticker > span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: #fff; opacity: .5;
  box-shadow: 0 0 0 4px #fff, 0 8px 16px -10px #6b2a3d; }
.sticker svg { width: 26px; height: 26px; }
.sticker.got > span { opacity: 1; background: linear-gradient(145deg, var(--box-light), var(--box)); rotate: -6deg; }
.sticker.got:nth-child(even) > span { rotate: 5deg; background: linear-gradient(145deg, #ffd36e, var(--gold)); }
.sticker.got { color: var(--ink); }
.sticker.big { margin: 6px auto 0; }
.sticker.big > span { width: 96px; height: 96px; } .sticker.big svg { width: 44px; height: 44px; }
.row-card { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.row-card > svg { width: 24px; height: 24px; color: var(--box); margin-top: 2px; }
.row-card .cta, .row-card .ghost { min-height: 46px; }
.email-f { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.email-f input { min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.email-f .cta { width: auto; min-height: 48px; padding: 12px 16px; }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); width: max-content; }
.langs button { min-height: 36px; padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.langs button[aria-pressed=true] { background: var(--ink); color: var(--cream); }

/* ── sheets ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: #3d1f2966; backdrop-filter: blur(3px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 92dvh; overflow-y: auto; max-width: 560px; margin: 0 auto;
  background: var(--cream); border-radius: 26px 26px 0 0; padding: 12px 18px calc(22px + var(--safe-b));
  animation: up .32s cubic-bezier(.2,.9,.2,1) both; }
.scrim { z-index: 59; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 14px; }
.try { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.try-thumb { width: 78px; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 24px -14px #6b2a3d99; }
.try-thumb.art { display: grid; place-items: center; background: linear-gradient(160deg, var(--box-light), var(--box)); color: #fff; }
.try-thumb.art svg { width: 32px; height: 32px; }
.try h2 { font-size: 23px; margin: 4px 0 2px; }
.try.with-ex { grid-template-columns: 64px 1fr 64px; gap: 10px; }
.try.with-ex .try-thumb { width: 64px; }
.an-ex { margin: 0; text-align: center; }
.an-ex video { width: 64px; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 2px var(--box), 0 10px 20px -12px #6b2a3d; }
.an-ex figcaption { font-size: 10.5px; font-weight: 700; color: var(--box-deep); margin-top: 4px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.ref-wrap { position: relative; }
.ref-pick { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; width: 100%; margin-top: 10px; padding: 10px 48px 10px 12px;
  border-radius: 14px; border: 1.5px dashed var(--rose); background: #fff7fb; text-align: left; }
.ref-pick svg { width: 26px; height: 26px; justify-self: center; color: var(--box); }
.ref-pick b { display: block; font-size: 14px; } .ref-pick small { display: block; font-size: 12px; color: var(--muted); }
.ref-pick .ref-img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; }
.ref-pick.has { border-style: solid; border-color: var(--box); }
.ref-x { position: absolute; top: 50%; right: 10px; translate: 0 -40%; width: 32px; height: 32px; border-radius: 32px;
  background: var(--paper); border: 1.5px solid var(--line); font-size: 18px; line-height: 1; color: var(--muted); }
.motions { display: flex; flex-wrap: wrap; gap: 8px; }
.motions button { min-height: 42px; padding: 9px 14px; border-radius: 99px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; }
.motions button[aria-pressed=true] { background: var(--box); border-color: var(--box); color: #fff; }
.packs { display: grid; gap: 10px; margin: 16px 0; }
.pack { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 18px; border-radius: 18px; min-height: 64px;
  background: var(--paper); border: 1.5px solid var(--line); text-align: left; }
.pack b { font-size: 17px; } .pack small { color: var(--muted); font-size: 13px; grid-column: 1; }
.pack .price { grid-row: 1 / 3; grid-column: 2; font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 700; color: var(--berry); }
.pack.best { border-color: var(--box); box-shadow: 0 0 0 3px #f32a9622; }
.pack.picked { background: #fff0f7; border-color: var(--box); }
.gift-note { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 16px;
  background: linear-gradient(120deg, #fff0f7, #ffe3f1); border: 1.5px solid #f32a9644; }
.gift-note svg { width: 28px; height: 28px; color: var(--box); }
.gift-note b { display: block; } .gift-note small { display: block; font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 70;
  width: max-content; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); font-size: 14px;
  font-weight: 500; box-shadow: var(--shadow); animation: rise .25s both; }

.ticket { margin: 22px auto 10px; width: min(300px, 90%); padding: 22px 20px; border-radius: 20px; background: var(--paper); text-align: center;
  border: 1.5px dashed var(--rose); position: relative; }
.ticket b { display: block; font-family: 'Playfair Display', serif; font-size: 64px; line-height: 1; color: var(--berry); }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); transform: translateY(-50%); }
.ticket::before { left: -12px; } .ticket::after { right: -12px; }

@media (min-width: 700px) {
  .vw-stage { padding: 0 60px; }
  .vw-info { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
