@font-face {
  font-family: 'GeoEka';
  src: url('geo_eka-55506100504.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'BPGNino';
  src: url('BPG_Nino_Medium_GPL&GNU-15313347368.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

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

body {
  font-family: 'BPGNino', 'GeoEka', Georgia, serif;
}

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */

html {
  scrollbar-color: #b8933e #f5ede2;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5ede2;
}

::-webkit-scrollbar-thumb {
  background: #b8933e;
  border-radius: 999px;
  border: 2px solid #f5ede2;
}

::-webkit-scrollbar-thumb:hover {
  background: #9a7a32;
}

/* ─────────────────────────────────────────
   OVERLAY / SCENE
───────────────────────────────────────── */

#scene {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transition: opacity 1s ease;
}

#scene.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   WRAP (full-screen flaps)
───────────────────────────────────────── */

#wrap {
  position: fixed;
  inset: 0;
  cursor: pointer;
  transform-style: preserve-3d;
}

/* ── Flaps ── */

.flap {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: #f5ede2;
  transition: transform 6s cubic-bezier(0.25, 0.1, 0.1, 1);
}

.flap-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(184, 147, 62, 0.2);
  overflow: visible;
}

.flap-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(184, 147, 62, 0.2);
  overflow: visible;
}

/* ── Flap flowers ── */

.flap-flower {
  position: absolute;
  width: 55%;
  pointer-events: none;
  user-select: none;
}

.flap-flower--left-1 {
  bottom: 6%;
  left: -5%;
  transform: rotate(100deg);
  z-index: 2;
}

.flap-flower--left-2 {
  bottom: 16%;
  left: 2%;
  transform: rotate(60deg);
  z-index: 1;
}

.flap-flower--left {
  top: 6%;
  left: -3%;
  transform: rotate(95deg);
  z-index: 2;
}

.flap-flower--left-3 {
  top: 18%;
  left: 4%;
  transform: rotate(120deg);
  z-index: 1;
}

.flap-flower--right {
  bottom: 16%;
  right: -8%;
  transform: rotate(-47deg);
}

.flap-flower--right-3 {
  bottom: 8%;
  right: 4%;
  transform: rotate(-102deg);
}
.flap-flower--right-1 {
  top: 20%;
  right: 4%;
  transform: rotate(-90deg);
  z-index: 2;
}
.flap-flower--right-2 {
  top: 10%;
  right: 4%;
  transform: rotate(-80deg);
  z-index: 1;
}

#wrap.open .flap-left {
  transform: translateX(-45%) rotateY(-135deg);
}

#wrap.open .flap-right {
  transform: translateX(45%) rotateY(135deg);
}

/* ── Wax seal ── */

#wax {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12rem;
  z-index: 102;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

#wax.fading {
  opacity: 0;
}

/* ── Hint ── */

#hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(63, 45, 26, 0.5);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 300;
  z-index: 101;
  transition: opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}

#scene.hidden #hint,
#hint.hidden {
  opacity: 0;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 105vh;
  min-height: 105svh;
  padding: 72px 24px 0;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://weddsite.b-cdn.net/showcase/birthday-4/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  padding-top: 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
  font-family: GeoEka;
}

.hero-pre {
  font-size: 16px;
  letter-spacing: 0.18em;
  font-weight: 300;
  color: #6b4e33;
  margin: 0 4rem 24px;
}

.hero-names {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #3f2d1a;
  margin-bottom: 16px;
}

.hero-post {
  font-size: 16px;
  letter-spacing: 0.18em;
  font-weight: 300;
  color: #6b4e33;
  margin: 0 4rem 24px;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: #b8933e;
  margin: 0 auto 20px;
}

.hero-date {
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 300;
  color: #6b4e33;
}

