/* ==========================================================================
   WEDFEST X - Official 10-Year Anniversary Festival Stylesheet
   ========================================================================== */

/* Typography @font-face */
@font-face {
  font-family: 'Vanilla Daisy';
  src: url('/fonts/VanillaDaisy.woff') format('woff'),
       url('/fonts/VanillaDaisy.otf') format('opentype'),
       local('Vanilla Daisy');
  font-display: swap;
}

@font-face {
  font-family: 'Intro';
  src: url('/assets/Faire-Part_Intro.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'Intro Inline';
  src: url('/assets/Faire-Part_Intro Inline.otf') format('opentype');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VCR OSD Mono';
  src: url('/assets/Faire-Part_VCR_OSD_MONO_1.001.ttf') format('truetype');
  font-display: swap;
}

:root {
  --color-sunset-gold: #F7B731;
  --color-festival-orange: #EB5A28;
  --color-magenta: #C85A8A;
  --color-twilight-purple: #7D5BA6;
  --color-electric-blue: #009FE3;
  --color-sky-blue: #7AC4E8;
  --color-onyx: #1D232A;
  --color-dark-bg: #12151A;
  --color-card-bg: rgba(255, 255, 255, 0.96);
  
  --font-logo: 'Vanilla Daisy', 'Playlist Script', 'Pacifico', cursive;
  --font-headline: 'Intro', 'Montserrat', sans-serif;
  --font-headline-inline: 'Intro Inline', 'Intro', 'Montserrat', sans-serif;
  --font-mono: 'VCR OSD Mono', monospace;
  --font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  /* clip, not hidden: hidden makes <body> a scroll container, which silently
     breaks every position: sticky (nav, pass rack). Old browsers keep hidden. */
  overflow-x: clip;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: #F3F4F6;
  background-color: var(--color-dark-bg);
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(18, 21, 26, 0.6) 0%, rgba(14, 17, 23, 0.88) 100%),
    url('/assets/wedfest_poly_10yr.svg');
  background-size: cover, cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  line-height: 1.6;
}

/* Festival Bunting Banner at Top */
.festival-bunting {
  width: 100%;
  height: 16px;
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-festival-orange) 0px,
    var(--color-festival-orange) 16px,
    var(--color-sunset-gold) 16px,
    var(--color-sunset-gold) 32px,
    var(--color-electric-blue) 32px,
    var(--color-electric-blue) 48px
  );
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Header & Nav */
header.festival-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: rgba(18, 21, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-wedfest-text {
  font-family: var(--font-logo);
  font-size: 1.6rem;
  color: #FFFFFF;
  display: inline-block;
  transform: rotate(-6deg); /* same tilt as the hero logo */
}

.brand-roman-x {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-sunset-gold);
  transform: rotate(-8deg);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #E5E7EB;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--color-sunset-gold);
}

.btn-rsvp-nav {
  background: linear-gradient(135deg, var(--color-festival-orange), var(--color-sunset-gold));
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-headline);
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(235, 90, 40, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-rsvp-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 90, 40, 0.6);
}

