/* mybaddii v2 r12 — honest studio. Mobile: doll → looks rail → custom panel.
   Desktop: simple two columns, doll left (fixed), wardrobe right. No diagonal
   glass, no overlapping panels, no phone frame around the doll, no shine. */
: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 18px calc(30px + env(safe-area-inset-bottom)); }
/* hidden must always win — .reveal's display:grid was overriding it */
.scr[hidden] { display: none !important; }

/* ── 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 12vw 18px; margin: 0 -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: shared ─────────────────────────────── */
.studio-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; 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); }
.icon-btn:hover { background: rgba(255,45,141,.14); }

.giant-name {
  text-align: center; font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(42px, 13vw, 62px); line-height: .95; margin-top: 10px;
  background: linear-gradient(178deg, #ffd9ec 25%, var(--hot2) 60%, var(--hot) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 26px rgba(255,45,141,.4));
}
.stage-zone { position: relative; margin-top: 6px; }
.stage { margin: 6px auto 0; width: min(74vw, 330px); position: relative; }
.stage::after { /* stage light / 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#stage-img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--r);
  position: relative; z-index: 1;
  box-shadow: 0 26px 70px rgba(0,0,0,.55), 0 0 44px rgba(255,45,141,.12);
}
#stage-next { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r); opacity: 0; transition: opacity .6s ease; z-index: 2; }
#stage-next.show { opacity: 1; }
#render-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,45,141,.9); color: #fff;
  font: 600 12.5px Inter, sans-serif; animation: badgepulse 1.6s ease-in-out infinite; }
@keyframes badgepulse { 50% { opacity: .55; } }
.stage.styling img#stage-img { filter: saturate(.45) brightness(.55); transition: filter .4s; }
.stage.styling::before {
  content: ''; position: absolute; inset: 14%; z-index: 3; border-radius: 50%;
  border: 3px solid rgba(255,79,163,.75); animation: stylepulse 1.4s ease-in-out infinite; pointer-events: none;
}
@keyframes stylepulse { 0%,100% { transform: scale(.94); opacity: .45; } 50% { transform: scale(1.03); opacity: 1; } }
.recipe-line { margin: 14px auto 0; max-width: 360px; font-size: 12.5px; color: var(--dim); text-align: center; min-height: 16px; }

.w-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--hot2); margin: 22px 0 2px; }
.w-sub { font-size: 12.5px; color: var(--dim); margin: 0 0 10px; }

/* her looks — complete looks, one tap */
.look-grid { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 8px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.look-grid::-webkit-scrollbar { display: none; }
.look-tile {
  flex: 0 0 auto; width: 132px; border-radius: 18px; 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-tile img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.look-tile .lnm {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 11.5px; font-weight: 600;
  padding: 20px 6px 8px; text-align: center;
  background: linear-gradient(transparent, rgba(16,4,17,.95));
}
.look-tile:hover { border-color: rgba(255,79,163,.6); }
.look-tile.sel { border-color: var(--neon); box-shadow: 0 0 22px rgba(255,79,163,.5); transform: translateY(-3px); }

/* make her yours — the honest custom path */
.custom-panel {
  margin: 26px 0 0; padding: 18px 16px 16px; border-radius: 20px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,79,163,.3);
}
.cp-title { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 26px; color: #fbe9f4; }
.cp-sub { font-size: 12.5px; line-height: 1.55; color: var(--dim); margin: 6px 0 14px; }
.cp-sub em { color: var(--hot2); font-style: normal; font-weight: 600; }
.cp-group { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--hot2);
  margin: 16px 0 2px; border-top: 1px solid rgba(255,79,163,.18); padding-top: 12px; }
.cp-dim { margin: 0 0 10px; }
.cp-lab { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cp-chip {
  padding: 8px 13px; border-radius: 999px; font: 500 13px Inter, sans-serif;
  background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid rgba(255,255,255,.13);
  transition: background .15s, border-color .15s;
}
.cp-chip:hover { border-color: rgba(255,79,163,.55); }
.cp-chip.sel { background: linear-gradient(135deg, var(--hot), var(--neon)); border-color: transparent; color: #fff; }
.cp-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-sw { width: 32px; height: 32px; border-radius: 999px; border: 2px solid rgba(255,255,255,.2); }
.cp-sw:hover { border-color: rgba(255,79,163,.6); }
.cp-sw.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--hot), 0 0 14px rgba(255,45,141,.6); }
.cp-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cp-actions .cta.small { width: auto; margin: 0; padding: 13px 26px; font-size: 19px; }
.ghost-btn {
  padding: 11px 16px; border-radius: 999px; font: 500 13px Inter, sans-serif;
  color: var(--hot2); border: 1px solid rgba(255,79,163,.4); background: transparent;
}
.ghost-btn:hover { background: rgba(255,45,141,.1); }
.cp-note { margin-top: 10px; font-size: 12.5px; color: var(--hot2); min-height: 16px; }

/* muses */
.muse-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.muse-row::-webkit-scrollbar { display: none; }
.muse { flex: 0 0 auto; width: 66px; border-radius: 14px; overflow: hidden; background: #1d0c22;
  border: 2px solid rgba(255,255,255,.08); padding-bottom: 4px; }
.muse img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: 50% 12%; }
.muse span { display: block; font: 500 11px Inter, sans-serif; text-align: center; padding-top: 3px; }
.muse:hover { border-color: rgba(255,79,163,.6); }
.muse.sel { border-color: var(--hot); box-shadow: 0 0 14px rgba(255,45,141,.5); }

.done-bar { margin-top: 20px; }
.cta {
  display: block; width: 100%; margin: 0 auto; padding: 18px;
  border-radius: 999px; font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ff5ba6 0%, var(--hot) 45%, #d40f74 100%);
  box-shadow: 0 0 0 1.5px rgba(255,138,193,.5), 0 14px 44px rgba(255,45,141,.48), inset 0 2px 0 rgba(255,255,255,.4);
  transition: transform .15s ease;
}
.cta::after { content: ''; position: absolute; left: 6%; right: 6%; top: 3px; height: 42%;
  border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.3), transparent); pointer-events: none; }
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .45; cursor: default; box-shadow: none; }