.hero-rsvp-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 44px;
  font-family: 'GeoEka', Georgia, serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.32em;
  color: #3f2d1a;
  text-decoration: none;
  border: 1px solid #b8933e;
  background-color: rgba(245, 237, 226, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(42, 74, 48, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-rsvp-btn:hover {
  background-color: rgba(245, 237, 226, 0.9);
  border-color: #9a7a32;
  box-shadow: 0 4px 24px rgba(42, 74, 48, 0.18);
}

/* ─────────────────────────────────────────
   SHARED SECTION STYLES
───────────────────────────────────────── */

.section-inner {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 28px;
}

.section-pre {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(63, 45, 26, 0.5);
  margin-bottom: 36px;
}

.section-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #3f2d1a;
  margin-bottom: 24px;
}

.section-rule {
  width: 48px;
  height: 1px;
  background: #b8933e;
  margin: 0 auto 36px;
}

.section-message {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 2;
  color: rgba(63, 45, 26, 0.65);
}

/* ─────────────────────────────────────────
   COUNTDOWN
───────────────────────────────────────── */

#countdown-section {
  background-color: #ffffff;
}

/* #countdown-section, .section-inner{
  padding-top: 4rem;
  padding-bottom: 4rem;
} */

#countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 40px;
  font-family: GeoEka;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 58px;
}

.cd-num {
  font-size: 40px;
  font-weight: 400;
  color: #3f2d1a;
  line-height: 1;
  letter-spacing: 0.04em;
}

.cd-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(63, 45, 26, 0.4);
}

.cd-sep {
  font-size: 28px;
  color: #b8933e;
  line-height: 1;
  margin-bottom: 18px;
}

/* ─────────────────────────────────────────
   TIMELINE
───────────────────────────────────────── */

#timeline-section {
  /* background-color: #f5ede2; */
  padding-top: 20px;
  padding-bottom: 60px;
  position: relative;
}

#timeline-section .section-inner {
  padding-bottom: 40px;
}

#timeline-section .section-pre {
  color: rgba(63, 45, 26, 0.45);
}

#timeline-section .section-title {
  color: #3f2d1a;
}

.event-toast {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* ── Event card ── */

.event-card {
  position: relative;
  display: inline-block;
  padding: 30px 40px 26px;
  background-color: #fdfbf7;
  border: 1px solid rgba(184, 147, 62, 0.35);
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(63, 45, 26, 0.08);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease, border-color 0.4s ease;
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(184, 147, 62, 0.18);
  border-radius: 2px;
  pointer-events: none;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(63, 45, 26, 0.14);
  border-color: rgba(184, 147, 62, 0.6);
}

.event-time {
  font-family: 'GeoEka', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #3f2d1a;
  line-height: 1;
}

.event-title {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #6b4e33;
  margin-top: 10px;
}

.event-glint {
  display: block;
  width: 54px;
  height: 1px;
  margin: 16px auto;
  background: linear-gradient(
    to right,
    rgba(184, 147, 62, 0),
    rgba(184, 147, 62, 0.7),
    rgba(184, 147, 62, 0)
  );
  position: relative;
}

.event-glint::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background-color: #b8933e;
  transform: translate(-50%, -50%) rotate(45deg);
}

.event-location {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(63, 45, 26, 0.55);
  line-height: 1.5;
  font-weight: bold;
}

.event-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: #b8933e;
  border-bottom: 1px solid rgba(184, 147, 62, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.event-card:hover .event-more {
  color: #9a7a32;
  border-color: #9a7a32;
}

/* ── Drink shelf ── */

.drink-shelf {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin-top: 48px;
  padding-bottom: 24px;
}

.drink-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(184, 147, 62, 0),
    rgba(184, 147, 62, 0.5) 20%,
    rgba(184, 147, 62, 0.5) 80%,
    rgba(184, 147, 62, 0)
  );
}

.drink {
  position: relative;
  width: 48px;
  flex-shrink: 0;
  transform-origin: bottom center;
  animation: drinkFloat 5s ease-in-out infinite;
}

.drink img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(63, 45, 26, 0.12));
}

