/* The landing page: a big parallax hero over the game's own map, icon cards, the four places, a ride parade,
   the guests and the rival. Shared tokens and the header/footer come from styles.css. */

:root {
  --navy: #1d2a5c;
  --sky-top: #5fb8ff;
  --sky-low: #bfe7ff;
  --mint: #3fc1a8;
  --orange: #ff8a1f;
  --shadow-soft: 0 18px 40px rgba(29, 42, 92, .18);
}

html { scroll-behavior: smooth; }
body.landing { overflow-x: clip; background: var(--cream); }
.landing .wrap { max-width: 1180px; }

/* ---------- Header over the hero ---------- */
.landing .top {
  position: absolute; inset: 0 0 auto 0; z-index: 30; padding: 16px 0;
}
.landing .top .brand { color: #fff; text-shadow: 0 2px 0 var(--navy), 0 3px 10px rgba(0,0,0,.25); }
.landing .top nav a { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.landing .top img.mini { box-shadow: 0 4px 12px rgba(0,0,0,.25); }

/* ---------- Buttons (the game's chunky pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Paytone One", "Nunito", sans-serif; font-size: 20px; letter-spacing: .2px;
  padding: 14px 28px 16px; border-radius: 999px; text-decoration: none; color: var(--navy);
  border: 3px solid var(--navy); position: relative; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 0 var(--navy), 0 14px 24px rgba(29, 42, 92, .25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--navy), 0 18px 28px rgba(29, 42, 92, .28); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy), 0 6px 12px rgba(29, 42, 92, .25); }
.btn-yellow { background: linear-gradient(180deg, #ffe15c 0%, var(--yellow) 55%, #f4a800 100%); }
.btn-pink { background: linear-gradient(180deg, #ff7db3 0%, var(--pink) 55%, var(--pink-deep) 100%); color: #fff; text-shadow: 0 2px 0 rgba(29,42,92,.45); }
.btn-white { background: linear-gradient(180deg, #fff 0%, #f3f6ff 100%); }
.btn img { width: 30px; height: 30px; margin: -6px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 100%);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero .px { position: absolute; will-change: transform; }
.hero .map-wrap { inset: -6% -6% -10% -6%; z-index: 0; }
.hero .map-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before { /* softens the busy map behind the logo */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 50% 44%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(40,110,200,.35) 0%, rgba(40,110,200,0) 28%, rgba(20,40,90,0) 70%, rgba(20,40,90,.25) 100%);
}
.hero .cloud { z-index: 3; }
.hero .cloud img { display: block; animation: drift linear infinite; }
.hero .c1 { top: 9%; left: -4%; } .hero .c1 img { width: min(300px, 46vw); animation-duration: 70s; }
.hero .c2 { top: 22%; right: -6%; } .hero .c2 img { width: min(360px, 52vw); animation-duration: 90s; animation-direction: reverse; }
.hero .c3 { bottom: 24%; left: 8%; } .hero .c3 img { width: min(220px, 36vw); animation-duration: 60s; opacity: .9; }
@keyframes drift { 0% { transform: translateX(-6vw); } 50% { transform: translateX(6vw); } 100% { transform: translateX(-6vw); } }

.hero .balloon { top: 14%; right: 9%; z-index: 4; }
.hero .balloon img { width: clamp(70px, 9vw, 130px); animation: bob 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-22px) rotate(3deg); } }

.hero .gulls { top: 30%; left: 0; width: 100%; z-index: 4; pointer-events: none; }
.gull { position: absolute; width: clamp(42px, 4.5vw, 64px); height: auto; animation: fly 26s linear infinite; }
.gull span { display: block; position: relative; }
.gull img { width: 100%; display: block; }
.gull img.down { position: absolute; inset: 0; }
.gull img.down { animation: flap .5s steps(1) infinite; }
.gull img.up { animation: flap .5s steps(1) infinite reverse; }
.gull.g2 { top: 60px; animation-duration: 34s; animation-delay: -12s; transform: scale(.8); }
@keyframes fly { 0% { transform: translateX(-10vw) translateY(0); } 50% { transform: translateX(55vw) translateY(-26px); } 100% { transform: translateX(115vw) translateY(10px); } }
@keyframes flap { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.hero-content { position: relative; z-index: 10; padding: 96px 16px 150px; max-width: 980px; }
.hero-content .logo {
  width: min(760px, 92vw); height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 10px 0 rgba(29,42,92,.28)) drop-shadow(0 18px 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; } }
