.bg1-icon {
  align-self: stretch;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
  object-fit: cover;
}
.logo-and-title {
  align-self: stretch;
  height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.in-partnership-with {
  position: relative;
  letter-spacing: 0.01em;
  line-height: 23px;
}
.grabfood-final-logo-cmyk-white-icon {
  width: 130px;
  position: relative;
  max-height: 100%;
  object-fit: cover;
}
.grab {
  height: 57px;
  justify-content: flex-start;
  gap: var(--gap-6);
}
.grab,
.loading,
.logo-n-title-n-grab {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-n-title-n-grab {
  /* Lockup at the top, cue at the bottom over the scallop, pao floating in
     between — the leftover height is shared evenly, so the splash stays
     balanced on any screen instead of pooling all the slack in one gap. */
  justify-content: space-between;
  padding: 44px var(--padding-20) 0;
  gap: 0;
  /* Fill the space above the scallop so the pao can size against it. */
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: var(--font-size-12);
  color: var(--White);
  font-family: var(--font-sole-sans);
}
.loading {
  width: 100%;
  position: relative;
  background-color: #0b2340;
  /* Same construction as the other pages: night-sky plate + red scallop footer,
     with the campaign lockup as a real element on top. */
  background-image: url("./public/page-footer.png"), url("./public/page-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center bottom, center bottom;
  background-size: 100% auto, cover;
  overflow: hidden;
  /* Anchor from the top so the padding above the logo is predictable. */
  justify-content: flex-start;
  gap: 0;
  /* The red scallop is a background layer, so page content always paints on
     top of it — the dice and "TAP TO PLAY" sit over the band by design. */
  box-sizing: border-box;
  padding-bottom: 28px;
  /* Definite height (not min-height) so flex children can actually shrink
     against it on short screens. */
  height: 100vh;
  height: 100dvh;
  line-height: normal;
  letter-spacing: normal;
}

/* Choco pao hero — carries its own "Get a chance to win up to ₱150 off!" caption,
   so it replaces the old text tagline. */
.splash-pao {
  /* Full-bleed within the app column: overflows the section's 20px side padding
     equally on both sides (the column is centred), and .loading clips it. */
  width: min(100vw, var(--app-max-width));
  max-width: none;
  height: auto;
  position: relative;
  /* The PNG carries a soft glow halo, so its box is bigger than the visible
     circle — a small negative pull keeps the optical gaps even. */
  margin: -18px 0;
  /* Shrink to fit when the screen is short, instead of pushing the cue down
     onto the scallop. object-fit keeps the circle round while it scales. */
  flex: 0 1 auto;
  min-height: 0;
  object-fit: contain;
  animation: pao-in 0.8s ease-out both;
}
@keyframes pao-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Once validated, the whole splash block is the tap target — pao, dice and
   "TAP TO PLAY" all start the game. */
.logo-n-title-n-grab.is-tappable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.splash-pao.is-ready {
  cursor: pointer;
  animation: pao-in 0.8s ease-out both, pao-breathe 2.8s ease-in-out 0.8s infinite;
}
/* Pressing anywhere in the block gives the same feedback as pressing the pao. */
.logo-n-title-n-grab.is-tappable:active .splash-pao {
  animation: none;
  transform: scale(0.94);
  transition: transform 0.12s ease-out;
}
.splash-pao.is-ready:active,
.splash-pao.is-tapped {
  animation: none;
  transform: scale(0.94);
  transition: transform 0.12s ease-out;
}
@keyframes pao-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

/* Animated dice + "TAP TO PLAY" prompt — hidden until the user is validated. */
.tap-cue {
  /* space-between already puts this last item at the bottom, over the red
     scallop. position+z-index keeps it above the background layer. */
  margin-top: 0;
  padding-top: 12px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
}
.tap-cue.is-visible { opacity: 1; }
.tap-dice {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.tap-cue.is-visible .tap-dice {
  animation: tap-dice-hop 1.5s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}
.tap-cue-text {
  font-family: var(--font-sole-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffd85e;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.tap-cue.is-visible .tap-cue-text {
  animation: tap-cue-pulse 1.8s ease-in-out infinite;
}
/* Dice leaps and tumbles, inviting the tap — squash on landing for weight. */
@keyframes tap-dice-hop {
  0%       { transform: translateY(0) scale(1, 1) rotate(-10deg); }
  12%      { transform: translateY(0) scale(1.14, 0.86) rotate(-6deg); }  /* crouch */
  40%      { transform: translateY(-34px) scale(0.94, 1.08) rotate(12deg); } /* apex */
  62%      { transform: translateY(-12px) scale(1, 1) rotate(4deg); }
  78%      { transform: translateY(0) scale(1.16, 0.84) rotate(-4deg); }  /* land */
  90%      { transform: translateY(0) scale(0.98, 1.02) rotate(-8deg); }
  100%     { transform: translateY(0) scale(1, 1) rotate(-10deg); }
}
@keyframes tap-cue-pulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-pao,
  .splash-pao.is-ready,
  .tap-cue.is-visible .tap-dice,
  .tap-cue.is-visible .tap-cue-text { animation: none; }
}

/* Old decorative background images are replaced by the sky plate. */
.bg1-icon {
  display: none !important;
}
/* Campaign lockup (Chowking + Chowlebrate Moon Festival with Choco Pao) */
.campaign-logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  position: relative;
}
.logo-and-title {
  height: auto;
}
