/* ==========================================================================
   Hanukkah Event Page — Pastel Multi-Blue & Gold + Texas Slab/Western Fonts
   + Professional Backlit Site & Card Borders
   ========================================================================== */

:root {
  /* Pastel Multi-Blue & Dreamy Palette */
  --pastel-sky: #cbe6ff;
  --pastel-baby: #b1d8ff;
  --pastel-cornflower: #95c2f7;
  --pastel-periwinkle: #c7d4ff;
  --pastel-lavender: #e4dcff;
  --pastel-peach: #ffe4dc;
  --pastel-mint: #d6f5ee;
  --pastel-cream: #fff7dc;

  /* Pastel Golds & Warm Accents */
  --gold-light: #fff6cf;
  --gold-pastel: #ffe599;
  --gold-main: #f7cf68;
  --gold-deep: #b88218;

  /* High-Contrast Crisp Ink on Pastel Surfaces */
  --ink-deep: #152e59;
  --ink-mid: #25477e;
  --ink-soft: #436291;

  /* Professional Backlight Glows */
  --backlight-gold: rgba(255, 224, 130, 0.78);
  --backlight-sky: rgba(145, 212, 255, 0.85);
  --backlight-white: rgba(255, 255, 255, 0.92);

  /* Elegant & Readable Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-friendly: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Crisper, Less-Rounded Box Corners */
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-deep);
  background: #b5d5fb;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fixed viewport backdrop layer (avoids mobile background-attachment: fixed scroll jank) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 96% 52% at 50% 0%, #e4f3ff 0%, #c6e2ff 30%, #a5cef9 66%, #b9ccfb 100%);
}

/* ==========================================================================
   Professional Backlit Glow Frame Around the Entire Site Borders
   ========================================================================== */
.site-border-backlight {
  position: fixed;
  inset: 7px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 4;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 26px rgba(255, 240, 182, 0.58),
    inset 0 0 54px rgba(138, 206, 255, 0.5),
    0 0 18px rgba(255, 232, 148, 0.72),
    0 0 38px rgba(132, 204, 255, 0.66);
  will-change: opacity;
  animation: siteBacklightBreath 5.6s ease-in-out infinite;
}

@keyframes siteBacklightBreath {
  0%, 100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

/* Top-Left Corner BSD */
.bsd-corner {
  position: fixed;
  top: max(11px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  z-index: 20;
  font-family: var(--font-friendly);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-deep);
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95);
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Glowing Pastel Light Pulses Around Screen Corners
   ========================================================================== */
.corner-glow {
  position: fixed;
  width: 58vmax;
  height: 58vmax;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.corner-glow.tl {
  top: -20vmax;
  left: -18vmax;
  background: radial-gradient(circle, rgba(255, 238, 168, 0.62) 0%, rgba(255, 224, 236, 0.28) 42%, transparent 70%);
  animation: cornerPulseA 7.2s ease-in-out infinite;
}

.corner-glow.tr {
  top: -16vmax;
  right: -20vmax;
  background: radial-gradient(circle, rgba(212, 242, 255, 0.68) 0%, rgba(226, 212, 255, 0.3) 44%, transparent 70%);
  animation: cornerPulseB 8.4s ease-in-out infinite 1.2s;
}

.corner-glow.bl {
  bottom: -22vmax;
  left: -16vmax;
  background: radial-gradient(circle, rgba(206, 246, 238, 0.62) 0%, rgba(255, 236, 176, 0.26) 44%, transparent 70%);
  animation: cornerPulseB 9.2s ease-in-out infinite 2s;
}

.corner-glow.br {
  bottom: -20vmax;
  right: -16vmax;
  background: radial-gradient(circle, rgba(255, 236, 168, 0.62) 0%, rgba(196, 224, 255, 0.34) 44%, transparent 70%);
  animation: cornerPulseA 7.8s ease-in-out infinite 0.6s;
}

@keyframes cornerPulseA {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.14);
  }
}

@keyframes cornerPulseB {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1.08);
  }
  50% {
    opacity: 0.9;
    transform: scale(0.9);
  }
}

/* Very subtle pastel Chanukkah wallpaper: straight V-branch menorah, dreidels & jelly donuts */
.chanukkah-bg-pattern {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.11;
}

.bg-motif-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Floating Pastel Sparkles Background Canvas */
#sparkles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Main Mobile-First Page Shell with Soft Studio Edge Backlight
   ========================================================================== */
.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 14px auto;
  padding: max(26px, env(safe-area-inset-top)) 22px max(42px, env(safe-area-inset-bottom));
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(226, 242, 255, 0.36) 55%, rgba(235, 232, 255, 0.4) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 0 0 1px rgba(255, 228, 138, 0.42),
    0 0 36px rgba(255, 236, 168, 0.48),
    0 0 64px rgba(154, 212, 255, 0.52),
    0 20px 50px rgba(48, 86, 148, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Elegant Top Header & Event Details
   ========================================================================== */
.hero-header {
  text-align: center;
  margin-bottom: 14px;
}

.hero-title-wrap {
  position: relative;
  padding-top: 78px;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.hero-menorah-watermark {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.96;
  filter: drop-shadow(0 3px 10px rgba(34, 68, 128, 0.2));
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 10vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  font-variant-numeric: lining-nums;
}

.hero-title-line2 {
  display: inline-block;
  white-space: nowrap;
}

.hero-title-city {
  font-size: 0.43em;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ink-mid);
  margin-left: 5px;
  vertical-align: baseline;
}

.hosted-by-line {
  position: relative;
  z-index: 2;
  margin: 2px 0 4px;
  font-family: var(--font-friendly);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

@keyframes electricHeroGlow {
  0%, 100% {
    text-shadow:
      0 2px 0 rgba(255, 238, 174, 0.96),
      0 0 14px rgba(102, 224, 255, 0.72),
      0 0 28px rgba(255, 228, 130, 0.78),
      0 0 42px rgba(255, 255, 255, 0.9);
  }
  44% {
    text-shadow:
      0 2px 0 rgba(255, 242, 188, 1),
      -1.5px 0 12px rgba(58, 214, 255, 0.92),
      1.5px 0 14px rgba(255, 218, 96, 0.92),
      0 0 34px rgba(114, 232, 255, 0.88),
      0 0 52px rgba(255, 255, 255, 0.95);
  }
  48% {
    text-shadow:
      0 2px 0 #ffffff,
      -2.5px 0 18px rgba(64, 228, 255, 1),
      2.5px 0 18px rgba(255, 222, 102, 1),
      0 0 40px rgba(145, 242, 255, 0.98);
  }
  52% {
    text-shadow:
      0 2px 0 rgba(255, 238, 174, 0.96),
      0 0 18px rgba(84, 222, 255, 0.8),
      0 0 32px rgba(255, 228, 130, 0.85);
  }
}

/* Top Event Details Glass Card — Pastel + Backlit Border */
.event-details-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 242, 255, 0.86));
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 224, 132, 0.45),
    0 0 24px rgba(154, 214, 255, 0.52),
    0 12px 26px rgba(42, 78, 142, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  text-align: left;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.detail-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff4c8, #d8ecff);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  color: var(--ink-mid);
  box-shadow: 0 0 12px rgba(255, 224, 132, 0.5);
  margin-top: 2px;
}

