/* ==========================================================================
   Plim Plim Birthday Invitation Stylesheet - BORDERLESS MODERN EDITION
   Design System: Organic, Spaced, Soft Elevate, Borderless Luxury Preschool
   ========================================================================== */

:root {
  /* Color Palette */
  --plim-red: #FF1E27;
  --plim-red-dark: #D6000B;
  --plim-blue: #00A0E9;
  --plim-blue-dark: #0076B6;
  --plim-yellow: #FFD100;
  --plim-yellow-dark: #E5B800;
  --plim-green: #7CB342;
  --plim-pink: #FF65A3;
  --plim-purple: #9C27B0;
  --plim-orange: #FF9800;
  
  --bg-sky-top: #52B4FF;
  --bg-sky-bottom: #CBE7FF;
  
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --card-bg: rgba(255, 255, 255, 0.96);
  
  /* Fonts & Shadows */
  --font-heading: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-elevate: 0 18px 45px rgba(0, 160, 233, 0.14), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-full: 999px;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-sky-top);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

.demo-notice {
  position: relative;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  background: #fff9df;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.demo-notice strong { font-family: var(--font-heading); font-size: 1.2rem; }
.demo-notice p { margin: 8px 0 12px; }
.demo-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.demo-nav a { color: #005785; font-weight: 800; }
.demo-form-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.demo-feedback { margin-top: 16px; padding: 18px; border-radius: var(--radius-sm); background: #e7f5ff; overflow-wrap: anywhere; }
.demo-feedback pre { margin-top: 12px; white-space: pre-wrap; font: inherit; }

/* Festive Top Circus Bunting Banner (Banderines) */
.circus-bunting {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  display: flex;
  justify-content: space-around;
  z-index: 90;
  pointer-events: none;
}

.flag {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 32px solid var(--plim-red);
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.12));
  transform-origin: top center;
  animation: swayFlag 3s ease-in-out infinite alternate;
}

.flag:nth-child(even) { animation-delay: 0.5s; }
.flag-red { border-top-color: var(--plim-red); }
.flag-yellow { border-top-color: var(--plim-yellow); }
.flag-blue { border-top-color: var(--plim-blue); }
.flag-green { border-top-color: var(--plim-green); }
.flag-pink { border-top-color: var(--plim-pink); }
.flag-orange { border-top-color: var(--plim-orange); }

@keyframes swayFlag {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(6deg); }
}

/* Background Sky, Rainbow Arc & Clouds */
.sky-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-sky-top) 0%, var(--bg-sky-bottom) 65%, #E2F1D5 100%);
  z-index: -1;
  overflow: hidden;
}

.rainbow-arc {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 320px;
  border-top-left-radius: 320px;
  border-top-right-radius: 320px;
  background: conic-gradient(from 180deg at 50% 100%, 
    rgba(255, 30, 39, 0.2) 0deg, 
    rgba(255, 152, 0, 0.2) 30deg, 
    rgba(255, 209, 0, 0.2) 60deg, 
    rgba(124, 179, 66, 0.2) 90deg, 
    rgba(0, 160, 233, 0.2) 120deg, 
    rgba(156, 39, 176, 0.2) 150deg);
  opacity: 0.8;
  filter: blur(14px);
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: #FFFFFF;
  border-radius: 100px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.05));
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: #FFFFFF;
  border-radius: 50%;
}

.cloud-1 {
  width: 150px;
  height: 50px;
  top: 12%;
  left: -160px;
}
.cloud-1::before { width: 70px; height: 70px; top: -30px; left: 20px; }
.cloud-1::after { width: 50px; height: 50px; top: -18px; left: 75px; }

.cloud-2 {
  width: 190px;
  height: 60px;
  top: 30%;
  left: -220px;
}
.cloud-2::before { width: 80px; height: 80px; top: -35px; left: 35px; }
.cloud-2::after { width: 60px; height: 60px; top: -22px; left: 95px; }

.cloud-3 {
  width: 130px;
  height: 45px;
  top: 65%;
  left: -140px;
}
.cloud-3::before { width: 55px; height: 55px; top: -22px; left: 18px; }
.cloud-3::after { width: 45px; height: 45px; top: -12px; left: 60px; }

