/* ═══════════════════════════════════════════════════════════
   ELITE PARFUM — Telegram Mini App
   Black velvet · champagne gold · editorial serif
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #050505;
  --bg-1: #0a0a0a;
  --bg-2: #101010;
  --bg-3: #161514;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .11);
  --hair: rgba(216, 180, 106, .22);
  --hair-2: rgba(216, 180, 106, .45);
  --ink: #f4efe6;
  --ink-2: rgba(244, 239, 230, .7);
  --ink-3: rgba(244, 239, 230, .44);
  --ink-4: rgba(244, 239, 230, .16);
  --gold: #d8b46a;
  --gold-hi: #f6e2a8;
  --gold-lo: #9c7533;
  --gold-grad: linear-gradient(118deg, #8a6528 0%, #c9a052 17%, #f4dd9e 33%, #dcb766 49%, #a87c33 65%, #e8cd8a 82%, #94702e 100%);
  --gold-text: linear-gradient(100deg, #b98d43 0%, #f6e3a8 28%, #d9b466 48%, #fff1c7 64%, #c39a4c 100%);
  --danger: #e59a8c;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-top: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --tabbar-h: 66px;
  --top-h: 60px;
  --g: 20px;
  --acc: 216 180 106;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); }
body {
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
em { font-style: italic; }
::selection { background: rgba(216, 180, 106, .35); }

.ic { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* ───────────── Background layers ───────────── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(120% 70% at 85% -10%, #1c1914 0%, #0b0a09 42%, #050505 75%); }
.bg__glow { position: absolute; border-radius: 50%; will-change: transform; }
.bg__glow--a { width: 120vw; height: 120vw; left: -40vw; top: -30vw; background: radial-gradient(circle, rgba(216, 180, 106, .12), transparent 62%); animation: drift-a 26s ease-in-out infinite alternate; }
.bg__glow--b { width: 110vw; height: 110vw; right: -50vw; bottom: -40vw; background: radial-gradient(circle, rgba(140, 92, 40, .14), transparent 60%); animation: drift-b 32s ease-in-out infinite alternate; }
#dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg__grain {
  position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
.bg__vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .65) 100%); }

@keyframes drift-a { to { transform: translate3d(18vw, 26vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-20vw, -30vh, 0) scale(.9); } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -7%); } 75% { transform: translate(-3%, 8%); } 100% { transform: translate(0, 0); } }

/* ───────────── Shell ───────────── */
.app { position: fixed; inset: 0; z-index: 1; }
.stage { position: absolute; inset: 0; overflow: hidden; }

.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: calc(var(--safe-top) + var(--top-h));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 40px);
  scrollbar-width: none;
  contain: layout paint;
}
.page::-webkit-scrollbar { display: none; }
.page.is-in { animation: page-in .8s var(--ease) both; }
.page.is-in-back { animation: page-in-back .7s var(--ease) both; }
.page.is-out { animation: page-out .5s var(--ease-io) both; pointer-events: none; }
.page.is-out-back { animation: page-out-back .45s var(--ease-io) both; pointer-events: none; }
@keyframes page-in { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes page-in-back { from { opacity: 0; transform: scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes page-out { to { opacity: 0; transform: scale(.965); filter: blur(6px); } }
@keyframes page-out-back { to { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(6px); } }
.perf-low .page.is-in, .perf-low .page.is-in-back, .perf-low .page.is-out, .perf-low .page.is-out-back { filter: none !important; animation-duration: .35s; }

/* Topbar */
.topbar {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  height: calc(var(--safe-top) + var(--top-h));
  padding: var(--safe-top) 14px 0;
  display: grid; grid-template-columns: 46px 1fr 46px; align-items: center;
  transition: background .5s var(--ease), border-color .5s, -webkit-backdrop-filter .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { background: linear-gradient(180deg, rgba(6, 6, 6, .94), rgba(6, 6, 6, .78)); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.topbar__logo { justify-self: center; display: block; height: 34px; opacity: 0; transform: translateY(-6px); transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s; }
.intro-done .topbar__logo { opacity: 1; transform: none; }
.topbar__logo svg { height: 100%; width: auto; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  color: var(--ink);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), background .3s, opacity .3s;
}
.iconbtn:active { transform: scale(.92); }
.iconbtn .ic { width: 20px; height: 20px; }
.iconbtn.is-empty { opacity: 0; pointer-events: none; }
.topbar__bag { justify-self: end; }
.topbar__left { justify-self: start; overflow: hidden; }
.topbar__left img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.topbar__left .avatar-txt { font: 600 13px/1 var(--serif); color: var(--gold-hi); letter-spacing: .04em; }
.topbar__left.has-avatar { border-color: var(--hair-2); padding: 2px; }
.dot-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--gold-grad); color: #1b1306;
  font: 700 10px/18px var(--sans); text-align: center;
  box-shadow: 0 0 0 2px var(--bg), 0 4px 14px rgba(216, 180, 106, .5);
  transform: scale(0); transition: transform .45s var(--spring);
}
.dot-badge.is-on { transform: scale(1); }
.bump { animation: bump .6s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.28); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }

/* Tabbar */
.tabbar {
  position: fixed; z-index: 45; left: 50%; bottom: calc(var(--safe-bottom) + 12px);
  width: min(calc(100% - 24px), 440px); height: var(--tabbar-h);
  transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 20, 18, .82), rgba(10, 10, 10, .9));
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(216, 180, 106, .18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .7s var(--ease), opacity .5s;
}
.tabbar.is-hidden { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
.tabbar:not(.is-ready) { transform: translate(-50%, 160%); opacity: 0; }
.tab {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--ink-3);
  font: 600 8.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: color .4s var(--ease);
}
.tab .ic { width: 21px; height: 21px; transition: transform .5s var(--spring), filter .4s; }
.tab.is-active { color: var(--gold-hi); }
.tab.is-active .ic { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 8px rgba(216, 180, 106, .55)); }
.tab__dot { position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); opacity: 0; transform: scale(0); transition: .5s var(--spring); }
.tab.is-active .tab__dot { opacity: 1; transform: scale(1); }
.tab__badge {
  position: absolute; top: 9px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--gold-grad); color: #1b1306;
  font: 700 9.5px/16px var(--sans); letter-spacing: 0; text-align: center;
  box-shadow: 0 0 0 2px #0e0d0c; transform: scale(0); transition: transform .45s var(--spring);
}
.tab__badge.is-on { transform: scale(1); }
.tab--crown { color: var(--ink-2); }
.tab__crown {
  width: 52px; height: 52px; margin-top: -30px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #2a241a, #0b0a08 70%);
  border: 1px solid rgba(216, 180, 106, .55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .7), 0 0 26px rgba(216, 180, 106, .22), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .5s var(--spring);
}
.tab__crown::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(246, 226, 168, .9) 82%, transparent 92%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 61%, #000 62%, #000 66%, transparent 67%);
  animation: spin 4.5s linear infinite;
}
.tab__crown svg { width: 28px; height: auto; filter: drop-shadow(0 2px 6px rgba(216, 180, 106, .45)); }
.tab--crown.is-active .tab__crown { transform: translateY(-3px) scale(1.06); }
.tab--crown.is-active { color: var(--gold-hi); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── Typography helpers ───────────── */
.gold-text { background: var(--gold-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gold-pan 7s ease-in-out infinite alternate; }
@keyframes gold-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--d0, 0ms)); }
.in .w > span, .w.in > span, .is-on .w > span { transform: none; }
.ch { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0); filter: blur(6px); animation: ch-in .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 32ms + .25s); }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }
.perf-low .ch { filter: none; }

.stars { display: inline-flex; gap: 2px; }
.stars i { width: 13px; height: 13px; color: rgba(216, 180, 106, .3); }
.stars i.on { color: var(--gold); }
.stars .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* Reveal */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.rv.in { opacity: 1; transform: none; }

