:root {
  --pink: #df4f8b;
  --pink-dark: #b93f72;
  --pink-soft: #fde8f0;
  --bg: #fff7fa;
  --card: #ffffff;
  --border: #f6d3e2;
  --text: #35232c;
  --text-muted: #806b75;
  --shadow: 0 14px 36px rgba(136, 62, 92, 0.11);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-width: 320px;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a { color: var(--pink); }

.container {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 16px 0;
}
.site-header--center { justify-content: center; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(225, 29, 116, 0.22);
  transition: transform 0.15s ease;
}
.header-cta:active { transform: scale(0.96); }
@media (max-width: 380px) {
  .header-cta { padding: 9px 13px; font-size: 12.5px; }
}

.container--wide { max-width: 460px; }
@media (min-width: 860px) {
  .container--wide { max-width: 940px; }
}

h1, h2, h3 { color: var(--text); margin: 0 0 8px; letter-spacing: 0; overflow-wrap: anywhere; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
p { color: var(--text-muted); margin: 0 0 12px; }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 16px 22px;
  border: none;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(225, 29, 116, 0.28);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn.secondary {
  background: #fff;
  color: var(--pink);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 50px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--pink);
}
textarea { resize: vertical; line-height: 1.4; }
.button-copy { min-height: 68px; }

label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 14px 0 6px; }
.char-counter { text-align: right; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.char-counter--limit { color: var(--pink-dark); font-weight: 700; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  min-height: 44px;
  border: 1.5px dashed var(--border);
  background: var(--pink-soft);
  color: var(--pink-dark);
  border-radius: 999px;
  padding: 6px 12px;
  max-width: 100%;
  font-size: 14px;
  cursor: pointer;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
.chip:active { transform: scale(0.96); }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pink-soft);
  margin-bottom: 18px;
}
.video-frame video,
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mini-ticket-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: radial-gradient(120% 90% at 50% 0%, #2c151d 0%, #170a0e 70%);
}
.mini-ticket-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d9a8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(217, 171, 95, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
}
.mini-ticket-row {
  font-size: 13px;
  font-weight: 700;
  color: #d8c2ca;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 171, 95, 0.3);
  border-radius: 10px;
  padding: 8px 14px;
  width: 100%;
  text-align: center;
}

/* No overflow:hidden here — the dodge button is already clamped to this
   card's bounds in JS, and clipping would slice off the "Да" button's
   corners when it scales up past the padding via growPairButton. */
