/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Press+Start+2P&family=Roboto:wght@400;500&display=swap');

:root {
  --bg: #0063d6;
  --blue: #0063d6;
  --white: #ffffff;
  --ink: #0a1130;
  --ink-2: #001827;
  --gray: #4d4f7e;
  --navy: #081d3e;
  --yellow: #ffd200;
  --orange: #ffa100;
  --orange-hover: #eb9400;
  --red: #d91310;
  --gold: #eecc05;
  --nav-hover: #efb102;
  --title-shadow: #0b141a;
  --fs-14: clamp(14px, 1.4rem, 1.4rem);
  --fs-16: clamp(14px, 1.6rem, 1.6rem);
  --fs-18: clamp(14px, 1.8rem, 1.8rem);
  --ff: 'Poppins', sans-serif;
  --ff-pixel: 'Press Start 2P', monospace;
  --ff-btn: 'Roboto', sans-serif;
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1024 * 10); } }
@media (max-width: 640px) { html { font-size: calc(100vw / 375 * 10); } }

html.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; padding: 0; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--blue);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.25); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding-top: 5.2rem;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 5rem;
  font-weight: 500;
  font-size: var(--fs-14);
  line-height: 1.5rem;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.3s, box-shadow 0.3s;
}
.nav-link:hover { color: var(--nav-hover); box-shadow: inset 0 0 0 1px var(--yellow); }

.burger-btn {
  display: none;
  position: relative;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0;
  z-index: 101;
}
.burger-btn span {
  position: absolute;
  left: 0.5rem;
  width: 3rem;
  height: 0.33rem;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn span:nth-child(1) { top: 1rem; }
.burger-btn span:nth-child(2) { top: 1.83rem; }
.burger-btn span:nth-child(3) { top: 2.67rem; }
.burger-btn.act span:nth-child(1) { top: 1.83rem; transform: rotate(45deg) scaleX(1.08); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 1.83rem; transform: rotate(-45deg) scaleX(1.08); }

.store-btn { transition: background-color 0.3s, opacity 0.3s, box-shadow 0.3s; }
.store-btn:hover { background: var(--orange-hover); }

.section-title {
  font-weight: 600;
  font-size: 5.2rem;
  line-height: 7.1rem;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0.4rem 0.4rem 0 var(--title-shadow);
}

.stripes::before,
.stripes::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3rem;
  background: url('../img/stripes.svg') left top / auto 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
.stripes::before { top: 0; }
.stripes::after { bottom: 0; }

/* Swiper core (the rest of swiper-bundle.min.css is not used) */
.swiper { position: relative; z-index: 1; display: block; margin-left: auto; margin-right: auto; padding: 0; overflow: hidden; list-style: none; user-select: none; -webkit-user-select: none; }
.swiper-horizontal { touch-action: pan-y; }
.swiper-wrapper { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; box-sizing: content-box; transition-property: transform; transform: translate3d(0, 0, 0); }
.swiper-slide { position: relative; display: block; flex-shrink: 0; width: 100%; height: 100%; transition-property: transform; }
.swiper-backface-hidden .swiper-slide { transform: translateZ(0); backface-visibility: hidden; }
.swiper img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

@keyframes store-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
}

@media (max-width: 640px) {
  .section-title { font-size: 3.2rem; line-height: 4.4rem; }
  .stripes::before, .stripes::after { height: 3rem; }
}
/* /stp:base */
/* stp:header */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.2rem;
  padding: 0 8rem;
  backdrop-filter: blur(0.6rem);
}
.logo { display: block; width: 4rem; height: 4rem; border-radius: 0.4rem; overflow: hidden; transition: opacity 0.3s; }
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 2.4rem; }

@media (max-width: 1024px) {
  .header__inner { padding: 0 3.2rem; }
  .nav { gap: 0.4rem; }
  .nav-link { padding: 0.8rem 0.8rem; }
}