/* ───────────── Buttons ───────────── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .4s, opacity .3s, background-color .3s;
  user-select: none; -webkit-user-select: none;
}
.btn .ic { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.btn:active { transform: scale(.965); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 10px; letter-spacing: .2em; }
.btn--block { width: 100%; }
.btn--gold {
  color: #1c1406;
  background: var(--gold-grad); background-size: 220% 100%;
  box-shadow: 0 12px 34px -10px rgba(216, 180, 106, .6), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .22);
  animation: gold-pan 6s ease-in-out infinite alternate;
}
.btn--gold::after {
  content: ''; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-160%) skewX(-20deg);
  animation: btn-shine 5s var(--ease-io) infinite;
}
@keyframes btn-shine { 0%, 64% { transform: translateX(-160%) skewX(-20deg); } 86%, 100% { transform: translateX(420%) skewX(-20deg); } }
.btn--ghost { color: var(--gold-hi); border: 1px solid var(--hair-2); background: rgba(216, 180, 106, .05); }
.btn--ghost:active { background: rgba(216, 180, 106, .12); }
.btn--dark { color: var(--ink); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(28, 20, 6, .25); border-top-color: #1c1406; animation: spin .8s linear infinite;
}
.linkbtn { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 10px 0; }
.linkbtn .ic { width: 16px; height: 16px; }

/* Chips */
.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--g) 4px; margin: 0 calc(var(--g) * -1); scroll-padding: var(--g); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  color: var(--ink-2); font: 600 10px/34px var(--sans); letter-spacing: .15em; text-transform: uppercase; white-space: nowrap;
  transition: color .35s var(--ease), background .35s var(--ease), border-color .35s, box-shadow .35s, transform .25s;
}
.chip:active { transform: scale(.95); }
.chip.is-on { color: #1c1406; background: var(--gold-grad); background-size: 200% 100%; border-color: transparent; box-shadow: 0 8px 22px -8px rgba(216, 180, 106, .7); }
.chips--sub .chip { height: 32px; line-height: 30px; font-size: 9.5px; padding: 0 14px; }
.chips--sub .chip.is-on { background: rgba(216, 180, 106, .14); color: var(--gold-hi); border-color: var(--hair-2); box-shadow: none; }

/* Sections */
.sec { padding: 52px var(--g) 0; }
.sec--tight { padding-top: 36px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.sec-kicker { display: flex; align-items: center; gap: 10px; font: 600 9.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.sec-kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.sec-title { margin-top: 12px; font: 400 34px/1 var(--serif); letter-spacing: -.005em; }
.sec-title em { color: var(--gold-hi); }
.sec-link { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.sec-link .ic { width: 15px; height: 15px; color: var(--gold); }

.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--g) 18px; margin: -6px calc(var(--g) * -1) -18px; scroll-padding: var(--g); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; width: min(46vw, 214px); }

/* ───────────── Product card ───────────── */
.pcard { position: relative; display: block; border-radius: 22px; padding: 1px; cursor: pointer;
  background: linear-gradient(165deg, rgba(216, 180, 106, .42), rgba(216, 180, 106, .05) 36%, rgba(255, 255, 255, .03) 64%, rgba(216, 180, 106, .24));
  transition: transform .5s var(--ease), opacity 1s var(--ease);
}
.pcard:active { transform: scale(.975); }
.pcard__in { position: relative; height: 100%; border-radius: 21px; overflow: hidden;
  background:
    radial-gradient(110% 70% at 50% 100%, rgb(var(--acc) / .28), transparent 62%),
    linear-gradient(180deg, #131211 0%, #0a0a0a 100%);
}
.pcard__stage { position: relative; aspect-ratio: 1 / 1.12; display: grid; place-items: center; }
.pcard__halo { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgb(var(--acc) / .26), transparent 66%); filter: blur(4px); }
.pcard__bottle { position: relative; width: 78%; height: 94%; margin-top: 6%; animation: float 6.5s ease-in-out infinite; animation-delay: calc(var(--fd, 0s) * -1); }
.pcard__bottle .bottle { width: 100%; height: 100%; }
.pcard__meta { padding: 2px 14px 16px; }
.pcard__brand { font: 600 8.5px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name { margin-top: 7px; font: 500 19px/1.08 var(--serif); color: var(--ink); min-height: 2.16em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__price { display: block; margin-top: 10px; font: 500 12.5px/1 var(--sans); letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcard__price small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 5px; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -7px, 0); } }

.badge { position: absolute; z-index: 2; top: 12px; left: 12px; height: 21px; padding: 0 9px; border-radius: 11px; font: 700 8px/21px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #1c1406; background: var(--gold-grad); box-shadow: 0 6px 16px -6px rgba(216, 180, 106, .7); }
.badge--line { color: var(--gold-hi); background: rgba(10, 10, 10, .55); border: 1px solid var(--hair-2); line-height: 19px; box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.fav {
  position: absolute; z-index: 3; top: 9px; right: 9px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
  background: rgba(8, 8, 8, .5); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.fav:active { transform: scale(.88); }
.fav .ic { width: 17px; height: 17px; transition: fill .3s, transform .5s var(--spring); }
.fav.is-on { color: var(--gold-hi); border-color: var(--hair-2); }
.fav.is-on .ic { fill: var(--gold); stroke: var(--gold); transform: scale(1.06); }
.fav.pop .ic { animation: fav-pop .7s var(--spring); }
@keyframes fav-pop { 0% { transform: scale(1); } 35% { transform: scale(.6); } 70% { transform: scale(1.3); } 100% { transform: scale(1.06); } }

/* ───────────── Bottle ───────────── */
.bottle { width: 100%; height: 100%; overflow: visible; }
.bottle--img { object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); }
.b-wave { animation: b-wave 3s linear infinite; }
.b-wave--slow { animation-duration: 4.6s; animation-direction: reverse; }
@keyframes b-wave { to { transform: translateX(-40px); } }
.b-sweep { transform: translateX(-90px) skewX(-16deg); animation: b-sweep 7.5s var(--ease-io) infinite; animation-delay: var(--sd, 0s); }
@keyframes b-sweep { 0%, 58% { transform: translateX(-90px) skewX(-16deg); } 82%, 100% { transform: translateX(300px) skewX(-16deg); } }
.bottle.slosh .b-liq { animation: slosh 1.4s var(--ease); }
@keyframes slosh { 0% { transform: rotate(0); } 18% { transform: rotate(-7deg); } 40% { transform: rotate(5deg); } 62% { transform: rotate(-2.5deg); } 82% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
.perf-low .b-wave, .perf-low .b-sweep { animation: none; }

/* ───────────── Hero ───────────── */
.hero { position: relative; height: min(138vw, 640px); min-height: 520px; margin-top: calc(var(--top-h) * -1); overflow: hidden; touch-action: pan-y; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; z-index: 3; }
.hero__rays {
  position: absolute; left: 62%; top: 40%; width: 220vw; height: 220vw; max-width: 1200px; max-height: 1200px; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 190, .055) 0deg 2.5deg, transparent 2.5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 22%, transparent 48%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 22%, transparent 48%);
  animation: spin 90s linear infinite; opacity: 0; transition: opacity 2s;
}
.intro-done .hero__rays { opacity: 1; }
.hslide__glow-wrap, .pdp__glow-wrap { position: absolute; inset: 0; pointer-events: none; }
.hslide { position: absolute; inset: 0; pointer-events: none; }
.hslide.is-on { pointer-events: auto; z-index: 2; }
.hslide__glow { position: absolute; left: 30%; top: 8%; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(var(--acc) / .42), rgb(var(--acc) / .1) 38%, transparent 64%); opacity: 0; transform: scale(.7); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.hslide.is-on .hslide__glow { opacity: 1; transform: none; }
.hslide__ghost { position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 74px); overflow: hidden; pointer-events: none; }
.hslide__ghost span {
  display: block; white-space: nowrap; font: 300 clamp(96px, 30vw, 170px)/.9 var(--serif); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(216, 180, 106, .2);
  transform: translateX(100%); opacity: 0; transition: transform 1.8s var(--ease), opacity 1.2s;
}
.hslide.is-on .hslide__ghost span { transform: translateX(-4%); opacity: 1; animation: ghost-drift 24s linear 1.8s infinite alternate; }
@keyframes ghost-drift { to { transform: translateX(-34%); } }
.hslide__bottle { position: absolute; right: -6%; top: calc(var(--safe-top) + 70px); width: 74%; height: 66%; }
.hslide__float { width: 100%; height: 100%; cursor: pointer; opacity: 0; transform: translate3d(28%, 24px, 0) rotate(8deg) scale(.92); filter: blur(10px); transition: transform 1.3s var(--ease), opacity 1s var(--ease), filter 1.1s var(--ease); }
.hslide.is-on .hslide__float { opacity: 1; transform: none; filter: none; }
.hslide.is-leaving .hslide__float { opacity: 0; transform: translate3d(-36%, -10px, 0) rotate(-8deg) scale(.9); filter: blur(10px); transition-duration: .9s; }
.hslide__float .bottle { animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.hslide__copy { position: absolute; z-index: 4; left: var(--g); right: 38%; bottom: 74px; }
.hslide__kicker { font: 600 9.5px/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s; }
.hslide__title { margin-top: 14px; font: 400 clamp(42px, 12vw, 60px)/.94 var(--serif); letter-spacing: -.015em; }
.hslide__title .w > span { transition-delay: calc(var(--i) * 90ms + .25s); }
.hslide__tag { margin-top: 14px; font: italic 400 17px/1.3 var(--serif); color: var(--ink-2); opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s; max-width: 220px; }
.hslide__cta { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .65s, transform .9s var(--ease) .65s; }
.hslide__price { font: 500 12px/1.2 var(--sans); color: var(--ink-2); letter-spacing: .04em; white-space: nowrap; }
.hslide.is-on .hslide__kicker, .hslide.is-on .hslide__tag, .hslide.is-on .hslide__cta { opacity: 1; transform: none; }
.hslide.is-leaving .hslide__kicker, .hslide.is-leaving .hslide__tag, .hslide.is-leaving .hslide__cta { opacity: 0; transform: translateY(-10px); transition-delay: 0s; transition-duration: .5s; }
.hslide.is-leaving .w > span { transform: translate3d(0, -110%, 0); transition-duration: .6s; transition-delay: calc(var(--i) * 40ms); }
body:not(.intro-done) .hslide .w > span { transform: translate3d(0, 110%, 0) !important; }
body:not(.intro-done) .hslide .hslide__float, body:not(.intro-done) .hslide .hslide__kicker, body:not(.intro-done) .hslide .hslide__tag, body:not(.intro-done) .hslide .hslide__cta { opacity: 0 !important; }
.hero__pips { position: absolute; z-index: 5; left: var(--g); bottom: 34px; display: flex; gap: 8px; }
.hero__pip { position: relative; width: 34px; height: 14px; }
.hero__pip::before, .hero__pip::after { content: ''; position: absolute; left: 0; top: 6px; height: 2px; border-radius: 1px; }
.hero__pip::before { right: 0; background: rgba(255, 255, 255, .14); }
.hero__pip::after { width: 0; background: var(--gold-grad); box-shadow: 0 0 10px rgba(216, 180, 106, .6); }
.hero__pip.is-on::after { animation: pip 7s linear forwards; }
.hero__pip.is-done::after { width: 100%; }
.hero.is-paused .hero__pip.is-on::after { animation-play-state: paused; }
@keyframes pip { to { width: 100%; } }
.hero__counter { position: absolute; z-index: 5; right: var(--g); bottom: 30px; font: 400 15px/1 var(--serif); color: var(--ink-3); letter-spacing: .08em; }
.hero__counter b { font-weight: 500; color: var(--gold-hi); font-size: 20px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: 1fr 1fr; margin: 6px var(--g) 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .015); }
.trust__item { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px; border-color: var(--line); border-style: solid; border-width: 0; }
.trust__item:nth-child(odd) { border-right-width: 1px; }
.trust__item:nth-child(-n+2) { border-bottom-width: 1px; }
.trust__item .ic { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }
.trust__item b { display: block; font: 600 10.5px/1.25 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.trust__item span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--ink-3); }

/* Marquee */
.marquee { margin-top: 46px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; align-items: center; animation: marquee 38s linear infinite; }
.marquee__item { font: 400 40px/1 var(--serif); letter-spacing: .02em; padding: 0 22px; text-transform: uppercase; }
.marquee__item:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px rgba(216, 180, 106, .55); }
.marquee__item:nth-child(4n+3) { font-style: italic; text-transform: none; color: var(--gold-hi); }
.marquee__star { color: var(--gold); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Collections */
.ccard { position: relative; display: block; width: min(64vw, 280px) !important; aspect-ratio: 3 / 4.1; border-radius: 26px; overflow: hidden; isolation: isolate; border: 1px solid rgba(216, 180, 106, .16); background: linear-gradient(160deg, var(--c1), var(--c2) 70%); }
.ccard:active { transform: scale(.98); }
.ccard__art { position: absolute; inset: 0; z-index: -1; opacity: .9; }
.ccard__art svg { width: 100%; height: 100%; }
.ccard__bottles { position: absolute; left: 0; right: 0; top: 8%; height: 56%; }
.ccard__b { position: absolute; top: 0; height: 100%; width: 58%; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .55)); }
.ccard__b--0 { left: 4%; transform: rotate(-7deg) translateY(8%) scale(.86); z-index: 1; }
.ccard__b--1 { right: 2%; transform: rotate(5deg); z-index: 2; }
.ccard__b .bottle { width: 100%; height: 100%; }
.ccard__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); }
.ccard__sub { font: 600 9px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.ccard__title { margin-top: 10px; font: 400 32px/1 var(--serif); }
.ccard__count { margin-top: 12px; display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--sans); color: var(--ink-2); letter-spacing: .06em; }
.ccard__count .ic { width: 15px; height: 15px; color: var(--gold); }