#step1Card { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink-dark);
  background: var(--pink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

@keyframes float-heart {
  0% { transform: translate(0, 6px) scale(0.5) rotate(0deg); opacity: 0; }
  18% { opacity: 1; transform: translate(calc(var(--drift-x, 0px) * 0.25), -14px) scale(1) rotate(var(--rot, 0deg)); }
  100% { transform: translate(var(--drift-x, 0px), -78px) scale(1.1) rotate(var(--rot, 0deg)); opacity: 0; }
}
.floating-heart {
  position: fixed;
  font-size: 22px;
  pointer-events: none;
  animation: float-heart 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 999;
}

@keyframes shake-pop {
  0%, 100% { transform: scale(1) rotate(0); }
  20% { transform: scale(1.08) rotate(-3deg); }
  40% { transform: scale(0.96) rotate(3deg); }
  60% { transform: scale(1.1) rotate(-2deg); }
  80% { transform: scale(1.02) rotate(1deg); }
}
.anim-shake { animation: shake-pop 0.5s ease; }

/* Constructor layout */
.builder {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.preview-pane {
  position: static;
}
.phone-mock {
  width: min(100%, 260px);
  margin: 0 auto;
  background: linear-gradient(165deg, #2c2c2e, #111113);
  border-radius: 36px;
  padding: 12px 9px;
  box-shadow: 0 24px 50px rgba(20, 10, 20, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
}
.preview-caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.phone-mock::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 92px;
  width: 3px;
  height: 46px;
  background: #050505;
  border-radius: 2px 0 0 2px;
}
.phone-mock .phone-screen {
  position: relative;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  padding: 16px 14px;
  text-align: center;
}
.phone-mock .video-frame { margin-bottom: 12px; border-radius: 14px; aspect-ratio: 1/1; }
.phone-mock h3 { font-size: 18px; margin: 0 0 10px; text-align: center; }
.phone-mock .preview-subtitle {
  margin: -2px 0 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.phone-mock .mini-btn {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px; margin-bottom: 7px;
  border-radius: 14px; border: none; font-size: 14px; line-height: 1.2; font-weight: 800; text-align: center;
  white-space: normal; overflow-wrap: anywhere;
}
.phone-mock .mini-btn.yes { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); color: #fff; }
.phone-mock .mini-btn.no {
  background: #fff;
  color: var(--pink);
  border: 1px solid var(--border);
  position: relative;
  overflow: visible;
}
.phone-mock .mini-btn.no,
#demoNoBtn,
.invitation-no { touch-action: none; }

.mini-food-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mini-food-choices .preview-subtitle { grid-column: 1 / -1; }
.mini-food-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid #f1c4d8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 251, 0.98));
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.mini-food-choice__emoji { font-size: 16px; line-height: 1; }

.tab-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 10px 0; -webkit-overflow-scrolling: touch; }
.tab-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }

.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.option-tile {
  appearance: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  min-height: 76px;
  padding: 12px 8px;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
  line-height: 1.3;
}
.option-tile .emoji { font-size: 22px; display: block; margin-bottom: 4px; }
.option-tile.selected { border-color: var(--pink); background: var(--pink-soft); }
.option-tile:disabled { opacity: 0.45; cursor: not-allowed; }

.selected-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.selected-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #fff; font-size: 14px;
}
.selected-row-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.selected-row .remove { color: var(--text-muted); cursor: pointer; font-weight: 800; }
.selected-row .remove { border: 0; background: transparent; min-width: 44px; min-height: 44px; border-radius: 10px; }
.surprise-toggle {
  border: 0; background: transparent; min-width: 40px; min-height: 40px; border-radius: 10px;
  font-size: 16px; cursor: pointer; opacity: 0.4; transition: opacity 0.15s ease, background-color 0.15s ease;
}
.surprise-toggle.active { opacity: 1; background: var(--pink-soft); }
.min-hint { font-size: 12px; color: var(--pink-dark); font-weight: 700; margin-top: 8px; }

.preview-teaser {
  font-size: 12px; font-weight: 700; color: var(--pink-dark);
  text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 6px;
}

.slot-add-row { display: flex; gap: 8px; align-items: stretch; }
.slot-add-row input { flex: 1; min-width: 0; }
.slot-add-row .btn { width: auto; flex: 0 0 auto; }

.slot-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.slot-tile {
  flex: 1 1 calc(50% - 8px); min-width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font: inherit;
}
.slot-tile__date { font-size: 14px; font-weight: 800; color: var(--text); }
.slot-tile__time { font-size: 13px; color: var(--text-muted); }
.slot-tile.selected { border-color: var(--pink); background: var(--pink-soft); }
.slot-tile.selected .slot-tile__date { color: var(--pink-dark); }

.food-choice--surprise { border-style: dashed; border-color: var(--pink); }

@media (min-width: 860px) {
  .container--wide { max-width: 1040px; }
  .builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: flex-start; gap: 28px; }
  .preview-pane { grid-column: 2; grid-row: 1; position: sticky; top: 20px; }
  .form-pane { flex: 1; min-width: 0; }
  .phone-mock { width: min(100%, 300px); }
  .form-pane { grid-column: 1; grid-row: 1; }
  .option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Wizard / stepper */
.progress-track {
  height: 10px;
  background: var(--pink-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-dark));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.step-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.wizard-page { display: none; }
.wizard-page.active {
  display: block;
  animation: step-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes step-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .wizard-page.active { animation: none; }
}
.wizard-nav {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 20px;
}
.wizard-nav .btn-back {
  flex: 0 0 auto;
  width: auto;
  padding: 14px 20px;
}
.wizard-nav .btn-next { flex: 1; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.anim-option-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.anim-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 54px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  text-align: left;
}
.anim-option.active { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dark); }
.anim-demo {
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  text-align: center;
  overflow: hidden;
  min-height: 96px;
  box-sizing: border-box;
}
.anim-demo .btn { width: auto; padding: 10px 24px; display: inline-flex; }
.anim-demo-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.video-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.video-tile {
  appearance: none;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1/1;
  background: var(--pink-soft);
}
.video-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-tile.selected { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft) inset; }
.video-tile .check {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--pink); color: #fff; display: none; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.video-tile.selected .check { display: flex; }

