*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; background:#000; font-family:"Lexend", system-ui, Arial; }

/* =========================
   Floating Action Buttons (FAB)
   - Sound (bottom-right icon)
   - PDF (bottom-left icon)
========================= */
.fab{
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  z-index: 9999;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  font-size: 18px;
  line-height: 1;
}

.fab:active{ transform: scale(0.98); }

.fab--sound{
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
}

.fab--pdf{
  left: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
}

/* SCENES */
.scene{
  position:fixed; inset:0;
  opacity:0; pointer-events:none;
  transform: scale(1.02);
  filter: blur(2px);
  transition: opacity .46s ease, transform .60s ease, filter .46s ease;
  background:#000;
}
.scene.active{
  opacity:1; pointer-events:auto;
  transform: scale(1);
  filter: blur(0);
}
.scene.leaving{ opacity:0; transform: scale(.985); filter: blur(3px); pointer-events:none; }
.scene.entering{ opacity:0; transform: scale(1.03); filter: blur(4px); pointer-events:none; }

/* Background video */
.bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter: blur(26px) brightness(.55) saturate(1.05);
  pointer-events:none;
}
.glass{
  position:absolute; inset:0;
  background:
    radial-gradient(70% 60% at 50% 35%, rgba(0,0,0,0.12), rgba(0,0,0,0.72)),
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.65));
  pointer-events:none;
}

/* Foreground video */
.phone{
  position:absolute; inset:0;
  display:flex; justify-content:center; align-items:center;
  pointer-events:none;
}
.fg{
  width:400px;
  max-width:92vw;
  max-height:86vh;
  aspect-ratio: 9 / 16;
  border-radius:26px;
  object-fit:cover;
  box-shadow:0 22px 70px rgba(0,0,0,.62);

  /* Prevent accidental taps that show play overlay on some phones */
  pointer-events: none;
}

@media (max-width: 560px){
  .phone{ display:block; }
  .fg{
    position:absolute; inset:0;
    width:100%; height:100%;
    max-width:none; max-height:none;
    border-radius:0;
    aspect-ratio:auto;
    box-shadow:none;
    object-fit:cover;
  }
}

/* UI */
.ui{ position:absolute; inset:0; display:flex; z-index:20; }
.ui.center{ justify-content:center; align-items:center; }