.detail-icon svg {
  width: 17px;
  height: 17px;
}

.detail-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-variant-numeric: lining-nums;
}

.detail-label {
  font-family: var(--font-friendly);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ad7612;
}

.detail-text strong {
  font-family: var(--font-friendly);
  font-size: 0.89rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  line-height: 1.28;
}

.detail-sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 1px;
  line-height: 1.3;
}

.detail-divider {
  width: 1.5px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(134, 184, 240, 0.6), transparent);
}

/* ==========================================================================
   Chabad Menorah + Interactive Spinning Dreidel Stage
   ========================================================================== */
.menorah-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 24px;
}

/* Soft pastel twilight halo behind the Menorah flames so gold & candlelight glow richly */
.menorah-ambient-aura {
  position: absolute;
  top: 2px;
  width: 340px;
  height: 205px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 236, 162, 0.65) 0%,
    rgba(116, 166, 236, 0.42) 48%,
    rgba(182, 218, 255, 0) 76%
  );
  filter: blur(20px);
  pointer-events: none;
  animation: auraBreath 4.2s ease-in-out infinite;
}

@keyframes auraBreath {
  0%, 100% { opacity: 0.78; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

.menorah-dreidel-row {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px 10px 8px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(84, 134, 212, 0.34) 0%, rgba(128, 174, 240, 0.24) 65%, rgba(255, 255, 255, 0.38) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 28px rgba(255, 232, 156, 0.45),
    0 0 42px rgba(154, 214, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.menorah-button {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  padding: 2px 2px 0;
  flex: 1 1 70%;
  max-width: 315px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.28s var(--ease-spring);
}

.menorah-button:hover {
  transform: scale(1.02);
}

.menorah-button:active {
  transform: scale(0.97);
}

.menorah-button:focus:not(:focus-visible),
.dreidel-button:focus:not(:focus-visible) {
  outline: none;
}

.menorah-button:focus-visible,
.dreidel-button:focus-visible {
  outline: 2px solid rgba(255, 224, 128, 0.9);
  outline-offset: 4px;
  border-radius: 10px;
}

.menorah-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(32, 66, 128, 0.32));
}

/* True 3D Physics-Driven Pastel Dreidel Next to Menorah */
.dreidel-button {
  position: relative;
  z-index: 3;
  flex: 0 0 30%;
  min-width: 96px;
  max-width: 122px;
  background: none;
  border: none;
  padding: 0 0 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s var(--ease-spring);
}

.dreidel-button:hover {
  transform: translateY(-2px);
}

.dreidel-button:active {
  transform: scale(0.96);
}

.dreidel-spin-stage {
  position: relative;
  width: 100%;
  height: 122px;
  perspective: 440px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.dreidel-physics-body {
  position: relative;
  width: 46px;
  height: 100px;
  margin-bottom: 6px;
  transform-origin: 50% 98%;
  transform-style: preserve-3d;
  will-change: transform;
}

.dreidel-3d-rotor {
  position: relative;
  width: 46px;
  height: 100px;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transform: rotateX(-12deg) rotateY(-24deg);
  will-change: transform;
}

/* Solid 3D Handle (crossed planes + top cap) */
.d3d-handle {
  position: absolute;
  top: 0;
  left: 17px;
  width: 12px;
  height: 24px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #e2af34 0%, #fff6cf 45%, #ffd96b 75%, #c9921d 100%);
  border: 1px solid rgba(255, 250, 220, 0.85);
}

.d3d-handle-a {
  transform: rotateY(0deg);
}

.d3d-handle-b {
  transform: rotateY(90deg);
}

.d3d-handle-cap {
  position: absolute;
  top: -6px;
  left: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ffe694 70%, #d8a224 100%);
  transform: rotateX(90deg);
}

/* True 4-Sided 3D Cube Body */
.d3d-cube {
  position: absolute;
  top: 22px;
  left: 0;
  width: 46px;
  height: 48px;
  transform-style: preserve-3d;
}

.d3d-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid #ffe07d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32), inset 0 0 10px rgba(27, 54, 100, 0.16);
  backface-visibility: visible;
}

.d3d-face span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: #fff9dc;
  text-shadow: 0 1px 0 #b88218, 0 0 8px rgba(255, 232, 148, 0.72);
}

.d3d-front {
  background: linear-gradient(155deg, #addfff 0%, #7cbcf7 55%, #5b9be6 100%);
  transform: rotateY(0deg) translateZ(23px);
}

.d3d-right {
  background: linear-gradient(155deg, #95d0ff 0%, #64a8ee 55%, #4887d4 100%);
  transform: rotateY(90deg) translateZ(23px);
}

.d3d-back {
  background: linear-gradient(155deg, #b8e4ff 0%, #86c3fa 55%, #63a2eb 100%);
  transform: rotateY(180deg) translateZ(23px);
}

.d3d-left {
  background: linear-gradient(155deg, #8ec9fc 0%, #5da1ea 55%, #4280cc 100%);
  transform: rotateY(270deg) translateZ(23px);
}

.d3d-cap-top {
  position: absolute;
  top: -23px;
  left: 0;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #e5f5ff 0%, #a8dcff 55%, #79bbf7 100%);
  border: 2px solid #fff3c4;
  transform: rotateX(90deg);
}

.d3d-cap-bottom {
  position: absolute;
  top: 25px;
  left: 0;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ffe694, #d69c24);
  transform: rotateX(-90deg);
}

/* True 4-Sided 3D Golden Pyramid Spinning Tip */
.d3d-tip {
  position: absolute;
  top: 48px;
  left: 0;
  width: 46px;
  height: 37.8px;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  transform-origin: 50% 0%;
  backface-visibility: visible;
}

.d3d-tip-front {
  background: linear-gradient(180deg, #fff3bd 0%, #ffd866 52%, #d89b1e 100%);
  transform: rotateY(0deg) translateZ(23px) rotateX(-37.5deg);
}

.d3d-tip-right {
  background: linear-gradient(180deg, #ffe89e 0%, #ecc046 55%, #bf8314 100%);
  transform: rotateY(90deg) translateZ(23px) rotateX(-37.5deg);
}

.d3d-tip-back {
  background: linear-gradient(180deg, #fff6cb 0%, #ffdd75 52%, #dda125 100%);
  transform: rotateY(180deg) translateZ(23px) rotateX(-37.5deg);
}

.d3d-tip-left {
  background: linear-gradient(180deg, #ffe28c 0%, #e4b538 55%, #b57b10 100%);
  transform: rotateY(270deg) translateZ(23px) rotateX(-37.5deg);
}

.dreidel-ground-shadow {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 42px;
  height: 10px;
  border-radius: 50%;
  background: rgba(24, 54, 108, 0.34);
  filter: blur(2.5px);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform, opacity;
}

.dreidel-motion-ring {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 72px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 14px rgba(132, 214, 255, 0.92), inset 0 0 8px rgba(255, 232, 148, 0.82);
  transform: translateX(-50%) scale(0.5);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.dreidel-label {
  position: relative;
  z-index: 4;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 1);
  font-family: var(--font-friendly);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-deep);
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 228, 138, 0.65), 0 4px 10px rgba(34, 68, 128, 0.14);
  transition: transform 0.25s var(--ease-spring), background 0.25s ease;
}

.dreidel-label.is-result {
  background: linear-gradient(135deg, #fff3c0, #dff2ff);
  border-color: #ffffff;
  color: var(--ink-deep);
  transform: scale(1.08);
}

.menorah-tap-hint {
  margin-top: 8px;
  font-family: var(--font-friendly);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-mid);
  letter-spacing: 0.01em;
}

/* Independent organic flame flicker animations */
.flame-outer,
.flame-inner {
  transform-box: fill-box;
  transform-origin: 50% 96%;
}

.halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: haloPulse 2.3s ease-in-out infinite;
}

.flame-group .flame-outer {
  animation: flameFlicker 1.9s ease-in-out infinite;
}

.flame-group .flame-inner {
  animation: flameCorePulse 1.45s ease-in-out infinite;
}

.f1 .flame-outer { animation-duration: 1.75s; animation-delay: -0.2s; }
.f2 .flame-outer { animation-duration: 2.05s; animation-delay: -0.9s; }
.f3 .flame-outer { animation-duration: 1.85s; animation-delay: -1.4s; }
.f4 .flame-outer { animation-duration: 2.2s;  animation-delay: -0.5s; }
.f5 .flame-outer { animation-duration: 1.95s; animation-delay: -1.1s; }
.f6 .flame-outer { animation-duration: 2.1s;  animation-delay: -0.3s; }
.f7 .flame-outer { animation-duration: 1.8s;  animation-delay: -1.6s; }
.f8 .flame-outer { animation-duration: 2.25s; animation-delay: -0.8s; }
.f9 .flame-outer { animation-duration: 1.9s;  animation-delay: -1.2s; }

.h1 { animation-delay: -0.1s; animation-duration: 2.1s; }
.h2 { animation-delay: -0.8s; animation-duration: 2.4s; }
.h3 { animation-delay: -1.3s; animation-duration: 2.0s; }
.h4 { animation-delay: -0.4s; animation-duration: 2.5s; }
.h5 { animation-delay: -0.9s; animation-duration: 2.2s; }
.h6 { animation-delay: -1.5s; animation-duration: 2.3s; }
.h7 { animation-delay: -0.6s; animation-duration: 2.0s; }
.h8 { animation-delay: -1.1s; animation-duration: 2.6s; }
.h9 { animation-delay: -0.2s; animation-duration: 2.2s; }

@keyframes flameFlicker {
  0%   { transform: scale(1, 1) rotate(-1.6deg); opacity: 0.96; }
  20%  { transform: scale(0.93, 1.09) rotate(2.1deg); opacity: 1; }
  42%  { transform: scale(1.06, 0.94) rotate(-2.4deg); opacity: 0.92; }
  65%  { transform: scale(0.95, 1.07) rotate(1.5deg); opacity: 1; }
  85%  { transform: scale(1.04, 0.98) rotate(-1.1deg); opacity: 0.95; }
  100% { transform: scale(1, 1) rotate(-1.6deg); opacity: 0.96; }
}

@keyframes flameCorePulse {
  0%, 100% { transform: scale(0.95, 0.96); opacity: 0.92; }
  50% { transform: scale(1.07, 1.08); opacity: 1; }
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.66; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

.menorah-button.sparkle-flash .halo {
  opacity: 1 !important;
  filter: brightness(1.35);
}

/* ==========================================================================
   Rotating Glowing Slogan Banner — Pastel + Electric Lightning Transition
   ========================================================================== */
.slogan-stage {
  margin: 14px 0 22px;
}

.slogan-banner {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  width: 100%;
  padding: 14px 16px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(255, 248, 224, 0.84), rgba(235, 246, 255, 0.86), rgba(238, 232, 255, 0.84));
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 222, 128, 0.5),
    0 0 26px rgba(255, 234, 158, 0.58),
    0 10px 24px rgba(42, 78, 142, 0.14),
    inset 0 1px 0 #ffffff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

.slogan-banner.is-zapping {
  border-color: #79e8ff;
  box-shadow:
    0 0 28px rgba(90, 226, 255, 0.95),
    0 0 50px rgba(255, 224, 114, 0.8),
    inset 0 0 26px rgba(158, 244, 255, 0.72);
  animation: bannerZapJolt 0.34s linear;
}

@keyframes bannerZapJolt {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 1px); }
  45% { transform: translate(2.5px, -1px); }
  70% { transform: translate(-1.5px, 0.5px); }
}

.electric-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

.electric-arcs .arc {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: miter;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}

.electric-arcs .arc-1 {
  stroke: #32c5ff;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 6px #5beaff) drop-shadow(0 0 12px #ffffff);
}

.electric-arcs .arc-2 {
  stroke: #f5b92a;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 8px #ffe066);
}

.electric-arcs .arc-3 {
  stroke: #ffffff;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px #48d5ff);
}

.slogan-banner.is-zapping .electric-arcs {
  animation: electricArcFlash 0.42s ease-out forwards;
}

.slogan-banner.is-zapping .arc-1 {
  animation: arcBoltDraw 0.36s linear forwards;
}

.slogan-banner.is-zapping .arc-2 {
  animation: arcBoltDraw 0.38s linear 0.04s forwards;
}

.slogan-banner.is-zapping .arc-3 {
  animation: arcBoltDraw 0.32s linear 0.08s forwards;
}

@keyframes electricArcFlash {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  28%  { opacity: 0.35; }
  46%  { opacity: 1; }
  75%  { opacity: 0.5; }
  100% { opacity: 0; }
}

@keyframes arcBoltDraw {
  0%   { stroke-dashoffset: 520; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -520; }
}

.electric-flash-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(145, 240, 255, 0.72) 0%, rgba(255, 236, 152, 0.42) 48%, transparent 78%);
  opacity: 0;
}

.slogan-banner.is-zapping .electric-flash-layer {
  animation: electricFlashBg 0.42s ease-out forwards;
}

@keyframes electricFlashBg {
  0%   { opacity: 0; }
  18%  { opacity: 0.95; }
  45%  { opacity: 0.25; }
  62%  { opacity: 0.7; }
  100% { opacity: 0; }
}

.slogan-track {
  position: relative;
  z-index: 2;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slogan-text {
  margin: 0;
  font-family: var(--font-friendly);
  font-size: clamp(0.98rem, 4.1vw, 1.14rem);
  font-weight: 700;
  color: var(--ink-deep);
  animation: electricSloganHum 3.4s ease-in-out infinite;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

@keyframes electricSloganHum {
  0%, 100% {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.92),
      0 0 10px rgba(84, 220, 255, 0.6),
      0 0 18px rgba(255, 224, 118, 0.55);
  }
  50% {
    text-shadow:
      0 1px 0 #ffffff,
      -1px 0 12px rgba(56, 212, 255, 0.88),
      1px 0 12px rgba(255, 214, 92, 0.85),
      0 0 24px rgba(128, 236, 255, 0.78);
  }
}

.slogan-text.is-electric-out {
  animation: sloganElectricOut 0.22s steps(3, end) forwards;
}

.slogan-text.is-electric-in {
  animation: sloganElectricIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sloganElectricOut {
  0% {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
    text-shadow: -3px 0 10px #3fd8ff, 3px 0 10px #f5b92a;
    filter: brightness(1.2);
  }
  40% {
    opacity: 0.85;
    transform: translateX(-6px) skewX(-12deg) scaleY(0.92);
    text-shadow: 5px 0 16px #3ad4ff, -5px 0 14px #f7c744;
    filter: brightness(1.4);
  }
  75% {
    opacity: 0.45;
    transform: translateX(7px) skewX(10deg) scale(1.04, 0.72);
    color: #2076c8;
  }
  100% {
    opacity: 0;
    transform: translateX(-4px) scale(0.95, 0.4);
  }
}

@keyframes sloganElectricIn {
  0% {
    opacity: 0;
    transform: translateX(8px) skewX(12deg) scale(1.06, 0.6);
    color: #166cc2;
    text-shadow: -5px 0 18px #46dcff, 5px 0 18px #ffcf4d;
  }
  38% {
    opacity: 1;
    transform: translateX(-4px) skewX(-5deg) scale(1.02);
    color: #1c4488;
    text-shadow: 3px 0 14px #5ce2ff, -3px 0 14px #ffd866;
  }
  72% {
    opacity: 1;
    transform: translateX(1.5px) skewX(1deg) scale(1);
    text-shadow: 0 0 14px rgba(102, 224, 255, 0.7), 0 0 16px rgba(255, 224, 114, 0.75);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0deg) scale(1);
    color: var(--ink-deep);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

.slogan-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
}

.slogan-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(43, 78, 134, 0.28);
  cursor: pointer;
  transition: width 0.3s var(--ease-spring), background 0.3s ease;
}

.slogan-dot.is-active {
  width: 22px;
  background: #e5a824;
  box-shadow: 0 0 10px rgba(247, 207, 104, 0.85);
}

/* ==========================================================================
   Centerpiece: Zero-Pressure 'Count Me In!' Card — Pastel + Backlit Border
   ========================================================================== */
.rsvp-section {
  margin: 18px 0 18px;
}

.slogan-stage {
  margin: 0 0 30px;
}

.rsvp-card {
  position: relative;
  padding: 26px 20px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.91) 0%, rgba(226, 243, 255, 0.88) 55%, rgba(239, 233, 255, 0.88) 100%);
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 1.5px rgba(255, 222, 128, 0.62),
    0 0 34px rgba(255, 232, 152, 0.62),
    0 0 54px rgba(154, 214, 255, 0.52),
    0 18px 40px rgba(42, 78, 142, 0.16),
    inset 0 1px 0 #ffffff;
  text-align: center;
}

.rsvp-intro {
  margin-bottom: 18px;
}

.rsvp-kicker {
  display: inline-block;
  font-family: var(--font-friendly);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: #b57d14;
  margin-bottom: 5px;
}

.rsvp-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 5.6vw, 1.78rem);
  font-weight: 700;
  color: var(--ink-deep);
  text-shadow: 0 2px 0 rgba(255, 236, 174, 0.85);
}