.step-context {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.wordmark {
  color: var(--pink);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  text-decoration: none;
  text-transform: none;
}
.upload-button {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 1.5px dashed var(--pink);
  border-radius: 16px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.upload-button:disabled { opacity: 0.6; cursor: wait; }
.field-help,
.form-status { margin: 8px 0 0; font-size: 13px; text-align: center; }

.preview-banner {
  max-width: 420px;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pink-soft);
  border: 1px solid var(--border);
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Shared modal and toast notifications */
body.notify-modal-open { overflow: hidden; }

.notify-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2100;
  display: grid;
  width: min(390px, calc(100vw - 36px));
  gap: 10px;
  pointer-events: none;
}

.notify-toast {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 13px 12px 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(112, 50, 76, 0.2);
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  transition: opacity 0.18s ease, transform 0.22s ease;
  pointer-events: auto;
}
.notify-toast.is-visible { opacity: 1; transform: translateX(0); }
.notify-toast.is-leaving { opacity: 0; transform: translateX(28px); }
.notify-toast__icon,
.notify-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 950;
}
.notify-toast__icon { width: 42px; height: 42px; font-size: 21px; }
.notify-toast.is-error .notify-toast__icon,
.notify-modal.is-error .notify-modal__icon { background: #fbe1ec; color: #a93262; }
.notify-toast.is-warning .notify-toast__icon,
.notify-modal.is-warning .notify-modal__icon { background: #fce7ef; color: #a34b6f; }
.notify-toast__body { min-width: 0; }
.notify-toast__title,
.notify-toast__message { display: block; overflow-wrap: anywhere; }
.notify-toast__title { color: var(--text); font-size: 15px; line-height: 1.25; }
.notify-toast__message { margin-top: 3px; color: var(--text-muted); font-size: 13px; line-height: 1.35; }
.notify-toast__close,
.notify-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
}
.notify-toast__close { width: 34px; height: 34px; border-radius: 10px; font-size: 25px; }
.notify-toast__close:hover,
.notify-modal__close:hover { background: var(--pink-soft); color: var(--pink-dark); }
.notify-toast__close:focus-visible,
.notify-modal__close:focus-visible,
.notify-modal__actions .btn:focus-visible {
  outline: 3px solid rgba(223, 79, 139, 0.3);
  outline-offset: 2px;
}

.notify-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(67, 34, 48, 0.34);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.notify-backdrop.is-visible { opacity: 1; }
.notify-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 26px 80px rgba(83, 35, 56, 0.28);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.2s ease;
}
.notify-backdrop.is-visible .notify-modal { transform: translateY(0) scale(1); }
.notify-modal__top { display: flex; align-items: flex-start; gap: 16px; padding-right: 24px; }
.notify-modal__icon { width: 50px; height: 50px; font-size: 25px; }
.notify-modal__copy { min-width: 0; padding-top: 1px; }
.notify-modal__title { margin: 0 0 6px; font-size: 21px; line-height: 1.25; }
.notify-modal__message { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.notify-modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 12px; font-size: 28px; }
.notify-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.notify-modal__actions .btn { width: auto; min-width: 136px; min-height: 50px; padding: 13px 22px; }

@media (max-width: 599px) {
  .notify-region {
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
  .notify-toast { transform: translateY(calc(100% + 22px)); }
  .notify-toast.is-visible { transform: translateY(0); }
  .notify-toast.is-leaving { transform: translateY(20px); }
  .notify-backdrop { align-items: end; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); }
  .notify-modal { padding: 24px 18px 18px; border-radius: 22px; transform: translateY(28px); }
  .notify-modal__top { gap: 12px; padding-right: 22px; }
  .notify-modal__icon { width: 44px; height: 44px; font-size: 22px; }
  .notify-modal__title { font-size: 19px; }
  .notify-modal__actions { flex-direction: column-reverse; }
  .notify-modal__actions .btn { width: 100%; }
}

/* Image crop modal — lets the user pick which part of an uploaded photo
   lands inside the square preview frame, instead of a silent center-crop. */
