/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;700&family=Teko:wght@700&display=swap');

:root {
  --bg: #AEC0D8;
  --text: #22262D;
  --orange: #FF6B2C;
  --grey: #6E7C8F;
  --font-head: 'Teko', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --header-h: 4.8rem;
}

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

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease, opacity 0.3s ease; }
button { font: inherit; cursor: pointer; }

main { padding-top: var(--header-h); }

.container { width: 100%; max-width: 128rem; margin: 0 auto; }

.block { padding: 5rem 0; }

.title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1.5;
  color: var(--orange);
  text-align: center;
}

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

a:hover { color: var(--orange); }

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

@media (max-width: 1024px) {
  .container { padding: 0 4rem; }
  .block { padding: 4.5rem 0; }
}

@media (max-width: 640px) {
  main { padding-top: 0; }
  .container { padding: 0 2rem; }
  .block { padding: 3.6rem 0; }
}
/* /stp:base */
/* stp:header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(34, 38, 45, 0.25); }

.header-inner {
  width: 100%;
  max-width: 128rem;
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav { width: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-link {
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  color: var(--text);
}
.nav-link:hover { color: var(--orange); }

.burger-btn {
  display: none;
  position: relative;
  z-index: 110;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  background: transparent;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.burger-btn span {
  display: block;
  width: 3.6rem;
  height: 0.3rem;
  background: var(--orange);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.burger-btn.act span { width: 2.8rem; }
.burger-btn.act span:nth-child(1) { transform: translateY(1.05rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-1.05rem) rotate(-45deg); }
.burger-btn:hover span { opacity: 0.75; }
.burger-btn.act:hover span:nth-child(2) { opacity: 0; }

@media (max-width: 1024px) {
  .header-inner { padding: 0 4rem; }
}

@media (max-width: 640px) {
  .header { background: transparent; padding: 4.2rem 4.2rem 0 0; }
  .header.scrolled { background: var(--bg); padding: 1.2rem 4.2rem 1.2rem 0; }
  html.menu-lock .header, html.menu-lock .header.scrolled { background: transparent; box-shadow: none; }
  .header-inner { height: 4.8rem; padding: 0; justify-content: flex-end; }
  .nav { display: none; }
  .burger-btn { display: flex; }
}
/* /stp:header */
/* stp:menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--grey);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 31rem;
  padding-top: 23.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.6rem;
  background: var(--bg);
  border-radius: 2rem 0 0 2rem;
}
.menu-panel .nav-link { font-size: clamp(14px, 1.6rem, 1.6rem); color: var(--text); }
.menu-panel .nav-link:hover { color: var(--orange); }
/* /stp:menu */
/* stp:hero */
.hero {
  height: 82.3rem;
  padding: 13.3rem 0 0 8rem;
  background: url('../img/hero.webp') center / cover no-repeat;
}
.hero-logo { width: 63rem; }
.hero-logo img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  .hero { padding-left: 4rem; }
}

@media (max-width: 640px) {
  .hero {
    height: 80rem;
    padding: 53.3rem 2rem 0;
    background-image: url('../img/hero-m.webp');
  }
  .hero-logo { width: 33.5rem; }
}
/* /stp:hero */
/* stp:about */
.about-content {
  margin-top: 2.8rem;
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.about-text {
  flex: 0 0 41.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.about-text strong { font-weight: 700; }
.about-img { flex: 0 0 84.7rem; width: 84.7rem; aspect-ratio: 847 / 482; object-fit: cover; }

@media (max-width: 1024px) {
  .about-content { flex-direction: column; gap: 3rem; }
  .about-text { flex: none; width: 100%; }
  .about-img { flex: none; width: 100%; max-width: 84.7rem; }
}

@media (max-width: 640px) {
  .about-content { margin-top: 2.4rem; gap: 2rem; }
  .about-text { gap: 1.6rem; }
  .about-img { width: calc(100% + 4rem); max-width: none; margin: 0 -2rem; order: -1; }
}
/* /stp:about */
/* stp:how-to-play */
.how-list {
  margin-top: 2.8rem;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}
.how-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 0.5rem solid var(--orange);
  border-radius: 1.6rem;
}
.how-img { width: 100%; aspect-ratio: 1344 / 768; object-fit: cover; border-radius: 0.4rem; }
.how-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; }
.how-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.2;
  color: var(--text);
}
.how-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--grey); }

@media (max-width: 1024px) {
  .how-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
}

