.love-potion-page .store-layout--catalog-only {
  padding-bottom: 2rem;
}

.love-potion-root {
  max-width: 52rem;
  margin: 0 auto;
}

.love-potion-root.legal-card .muted-copy {
  color: var(--text-muted, #666666);
}

.love-potion-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.love-potion-title-icon {
  position: relative;
  width: 1.45rem;
  height: 1.9rem;
  display: inline-block;
  filter: drop-shadow(0 2px 5px rgba(90, 20, 45, 0.32));
}

.love-potion-bottle-neck {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 0.52rem;
  height: 0.45rem;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #f8f2ff 0%, #c9b8de 100%);
  border: 1px solid rgba(130, 104, 158, 0.55);
}

.love-potion-bottle-body {
  position: absolute;
  left: 50%;
  top: 0.38rem;
  transform: translateX(-50%);
  width: 1.3rem;
  height: 1.35rem;
  border-radius: 0.5rem 0.5rem 0.7rem 0.7rem;
  border: 1px solid rgba(140, 80, 110, 0.65);
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 42%),
    linear-gradient(
      180deg,
      rgba(255, 250, 255, 0.9) 0%,
      rgba(255, 235, 248, 0.75) 24%,
      rgba(220, 36, 86, 0.88) 24%,
      rgba(184, 22, 68, 0.95) 100%
    );
}

.love-potion-disclaimer {
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(210, 130, 150, 0.16);
  border: 1px solid rgba(210, 130, 170, 0.38);
  font-size: 0.92rem;
  line-height: 1.45;
}

.love-potion-form {
  display: grid;
  gap: 0.6rem;
}

.love-potion-label {
  font-weight: 600;
  margin-top: 0.35rem;
}

.love-potion-file-input {
  cursor: pointer;
}

.love-potion-photo-stage {
  margin: 0.35rem 0 0.6rem;
}

.love-potion-photo-stage-label {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
}

.love-potion-notice {
  margin: 0.55rem 0 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: rgba(120, 50, 130, 0.12);
  border: 1px solid rgba(170, 90, 180, 0.28);
  font-size: 0.9rem;
  line-height: 1.45;
}

.love-potion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.love-potion-status {
  margin: 0.8rem 0 0;
}

.love-potion-error {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 120, 0.46);
  background: rgba(120, 30, 35, 0.15);
  color: #7e131d;
}

.love-potion-ritual {
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(165, 108, 182, 0.38);
  background: linear-gradient(160deg, rgba(68, 29, 80, 0.2), rgba(45, 29, 70, 0.09));
  padding: 1rem;
}

.love-potion-ritual-copy {
  margin-top: 0;
  text-align: center;
}

.love-potion-preview-wrap {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #110a1b;
}

.love-potion-preview {
  display: block;
  width: 100%;
  max-height: 500px;
  min-height: 200px;
  object-fit: contain;
  object-position: center;
  background: #0a0612;
}

.love-potion-smoke-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 75%, rgba(210, 150, 220, 0.2), transparent 35%),
    radial-gradient(circle at 78% 30%, rgba(200, 145, 190, 0.22), transparent 40%);
  filter: blur(7px);
  opacity: 0;
  animation: none;
}

.love-potion-preview-wrap--ritual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 42px rgba(255, 120, 190, 0.35),
    inset 0 -24px 56px rgba(200, 80, 160, 0.28);
  animation: lovePotionPhotoGlow 4.5s ease-in-out infinite;
  z-index: 2;
}

.love-potion-preview-wrap--ritual .love-potion-preview {
  filter: saturate(1.12) contrast(1.04);
}

.love-potion-preview-wrap--ritual .love-potion-smoke-layer {
  opacity: 0.92;
  animation: lovePotionSmokePulse 5s ease-in-out infinite;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 160, 210, 0.38), transparent 42%),
    radial-gradient(circle at 75% 25%, rgba(230, 140, 220, 0.4), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(180, 100, 200, 0.22), transparent 55%);
  filter: blur(10px);
}

.love-potion-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.love-potion-heart {
  position: absolute;
  bottom: -14%;
  left: 0;
  color: rgba(255, 95, 165, 0.95);
  font-size: var(--heart-size, 1.15rem);
  line-height: 1;
  text-shadow:
    0 0 12px rgba(255, 130, 200, 0.65),
    0 0 22px rgba(255, 80, 150, 0.35);
  will-change: bottom, transform, opacity;
  animation: lovePotionHeartRise var(--rise-ms, 3800ms) linear forwards;
}

.love-potion-ritual-copy {
  margin-top: 0.8rem;
  text-align: center;
}

.love-potion-countdown-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e6ba4;
}

.love-potion-countdown {
  margin: 0.25rem 0;
  font-size: 1.9rem;
  font-weight: 800;
  color: #4f2f67;
}

.love-potion-latin {
  margin: 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #643882;
}

.love-potion-chant {
  margin: 0.15rem 0 0;
}

.love-potion-chant-tts-btn {
  margin-top: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}

@keyframes lovePotionHeartRise {
  0% {
    bottom: -14%;
    transform: translateX(0) scale(0.55);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    bottom: 108%;
    transform: translateX(var(--drift-x, 0px)) scale(var(--heart-scale, 1.25));
    opacity: 0;
  }
}

@keyframes lovePotionSmokePulse {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.1) translateY(-3%);
    opacity: 1;
  }
}

@keyframes lovePotionPhotoGlow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .love-potion-heart,
  .love-potion-smoke-layer,
  .love-potion-preview-wrap--ritual::after {
    animation: none !important;
  }
}
