/* ============================================
   ACCESS GATE (invitation code wall)
   ============================================ */

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF0F5 35%, #E8F4FD 70%, #FFF8E7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.access-gate__card {
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.access-gate__icon {
  margin-bottom: 20px;
  animation:
    toodlesEntrance 3s ease-out forwards,
    gateFloat 2s ease-in-out 3s infinite;
}

@keyframes gateFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px) scale(1.05); }
}

@keyframes toodlesEntrance {
  /* Anticipation: peek in from left, slight pullback */
  0%   { transform: translateX(-220px) translateY(0) scale(0.8) rotate(-8deg); opacity: 0; }
  3%   { transform: translateX(-190px) translateY(0) scale(0.9) rotate(-5deg); opacity: 1; }
  5%   { transform: translateX(-195px) translateY(3px) scale(0.95) rotate(0deg); opacity: 1; }

  /* Bouncing left to right — big hops that decay */
  9%   { transform: translateX(-140px) translateY(-28px) scale(1.05) rotate(5deg); }
  13%  { transform: translateX(-100px) translateY(0) scale(0.95) rotate(-2deg); }
  17%  { transform: translateX(-55px) translateY(-22px) scale(1.03) rotate(4deg); }
  21%  { transform: translateX(-15px) translateY(0) scale(0.97) rotate(-1deg); }
  25%  { transform: translateX(20px) translateY(-16px) scale(1.02) rotate(3deg); }
  29%  { transform: translateX(50px) translateY(0) scale(0.98) rotate(-1deg); }
  33%  { transform: translateX(70px) translateY(-8px) scale(1.01) rotate(1deg); }
  37%  { transform: translateX(82px) translateY(0) scale(1) rotate(0deg); }

  /* Anticipation before spin: slight squat */
  40%  { transform: translateX(82px) translateY(3px) scale(0.95) rotate(0deg); }

  /* Spin with momentum — fast in middle, easing out */
  44%  { transform: translateX(82px) translateY(-6px) scale(1.05) rotate(90deg); }
  48%  { transform: translateX(82px) translateY(-8px) scale(1.08) rotate(200deg); }
  52%  { transform: translateX(82px) translateY(-5px) scale(1.05) rotate(310deg); }
  56%  { transform: translateX(82px) translateY(0) scale(1) rotate(370deg); }
  58%  { transform: translateX(82px) translateY(2px) scale(0.97) rotate(360deg); }

  /* Bounce back to center — decaying arcs */
  62%  { transform: translateX(55px) translateY(-18px) scale(1.03) rotate(355deg); }
  66%  { transform: translateX(25px) translateY(0) scale(0.97) rotate(358deg); }
  70%  { transform: translateX(0px) translateY(-12px) scale(1.02) rotate(360deg); }
  74%  { transform: translateX(-8px) translateY(0) scale(0.98) rotate(362deg); }

  /* Overshoot and settle */
  78%  { transform: translateX(5px) translateY(-6px) scale(1.01) rotate(360deg); }
  82%  { transform: translateX(-3px) translateY(0) scale(0.99) rotate(360deg); }
  87%  { transform: translateX(1px) translateY(-3px) scale(1.005) rotate(360deg); }
  92%  { transform: translateX(0) translateY(0) scale(1) rotate(360deg); }

  /* Breathe into float — gentle lift to match splashToodlesFloat start */
  96%  { transform: translateX(0) translateY(-2px) scale(1) rotate(360deg); }
  100% { transform: translateX(0) translateY(0) scale(1) rotate(360deg); }
}

.access-gate__title {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1.8rem;
  color: #E31837;
  margin-bottom: 8px;
}

.access-gate__subtitle {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 24px;
}