/* Hero Section */
.hero-section {
  position: relative;
  text-align: center;
  padding: 4.5rem 1.25rem 3.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-subtitle-top {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  color: var(--color-sunset-gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-title-main {
  font-size: 5.5rem;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  transform: rotate(-6deg);
}

.hero-wedfest-text {
  font-family: var(--font-logo);
  font-size: 5rem;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  display: inline-block;
  font-style: normal;
  text-transform: none;
}

.hero-roman-x {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 4.8rem;
  color: var(--color-sunset-gold);
  letter-spacing: 1px;
  display: inline-block;
  vertical-align: baseline;
}

.hero-ten-years {
  font-family: var(--font-headline-inline);
  font-size: 2rem;
  letter-spacing: 4px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-meta-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(29, 35, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.75rem 1.8rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.hero-meta-item svg {
  color: var(--color-festival-orange);
  flex-shrink: 0;
}

/* Countdown Clock */
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.countdown-card {
  background: rgba(29, 35, 42, 0.85);
  border: 1px solid rgba(247, 183, 49, 0.3);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-festival-orange), var(--color-sunset-gold));
}

.countdown-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-sunset-gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 0.4rem;
}

/* Section Containers */
section.festival-block {
  max-width: 1100px;
  margin: 3.5rem auto;
  padding: 0 1.25rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-script-label {
  font-family: var(--font-logo);
  font-size: 2rem;
  color: var(--color-sunset-gold);
  display: block;
  margin-bottom: -0.4rem;
  letter-spacing: -0.5px;
}

.section-main-title {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ==================== Venue Mark — Les Fadas ====================
   Les Fadas is the venue, not the event brand: the mark always reads as a
   credit and stays subordinate to the Wedfest X lockup. White lettering,
   since the house green (#1F3F1F) disappears against the dark ground. */
.fadas-mark {
  display: block;
  width: auto;
  height: auto;
  user-select: none;
}

.fadas-mark-venue {
  max-width: 232px;
  width: 46%;
  margin: 0 auto;
}

/* A logo in the <h2> breaks the header's text-based vertical rhythm:
   .section-script-label leans on a -0.4rem tuck that assumes the title below
   carries ~17px of leading above its caps. An image has none, so the tuck
   collides the script into the mark. Neutralise it here only. */
.section-header-venue .section-script-label {
  margin-bottom: 0.55rem;
}

.section-header-venue .section-main-title {
  line-height: 1;
}

.fadas-mark-footer {
  max-width: 132px;
  width: 40%;
  margin: 0 auto;
  opacity: 0.75;
}

.fadas-venue-city {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.05rem;
  letter-spacing: 4px;
  /* letter-spacing also trails the last glyph, pushing the line 4px off
     optical centre; pad the other side back. */
  padding-left: 4px;
  color: var(--color-sunset-gold);
  margin-top: 0.7rem;
}

.footer-venue-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 260px;
}

.footer-venue-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #9CA3AF;
}

/* Venue stamp on the pass verso, sitting with the other credentials. */
.badge-back-venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.badge-back-venue-label {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.badge-back-venue .fadas-mark {
  width: 82px;
  opacity: 0.82;
}

.section-divider-sawtooth {
  width: 100px;
  height: 5px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, var(--color-festival-orange), var(--color-electric-blue));
  border-radius: 3px;
}

/* Lineup / Schedule Grid */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.lineup-card {
  background: rgba(29, 35, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.lineup-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-sunset-gold);
  box-shadow: 0 12px 30px rgba(247, 183, 49, 0.2);
}

.lineup-time-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-sunset-gold);
  background: rgba(247, 183, 49, 0.15);
  border: 1px solid rgba(247, 183, 49, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.lineup-act-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.lineup-act-desc {
  color: #D1D5DB;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ==========================================================================
   Side-by-Side RSVP & 3D Double-Sided VIP Pass + Floating Black Lanyard
   ========================================================================== */
.rsvp-split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
  perspective: 1400px;
  max-width: 100%;
}

.rsvp-form-container {
  background: rgba(29, 35, 42, 0.9);
  border: 1px solid rgba(247, 183, 49, 0.3);
  border-radius: 24px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2;
  max-width: 100%;
}

.rsvp-pass-sticky-wrapper {
  position: sticky;
  top: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.45s ease;
  transform-origin: center center;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.rsvp-pass-sticky-wrapper.pass-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7) rotateY(45deg) rotateX(-20deg) translateY(40px);
  filter: blur(6px);
}

.live-vip-badge-perspective-container {
  transform-style: preserve-3d;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 50px;
}

/* ==================== 3D Floating Black Lanyard System ==================== */
.lanyard-3d-system {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(-25px);
  width: 280px;
  height: 90px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* Woven Satin Black Straps Looping Behind */
.lanyard-strap {
  position: absolute;
  top: -46px;
  width: 22px;
  height: 70px;
  background: linear-gradient(180deg, #0A0D12 0%, #171B22 50%, #0A0D12 100%);
  border-left: 1px dashed rgba(255, 215, 0, 0.35);
  border-right: 1px dashed rgba(255, 215, 0, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Both straps pivot on their bottom edge so they converge onto the crimp,
   forming the V that actually feeds the clasp instead of running parallel. */
.lanyard-strap-left {
  left: calc(50% - 24px);
  transform: rotate(-18deg) skewY(-5deg);
  transform-origin: bottom center;
}

.lanyard-strap-right {
  left: calc(50% + 2px);
  transform: rotate(18deg) skewY(5deg);
  transform-origin: bottom center;
}

.lanyard-strap-text {
  writing-mode: vertical-rl;
  font-family: var(--font-headline);
  font-size: 0.46rem;
  font-weight: 900;
  color: #F8FAFC;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  white-space: nowrap;
  opacity: 0.9;
}

/* Clasp Assembly Connecting Strap to Badge */
.lanyard-clasp-assembly {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateZ(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.lanyard-crimp-black {
  width: 28px;
  height: 14px;
  background: #11141A;
  border-radius: 4px;
  border: 1px solid #334155;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.lanyard-swivel-metal {
  width: 16px;
  height: 10px;
  background: linear-gradient(180deg, #E2E8F0, #94A3B8);
  border-radius: 2px;
  border: 1px solid #475569;
  margin-top: -2px;
}

.lanyard-hook-metal {
  width: 12px;
  height: 16px;
  border: 3px solid #CBD5E1;
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-top: -2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* The half of the hook that passes in FRONT of the card and dives into the
   slot. It lives INSIDE the face, as a sibling of .badge-lanyard-hole, so it
   inherits every transform the card gets and cannot drift from the hole.
   (An outside element mimicking the card's transform always drifts: the
   translateZ needed to paint it in front skews under the perspective divide.)
   Clipped at the card edge by the face's overflow; the clasp continues above. */
.badge-lanyard-hook {
  position: absolute;
  top: 0;
  left: calc(50% - 7px);
  width: 14px;
  height: 17px;
  border: 3px solid #E2E8F0;
  border-top: none;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(90deg, rgba(148,163,184,0.25), rgba(241,245,249,0.1));
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  z-index: 26;
  pointer-events: none;
}

/* ==================== 3D Double-Sided Flipper Card ==================== */
.live-vip-badge-flipper {
  width: 100%;
  max-width: 320px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.live-vip-badge-flipper.is-flipped {
  transform: rotateY(180deg) !important;
}

/* Card Faces */
.badge-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(235, 90, 40, 0.25);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-front {
  background: #FFFFFF;
  transform: rotateY(0deg);
}

.badge-back {
  background: #12151A;
  transform: rotateY(180deg);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(18, 21, 26, 0.4) 0%, rgba(14, 17, 23, 0.85) 100%),
    url('/assets/wedfest_poly_10yr.svg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}

/* Dynamic Specular Glare Effect */
.badge-glare-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 65%);
  z-index: 30;
  mix-blend-mode: overlay;
  opacity: 0.7;
  border-radius: 18px;
}

/* Front Face Internal Layout */
.badge-card-inner-layout {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.badge-vertical-strip {
  width: 22px;
  background: linear-gradient(180deg, var(--color-festival-orange), var(--color-magenta), var(--color-electric-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  overflow: hidden;
  padding: 0.5rem 0;
}

.vertical-strip-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: bold;
  color: #FFFFFF;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.badge-main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  overflow: hidden;
  height: 100%;
}

/* Lanyard slot: anchored to the card face (not the inner flow) so the recto
   and verso punch-holes land at the exact same physical height when flipped. */
.badge-lanyard-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 9px;
  background: #0B0F16;
  border-radius: 9999px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  z-index: 25;
  pointer-events: none;
}

.badge-header-poly {
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%),
    url('/assets/wedfest_poly_10yr.svg') center/cover;
  padding: 0.9rem 0.8rem 0.6rem;
  text-align: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.badge-header-script {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.badge-wedfest-text {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  color: #FFFFFF;
}

.badge-roman-x {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--color-sunset-gold);
  margin-top: 2px;
  display: inline-block;
}

.badge-header-sub {
  font-family: var(--font-headline);
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 0.15rem;
  font-weight: 700;
}

.badge-meta-row {
  display: flex;
  justify-content: space-around;
  background: #0F172A;
  color: #94A3B8;
  padding: 0.25rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  border-bottom: 1px solid #1E293B;
  flex-shrink: 0;
}

.badge-meta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.badge-meta-k {
  font-size: 0.46rem;
  color: var(--color-sunset-gold);
  letter-spacing: 0.5px;
}

.badge-meta-v {
  color: #F8FAFC;
  font-weight: bold;
}

.badge-body-content {
  padding: 0.75rem 0.8rem 0.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-guest-name-box {
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  margin-bottom: 0.45rem;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.badge-name-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.8px;
}

.badge-name-display {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  color: var(--color-onyx);
  font-weight: 900;
  margin-top: 0.1rem;
  word-break: break-word;
  line-height: 1.1;
}

.badge-zones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.zone-pill {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  padding: 0.15rem 0.3rem;
  font-family: var(--font-headline);
  font-size: 0.55rem;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  letter-spacing: 0.3px;
}

.zone-pill.active {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

.zone-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 4px #10B981;
}

.badge-vip-ribbon {
  background: var(--color-festival-orange);
  color: #FFFFFF;
  font-family: var(--font-headline);
  font-size: 0.82rem;
  padding: 0.3rem 0;
  letter-spacing: 1.5px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  flex-shrink: 0;
}

.badge-barcode-box {
  padding: 0.5rem 0.8rem 0.6rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  overflow: hidden;
  flex-shrink: 0;
}

.badge-security-seal {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: #64748B;
  letter-spacing: 1.2px;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.seal-icon {
  color: var(--color-festival-orange);
  font-size: 0.55rem;
}

.barcode-and-qr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0 0.2rem;
}

.badge-barcode-svg-wrapper {
  flex: 1;
  min-width: 0;
  height: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.badge-mini-qr {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: 3px;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.badge-serial-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748B;
  letter-spacing: 0.8px;
  margin-top: 0.15rem;
}

/* ==================== Back Face (Verso) Details & High Contrast ==================== */
.badge-back-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 1rem 1rem;
  text-align: center;
  justify-content: space-between;
  position: relative;
  box-sizing: border-box;
}

.badge-back-magstripe {
  width: calc(100% + 2rem);
  margin-left: -1rem;
  height: 34px;
  background: #080A0E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.badge-back-crest {
  margin: 0.6rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-back-logo-script {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.badge-back-wedfest-text {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  color: #FFFFFF;
}

.badge-back-logo-script .badge-roman-x {
  color: var(--color-sunset-gold);
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.badge-back-dates {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2.5px;
  margin-top: 0.2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.badge-back-tagline {
  font-family: var(--font-headline-inline);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--color-sunset-gold);
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  margin-top: 0.15rem;
}

/* High-Contrast Frosted White Rules Card */
.badge-back-rules-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 0.7rem 0.65rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
}

.badge-back-rules-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-festival-orange);
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  font-weight: 900;
  text-align: center;
}

.badge-back-rules-list {
  list-style: none;
  font-size: 0.62rem;
  color: #0F172A;
  font-weight: 600;
  line-height: 1.35;
}

.badge-back-rules-list li {
  margin-bottom: 0.25rem;
}

.badge-back-holo-seal {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 25%, #00CEC9 50%, #E040FB 75%, #FFD700 100%);
  border-radius: 9999px;
  padding: 0.35rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.holo-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: holoSwipe 3s infinite;
}

@keyframes holoSwipe {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Flip Controller Button */
.btn-flip-pass {
  margin-top: 1.25rem;
  background: rgba(29, 35, 42, 0.9);
  border: 1px solid rgba(247, 183, 49, 0.4);
  color: #F8FAFC;
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-flip-pass:hover {
  background: var(--color-festival-orange);
  border-color: var(--color-festival-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 90, 40, 0.5);
}

.footer-wedfest-text {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  color: #FFFFFF;
}

/* Form Styles */
.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  color: #F3F4F6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(18, 21, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.form-textarea {
  min-height: 80px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-festival-orange);
  box-shadow: 0 0 0 3px rgba(235, 90, 40, 0.25);
}

.radio-cards-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.radio-card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.5rem;
  background: rgba(18, 21, 26, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  min-height: 48px;
}

.radio-card-label input[type="radio"] {
  accent-color: var(--color-festival-orange);
}

.radio-card-label:hover {
  border-color: rgba(247, 183, 49, 0.6);
}

.radio-card-label.selected {
  border-color: var(--color-festival-orange);
  background: rgba(235, 90, 40, 0.18);
  color: #FFFFFF;
}

.btn-submit-rsvp {
  width: 100%;
  padding: 1.15rem;
  background: linear-gradient(135deg, var(--color-festival-orange), var(--color-sunset-gold));
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(235, 90, 40, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
  min-height: 52px;
}

.btn-submit-rsvp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(235, 90, 40, 0.6);
}

/* Venue & Guide */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.venue-info-box {
  background: rgba(29, 35, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
}

.venue-detail-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.35rem;
  align-items: flex-start;
}

.venue-detail-icon {
  color: var(--color-festival-orange);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.venue-map-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: #1E293B;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

/* Footer */
footer.festival-footer {
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0E1116;
  margin-top: 4rem;
}

.footer-logo-script {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-roman-x {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--color-sunset-gold);
  transform: rotate(-8deg);
  display: inline-block;
}

.footer-copy {
  color: #6B7280;
  font-size: 0.88rem;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #1D232A;
  border: 1px solid var(--color-sunset-gold);
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .rsvp-split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .rsvp-pass-sticky-wrapper {
    position: static;
    order: 2;
    margin-top: 1rem;
  }

  .live-vip-badge-flipper {
    max-width: 300px;
    height: 460px;
  }
}

@media (max-width: 768px) {
  header.festival-nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-logo-img {
    height: 28px;
  }

  .brand-roman-x {
    font-size: 1.3rem;
  }

  .hero-section {
    padding: 3rem 1rem 2.5rem;
  }

  .hero-subtitle-top {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .hero-logo-img {
    height: 62px;
  }

  .hero-roman-x {
    font-size: 3.2rem;
  }

  .hero-ten-years {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  .hero-meta-badge {
    padding: 0.6rem 1rem;
    gap: 0.75rem;
    border-radius: 18px;
    margin-bottom: 2rem;
  }

  .hero-meta-item {
    font-size: 0.85rem;
  }

  .countdown-container {
    gap: 0.5rem;
    max-width: 340px;
    margin-bottom: 2rem;
  }

  .countdown-card {
    padding: 0.75rem 0.25rem;
    border-radius: 12px;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .countdown-label {
    font-size: 0.65rem;
  }

  .section-main-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .section-script-label {
    font-size: 1.6rem;
  }

  .form-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .venue-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rsvp-form-container {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  .radio-cards-group {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .radio-card-label {
    padding: 0.75rem 0.4rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    height: 52px;
  }

  .hero-roman-x {
    font-size: 2.7rem;
  }

  .hero-ten-years {
    font-size: 1.15rem;
    letter-spacing: 1.5px;
  }

  .hero-meta-badge {
    flex-direction: column;
    gap: 0.4rem;
    border-radius: 16px;
    padding: 0.75rem 1rem;
  }

  .countdown-container {
    gap: 0.35rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .live-vip-badge-flipper {
    max-width: 290px;
    height: 460px;
  }

  .badge-vertical-strip {
    width: 20px;
  }

  .vertical-strip-text {
    font-size: 0.42rem;
    letter-spacing: 1px;
  }

  .lanyard-3d-system {
    width: 220px;
  }

  .badge-logo-img {
    height: 32px;
  }

  .badge-roman-x {
    font-size: 1.6rem;
  }

  .badge-name-display {
    font-size: 1.1rem;
  }

  .footer-logo-img {
    height: 38px;
  }

  .footer-roman-x {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   RSVP by household: rack of lanyards + passes, guest cards, confirmation
   ========================================================================== */
[hidden] { display: none !important; }

.rsvp-step-title {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.rsvp-step-help {
  color: #9CA3AF;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.rsvp-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.rsvp-link-btn {
  background: none;
  border: 0;
  color: var(--color-sunset-gold);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  padding: 0.25rem 0;
}

.rsvp-error {
  color: #FECACA;
  background: rgba(235, 90, 40, 0.14);
  border: 1px solid rgba(235, 90, 40, 0.45);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.5rem 0;
}

.form-hint {
  display: block;
  color: #6B7280;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

/* ---------- guest cards ---------- */
.rsvp-people { margin: 0.5rem 0 1.5rem; }

.guest-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.75rem 1rem 0.1rem;
  margin: 0 0 1rem;
  background: rgba(18, 21, 26, 0.55);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  min-width: 0;
}

.guest-card.is-focused {
  border-color: var(--color-sunset-gold);
  box-shadow: 0 0 0 3px rgba(247, 183, 49, 0.14);
}

.guest-card.is-absent { opacity: 0.72; }

.guest-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.45rem;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 100%;
}

.guest-num { font-family: var(--font-mono); color: var(--color-sunset-gold); }

.guest-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.guest-kid-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--color-magenta);
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  letter-spacing: 0.5px;
}

.guest-attend { margin: 0.5rem 0 0.9rem; }

/* compact cards: the orange border already shows the choice, so the native
   radio dot goes (still focusable) */
.guest-attend .radio-card-label { position: relative; letter-spacing: 0.3px; white-space: nowrap; }
.guest-attend input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.guest-attend .radio-card-label:focus-within { outline: 2px solid var(--color-sunset-gold); outline-offset: 2px; }

.guest-name-edit {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: #9CA3AF;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}
.guest-name-edit:hover { color: var(--color-sunset-gold); border-color: var(--color-sunset-gold); }

/* one tap for the whole household, then fix the exceptions */
.rsvp-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed rgba(247, 183, 49, 0.45);
  border-radius: 14px;
}
.rsvp-bulk-label { flex-basis: 100%; color: #9CA3AF; font-size: 0.85rem; }
.rsvp-bulk-btn {
  flex: 1 1 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: var(--font-headline);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rsvp-bulk-btn:hover { border-color: var(--color-sunset-gold); background: rgba(247, 183, 49, 0.1); }

.rsvp-progress {
  margin: -0.5rem 0 1.25rem;
  color: #9CA3AF;
  font-size: 0.85rem;
  text-align: center;
}
.rsvp-progress.is-done { color: var(--color-sunset-gold); font-weight: 600; }

.guest-card.shake { animation: guestShake 0.45s ease; }
@keyframes guestShake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- rack ---------- */
.pass-rack {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

.pass-stage {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
  transform: scale(0.84);
  transform-origin: 50% 0;
}

.pass-slot {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 320px;
  margin-left: -160px;
  transform-style: preserve-3d;
  transform: translateX(var(--tx, 0)) translateZ(var(--tz, 0)) rotateY(var(--ry, 0)) scale(var(--sc, 1));
  opacity: var(--op, 1);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
}

.pass-slot:not(.is-focused) { cursor: pointer; }
.pass-slot:not(.is-focused) .live-vip-badge-flipper { cursor: pointer; }

.pass-drop {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% -40px;
  animation: passDrop 0.95s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}

@keyframes passDrop {
  0%   { transform: translateY(-115%) rotate(-7deg); opacity: 0; }
  55%  { transform: translateY(3%) rotate(3deg); opacity: 1; }
  75%  { transform: translateY(-1.5%) rotate(-1.5deg); }
  100% { transform: none; opacity: 1; }
}

.pass-slot.is-leaving .pass-drop { animation: passLeave 0.42s ease-in forwards; }
@keyframes passLeave {
  to { transform: translateY(-70%) rotate(5deg); opacity: 0; }
}

/* someone isn't coming: the pass goes grey and gets stamped.
   The filter sits on the faces, not the flipper: a filter on a preserve-3d
   element flattens it, and the mirrored back face then shows through. */
.pass-slot .badge-face { transition: filter 0.4s ease; }
.pass-slot.is-absent .badge-face { filter: grayscale(1) brightness(0.62); }

.pass-absent-stamp {
  position: absolute;
  top: 71%;
  left: 50%;
  z-index: 60;
  transform: translate(-50%, -50%) translateZ(90px) rotate(-14deg) scale(1.6);
  opacity: 0;
  pointer-events: none;
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-festival-orange);
  border: 4px solid var(--color-festival-orange);
  border-radius: 10px;
  padding: 0.35rem 1rem;
  background: rgba(18, 21, 26, 0.72);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pass-slot.is-absent .pass-absent-stamp {
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(90px) rotate(-14deg) scale(1);
}

.badge-name-display.name-pop { animation: namePop 0.3s ease; }
@keyframes namePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); color: var(--color-festival-orange); }
  100% { transform: scale(1); }
}

.pass-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  min-height: 12px;
  margin-top: 0.25rem;
}

.pass-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.pass-dot.active { width: 26px; background: var(--color-sunset-gold); }

/* ---------- confirmation ---------- */
.modal-content { max-height: 92vh; overflow-y: auto; }
.modal-emoji { font-size: 3.2rem; margin-bottom: 0.4rem; }

.modal-title {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.modal-lead { color: #D1D5DB; margin-bottom: 1.1rem; }

.modal-recap {
  list-style: none;
  text-align: left;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.modal-recap li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
}

.modal-recap li span {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
}

.modal-recap li.is-coming span { background: rgba(247, 183, 49, 0.2); color: var(--color-sunset-gold); }
.modal-recap li.is-absent { color: #9CA3AF; }
.modal-recap li.is-absent span { background: rgba(255, 255, 255, 0.08); color: #9CA3AF; }

.modal-calendar {
  border: 1px dashed var(--color-sunset-gold);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.1rem;
  background: rgba(0, 0, 0, 0.3);
}

.modal-calendar-label {
  font-family: var(--font-headline);
  font-size: 0.82rem;
  color: var(--color-sunset-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.modal-calendar-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-cal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.6rem 0.5rem;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--color-onyx);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-cal:hover { transform: translateY(-2px); }
.modal-calendar-when { color: #9CA3AF; font-size: 0.78rem; margin-top: 0.7rem; }
.modal-foot { color: #6B7280; font-size: 0.82rem; margin-bottom: 1rem; }
.modal-close-btn { width: 100%; border: none; cursor: pointer; padding: 0.9rem; }

/* ---------- phones & tablets: a sticky mini-rack above the form ----------
   Guests mostly arrive from WhatsApp on a phone: the pass must stay in view
   while they type, or the live name update is never seen. */
@media (max-width: 992px) {
  .rsvp-pass-sticky-wrapper {
    order: -1;
    position: relative;
    top: 52px;
    z-index: 50;
    margin: 0 -1.25rem;
    width: calc(100% + 2.5rem);
    max-width: none;
    padding: 0.2rem 0 0.5rem;
    background: linear-gradient(180deg, rgba(18, 21, 26, 0.98) 80%, rgba(18, 21, 26, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(247, 183, 49, 0.2);
  }

  /* pinned only while answering, so it never hides the name search */
  .rsvp-split-layout.has-household .rsvp-pass-sticky-wrapper { position: sticky; }
  .rsvp-split-layout:not(.has-household) .rsvp-pass-sticky-wrapper { top: 0; background: none; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

  .pass-rack { height: 232px; }
  .pass-stage { transform: scale(0.4); transform-origin: 50% 0; }
  .pass-slot { top: 40px; }
  .btn-flip-pass { display: none; }
  .rsvp-split-layout { gap: 1rem; }
}

@media (max-width: 480px) {
  .modal-calendar-btns { grid-template-columns: 1fr; }
}

/* ticket emoji on the orange CTA: on an onyx disc so it doesn't melt into the gradient */
.btn-emoji {
  display: inline-grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  margin: -0.5em 0.6em -0.5em 0;
  vertical-align: middle;
  line-height: 0;
  color: var(--color-sunset-gold);
  background: var(--color-dark-bg);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transform: rotate(-12deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
a:hover > .btn-emoji { transform: rotate(8deg) scale(1.12); }

.venue-link {
  color: var(--color-sunset-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.venue-link:hover { color: #FFFFFF; }

/* discreet way back to the 2016 site */
.footer-throwback {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  color: #9CA3AF;
  text-decoration: underline;
  text-decoration-color: rgba(156, 163, 175, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.footer-throwback:hover, .footer-throwback:focus-visible { color: var(--color-sunset-gold); text-decoration: underline; }

/* ==================== Mobile polish ==================== */
.hero-ten-years span { display: inline; }
.section-main-title, .lineup-act-title, .rsvp-step-title, .hero-subtitle-top { text-wrap: balance; }
.lineup-act-desc, .rsvp-step-help { text-wrap: pretty; }

.venue-detail-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -4px;
  border-radius: 50%;
  color: var(--color-sunset-gold);
  background: rgba(247, 183, 49, 0.1);
  border: 1px solid rgba(247, 183, 49, 0.28);
}

.btn-cal { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.venue-link { display: inline-block; padding: 0.3rem 0; }
.footer-throwback { padding: 0.6rem 0.75rem; }
.nav-cta-long { display: inline; }

@media (max-width: 768px) {
  /* keep the RSVP one tap away from anywhere on the page */
  .nav-links { display: flex; }
  .nav-links .nav-link { display: none; }
  .festival-nav .btn-rsvp-nav { font-size: 0.78rem; padding: 0.7rem 1.1rem; letter-spacing: 0.5px; }
  .nav-cta-long { display: none; }
  .countdown-label { font-size: 0.7rem; }
  .lineup-act-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero-ten-years .hero-sep { display: none; }
  .hero-ten-years span { display: block; line-height: 1.5; }
  .countdown-label { font-size: 0.68rem; letter-spacing: 0.8px; }
  a.btn-submit-rsvp { white-space: nowrap; font-size: 1rem; letter-spacing: 1px; padding-left: 0.75rem; padding-right: 0.75rem; }
  .section-main-title { font-size: 1.65rem; }
  .venue-detail-icon { width: 34px; height: 34px; }
}

/* anchor jumps land below the fixed top bar */
section[id] { scroll-margin-top: 72px; }

/* alignment: hero icons form one column on phones, hero CTA shares the cards' 20px gutter */
@media (max-width: 768px) {
  .hero-section { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 480px) {
  .hero-meta-badge { align-items: flex-start; }
  .countdown-container { max-width: none; width: 100%; }
}

/* hero ends on the countdown now (no CTA below it): no trailing gap */
.hero-section .countdown-container { margin-bottom: 0; }