@media (max-width: 640px) {
  .header__inner { height: 5.2rem; padding: 0 1.6rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:header */
/* stp:menu */
@media (min-width: 641px) {
  #mobile-menu { display: none; }
}
/* /stp:menu */
/* stp:hero */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 81.2rem;
  padding: 6.2rem 17.6rem 0;
  background: url('../img/hero.webp') center / cover no-repeat;
}
.hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  width: 59.6rem;
  padding: 4.8rem 3.2rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 3.2rem;
  box-shadow: inset 0 0 0 2px var(--blue);
  -webkit-backdrop-filter: blur(0.6rem);
  backdrop-filter: blur(0.6rem);
}
.hero__info { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; width: 100%; }
.hero__logo img { width: 43rem; height: 30rem; object-fit: cover; }
.hero__headline {
  width: 100%;
  margin: 0;
  font-family: var(--ff-pixel);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 3.2rem;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--yellow);
  text-shadow:
    0.2rem 0 0 var(--navy), -0.2rem 0 0 var(--navy), 0 0.2rem 0 var(--navy), 0 -0.2rem 0 var(--navy),
    0.2rem 0.2rem 0 var(--navy), -0.2rem -0.2rem 0 var(--navy), 0.2rem -0.2rem 0 var(--navy), -0.2rem 0.2rem 0 var(--navy),
    0.5rem 0.5rem 0 var(--red);
}
.hero__text {
  width: 100%;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 3.7rem;
  text-align: center;
  color: var(--ink);
}
.hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 24rem;
  padding: 1.2rem 2rem;
  background: var(--orange);
  border-radius: 1.2rem;
  box-shadow: 0.8rem 0.8rem 1.2rem rgba(109, 92, 92, 0.12);
  color: var(--ink);
}
.hero__btn.store-btn { animation: store-float 3s ease-in-out infinite; }
.hero__btn.store-btn:hover { animation-play-state: paused; }
.hero__btn-icon { flex: 0 0 auto; width: 3rem; height: 3.4rem; }
.hero__btn-text { display: flex; flex-direction: column; gap: 0.4rem; width: 11.8rem; font-family: var(--ff-btn); line-height: normal; }
.hero__btn-small { font-weight: 400; font-size: var(--fs-14); }
.hero__btn-big { font-weight: 500; font-size: var(--fs-18); white-space: nowrap; }

@media (max-width: 1024px) {
  #hero { padding-left: 3.2rem; padding-right: 3.2rem; }
}