.access-gate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-gate__form .form-input {
  text-align: center;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.access-gate__btn {
  width: 100%;
}

.access-gate .error-message {
  margin-top: 12px;
}

/* Access gate exit transition */
.access-gate--exiting .access-gate__title {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease-out, transform 0.28s ease-out;
  pointer-events: none;
}
.access-gate--exiting .access-gate__subtitle {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease-out 0.08s, transform 0.28s ease-out 0.08s;
  pointer-events: none;
}
.access-gate--exiting .access-gate__form,
.access-gate--exiting .error-message {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease-out 0.16s, transform 0.28s ease-out 0.16s;
  pointer-events: none;
}

.access-gate--exiting .access-gate__icon {
  position: fixed;
  z-index: 10001;
  margin: 0;
}

.access-gate__icon--animating {
  animation: toodlesExitRight 0.52s linear forwards !important;
}

@keyframes toodlesExitRight {
  0%   { animation-timing-function: ease-in-out;
         transform: translate(0, 0) scaleX(1) scaleY(1) rotate(0deg); }
  12%  { animation-timing-function: cubic-bezier(0.2, 0, 0.1, 1);
         transform: translate(-10px, 8px) scaleX(1.22) scaleY(0.76) rotate(-6deg); }
  22%  { animation-timing-function: ease-in;
         transform: translate(22px, -32px) scaleX(0.84) scaleY(1.22) rotate(10deg); }
  55%  { animation-timing-function: ease-in;
         transform: translate(62vw, -60px) scaleX(0.86) scaleY(1.12) rotate(14deg); }
  100% { transform: translate(120vw, 22px) scaleX(0.92) scaleY(0.92) rotate(8deg); }
}

/* ============================================
   SPLASH / LOADING SCREEN
   ============================================ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF0F5 35%, #E8F4FD 70%, #FFF8E7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 66px;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Transition Phase 1: Parade & text fade out, Toodles moves to center */
.splash--phase-1 .splash__parade,
.splash--phase-1 .splash__text {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.splash--phase-1 .splash__stage {
  overflow: visible;
}

.splash--phase-1 .splash__toodles {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  animation: none;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  z-index: 10;
}

/* Splash entry from gate: arc jump from right */
.splash--from-gate .splash__parade,
.splash--from-gate .splash__text {
  opacity: 0;
}

.splash--from-gate .splash__toodles {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10;
  animation: toodlesArcEntry 0.95s linear forwards;
}

/* Reveal parade + text while Toodles descends */
.splash--gate-revealing .splash__parade,
.splash--gate-revealing .splash__text {
  opacity: 1;
  transition: opacity 0.45s ease-out;
}

/* After arc completes — drift up to match normal (non-gate) Toodles position */
.splash--gate-settled .splash__toodles {
  position: fixed;
  top: calc(50% - 58px);
  left: 50%;
  z-index: 10;
  animation: toodlesCenterFloat 2s ease-in-out infinite;
}

/* Phase-1 override for gate-settled: drift Toodles back to viewport center, then scale up */
.splash--gate-settled.splash--phase-1 .splash__toodles {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: none;
  z-index: 10;
}

/* Phase-2 override for gate-settled: must outrank phase-1's animation:none */
.splash--gate-settled.splash--phase-2 .splash__toodles {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10;
  animation: toodlesZoomToHero 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toodlesArcEntry {
  0%   { animation-timing-function: ease-out;
         transform: translate(calc(-50% + 80vw), 30px) scaleX(0.88) scaleY(1.15) rotate(18deg); }
  30%  { animation-timing-function: ease-in-out;
         transform: translate(calc(-50% + 22vw), -80px) scaleX(0.87) scaleY(1.18) rotate(10deg); }
  52%  { animation-timing-function: ease-in;
         transform: translate(calc(-50% + 4vw), -130px) scaleX(0.9) scaleY(1.15) rotate(3deg); }
  70%  { animation-timing-function: cubic-bezier(0.1, 0.8, 0.2, 1);
         transform: translate(-50%, -35px) scaleX(0.95) scaleY(1.05) rotate(-1deg); }
  78%  { animation-timing-function: ease-out;
         transform: translate(-50%, -44px) scaleX(1.38) scaleY(0.70) rotate(-2deg); }
  86%  { animation-timing-function: ease-in-out;
         transform: translate(-50%, -80px) scaleX(0.90) scaleY(1.12) rotate(1deg); }
  92%  { transform: translate(-50%, -52px) scaleX(1.12) scaleY(0.92) rotate(0deg); }
  100% { transform: translate(-50%, calc(-50% - 58px)) scaleX(1) scaleY(1) rotate(0deg); }
}

@keyframes toodlesCenterFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, calc(-50% - 10px)) scale(1.04); }
}