/* HUGE High-Voltage Electric 'Count Me In!' Button */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.cta-side-prompt {
  margin: 0;
  max-width: none;
  text-align: center;
  font-family: var(--font-friendly);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tap-highlight {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 2px;
  border-radius: 5px;
  background: linear-gradient(120deg, #fff39e 0%, #ffe047 100%);
  color: var(--ink-deep);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 224, 71, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.cta-arrow {
  display: inline-block;
  flex-shrink: 0;
  font-size: 1.12rem;
  color: #1694d4;
  animation: ctaArrowBounce 1.5s ease-in-out infinite;
}

@keyframes ctaArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.count-me-in-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 390px;
  min-height: 74px;
  padding: 20px 30px;
  border: 2.5px solid #a8f4ff;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-friendly);
  font-size: clamp(1.32rem, 5.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  color: #0e2854;
  background: linear-gradient(135deg, #fff8cc 0%, #ffe066 36%, #9ef2ff 68%, #ffd84d 100%);
  background-size: 220% 220%;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 12px rgba(102, 238, 255, 0.72);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(64, 224, 255, 0.85),
    0 0 42px rgba(255, 218, 92, 0.75),
    0 12px 28px rgba(27, 74, 152, 0.28),
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 0 16px rgba(132, 244, 255, 0.55);
  transition:
    transform 0.24s var(--ease-spring),
    box-shadow 0.24s ease,
    background 0.35s ease,
    border-color 0.24s ease;
  animation:
    ctaElectricPulse 2.4s ease-in-out infinite,
    ctaElectricShift 4.5s ease-in-out infinite;
}

.count-me-in-btn:hover:not(.is-counted) {
  transform: translateY(-4px) scale(1.035);
  border-color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(132, 244, 255, 0.95),
    0 0 34px rgba(56, 228, 255, 1),
    0 0 60px rgba(255, 222, 102, 0.92),
    0 16px 36px rgba(24, 72, 156, 0.34),
    inset 0 2px 4px #ffffff;
}

.count-me-in-btn:active:not(.is-counted) {
  transform: translateY(1px) scale(0.96);
}

.btn-electric-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.btn-arc {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: miter;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

.btn-arc-1 {
  stroke: #ffffff;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px #38dcff) drop-shadow(0 0 10px #ffffff);
  animation: btnArcCrackle 2.6s linear infinite;
}

.btn-arc-2 {
  stroke: #7cf4ff;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px #ffd43b) drop-shadow(0 0 10px #5ce8ff);
  animation: btnArcCrackle 2.6s linear infinite 1.25s;
}

.count-me-in-btn:hover:not(.is-counted) .btn-arc-1,
.count-me-in-btn:hover:not(.is-counted) .btn-arc-2 {
  animation-duration: 1.2s;
}

.count-me-in-btn.is-counted .btn-electric-arcs {
  display: none;
}

@keyframes btnArcCrackle {
  0%, 62% { stroke-dashoffset: 420; opacity: 0; }
  66%     { opacity: 0.95; }
  78%     { stroke-dashoffset: 0; opacity: 1; }
  88%     { stroke-dashoffset: -420; opacity: 0.7; }
  100%    { stroke-dashoffset: -420; opacity: 0; }
}

.btn-icon,
.btn-label {
  position: relative;
  z-index: 2;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.92) 50%, rgba(145, 245, 255, 0.55) 62%, transparent 82%);
  transform: skewX(-20deg);
  animation: btnShineSweep 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes btnShineSweep {
  0%, 52% { left: -120%; }
  100% { left: 165%; }
}

@keyframes ctaElectricShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ctaElectricPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.92),
      0 0 20px rgba(64, 224, 255, 0.78),
      0 0 38px rgba(255, 218, 92, 0.68),
      0 10px 26px rgba(27, 74, 152, 0.24),
      inset 0 2px 3px rgba(255, 255, 255, 0.95);
  }
  48% {
    box-shadow:
      0 0 0 3px rgba(154, 246, 255, 1),
      0 0 34px rgba(56, 228, 255, 1),
      0 0 58px rgba(255, 226, 110, 0.94),
      0 14px 32px rgba(27, 74, 152, 0.32),
      inset 0 2px 4px #ffffff,
      inset 0 0 22px rgba(140, 244, 255, 0.72);
  }
  52% {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 24px rgba(96, 236, 255, 0.88),
      0 0 42px rgba(255, 222, 102, 0.8),
      0 12px 28px rgba(27, 74, 152, 0.26);
  }
}

/* Confirmed / Already Counted State */
.count-me-in-btn.is-counted {
  animation: none;
  cursor: default;
  min-height: 54px;
  padding: 13px 26px;
  width: auto;
  min-width: 220px;
  font-size: 1.08rem;
  color: var(--ink-deep);
  background: linear-gradient(135deg, #d7f5ee, #daf0ff);
  border: 2px solid #ffffff;
  text-shadow: none;
  box-shadow:
    0 0 22px rgba(152, 232, 214, 0.75),
    0 8px 20px rgba(42, 78, 142, 0.14);
}

.count-me-in-btn.is-counted .btn-shine {
  display: none;
}

.zero-pressure-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.zero-pressure-note.is-hidden {
  display: none;
}

/* ==========================================================================
   Clean, Unified Post-Click RSVP Section (Flat Hairline Dividers, Zero Clutter)
   ========================================================================== */
.cta-row.is-confirmed .cta-side-prompt {
  display: none;
}

.post-click-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.5s var(--ease-smooth),
    opacity 0.4s ease,
    margin-top 0.4s ease;
}

.post-click-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

.post-click-inner {
  overflow: hidden;
  text-align: left;
  padding: 2px 4px 8px;
}

.post-click-panel.is-open .post-click-inner {
  overflow: visible;
}

.rsvp-divider {
  width: 100%;
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, rgba(132, 184, 240, 0.48), transparent);
}

