:root {
  --bg: #FFF9F0;
  --bg-dot: rgba(108, 59, 255, 0.14);
  --surface: #FFFFFF;
  --surface-soft: #F7F2FF;
  --ink: #1B1438;
  --muted: #5A5278;

  --purple: #6C3BFF;
  --purple-dark: #4E22D6;
  --yellow: #FFD43B;
  --yellow-soft: #FFF3BF;
  --pink: #FF4D8D;
  --pink-soft: #FFE4EE;
  --mint: #00C9A7;
  --mint-soft: #D9FFF6;
  --whatsapp: #25D366;
  --whatsapp-dark: #1AB655;
  --danger: #FF3B5C;
  --danger-soft: #FFE5EA;

  --border: 2.5px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-display: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.75px, transparent 1.75px);
  background-size: 22px 22px;
  line-height: 1.5;
  padding: 20px 14px 48px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid #FFFFFF;
  box-shadow: 0 8px 24px rgba(27, 20, 56, 0.28);
  max-width: calc(100vw - 32px);
  text-align: center;
  animation: toastPop 0.22s cubic-bezier(0.22, 1.3, 0.36, 1);
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* App Shell */
.app-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 6px 6px 4px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: var(--purple);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  transform: rotate(-4deg);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.hero-subtitle {
  margin: 8px auto 14px;
  max-width: 460px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.pill-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pop-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 var(--ink);
}

.pill-yellow { background: var(--yellow); }
.pill-mint { background: var(--mint-soft); }
.pill-pink { background: var(--pink-soft); }

/* Setup Container */
#setup-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Pop Cards */
.pop-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.center-card {
  text-align: center;
  padding: 28px 22px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.step-badge {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

.step-pink {
  background: var(--pink);
  color: #FFFFFF;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.optional-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* Inputs & Labels */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.label-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
}

.contact-badge.badge-whatsapp {
  background: #D3F9D8;
  color: #0B5E28;
}

.contact-badge.badge-email {
  background: #E0E7FF;
  color: #27328A;
}

.contact-badge.badge-invalid {
  background: var(--danger-soft);
  color: #9E122C;
}

.pop-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: #FFFFFF;
  border: var(--border);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.pop-input::placeholder {
  color: #928AA8;
  font-weight: 500;
}

.pop-input:focus {
  outline: none;
  background: #FFFDF8;
  box-shadow: 0 0 0 3px var(--yellow), var(--shadow-sm);
}

.pop-textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

/* Event Extras Collapsible */
.extras-details {
  margin-top: 12px;
}

.extras-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple);
  padding: 4px 2px;
  list-style: none;
}

.extras-summary::-webkit-details-marker {
  display: none;
}

.extras-summary:hover {
  text-decoration: underline;
}

.extras-grid {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed rgba(27, 20, 56, 0.14);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-full {
  grid-column: 1 / -1;
}

/* Participant Form */
.participant-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9E122C;
  background: var(--danger-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}

/* Bulk Panel */
.bulk-panel {
  margin-top: 14px;
  padding: 14px;
  background: var(--surface-soft);
  border: 2px dashed var(--ink);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.pop-input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.btn-sm {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.84rem;
}

.btn-lg {
  min-height: 54px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--purple);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: var(--purple-dark);
}

.btn-secondary {
  background: var(--yellow);
  color: var(--ink);
}

.btn-mint {
  background: var(--mint);
  color: var(--ink);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #092613;
}

.btn-whatsapp:hover:not(:disabled) {
  background: var(--whatsapp-dark);
}

.btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
}

.btn-ghost-danger {
  background: #FFFFFF;
  color: #B41230;
}

.btn-ghost-danger:hover:not(:disabled) {
  background: var(--danger-soft);
}

.btn-link-danger {
  background: none;
  border: none;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 800;
  color: #B41230;
  cursor: pointer;
  border-radius: 8px;
}

.btn-link-danger:hover {
  background: var(--danger-soft);
}

/* Participant List */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 2px solid rgba(27, 20, 56, 0.1);
}

.list-count-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
}

.empty-state {
  text-align: center;
  padding: 20px 14px;
  background: var(--surface-soft);
  border: 2px dashed rgba(27, 20, 56, 0.25);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.empty-emoji {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.empty-state p {
  margin: 0;
  font-size: 0.94rem;
}

.participant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--ink);
}