/* Transition Phase 2: Toodles zooms toward viewer, splash bg fades */
.splash--phase-2 .splash__toodles {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10;
  animation: toodlesZoomToHero 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash--phase-2 {
  background: transparent;
  transition: background 0.6s ease-out;
}

@keyframes toodlesZoomToHero {
  0%   { transform: translate(-50%, -50%) scale(1.8); opacity: 1; }
  40%  { transform: translate(-50%, -50%) scale(6); opacity: 0.9; }
  70%  { transform: translate(-50%, -50%) scale(12); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

.splash__stage {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: visible;
}

.splash__parade {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  position: absolute;
  bottom: 10px;
  z-index: 1;
  animation: splashParadeWalk 4s linear infinite;
}

.splash__character {
  animation: splashBob 0.6s ease-in-out infinite;
  flex-shrink: 0;
}
.splash__character:nth-child(2) { animation-delay: 0.1s; }
.splash__character:nth-child(3) { animation-delay: 0.2s; }
.splash__character:nth-child(4) { animation-delay: 0.15s; }
.splash__character:nth-child(5) { animation-delay: 0.25s; }
.splash__character:nth-child(6) { animation-delay: 0.05s; }

.splash__toodles {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  animation: splashToodlesFloat 2s ease-in-out infinite;
}

.splash__text {
  text-align: center;
}

.splash__catchphrase {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #E31837;
  margin-bottom: 12px;
  animation: splashTextPulse 1.5s ease-in-out infinite;
}

.splash__progress {
  width: 200px;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.splash__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #E31837, #FFD700, #1E90FF);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: splashProgressFill 3s ease-in-out forwards, splashProgressShimmer 1s linear infinite;
}

/* Page content visibility during splash — radial clip reveal */
.page-content--loading {
  clip-path: circle(0% at 50% 50vh);
}

.page-content--visible {
  clip-path: circle(150% at 50% 50vh);
  transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Splash keyframes */
@keyframes splashParadeWalk {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

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

@keyframes splashToodlesFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-50%) translateY(-10px) scale(1.05); opacity: 1; }
}

@keyframes splashProgressFill {
  from { width: 0%; }
  to   { width: 100%; }
}

@keyframes splashProgressShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes splashTextPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.02); }
}

@media (max-width: 360px) {
  .splash__character svg {
    transform: scale(0.75);
  }
  .splash__catchphrase {
    font-size: 1.2rem;
  }
  .splash__progress {
    width: 160px;
  }
}

/* ============================================
   Damien's 1st Birthday — Mickey Mouse Clubhouse Theme
   Mobile-first responsive design
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Mickey Mouse Clubhouse palette */
  --mickey-red: #E31837;
  --mickey-yellow: #FFD700;
  --mickey-blue: #1E90FF;
  --mickey-green: #3CB371;
  --mickey-orange: #FF8C00;
  --mickey-pink: #FF69B4;
  --mickey-purple: #9370DB;

  /* UI colors */
  --bg-primary: #FFFDF7;
  --bg-section-alt: #FFF8E7;
  --bg-card: #FFFFFF;
  --text-primary: #2D2D2D;
  --text-secondary: #555555;
  --text-light: #888888;
  --border-light: #E8E0D0;
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-display: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mickey-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  color: var(--mickey-red);
}

h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 48px 20px 32px;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF0F5 35%, #E8F4FD 70%, #FFF8E7 100%);
  border-bottom: 4px solid var(--mickey-yellow);
  position: relative;
  overflow: hidden;
}

.hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__circle {
  position: absolute;
  border-radius: 50%;
}

