@charset "UTF-8";

:root {
  --blue-deep: #0d2b4e;
  --blue: #1a4d8f;
  --pink: #ff2d78;
  --pink-light: #ff8fb8;
  --orange: #ff8a3d;
  --yellow: #ffd166;
  --white: #ffffff;
  --font: 'Poppins', sans-serif;
  --font-script: 'Pacifico', cursive;
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--blue-deep);
  color: var(--white);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ---------- SOUND TOGGLE ---------- */
#sound-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
#sound-toggle:hover { transform: scale(1.08); background: rgba(255,255,255,0.28); }
#sound-toggle.muted .sound-icon::before { content: "\1F507"; }

/* ---------- SCREENS ---------- */
.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ================= SCREEN 1: PROMO ================= */
#screen-promo {
  background: linear-gradient(180deg, #ffe3a3 0%, #ffb199 30%, #ff7aa8 55%, #6a5acd 80%, #2c2a6e 100%);
}

.sky-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sun {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d0 0%, #ffd166 60%, rgba(255,209,102,0) 75%);
  filter: blur(1px);
  animation: sun-glow 3.5s ease-in-out infinite;
}
@keyframes sun-glow {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.plane {
  position: absolute;
  top: 12%;
  left: -10%;
  font-size: 42px;
  transform: rotate(8deg);
  animation: fly-across 9s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}
@keyframes fly-across {
  0% { left: -10%; top: 14%; }
  100% { left: 110%; top: 2%; }
}

.cloud {
  position: absolute;
  font-size: 46px;
  opacity: .8;
  animation: drift 20s linear infinite;
}
.cloud::before { content: "\2601\FE0F"; }
.cloud-1 { top: 18%; left: -20%; animation-duration: 22s; }
.cloud-2 { top: 30%; left: -40%; animation-duration: 28s; animation-delay: -8s; font-size: 34px; }
.cloud-3 { top: 8%;  left: -60%; animation-duration: 34s; animation-delay: -15s; font-size: 28px; }
@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(160vw); }
}

.palm {
  position: absolute;
  bottom: -2%;
  font-size: 120px;
  opacity: .95;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.3));
}
.palm-left { left: -4%; transform: scaleX(-1) rotate(-4deg); }
.palm-right { right: -4%; bottom: -4%; font-size: 150px; rotate: 4deg; }

.promo-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-in-up .9s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13,43,78,0.55);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.brand-icon { font-size: 22px; }
.brand-text { text-align: left; line-height: 1.1; }
.brand-text strong { display: block; font-size: 14px; letter-spacing: .5px; }
.brand-text small { font-size: 10px; opacity: .8; letter-spacing: 1px; }

.badge-exclusive {
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.promo-title {
  font-size: clamp(20px, 5vw, 26px);
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--blue-deep);
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.promo-city {
  font-family: var(--font-script);
  font-size: clamp(64px, 18vw, 100px);
  line-height: 1;
  margin: 6px 0 0;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.2));
}

.promo-sub {
  letter-spacing: 6px;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 22px;
  font-size: 13px;
}

.promo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: var(--blue-deep);
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 13px;
  margin-bottom: 26px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.promo-tags span { white-space: nowrap; }
.promo-tags b { color: var(--pink-light); }

.promo-loading-text {
  color: var(--blue-deep);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 18px;
  opacity: .9;
}

.loader { width: 100%; max-width: 260px; }
.loader-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(13,43,78,0.2);
  overflow: hidden;
  margin-bottom: 14px;
}
.loader-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  animation: fill-loader 5s ease forwards;
}
@keyframes fill-loader { to { width: 100%; } }

.loader-icons {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 22px;
}
.lic { opacity: .35; transform: scale(.85); transition: all .3s ease; }
.lic.active { opacity: 1; transform: scale(1.15); }

/* ================= SCREEN 2: TRANSITION ================= */
#screen-transition {
  background: radial-gradient(ellipse at center, #3a2a6e 0%, #1c1440 60%, #0d0a26 100%);
}
.transition-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,45,120,0.25), rgba(255,138,61,0.15), rgba(26,77,143,0.25));
  animation: bg-pulse 3s ease-in-out infinite;
}
@keyframes bg-pulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  animation: sparkle-pop 1.8s ease-in-out infinite;
}
@keyframes sparkle-pop {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.2) rotate(90deg); }
  100% { opacity: 0; transform: scale(.4) rotate(180deg); }
}