.sun-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #FFF176 0%, rgba(255, 238, 88, 0.45) 45%, rgba(255, 235, 59, 0) 70%);
  border-radius: 50%;
  animation: pulseSun 5s ease-in-out infinite alternate;
}

@keyframes pulseSun {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* Floating Action Controls */
.floating-controls {
  position: fixed;
  top: 50px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--plim-red);
  color: #FFFFFF;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 30, 39, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.fab-btn:active {
  transform: scale(0.92);
}

.music-btn {
  background: var(--plim-blue);
  box-shadow: 0 8px 24px rgba(0, 160, 233, 0.35);
}

.sound-wave-bars {
  position: absolute;
  bottom: 6px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.sound-wave-bars .bar {
  width: 3px;
  background: #FFFFFF;
  border-radius: 2px;
  animation: waveBar 0.8s ease-in-out infinite alternate;
}

.bar-1 { height: 4px; animation-delay: 0.1s; }
.bar-2 { height: 10px; animation-delay: 0.3s; }
.bar-3 { height: 6px; animation-delay: 0.5s; }

@keyframes waveBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* App Container Layout - Generous Spacing */
.app-container {
  max-width: 480px;
  margin: 44px auto 0 auto;
  padding: 20px 16px 50px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px; /* Generous breathing room between sections */
}

/* BORDERLESS MODERN CARDS SYSTEM */
.section-card, .hero-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 38px 24px 30px 24px; /* Ample top padding so badges float comfortably */
  box-shadow: var(--shadow-elevate);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

/* HERO SECTION - SLEEK & AIRY */
.hero-card.circus-header {
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FAFF 70%, #E8F4FE 100%);
  padding-top: 42px;
  box-shadow: 0 20px 50px rgba(0, 160, 233, 0.18);
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--plim-red) 0%, #E60000 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(255, 30, 39, 0.3);
  margin-top: 6px;
  margin-bottom: 22px; /* Plenty of clearance below badge */
}

.pulse-glow {
  animation: pulseGlow 2.5s ease infinite;
}

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

/* Avatar Wrapper */
.plim-avatar-wrapper {
  position: relative;
  width: 185px;
  height: 185px;
  margin: 0 auto 20px auto;
}

.star-orbit {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 205px;
  height: 205px;
  border-radius: 50%;
  pointer-events: none;
  animation: spinOrbit 14s linear infinite;
}

.orbit-star {
  position: absolute;
  font-size: 1.3rem;
}

.s1 { top: 0; left: 50%; transform: translateX(-50%); }
.s2 { bottom: 10px; right: 10px; }
.s3 { bottom: 10px; left: 10px; }

@keyframes spinOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-image-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
  box-shadow: 0 12px 30px rgba(0, 160, 233, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plim-hero-img {
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plim-avatar-wrapper:hover .plim-hero-img {
  transform: scale(1.08) rotate(2deg);
}

.plim-heart-badge {
  position: absolute;
  bottom: 0px;
  right: 6px;
  background: linear-gradient(135deg, var(--plim-yellow) 0%, var(--plim-orange) 100%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.35);
  animation: heartBounce 1.5s infinite alternate;
}

@keyframes heartBounce {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.15) translateY(-4px); }
}

/* Party Title & Ribbons */
.banner-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, var(--plim-blue) 0%, var(--plim-blue-dark) 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 7px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(0, 160, 233, 0.3);
}

.child-name {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--plim-red);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 3px 3px 0px #FFE082, 0 8px 20px rgba(255, 30, 39, 0.18);
  margin-bottom: 14px;
}

.age-pill-3d {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--plim-yellow) 0%, var(--plim-orange) 100%);
  color: #FFFFFF;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.35);
  margin-bottom: 22px;
}

.age-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.age-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.1;
}

.sub-stars { font-size: 0.65rem; }

/* Child Photo Card Option - BORDERLESS MODERN */
.child-photo-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 0 auto 20px auto;
  max-width: 320px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-frame-inner {
  position: relative;
  width: 100%;
  height: 165px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.child-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clown-hat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.4rem;
  background: #FFFFFF;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.photo-caption {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--plim-blue-dark);
  font-weight: 700;
}

