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

:root {
  --bg: #ffffff;
  --white: #ffffff;
  --blue: #5676ef;
  --gray: #3a4252;
  --black: #262626;
  --l-blue: #c9d3f8;
  --l-blue-30: rgba(201, 211, 248, 0.3);
  --red: #ca4955;
  --pink: #ffe5e9;
  --purple: #3e237e;
  --yellow: #faeb1d;
  --green-from: #96e103;
  --green-to: #4d8f02;
  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-btn: 'Roboto', sans-serif;
  --shadow-img: 0.8rem 0.8rem 1.6rem rgba(102, 93, 93, 0.1);
}

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;
  background: var(--bg);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, background-color 0.3s, transform 0.3s, box-shadow 0.3s, filter 0.3s; }
button { font-family: inherit; cursor: pointer; }
main { display: block; }
section { margin: 0; }

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

.title {
  font-family: var(--font-head);
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue);
  text-align: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  font-weight: 500;
  line-height: 1.44;
  letter-spacing: -0.03rem;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-link:hover { color: var(--yellow); }

.burger-btn {
  display: none;
  position: relative;
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 4rem;
  height: 4rem;
  padding: 0;
  background: transparent;
  border: 0;
  transition: opacity 0.3s;
}
.burger-btn:hover { opacity: 0.8; }
.burger-btn span {
  display: block;
  width: 3rem;
  height: 0.3rem;
  background: var(--white);
  border-radius: 0.2rem;
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.act span:nth-child(1) { transform: translateY(0.95rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.95rem) rotate(-45deg); }

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

.store-btn {
  transition: filter 0.3s, box-shadow 0.3s, transform 0.3s;
}
.store-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0.4rem 1.6rem rgba(77, 143, 2, 0.45);
}

@keyframes store-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
}
@media (max-width: 640px) { .burger-btn { display: flex; } }
@media (max-width: 640px) {
  #mobile-menu .nav-link { padding: 0.8rem 0; }
  .title { font-size: 3.2rem; }
}
/* /stp:base */
/* stp:header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--red);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.15); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.2rem;
  padding: 0 8rem;
}
.logo { display: block; width: 4rem; height: 4rem; border-radius: 0.4rem; overflow: hidden; }
.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 2rem; }
  .nav { gap: 1.6rem; }
}

@media (max-width: 640px) {
  .header__inner { height: 5.2rem; padding: 0 1.6rem; }
  .nav { display: none; }
}
/* /stp:header */
/* stp:hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 81.2rem;
  padding: 6.2rem 8.4rem 0;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; display: block; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  width: 51.6rem;
  padding: 2.8rem;
  background: var(--l-blue);
  border: 1.2rem solid var(--purple);
  border-radius: 2.4rem;
}
.hero__logo { width: 24rem; height: 21.3rem; object-fit: contain; }
.hero__info { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; width: 100%; text-align: center; }
.hero__title { width: 35rem; max-width: 100%; color: var(--blue); font-size: 2.8rem; font-weight: 700; line-height: 1.4; }
.hero__text { color: var(--gray); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }
.hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 24rem;
  padding: 1.2rem 2rem;
  background: linear-gradient(180deg, var(--green-from) 0%, var(--green-to) 100%);
  border-radius: 1.2rem;
  color: var(--black);
  font-family: var(--font-btn);
}
.hero .store-btn { animation: store-float 3s ease-in-out infinite; }
.hero .store-btn:hover { animation-play-state: paused; }
.hero__btn-icon { flex: none; width: 3rem; height: 3.4rem; }
.hero__btn-text { display: flex; flex-direction: column; gap: 0.4rem; width: 11.8rem; line-height: normal; }
.hero__btn-small { font-size: clamp(14px, 1.4rem, 1.4rem); font-weight: 400; }
.hero__btn-big { font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 500; }

@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    justify-content: center;
    padding: 5.2rem 1.6rem 2.4rem;
  }
  .hero__card { width: 100%; padding: 2rem 1.2rem; }
  .hero__logo { width: 14.3rem; height: 12.7rem; }
  .hero__title { width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); }
  .hero__btn { width: 100%; }
}
/* /stp:hero */
/* stp:about */
.about { padding: 8rem 8.4rem 6.4rem; }
.about__box { max-width: 127.2rem; margin: 0 auto; }
.about__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  padding: 6.4rem 5.6rem;
  background: var(--l-blue-30);
}
.about__text {
  width: 100%;
  max-width: 84rem;
  color: var(--gray);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.about__text strong { color: var(--red); font-weight: 700; }
.about__wave { display: block; width: 100%; height: 4.6rem; }

@media (max-width: 640px) {
  .about { padding: 4.8rem 1.6rem 3.2rem; }
  .about__content { align-items: stretch; padding: 4rem 1.6rem; }
  .about__content .title { text-align: left; }
  .about__text { max-width: none; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; text-align: left; }
  .about__wave { height: 3.8rem; }
}
/* /stp:about */
/* stp:how-to-play */
.how { padding: 6.4rem 8.4rem; }
.how__inner { display: flex; align-items: center; gap: 4.8rem; max-width: 127.2rem; margin: 0 auto; }
.how__img { flex: none; width: 73.2rem; height: auto; aspect-ratio: 732 / 431; object-fit: cover; border-radius: 1.6rem; }
.how__content { flex: 1; display: flex; flex-direction: column; gap: 3.2rem; min-width: 0; }
.how__content .title { text-align: left; }
.how__list { display: flex; flex-direction: column; gap: 2.4rem; }
.how__step { display: flex; align-items: center; gap: 1.6rem; }
.how__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--l-blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
}
.how__text { color: var(--gray); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }
.how__text strong { color: var(--blue); font-weight: 600; }