.hero-content .tag {
  display: inline-block; font-family: "Paytone One", sans-serif; color: #fff; font-size: clamp(20px, 2.8vw, 32px);
  margin: 14px 0 28px; padding: 8px 26px 10px; border-radius: 999px; line-height: 1.25;
  background: rgba(29, 42, 92, .78); box-shadow: 0 8px 22px rgba(29,42,92,.3);
}
.hero-content .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-content .soon {
  display: inline-block; margin-top: 26px; background: rgba(255,255,255,.88); color: var(--navy); font-weight: 800;
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(29,42,92,.18); font-size: 15px;
}

.hero .host { left: max(1vw, 8px); bottom: 26px; z-index: 12; display: flex; align-items: flex-end; gap: 8px; }
.hero .host img { width: clamp(120px, 15vw, 210px); filter: drop-shadow(0 10px 18px rgba(29,42,92,.35)); animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.bubble {
  position: relative; background: #fff; color: var(--navy); font-weight: 800; font-size: 15px; line-height: 1.35;
  border: 3px solid var(--navy); border-radius: 22px; padding: 12px 16px; max-width: 250px; text-align: left;
  box-shadow: 0 8px 0 rgba(29,42,92,.18);
}
.hero .host .bubble { margin-bottom: 120px; animation: bubble-in .6s 1.2s cubic-bezier(.2,1.4,.4,1) both; }
.hero .host .bubble::after {
  content: ""; position: absolute; left: -14px; bottom: 18px; width: 22px; height: 22px; background: #fff;
  border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg);
}
@keyframes bubble-in { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

.edge { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 20; height: 46px; pointer-events: none;
  background: url("img/art/awning.webp") repeat-x center / auto 46px; filter: drop-shadow(0 -4px 8px rgba(29,42,92,.18)); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section h2.title {
  font-size: clamp(30px, 4.6vw, 48px); text-align: center; margin: 0 0 10px; color: var(--navy);
}
.section .lead { text-align: center; color: var(--ink-soft); max-width: 620px; margin: 0 auto 48px; font-size: 18px; }
.stripe { height: 16px; background: url("img/art/candy.webp") repeat-x center / auto 16px; }

/* Feature cards with their art floating on top */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.fcard {
  background: #fff; border: 3px solid var(--navy); border-radius: 30px; padding: 96px 22px 26px; position: relative;
  text-align: center; box-shadow: 0 8px 0 var(--navy), var(--shadow-soft); margin-top: 70px;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1);
}
.fcard:nth-child(odd) { transform: rotate(-1.2deg); }
.fcard:nth-child(even) { transform: rotate(1.2deg); }
.fcard:hover { transform: translateY(-8px) rotate(0); }
.fcard .art {
  position: absolute; left: 50%; top: -70px; width: 156px; height: 156px; transform: translateX(-50%);
  display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--tint, #ffe9f2) 70%);
  border: 3px solid var(--navy); box-shadow: 0 6px 0 var(--navy);
}
.fcard .art img { width: 128px; height: 128px; object-fit: contain; transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.fcard:hover .art img { transform: scale(1.1) rotate(-6deg); }
.fcard h3 { font-size: 23px; margin: 0 0 8px; color: var(--pink-deep); }
.fcard p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.fcard.t-yellow { --tint: #fff1bf; } .fcard.t-mint { --tint: #d4f5ec; } .fcard.t-sky { --tint: #d9eeff; } .fcard.t-pink { --tint: #ffe0ec; }
.fcard.t-mint h3 { color: var(--teal); } .fcard.t-sky h3 { color: #2f6fd1; }

/* The four places */
.places { background: linear-gradient(180deg, #dff3ff 0%, #f2fbff 100%); }
.worlds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.world { text-align: center; }
.world .diorama { width: 100%; max-width: 240px; height: auto; filter: drop-shadow(0 16px 18px rgba(29,42,92,.25)); animation: float 5s ease-in-out infinite; }
.world:nth-child(2) .diorama { animation-delay: -1.2s; } .world:nth-child(3) .diorama { animation-delay: -2.4s; } .world:nth-child(4) .diorama { animation-delay: -3.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.plate {
  display: inline-block; margin: 8px auto 10px; padding: 10px 26px 12px; min-width: 190px;
  background: url("img/art/ticket.webp") center / 100% 100% no-repeat;
  font-family: "Paytone One", sans-serif; color: var(--pink-deep); font-size: 20px;
}
.world p { margin: 0 auto; max-width: 230px; color: var(--ink-soft); font-size: 15px; }

/* Ride parade */
.parade { overflow: hidden; padding: 72px 0 80px; background: var(--cream); }
.row { display: flex; gap: 22px; width: max-content; animation: march 60s linear infinite; padding: 10px 0; }
.row.back { animation-direction: reverse; animation-duration: 72s; margin-top: 18px; }
.parade:hover .row { animation-play-state: paused; }
@keyframes march { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ride {
  width: 168px; height: 168px; flex: none; display: grid; place-items: center; border-radius: 34px;
  background: #fff; border: 3px solid var(--navy); box-shadow: 0 6px 0 var(--navy);
}
.ride img { width: 138px; height: 138px; object-fit: contain; transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.ride:hover img { transform: scale(1.12); }
.ride:nth-child(4n+1) { background: #fff4d6; } .ride:nth-child(4n+2) { background: #e4f7f1; }
.ride:nth-child(4n+3) { background: #ffe6f0; } .ride:nth-child(4n) { background: #e3f0ff; }

/* Guests and their thoughts */
.guests { background: linear-gradient(180deg, #fff 0%, #fff6e6 100%); }
.thoughts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; max-width: 900px; margin: 0 auto; }
.thought { display: flex; align-items: center; gap: 14px; }
.thought img { width: 104px; height: 104px; flex: none; filter: drop-shadow(0 6px 8px rgba(29,42,92,.2)); }
.thought .bubble { max-width: none; flex: 1; }
.thought .bubble::before {
  content: ""; position: absolute; left: -13px; top: 50%; margin-top: -10px; width: 18px; height: 18px; background: #fff;
  border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg);
}

/* Rival */
.rival { background: radial-gradient(ellipse at 50% 0%, #3a3f78 0%, #1d2a5c 70%); color: #fff; overflow: hidden; }
.rival h2.title { color: #fff; }
.rival .lead { color: #cfd6ff; }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.side img { width: min(260px, 60vw); filter: drop-shadow(0 18px 26px rgba(0,0,0,.4)); }
.side .bubble { max-width: 340px; text-align: center; }
.side .name { font-family: "Paytone One", sans-serif; font-size: 24px; }
.side.don .name { color: #ffb36b; } .side.fistik .name { color: var(--yellow); }
.vs {
  font-family: "Paytone One", sans-serif; font-size: 44px; color: var(--navy); background: var(--yellow);
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 4px solid #fff;
  box-shadow: 0 0 0 6px rgba(255,194,26,.35), 0 10px 26px rgba(0,0,0,.4); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Inside the game: chips */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chip { display: flex; align-items: center; gap: 14px; background: #fff; border: 3px solid var(--navy); border-radius: 22px; padding: 12px 18px; box-shadow: 0 5px 0 var(--navy); font-weight: 800; }
.chip img { width: 48px; height: 48px; object-fit: contain; flex: none; }

/* Call to action */
.join {
  text-align: center; padding: 90px 0 100px;
  background: linear-gradient(180deg, #2f86e0 0%, var(--sky-top) 100%); color: #fff; position: relative; overflow: hidden;
}
.join h2 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 10px; text-shadow: 0 3px 0 var(--navy); }
.join p { font-size: 19px; font-weight: 700; margin: 0 auto 30px; max-width: 560px; text-shadow: 0 2px 0 rgba(29,42,92,.55), 0 2px 10px rgba(29,42,92,.4); }
.join .fine { margin-top: 22px; font-size: 15px; opacity: .95; }
.join .px { position: absolute; pointer-events: none; }
.join .jb { right: 6%; top: 16%; } .join .jb img { width: clamp(70px, 8vw, 120px); animation: bob 7s ease-in-out infinite; }
.join .jc { left: 4%; bottom: 10%; } .join .jc img { width: clamp(150px, 20vw, 280px); animation: drift 50s linear infinite; }

.landing footer { background: var(--cream); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .chips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .fcard { margin-top: 78px; }
  .thoughts, .chips { grid-template-columns: 1fr; }
  .duel { grid-template-columns: 1fr; }
  .vs { margin: 0 auto; width: 76px; height: 76px; font-size: 34px; }
  .hero-content { padding: 90px 16px 210px; }
  .hero .host { bottom: 22px; }
  .hero .host .bubble { margin-bottom: 70px; font-size: 13px; max-width: 190px; padding: 10px 12px; }
  .btn { font-size: 18px; padding: 12px 22px 14px; }
  .ride { width: 128px; height: 128px; border-radius: 26px; }
  .ride img { width: 104px; height: 104px; }
  .plate { min-width: 150px; font-size: 17px; padding: 8px 18px 10px; }
  .landing .top nav a { margin-left: 10px; font-size: 15px; }
  .landing .top .brand { display: none; }
  .hero-content .soon { font-size: 13px; padding: 7px 14px; }
  .thought img { width: 84px; height: 84px; }
}

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