@media (max-width: 640px) {
  .how-list {
    margin: 2.4rem -2rem 0;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 2rem;
    scrollbar-width: none;
  }
  .how-list::-webkit-scrollbar { display: none; }
  .how-card { flex: 0 0 19.7rem; scroll-snap-align: start; }
}
/* /stp:how-to-play */
/* stp:features */
.features { overflow: hidden; }
.features-inner {
  position: relative;
  width: 100%;
  max-width: 144rem;
  min-height: 51.2rem;
  margin: 0 auto;
}
.features-content {
  position: relative;
  z-index: 1;
  width: 93.9rem;
  margin: 2.8rem 0 0 calc(50% - 40.6rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.features-img { flex: 0 0 39.2rem; width: 39.2rem; aspect-ratio: 392 / 380; object-fit: cover; border-radius: 0.4rem; }
.features-list { flex: 0 0 52.7rem; width: 52.7rem; display: flex; flex-direction: column; gap: 1.8rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.feature-icon { flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; }
.feature-details { display: flex; flex-direction: column; gap: 0.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }
.feature-title { font-family: var(--font-body); font-weight: 700; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }

.features-deco { position: absolute; z-index: 2; pointer-events: none; }
.features-deco-1 { left: 3.1rem; top: 10rem; width: 44.7rem; height: 41.2rem; object-fit: cover; }
.features-deco-2 {
  left: 109.3rem;
  top: 16rem;
  width: 31.57rem;
  height: 31.71rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features-deco-2 img { flex: none; width: 23.31rem; height: 21.51rem; transform: rotate(-48.13deg) scaleY(-1); }

@media (max-width: 1024px) {
  .features-inner { min-height: 0; padding: 0 4rem; }
  .features-content { width: 100%; margin: 2.8rem 0 0; gap: 3rem; }
  .features-img { flex: 0 0 38%; width: 38%; }
  .features-list { flex: 1 1 auto; width: auto; min-width: 0; }
  .features-deco-1 { left: 0; top: 8rem; width: 26rem; height: auto; }
  .features-deco-2 { display: none; }
}

@media (max-width: 640px) {
  .features-inner { padding: 0; }
  .features-content { margin-top: 2.4rem; flex-direction: column; align-items: stretch; gap: 2rem; }
  .features-img { flex: none; width: 100%; border-radius: 0; }
  .features-list { flex: none; width: 100%; padding: 0 2rem; gap: 1.6rem; }
  .features-deco { display: none; }
}
/* /stp:features */
/* stp:faq */
.faq-content {
  margin-top: 2.8rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.faq-list { flex: 1 1 0; min-width: 0; }
.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-top: 1px solid var(--orange);
}
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.faq-q {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  color: var(--orange);
  white-space: nowrap;
}
.faq-icon { flex: 0 0 4.4rem; width: 4.4rem; height: 4.4rem; }
.faq-a { max-width: 53.1rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); }
.faq-img { flex: 1 1 0; min-width: 0; aspect-ratio: 630 / 547; object-fit: cover; border-radius: 0.4rem; }

@media (max-width: 1024px) {
  .faq-q { white-space: normal; }
  .faq-a { max-width: none; }
}

@media (max-width: 640px) {
  .faq-content { margin-top: 2.4rem; flex-direction: column; gap: 2rem; }
  .faq-list { width: 100%; order: 2; }
  .faq-img { order: 1; flex: none; width: calc(100% + 4rem); max-width: none; margin: 0 -2rem; aspect-ratio: 375 / 326; border-radius: 0; }
}
/* /stp:faq */
/* stp:contact */
.contact-details {
  margin-top: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.contact-mail {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.2;
  color: var(--orange);
}
.contact-mail:hover { color: var(--text); }

@media (max-width: 640px) {
  .contact-details { margin-top: 2.4rem; }
}
/* /stp:contact */
/* stp:footer */
.footer {
  height: 20rem;
  padding-top: 7.5rem;
  background: url('../img/footer-bg.svg') center / 100% 100% no-repeat;
}
.footer-inner {
  width: 100%;
  max-width: 128rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.footer-links { display: flex; align-items: center; justify-content: space-between; }
.footer-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.2;
  color: var(--text);
}
.footer-link:hover { color: var(--bg); }
.footer-copy {
  padding: 0 17.4rem 0 12.8rem;
  font-size: clamp(12px, 1.2rem, 1.2rem);
  line-height: 1.5;
  text-align: center;
  color: var(--text);
}

@media (max-width: 1024px) {
  .footer-inner { padding: 0 4rem; }
  .footer-copy { padding: 0; }
}

@media (max-width: 640px) {
  .footer { height: 21rem; padding-top: 6.8rem; background-image: url('../img/footer-bg-m.svg'); }
  .footer-inner { padding: 0 3.4rem; gap: 2.4rem; }
  .footer-links { flex-direction: column; gap: 1.6rem; }
  .footer-copy { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 9rem; }
.legal-body .header-inner { max-width: 108rem; }

.legal-page { width: 100%; max-width: 108rem; margin: 0 auto; padding: 0 0 6rem; }
.legal-content { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); word-break: break-word; }
.legal-content h1 {
  margin: 0 0 2.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1.5;
  color: var(--orange);
  text-align: center;
}
.legal-content h2, .legal-content h3, .legal-content h4 {
  margin: 0 0 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
}
.legal-content p { margin: 0 0 2.4rem; }
.legal-content ul, .legal-content ol { margin: 0 0 2.4rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin: 0 0 1.2rem; }
.legal-content li > p { margin: 0 0 1.2rem; }
.legal-content ul ul, .legal-content ol ul, .legal-content ul ol, .legal-content ol ol { margin: 1.2rem 0; }
.legal-content strong, .legal-content b { font-weight: 700; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-content a { color: var(--text); text-decoration: underline; word-break: break-all; transition: color 0.3s ease; }
.legal-content a:hover { color: var(--orange); }

@media (max-width: 1024px) {
  .legal-page { padding: 0 4rem 5rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 11.6rem; }
  .legal-page { padding: 0 2rem 4rem; }
  .legal-content h1 { margin-bottom: 2.8rem; }
  .legal-content ul, .legal-content ol { padding-left: 2rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-hero { position: relative; }
.anim-on .ta-hero img {
  opacity: 0;
  animation: ta-drop 0.95s cubic-bezier(0.55, 0, 0.35, 1) 0.9s both, ta-power 1.1s linear 1.5s both;
}
.anim-on .ta-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 107, 44, 0) 44%, rgba(255, 160, 90, 0.85) 49.4%, #fff 50%, rgba(255, 160, 90, 0.85) 50.6%, rgba(255, 107, 44, 0) 56%, transparent 60%) 0 100% / 100% 250% no-repeat;
  -webkit-mask: url('../img/hero-logo.webp') center / 100% 100% no-repeat;
  mask: url('../img/hero-logo.webp') center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  animation: ta-scan 1.2s ease-in-out 1.45s both, ta-scan-loop 7s ease-in-out 4.5s infinite;
}
@keyframes ta-drop {
  0% { opacity: 0; transform: translateY(-8rem); }
  50% { opacity: 1; transform: translateY(0.8rem); }
  66% { transform: translateY(-0.35rem); }
  82% { transform: translateY(0.15rem); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes ta-power {
  0%, 30% { filter: brightness(0.35) saturate(0.2); }
  38% { filter: brightness(1.25) saturate(1); }
  44% { filter: brightness(0.5) saturate(0.4); }
  52% { filter: brightness(1.15) saturate(1); }
  58% { filter: brightness(0.7) saturate(0.7); }
  70% { filter: brightness(1.1) saturate(1); }
  100% { filter: brightness(1) saturate(1); }
}
@keyframes ta-scan {
  0% { opacity: 0; background-position: 0 100%; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}
@keyframes ta-scan-loop {
  0% { opacity: 0; background-position: 0 100%; }
  3% { opacity: 0.5; }
  15% { opacity: 0.5; }
  18%, 100% { opacity: 0; background-position: 0 0; }
}
.anim-on .title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .title .ta-l {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 100%;
}
.anim-on .title.is-in .ta-l { animation: ta-stamp 0.6s cubic-bezier(0.3, 0, 0.2, 1) calc(var(--i) * 0.045s) both; }
@keyframes ta-stamp {
  0% { opacity: 0; transform: translateY(-1.6rem) scaleY(1.5); color: #fff; filter: brightness(1.8) drop-shadow(0 0 0.6rem var(--orange)); }
  45% { opacity: 1; transform: translateY(0.15rem) scaleY(0.82); color: #FFE3CF; }
  65% { transform: translateY(0) scaleY(1.06); }
  100% { opacity: 1; transform: none; color: var(--orange); filter: none; }
}
@media (max-width: 640px) {
  .anim-on .ta-hero img { animation-duration: 0.8s, 1s; }
  @keyframes ta-drop {
    0% { opacity: 0; transform: translateY(-4rem); }
    50% { opacity: 1; transform: translateY(0.5rem); }
    66% { transform: translateY(-0.2rem); }
    82% { transform: translateY(0.1rem); }
    100% { opacity: 1; transform: translateY(0); }
  }
  .anim-on .title.is-in .ta-l { animation-duration: 0.5s; animation-delay: calc(var(--i) * 0.035s); }
}
/* /stp:title-anim */