.hero-description {
  font-size: 0.98rem;
  color: var(--text-dark);
  font-weight: 700;
  max-width: 340px;
  margin: 0 auto 20px auto;
  line-height: 1.45;
}

.sound-prompt-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  z-index: 99999;
  background: linear-gradient(135deg, #00A0E9 0%, #0076B6 100%);
  border: 3px solid #FFFFFF;
  border-radius: var(--radius-full);
  padding: 16px 24px;
  font-size: 0.96rem;
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 16px 45px rgba(0, 160, 233, 0.45), 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: pulseFloatingBar 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sound-prompt-bar:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 160, 233, 0.6), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sound-prompt-bar:active {
  transform: translateX(-50%) scale(0.96);
}

@keyframes pulseFloatingBar {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-8px) scale(1.02);
  }
}

.sound-icon-bounce {
  font-size: 1.35rem;
  animation: bounceIcon 1s infinite alternate;
}

/* SECTION HEADERS & BADGES - SPACED & FLOATING */
.section-header {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-header.center {
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.section-tag {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--plim-blue);
  margin-bottom: 2px;
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-top: 2px;
  margin-bottom: 8px; /* Room below badge */
}

.red-badge {
  background: linear-gradient(135deg, var(--plim-red) 0%, #E60000 100%);
  box-shadow: 0 6px 18px rgba(255, 30, 39, 0.28);
}

.yellow-badge {
  background: linear-gradient(135deg, var(--plim-yellow) 0%, var(--plim-orange) 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.28);
}

.icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.blue-ring {
  background: linear-gradient(135deg, var(--plim-blue) 0%, var(--plim-blue-dark) 100%);
  box-shadow: 0 6px 18px rgba(0, 160, 233, 0.3);
}

.pink-ring {
  background: linear-gradient(135deg, var(--plim-pink) 0%, #D81B60 100%);
  box-shadow: 0 6px 18px rgba(255, 101, 163, 0.3);
}

/* COUNTDOWN TIMER SECTION */
.countdown-section.circus-style {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDE7 100%);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 4px 0;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-card-3d {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  min-width: 70px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 160, 233, 0.18), 0 2px 6px rgba(0,0,0,0.04);
}

.time-card-3d.red {
  background: #FFF5F5;
  box-shadow: 0 8px 24px rgba(255, 30, 39, 0.18), 0 2px 6px rgba(0,0,0,0.04);
}

.time-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--plim-blue);
  line-height: 1;
}

.time-card-3d.red .time-val {
  color: var(--plim-red);
}

.time-label {
  font-size: 0.74rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

.time-colon {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--plim-yellow-dark);
  margin-top: -18px;
}

/* DETAILS SECTION */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.detail-tile {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.detail-tile.full-width {
  grid-column: span 2;
}

.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.red-bg { background: linear-gradient(135deg, var(--plim-red) 0%, #E60000 100%); box-shadow: 0 6px 16px rgba(255, 30, 39, 0.3); }
.yellow-bg { background: linear-gradient(135deg, var(--plim-yellow) 0%, var(--plim-orange) 100%); color: #FFFFFF; box-shadow: 0 6px 16px rgba(255, 152, 0, 0.3); }
.blue-bg { background: linear-gradient(135deg, var(--plim-blue) 0%, var(--plim-blue-dark) 100%); box-shadow: 0 6px 16px rgba(0, 160, 233, 0.3); }

.tile-content h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tile-content p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-dark);
  line-height: 1.25;
}

.address-sub {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  margin-top: 2px;
}

.action-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* BUTTON SYSTEM - BORDERLESS 3D ELEVATED */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-3d:active {
  transform: translateY(3px) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--plim-red) 0%, #E60000 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(255, 30, 39, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--plim-blue) 0%, var(--plim-blue-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 160, 233, 0.35);
}

.btn-green {
  background: linear-gradient(135deg, var(--plim-green) 0%, #558B2F 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(124, 179, 66, 0.35);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-large {
  width: 100%;
  padding: 18px 26px;
  font-size: 1.15rem;
}

.fun-note-box-3d {
  background: #FFFDE7;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.9rem;
  color: #5D4037;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.note-icon {
  font-size: 1.6rem;
}

/* MINI-GAME SECTION */
.game-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #E0F7FA 100%);
}

.game-instructions {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 320px;
}

.game-container {
  position: relative;
  margin-top: 18px;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.score-pill-3d, .combo-pill-3d {
  background: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 160, 233, 0.18);
}

.combo-pill-3d {
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.18);
}

