:root {
  --bg: #12080c;
  --bg2: #1a0e14;
  --card: rgba(255, 245, 248, 0.06);
  --line: rgba(255, 210, 220, 0.14);
  --text: #f7eef1;
  --muted: #c9a8b2;
  --accent: #e11d48;
  --accent2: #fb7185;
  --gold: #e8c9a0;
  --ok: #34d399;
  --danger: #fb7185;
  --radius: 18px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --bar-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.bg-glow {
  position: fixed; inset: -20% -10% auto;
  height: 55vh;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(225, 29, 72, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(251, 113, 133, 0.2), transparent 45%),
    radial-gradient(ellipse at 50% 60%, rgba(88, 28, 45, 0.4), transparent 60%);
  pointer-events: none; z-index: 0;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes glowPulse {
  from { transform: scale(1) translateY(0); opacity: 1; }
  to { transform: scale(1.08) translateY(2%); opacity: 0.85; }
}

.topbar, .page, .bottom-bar, .sheet, .toast { position: relative; z-index: 1; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #e11d48, #7f1d1d);
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}
.brand strong { display: block; font-size: 14px; letter-spacing: 0.04em; }
.brand em { display: block; font-style: normal; font-size: 11px; color: var(--gold); opacity: 0.9; }
.pill {
  font-size: 11px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(232, 201, 160, 0.35); color: var(--gold);
  background: rgba(232, 201, 160, 0.08);
  animation: pillBlink 2.4s ease-in-out infinite;
}
@keyframes pillBlink {
  0%, 100% { box-shadow: 0 0 0 rgba(232,201,160,0); }
  50% { box-shadow: 0 0 18px rgba(232,201,160,0.25); }
}

.page { padding: 0 16px 28px; max-width: 520px; margin: 0 auto; }

.hero { margin: 8px 0 16px; }
.carousel {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #2a1218, #12080c 70%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  aspect-ratio: 1 / 1.05;
}
.carousel-track {
  display: flex; height: 100%; width: 100%;
  transition: transform 0.55s cubic-bezier(.22,.9,.28,1);
  will-change: transform;
}
.slide {
  min-width: 100%; height: 100%;
  position: relative; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.slide-copy span {
  font-size: 11px; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase;
}
.slide-copy h2 {
  margin: 8px 0 0; font-family: var(--font-display);
  font-size: 36px; line-height: 1.15; font-weight: 600;
}
.slide-visual {
  flex: 1; display: grid; place-items: center; position: relative;
}

.lip-tube {
  width: 54px; height: 180px; border-radius: 14px 14px 10px 10px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.12);
  transform: rotate(-18deg) translateY(8px);
  animation: tubeFloat 4.5s ease-in-out infinite;
}
.lip-tube::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 42px;
  border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
}
.lip-tube::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 70px; height: 18px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45), transparent 70%);
}
.tube-crimson { background: linear-gradient(180deg, #ff6b7a, #9f1239 40%, #3f0a1a); }
.tube-rose { background: linear-gradient(180deg, #fda4af, #be123c 45%, #4c0519); }
.lip-shine {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
  filter: blur(2px); animation: shineMove 5s ease-in-out infinite;
}
@keyframes tubeFloat {
  0%, 100% { transform: rotate(-18deg) translateY(8px); }
  50% { transform: rotate(-14deg) translateY(-6px); }
}
@keyframes shineMove {
  0%, 100% { transform: translate(-20px, -10px); opacity: 0.7; }
  50% { transform: translate(30px, 20px); opacity: 1; }
}

.swatch-ring {
  width: 180px; height: 180px; position: relative;
  animation: spinSlow 18s linear infinite;
}
.swatch-ring i {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c); left: 50%; top: 50%;
  margin: -21px; box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}
.swatch-ring i:nth-child(1) { transform: rotate(0deg) translateY(-68px); }
.swatch-ring i:nth-child(2) { transform: rotate(60deg) translateY(-68px); }
.swatch-ring i:nth-child(3) { transform: rotate(120deg) translateY(-68px); }
.swatch-ring i:nth-child(4) { transform: rotate(180deg) translateY(-68px); }
.swatch-ring i:nth-child(5) { transform: rotate(240deg) translateY(-68px); }
.swatch-ring i:nth-child(6) { transform: rotate(300deg) translateY(-68px); }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.texture-pack { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 240px; }
.tex-card {
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
  backdrop-filter: blur(8px); font-weight: 700; letter-spacing: 0.04em;
  animation: cardIn 0.8s ease both;
}
.tex-card:nth-child(2) { animation-delay: 0.1s; }
.tex-card:nth-child(3) { animation-delay: 0.2s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.carousel-dots button {
  width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: width .25s, background .25s;
}
.carousel-dots button.on { width: 18px; background: var(--accent2); }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(0,0,0,0.35); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; z-index: 2; backdrop-filter: blur(6px);
}
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

.price-card {
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(225,29,72,0.18), rgba(255,255,255,0.04));
  border: 1px solid var(--line); margin-bottom: 16px;
}
.price-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sku { font-size: 11px; color: var(--gold); letter-spacing: 0.08em; }
.price-card h1 { margin: 6px 0 4px; font-size: 22px; font-weight: 700; }
.sub { margin: 0; color: var(--muted); font-size: 13px; }
.price-tag { text-align: right; }
.price-tag .now {
  display: block; font-family: var(--font-display); font-size: 40px; color: var(--accent2); line-height: 1;
}
.price-tag .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span {
  font-size: 11px; padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--muted);
}

.block { margin-bottom: 18px; }
.block-title {
  margin: 0 0 12px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.block-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
}

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat {
  padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
}
.feat b { display: block; margin-bottom: 6px; font-size: 14px; }
.feat p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }

.prose p { margin: 0 0 12px; color: var(--muted); line-height: 1.75; font-size: 14px; }
.prose em { color: var(--accent2); font-style: normal; font-weight: 600; }

.swatch-list { display: grid; gap: 10px; }
.swatch-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
}
.swatch-item > span {
  width: 42px; height: 42px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 8px 16px rgba(0,0,0,0.25);
}
.swatch-item b { display: block; font-size: 14px; }
.swatch-item small { color: var(--muted); font-size: 12px; }
.hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
}
.steps i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  font-style: normal; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.steps b { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; }

.review-stack { display: grid; gap: 10px; }
.review-stack blockquote {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.65; color: #f3dce3;
}
.review-stack cite { display: block; margin-top: 8px; font-style: normal; color: var(--gold); font-size: 12px; }

.notice ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.foot {
  text-align: center; padding: 20px 0 8px; color: var(--muted); font-size: 12px;
}
.foot a { color: var(--gold); text-decoration: none; margin-left: 8px; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(18, 8, 12, 0.88); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bottom-meta { flex: 1; min-width: 0; }
.bottom-meta strong { display: block; font-size: 15px; }
.bottom-meta span { font-size: 12px; color: var(--muted); }
.cta {
  border: 0; cursor: pointer; color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #e11d48 55%, #9f1239);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
  transition: transform .15s, filter .15s;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: scale(0.98); }
.cta.full { width: 100%; margin-top: 8px; }
.cta:disabled { opacity: 0.6; cursor: not-allowed; }

.sheet-mask {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-height: min(88vh, 640px); overflow: auto;
  background: linear-gradient(180deg, #2a141c, #160a10);
  border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(.22,.9,.28,1);
}
.sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.2);
  margin: 4px auto 12px;
}
.sheet-hd { display: flex; align-items: center; justify-content: space-between; }
.sheet-hd h2 { margin: 0; font-size: 18px; }
.sheet-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 22px; cursor: pointer;
}
.sheet-tip { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }

.claim-form { display: grid; gap: 12px; }
.claim-form label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.claim-form input, .claim-form textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.25); color: var(--text);
  padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none;
}
.claim-form input:focus, .claim-form textarea:focus {
  border-color: rgba(251, 113, 133, 0.6);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 24px); z-index: 50;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 18px; border-radius: 12px; max-width: 86vw;
  background: rgba(20, 12, 16, 0.95); border: 1px solid var(--line);
  color: #fff; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(52, 211, 153, 0.4); }
.toast.err { border-color: rgba(251, 113, 133, 0.5); }

[hidden] { display: none !important; }

@media (min-width: 768px) {
  .page { padding-top: 8px; }
  .carousel { aspect-ratio: 16 / 12; }
}