/* Brands */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 18px 16px 14px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)); transition: border-color .4s, transform .3s var(--ease); }
.brand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(246, 226, 168, .12) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.brand:active { transform: scale(.97); border-color: var(--hair-2); }
.brand:active::after { transform: translateX(120%); }
.brand__name { font-size: 18px; line-height: 1.05; color: var(--ink); }
.brand__meta { font: 500 11px/1.2 var(--sans); letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__meta b { color: var(--gold); font-weight: 600; }
.brand--sans-wide .brand__name { font-family: var(--sans); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: 13px; }
.brand--mono .brand__name { font-family: 'Courier New', Courier, monospace; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand--serif-caps .brand__name { font-family: var(--serif); font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: 17px; }
.brand--thin-wide .brand__name { font-family: var(--sans); font-weight: 300; letter-spacing: .42em; text-transform: uppercase; font-size: 14px; }
.brand--serif .brand__name { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .02em; }
.brand--serif-italic .brand__name { font-family: var(--serif); font-style: italic; font-size: 23px; }

/* Quiz banner */
.qbanner { position: relative; display: block; overflow: hidden; isolation: isolate; padding: 30px 24px 26px; border-radius: 28px; border: 1px solid rgba(216, 180, 106, .3); background: radial-gradient(120% 90% at 100% 0%, rgba(216, 180, 106, .16), transparent 55%), linear-gradient(160deg, #15130f, #080807); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.qbanner.is-tilt { transition: transform .1s linear; }
.qbanner__rings { position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; z-index: -1; }
.qbanner__rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(216, 180, 106, .35); animation: ring-pulse 4.8s var(--ease) infinite; animation-delay: calc(var(--k) * -1.2s); }
.qbanner__rings i:nth-child(1) { --k: 0; } .qbanner__rings i:nth-child(2) { --k: 1; } .qbanner__rings i:nth-child(3) { --k: 2; } .qbanner__rings i:nth-child(4) { --k: 3; }
@keyframes ring-pulse { 0% { transform: scale(.2); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.qbanner__crown { position: absolute; right: 26px; top: 26px; width: 56px; filter: drop-shadow(0 0 18px rgba(216, 180, 106, .5)); animation: float 5s ease-in-out infinite; }
.qbanner__crown svg { width: 100%; height: auto; }
.qbanner__kicker { font: 600 9.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.qbanner__title { margin-top: 16px; font: 400 32px/1.02 var(--serif); max-width: 270px; }
.qbanner__title em { color: var(--gold-hi); }
.qbanner__text { margin: 14px 0 22px; max-width: 290px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }

/* Notes cloud */
.notes-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.note-chip { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); font: italic 400 18px/1 var(--serif); color: var(--ink); background: rgba(255, 255, 255, .02); transition: border-color .3s, color .3s, transform .3s var(--ease); }
.note-chip:nth-child(3n+2) { color: var(--gold-hi); border-color: var(--hair); }
.note-chip:active { transform: scale(.95); border-color: var(--hair-2); }

/* Manifesto */
.manifesto { position: relative; margin-top: 64px; padding: 54px var(--g) 50px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(80% 60% at 50% 50%, rgba(216, 180, 106, .07), transparent 70%); }
.manifesto__mark { width: 42px; margin: 0 auto 26px; opacity: .9; }
.manifesto__mark svg { width: 100%; height: auto; }
.manifesto__quote { font: italic 300 31px/1.18 var(--serif); letter-spacing: -.005em; max-width: 520px; margin: 0 auto; }
.manifesto__quote .w > span { transition-duration: 1.3s; }
.manifesto__sign { margin-top: 26px; font: 600 9.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }

/* Visit card */
.visit { position: relative; overflow: hidden; padding: 28px 22px 24px; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(170deg, #12110f, #0a0a09); }
.visit::before { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 180, 106, .14), transparent 65%); }
.visit__kicker { font: 600 9.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.visit__title { margin-top: 14px; font: 400 30px/1.05 var(--serif); }
.visit__title em { color: var(--gold-hi); }
.visit__list { list-style: none; margin: 20px 0 22px; display: grid; gap: 12px; }
.visit__list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; }
.visit__list .ic { width: 18px; height: 18px; color: var(--gold); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.footer { padding: 56px var(--g) 10px; text-align: center; }
.footer__logo { height: 64px; width: auto; margin: 0 auto; opacity: .92; }
.footer__text { margin-top: 18px; font: italic 400 16px/1.3 var(--serif); color: var(--ink-2); }
.footer__copy { margin-top: 10px; font: 600 8.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }

/* ───────────── Page header ───────────── */
.phead { padding: 18px var(--g) 6px; }
.phead__kicker { font: 600 9.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.phead__kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.phead__title { margin-top: 14px; font: 400 44px/.98 var(--serif); letter-spacing: -.015em; }
.phead__title em { color: var(--gold-hi); }
.phead__sub { margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.phead__sub b { color: var(--ink); font-weight: 500; }

/* Search */
.search { position: relative; margin: 18px var(--g) 0; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); transition: border-color .4s, background .4s; }
.search:focus-within { border-color: var(--hair-2); background: rgba(216, 180, 106, .045); }
.search > .ic { color: var(--gold); width: 19px; height: 19px; }
.search__input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search__input::placeholder { color: var(--ink-3); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 255, 255, .06); opacity: 0; transform: scale(.6); pointer-events: none; transition: .3s var(--spring); }
.search__clear.is-on { opacity: 1; transform: none; pointer-events: auto; }
.search__clear .ic { width: 14px; height: 14px; }
.search__line { position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px; background: var(--gold-grad); transform: scaleX(0); transition: transform .6s var(--ease); }
.search:focus-within .search__line { transform: scaleX(1); }

.filters { display: grid; gap: 10px; padding: 16px var(--g) 0; }
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.sortbar__label { font: 600 9px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); flex: none; }
.sortbar__opts { position: relative; display: flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow-x: auto; scrollbar-width: none; }
.sortbar__opts::-webkit-scrollbar { display: none; }
.sortbar__opts .chip { height: 28px; line-height: 28px; border: 0; padding: 0 11px; font-size: 9px; background: none; }
.sortbar__opts .chip.is-on { background: rgba(216, 180, 106, .16); color: var(--gold-hi); box-shadow: none; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px var(--g) 0; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.empty { display: none; padding: 50px var(--g) 20px; text-align: center; }
.empty.is-on { display: block; animation: page-in .8s var(--ease) both; }
.empty__art { width: 110px; height: 150px; margin: 0 auto 22px; }
.empty__art svg { width: 100%; height: 100%; }
.empty__art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.empty__title { font: 400 30px/1.05 var(--serif); }
.empty__title em { color: var(--gold-hi); }
.empty__text { margin: 12px auto 26px; max-width: 290px; color: var(--ink-3); font-size: 14px; }

/* ───────────── Product page ───────────── */
.page--product { padding-bottom: calc(var(--safe-bottom) + 120px); }
.pdp__hero { position: relative; height: min(118vw, 560px); margin-top: calc(var(--top-h) * -1); overflow: hidden; }
.pdp__glow { position: absolute; left: 50%; top: 46%; width: 130%; aspect-ratio: 1; margin-left: -65%; margin-top: -65%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--acc) / .45), rgb(var(--acc) / .1) 36%, transparent 62%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.pdp__ghost { position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 84px); text-align: center; white-space: nowrap; font: 300 clamp(90px, 28vw, 160px)/.9 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(216, 180, 106, .18); letter-spacing: -.02em; animation: ghost-in 1.6s var(--ease) both; }
@keyframes ghost-in { from { opacity: 0; letter-spacing: .1em; } to { opacity: 1; } }
.pdp__stage { position: absolute; left: 50%; top: calc(var(--safe-top) + 64px); width: min(72vw, 330px); height: 80%; transform: translateX(-50%); }
.pdp__stage-in { width: 100%; height: 100%; }
.pdp__bottle { width: 100%; height: 100%; cursor: pointer; }
.pdp__bottle .bottle { animation: float 7s ease-in-out infinite; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .55)); }
.pdp__callouts { position: absolute; inset: 0; pointer-events: none; }
.callout { position: absolute; display: flex; align-items: center; gap: 8px; opacity: 0; animation: callout-in 1s var(--ease) forwards; animation-delay: calc(.9s + var(--i) * .22s); }
.callout__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(216, 180, 106, .15), 0 0 12px var(--gold); flex: none; }
.callout__line { height: 1px; width: 20px; background: linear-gradient(90deg, var(--gold), transparent); flex: none; }
.callout__text { display: grid; gap: 4px; max-width: 26vw; font: italic 400 16px/1.05 var(--serif); color: var(--ink); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); overflow-wrap: anywhere; }
.callout__text small { font: 600 8px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; font-style: normal; color: var(--gold); }
.callout--0 { right: 61%; top: 34%; flex-direction: row-reverse; }
.callout--0 .callout__line { background: linear-gradient(270deg, var(--gold), transparent); }
.callout--0 .callout__text { text-align: right; }
.callout--1 { left: 61%; top: 50%; }
.callout--2 { right: 61%; top: 67%; flex-direction: row-reverse; }
.callout--2 .callout__line { background: linear-gradient(270deg, var(--gold), transparent); }
.callout--2 .callout__text { text-align: right; }
@keyframes callout-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pdp__hint { position: absolute; z-index: 4; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; white-space: nowrap; transition: opacity .5s; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 8.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); animation: hint 2.6s ease-in-out infinite; }
.pdp__hint .ic { width: 14px; height: 14px; color: var(--gold); }
@keyframes hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(216, 180, 106, 0); } 50% { box-shadow: 0 0 0 6px rgba(216, 180, 106, .08); } }