/* ── studio: desktop — two clean columns ────────── */
@media (min-width: 1000px) {
  .studio.scr {
    max-width: 1220px; display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    column-gap: 46px; align-items: start;
    padding: 18px 32px 48px;
  }
  .studio .studio-top { grid-column: 1 / -1; margin-bottom: 10px; }
  .doll-col { grid-column: 1; position: sticky; top: 18px; }
  .ward-col { grid-column: 2; }
  .doll-col .giant-name { font-size: 56px; margin-top: 0; }
  .doll-col .stage { width: 100%; max-width: 400px; }
  .doll-col .stage img#stage-img { border-radius: 18px; }
  .doll-col .recipe-line { max-width: none; }

  /* 2 rows × 4 big look tiles */
  .look-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    overflow: visible; margin: 0; padding: 2px 0 4px; }
  .look-tile { width: auto; }

  .cp-chips { gap: 8px; }
  .muse { width: 74px; }
  /* "she's done" pinned bottom-right — a floating pill, not a panel over a panel */
  .ward-col { padding-bottom: 96px; }
  .done-bar { position: fixed; right: 32px; bottom: 26px; z-index: 20; }
  .done-bar .cta { width: auto; min-width: 260px; padding: 16px 30px; font-size: 22px;
    box-shadow: 0 0 0 1.5px rgba(255,138,193,.5), 0 10px 34px rgba(0,0,0,.55), 0 14px 44px rgba(255,45,141,.45), inset 0 2px 0 rgba(255,255,255,.4); }
}

/* ── 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); }
.tp-status { margin: 10px 0 0; font-size: 13px; text-align: center; color: var(--hot2); }

/* ── 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; }
.tt-strip { display: flex; gap: 8px; justify-content: center; margin: 10px 0 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: var(--hot2); }
.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; }