.hero__circle--1 {
  width: 120px; height: 120px;
  background: var(--mickey-red);
  opacity: 0.06;
  top: 10%; left: -30px;
  animation: float 6s ease-in-out infinite;
}
.hero__circle--2 {
  width: 80px; height: 80px;
  background: var(--mickey-yellow);
  opacity: 0.1;
  top: 60%; right: -20px;
  animation: float 5s ease-in-out infinite 1s;
}
.hero__circle--3 {
  width: 60px; height: 60px;
  background: var(--mickey-blue);
  opacity: 0.08;
  bottom: 15%; left: 10%;
  animation: float 7s ease-in-out infinite 0.5s;
}
.hero__circle--4 {
  width: 100px; height: 100px;
  background: var(--mickey-pink);
  opacity: 0.06;
  top: 5%; right: 10%;
  animation: float 8s ease-in-out infinite 2s;
}
.hero__circle--5 {
  width: 50px; height: 50px;
  background: var(--mickey-green);
  opacity: 0.08;
  bottom: 30%; right: 25%;
  animation: float 5.5s ease-in-out infinite 1.5s;
}

.hero__badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--mickey-yellow), #FFE44D, var(--mickey-yellow));
  background-size: 200% 100%;
  color: var(--text-primary);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out, shimmer 3s ease-in-out infinite 1s;
}

.hero__image-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
}

.hero__image-wrapper::before,
.hero__image-wrapper::after {
  content: '';
  position: absolute;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--mickey-red);
  top: -20px;
  z-index: 0;
  opacity: 0.9;
}

.hero__image-wrapper::before { left: 10px; }
.hero__image-wrapper::after { right: 10px; }

.hero__image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--mickey-yellow);
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.3);
  background-color: #f0f0f0;
  position: relative;
  z-index: 1;
  animation: scaleIn 0.6s ease-out 0.2s both;
}

.hero__title {
  font-size: 2.5rem;
  color: var(--mickey-red);
  margin-bottom: 8px;
  font-family: var(--font-display);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero__tagline {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 400px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* --- Sections --- */
.section {
  padding: 40px 0;
}

.section--alt {
  background-color: var(--bg-section-alt);
}

.section__title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--mickey-yellow);
  border-radius: 2px;
  box-shadow: -24px 0 0 var(--mickey-red), 24px 0 0 var(--mickey-red);
}

/* --- Card --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

/* --- Photo Gallery --- */
.gallery {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.gallery__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__slide {
  min-width: 100%;
  aspect-ratio: 4 / 5;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  z-index: 2;
}

.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }
.gallery__btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }

.gallery__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-base);
  padding: 0;
}

.gallery__dot--active {
  background: #fff;
}

/* --- Party Details --- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--mickey-yellow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.detail-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.detail-item:nth-child(2) { border-top-color: var(--mickey-blue); }
.detail-item:nth-child(3) { border-top-color: var(--mickey-green); }
.detail-item:nth-child(4) { border-top-color: var(--mickey-red); }

.detail-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF8E7;
  border-radius: 50%;
}

.detail-item__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-weight: 600;
}

.detail-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Ninong & Ninang Columns --- */
.nn-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nn-column {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
  overflow: hidden;
}

.nn-column__title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--border-light);
}

.nn-column__title--ninong {
  color: var(--mickey-blue);
  border-bottom-color: var(--mickey-blue);
}

.nn-column__title--ninang {
  color: var(--mickey-pink);
  border-bottom-color: var(--mickey-pink);
}

.nn-list {
  list-style: none;
  padding: 0;
}

.nn-list__item {
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
}

.nn-list__item:nth-child(even) {
  background: #F8F8F8;
}

.nn-list__item:hover {
  background: #F0F0F0;
}

/* --- Notes List --- */
.notes-list {
  list-style: none;
  padding: 0;
}

.notes-list li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--mickey-blue);
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.notes-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.notes-list li:nth-child(2) { border-left-color: var(--mickey-green); }
.notes-list li:nth-child(3) { border-left-color: var(--mickey-orange); }
.notes-list li:nth-child(4) { border-left-color: var(--mickey-pink); }

.notes-list li strong {
  color: var(--text-primary);
}

/* --- Gift Ideas --- */
.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.gift-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gift-card:nth-child(1) { border-top: 3px solid var(--mickey-yellow); }
.gift-card:nth-child(2) { border-top: 3px solid var(--mickey-blue); }
.gift-card:nth-child(3) { border-top: 3px solid var(--mickey-green); }
.gift-card:nth-child(4) { border-top: 3px solid var(--mickey-red); }

.gift-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.gift-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gift-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Dress Code Colors --- */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
}