.drink::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 70%;
  height: 6px;
  background: radial-gradient(
    ellipse at center,
    rgba(63, 45, 26, 0.22),
    rgba(63, 45, 26, 0)
  );
  transform: translateX(-50%);
  animation: drinkShadow 5s ease-in-out infinite;
}

.drink--1 { animation-delay: -0.2s; animation-duration: 5.4s; }
.drink--2 { animation-delay: -1.6s; animation-duration: 4.6s; }
.drink--3 { animation-delay: -0.9s; animation-duration: 5.8s; }
.drink--4 { animation-delay: -2.4s; animation-duration: 5s; }
.drink--5 { animation-delay: -3.1s; animation-duration: 4.8s; }
.drink--6 { animation-delay: -1.2s; animation-duration: 5.6s; }

.drink--1::after { animation-delay: -0.2s; animation-duration: 5.4s; }
.drink--2::after { animation-delay: -1.6s; animation-duration: 4.6s; }
.drink--3::after { animation-delay: -0.9s; animation-duration: 5.8s; }
.drink--4::after { animation-delay: -2.4s; animation-duration: 5s; }
.drink--5::after { animation-delay: -3.1s; animation-duration: 4.8s; }
.drink--6::after { animation-delay: -1.2s; animation-duration: 5.6s; }

@keyframes drinkFloat {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-9px) rotate(1.2deg); }
}

@keyframes drinkShadow {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.45; transform: translateX(-50%) scaleX(0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .drink, .drink::after { animation: none; }
}

/* ─────────────────────────────────────────
   TIMELINE POPUP
───────────────────────────────────────── */

#tl-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(8, 17, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#tl-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#tl-popup-box {
  background-color: #f5ede2;
  max-width: 320px;
  width: 100%;
  padding: 40px 32px 36px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#tl-popup-overlay.active #tl-popup-box {
  transform: translateY(0);
}

#tl-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: rgba(63, 45, 26, 0.35);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

#tl-popup-close:hover {
  color: #3f2d1a;
}

#tl-popup-time {
  font-family: 'GeoEka', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #3f2d1a;
  margin-bottom: 6px;
}

#tl-popup-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #3f2d1a;
  margin-bottom: 16px;
}

#tl-popup-rule {
  width: 32px;
  height: 1px;
  background-color: #b8933e;
  margin-bottom: 16px;
}

#tl-popup-location {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(63, 45, 26, 0.55);
  margin-bottom: 12px;
  text-align: start;
  line-height: 1.6;
}

.popup-map-link {
  color: #b8933e;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 147, 62, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.popup-map-link:hover {
  border-bottom-color: #b8933e;
}

#tl-popup-body {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(63, 45, 26, 0.7);
  line-height: 1.9;
}

/* ─────────────────────────────────────────
   RSVP
───────────────────────────────────────── */

#rsvp-section {
  position: relative;
  background-color: #efe3d1;
  background-image: radial-gradient(
    ellipse 80% 55% at 50% 0%,
    rgba(184, 147, 62, 0.14),
    rgba(184, 147, 62, 0) 70%
  );
  overflow: hidden;
}

#rsvp-section .section-inner {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ── Framed invitation card ── */

.rsvp-card {
  position: relative;
  background-color: #fdfbf7;
  border: 1px solid rgba(184, 147, 62, 0.4);
  border-radius: 4px;
  padding: 46px 26px 38px;
  box-shadow: 0 22px 50px rgba(63, 45, 26, 0.14);
}

.rsvp-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 147, 62, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

.rsvp-emblem {
  display: block;
  width: 42px;
  height: 42px;
  line-height: 40px;
  margin: 0 auto 18px;
  font-size: 16px;
  color: #b8933e;
  border: 1px solid rgba(184, 147, 62, 0.5);
  border-radius: 50%;
  background-color: #fdfbf7;
}

