/* ViVi — design system ------------------------------------------------------ */
@property --tint {
  syntax: '<color>';
  inherits: true;
  initial-value: #ece8e3;
}
@property --glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #f8f5f1;
}

:root {
  --ink: #141313;
  --ink-2: #3a3634;
  --muted: #857e78;
  --line: rgba(20, 19, 19, 0.1);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --pink: #ff4f8b;
  --lilac: #c8b6ff;
  --butter: #f5e39a;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --rail: 40vh;
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 17.4C9.4 17 .6 11.3.6 5.4.6 2.6 2.7.5 5.3.5c1.9 0 3.6 1.1 4.7 2.7C11.1 1.6 12.8.5 14.7.5c2.6 0 4.7 2.1 4.7 4.9 0 5.9-8.8 11.6-9.4 12z' fill='%23FF4F8B'/%3E%3C/svg%3E");
  --tint: #ece8e3;
  --glow: #f8f5f1;
}
body[data-cat='lace'] { --tint: #f0e3e4; --glow: #fbf3f3; }
body[data-cat='comfort'] { --tint: #ede5db; --glow: #faf6f0; }
body[data-cat='sport'] { --tint: #e4e6ee; --glow: #f6f7fb; }
body[data-cat='sleep'] { --tint: #eee8d9; --glow: #fbf8ef; }
body[data-view='live'] { --tint: #e9e3e6; --glow: #fbf6f8; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  overflow: hidden;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  transition: --tint 1.1s var(--ease), --glow 1.1s var(--ease);
  overscroll-behavior: none;
  touch-action: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.studio {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 75% at 50% 40%, var(--glow) 0%, color-mix(in srgb, var(--glow) 40%, var(--tint)) 38%, var(--tint) 70%, color-mix(in srgb, var(--tint) 88%, #8a7b70) 100%);
}
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 1; outline: none; }
.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-size: 160px;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(1%, 3%); }
}

/* wordmark ---------------------------------------------------------------- */
.wm { font-weight: 800; letter-spacing: -0.055em; line-height: 0.8; white-space: nowrap; display: inline-block; }
.wm-i { position: relative; display: inline-block; }
.wm-i .dot {
  position: absolute;
  left: 50%;
  top: -0.1em;
  width: 0.21em;
  height: 0.19em;
  transform: translateX(-46%);
  background: var(--heart) center / contain no-repeat;
}

/* loader ------------------------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
}
.loader__mark { font-size: clamp(84px, 14vw, 180px); }
.loader__mark .wm-i .dot { animation: beat 1.1s var(--ease) infinite; }
@keyframes beat { 0%, 100% { transform: translateX(-46%) scale(1); } 30% { transform: translateX(-46%) scale(1.35); } }
.loader__bar { width: min(320px, 70vw); height: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--lilac), var(--pink)); transition: width 0.35s var(--ease); }
.loader__meta { width: min(320px, 70vw); display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.02em; opacity: 0.7; }

/* top chrome -------------------------------------------------------------- */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 30px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.ticker__track { display: flex; gap: 22px; align-items: center; height: 100%; width: max-content; animation: tick 40s linear infinite; padding-left: 22px; }
.ticker__track span:nth-child(even) { color: var(--pink); }
@keyframes tick { to { transform: translateX(-50%); } }

.top {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 20;
  height: 64px;
  padding: 0 clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.top__nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.top__nav a { position: relative; opacity: 0.85; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__logo { font-size: 26px; }
.top__actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background 0.3s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.6); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.bag-btn { height: 40px; padding: 0 8px 0 16px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(14px); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.7); }
.bag-count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; }
.bag-count.bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.4); background: var(--pink); } }

/* closet hero ------------------------------------------------------------- */
.hero {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(100vh - var(--rail) + 46px);
  z-index: 5;
  text-align: center;
  pointer-events: none;
}
.hero__wm { margin: 0; font-size: clamp(64px, min(12vw, 16vh), 180px); font-weight: 800; line-height: 1; }
.hero__wm .wm { display: inline-block; }
.hero__wm .ch { display: inline-block; }
.hero__tag { margin: 14px 0 0; font-size: clamp(13px, 1.1vw, 15px); color: var(--ink-2); letter-spacing: 0.01em; }
.hero__tag em { font-size: 1.25em; }