@media (max-width: 640px) {
  #hero { min-height: 81.2rem; padding: 5.2rem 1.6rem 0; background-image: url('../img/hero-m.webp'); }
  .hero__card { width: 100%; padding: 4.8rem 2.4rem; }
  .hero__logo img { width: 29.5rem; height: 20.5rem; }
  .hero__headline { font-size: 1.6rem; line-height: 2.4rem; }
  .hero__text { font-size: 2rem; line-height: 2.9rem; }
  .hero__btn { width: 100%; }
}
/* /stp:hero */
/* stp:about */
#about {
  position: relative;
  overflow: hidden;
  background: url('../img/bg-1.webp') center / 100% 100% no-repeat;
}
.framed { position: relative; box-shadow: 0.6rem 0.6rem 0 #000; }
.framed::after { content: ''; position: absolute; inset: 0; border: 0.4rem solid var(--navy); pointer-events: none; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.about { padding: 12rem 17.6rem 7.2rem; }
.about__row { display: flex; align-items: center; gap: 4.8rem; width: 100%; max-width: 108.8rem; }
.about__img { order: -1; flex: 0 0 41.6rem; width: 41.6rem; height: 45.4rem; }
.about__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2.4rem; }
.about__desc { display: flex; flex-direction: column; gap: 0.8rem; }
.about__lead { font-weight: 500; font-size: 2rem; line-height: 1.4; color: var(--ink); }
.about__body { font-size: var(--fs-16); line-height: 1.5; color: var(--gray); }

.how { display: flex; flex-direction: column; gap: 4.8rem; padding: 7.2rem 6.4rem; }
.how .section-title { text-align: center; }
.how__list { display: flex; justify-content: center; align-items: stretch; gap: 3.2rem; }
.play-card { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; flex: 0 0 auto; width: 23.6rem; padding: 1.6rem 0.8rem; }
.play-card__num {
  font-family: var(--ff-pixel);
  font-size: 6.2rem;
  line-height: 8.4rem;
  text-transform: uppercase;
  color: var(--yellow);
  -webkit-text-stroke: 0.4rem var(--navy);
  paint-order: stroke fill;
}
.play-card__text { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; text-align: center; }
.play-card__title { font-weight: 600; font-size: var(--fs-18); line-height: 2.4rem; text-transform: uppercase; color: var(--ink); }
.play-card__desc { font-size: var(--fs-16); line-height: 1.5; color: var(--gray); }

@media (max-width: 1024px) {
  .about { padding: 12rem 6.4rem 7.2rem; }
  .about__img { flex-basis: 36rem; width: 36rem; height: 39.3rem; }
  .how__list { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  #about { background-image: url('../img/bg-1-m.webp'); }
  .about { padding: 5.6rem 1.6rem 4rem; }
  .about__row { flex-direction: column; align-items: stretch; gap: 2.4rem; max-width: none; }
  .about__img { order: 0; flex: 0 0 auto; width: 100%; height: 37.4rem; }
  .about__text { gap: 1.6rem; }
  .about__lead { font-size: var(--fs-18); line-height: 2.5rem; }
  .how { gap: 2.4rem; padding: 4rem 1.6rem; }
  .how__list { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 1.6rem; }
  .play-card { padding: 0.8rem 0; }
  .play-card__num { font-size: 4.2rem; line-height: 5.7rem; }
  .play-card__title { font-size: var(--fs-16); line-height: 2.2rem; }
  .play-card__desc { font-size: var(--fs-14); }
  .about__body { font-size: var(--fs-14); }
}
/* /stp:about */
/* stp:features */
#features { position: relative; overflow: hidden; background: var(--red); color: var(--white); }
.features__row { display: flex; align-items: center; justify-content: flex-end; gap: 4.8rem; padding: 7.2rem 17.6rem; }
.features__content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3.2rem; }
.features__head { display: flex; flex-direction: column; gap: 0.8rem; }
.features__lead { width: 38.5rem; max-width: 100%; font-weight: 500; font-size: 2rem; line-height: 1.4; color: var(--white); }
.features__list { display: flex; flex-direction: column; gap: 1.6rem; }
.feature { display: flex; align-items: flex-start; gap: 0.8rem; }
.feature__icon { flex: 0 0 auto; width: 3rem; height: 3rem; }
.feature__text { flex: 1 1 0; min-width: 0; font-size: var(--fs-16); line-height: 1.5; color: var(--white); }
.feature__text strong { font-weight: 600; }
.feature__text span { color: rgba(255, 255, 255, 0.85); }
.features__img { position: relative; flex: 0 0 auto; width: 52.8rem; height: 49.7rem; }
.features__obj { position: absolute; max-width: none; }
.features__obj--1 { left: 7.8rem; top: 7.2rem; width: 35.6rem; height: 42.5rem; }
.features__obj--2 { left: 14.535rem; top: 1.455rem; width: 35.4rem; height: 13.4rem; transform: rotate(15deg); }

@media (max-width: 1024px) {
  .features__row { flex-direction: column; align-items: stretch; padding: 7.2rem 6.4rem; }
  .features__img { align-self: center; }
}

@media (max-width: 640px) {
  .features__row { gap: 2.4rem; padding: 4rem 1.6rem; }
  .features__content { gap: 2.4rem; }
  .features__list { gap: 0.8rem; }
  .features__lead { width: 100%; font-size: var(--fs-18); line-height: 2.5rem; }
  .feature__gap { font-size: var(--fs-16); }
  .feature__text { font-size: var(--fs-14); }
  .features__img { align-self: stretch; width: 100%; height: 32.2rem; }
  .features__obj--1 { left: 5.1rem; top: 4.7rem; width: 23.1rem; height: 27.6rem; }
  .features__obj--2 { left: 9.44rem; top: 0.92rem; width: 23rem; height: 8.7rem; }
}
/* /stp:features */
/* stp:gallery */
#gallery { position: relative; overflow: hidden; background: var(--gold); }
.gallery { display: flex; flex-direction: column; gap: 4.8rem; padding: 7.2rem 6.4rem; }
.gallery .section-title { text-align: center; }
.gallery__slider { width: 100%; max-width: 131.2rem; margin: 0 auto; }
.gallery__slide { width: 41.6rem; height: 55.5rem; }

@media (max-width: 640px) {
  .gallery { gap: 2.4rem; padding: 4rem 1.6rem; }
  .gallery__slide { width: 28.2rem; height: 37.6rem; }
}
/* /stp:gallery */
/* stp:reviews */
#reviews { position: relative; overflow: hidden; background: url('../img/bg-4.webp') center / 100% 100% no-repeat; }

.reviews { display: flex; align-items: center; justify-content: space-between; padding: 7.2rem 0 7.2rem 17.6rem; }
.reviews__main { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 2.4rem; width: 64.6rem; }
.reviews__slider { width: 100%; padding-bottom: 0.6rem; margin-bottom: -0.6rem; }
.review {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  flex: 0 0 30.4rem;
  width: 30.4rem;
  padding: 4.8rem 3.2rem;
  background: var(--white);
  box-shadow: inset 0 0 0 0.3rem var(--navy), 0.6rem 0.6rem 0 #000;
  color: var(--ink-2);
}
.review__text { margin: 0; min-height: 7.2rem; font-size: var(--fs-16); line-height: 1.5; }
.review__author { font-weight: 500; font-size: 2rem; line-height: 1.4; text-align: right; }

.reviews__dots { display: flex; align-items: center; gap: 0.6rem; height: 1rem; }
.dot {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: 0;
  transition: width 0.3s, background-color 0.3s;
}
.dot:hover { background: rgba(8, 29, 62, 0.35); }
.dot.is-active { width: 5rem; background: var(--navy); }

.reviews__img { position: relative; flex: 0 0 auto; width: 58.7rem; height: 45.4rem; overflow: hidden; }
.reviews__obj { position: absolute; max-width: none; }
.reviews__obj--1 { left: 28.3rem; top: 0; width: 9.3rem; height: 10.8rem; }
.reviews__obj--2 { left: 48.4rem; top: 13.5rem; width: 15rem; height: 17.4rem; filter: blur(0.4rem); }
.reviews__obj--3 { left: 30.3rem; top: 35.2rem; width: 9.4rem; height: 10.2rem; }
.reviews__mascot { position: absolute; left: 0; top: 0; width: 46.6rem; height: 46.6rem; max-width: none; }

.contact { padding: 7.2rem 17.6rem 12rem; }
.contact__row { display: flex; align-items: center; gap: 6.4rem; }
.contact__logo { flex: 0 0 auto; width: 33.6rem; height: 33.6rem; border-radius: 5rem; object-fit: cover; }
.contact__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; }
.contact__body { display: flex; flex-direction: column; gap: 3.2rem; }
.contact__lead { font-weight: 500; font-size: 2rem; line-height: 1.4; color: var(--ink); }
.contact__mail { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.8rem 0.8rem 2.4rem; background: var(--white); }
.contact__addr { font-weight: 500; font-size: 2rem; line-height: 1.4; color: #404040; overflow-wrap: anywhere; }
.contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14rem;
  padding: 1rem;
  background: var(--orange);
  box-shadow: 0.8rem 0.8rem 1.6rem rgba(91, 91, 91, 0.12);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.4;
  color: #404040;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.contact__btn:hover { background: var(--orange-hover); }

@media (max-width: 1024px) {
  .reviews { flex-direction: column; gap: 4.8rem; padding: 7.2rem 6.4rem; }
  .reviews__main { max-width: 100%; }
  .contact { padding: 7.2rem 6.4rem 12rem; }
  .contact__row { gap: 4.8rem; }
  .contact__logo { width: 26rem; height: 26rem; }
}

@media (max-width: 640px) {
  .reviews { align-items: flex-start; gap: 4.8rem; padding: 4rem 0 4rem 1.6rem; }
  .reviews__main { width: 100%; max-width: none; }
  .reviews__slider { padding-bottom: 0; margin-bottom: 0; }
  .review { flex-basis: 30.4rem; height: 18.4rem; justify-content: space-between; padding: 3.2rem 2.4rem; }
  .review__text { min-height: 0; font-size: var(--fs-14); }
  .review__author { font-size: var(--fs-18); line-height: 2.5rem; }
  .reviews__img { width: 35.9rem; }
  .contact { padding: 4rem 1.6rem 5.6rem; }
  .contact__row { flex-direction: column; align-items: stretch; gap: 2.4rem; }
  .contact__logo { order: 2; align-self: center; width: 11.1rem; height: 11.1rem; border-radius: 2.4rem; }
  .contact__body { gap: 1.6rem; }
  .contact__lead { font-size: var(--fs-18); line-height: 2.5rem; }
  .contact__mail { padding: 0.8rem 1.6rem; }
  .contact__addr { font-size: var(--fs-18); line-height: 2.5rem; }
  .contact__btn { width: 10.8rem; font-size: var(--fs-18); line-height: 2.5rem; }
  #reviews { background-image: url('../img/bg-4-m.webp'); }
  #reviews::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3rem;
    background: url('../img/stripes.svg') left top / auto 100% no-repeat;
    pointer-events: none;
  }
}
/* /stp:reviews */
/* stp:footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  padding: 6rem 0;
  background: var(--blue);
  color: var(--white);
}
.footer__links { display: flex; align-items: center; justify-content: center; gap: 6rem; width: 100%; padding: 0 8.8rem; }
.footer__links a { font-weight: 500; font-size: 2rem; line-height: 1.4; text-align: center; white-space: nowrap; transition: color 0.3s; }
.footer__links a:hover, .footer a:hover { color: var(--yellow); }
.footer__rights { width: 100%; font-size: var(--fs-16); line-height: 1.5; text-align: center; }

@media (max-width: 640px) {
  .footer { gap: 2.4rem; padding: 6rem 1.6rem; }
  .footer__links { flex-direction: column; justify-content: center; gap: 0.8rem; padding: 0; }
  .footer__links a { font-weight: 600; font-size: var(--fs-14); line-height: 1.5; }
  .footer__rights { font-size: var(--fs-14); }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6.2rem; background: var(--white); }
.legal-page { padding: 8rem 21.2rem; background: var(--white); color: var(--ink); }
.legal-content { max-width: 101.6rem; }
.legal-content h1 { margin-bottom: 4rem; font-weight: 600; font-size: 5.2rem; line-height: 7.1rem; text-transform: uppercase; color: var(--ink); }
.legal-content h2 { margin-top: 2.4rem; font-weight: 500; font-size: 2rem; line-height: 1.4; color: var(--ink); }
.legal-content h3, .legal-content h4, .legal-content h5 { margin-top: 1.6rem; font-weight: 600; font-size: var(--fs-16); line-height: 1.5; color: var(--ink); }
.legal-content p, .legal-content li { font-size: var(--fs-16); line-height: 1.5; color: var(--ink); }
.legal-content h2 + p, .legal-content h3 + p, .legal-content h4 + p, .legal-content h5 + p { margin-top: 1.6rem; }
.legal-content p + p, .legal-content p + ul, .legal-content p + ol, .legal-content ul + p, .legal-content ol + p { margin-top: 0.8rem; }
.legal-content h1 + p { margin-top: 0; }
.legal-content h1 + p + p { margin-top: 1.6rem; }
.legal-content ul, .legal-content ol { padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-top: 0.8rem; }
.legal-content li:first-child { margin-top: 0; }
.legal-content strong, .legal-content b { font-weight: 600; }
.legal-content a { color: var(--blue); text-decoration: underline; transition: color 0.3s; }
.legal-content a:hover { color: var(--orange-hover); }

@media (max-width: 1024px) {
  .legal-page { padding: 8rem 6.4rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 5.2rem; }
  .legal-page { padding: 6rem 1.6rem; }
  .legal-content h1 { font-size: 3.2rem; line-height: 4.4rem; }
  .legal-content h2 { font-size: var(--fs-18); line-height: 2.5rem; }
  .legal-content h3, .legal-content h4, .legal-content h5, .legal-content p, .legal-content li { font-size: var(--fs-14); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__logo img { opacity: 0; transform-origin: 50% 100%; }
.anim-on .hero__logo.is-in { transform-origin: 50% 100%; animation: ta-jelly 4.6s ease-in-out 2.4s infinite; }
.anim-on .hero__logo.is-in img {
  animation:
    ta-build 0.6s steps(6, end) both,
    ta-land 1s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.ta-w { display: inline-block; white-space: nowrap; }
.ta-ch { display: inline-block; }
.anim-on .section-title .ta-ch { opacity: 0; transform: translateY(-2rem); }
.anim-on .section-title.is-in .ta-ch {
  animation:
    ta-drop 0.5s steps(4, end) calc(var(--i) * 0.04s) both,
    ta-flash 0.8s ease-out calc(var(--i) * 0.04s + 0.35s) both;
}

@keyframes ta-build {
  0% { opacity: 0; clip-path: inset(100% 0 0 0); }
  15% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes ta-land {
  0% { transform: translateY(-5rem) scale(0.9); }
  50% { transform: translateY(0) scale(1.08, 0.9); }
  68% { transform: translateY(-0.8rem) scale(0.96, 1.05); }
  84% { transform: translateY(0) scale(1.02, 0.98); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes ta-jelly {
  0%, 84%, 100% { transform: scale(1); }
  88% { transform: scale(1.05, 0.95); }
  92% { transform: scale(0.97, 1.03); }
  96% { transform: scale(1.01, 0.99); }
}
@keyframes ta-drop {
  0% { opacity: 0; transform: translateY(-2rem); }
  70% { opacity: 1; transform: translateY(0.3rem); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes ta-flash {
  0% { color: var(--yellow); }
  100% { color: var(--white); }
}
@keyframes ta-drop-m {
  0% { opacity: 0; transform: translateY(-1.2rem); }
  70% { opacity: 1; transform: translateY(0.2rem); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes ta-land-m {
  0% { transform: translateY(-3rem) scale(0.92); }
  50% { transform: translateY(0) scale(1.06, 0.92); }
  68% { transform: translateY(-0.5rem) scale(0.97, 1.04); }
  84% { transform: translateY(0) scale(1.01, 0.99); }
  100% { transform: translateY(0) scale(1); }
}

/* hero headline: 8-bit pop-in per letter, then an arcade colour wave */
.anim-on .hero__headline .ta-ch { opacity: 0; }
.anim-on .hero__headline.is-in .ta-ch {
  animation:
    ta-hl-pop 0.45s steps(4, end) calc(var(--i) * 0.05s) both,
    ta-hl-wave 5.2s linear calc(var(--i) * 0.07s + 2.8s) infinite;
}
@keyframes ta-hl-pop {
  0% { opacity: 0; transform: translateY(1.4rem) scale(1.7); }
  60% { opacity: 1; transform: translateY(-0.3rem) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ta-hl-wave {
  0%, 9%, 100% { color: var(--yellow); }
  4% { color: var(--white); }
}

@media (max-width: 640px) {
  .anim-on .hero__logo.is-in img {
    animation:
      ta-build 0.5s steps(5, end) both,
      ta-land-m 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }
  .anim-on .section-title .ta-ch { transform: translateY(-1.2rem); }
  .anim-on .section-title.is-in .ta-ch {
    animation:
      ta-drop-m 0.4s steps(3, end) calc(var(--i) * 0.03s) both,
      ta-flash 0.6s ease-out calc(var(--i) * 0.03s + 0.3s) both;
  }
}
@media (max-width: 640px) {
  .anim-on .hero__headline.is-in .ta-ch {
    animation:
      ta-hl-pop 0.4s steps(3, end) calc(var(--i) * 0.04s) both,
      ta-hl-wave 5.2s linear calc(var(--i) * 0.07s + 2.4s) infinite;
  }
}
/* /stp:title-anim */