.rsvp-divider:first-child {
  margin-top: 0;
}

/* Clean Steppers Section */
.party-section {
  padding: 2px 4px;
}

.party-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.party-title {
  font-family: var(--font-friendly);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.party-badge {
  font-family: var(--font-friendly);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-deep);
  background: rgba(255, 243, 196, 0.85);
  border: 1px solid rgba(245, 200, 92, 0.65);
  padding: 3px 10px;
  border-radius: 6px;
}

.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.stepper-row:hover {
  background: rgba(255, 255, 255, 0.45);
}

.stepper-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-emoji {
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.stepper-label {
  font-family: var(--font-friendly);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid rgba(176, 212, 248, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-deep);
  font-family: var(--font-friendly);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(42, 78, 142, 0.08);
  transition: transform 0.18s var(--ease-spring), background 0.18s ease, opacity 0.18s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: #fff4c4;
  border-color: #f3c85c;
  transform: scale(1.06);
}

.stepper-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.stepper-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.stepper-value {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-friendly);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-deep);
}

/* Optional Collapsible Dropdowns Group (Glowing Electric Post-RSVP Actions) */
.optional-drawer-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-action-block {
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-smooth), max-height 0.4s ease;
  max-height: 460px;
}

.post-action-block.is-completing {
  opacity: 0;
  transform: scale(0.95) translateY(-6px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.post-action-block.is-dismissed {
  display: none !important;
}

.post-action-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-friendly);
  font-weight: 800;
  color: #0e2854;
  transition: transform 0.22s var(--ease-spring), filter 0.22s ease;
}