.color-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.color-group:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.color-group:nth-child(1) { border-top: 3px solid var(--mickey-purple); }
.color-group:nth-child(2) { border-top: 3px solid var(--mickey-pink); }
.color-group:nth-child(3) { border-top: 3px solid var(--mickey-orange); }
.color-group:nth-child(4) { border-top: 3px solid var(--mickey-blue); }
.color-group:nth-child(5) { border-top: 3px solid var(--mickey-yellow); }

.color-group__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.color-group__circles {
  display: flex;
  gap: 6px;
}

.color-swatch__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.color-swatch__circle:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Venue Section --- */
.venue-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  border-top: 4px solid var(--mickey-blue);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.venue-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.venue-card__qr {
  max-width: 180px;
  margin: 0 auto;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.venue-card__hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* --- Timeline --- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 8px 0;
  max-width: 640px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--mickey-red) 0,
    var(--mickey-red) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.55;
}

.timeline__item {
  display: grid;
  grid-template-columns: 80px 16px 1fr;
  align-items: start;
  gap: 0;
  position: relative;
  padding: 14px 0;
}

.timeline__item::before {
  content: "";
  grid-column: 2;
  justify-self: center;
  margin-top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mickey-red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--mickey-red), 0 2px 6px rgba(227, 24, 55, 0.35);
  z-index: 1;
}

.timeline__time {
  grid-column: 1;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--mickey-red);
  font-size: 1rem;
  text-align: right;
  padding-right: 12px;
  padding-top: 24px;
  line-height: 1.2;
  white-space: nowrap;
}

.timeline__card {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(227, 24, 55, 0.08);
}

.timeline__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.timeline__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.25;
}

.timeline__place {
  font-family: 'Nunito', sans-serif;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .timeline {
    max-width: 100%;
  }

  .timeline::before {
    left: 68px;
  }

  .timeline__item {
    grid-template-columns: 62px 14px 1fr;
    padding: 10px 0;
  }

  .timeline__item::before {
    width: 12px;
    height: 12px;
    border-width: 2px;
    margin-top: 19px;
    box-shadow: 0 0 0 2px var(--mickey-red), 0 2px 4px rgba(227, 24, 55, 0.3);
  }

  .timeline__time {
    font-size: 0.88rem;
    padding-right: 8px;
    padding-top: 19px;
  }

  .timeline__card {
    margin-left: 10px;
    padding: 11px 13px;
    gap: 10px;
  }

  .timeline__icon {
    font-size: 1.35rem;
  }

  .timeline__title {
    font-size: 0.96rem;
  }

  .timeline__place {
    font-size: 0.82rem;
  }
}