@media (max-width: 1024px) {
  .how__inner { flex-direction: column; }
  .how__img { width: 100%; max-width: 73.2rem; }
  .how__content { width: 100%; max-width: 49.2rem; flex: none; }
}

@media (max-width: 640px) {
  .how { padding: 3.2rem 1.6rem; }
  .how__inner { align-items: stretch; gap: 2.4rem; }
  .how__img { order: 2; max-width: none; aspect-ratio: 343 / 202; }
  .how__content { max-width: none; gap: 2.4rem; }
  .how__content .title { text-align: center; }
  .how__list { gap: 1.6rem; }
}
/* /stp:how-to-play */
/* stp:features */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
  padding: 6.4rem 8.4rem;
  overflow: hidden;
}
.features .title { width: 100%; }
.features__row {
  display: flex; gap: 2.4rem; width: calc(100% + 16.8rem); margin: 0 -8.4rem;
  padding: 0.8rem 8.4rem 2.4rem;
  overflow-x: auto; cursor: grab;
  scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.features__card {
  flex: none;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  width: 30rem;
  padding: 1.6rem 1.6rem 5.6rem;
  background: var(--red);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-img);
  color: var(--white);
}
.features__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28.1rem;
  background: var(--pink);
  border-radius: 0.4rem;
}
.features__img img { user-select: none; -webkit-user-drag: none; width: 21rem; height: 21.2rem; object-fit: contain; }
.features__body { display: flex; flex-direction: column; gap: 0.8rem; padding: 0 1.6rem; }
.features__name { font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 600; line-height: 1.5; }
.features__desc { font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 400; line-height: 1.5; }

@media (max-width: 640px) {
  .features { gap: 2.4rem; padding: 3.2rem 1.6rem; }
  .features__row { gap: 1.6rem; width: calc(100% + 3.2rem); margin: 0 -1.6rem; padding: 0.8rem calc(50% + 1.6rem - 15rem) 1.6rem; scroll-snap-type: x mandatory; }
  .features__card { padding-bottom: 3.2rem; }
}
/* /stp:features */
/* stp:advantages */
.adv { padding: 6.4rem 8.4rem; }
.adv__box {
  max-width: 127.2rem;
  margin: 0 auto;
  background: var(--blue) url(../img/advantages-bg.webp) center / cover no-repeat;
  border-radius: 1.6rem;
  overflow: hidden;
}
.adv__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
  padding: 6.4rem 5.6rem;
}
.adv__info { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; width: 100%; max-width: 84rem; }
.adv__title { color: var(--white); }
.adv__text { color: var(--white); font-size: 2.8rem; font-weight: 500; line-height: 1.4; text-align: center; }
.adv__text strong { color: var(--yellow); font-weight: 700; }
.adv__img { width: 62.4rem; max-width: 100%; height: auto; aspect-ratio: 624 / 403; }