.participant-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.avatar-dot {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.avatar-color-0 { background: var(--yellow); }
.avatar-color-1 { background: var(--mint); }
.avatar-color-2 { background: var(--pink); color: #FFFFFF; }
.avatar-color-3 { background: #A5B4FC; }
.avatar-color-4 { background: #FFAB76; }

.participant-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.participant-name {
  font-weight: 800;
  font-size: 0.97rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-contact {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface-soft);
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--danger-soft);
  color: #B41230;
}

.draw-cta-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.helper-text {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* Drawing Shuffle Overlay */
.drawing-card {
  text-align: center;
  padding: 42px 22px;
  background: linear-gradient(135deg, #FFF3BF 0%, #FFFFFF 55%, #FFE4EE 100%);
}

.shuffle-spinner {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.shuffle-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  font-size: 1.7rem;
  background: #FFFFFF;
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  animation: shuffleBounce 0.65s infinite alternate ease-in-out;
}

.shuffle-card-icon:nth-child(2) {
  background: var(--yellow);
  animation-delay: 0.14s;
}

.shuffle-card-icon:nth-child(3) {
  background: var(--mint-soft);
  animation-delay: 0.28s;
}

@keyframes shuffleBounce {
  from {
    transform: translateY(0) rotate(-6deg);
  }
  to {
    transform: translateY(-10px) rotate(6deg);
  }
}

.drawing-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.drawing-subtitle {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

/* Results Section */
.results-header {
  text-align: center;
  margin-bottom: 18px;
}

.results-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 10px;
}

.results-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.results-event-name {
  margin: 6px 0 0;
  font-weight: 800;
  color: var(--purple);
}

.results-subtitle {
  margin: 8px auto 12px;
  max-width: 440px;
  font-size: 0.93rem;
  color: var(--muted);
}

.progress-pill-wrap {
  display: flex;
  justify-content: center;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
}

.notice-banner {
  margin-bottom: 14px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  background: #FFF3BF;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  padding: 14px;
  background: #FFFFFF;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.link-item.is-sent {
  background: #F4FFF9;
}

.link-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  background: var(--surface-soft);
  color: var(--muted);
}

.status-pill.is-sent {
  background: var(--mint);
  color: var(--ink);
}

.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-actions .btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 7px 12px;
  font-size: 0.85rem;
}

.results-footer-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed rgba(27, 20, 56, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.results-footer-actions .btn {
  flex: 1 1 150px;
}

/* Footer & FAQ */
.app-footer {
  text-align: center;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-note {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
}

.faq-details {
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: left;
}

.faq-details summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
}

.faq-body {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-body p {
  margin: 0;
}

/* =========================================================
   REVEAL VIEW
   ========================================================= */
.reveal-topbar {
  display: flex;
  justify-content: center;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 var(--ink);
}

.mini-brand:hover {
  background: var(--yellow);
}

.event-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--pink-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
}

.big-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
}

.bounce-emoji {
  display: inline-block;
  animation: gentleBounce 2s infinite ease-in-out;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.card-big-title,
.gate-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.15;
}

.highlight-name {
  color: var(--purple);
}

.card-desc {
  margin: 0 auto 16px;
  max-width: 420px;
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 600;
}

.privacy-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 0.9rem;
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  text-align: left;
}

/* Reveal Stage & Scratch Card */
.reveal-stage-card {
  text-align: center;
  padding: 22px 18px 24px;
}

.stage-header {
  margin-bottom: 14px;
}

.stage-giver {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--muted);
}

.scratch-wrapper {
  position: relative;
  width: 100%;
  min-height: 225px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: linear-gradient(135deg, #F6F0FF 0%, #FFFFFF 50%, #D9FFF6 100%);
  margin-bottom: 14px;
}

.scratch-underneath {
  position: relative;
  z-index: 1;
  min-height: 225px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reveal-kicker {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}

.revealed-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  word-break: break-word;
  padding: 6px 14px;
  border-radius: 14px;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.revealed-name.is-popped {
  animation: revealPop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
}

@keyframes revealPop {
  0% { transform: scale(0.76); }
  70% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.revealed-name.is-masked {
  filter: blur(13px);
  opacity: 0.45;
  user-select: none;
}

.reveal-sub-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

#scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

#scratch-canvas:active {
  cursor: grabbing;
}

#scratch-canvas.is-revealed {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Roulette Overlay */
.roulette-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(108, 59, 255, 0.94);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.roulette-emoji {
  font-size: 3.3rem;
  display: inline-block;
  animation: rouletteSpin 0.16s infinite alternate ease-in-out;
}

@keyframes rouletteSpin {
  from { transform: translateY(-6px) scale(0.94); }
  to { transform: translateY(6px) scale(1.08); }
}

.roulette-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.scratch-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

/* Post-Reveal Panel */
.post-reveal-panel {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlideUp 0.32s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-details-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}

.event-detail-row {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.post-actions {
  display: flex;
  justify-content: center;
}

.save-tip {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.pop-divider {
  border: none;
  border-top: 2px dashed rgba(27, 20, 56, 0.16);
  margin: 4px 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(27, 20, 56, 0.56);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.modal-message {
  margin: 0 0 18px;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.email-batch-wrap {
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 540px) {
  body {
    padding: 14px 12px 40px;
  }

  .pop-card {
    padding: 16px;
    border-radius: 20px;
  }

  .form-row,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

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