.post-action-btn:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.04);
}

.post-action-btn:active {
  transform: scale(0.97);
}

.post-action-btn .post-action-label,
.post-action-btn .action-bolt {
  position: relative;
  z-index: 2;
}

.action-bolt {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  animation: actionBoltPulse 1.5s ease-in-out infinite;
}

@keyframes actionBoltPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.92; }
  50% { transform: scale(1.22) rotate(-8deg); opacity: 1; }
}

/* Primary Electric Button: Name & Phone Reminder (Most Important!) */
.post-action-primary {
  min-height: 56px;
  padding: 14px 18px;
  font-size: 0.98rem;
  letter-spacing: 0.015em;
  border: 2px solid #a8f4ff;
  background: linear-gradient(135deg, #fff8cc 0%, #ffe066 40%, #a4f3ff 74%, #ffd84d 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.96),
    0 0 22px rgba(64, 224, 255, 0.85),
    0 0 38px rgba(255, 218, 92, 0.8),
    0 8px 20px rgba(27, 74, 152, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.95);
  animation: postActionElectricBreath 2.3s ease-in-out infinite;
}

/* Secondary Electric Button: Add to Calendar */
.post-action-secondary {
  min-height: 46px;
  padding: 11px 16px;
  font-size: 0.87rem;
  letter-spacing: 0.01em;
  border: 1.8px solid #9beeff;
  background: linear-gradient(135deg, #eef9ff 0%, #c8eeff 46%, #fff3bf 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.94),
    0 0 16px rgba(64, 224, 255, 0.7),
    0 0 26px rgba(255, 224, 120, 0.52),
    0 6px 14px rgba(27, 74, 152, 0.14),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  animation: postActionElectricBreath 2.7s ease-in-out infinite 0.55s;
}

.post-action-secondary .btn-arc-1 {
  animation-duration: 3.1s;
  stroke-width: 1.8;
}

.post-action-secondary .btn-arc-2 {
  animation-duration: 3.1s;
  animation-delay: 1.5s;
  stroke-width: 1.5;
}

@keyframes postActionElectricBreath {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 6px rgba(64, 224, 255, 0.55));
  }
  50% {
    transform: translateY(-1.5px);
    filter: drop-shadow(0 0 13px rgba(64, 224, 255, 0.92));
  }
}