.rsvp-glint {
  display: block;
  width: 54px;
  height: 1px;
  margin: 18px auto 30px;
  background: linear-gradient(
    to right,
    rgba(184, 147, 62, 0),
    rgba(184, 147, 62, 0.7),
    rgba(184, 147, 62, 0)
  );
  position: relative;
}

.rsvp-glint::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background-color: #b8933e;
  transform: translate(-50%, -50%) rotate(45deg);
}

#rsvp-section .section-pre {
  color: rgba(63, 45, 26, 0.5);
  margin-bottom: 14px;
}

#rsvp-section .section-title {
  color: #3f2d1a;
  margin-bottom: 0;
}

#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.rsvp-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(63, 45, 26, 0.5);
}

.rsvp-input {
  background-color: #f7f1e8;
  border: 1px solid rgba(184, 147, 62, 0.28);
  color: #3f2d1a;
  font-family: 'BPGNino', 'GeoEka', Georgia, serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  outline: none;
  border-radius: 3px;
  width: 100%;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-input::placeholder {
  color: rgba(63, 45, 26, 0.3);
}

.rsvp-input:focus {
  border-color: #b8933e;
  background-color: #fdfbf7;
  box-shadow: 0 0 0 3px rgba(184, 147, 62, 0.12);
}

.rsvp-textarea {
  resize: none;
}

.rsvp-radio-group {
  display: flex;
  gap: 12px;
}

.rsvp-radio-card {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.rsvp-radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp-radio-card span {
  display: block;
  text-align: center;
  padding: 14px 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(63, 45, 26, 0.6);
  background-color: #f7f1e8;
  border: 1px solid rgba(184, 147, 62, 0.28);
  border-radius: 3px;
  transition: border-color 0.3s ease, color 0.3s ease,
    background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.rsvp-radio-card:hover span {
  border-color: rgba(184, 147, 62, 0.6);
}

.rsvp-radio-card input:checked + span {
  border-color: #b8933e;
  background-color: #b8933e;
  color: #fdfbf7;
  box-shadow: 0 6px 16px rgba(184, 147, 62, 0.32);
  transform: translateY(-2px);
}

.rsvp-btn {
  position: relative;
  background-color: #b8933e;
  border: 1px solid #b8933e;
  color: #fdfbf7;
  font-family: 'BPGNino', 'GeoEka', Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  padding: 17px 40px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(184, 147, 62, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.rsvp-btn span {
  position: relative;
  z-index: 1;
}

.rsvp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(253, 251, 247, 0),
    rgba(253, 251, 247, 0.5),
    rgba(253, 251, 247, 0)
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.rsvp-btn:hover {
  background-color: #9a7a32;
  border-color: #9a7a32;
  box-shadow: 0 10px 24px rgba(184, 147, 62, 0.4);
  transform: translateY(-2px);
}

.rsvp-btn:hover::before {
  left: 140%;
}

#rsvp-thanks {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(63, 45, 26, 0.7);
  margin-top: 32px;
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   MAP
───────────────────────────────────────── */

#map-section {
  background-color: #ffffff;
  padding: 4rem 0;
}

#map-section .section-pre {
  color: rgba(63, 45, 26, 0.5);
}

#map-section .section-title {
  color: #3f2d1a;
}

#map-section .section-rule {
  background: #b8933e;
}

.map-venues {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.map-venue {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.map-divider {
  width: 48px;
  height: 1px;
  background: rgba(42, 74, 48, 0.12);
  margin: 0 auto;
}

.map-embed {
  position: relative;
  margin-top: 32px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(42, 74, 48, 0.12);
}

.map-embed-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  display: block;
  border: 0;
}

.map-venue-label {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(63, 45, 26, 0.4);
  margin-bottom: 4px;
}

.map-venue-name {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #3f2d1a;
}

.map-venue-address {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(63, 45, 26, 0.55);
  line-height: 1.7;
}

.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #b8933e;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 147, 62, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.map-link:hover {
  color: #9a7a32;
  border-color: rgba(154, 122, 50, 0.6);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

#footer {
  background-color: #efe3d1;
  padding: 20px 24px;
  text-align: center;
}

.footer-names {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #3f2d1a;
  margin-bottom: 8px;
}

.footer-rule {
  width: 36px;
  height: 1px;
  background: #b8933e;
  margin: 0 auto 8px;
}

.footer-credit {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(63, 45, 26, 0.4);
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-credit-link:hover {
  color: rgba(245, 237, 226, 0.6);
}

.footer-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.3;
  display: block;
  transition: opacity 0.3s ease;
}

.footer-credit-link:hover .footer-logo {
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   MOBILE PROMPT
───────────────────────────────────────── */

#mobile-prompt {
  display: none;
}

/* ─────────────────────────────────────────
   BREAKPOINTS
───────────────────────────────────────── */

@media (min-width: 481px) {
  .drink {
    width: 58px;
  }

  .drink-shelf {
    gap: 8px;
    margin-top: 56px;
  }

  .event-time {
    font-size: 46px;
  }
}

@media (min-width: 769px) {
  #mobile-prompt {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #2a4a30;
    align-items: center;
    justify-content: center;
  }

  #mobile-prompt-box {
    text-align: center;
    padding: 48px 40px;
    border: 1px solid rgba(245, 237, 226, 0.15);
    max-width: 360px;
  }

  #mobile-prompt-icon {
    margin-bottom: 24px;
  }

  #mobile-prompt-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    opacity: 0.8;
    display: block;
    margin: 0 auto;
  }

  #mobile-prompt-title {
    font-family: 'BPGNino', 'GeoEka', Georgia, serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #f5ede2;
    margin-bottom: 16px;
  }

  #mobile-prompt-text {
    font-family: 'BPGNino', 'GeoEka', Georgia, serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.8;
    color: rgba(245, 237, 226, 0.55);
  }

  .hero-names {
    font-size: 72px;
  }

  .hero-pre {
    font-size: 12px;
  }

  .hero-date {
    font-size: 16px;
  }
}