.transition-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}

.heart-pulse {
  font-size: 70px;
  animation: heartbeat 1.2s ease-in-out infinite;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 24px rgba(255,45,120,.6));
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.18); }
  40% { transform: scale(0.95); }
  60% { transform: scale(1.1); }
}

.transition-text {
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 600;
  line-height: 1.5;
  max-width: 480px;
  animation: fade-in-up 1s ease both;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.dots { display: inline-block; }

/* ================= SCREEN 3: REVEAL ================= */
#screen-reveal {
  background: linear-gradient(160deg, #ff2d78 0%, #ff8a3d 45%, #ffd166 100%);
}
.reveal-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.reveal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  padding: 40px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reveal-icons-row {
  display: flex;
  gap: 18px;
  font-size: 30px;
  margin-bottom: 8px;
  animation: fade-in-up .8s ease both;
}
.reveal-icons-row span { animation: bob 2s ease-in-out infinite; }
.reveal-icons-row span:nth-child(2) { animation-delay: .2s; }
.reveal-icons-row span:nth-child(3) { animation-delay: .4s; }
.reveal-icons-row span:nth-child(4) { animation-delay: .6s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal-title {
  font-family: var(--font-script);
  font-size: clamp(56px, 16vw, 110px);
  color: var(--white);
  text-shadow: 0 8px 24px rgba(0,0,0,.25);
  line-height: 1;
  margin: 10px 0 0;
  animation: pop-in .9s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: .15s;
  opacity: 0;
}

.reveal-main {
  font-size: clamp(26px, 7vw, 42px);
  font-weight: 800;
  color: var(--blue-deep);
  margin: 6px 0 22px;
  text-shadow: 0 2px 0 rgba(255,255,255,.3);
  animation: fade-in-up .9s ease both;
  animation-delay: .4s;
  opacity: 0;
}

.reveal-text {
  font-size: 16px;
  font-weight: 500;
  max-width: 420px;
  line-height: 1.6;
  color: var(--blue-deep);
  margin-bottom: 16px;
  animation: fade-in-up .9s ease both;
  animation-delay: .6s;
  opacity: 0;
}

.reveal-highlight {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  background: rgba(13,43,78,0.35);
  padding: 12px 20px;
  border-radius: 16px;
  margin-bottom: 26px;
  animation: fade-in-up .9s ease both;
  animation-delay: .8s;
  opacity: 0;
}
.reveal-highlight span { color: var(--yellow); font-weight: 800; }

.emotional-box {
  background: rgba(255,255,255,0.9);
  color: var(--blue-deep);
  border-radius: 20px;
  padding: 40px 24px 24px;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 460px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  margin-bottom: 30px;
  animation: fade-in-up .9s ease both;
  animation-delay: 1s;
  opacity: 0;
  position: relative;
}
.emotional-box-icon {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  line-height: 1;
  background: var(--white);
  border-radius: 50%;
  padding: 8px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  z-index: 2;
}

.replay-btn {
  border: none;
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13,43,78,.35);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: fade-in-up .9s ease both;
  animation-delay: 1.15s;
  opacity: 0;
}
.replay-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 28px rgba(13,43,78,.45); }
.replay-btn:active { transform: translateY(0) scale(.98); }

.footer-icons {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  font-size: 20px;
  opacity: .85;
  animation: fade-in-up .9s ease both;
  animation-delay: 1.3s;
}

/* shared animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop-in {
  0% { opacity: 0; transform: scale(.5); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- FADE TRANSITION BETWEEN SCREENS ---------- */
.screen.fade-out { animation: screen-fade-out .6s ease forwards; }
.screen.fade-in { animation: screen-fade-in .8s ease forwards; }
@keyframes screen-fade-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.05); }
}
@keyframes screen-fade-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .palm { font-size: 80px; }
  .palm-right { font-size: 100px; }
  .promo-tags { font-size: 12px; padding: 12px 16px; }
  .emotional-box { font-size: 13.5px; padding: 36px 18px 20px; }
}

@media (max-height: 700px) {
  .reveal-content { padding-top: 24px; }
  .reveal-icons-row { font-size: 24px; }
}
