:root {
  --art-ink: #443a36;
  --art-line: #ff86ad;
  --art-lime: linear-gradient(120deg, #f2f8b5, #c7ec97);
}

.hero { background: #baf1f8; }
.hero-parallax {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-parallax img {
  position: absolute;
  height: auto;
  translate: 0 var(--parallax-y, 0px);
}
.hero-cloud-large { top: -10.5%; right: -19%; width: 83%; }
.hero-cloud-small { top: 65%; left: -18%; width: 65%; }
.hero-star-1 { top: .6%; left: .5%; width: 13.2%; }
.hero-star-2 { top: 15.25%; left: .8%; width: 17%; }
.hero-star-3 { top: 54%; right: 6%; width: 9.5%; }
.hero-sea { bottom: -46px; left: -7%; width: min(86%, 520px); }

.brand-ribbon { width: 90%; max-width: 390px; margin: 9px auto 0; }
.brand-ribbon img { display: block; width: 100%; height: auto; }
.hero-portrait { position: relative; isolation: isolate; aspect-ratio: 739 / 622; }
.portrait-effects, .portrait-profile, .portrait-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portrait-effects img:not(.portrait-frame) { position: absolute; height: auto; }
.portrait-phone { width: 29%; left: 1%; top: 21%; }
.portrait-thunder { width: 23%; top: 6%; left: 10%; }
.heart-first { width: 8.5%; left: 73%; top: 10%; }
.heart-second { width: 10%; left: 82%; top: 20%; }
.heart-third { width: 16%; left: 77%; top: 33%; }
.heart-fourth { width: 10%; left: 82%; top: 55%; }

.stat {
  grid-template-columns: minmax(0, 1fr) minmax(68px, 27%);
  gap: 0;
  padding: 0;
  border: 1px solid var(--art-line);
  background: var(--art-lime);
}
.stat-identity {
  display: grid;
  grid-template-columns: 29% minmax(0, 1fr);
  align-items: center;
  column-gap: 2.8%;
}
.stat-identity img {
  display: block;
  justify-self: center;
  width: clamp(30px, 9.7vw, 44px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.stat .handle { color: #265e48; font-weight: 400; line-height: 1; }
.count { border-color: var(--art-line); color: #265d45; }

.collaboration {
  padding: 31px 16px 40px;
  text-align: center;
  color: #fff;
  background: var(--art-ink) url('assets/mobile/collaboration-bg.webp') center / cover no-repeat;
}
.collaboration h2 { font: 600 clamp(21px, 6.3vw, 34px)/1.12 var(--title); }
.collaboration p {
  margin: 18px auto 24px;
  font: 400 clamp(13px, 3.7vw, 16px)/1.3 var(--body);
}
.collaboration button, .footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #161510;
  border: 1px solid var(--art-line);
  background: var(--art-lime);
  box-shadow: 1px 2px 2px #0003;
  font: 400 clamp(12px, 3.6vw, 16px)/1.2 var(--body);
}
.collaboration button { width: min(70%, 285px); min-height: 42px; padding: 6px; }
.ui-icon { width: 30px; height: 30px; flex: none; }

.tile-short .thumb {
  flex: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-bottom: 0;
}
button.tile-short .thumb::after {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #fff8e2;
  border-radius: 50%;
  background: #423936d9;
  color: #fffaf0;
  clip-path: none;
}
#player:is([data-platform="tiktok"], [data-platform="instagram"]) {
  width: min(calc(100% - 24px), 420px);
}
#player:is([data-platform="tiktok"], [data-platform="instagram"]) .video-frame {
  height: min(620px, calc(100dvh - 140px));
  aspect-ratio: auto;
}
#player[data-platform="instagram"] .video-frame { background: #fff; }

.community-art {
  position: relative;
  aspect-ratio: 437 / 203;
  overflow: hidden;
  border-top: 2px solid var(--art-ink);
  background: #baf1f8 url('assets/mobile/community-bg.webp') center / cover no-repeat;
}
.community-characters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.community-characters img, .community-hello { position: absolute; }
.community-frog { width: 37%; left: -15%; bottom: -15%; rotate: -9deg; }
.community-grok { width: 23%; top: 4%; left: 9%; }
.community-mascot { width: 47%; right: -14%; bottom: -8%; }
.community-hello {
  right: 29%;
  bottom: 6%;
  color: #067f95;
  font: 700 clamp(10px, 3.5vw, 17px)/1.1 var(--body);
  rotate: -5deg;
}
.footer-link {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  width: 64.6%;
  height: 25.8%;
  margin-inline: auto;
  text-decoration: none;
}
.footer-support { top: 21.35%; background: #fff; color: #0788c2; border-color: #158fba; font-weight: 570; }
.footer-support img { width: clamp(23px, 8vw, 33px); height: auto; }
.footer-community { top: 51.4%; font-weight: 600; }
.credit-strip { padding: 22px 8px; text-align: center; background: var(--art-ink); color: #fff; font-size: .86rem; font-weight: 550; }
.credit-strip span { color: #fb739a; }

@media (min-width: 760px) {
  .brand { container-type: inline-size; }
  .brand h1 { font-size: clamp(1.65rem, 14.15cqw, 3rem); }
  .hero-cloud-large { top: -40%; right: -12%; width: 55%; }
  .hero-cloud-small { top: 50%; left: 64%; width: 48%; }
  .hero-star-1 { width: 7%; }
  .hero-star-2 { width: 9%; top: 65%; }
  .hero-star-3 { width: 6%; top: 18%; right: 2%; }
  .hero-sea { left: -4%; }
  .handle { font-size: 1.16rem; }
  .collaboration {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    padding: clamp(35px, 6vw, 66px) clamp(32px, 7vw, 78px);
    text-align: left;
  }
  .collaboration h2 { font-size: clamp(2.1rem, 5vw, 3.65rem); text-wrap: balance; }
  .collaboration br { display: none; }
  .collaboration p { max-width: 32ch; margin: 0 0 18px; }
  .collaboration button { width: min(100%, 265px); }
  .community-art { aspect-ratio: auto; height: clamp(240px, 33vw, 322px); }
  .community-frog { width: 27%; left: -6%; }
  .community-grok { width: 15%; left: 12%; }
  .community-mascot { width: 30%; right: -5%; }
  .community-hello { right: 24%; }
  .footer-link { width: min(42%, 365px); height: 21%; }
  .footer-support { top: 24%; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-parallax.is-in-view .hero-cloud {
    animation: cloud-drift 7s ease-in-out infinite alternate;
  }
  .motion-ready .hero-parallax.is-in-view .hero-cloud-small {
    animation-duration: 9s;
    animation-direction: alternate-reverse;
  }
  .motion-ready .hero-portrait.is-in-view .portrait-thunder {
    animation: phone-flash 4.4s ease-in-out infinite both;
  }
  .motion-ready .hero-portrait.is-in-view .portrait-heart {
    animation: heart-sequence 6.8s ease-in-out var(--heart-delay, 0s) infinite both;
  }
  .heart-second { --heart-delay: .42s; }
  .heart-third { --heart-delay: .84s; }
  .heart-fourth { --heart-delay: 1.26s; }

  .motion-ready .community-art:not(.is-in-view) :is(.community-grok, .community-mascot, .community-hello) { opacity: 0; }
  .motion-ready .community-art.is-in-view .community-grok {
    animation: grok-pop .48s cubic-bezier(.2,.85,.3,1.2) .12s both;
  }
  .motion-ready .community-art.is-in-view .community-mascot {
    animation: mascot-enter .7s cubic-bezier(.2,.75,.3,1) .36s both;
  }
  .motion-ready .community-art.is-in-view .community-hello {
    animation: mascot-line .35s ease-out 1.06s both;
  }

  @keyframes cloud-drift { from { transform: translateX(-5px); } to { transform: translateX(7px); } }
  @keyframes phone-flash {
    0%, 12%, 50%, 100% { opacity: 0; }
    24%, 36% { opacity: 1; }
  }
  @keyframes heart-sequence {
    0%, 58%, 100% { opacity: 0; scale: .7; }
    8%, 47% { opacity: 1; scale: 1; }
  }
  @keyframes grok-pop {
    from { opacity: 0; scale: .3; rotate: -9deg; }
    to { opacity: 1; scale: 1; rotate: 0deg; }
  }
  @keyframes mascot-enter {
    from { opacity: 0; translate: 80% 0; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes mascot-line {
    from { opacity: 0; translate: 4px 3px; }
    to { opacity: 1; translate: 0 0; }
  }
}