.post-actions-done-msg {
  margin: 0;
  text-align: center;
  font-family: var(--font-friendly);
  font-size: 0.84rem;
  font-weight: 700;
  color: #157347;
}

.post-actions-done-msg.is-hidden,
.rsvp-divider.is-hidden {
  display: none;
}

/* Clean Calendar Reminder Row (inside dropdown) */
.calendar-section {
  padding: 6px 4px 10px;
  text-align: center;
}

.calendar-label {
  margin: 0 0 10px;
  font-family: var(--font-friendly);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-mid);
}

.calendar-btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  font-family: var(--font-friendly);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-deep);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease;
}

.calendar-btn-primary {
  background: linear-gradient(135deg, #fff5c8, #ffe184);
  box-shadow: 0 3px 10px rgba(184, 130, 24, 0.14);
}

.calendar-btn-primary:hover {
  background: linear-gradient(135deg, #ffefa8, #ffd65e);
  transform: translateY(-1px);
}

.calendar-btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(176, 212, 248, 0.85);
  box-shadow: 0 3px 10px rgba(42, 78, 142, 0.08);
}

.calendar-btn-secondary:hover {
  background: #eff7ff;
  transform: translateY(-1px);
}

.calendar-btn:active {
  transform: scale(0.96);
}

.calendar-status {
  margin: 7px 0 0;
  min-height: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #157347;
  text-align: center;
}

.calendar-status:empty {
  margin-top: 0;
}

/* Subtle Clickable Reminder Link */
.reminder-toggle-wrap {
  margin-top: 2px;
  text-align: center;
}

.reminder-toggle-link {
  background: none;
  border: none;
  padding: 5px 10px;
  font-family: var(--font-friendly);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-spring);
}

.reminder-toggle-link:hover {
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.55);
}

.reminder-toggle-link:active {
  transform: scale(0.97);
}

/* Smoothly Expanding Reminder Drawer (Clean, No Extra Dashed Box) */
.reminder-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.42s var(--ease-smooth),
    opacity 0.32s ease,
    margin-top 0.32s ease;
}

.reminder-drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

.reminder-drawer-inner {
  overflow: hidden;
}

.reminder-form {
  padding: 6px 4px 2px;
  text-align: left;
}

.reminder-reassurance {
  margin: 0 0 12px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-group {
  margin-bottom: 11px;
}

.field-group label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-friendly);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.opt-tag {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-soft);
}

.field-group input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 7px;
  border: 1.5px solid rgba(154, 202, 248, 0.85);
  background: #f5faff;
  color: var(--ink-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-group input::placeholder {
  color: rgba(67, 102, 156, 0.55);
}

.field-group input:focus {
  border-color: #eab330;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 224, 132, 0.45);
}

.save-reminder-btn {
  width: 100%;
  padding: 12px 18px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1.5px solid #ffffff;
  background: linear-gradient(135deg, #ffeaa0, #cce8ff);
  color: var(--ink-deep);
  font-family: var(--font-friendly);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 224, 130, 0.55), 0 4px 12px rgba(42, 78, 142, 0.12);
  transition: transform 0.22s var(--ease-spring), background 0.22s ease, box-shadow 0.22s ease;
}

.save-reminder-btn:hover {
  background: linear-gradient(135deg, #ffe27c, #b8dfff);
  transform: translateY(-1px);
}

.save-reminder-btn:active {
  transform: scale(0.97);
}

.reminder-status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  font-weight: 800;
  color: #157347;
  text-align: center;
}

/* ==========================================================================
   Event Highlights Section — Varied Pastel Cards with Backlit Borders
   ========================================================================== */
.highlights-section {
  margin: 12px 0 36px;
}

.section-heading {
  text-align: center;
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-friendly);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a67110;
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 5.8vw, 1.86rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  text-wrap: balance;
  color: var(--ink-deep);
}