.hud-label {
  font-size: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-muted);
}

.hud-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plim-blue-dark);
  line-height: 1;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 390px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, #E0F7FA 0%, #B2EBF2 100%);
  box-shadow: 0 12px 35px rgba(0, 160, 233, 0.22);
  overflow: hidden;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-content h4 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--plim-blue-dark);
  margin-bottom: 8px;
}

.overlay-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.big-game-icon {
  font-size: 4rem;
  margin-bottom: 10px;
}

.pulse-bounce {
  animation: bounceIcon 1.2s ease infinite;
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.1); }
}

.victory-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-float);
  z-index: 20;
}

.victory-banner.hidden {
  display: none;
}

.victory-stars {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* FRIENDS GALLERY - ELEVATED CARDS */
.sub-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .friends-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.friend-card-3d {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  border: 2px solid #F1F5F9;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  opacity: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.friend-card-3d:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 160, 233, 0.18);
  border-color: rgba(0, 160, 233, 0.4);
}

.friend-card-3d:active {
  transform: scale(0.96);
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
  margin-bottom: 2px;
}

.friend-card-3d:hover .avatar-circle {
  transform: scale(1.12) rotate(6deg);
}

.avatar-circle.red { background: linear-gradient(135deg, var(--plim-red) 0%, #E60000 100%); }
.avatar-circle.yellow { background: linear-gradient(135deg, var(--plim-yellow) 0%, var(--plim-orange) 100%); color: #FFFFFF; }
.avatar-circle.blue { background: linear-gradient(135deg, var(--plim-blue) 0%, var(--plim-blue-dark) 100%); }
.avatar-circle.pink { background: linear-gradient(135deg, var(--plim-pink) 0%, #D81B60 100%); }
.avatar-circle.purple { background: linear-gradient(135deg, var(--plim-purple) 0%, #7B1FA2 100%); }
.avatar-circle.green { background: linear-gradient(135deg, var(--plim-green) 0%, #558B2F 100%); }

.friend-info {
  width: 100%;
  text-align: center;
}

.friend-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 2px;
  font-weight: 700;
  word-break: keep-all;
}

.friend-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.touch-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.friend-card-3d:hover .touch-hint {
  transform: scale(1.25) rotate(15deg);
  opacity: 1;
}

.quote-toast {
  margin-top: 18px;
  background: #FFFDE7;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-heading);
  color: #E65100;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: var(--shadow-soft);
  animation: fadeIn 0.3s ease;
}

.quote-toast.hidden {
  display: none;
}

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

/* RSVP FORM */
.rsvp-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rsvp-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: var(--plim-blue);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #F8FAFC;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plim-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 160, 233, 0.15);
}

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

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-tile {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.radio-tile input {
  display: none;
}

.radio-tile.active {
  border-color: var(--plim-red);
  background: #FFF5F5;
  box-shadow: 0 6px 18px rgba(255, 30, 39, 0.15);
}

.radio-tile .tile-icon {
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  color: var(--plim-red);
}

.radio-tile .tile-text {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* FOOTER */
.app-footer {
  text-align: center;
  padding: 28px 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.footer-circus-tent {
  font-size: 2.4rem;
  margin-bottom: 6px;
  animation: bounceIcon 1.5s infinite alternate;
}

.tagline {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* MODAL CONFIG DIALOG */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-window {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  border: none;
}

.modal-header {
  background: linear-gradient(135deg, var(--plim-blue) 0%, var(--plim-blue-dark) 100%);
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.close-modal-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-footer {
  padding: 20px 24px;
  background: #F8FAFC;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