@media (max-width: 640px) {
  .adv { padding: 3.2rem 1.6rem; }
  .adv__box { background-image: url(../img/advantages-bg-m.webp); }
  .adv__content { gap: 2.4rem; padding: 4rem 1.6rem; }
  .adv__info { align-items: stretch; max-width: none; }
  .adv__title { text-align: left; }
  .adv__text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; text-align: left; }
  .adv__img { width: 32.3rem; }
}
/* /stp:advantages */
/* stp:gallery */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
  padding: 6.4rem 8.4rem;
  overflow: hidden;
}
.gallery .title { width: 100%; }
.gallery__row {
  display: flex; gap: 2.4rem; width: calc(100% + 16.8rem); margin: 0 -8.4rem;
  padding: 0 8.4rem 1.6rem;
  overflow-x: auto; cursor: grab;
  scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.gallery__img { flex: none; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; width: 40.8rem; height: 54.4rem; object-fit: cover; border-radius: 0.8rem; }

@media (max-width: 640px) {
  .gallery { gap: 2.4rem; padding: 3.2rem 1.6rem; }
  .gallery__row { gap: 1.6rem; width: calc(100% + 3.2rem); margin: 0 -1.6rem; padding: 0 calc(50% + 1.6rem - 15.1rem) 1.2rem; scroll-snap-type: x mandatory; }
  .gallery__img { width: 30.2rem; height: 40.3rem; }
}
.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.features__row::-webkit-scrollbar, .gallery__row::-webkit-scrollbar { height: 0.6rem; }
.features__row::-webkit-scrollbar-thumb, .gallery__row::-webkit-scrollbar-thumb { background: var(--red); border-radius: 0.3rem; }
/* /stp:gallery */
/* stp:faq */
.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
  padding: 6.4rem 8.4rem;
}
.faq__list { display: flex; flex-direction: column; gap: 2.4rem; width: 100%; max-width: 84rem; }
.faq__item {
  padding: 2rem 2.4rem;
  background: var(--pink);
  border-radius: 1.2rem;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.3s;
}
.faq__item[open] { box-shadow: inset 0 0 0 1px var(--red); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--gray);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--red); }
.faq__icon { position: relative; flex: none; width: 2.4rem; height: 2.4rem; background: var(--red); border-radius: 50%; }
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.faq__icon::before { width: 1.2rem; height: 0.2rem; transform: translate(-50%, -50%); }
.faq__icon::after { width: 0.2rem; height: 1.2rem; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { margin-top: 1.6rem; color: var(--gray); font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 400; line-height: 1.5; }

@media (max-width: 640px) {
  .faq { gap: 2.4rem; padding: 3.2rem 1.6rem; }
  .faq__list { gap: 1.6rem; }
}
/* /stp:faq */
/* stp:contact */
.contact { padding: 6.4rem 8.4rem; }
.contact__box { max-width: 127.2rem; margin: 0 auto; }
.contact__content { display: flex; justify-content: center; padding: 6.4rem 5.6rem; background: var(--l-blue-30); }
.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  width: 62.4rem;
  max-width: 100%;
  padding: 4.8rem 0;
  background: var(--blue);
  border-radius: 0.8rem;
}
.contact__title { width: 36.8rem; max-width: 100%; color: var(--white); font-size: 2.8rem; font-weight: 700; line-height: 1.4; text-align: center; }
.contact__mail { display: flex; align-items: center; justify-content: center; gap: 0.8rem; color: var(--yellow); font-size: 2.4rem; font-weight: 600; line-height: 1.5; text-transform: uppercase; }
.contact__mail img { width: 3.6rem; height: 3.6rem; transition: transform 0.3s; }
.contact__mail:hover { color: var(--white); }
.contact__mail:hover img { transform: translate(0.3rem, -0.3rem); }
.contact__wave { display: block; width: 100%; height: 4.6rem; margin-top: 0.3rem; }