@media (min-width: 1025px) {
  .hero-names {
    font-size: 88px;
  }
}


/* ===========================================================================
   Viewport pin, intro scroll lock + loading screen
   ---------------------------------------------------------------------------
   --vh is written by the inline script in <head> off visualViewport and re-pinned
   by script.js for the first 6s only, so Instagram's and Messenger's sliding nav
   bar cannot resize the layout. vh, svh, lvh and dvh all move with that bar,
   which is why the pin has to come from JS. The 105vh/105svh floors on #hero stay
   as the no-JS fallback and MUST be declared before the .vh-lock rule below.

   The envelope lock is NOT overflow: hidden on the document: that freezes Chrome
   iOS (opened from a chat app) at its short first-paint viewport and leaves a
   band of page under the envelope. The gesture is trapped in script.js instead.

   The loader exists so font-display: block is safe: the block period is spent
   behind the spinner instead of on an invisible page.
   =========================================================================== */

:root {
  --vh: 1vh;
}

html {
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.vh-lock #hero {
  min-height: calc(var(--vh) * 105);
}

html.is-locked,
html.is-locked body {
  overscroll-behavior: none;
  touch-action: none;
}

/* Nothing may animate unseen behind the spinner. The envelope itself only moves
   on a tap, which the loader blocks anyway. */
.is-loading body *:not(.loader):not(.loader__spinner) {
  animation-play-state: paused !important;
}

.loader {
  position: fixed;
  inset: 0;
  /* Out-ranks the envelope (#scene 100, #wax 102) and the desktop notice. */
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5ede2;
  opacity: 1;
  transition: opacity 0.55s ease;
}

.loader.is-hidden {
  opacity: 0;
}

.loader.is-gone {
  display: none;
}

.loader__spinner {
  display: block;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(184, 147, 62, 0.25);
  border-top-color: #b8933e;
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

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