.section-desc {
  margin: 7px auto 0;
  max-width: 365px;
  font-size: 0.89rem;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--ink-mid);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.highlight-card {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255, 250, 230, 0.86), rgba(228, 243, 255, 0.84));
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 224, 134, 0.42),
    0 0 22px rgba(162, 216, 255, 0.5),
    0 12px 24px rgba(42, 78, 142, 0.12),
    inset 0 1px 0 #ffffff;
  text-align: center;
  transition:
    transform 0.34s var(--ease-spring),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  transition-delay: var(--delay, 0ms);
}

/* Soft dreamy pastel tints across the 4 highlight cards */
.highlight-card:nth-child(2) {
  background: linear-gradient(155deg, rgba(255, 238, 235, 0.88), rgba(232, 244, 255, 0.84));
}

.highlight-card:nth-child(3) {
  background: linear-gradient(155deg, rgba(236, 232, 255, 0.88), rgba(226, 242, 255, 0.84));
}

.highlight-card:nth-child(4) {
  background: linear-gradient(155deg, rgba(222, 249, 243, 0.88), rgba(228, 243, 255, 0.84));
}

.highlight-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(255, 224, 130, 0.78),
    0 0 32px rgba(255, 232, 152, 0.72),
    0 16px 30px rgba(42, 78, 142, 0.18);
  transition-delay: 0ms;
}

.highlight-card:active {
  transform: scale(0.97);
  transition-delay: 0ms;
}

.highlight-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 11px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #8ec2f8, #5c96e0);
  border: 2px solid #ffffff;
  box-shadow: 0 0 18px rgba(154, 214, 255, 0.75), 0 6px 14px rgba(42, 78, 142, 0.16);
  transition: transform 0.35s var(--ease-spring);
}

.highlight-card:hover .highlight-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.highlight-icon {
  width: 44px;
  height: 44px;
}

.highlight-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-friendly);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  line-height: 1.26;
  text-wrap: balance;
}

.highlight-card p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.48;
  text-wrap: pretty;
  color: var(--ink-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding-top: 8px;
}

.footer-glow-line {
  width: 72%;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, #ffffff, #ffe38f, #ffffff, transparent);
  box-shadow: 0 0 12px rgba(255, 228, 140, 0.75);
}

.footer-chabad-credit {
  margin: 0 0 10px;
  font-family: var(--font-friendly);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-deep);
  animation: electricKickerPulse 3.4s ease-in-out infinite;
}

.footer-quote {
  margin: 0 auto 10px;
  max-width: 390px;
  padding: 0;
}

.footer-quote-text {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-style: italic;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1.38;
  animation: electricSoftTextGlow 4.6s ease-in-out infinite;
}

.footer-quote-author {
  display: block;
  font-family: var(--font-friendly);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.footer-see-you {
  margin: 6px 0 16px;
  font-family: var(--font-friendly);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink-deep);
  animation: electricCardTitleGlow 3.8s ease-in-out infinite;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.donate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-friendly);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 18px rgba(255, 228, 138, 0.65), 0 6px 14px rgba(42, 78, 142, 0.12);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s var(--ease-spring);
}

.donate-link:hover {
  background: #fff6cf;
  transform: translateY(-2px);
}

.donate-link:active {
  transform: scale(0.96);
}

.footer-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(154, 198, 245, 0.48);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-contact-label {
  margin: 0;
  font-family: var(--font-friendly);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.footer-phone-number {
  font-family: var(--font-friendly);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-deep);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s var(--ease-spring);
}

.footer-phone-number:hover {
  color: #1f5cb8;
  transform: scale(1.02);
}

.footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-friendly);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 14px rgba(154, 214, 255, 0.45), 0 4px 10px rgba(42, 78, 142, 0.1);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease;
}

.contact-pill:hover {
  transform: translateY(-2px);
  background: #eff7ff;
  box-shadow: 0 0 18px rgba(154, 214, 255, 0.7), 0 6px 14px rgba(42, 78, 142, 0.14);
}

.contact-pill:active {
  transform: scale(0.95);
}

.contact-pill.contact-whatsapp {
  background: linear-gradient(135deg, rgba(236, 253, 243, 0.95), rgba(220, 252, 231, 0.92));
  color: #14532d;
  border-color: rgba(134, 239, 172, 0.85);
}

.contact-pill.contact-whatsapp:hover {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.contact-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   Scroll Reveal, Tap Sparkles & Electric Sparks
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.65s var(--ease-smooth),
    transform 0.65s var(--ease-smooth);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tap-sparkle {
  position: fixed;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ffe078 55%, transparent 100%);
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 0 10px rgba(255, 224, 120, 0.95);
  animation: tapSparkleFly 0.85s var(--ease-smooth) forwards;
}

/* Refined, Delicate Menorah Sparkles */
.menorah-star-sparkle {
  position: fixed;
  width: var(--size, 11px);
  height: var(--size, 11px);
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, #ffffff 0%, var(--spark-hue, #ffe074) 55%, #f5b92a 100%);
  clip-path: polygon(
    50% 0%, 62% 38%, 100% 50%, 62% 62%,
    50% 100%, 38% 62%, 0% 50%, 38% 38%
  );
  filter:
    drop-shadow(0 0 3px rgba(245, 180, 41, 0.72))
    drop-shadow(0 0 6px rgba(255, 232, 148, 0.75));
  animation: menorahSparkleFloat var(--dur, 2.4s) var(--ease-smooth) forwards;
}