@media (max-width: 640px) {
  .contact { padding: 3.2rem 1.6rem 4.8rem; }
  .contact__content { padding: 4rem 1.6rem; }
  .contact__card { width: 100%; gap: 0.8rem; padding: 2.4rem 0; }
  .contact__title { width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
  .contact__mail { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .contact__mail img { width: 2.8rem; height: 2.8rem; }
  .contact__wave { height: 3.8rem; margin-top: 0; }
}
/* /stp:contact */
/* stp:footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 6rem 0;
  background: var(--red);
  color: var(--white);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
}
.footer__links { display: flex; align-items: center; justify-content: flex-end; gap: 6rem; padding: 0 8.8rem; }
.footer__link { text-align: center; white-space: nowrap; }
.footer__link:hover { color: var(--yellow); }
.footer__copy { 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; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6.2rem; }
.legal-page { padding: 8rem 21.2rem; }
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 101.6rem;
  margin: 0 auto;
  color: var(--gray);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  overflow-wrap: break-word;
}
.legal-content h1 {
  font-family: var(--font-head);
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.legal-content h2, .legal-content h3, .legal-content h4 { font-size: 2.4rem; font-weight: 600; line-height: 1.5; }
.legal-content h3, .legal-content h4 { font-size: clamp(14px, 1.6rem, 1.6rem); }
.legal-content strong, .legal-content b { font-weight: 600; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-content ul { list-style: disc; padding-left: 2.4rem; }
.legal-content ol { list-style: decimal; padding-left: 2.4rem; }
.legal-content li + li { margin-top: 0.8rem; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content a:hover { color: var(--red); }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 5.2rem; }
  .legal-page { padding: 5.6rem 1.6rem; }
  .legal-content { gap: 2.4rem; }
  .legal-content h1 { font-size: 3.2rem; }
  .legal-content h2 { font-size: 2rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-paint {
  display: inline-block;
  white-space: nowrap;
  color: var(--red);
  clip-path: inset(-0.4rem 100% -0.4rem 0);
}
.anim-on .hero__title.is-in .ta-paint {
  animation: ta-paint-roll 0.7s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i) * 0.16s) forwards,
    ta-paint-dry 0.9s ease-out calc(var(--i) * 0.16s + 0.6s) forwards;
}
@keyframes ta-paint-roll {
  0% { clip-path: inset(-0.4rem 100% -0.4rem 0); transform: translateY(0.3rem); }
  100% { clip-path: inset(-0.4rem -0.4rem -0.4rem 0); transform: translateY(0); }
}
@keyframes ta-paint-dry {
  0% { color: var(--red); filter: saturate(1.3); }
  100% { color: var(--blue); filter: saturate(1); }
}

.anim-on .ta-hang {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform-origin: 50% -0.6rem;
  transform: translateY(var(--ta-d, -1.6rem)) rotate(var(--ta-r, -9deg));
}
.anim-on .is-in .ta-hang {
  animation: ta-hang-swing 1.1s ease-out calc(var(--i) * 0.12s) forwards;
}
@keyframes ta-hang-swing {
  0% { opacity: 0; transform: translateY(var(--ta-d, -1.6rem)) rotate(var(--ta-r, -9deg)); }
  30% { opacity: 1; transform: translateY(0) rotate(6deg); }
  55% { transform: rotate(-3deg); }
  75% { transform: rotate(1.2deg); }
  100% { opacity: 1; transform: rotate(0); }
}

@media (max-width: 640px) {
  .anim-on .hero__title.is-in .ta-paint {
    animation-duration: 0.55s, 0.7s;
  }
  .anim-on .ta-hang { --ta-d: -1rem; --ta-r: -6deg; }
  .anim-on .is-in .ta-hang { animation-duration: 0.9s; }
}
/* /stp:title-anim */