body.cropper-open { overflow: hidden; }
.cropper-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(67, 34, 48, 0.5);
  backdrop-filter: blur(7px);
}
.cropper-backdrop.is-visible { display: grid; }
.cropper-modal {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 26px 80px rgba(83, 35, 56, 0.28);
}
.cropper-modal h3 { margin: 0 0 4px; font-size: 19px; }
.cropper-modal p.field-help { margin: 0 0 14px; }
.cropper-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.cropper-viewport:active { cursor: grabbing; }
.cropper-viewport img {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  max-width: none;
  pointer-events: none;
  display: block;
}
.cropper-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
/* Native range inputs reserve margin at each end so the round thumb never
   overflows the box — that leaves a gap between the thumb and the track's
   visual edge at min/max. Fully custom track + thumb removes that reserved
   margin so the thumb sits flush with both ends. */
.cropper-zoom-row input[type="range"] {
  flex: 1;
  margin: 0;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.cropper-zoom-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink) var(--fill-pct, 0%), var(--border) var(--fill-pct, 0%), var(--border) 100%);
}
.cropper-zoom-row input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
}
.cropper-zoom-row input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--pink);
}
.cropper-zoom-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(83, 35, 56, 0.3);
  cursor: pointer;
}
.cropper-zoom-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 2px 6px rgba(83, 35, 56, 0.3);
  cursor: pointer;
}
.cropper-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--pink-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cropper-zoom-btn:hover { background: var(--pink-soft); }
.cropper-zoom-btn:active { transform: scale(0.94); }
.cropper-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.cropper-actions .btn { width: auto; min-width: 120px; min-height: 50px; padding: 13px 20px; }
@media (max-width: 599px) {
  .cropper-backdrop { align-items: end; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); }
  .cropper-modal { border-radius: 22px; }
  .cropper-actions { flex-direction: column-reverse; }
  .cropper-actions .btn { width: 100%; }
}

.builder.is-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100svh - 126px);
  place-items: center;
  padding: 18px 0 42px;
}
.builder.is-result .form-pane {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 700px);
  margin: 0 auto;
}
.result-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 42px 44px 34px;
  text-align: left;
  border-color: #f3c7da;
  background: linear-gradient(180deg, #ffffff 0%, #fffafd 100%);
  box-shadow: 0 24px 60px rgba(136, 62, 92, 0.14);
}
.result-intro { text-align: center; }
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-size: 30px;
  font-weight: 900;
}
.result-kicker {
  display: block;
  margin: 10px 0 6px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.result-intro h2 { margin-bottom: 8px; font-size: 29px; }
.result-intro h2:focus { outline: none; }
.result-intro p { max-width: 430px; margin: 0 auto; }
.result-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  margin-top: 18px;
  border: 1.5px dashed var(--pink);
  border-radius: var(--radius-md);
  background: var(--pink-soft);
}
.result-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pink-dark);
}
.result-code-box .btn { width: auto; min-height: 40px; padding: 8px 16px; font-size: 13px; }
.result-link-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.result-link-box input { min-height: 46px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; flex: 1 1 200px; }
.result-link-box .btn { width: auto; min-height: 46px; padding: 8px 16px; font-size: 13px; }
.result-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.result-actions .btn { margin-top: 0; }
.result-restart { display: block; width: fit-content; margin: 22px auto 0; color: var(--pink-dark); font-size: 13px; font-weight: 800; text-align: center; }
.result-card .form-status:empty { display: none; }

