/* The landing page is one screen: the generated park picture, the logo, the store badges, gulls and balloons. */

:root { --navy: #1d2a5c; }
html, body.hero-page { height: 100%; }
body.hero-page { margin: 0; overflow: hidden; background: #8fd0ff; }

.hero {
  position: fixed; inset: 0; overflow: hidden; isolation: isolate; cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #8fd0ff; padding: 0; color: inherit;
}
.hero .bg { position: absolute; inset: -2%; z-index: 0; will-change: transform; }
.hero .bg picture, .hero .bg img { width: 100%; height: 100%; display: block; }
.hero .bg img { object-fit: cover; object-position: 50% 25%; }
@media (orientation: portrait) { .hero .bg img { object-position: 50% 40%; } }
/* wider than the picture (16:9, ultrawide): keep its bottom, where Peanut and Don stand; the sky gives way */
@media (min-aspect-ratio: 3/2) { .hero .bg img { object-position: 50% 100%; } }

.hero .clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; will-change: transform; }
.hero .cloud { position: absolute; animation: breathe ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 92%); mask-image: linear-gradient(to bottom, #000 45%, transparent 92%); }
.hero .cloud.k1 { top: -14vh; left: -16vw; width: min(36vw, 56vh); animation-duration: 18s; }
.hero .cloud.k2 { top: -12vh; right: -16vw; width: min(34vw, 54vh); transform: scaleX(-1); animation-duration: 22s; animation-name: breathe-r; }
@keyframes breathe { 0%,100% { translate: 0 0; } 50% { translate: 3vw 1vh; } }
@keyframes breathe-r { 0%,100% { translate: 0 0; } 50% { translate: -3vw 1vh; } }
@keyframes drift { 0% { transform: translateX(-6vw); } 50% { transform: translateX(8vw); } 100% { transform: translateX(-6vw); } }

.birds { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gull { position: absolute; left: 0; top: 0; }
.gull img { width: 100%; display: block; }
.gull img + img { position: absolute; inset: 0; }
.gull img { opacity: 0; }
.gull[data-f="0"] img.up, .gull[data-f="1"] img.mid, .gull[data-f="2"] img.down, .gull[data-f="3"] img.mid { opacity: 1; }
.gull.left img { transform: scaleX(-1); }
.loose {
  position: absolute; width: 64px; margin: -40px 0 0 -32px; z-index: 4;
  animation: rise 7s cubic-bezier(.3, .1, .6, 1) forwards; filter: drop-shadow(0 8px 10px rgba(29,42,92,.25));
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  8% { transform: translate(0, -20px) scale(1); opacity: 1; }
  50% { transform: translate(var(--sway), -45vh) rotate(4deg); }
  100% { transform: translate(calc(var(--sway) * -1), -110vh) rotate(-4deg); opacity: 1; }
}

.content {
  position: relative; z-index: 5; margin: 0 0 max(90px, 28vh); padding: 0 16px; will-change: transform;
  display: flex; flex-direction: column; align-items: center;
}
.content .appicon {
  width: clamp(68px, 11vh, 240px); height: auto; border-radius: 23%; margin-bottom: 4px;
  box-shadow: 0 0 0 3px #fff, 0 10px 26px rgba(29,42,92,.35); animation: pop .9s cubic-bezier(.2,1.4,.4,1) both;
}
.content .logo {
  width: min(86vw, 56vh); height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 8px 0 rgba(29,42,92,.25)) drop-shadow(0 16px 30px rgba(29,42,92,.3));
  animation: pop 1s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes pop { 0% { transform: scale(.6) rotate(-4deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.content .tag {
  display: inline-block; margin: 10px 0 16px; padding: 7px 22px 9px; border-radius: 999px;
  font-family: "Paytone One", "Nunito", sans-serif; font-size: clamp(16px, min(2.3vw, 3.3vh), 80px); line-height: 1.25; color: #fff;
  background: rgba(29, 42, 92, .72); box-shadow: 0 8px 22px rgba(29,42,92,.28);
  animation: fade .8s .4s ease both;
}
.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: fade .8s .6s ease both; }
.store { position: relative; display: block; line-height: 0; border-radius: 12px; }
.store img { height: clamp(44px, 5.8vh, 120px); width: auto; display: block; opacity: .92; }
.soon {
  display: inline-block; margin: 0 0 10px; line-height: 1; white-space: nowrap;
  font-family: "Paytone One", sans-serif; font-size: clamp(13px, 1.7vh, 32px); color: var(--navy);
  background: #ffc21a; border: 2px solid var(--navy); border-radius: 999px; padding: 6px 14px 7px;
  box-shadow: 0 3px 0 var(--navy); transform: rotate(-2deg); animation: fade .8s .5s ease both;
}
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.legal { position: absolute; z-index: 6; top: clamp(12px, 1.8vh, 36px); right: clamp(16px, 1.6vw, 48px); display: flex; gap: 1.2em; font-weight: 800; font-size: clamp(14px, 1.7vh, 32px); }
.legal a { color: #fff; text-decoration: none; text-shadow: 0 1px 2px rgba(29,42,92,.6), 0 2px 10px rgba(29,42,92,.45); }
.legal a:hover { text-decoration: underline; }
.corner {
  position: absolute; z-index: 6; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px;
  font-size: clamp(12px, 1.4vh, 26px); font-weight: 700;
}
.corner a, .corner span { color: #fff; text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.corner a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .content { margin-top: clamp(48px, 8vh, 80px); }
  .store img { height: 44px; }
  .corner { gap: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