/* --- RSVP CTA --- */
.rsvp-cta {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(135deg, #FFF0F5 0%, #FFF8E7 50%, #E8F4FD 100%);
  border-top: 4px solid var(--mickey-yellow);
  position: relative;
  overflow: hidden;
}

.rsvp-cta .btn--primary {
  animation: pulse 2.5s ease-in-out infinite;
}

.rsvp-cta .btn--primary:hover {
  animation: none;
  transform: translateY(-2px) scale(1.03);
}

.rsvp-cta__title {
  font-size: 1.8rem;
  color: var(--mickey-red);
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.rsvp-cta__note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.rsvp-cta__deadline {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 48px;
  min-width: 44px;
}

.btn--primary {
  background: var(--mickey-red);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(227, 24, 55, 0.3);
}

.btn--primary:hover {
  background: #C41430;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(227, 24, 55, 0.35);
  text-decoration: none;
  color: #FFFFFF;
}

.btn--secondary {
  background: var(--mickey-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.3);
}

.btn--secondary:hover {
  background: #1A7CE0;
  transform: translateY(-1px);
  text-decoration: none;
  color: #FFFFFF;
}

.btn--outline {
  background: transparent;
  color: var(--mickey-blue);
  border: 2px solid var(--mickey-blue);
}

.btn--outline:hover {
  background: var(--mickey-blue);
  color: #FFFFFF;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --- Forms (RSVP Pages) --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* Prevents iOS zoom */
  font-family: var(--font-body);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.2s;
  min-height: 48px;
}

.form-input:focus {
  outline: none;
  border-color: var(--mickey-blue);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}

.form-input::placeholder {
  color: var(--text-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* --- Guest Checkboxes --- */
.guest-list {
  list-style: none;
  padding: 0;
}

.guest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
  min-height: 52px;
}

.guest-item:hover {
  border-color: var(--mickey-blue);
}

.guest-item--checked {
  border-color: var(--mickey-green);
  background: #F0FFF4;
}

.guest-item--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guest-item__checkbox {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--mickey-green);
  cursor: pointer;
}

.guest-item__name {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.guest-item__name-input {
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 200px;
  font-family: var(--font-body);
}

/* --- RSVP Info Header --- */
.rsvp-header {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, #FFF8E7 0%, #E8F4FD 100%);
  border-bottom: 3px solid var(--mickey-yellow);
  margin-bottom: 24px;
}

.rsvp-header__label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.rsvp-header__name {
  font-size: 1.8rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rsvp-header__seats {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.rsvp-header__seats strong {
  color: var(--mickey-red);
}

.rsvp-header__deadline {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Policy Note --- */
.policy-note {
  text-align: center;
  padding: 14px 20px;
  background: #FFF8E7;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--mickey-yellow);
  margin-bottom: 24px;
}

/* --- Confirmation --- */
.confirmation {
  text-align: center;
  padding: 40px 20px;
}

.confirmation__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.confirmation__title {
  font-size: 1.6rem;
  font-family: var(--font-display);
  color: var(--mickey-green);
  margin-bottom: 16px;
}

.confirmation__summary {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 400px;
  text-align: left;
}

.confirmation__summary li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.confirmation__summary li:last-child {
  border-bottom: none;
}

.confirmation__table-reveal {
  margin-top: 20px;
  padding: 16px;
  background: #FFF8E7;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mickey-yellow);
  font-size: 1rem;
  font-weight: 600;
}

/* --- Closed State --- */
.rsvp-closed {
  text-align: center;
  padding: 60px 20px;
}

.rsvp-closed__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.rsvp-closed__title {
  font-size: 1.6rem;
  font-family: var(--font-display);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.rsvp-closed__text {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 400px;
  margin: 0 auto;
}

/* --- Error Message --- */
.error-message {
  padding: 14px 20px;
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  border-radius: var(--radius-sm);
  color: #CC0000;
  font-size: 0.9rem;
  margin-top: 12px;
  display: none;
}

.error-message--visible {
  display: block;
}

/* --- Success Message --- */
.success-message {
  padding: 14px 20px;
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  border-radius: var(--radius-sm);
  color: #2D8A4E;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Lookup Loading Overlay --- */
.lookup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lookup-overlay.visible {
  opacity: 1;
}
.lookup-overlay__content {
  text-align: center;
}
.lookup-overlay__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 4px solid var(--mickey-yellow);
  border-top-color: var(--mickey-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.lookup-overlay__text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Selection --- */
::selection {
  background: var(--mickey-yellow);
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 3px solid var(--mickey-yellow);
  background: #FAFAFA;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Very small screens */
@media (max-width: 400px) {
  .gift-grid { grid-template-columns: 1fr; }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }

  .hero__image-wrapper {
    width: 280px;
    height: 280px;
  }

  .hero__image {
    width: 280px;
    height: 280px;
  }

  .hero__image-wrapper::before,
  .hero__image-wrapper::after {
    width: 95px;
    height: 95px;
    top: -25px;
  }

  .hero__image-wrapper::before { left: 15px; }
  .hero__image-wrapper::after { right: 15px; }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .color-swatch__circle {
    width: 40px;
    height: 40px;
  }

}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    max-width: 900px;
  }

  .hero {
    padding: 64px 20px 48px;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__image-wrapper {
    width: 320px;
    height: 320px;
  }

  .hero__image {
    width: 320px;
    height: 320px;
  }

  .hero__image-wrapper::before,
  .hero__image-wrapper::after {
    width: 110px;
    height: 110px;
    top: -30px;
  }

  .hero__image-wrapper::before { left: 18px; }
  .hero__image-wrapper::after { right: 18px; }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.8rem;
  }

}