.rack-label {
  position: fixed;
  left: 50%;
  top: calc(var(--rail) + 32.5vh);
  transform: translateX(-50%);
  z-index: 6;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.rack-label__row { display: flex; gap: 6px; }
.rack-label__cat, .rack-label__tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 9px; border-radius: 99px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.8); }
.rack-label__tag { background: var(--ink); color: #fff; border-color: var(--ink); }
.rack-label__name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; overflow: hidden; line-height: 1.15; }
.rack-label__name span { display: inline-block; }
.rack-label__meta { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.rack-label__dots { display: flex; gap: 4px; }
.rack-label__dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); }
.rack-label__cta { margin-top: 4px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 99px; transition: background 0.3s, color 0.3s; }
.rack-label__cta:hover { background: var(--ink); color: #fff; }
.rack-label__cta span { display: inline-block; transition: transform 0.4s var(--ease); }
.rack-label__cta:hover span { transform: translate(2px, -2px); }

.hint, .counter {
  position: fixed;
  bottom: 38px;
  z-index: 6;
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hint { left: clamp(16px, 3vw, 40px); }
.hint__icon { width: 34px; height: 22px; border: 1.5px solid var(--ink-2); border-radius: 99px; position: relative; }
.hint__icon i { position: absolute; top: 50%; left: 6px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink); animation: swipe 1.8s var(--ease-io) infinite; }
@keyframes swipe { 50% { transform: translateX(14px); } }
.counter { right: clamp(16px, 3vw, 40px); font-variant-numeric: tabular-nums; gap: 6px; }
.counter b { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }

/* dock -------------------------------------------------------------------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 99px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 50px -24px rgba(40, 28, 20, 0.35);
}
.dock button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: color 0.45s var(--ease); white-space: nowrap; }
.dock button.is-active { color: #fff; }
.dock button sup { font-size: 9px; margin-left: 3px; opacity: 0.55; font-weight: 500; }
.dock__pill { position: absolute; top: 5px; left: 0; height: 38px; border-radius: 99px; background: var(--ink); transition: transform 0.6s var(--ease), width 0.6s var(--ease); z-index: 0; }

/* detail ------------------------------------------------------------------ */
.detail, .live { position: fixed; inset: 0; z-index: 12; pointer-events: none; visibility: hidden; }
body[data-view='detail'] .detail, body[data-view='live'] .live { visibility: visible; }
.detail > *, .live > * { pointer-events: auto; }
.detail .hotspots { pointer-events: none; }

.back-btn {
  position: fixed;
  top: 110px;
  left: clamp(16px, 3vw, 40px);
  height: 42px;
  padding: 0 18px 0 14px;
  border-radius: 99px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, color 0.3s;
}
.back-btn span { transition: transform 0.4s var(--ease); }
.back-btn:hover { background: var(--ink); color: #fff; }
.back-btn:hover span { transform: translateX(-3px); }

.arrow {
  position: fixed;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: #fff; transform: scale(1.08); }
.arrow--prev { left: clamp(16px, 4vw, 64px); }
.arrow--next { left: calc(100vw - 460px - 52px - 24px); }

.spin {
  position: fixed;
  left: calc((100vw - 440px) / 2);
  transform: translateX(-50%);
  bottom: 96px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  pointer-events: none !important;
}
.spin b { color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; min-width: 34px; }
.spin__ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.spin__ring circle { fill: none; stroke: rgba(20, 19, 19, 0.15); stroke-width: 3; }
.spin__ring .spin__arc { stroke: var(--ink); stroke-dasharray: 119.4; stroke-dashoffset: 119.4; stroke-linecap: round; }

.hotspots { position: fixed; inset: 0; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; transition: opacity 0.35s; }
.hs.is-hidden { opacity: 0; pointer-events: none; }
.hs__btn {
  position: absolute;
  left: -15px;
  top: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.hs__btn::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.hs__tip {
  position: absolute;
  left: 22px;
  top: -14px;
  width: 210px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 19, 19, 0.88);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-6px) scale(0.96);
  transform-origin: left top;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.hs__tip b { display: block; font-size: 14px; margin-bottom: 2px; }
.hs--left .hs__tip { left: auto; right: 22px; transform-origin: right top; transform: translateX(6px) scale(0.96); }
.hs:hover .hs__btn, .hs.is-open .hs__btn { transform: rotate(45deg) scale(1.08); background: #fff; }
.hs:hover .hs__tip, .hs.is-open .hs__tip { opacity: 1; transform: none; }

.card {
  position: fixed;
  right: clamp(16px, 2.6vw, 40px);
  top: 106px;
  bottom: 96px;
  width: 420px;
  border-radius: 30px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 40px 90px -40px rgba(50, 35, 25, 0.35);
  overflow: hidden;
}
.card__scroll { height: 100%; overflow-y: auto; padding: 28px 30px 26px; scrollbar-width: thin; }
.card__chips { display: flex; gap: 6px; margin-bottom: 14px; }
.chip { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); }
.chip--hot { background: var(--pink); border-color: var(--pink); color: #fff; }
.card__name { margin: 0; font-size: 44px; line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; }
.card__name .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.card__name .w > span { display: inline-block; }
.card__line { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.card__price { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; }
.card__price b { font-size: 26px; letter-spacing: -0.03em; }
.stars { font-size: 12.5px; color: var(--ink-2); }
.stars i { font-style: normal; color: var(--muted); }
.card__blurb { margin: 14px 0 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.opt { margin-top: 18px; }
.opt__label { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; }
.opt__label b { color: var(--ink); font-weight: 600; margin-right: auto; margin-left: 6px; }
.opt__hint { font-size: 11.5px; }
.link { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 34px; height: 34px; border-radius: 50%; position: relative; transition: transform 0.4s var(--ease); }
.sw i { position: absolute; inset: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 -6px 10px rgba(0, 0, 0, 0.12), inset 0 5px 8px rgba(255, 255, 255, 0.35); }
.sw::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ink); transform: scale(0.8); opacity: 0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.sw.is-active::after { opacity: 1; transform: scale(1); }
.sw:hover { transform: scale(1.08); }
.swatches--sm .sw { width: 30px; height: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-width: 46px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.65); font-size: 14px; font-weight: 600; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.chips button:hover { border-color: var(--ink); }
.chips button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.card__ctas { display: grid; gap: 10px; margin-top: 24px; }
.btn { height: 54px; border-radius: 99px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.btn:active { transform: scale(0.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); }
.btn--live {
  position: relative;
  background: #fff;
  border: 1.5px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(120deg, var(--lilac), var(--pink), var(--butter));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.btn--live:hover { box-shadow: 0 14px 34px -14px rgba(255, 79, 139, 0.55); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 79, 139, 0.6); animation: live 1.6s infinite; display: inline-block; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255, 79, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 139, 0); } }
.acc { margin-top: 22px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.acc summary::after { content: '+'; font-weight: 400; transition: transform 0.3s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* live -------------------------------------------------------------------- */
.live__badge {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  height: 42px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.live__badge-sub { font-weight: 400; opacity: 0.6; font-size: 12.5px; }
.panel {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 270px;
  padding: 22px;
  border-radius: 26px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 40px 90px -40px rgba(50, 35, 25, 0.3);
}
.panel--left { left: clamp(16px, 3vw, 44px); }
.panel--right { right: clamp(16px, 3vw, 44px); }
.panel__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.panel__title { margin: 0; font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.panel__line { margin: 6px 0 14px; font-size: 12.5px; color: var(--muted); }
.panel__note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.models { display: flex; gap: 6px; }
.models button { flex: 1; padding: 8px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 600; display: grid; justify-items: center; gap: 6px; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.models button i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.18); }
.models button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-hero { margin: 16px 0 12px; font-size: 76px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; overflow: hidden; }
.size-hero span { display: inline-block; }
.cupstep { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.cupstep button { height: 38px; border-radius: 10px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.cupstep button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.ghost-btn { margin-top: 12px; width: 100%; height: 40px; border-radius: 99px; border: 1px dashed rgba(20, 19, 19, 0.3); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.ghost-btn:hover, .ghost-btn.is-on { background: var(--ink); color: #fff; border-style: solid; }
.ghost-btn__icon { font-size: 10px; }
.fit { margin: 18px 0 12px; display: grid; gap: 10px; }
.fit__row { display: grid; grid-template-columns: 74px 1fr; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.fit__row i { height: 6px; border-radius: 6px; background: rgba(20, 19, 19, 0.08); overflow: hidden; }
.fit__row b { display: block; height: 100%; width: 50%; border-radius: 6px; background: linear-gradient(90deg, var(--lilac), var(--pink)); transition: width 0.9s var(--ease); }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 13px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: '✓'; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #d9f5df; color: #1b7a39; font-size: 11px; font-weight: 800; }
.checks.pop li { animation: pop 0.6s var(--ease) both; }
.checks.pop li:nth-child(2) { animation-delay: 0.08s; }
.checks.pop li:nth-child(3) { animation-delay: 0.16s; }
@keyframes pop { 0% { opacity: 0; transform: translateX(-6px); } }
.panel .btn { width: 100%; height: 48px; font-size: 14px; }
.views {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 99px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.views button { height: 38px; padding: 0 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
.views button.is-active { background: var(--ink); color: #fff; }
.live__caption { position: fixed; left: 50%; top: 166px; transform: translateX(-50%); margin: 0; font-size: 15px; color: var(--ink-2); white-space: nowrap; pointer-events: none !important; }
.live__caption em { font-size: 1.3em; color: var(--ink); }
/* photoreal model: show the whole head, so no chin-crop mask, and the caption moves below */
body[data-view='live'][data-face] #gl { -webkit-mask-image: none; mask-image: none; }
body[data-face] .live__caption { top: auto; bottom: 92px; }
#models button.is-loading i { animation: vv-pulse 0.9s ease-in-out infinite alternate; }
@keyframes vv-pulse { to { opacity: 0.35; transform: scale(0.8); } }
body[data-view='live'] #gl {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 9%, #000 21%);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 9%, #000 21%);
}

/* view switching ------------------------------------------------------------ */
.hero, .rack-label, .hint, .counter { transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
body:not([data-view='rack']) .hero { opacity: 0; transform: translateY(-30px); }
body:not([data-view='rack']) .rack-label { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
body:not([data-view='rack']) .hint, body:not([data-view='rack']) .counter { opacity: 0; }
body[data-view='live'] .dock, body[data-view='loading'] .dock { opacity: 0; pointer-events: none; transform: translate(-50%, 30px); }
.dock { transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }

/* wipe + cursor + toast ----------------------------------------------------- */
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: var(--ink); clip-path: circle(0% at 50% 50%); }
.wipe::after { content: 'ViVi Live'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -0.05em; }
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.3s, opacity 0.3s;
  mix-blend-mode: normal;
}
.cursor span { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
.cursor.is-big { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.is-big span { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } }
.toast {
  position: fixed;
  left: 50%;
  top: 108px;
  transform: translate(-50%, -20px);
  z-index: 55;
  padding: 12px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .card { width: 360px; }
  .arrow--next { left: calc(100vw - 390px - 52px - 20px); }
  .spin { left: calc((100vw - 380px) / 2); }
  .card__name { font-size: 38px; }
}
@media (max-width: 820px) {
  .top { height: 56px; }
  .top__nav { display: none; }
  .top { grid-template-columns: auto 1fr auto; }
  .top__logo { grid-column: 1; }
  .top__actions { grid-column: 3; }
  .hint { display: none; }
  .counter { bottom: 86px; right: 16px; }
  .dock { max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; bottom: 16px; }
  .dock button { padding: 0 14px; font-size: 13px; }
  .card { left: 10px; right: 10px; width: auto; top: auto; bottom: 74px; height: 46vh; border-radius: 26px; }
  .card__scroll { padding: 20px 20px 18px; }
  .card__name { font-size: 32px; }
  .arrow { top: 30vh; }
  .arrow--prev { left: 10px; }
  .arrow--next { left: auto; right: 10px; }
  .spin { display: none; }
  .back-btn { top: 98px; left: 12px; }
  .live__badge { top: 98px; left: auto; right: 12px; transform: none; }
  .live__badge-sub { display: none; }
  .panel { top: auto; transform: none; bottom: 74px; width: calc(50vw - 16px); padding: 14px; border-radius: 20px; }
  .panel--left { left: 10px; }
  .panel--right { right: 10px; }
  .size-hero { font-size: 44px; margin: 8px 0; }
  .cupstep { grid-template-columns: repeat(3, 1fr); }
  .fit, .checks, .panel__line, .panel__note { display: none; }
  .panel__title { font-size: 20px; margin-bottom: 10px; }
  .live__caption { display: none; }
  .views { bottom: 16px; max-width: calc(100vw - 24px); overflow-x: auto; }
  .views button { padding: 0 12px; }
  .models button { font-size: 11px; padding: 6px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .grain, .hint__icon i { animation: none; }
}
