/* mybaddii v2 r3 — layout locked to design-mockups/mock-a (landing) + mock-b (studio). */
:root {
  --bg: #170618;
  --bg2: #2a0f2e;
  --ink: #fdeef7;
  --dim: #c495bd;
  --hot: #ff2d8d;
  --hot2: #ff8ac1;
  --neon: #ff4fa3;
  --card: #22102a;
  --line: #4d2050;
  --r: 24px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}
* { margin: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; }
body {
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255,45,141,.14), transparent 60%),
    radial-gradient(120% 90% at 50% 10%, var(--bg2) 0%, var(--bg) 62%);
  color: var(--ink); font-family: var(--sans); min-height: 100svh;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
.scr { max-width: 480px; margin: 0 auto; padding: 18px 0 calc(30px + env(safe-area-inset-bottom)); }

/* --- three-view turntable strip (buy screen) --- */
.tt-strip { display: flex; gap: 8px; justify-content: center; margin: 10px 18px 0; min-height: 0; }
.tt-strip img { width: 30%; border-radius: 12px; border: 1px solid rgba(255,79,163,.35); }
.tt-wait { font: 500 12px Inter, sans-serif; color: #ff8ac1; }

/* --- the wardrobe (tap = instant change) --- */
.w-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #ff8ac1; margin: 14px 18px 6px; }
.w-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 8px; scrollbar-width: none; }
.w-rail::-webkit-scrollbar { display: none; }
.w-tile { flex: 0 0 auto; width: 86px; border-radius: 14px; background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.1); padding: 0 0 5px; cursor: pointer; }
.w-tile .im { width: 82px; height: 92px; border-radius: 12px 12px 6px 6px; background-repeat: no-repeat; }
.w-tile span { display: block; font: 500 11px Inter, sans-serif; color: #fdeef7; text-align: center; padding-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tile.sel { border-color: #ff2d8d; box-shadow: 0 0 14px rgba(255,45,141,.55); }
.w-tile.flash { animation: tileflash .5s ease; }
@keyframes tileflash { 50% { transform: scale(1.08); border-color: #ff4fa3; } }
.w-swatches { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 8px; scrollbar-width: none; }
.w-sw { flex: 0 0 auto; min-width: 40px; height: 40px; border-radius: 999px; border: 2px solid rgba(255,255,255,.18);
  cursor: pointer; padding: 0 10px; font: 600 11px Inter, sans-serif; color: #fff; background: rgba(255,255,255,.06); }
.w-sw.sel { border-color: #ff2d8d; box-shadow: 0 0 12px rgba(255,45,141,.6); }
.recipe-line { margin: 6px 22px 0; font-size: 12px; color: #c495bd; text-align: center; min-height: 16px; }
#stage-next { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease; }
#stage-next.show { opacity: 1; }
#tint-hint { position: absolute; left: 30%; right: 30%; top: 3%; height: 30%; border-radius: 50%;
  opacity: 0; transition: opacity .4s; pointer-events: none; mix-blend-mode: color; }
#tint-hint.on { opacity: .75; }
#render-badge { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 5px 12px;
  border-radius: 999px; background: rgba(255,45,141,.85); color: #fff; font: 600 12px Inter, sans-serif;
  animation: badgepulse 1.6s ease-in-out infinite; }
@keyframes badgepulse { 50% { opacity: .55; } }

/* --- trait studio (make her yours) --- */
.cta.ghost { background: transparent; color: #ff8ac1; border: 1px solid rgba(255,79,163,.5); box-shadow: none; }
.trait-panel { margin: 10px 18px 0; padding: 14px 14px 16px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,79,163,.28); border-radius: 18px; }
.tp-hint { margin: 0 0 10px; font-size: 13px; color: #c495bd; text-align: center; }
.t-dim { margin: 0 0 10px; }
.t-lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ff8ac1; margin: 0 0 6px 2px; }
.t-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.t-row::-webkit-scrollbar { display: none; }
.t-chip { flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; font: 500 13px Inter, sans-serif;
  background: rgba(255,255,255,.06); color: #fdeef7; border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.t-chip.sel { background: linear-gradient(135deg, #ff2d8d, #ff4fa3); border-color: transparent; color: #fff; }
.tp-status { margin: 10px 0 0; font-size: 13px; text-align: center; color: #ff8ac1; }
.stage.styling img { filter: saturate(.4) brightness(.55); transition: filter .4s; }
.stage.styling::after { content: ''; position: absolute; inset: 12%; border-radius: 50%;
  border: 3px solid rgba(255,79,163,.7); animation: stylepulse 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes stylepulse { 0%,100% { transform: scale(.96); opacity: .5; } 50% { transform: scale(1.02); opacity: 1; } }
/* hidden must always win — .reveal's display:grid was overriding it, leaking the
   empty spotlight (broken img + dead scroll) under the studio screen */
.scr[hidden] { display: none !important; }
.scr > *:not(.girl-carousel) { margin-left: 18px; margin-right: 18px; }

/* ── landing (mock-a) ───────────────────────────── */
.brand { text-align: center; padding: 30px 0 6px; }
.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(52px, 15vw, 76px); letter-spacing: -0.03em; line-height: .95;
  background: linear-gradient(175deg, #ffd9ec 20%, var(--hot2) 55%, var(--hot) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255,45,141,.35));
}
.tag { color: var(--dim); margin-top: 12px; font-size: 14.5px; letter-spacing: .16em; }
.heart-divider {
  margin: 22px auto 4px; display: flex; align-items: center; gap: 12px; justify-content: center;
  color: var(--neon); font-size: 20px;
}
.heart-divider::before, .heart-divider::after {
  content: ''; height: 1px; width: 84px;
  background: linear-gradient(90deg, transparent, var(--neon));
}
.heart-divider::after { background: linear-gradient(90deg, var(--neon), transparent); }
.heart-divider span { text-shadow: 0 0 14px var(--neon), 0 0 34px var(--neon); }

.girl-carousel {
  display: flex; gap: 16px; overflow-x: auto; padding: 26px 20vw 18px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.girl-carousel::-webkit-scrollbar { display: none; }
.girl-card {
  scroll-snap-align: center; flex: 0 0 auto; width: min(62vw, 270px);
  border-radius: 28px; overflow: hidden; position: relative;
  background: var(--card); border: 1.5px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  transform: scale(.92); opacity: .75;
}
.girl-card.focus {
  transform: scale(1); opacity: 1; border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 0 36px rgba(255,79,163,.4), 0 24px 60px rgba(0,0,0,.55);
}
.girl-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.girl-card .nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 14px; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 30px;
  color: var(--hot2); background: linear-gradient(transparent, rgba(16,4,17,.94));
  text-shadow: 0 0 18px rgba(255,79,163,.5);
}
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: all .2s; }
.dots i.on { background: var(--neon); box-shadow: 0 0 10px var(--neon); width: 16px; }
.hint { color: var(--dim); font-size: 13.5px; text-align: center; margin-top: 16px; letter-spacing: .12em; }

/* ── studio (mock-b) ────────────────────────────── */
.studio-top { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.studio-brand {
  text-align: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 22px;
  color: var(--hot2); display: grid; gap: 2px;
}
.studio-brand span { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .3em; color: var(--neon); }
.icon-btn {
  display: grid; place-items: center; gap: 1px; min-width: 58px; padding: 9px 12px;
  border-radius: 18px; border: 1px solid var(--line); background: rgba(255,45,141,.07);
  color: var(--hot2); font-size: 17px; font-weight: 700; line-height: 1;
  transition: transform .12s ease, background .2s;
}
.icon-btn small { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; color: var(--dim); }
.icon-btn:active { transform: scale(.94); }
.giant-name {
  text-align: center; font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(46px, 15vw, 68px); line-height: .9; margin-top: 10px;
  color: #fbe9f4; text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.stage-zone { position: relative; margin-top: -8px; }
.neon-sign {
  position: absolute; right: 4px; top: 30%; z-index: 2;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 19px; line-height: 1.25;
  color: var(--neon); text-shadow: 0 0 12px var(--neon), 0 0 30px var(--neon);
  transform: rotate(-4deg); pointer-events: none;
}
.icon-btn.side { position: absolute; left: 6px; top: 34%; z-index: 2; }
.stage { margin: 6px auto 0; width: min(74vw, 330px); position: relative; }
.stage::after { /* the podium */
  content: ''; display: block; height: 46px; margin: -30px auto 0; width: 88%;
  border-radius: 50%; background: radial-gradient(50% 100% at 50% 40%, #ff4fa3 0%, #8f1257 45%, #3a0b2e 78%, transparent 80%);
  filter: blur(.4px); opacity: .85;
}
.stage img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--r);
  border: 1px solid var(--line); position: relative; z-index: 1;
  box-shadow: 0 26px 70px rgba(0,0,0,.55), 0 0 44px rgba(255,45,141,.12);
}
.shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--r);
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.shine.go { animation: sweep .55s ease-out forwards; }
@keyframes sweep { to { transform: translateX(120%); } }

.rail { display: flex; gap: 12px; overflow-x: auto; padding: 14px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.look-chip {
  width: 116px; border-radius: 20px; overflow: hidden; position: relative;
  background: var(--card); border: 2px solid var(--line);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.look-chip img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.look-chip.sel { border-color: var(--neon); box-shadow: 0 0 22px rgba(255,79,163,.5); transform: translateY(-4px); }
.look-chip .lnm {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; font-weight: 600;
  padding: 18px 6px 8px; text-align: center; letter-spacing: .02em;
  background: linear-gradient(transparent, rgba(16,4,17,.95));
}

.cta {
  display: block; width: calc(100% - 36px); margin: 16px auto 0; padding: 18px;
  border-radius: 999px; font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 24px; color: #fff;
  background: linear-gradient(120deg, var(--hot), #e0187f);
  box-shadow: 0 0 0 1px rgba(255,138,193,.35), 0 12px 40px rgba(255,45,141,.42), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease;
}
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .6; }

/* ── reveal ─────────────────────────────────────── */
.reveal { display: grid; place-items: center; min-height: 100svh; padding-top: 0; }
.spotlight {
  width: min(82vw, 360px); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 140px rgba(255,45,141,.3), 0 30px 90px rgba(0,0,0,.7);
  animation: arrive 3.6s cubic-bezier(.16,.8,.3,1) forwards;
}
.spotlight img { width: 100%; }
@keyframes arrive { from { opacity: 0; transform: scale(.86) translateY(24px); } to { opacity: 1; transform: none; } }
.reveal-ui { width: 100%; max-width: 420px; text-align: center; padding: 20px 6px 0; animation: fadeup .5s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reveal-line { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 27px; }
.name-row { display: flex; gap: 10px; margin: 16px 0 4px; }
#name-input {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 23px;
  text-align: center; padding: 13px; min-width: 0;
}
#name-input:focus { outline: 2px solid var(--hot); border-color: transparent; }
.recap { color: var(--dim); font-size: 16px; line-height: 1.65; }
.recap strong { color: var(--ink); }

/* ── buy ────────────────────────────────────────── */
.buy { text-align: center; }
.step-title { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 28px; margin: 22px 2px 14px; }
.card-wrap { width: min(70vw, 290px); margin: 4px auto 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.card-wrap canvas { width: 100%; height: auto; display: block; }
.share-row { display: flex; gap: 10px; margin-top: 14px; }
.share-row .icon-btn { flex: 1; font-size: 14px; padding: 13px; }
.buy-panel { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.buy-lede { color: var(--dim); font-size: 14.5px; line-height: 1.55; }
.size-row { display: flex; gap: 8px; margin: 16px 0 4px; }
.size-opt { flex: 1; padding: 12px 6px; border-radius: 16px; border: 1.5px solid var(--line); background: rgba(255,255,255,.02); }
.size-opt .sz { font-weight: 700; font-size: 15px; }
.size-opt .pr { color: var(--dim); font-size: 13px; margin-top: 2px; }
.size-opt.sel { border-color: var(--neon); background: rgba(255,45,141,.1); box-shadow: 0 0 14px rgba(255,79,163,.25); }
.buy-small { color: var(--dim); font-size: 12px; margin-top: 12px; }