/* =========================
   TOPBAR (single-line compact)
========================= */
.topbar{
  position:absolute;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 10px;
  right: 10px;
  z-index: 30;

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;

  flex-wrap: nowrap;           /* force one line */
  overflow-x: auto;            /* allow tiny screens to scroll */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 8px;

  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.topbar::-webkit-scrollbar{ display:none; }

/* Buttons: Lexend + ALL CAPS */
button, .btn{
  font-family:"Lexend", system-ui, Arial;
  letter-spacing:.10em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;

  background:rgba(255,255,255,.18);
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
  padding:12px 16px;
  border-radius:999px;
  cursor:pointer;
  backdrop-filter: blur(12px);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.topbar button{
  font-size: 9px;
  padding: 8px 10px;
  letter-spacing: .08em;
  white-space: nowrap;
  line-height: 1;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}

@media (max-width: 420px){
  .topbar button{
    font-size: 8px;
    padding: 7px 8px;
    letter-spacing: .06em;
  }
}

button:hover, .btn:hover{ background:rgba(255,255,255,.28); }
.btn.ghost{ background:rgba(0,0,0,.32); }
.btn.ghost:hover{ background:rgba(0,0,0,.44); }

/* Open hidden until reveal time */
.btn-open.is-hidden{ display:none !important; }
.btn-open{
  animation: openAppear 900ms ease-out both, openPulse 2.4s ease-in-out 1.1s infinite;
}
@keyframes openAppear{
  from{ opacity:0; transform: translateY(10px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
@keyframes openPulse{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-4px) scale(1.01); }
}

/* OVERVIEW Ghost “Tap Events” hint */
.ghostHint{
  position:absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;

  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);

  letter-spacing:.12em;
  text-transform: uppercase;
  font-size: 11px;

  opacity: 0;
  pointer-events: none;
}
.ghostHint.show{
  opacity: 1;
  animation: hintFloat 2.2s ease-in-out infinite;
}
.ghostHint__pulse{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  100%{ box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

/* EVENTS deck */
.deckWrap{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  z-index:15;
  padding:16px;
}

.deck{
  position:relative;
  width:min(88vw, 430px);
  height:min(74vh, 760px);
}

@media (max-width:560px){
  .deckWrap{ padding:0; }
  .deck{ width:100vw; height:100vh; }
}

.card{
  position:absolute;
  inset:0;
  border-radius:26px;
  overflow:hidden;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 26px 90px rgba(0,0,0,.58);
  will-change: transform;
  touch-action: pan-y;
}

@media (max-width:560px){
  .card{ border-radius:0; border:0; box-shadow:none; }
}

.cardVideo{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
  pointer-events: none; /* prevent tap overlays */
}

/* Stack peek positions */
.deck .card:nth-child(1){ z-index:3; transform: translateX(0) translateY(0) rotate(0deg); }
.deck .card:nth-child(2){ z-index:2; transform: translateX(14px) translateY(18px) rotate(1.2deg); filter: brightness(.92) saturate(.95); }
.deck .card:nth-child(3){ z-index:1; transform: translateX(28px) translateY(36px) rotate(2.4deg); filter: brightness(.86) saturate(.90); }

.card.dragging{ transition:none !important; }
.card.snap-back{ transition: transform 240ms ease !important; }

/* Fly animations */
@keyframes flyLeft{ to{ transform: translateX(-120vw) rotate(-14deg); opacity:0.15; } }
@keyframes flyRight{ to{ transform: translateX(120vw) rotate(14deg); opacity:0.15; } }
.card.fly-left{ animation: flyLeft 320ms ease-out forwards; }
.card.fly-right{ animation: flyRight 320ms ease-out forwards; }

/* Intro animation: 3 cards “come together” */
.deck.intro .card:nth-child(1){ animation:introTop 2.6s ease-in-out both; }
.deck.intro .card:nth-child(2){ animation:introMid 2.6s ease-in-out both; }
.deck.intro .card:nth-child(3){ animation:introBot 2.6s ease-in-out both; }

@keyframes introTop{
  0%{ transform: translateX(-18px) translateY(-10px) rotate(-4deg); }
  35%{ transform: translateX(0px) translateY(0px) rotate(0deg); }
  100%{ transform: translateX(0px) translateY(0px) rotate(0deg); }
}
@keyframes introMid{
  0%{ transform: translateX(34px) translateY(22px) rotate(5deg); }
  35%{ transform: translateX(14px) translateY(18px) rotate(1.2deg); }
  100%{ transform: translateX(14px) translateY(18px) rotate(1.2deg); }
}
@keyframes introBot{
  0%{ transform: translateX(62px) translateY(48px) rotate(8deg); }
  35%{ transform: translateX(28px) translateY(36px) rotate(2.4deg); }
  100%{ transform: translateX(28px) translateY(36px) rotate(2.4deg); }
}

/* Ghost swipe preview */
.deck.ghost .card:nth-child(1){
  animation: ghostSwipe 1.1s ease-in-out 1 both;
}
@keyframes ghostSwipe{
  0%{ transform: translateX(0px) rotate(0deg); }
  35%{ transform: translateX(-26px) rotate(-2.2deg); }
  70%{ transform: translateX(0px) rotate(0deg); }
  100%{ transform: translateX(0px) rotate(0deg); }
}

/* Swipe hint pill */
.swipeHint{
  position:absolute;
  bottom:18px;
  left:50%;
  transform: translateX(-50%);
  z-index: 40;

  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 14px;
  border-radius: 999px;

  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.88);

  backdrop-filter: blur(10px);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;

  opacity: 0;
  pointer-events: none;
}
.swipeHint.show{
  opacity: 1;
  animation: hintFloat 2.2s ease-in-out infinite;
}
.swipeHint__arrow{
  display:inline-block;
  animation: arrowNudge 1.1s ease-in-out infinite;
}
@keyframes hintFloat{
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(-4px); }
}
@keyframes arrowNudge{
  0%,100%{ transform: translateX(0); opacity: .9; }
  50%{ transform: translateX(6px); opacity: 1; }
}

/* Modals */
.modal{ position:fixed; inset:0; display:none; z-index:100; }
.modal.open{ display:block; }
.modalBackdrop{ position:absolute; inset:0; background:rgba(0,0,0,.65); }

.modalPanel{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(92vw, 900px);
  height:min(82vh, 760px);
  background:rgba(14,14,14,.92);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.modalHeader{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  background:rgba(0,0,0,.35);
  color:#fff;
}
.modalTitle{
  letter-spacing:.12em;
  text-transform: uppercase;
  font-weight:600;
  font-size: 12px;
}
.iconBtn{
  background:transparent; border:0; color:#fff;
  font-size:18px;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
}
.iconBtn:hover{ background:rgba(255,255,255,.10); }
.modalFrame{ width:100%; height:100%; border:0; }
.modalFooter{ padding:12px 14px; display:flex; justify-content:flex-end; gap:10px; }

/* ===== MODAL BODY CONTENT ===== */
.modalBody{
  padding: 14px 14px 18px;
  overflow: auto;
  color: rgba(255,255,255,.92);
}

.sectionTitle{
  margin: 10px 2px 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,.82);
}

/* ===== TRAVEL ===== */
.hotelGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 720px){
  .hotelGrid{ grid-template-columns: 1fr; }
}
.hotelCard{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(10px);
}
.hotelName{
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.hotelMeta{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  line-height: 1.25;
}
.hotelActions{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quickLinks{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ===== GIFTS ===== */
.giftIntro{
  margin: 6px 0 14px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.giftGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 820px){
  .giftGrid{ grid-template-columns: 1fr; }
}
.giftCard{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
  padding: 12px;
}
.giftHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.giftWho{
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.92);
}
.giftRow{
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.giftLabel{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
}
.giftSmall{
  font-size: 12px;
  color: rgba(255,255,255,.76);
}

.qr{
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  display: block;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: #fff;
  padding: 8px;
}

.checksLine{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.84);
}