.menorah-glitter-sparkle {
  position: fixed;
  width: var(--size, 5px);
  height: var(--size, 5px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, #ffffff 0%, var(--spark-hue, #ffe074) 60%, #f5b92a 100%);
  box-shadow:
    0 0 4px rgba(245, 180, 41, 0.72),
    0 0 9px rgba(255, 232, 148, 0.75);
  animation: menorahSparkleFloat var(--dur, 2.2s) var(--ease-smooth) forwards;
}

@keyframes menorahSparkleFloat {
  0% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  18% {
    opacity: 0.86;
    transform: translate(calc(-50% + var(--dx) * 0.22), calc(-50% + var(--dy) * 0.22)) scale(1.08) rotate(36deg);
  }
  45% {
    opacity: 0.62;
    transform: translate(calc(-50% + var(--dx) * 0.52), calc(-50% + var(--dy) * 0.5)) scale(0.84) rotate(90deg);
  }
  70% {
    opacity: 0.8;
    transform: translate(calc(-50% + var(--dx) * 0.78), calc(-50% + var(--dy) * 0.78)) scale(1.0) rotate(145deg);
  }
  88% {
    opacity: 0.45;
    transform: translate(calc(-50% + var(--dx) * 0.94), calc(-50% + var(--dy) * 0.92)) scale(0.65) rotate(190deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2) rotate(230deg);
  }
}

.electric-spark {
  position: fixed;
  width: var(--len, 14px);
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, var(--spark-color, #4ee0ff));
  box-shadow: 0 0 8px var(--spark-color, #4ee0ff), 0 0 14px #ffffff;
  pointer-events: none;
  z-index: 9998;
  animation: electricSparkZap 0.42s ease-out forwards;
}

@keyframes electricSparkZap {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scaleX(0.4);
  }
  45% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx) * 0.65), calc(-50% + var(--dy) * 0.65)) rotate(var(--rot, 0deg)) scaleX(1.25);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot, 0deg)) scaleX(0.2);
  }
}

@keyframes tapSparkleFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.25);
  }
}

/* ==========================================================================
   Site-Wide Crisp Typography Glows (Clean, Sharp & Readable — No Blurry Halos)
   ========================================================================== */
.hero-title {
  animation: none;
  text-shadow:
    0 2px 0 rgba(255, 244, 204, 0.95),
    0 4px 16px rgba(255, 255, 255, 0.78),
    0 0 22px rgba(132, 218, 255, 0.45);
}

.hosted-by-line,
.footer-chabad-credit {
  animation: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.slogan-text {
  animation: none;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rsvp-heading,
.section-heading h2 {
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow:
    0 1.5px 0 rgba(255, 244, 204, 0.9),
    0 0 14px rgba(255, 255, 255, 0.75);
}

.rsvp-kicker,
.section-kicker,
.detail-label {
  text-shadow: none;
}

.detail-text strong,
.cta-side-prompt,
.party-title,
.calendar-title,
.highlight-card h3,
.stepper-label,
.footer-see-you {
  animation: none;
  text-shadow: none;
}

.detail-sub,
.menorah-tap-hint,
.zero-pressure-note,
.section-desc,
.highlight-card p,
.footer-message,
.footer-quote-text,
.reminder-toggle-link,
.donate-link {
  animation: none;
  text-shadow: none;
}

/* Brief crisp electric surge highlight triggered periodically & on hover */
.is-electric-surge {
  animation: electricTextSurge 0.52s ease-out !important;
}

@keyframes electricHeadingPulse {
  0%, 100% {
    text-shadow:
      0 2px 0 rgba(255, 238, 174, 0.92),
      0 0 12px rgba(84, 220, 255, 0.58),
      0 0 22px rgba(255, 224, 120, 0.62);
  }
  50% {
    text-shadow:
      0 2px 0 #ffffff,
      -1.5px 0 12px rgba(56, 214, 255, 0.88),
      1.5px 0 12px rgba(255, 214, 92, 0.86),
      0 0 26px rgba(120, 234, 255, 0.82);
  }
}

@keyframes electricKickerPulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255, 214, 92, 0.62), 0 0 14px rgba(102, 224, 255, 0.42);
  }
  50% {
    text-shadow: 0 0 12px rgba(64, 218, 255, 0.88), 0 0 18px rgba(255, 220, 102, 0.88);
  }
}

@keyframes electricCardTitleGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(102, 222, 255, 0.45), 0 0 14px rgba(255, 232, 148, 0.42);
  }
  50% {
    text-shadow:
      -1px 0 9px rgba(62, 214, 255, 0.78),
      1px 0 9px rgba(255, 218, 102, 0.76),
      0 0 16px rgba(255, 255, 255, 0.88);
  }
}

@keyframes electricSoftTextGlow {
  0%, 100% {
    text-shadow: 0 0 7px rgba(116, 224, 255, 0.32), 0 0 10px rgba(255, 255, 255, 0.55);
  }
  50% {
    text-shadow: 0 0 10px rgba(72, 216, 255, 0.58), 0 0 14px rgba(255, 228, 134, 0.55);
  }
}

@keyframes electricTextSurge {
  0% {
    text-shadow: 0 0 10px rgba(84, 220, 255, 0.6);
    filter: brightness(1);
  }
  25% {
    text-shadow:
      -2.5px 0 14px rgba(42, 214, 255, 0.98),
      2.5px 0 14px rgba(255, 214, 82, 0.98),
      0 0 24px #ffffff;
    filter: brightness(1.16);
  }
  55% {
    text-shadow:
      1.5px 0 12px rgba(72, 224, 255, 0.9),
      -1.5px 0 12px rgba(255, 224, 112, 0.88),
      0 0 20px rgba(132, 238, 255, 0.85);
    filter: brightness(1.08);
  }
  100% {
    text-shadow:
      0 0 12px rgba(84, 220, 255, 0.58),
      0 0 20px rgba(255, 224, 120, 0.6);
    filter: brightness(1);
  }
}

/* Narrow phones */
@media (max-width: 470px) {
  .cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .cta-side-prompt {
    max-width: none;
    text-align: center;
    justify-content: center;
  }
  .cta-arrow {
    display: none;
  }
}

@media (max-width: 370px) {
  .calendar-btn-row {
    grid-template-columns: 1fr;
  }
  .page-shell {
    margin: 8px auto;
    padding: 20px 14px 36px;
  }
  .event-details-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .detail-divider {
    width: 100%;
    height: 1.5px;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