.landing-shell { max-width: 760px; padding-top: 24px; }
.landing-shell > .video-frame { height: min(46svh, 430px); aspect-ratio: auto; margin-bottom: 32px; }
.landing-intro { text-align: center; padding: 0 0 40px; }
.landing-intro h1 { font-size: 42px; font-weight: 950; color: var(--pink); margin-bottom: 14px; }
.landing-intro p { max-width: 580px; margin: 0 auto 28px; font-size: 17px; }
.landing-intro .btn { max-width: 420px; margin: 0 auto; }
@keyframes btn-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.07); }
  28% { transform: scale(1); }
  42% { transform: scale(1.07); }
  70% { transform: scale(1); }
}
.btn-heartbeat { animation: btn-heartbeat 1.8s ease-in-out infinite; }
.btn-heartbeat:active { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .btn-heartbeat { animation: none; }
}
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-steps .card { margin: 0; min-height: 190px; position: relative; overflow: hidden; }
.landing-steps .card[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.landing-steps .card[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .landing-steps .card[data-reveal] { opacity: 1; transform: none; transition: none; }
}
.landing-steps article > span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: var(--pink-soft);
  font-size: 130px;
  font-weight: 950;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.landing-steps article h3,
.landing-steps article p { position: relative; z-index: 1; }

.invitation-shell { min-height: 100svh; display: grid; align-content: center; }
.invitation-shell .step { width: 100%; }
.invitation-shell .step:not([hidden]) {
  animation: step-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .invitation-shell .step:not([hidden]) { animation: none; }
}
.invitation-shell .video-frame { height: clamp(220px, 38svh, 360px); aspect-ratio: auto; }
.invitation-shell #step4 .video-frame { height: clamp(150px, 26svh, 230px); }
.invitation-card { text-align: center; }
.invitation-card .btn + .btn { margin-top: 10px; }
.food-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(66px, auto);
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
}
.food-choices .btn { min-width: 0; }
.food-choices .btn + .btn { margin-top: 0; }
.food-choice {
  align-self: stretch;
  justify-self: stretch;
  height: 100%;
  min-height: 66px;
  padding: 13px 14px;
  border-radius: 18px;
  color: var(--pink-dark);
  border-color: #f1c4d8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 251, 0.98));
  box-shadow: 0 8px 20px rgba(136, 62, 92, 0.08);
  font-size: 17px;
  font-weight: 900;
  overflow: hidden;
}
.food-choice:nth-child(odd):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 12px) / 2);
}
.btn.food-choice--selected {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 116, 0.32);
}
.food-choice--custom {
  width: 100%;
  min-height: 0;
  height: auto;
  gap: 6px;
}
.custom-food-input {
  width: 100%;
  margin-top: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.custom-food-input:focus { outline: 2px solid rgba(223, 79, 139, 0.28); outline-offset: 1px; }
.food-choice__emoji {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}
.food-choice__label {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
.food-choice:focus-visible {
  outline: 3px solid rgba(223, 79, 139, 0.22);
  outline-offset: 2px;
}
.food-choice:disabled {
  transform: none;
  opacity: 0.65;
  box-shadow: none;
}
.ticket-shell { min-height: 100svh; display: grid; align-content: center; }
.ticket-shell > .video-frame { height: clamp(220px, 38svh, 360px); aspect-ratio: auto; }

/* Optional voice note in the constructor and recipient view. */
.voice-recorder { margin-top: 8px; }
.voice-rec-btn { width: auto; min-height: 46px; padding: 11px 18px; font-size: 14px; }
.voice-rec-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  margin-top: 14px;
}
.voice-rec-live[hidden], .voice-rec-done[hidden] { display: none; }
.voice-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d91d57;
  animation: voice-pulse 1s ease-in-out infinite;
}
.voice-rec-stop { width: auto; min-height: 34px; padding: 6px 14px; font-size: 13px; box-shadow: none; }
.voice-rec-done { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.voice-rec-done audio { width: min(100%, 250px); height: 36px; margin-right: 4px; }
.voice-rec-remove {
  border: none;
  background: transparent;
  color: var(--pink-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}
.voice-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto 14px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff8fb;
  color: var(--pink-dark);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.voice-play-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  font-size: 12px;
}
.voice-play-label { flex: 1; font-size: 14px; font-weight: 800; }
.voice-play-time { font-size: 12px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.voice-play-btn.playing .voice-play-icon { animation: voice-pulse 1.1s ease-in-out infinite; }
@keyframes voice-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

@media (max-width: 599px) {
  .container { padding: 14px 12px 28px; }
  .container--wide { max-width: 100%; }
  .card { padding: 18px 16px; border-radius: 18px; box-shadow: 0 10px 26px rgba(136, 62, 92, 0.08); }
  .wordmark { font-size: 25px; }
  .progress-track { margin-top: 0; }
  .builder { gap: 16px; }
  .wizard-nav { position: sticky; bottom: 0; z-index: 10; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); background: rgba(255, 247, 250, 0.96); }
  .wizard-nav .btn-back { padding-inline: 16px; }
  .anim-option-row { grid-template-columns: 1fr 1fr; }
  .video-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .builder.is-result { min-height: auto; padding: 4px 0 12px; }
  .result-card { margin-top: 0; padding: 24px 18px 20px; }
  .success-mark { width: 54px; height: 54px; font-size: 27px; }
  .result-intro h2 { font-size: 24px; }
  .result-actions { grid-template-columns: 1fr; }
  .landing-shell { padding-top: 16px; }
  .landing-shell > .video-frame { height: min(38svh, 320px); }
  .landing-intro h1 { font-size: 36px; }
  .landing-steps { grid-template-columns: 1fr; }
  .landing-steps .card { min-height: 0; }
  .invitation-shell { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fffafd; }
  .invitation-shell .card { margin-bottom: 0; }
  .invitation-shell .video-frame { height: clamp(200px, 35svh, 300px); margin-bottom: 12px; border-radius: 18px; }
  .invitation-shell #step4 .video-frame { height: clamp(130px, 23svh, 190px); }
  .food-choices { gap: 10px; }
  .food-choice { min-height: 62px; padding: 12px 10px; font-size: 16px; border-radius: 16px; }
  .ticket-shell { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fffafd; }
  .ticket-shell > .video-frame { height: clamp(190px, 32svh, 280px); margin-bottom: 12px; }
}

@media (max-width: 359px) {
  .anim-option-row,
  .food-choices { grid-template-columns: 1fr; }
  .food-choice:nth-child(odd):last-child { width: 100%; }
  .wizard-nav { flex-wrap: wrap; }
  .wizard-nav .btn { width: 100%; }
  .slot-add-row { flex-wrap: wrap; }
  .slot-tile { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Falling petals background decoration ---------- */
.petal-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.petal {
  position: absolute;
  top: -60px;
  width: 24px;
  height: 30px;
  background: linear-gradient(160deg, var(--pink-soft), var(--pink) 85%);
  border-radius: 0 100% 0 100%;
  opacity: 0;
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.petal--sm { width: 16px; height: 20px; }
.petal--lg { width: 32px; height: 40px; }

@keyframes petal-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.7; }
  50%  { transform: translate(26px, 50vh) rotate(180deg); }
  92%  { opacity: 0.6; }
  100% { transform: translate(-18px, 108vh) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .petal-decor { display: none; }
}

/* ==========================================================================
   Admin dashboard — deliberately its own strict/compact design language,
   not the site's cute pink-card brand. Scoped under .admin-shell so nothing
   here leaks into the public site.
   ========================================================================== */
.admin-shell {
  --a-bg: #f6f6f8;
  --a-card: #ffffff;
  --a-border: #e4e4ea;
  --a-text: #1c1c1e;
  --a-muted: #7a7a85;
  background: var(--a-bg);
  margin: 0 auto 40px;
  padding: 20px 16px 40px;
  border-radius: 16px;
  max-width: 1100px;
}
.admin-shell h1 { font-size: 26px; margin-bottom: 2px; }

.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--a-border);
  margin-bottom: 20px;
}
.admin-tab-btn {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 10px 14px;
  color: var(--a-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab-btn.active { color: var(--a-text); border-bottom-color: var(--pink); }
.admin-panel[hidden] { display: none; }

.admin-card {
  background: var(--a-card);
  border: 1px solid var(--a-border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04);
}
.admin-card h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--a-muted);
  margin: 0 0 14px;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.admin-card-head .btn.secondary {
  width: auto;
  min-height: 0;
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 8px;
  border-color: var(--a-border);
}

.stat-table td { padding: 12px 4px; font-size: 17px; }
.stat-table tr:last-child td { border-bottom: none; }
.stat-table td:first-child { width: auto; color: var(--a-text); white-space: nowrap; }
.stat-value {
  width: 1%;
  padding-left: 14px;
  text-align: left;
  font-weight: 800;
  color: var(--a-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-value--accent { color: var(--pink); }
.stat-spark-cell { width: 100%; text-align: right; color: var(--pink-soft); }
.stat-spark-cell .spark { display: inline-block; vertical-align: middle; }
.stat-value--accent + .stat-spark-cell { color: var(--pink); }

/* ---------- Admin: daily chart ---------- */
.chart-legend { display: flex; gap: 16px; margin-bottom: 10px; font-size: 14px; color: var(--a-muted); }
.chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-dot--a, .chart2-bar--a { background: #f2c9dc; }
.chart-dot--b, .chart2-bar--b { background: var(--pink-dark); }

/* ---------- Admin: flexbox day chart (fixed bar width, gaps stretch) ---------- */
.chart2-yaxis-row { display: flex; }
.chart2-yaxis {
  flex: none;
  width: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 13px;
  color: var(--a-muted);
  text-align: right;
  padding-right: 8px;
  box-sizing: border-box;
}
.chart2-bar-area { flex: 1; min-width: 0; position: relative; }
.chart2-grid-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--a-border); }
.chart2-grid-line--base { border-top-color: var(--a-muted); opacity: 0.5; }
.chart2-bars { display: flex; align-items: flex-end; height: 100%; position: relative; z-index: 1; }
.chart2-group {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
  cursor: default;
}
.chart2-bar { width: 14px; max-width: 38%; border-radius: 3px 3px 0 0; transition: opacity 0.12s ease; }
.chart2-bar--dim { opacity: 0.32; }
.chart2-label-row { display: flex; margin-top: 8px; padding-left: 46px; }
.chart2-label { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; color: var(--a-muted); white-space: nowrap; }
.chart2-label--active { color: var(--a-text); font-weight: 700; }
@media (max-width: 620px) {
  .chart2-label:nth-child(even) { opacity: 0; }
}

.chart-tooltip {
  position: fixed;
  z-index: 999;
  background: #1c1c1e;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 220px;
}
.chart-tooltip strong { font-size: 12px; }

.top-pages { display: flex; flex-direction: column; gap: 10px; }
.top-page-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 15px; }
.top-page-label { color: var(--a-text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-page-bar-track { background: var(--a-bg); border-radius: 999px; height: 7px; overflow: hidden; }
.top-page-bar { background: var(--pink); height: 100%; border-radius: 999px; }
.top-page-count { text-align: right; color: var(--a-muted); font-weight: 700; }

.status-pending { color: #b8860b; font-weight: 700; }
.status-yes { color: #1a8a4a; font-weight: 700; }
.status-no { color: var(--a-muted); }
.broadcast-text { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Admin: tables ---------- */
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
.admin-table th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--a-muted);
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--a-border);
}
.admin-table td { padding: 10px 10px; border-bottom: 1px solid var(--a-border); color: var(--a-text); }
.admin-table code { font-size: 14px; color: var(--a-muted); }

.admin-broadcast-form textarea { border-color: var(--a-border); }
.admin-logout { width: auto; min-height: 0; padding: 9px 16px; font-size: 13px; border-color: var(--a-border); }

/* ---------- Interaction polish: focus rings, hover states, ripple ---------- */
.btn:focus-visible {
  outline: 3px solid rgba(223, 79, 139, 0.35);
  outline-offset: 2px;
}
.chip, .tab-btn, .option-tile, .video-tile {
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:active):not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(225, 29, 116, 0.34);
  }
  .btn.secondary:hover:not(:active):not(:disabled) {
    background: var(--pink-soft);
    border-color: var(--pink);
    box-shadow: none;
  }
  .chip:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
  .tab-btn:hover:not(.active) { border-color: var(--pink); color: var(--pink-dark); }
  .option-tile:hover:not(.selected):not(:disabled) { border-color: var(--pink); }
  .video-tile:hover:not(.selected) { border-color: var(--pink); }
  /* Specificity must beat .landing-steps .card[data-reveal].is-visible
     (which sets its own transform once revealed) or the lift never shows. */
  .landing-steps .card[data-reveal].is-visible:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(136, 62, 92, 0.16); }
}

/* Ripple spans are appended by button-fx.js on pointerdown for tactile
   feedback; .btn already has position:relative + overflow:hidden above. */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  animation: btn-ripple-anim 0.5s ease-out forwards;
}
.btn.secondary .btn-ripple { background: rgba(223, 79, 139, 0.22); }
@keyframes btn-ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

/* One-shot celebratory burst (confetti.js) — reuses the same
   translate+rotate+fade shape as .floating-heart/.petal for a consistent
   motion language, just with rectangular pieces instead of hearts/petals. */
.confetti-piece {
  position: fixed;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  animation: confetti-fall 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--drift-x, 0px), var(--fall-y, 220px)) rotate(var(--rot, 180deg)); opacity: 0; }
}