.pdp__body { position: relative; z-index: 2; margin-top: -10px; padding: 0 var(--g); }
.pdp__brand { font: 600 9.5px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); animation: fade-up .9s var(--ease) .15s both; }
.pdp__name { margin-top: 12px; font: 400 clamp(40px, 11.5vw, 54px)/.96 var(--serif); letter-spacing: -.015em; }
.pdp__meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); font-size: 12.5px; letter-spacing: .03em; animation: fade-up .9s var(--ease) .5s both; }
.pdp__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.pdp__family { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(216, 180, 106, .06); font: 600 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); animation: fade-up .9s var(--ease) .55s both; }
.pdp__family .ic { width: 13px; height: 13px; color: var(--gold); }
.pdp__rating { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); animation: fade-up .9s var(--ease) .6s both; }
.pdp__rating b { color: var(--ink); font-weight: 600; }
.pdp__tagline { margin-top: 18px; font: italic 400 22px/1.25 var(--serif); color: var(--gold-hi); animation: fade-up .9s var(--ease) .7s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.block { margin-top: 34px; }
.block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 600 9.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.block__head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 4px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 14px; background: var(--gold-grad); background-size: 200% 100%; box-shadow: 0 8px 24px -8px rgba(216, 180, 106, .7), inset 0 1px 0 rgba(255, 255, 255, .5); transform: translateX(calc(var(--k, 0) * 100%)); transition: transform .55s var(--spring); }
.seg__opt { position: relative; z-index: 1; padding: 12px 6px; border-radius: 14px; display: grid; gap: 5px; text-align: center; color: var(--ink-2); transition: color .4s; }
.seg__opt b { font: 500 20px/1 var(--serif); color: var(--ink); transition: color .4s; }
.seg__opt span { font: 500 10.5px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.seg__opt.is-on, .seg__opt.is-on b { color: #1c1406; }

.pyramid { display: grid; gap: 4px; }
.tier { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tier:last-child { border-bottom: 0; }
.tier__icon { width: 46px; height: 40px; }
.tier__icon .tb { fill: none; stroke: rgba(216, 180, 106, .35); stroke-width: .8; }
.tier__icon .tb.on { fill: url(#pyrGold); stroke: none; }
.tier__title { font: 600 9px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; gap: 10px; }
.tier__title span { color: var(--ink-3); letter-spacing: .16em; }
.tier__notes { margin-top: 9px; font: italic 400 20px/1.25 var(--serif); color: var(--ink); }
.tier__notes span:not(:last-child)::after { content: ' · '; color: var(--gold); font-style: normal; }

.accords { display: grid; gap: 8px; }
.accord { position: relative; height: 34px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.accord__bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); opacity: .9; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * 110ms + .1s); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .accord__bar { background: var(--c); } }
.in .accord__bar, .accord.in .accord__bar { transform: none; }
.accord__name { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding: 0 14px; font: 500 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--tc, #fff); text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }

.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trait { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.trait__head { font: 600 8.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.trait__val { margin-top: 9px; font: 500 19px/1.1 var(--serif); color: var(--ink); }
.meter { margin-top: 12px; display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 3px; }
.meter i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.meter i::after { content: ''; position: absolute; inset: 0; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); transition-delay: calc(var(--j) * 60ms + .2s); }
.in .meter i.on::after { transform: none; }
.icons-row { margin-top: 12px; display: flex; gap: 8px; }
.icons-row span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-4); transition: .5s var(--ease); }
.icons-row span .ic { width: 16px; height: 16px; }
.icons-row span.on { color: var(--gold-hi); border-color: var(--hair-2); background: rgba(216, 180, 106, .1); box-shadow: 0 0 16px rgba(216, 180, 106, .15); }

.pdp__desc { font: 400 21px/1.42 var(--serif); color: var(--ink); }
.pdp__desc::first-letter { float: left; font-size: 64px; line-height: .8; padding: 6px 10px 0 0; color: var(--gold-hi); }
.assure { margin-top: 30px; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; border: 1px solid var(--hair); background: linear-gradient(160deg, rgba(216, 180, 106, .08), rgba(216, 180, 106, .02)); }
.assure .ic { width: 26px; height: 26px; color: var(--gold); }
.assure b { display: block; font: 600 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.assure span { display: block; margin-top: 5px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }

.buybar {
  position: fixed; z-index: 46; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 12px);
  max-width: 520px; margin: 0 auto;
  height: 70px; padding: 0 8px 0 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgba(24, 22, 19, .86), rgba(10, 10, 10, .92));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(216, 180, 106, .22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: buybar-in .9s var(--ease) .25s both;
}
.buybar.is-out { animation: buybar-out .4s var(--ease-io) both; }
@keyframes buybar-in { from { transform: translateY(140%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes buybar-out { to { transform: translateY(140%); opacity: 0; } }
.buybar__price { flex: 1; min-width: 0; display: grid; gap: 4px; }
.buybar__label { font: 600 8.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.buybar__value { font: 600 15px/1 var(--sans); color: var(--ink); letter-spacing: 0; white-space: nowrap; }
.buybar__fav { position: static; width: 44px; height: 44px; flex: none; }
.buybar__add { height: 54px; padding: 0 18px; flex: none; letter-spacing: .16em; }
@media (max-width: 400px) { .buybar { padding-left: 18px; } .buybar__add > span:first-child { display: none; } }
.buybar__add.is-added { background: linear-gradient(118deg, #e8d9b5, #fff6dc 50%, #e8d9b5); }

/* Odometer */
.odo { display: inline-flex; align-items: baseline; }
.od-d { position: relative; display: inline-block; height: 1em; line-height: 1em; overflow: hidden; }
.od-s { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.od-s span { height: 1em; line-height: 1em; }
.od-sep { display: inline-block; width: .28em; }
.od-cur { font-size: .72em; font-weight: 500; color: var(--ink-3); letter-spacing: .08em; }

/* ───────────── Cart ───────────── */
.lines { display: grid; gap: 12px; padding: 22px var(--g) 0; }
.line { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 40px 12px 12px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); transition: opacity .5s, transform .5s var(--ease); }
.line.is-removing { opacity: 0; transform: translateX(40px) scale(.96); }
.line__thumb { position: relative; height: 112px; border-radius: 16px; background: radial-gradient(90% 70% at 50% 100%, rgb(var(--acc) / .3), transparent 70%), #0c0c0b; display: grid; place-items: center; overflow: hidden; }
.line__thumb .bottle { width: 86%; height: 92%; }
.line__info { min-width: 0; display: flex; flex-direction: column; padding-top: 4px; }
.line__brand { font: 600 8.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.line__name { margin-top: 6px; font: 500 20px/1.05 var(--serif); }
.line__vol { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.line__row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line__sum { font: 600 13.5px/1 var(--sans); white-space: nowrap; }
.line__del { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: color .3s, background .3s; }
.line__del:active { color: var(--ink); background: rgba(255, 255, 255, .06); }
.line__del .ic { width: 15px; height: 15px; }
.qty { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.qty button { width: 36px; height: 34px; display: grid; place-items: center; color: var(--ink-2); }
.qty button:active { color: var(--gold-hi); }
.qty button .ic { width: 15px; height: 15px; }
.qty span { min-width: 22px; text-align: center; font: 600 13px/1 var(--sans); }

.cart-extras { display: grid; gap: 12px; padding: 18px var(--g) 0; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; }
.toggle > .ic { width: 24px; height: 24px; color: var(--gold); }
.toggle__txt { flex: 1; min-width: 0; }
.toggle__txt b { display: block; font: 600 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.toggle__txt span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 15px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); transition: background .4s var(--ease), border-color .4s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ddd5c6; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .5s var(--spring), background .4s; }
.is-on > .switch, .switch.is-on { background: rgba(216, 180, 106, .25); border-color: var(--hair-2); }
.is-on > .switch::after, .switch.is-on::after { transform: translateX(20px); background: var(--gold-grad); }
.promo { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .4s; }
.promo:focus-within { border-color: var(--hair-2); }
.promo > .ic { width: 20px; height: 20px; color: var(--gold); }
.promo__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.promo__input::placeholder { color: var(--ink-3); letter-spacing: .1em; text-transform: none; font-weight: 400; }
.promo__btn { height: 44px; padding: 0 16px; border-radius: 13px; background: rgba(216, 180, 106, .12); color: var(--gold-hi); font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.promo.is-applied { border-color: var(--hair-2); background: linear-gradient(110deg, rgba(216, 180, 106, .1), rgba(216, 180, 106, .02)); }
.promo.is-applied .promo__input { color: var(--gold-hi); }
.shake { animation: shake .5s var(--ease); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

.freebar { margin: 18px var(--g) 0; padding: 16px 18px; border-radius: 18px; border: 1px dashed var(--hair); }
.freebar__txt { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.freebar__txt .ic { width: 18px; height: 18px; color: var(--gold); }
.freebar__txt b { color: var(--gold-hi); font-weight: 600; }
.freebar__track { margin-top: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.freebar__track i { display: block; height: 100%; width: var(--p, 0%); background: var(--gold-grad); box-shadow: 0 0 10px rgba(216, 180, 106, .6); transition: width 1.2s var(--ease); }

.summary { margin: 22px var(--g) 0; padding: 20px 20px 18px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(170deg, #12110f, #0a0a09); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); }
.summary__row b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.summary__row.is-gold b { color: var(--gold-hi); }
.summary__total { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary__total > span { font: 600 9.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }
.summary__total > b { font: 600 22px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.cart-cta { padding: 20px var(--g) 0; }

/* ───────────── Checkout ───────────── */
.form { padding: 4px var(--g) 0; }
.fsec { margin-top: 26px; }
.fsec__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.fsec__num { font: italic 400 26px/1 var(--serif); color: var(--gold); }
.fsec__title { font: 600 10px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
.field { position: relative; margin-bottom: 12px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); transition: border-color .35s, background .35s, opacity .4s, max-height .5s var(--ease), margin .5s var(--ease); max-height: 200px; }
.field:focus-within { border-color: var(--hair-2); background: rgba(216, 180, 106, .04); }
.field input, .field textarea { display: block; width: 100%; background: none; border: 0; outline: 0; padding: 26px 16px 10px; font-size: 15.5px; color: var(--ink); resize: none; }
.field textarea { min-height: 76px; line-height: 1.4; }
.field label { position: absolute; left: 16px; top: 19px; font-size: 14px; color: var(--ink-3); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .35s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.74); color: var(--gold); letter-spacing: .06em; }
.field.is-hidden { max-height: 0; opacity: 0; margin: 0; border-width: 0; overflow: hidden; }
.field.has-error { border-color: rgba(229, 154, 140, .6); }
.field__err { display: none; padding: 0 16px 10px; font-size: 11.5px; color: var(--danger); font-style: normal; }
.field.has-error .field__err { display: block; }
.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-align: left; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); transition: border-color .35s, background .35s, transform .25s var(--ease); }
.opt:active { transform: scale(.985); }
.opt.is-on { border-color: var(--hair-2); background: linear-gradient(110deg, rgba(216, 180, 106, .11), rgba(216, 180, 106, .02)); }
.opt__radio { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--ink-4); transition: border-color .35s; }
.opt__radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold-grad); transform: scale(0); transition: transform .45s var(--spring); }
.opt.is-on .opt__radio { border-color: var(--gold); }
.opt.is-on .opt__radio::after { transform: scale(1); }
.opt__body { flex: 1; min-width: 0; }
.opt__body b { display: block; font: 500 14px/1.3 var(--sans); }
.opt__body small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.opt__price { flex: none; font: 600 12px/1 var(--sans); color: var(--gold-hi); white-space: nowrap; }
.fine { margin: 14px 4px 0; font-size: 11px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.submit-wrap { margin-top: 20px; }

/* ───────────── Success ───────────── */
.page--success { padding-bottom: calc(var(--safe-bottom) + 30px); }
.success { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px var(--g) 20px; text-align: center; }
.seal { position: relative; width: 210px; height: 210px; margin-bottom: 30px; animation: seal-drop 1.1s var(--ease) .2s both; }
.seal__wax { position: absolute; inset: 0; filter: drop-shadow(0 22px 40px rgba(216, 180, 106, .28)); }
.seal__wax svg, .seal__ring svg { width: 100%; height: 100%; }
.seal__ring { position: absolute; inset: 0; animation: spin 30s linear infinite; }
.seal__ring text { font: 600 10.5px var(--sans); fill: #3b2a0c; }
.seal__crown { position: absolute; left: 50%; top: 50%; width: 82px; transform: translate(-50%, -54%); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .45)) drop-shadow(0 -1px 1px rgba(60, 40, 8, .6)); }
.seal__crown svg { width: 100%; height: auto; }
.seal__crown path { fill: #5a4113 !important; }
@keyframes seal-drop { 0% { transform: translateY(-60px) scale(1.7) rotate(-25deg); opacity: 0; } 55% { transform: translateY(0) scale(.94) rotate(4deg); opacity: 1; } 75% { transform: scale(1.04) rotate(-1deg); } 100% { transform: none; opacity: 1; } }
.success__kicker { font: 600 9.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); animation: fade-up .9s var(--ease) .9s both; }
.success__title { margin-top: 16px; font: 400 44px/1 var(--serif); }
.success__title .w > span { transition-delay: calc(var(--i) * 90ms + 1s); }
.success__num { margin-top: 18px; display: inline-flex; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--hair-2); font: 600 12px/1 var(--sans); letter-spacing: .18em; color: var(--gold-hi); animation: fade-up .9s var(--ease) 1.3s both; }
.success__text { margin: 18px auto 0; max-width: 320px; color: var(--ink-2); font-size: 14px; line-height: 1.55; animation: fade-up .9s var(--ease) 1.45s both; }
.success__actions { width: 100%; max-width: 360px; margin-top: 32px; display: grid; gap: 10px; animation: fade-up .9s var(--ease) 1.6s both; }

/* ───────────── Quiz ───────────── */
.quiz { padding: 10px var(--g) 0; min-height: calc(100% - 20px); display: flex; flex-direction: column; }
.quiz__top { display: flex; align-items: center; gap: 14px; }
.quiz__step { font: italic 400 22px/1 var(--serif); color: var(--gold-hi); min-width: 44px; }
.quiz__step small { font-size: 14px; color: var(--ink-3); }
.quiz__progress { flex: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.quiz__progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--gold-grad); box-shadow: 0 0 10px rgba(216, 180, 106, .6); transition: width .8s var(--ease); }
.quiz__body { position: relative; flex: 1; margin-top: 26px; }
.qcard { animation: q-in .8s var(--ease) both; }
.qcard.is-leaving { animation: q-out .4s var(--ease-io) both; }
@keyframes q-in { from { opacity: 0; transform: translateX(40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes q-out { to { opacity: 0; transform: translateX(-40px); filter: blur(6px); } }
.qcard__kicker { font: 600 9.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.qcard__title { margin-top: 14px; font: 400 38px/1.02 var(--serif); }
.qcard__sub { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.qopts { margin-top: 26px; display: grid; gap: 10px; }
.qopts--grid { grid-template-columns: 1fr 1fr; }
.qopt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; text-align: left; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); transition: border-color .35s, background .35s, transform .3s var(--ease); animation: fade-up .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .15s); }
.qopt:active { transform: scale(.98); }
.qopt__num { font: italic 400 20px/1 var(--serif); color: var(--gold); width: 24px; flex: none; }
.qopt__txt { flex: 1; min-width: 0; }
.qopt__txt b { display: block; font: 500 19px/1.1 var(--serif); }
.qopt__txt small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.qopt__check { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--ink-4); display: grid; place-items: center; color: #1c1406; transition: .4s var(--spring); }
.qopt__check .ic { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: .4s var(--spring); }
.qopt.is-on { border-color: var(--hair-2); background: linear-gradient(110deg, rgba(216, 180, 106, .13), rgba(216, 180, 106, .02)); }
.qopt.is-on .qopt__check { border-color: transparent; background: var(--gold-grad); }
.qopt.is-on .qopt__check .ic { opacity: 1; transform: none; }
.qopts--grid .qopt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.qopts--grid .qopt__check { position: absolute; top: 12px; right: 12px; }
.quiz__nav { display: flex; gap: 10px; padding: 22px 0 6px; }
.quiz__nav .btn { flex: 1; }
.quiz__nav .btn--dark { flex: 0 0 auto; padding: 0 20px; }
.qintro { text-align: center; padding-top: 18px; }
.qintro__crown { width: 120px; margin: 10px auto 26px; position: relative; }
.qintro__crown svg { width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(216, 180, 106, .45)); animation: float 5s ease-in-out infinite; }
.qintro__crown::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 180, 106, .18), transparent 62%); }
.qintro .qcard__title { font-size: 42px; }
.qintro__text { margin: 14px auto 0; max-width: 300px; color: var(--ink-2); font-size: 14px; }
.qintro__steps { margin: 26px auto 30px; display: flex; justify-content: center; gap: 22px; }
.qintro__steps div { display: grid; gap: 6px; font: 600 8.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.qintro__steps b { font: italic 400 26px/1 var(--serif); color: var(--gold-hi); }
.qload { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.qload__orb { position: relative; width: 190px; height: 190px; margin: 0 auto 30px; }
.qload__orb i { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen; filter: blur(14px); animation: swirl 3.4s linear infinite; }
.qload__orb i:nth-child(1) { background: radial-gradient(circle at 30% 30%, rgba(246, 226, 168, .8), transparent 55%); }
.qload__orb i:nth-child(2) { background: radial-gradient(circle at 70% 40%, rgba(216, 160, 90, .7), transparent 55%); animation-duration: 4.4s; animation-direction: reverse; }
.qload__orb i:nth-child(3) { background: radial-gradient(circle at 50% 75%, rgba(255, 255, 255, .45), transparent 50%); animation-duration: 2.8s; }
.qload__orb svg { position: absolute; left: 50%; top: 50%; width: 74px; transform: translate(-50%, -50%); animation: pulse 1.6s ease-in-out infinite; }
@keyframes swirl { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.08); filter: drop-shadow(0 0 16px rgba(216, 180, 106, .7)); } }
.qload__title { font: italic 400 26px/1.2 var(--serif); }
.qload__sub { margin-top: 8px; font: 600 9px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }

.qres { animation: q-in .9s var(--ease) both; }
.qres__main { position: relative; margin-top: 18px; padding: 0 0 24px; text-align: center; border-radius: 28px; border: 1px solid var(--hair); background: radial-gradient(90% 60% at 50% 30%, rgb(var(--acc) / .3), transparent 70%), linear-gradient(180deg, #121110, #090909); overflow: hidden; }
.qres__stage { position: relative; height: 300px; }
.qres__stage .bottle { width: 100%; height: 100%; }
.qres__bottle { position: absolute; left: 50%; top: 20px; width: 58%; height: 280px; transform: translateX(-50%); }
.match { position: absolute; right: 16px; top: 16px; width: 92px; height: 92px; }
.match svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.match circle { fill: none; stroke-width: 3; }
.match__bg { stroke: rgba(255, 255, 255, .08); }
.match__fg { stroke: url(#matchGold); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.match.is-on .match__fg { stroke-dashoffset: calc(339.3 * (1 - var(--p) / 100)); }
.match__val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.match__val b { font: 500 26px/1 var(--serif); color: var(--gold-hi); }
.match__val small { margin-top: 3px; font: 600 7px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.qres__brand { font: 600 9.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.qres__name { margin-top: 10px; font: 400 40px/1 var(--serif); padding: 0 16px; }
.qres__why { margin: 12px auto 20px; max-width: 300px; font: italic 400 17px/1.35 var(--serif); color: var(--ink-2); }
.qres__alt { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qalt { position: relative; padding: 12px 12px 14px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(90% 60% at 50% 100%, rgb(var(--acc) / .25), transparent 70%), #0d0d0c; text-align: center; }
.qalt__b { height: 150px; }
.qalt__b .bottle { width: 100%; height: 100%; }
.qalt__pct { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(216, 180, 106, .14); color: var(--gold-hi); font: 600 10px/1 var(--sans); }
.qalt__brand { margin-top: 6px; font: 600 8px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.qalt__name { margin-top: 6px; font: 500 18px/1.05 var(--serif); }
.qres__again { margin-top: 16px; }

/* ───────────── Profile ───────────── */
.club {
  position: relative; margin: 22px var(--g) 0; aspect-ratio: 1.586; border-radius: 22px; overflow: hidden; isolation: isolate;
  padding: 20px 22px; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 0% 0%, #2a241b, transparent 55%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px), linear-gradient(135deg, #16140f, #050505 60%, #12100c);
  border: 1px solid rgba(216, 180, 106, .35);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease);
}
.club.is-tilt { transition: transform .1s linear; }
.club__sheen { position: absolute; inset: -40%; z-index: -1; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(246, 226, 168, .26), transparent 34%), linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, .1) 45%, transparent 55%); animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { transform: translateX(-12%); } 50% { transform: translateX(12%); } }
.club__top { display: flex; align-items: flex-start; justify-content: space-between; }
.club__crown { width: 52px; height: auto; filter: drop-shadow(0 2px 8px rgba(216, 180, 106, .4)); }
.club__tier { font: 600 9px/1 var(--sans); letter-spacing: .34em; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--hair-2); color: var(--gold-hi); }
.club__chip { margin-top: auto; width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f3dc9c, #a87c33 50%, #e8cd8a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); position: relative; }
.club__chip::before { content: ''; position: absolute; inset: 7px 0; border-top: 1px solid rgba(0, 0, 0, .3); border-bottom: 1px solid rgba(0, 0, 0, .3); }
.club__num { margin-top: 14px; font: 500 19px/1 var(--sans); letter-spacing: .14em; color: var(--ink); text-shadow: 0 1px 0 rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; }
.club__row { margin-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.club__row small { display: block; font: 600 7px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.club__row b { display: block; margin-top: 5px; font: 500 13px/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.club__brand { position: absolute; right: 22px; bottom: 18px; font: 400 15px/1 var(--serif); letter-spacing: .3em; color: var(--gold-hi); }

.orders { display: grid; gap: 10px; }
.order { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.order__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order__num { font: 600 12px/1 var(--sans); letter-spacing: .12em; }
.order__status { padding: 6px 10px; border-radius: 999px; font: 600 8.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); background: rgba(216, 180, 106, .12); }
.order__status.is-done { color: #b9dcb5; background: rgba(140, 200, 130, .12); }
.order__status.is-cancel { color: var(--danger); background: rgba(229, 154, 140, .12); }
.order__items { margin-top: 10px; font: italic 400 17px/1.3 var(--serif); color: var(--ink-2); }
.order__bottom { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.order__bottom b { color: var(--ink); font-weight: 600; }
.muted-card { padding: 22px; border-radius: 18px; border: 1px dashed var(--line-2); text-align: center; color: var(--ink-3); font-size: 13.5px; }

.perks { display: grid; gap: 10px; }
.perk { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 14px; }
.perk .ic { width: 20px; height: 20px; color: var(--gold); }

.contacts { display: grid; gap: 10px; }
.contact { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .3s, transform .25s var(--ease); }
.contact:active { transform: scale(.985); border-color: var(--hair-2); }
.contact > .ic { width: 22px; height: 22px; color: var(--gold); }
.contact__txt { flex: 1; min-width: 0; }
.contact__txt b { display: block; font: 500 14px/1.3 var(--sans); }
.contact__txt small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.contact > .ic:last-child { width: 16px; height: 16px; color: var(--ink-3); }

/* ───────────── Toasts ───────────── */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; top: calc(var(--safe-top) + 12px); display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 12px 14px 12px 16px; border-radius: 18px; pointer-events: auto; background: rgba(18, 17, 15, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(216, 180, 106, .3); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); font-size: 13.5px; transform: translateY(-140%); opacity: 0; transition: transform .6s var(--spring), opacity .4s; }
.toast.is-on { transform: none; opacity: 1; }
.toast > .ic { width: 20px; height: 20px; color: var(--gold); }
.toast span { flex: 1; }
.toast__act { padding: 8px 12px; border-radius: 12px; background: rgba(216, 180, 106, .14); color: var(--gold-hi); font: 600 9px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }

/* ───────────── FX layer ───────────── */
.fx-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fly-orb { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8dc, #f0d48a 35%, #b8862f 75%); box-shadow: 0 0 18px 4px rgba(246, 210, 130, .7), 0 0 40px 10px rgba(216, 180, 106, .35); }
.fly-spark { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #ffe9b0; box-shadow: 0 0 8px 2px rgba(246, 210, 130, .8); animation: spark-fade .7s ease-out forwards; }
@keyframes spark-fade { to { opacity: 0; transform: translateY(10px) scale(.2); } }
.fx-ring { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid rgba(246, 226, 168, .9); animation: ring-out .8s var(--ease) forwards; }
.fx-ring--sm { animation-duration: .6s; }
@keyframes ring-out { from { transform: scale(1); opacity: 1; } to { transform: scale(7); opacity: 0; } }
.fx-ring--sm { border-width: 1px; }
.fx-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 8px rgba(246, 226, 168, .9); }
.shared-ghost { position: absolute; transform-origin: 0 0; will-change: transform; }
.shared-ghost .bottle { width: 100%; height: 100%; }

/* ───────────── Intro ───────────── */
.intro { position: fixed; inset: 0; z-index: 100; background: radial-gradient(90% 60% at 50% 42%, #1a1712 0%, #070707 60%, #030303 100%); display: grid; place-items: center; overflow: hidden; }
.intro__glow { position: absolute; left: 50%; top: 42%; width: 140vmax; height: 140vmax; transform: translate(-50%, -50%) scale(.3); border-radius: 50%; background: radial-gradient(circle, rgba(216, 180, 106, .22), rgba(216, 180, 106, .04) 30%, transparent 55%); opacity: 0; }
.intro__rays { position: absolute; left: 50%; top: 42%; width: 200vmax; height: 200vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255, 236, 190, .05) 0deg 2deg, transparent 2deg 12deg); -webkit-mask: radial-gradient(circle, #000, transparent 40%); mask: radial-gradient(circle, #000, transparent 40%); opacity: 0; }
.intro__center { position: relative; width: min(74vw, 330px); text-align: center; margin-top: -6vh; }
.intro__logo { width: 100%; height: auto; overflow: visible; }
.shard { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.5); }
.ltr { fill: #f4efe6; fill-opacity: 0; stroke: #f4efe6; stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ltr2 { fill: #f4efe6; opacity: 0; transform: translateX(var(--dx)); }
.intro__sweep { transform: translateX(-200px) skewX(-18deg); }
.intro__rule { width: 0; height: 1px; margin: 26px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.intro__tag { margin: 18px -60px 0; white-space: nowrap; font: 600 8.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); opacity: 0; }
.intro__hint { position: absolute; bottom: calc(var(--safe-bottom) + 40px); left: 0; right: 0; text-align: center; font: 600 8px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink-3); opacity: 0; }
.intro__edge { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); box-shadow: 0 0 22px 4px rgba(216, 180, 106, .5); opacity: 0; }

.intro.is-play .intro__glow { animation: i-glow 2.4s var(--ease) .1s forwards; }
.intro.is-play .intro__rays { animation: i-rays 3.6s var(--ease) 1.1s forwards, spin 80s linear infinite; }
.intro.is-full.is-play .shard { animation: i-shard 1.25s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * 75ms); }
.intro.is-full.is-play .ltr { animation: i-draw 1.3s var(--ease-io) forwards, i-fill .8s var(--ease) forwards; animation-delay: calc(1.05s + var(--i) * 110ms), calc(1.9s + var(--i) * 90ms); }
.intro.is-full.is-play .ltr2 { animation: i-track 1.2s var(--ease) forwards; animation-delay: calc(2.05s + var(--i) * 40ms); }
.intro.is-full.is-play .intro__sweep { animation: i-sweep 1.4s var(--ease-io) 2.25s forwards; }
.intro.is-full.is-play .intro__rule { animation: i-rule 1.2s var(--ease) 2.35s forwards; }
.intro.is-full.is-play .intro__tag { animation: i-tag 1.2s var(--ease) 2.55s forwards; }
.intro.is-full.is-play .intro__hint { animation: i-hint 1s ease 2.9s forwards; }
.intro.is-quick .shard { opacity: 1; transform: none; }
.intro.is-quick .ltr { fill-opacity: 1; stroke-dashoffset: 0; stroke-opacity: 0; }
.intro.is-quick .ltr2 { opacity: 1; transform: none; }
.intro.is-quick .intro__rule { width: 120px; }
.intro.is-quick .intro__tag { opacity: 1; letter-spacing: .32em; }
.intro.is-quick.is-play .intro__center { animation: i-quick 1s var(--ease) both; }
.intro.is-quick.is-play .intro__sweep { animation: i-sweep 1.1s var(--ease-io) .25s forwards; }
.intro.is-out { animation: i-out 1.1s var(--ease-io) forwards; pointer-events: none; }
.intro.is-out .intro__center { animation: i-center-out 1s var(--ease-io) forwards; }
.intro.is-out .intro__edge { opacity: 1; }

@keyframes i-glow { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes i-rays { to { opacity: 1; } }
@keyframes i-shard { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes i-draw { to { stroke-dashoffset: 0; } }
@keyframes i-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes i-track { to { opacity: 1; transform: none; } }
@keyframes i-sweep { from { transform: translateX(-200px) skewX(-18deg); } to { transform: translateX(860px) skewX(-18deg); } }
@keyframes i-rule { to { width: 120px; } }
@keyframes i-tag { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes i-hint { to { opacity: .8; } }
@keyframes i-quick { from { opacity: 0; transform: scale(.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes i-out { 0% { transform: none; } 100% { transform: translateY(-100%); } }
@keyframes i-center-out { to { transform: translateY(-18vh) scale(.82); opacity: 0; } }

/* App entrance after the intro */
.app-enter .tabbar.is-ready { animation: tab-in 1s var(--ease) .35s both; }
@keyframes tab-in { from { transform: translate(-50%, 160%); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* Desktop / wide screens: keep the boutique column elegant */
@media (min-width: 760px) {
  .stage, .topbar { max-width: 560px; margin: 0 auto; left: 0; right: 0; }
  .topbar { left: 50%; transform: translateX(-50%); width: 100%; }
  .hero { height: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}
