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

:root {
  --main: #0a131a;
  --secondary: #152933;
  --accent: #63e6d8;
  --text: #eef2f7;
  --bg: #0a131a;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', 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, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
body {
  background: var(--main);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, background-color 0.3s; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

#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;
  padding: 4.8rem 8rem 0;
  transition: padding 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  background: var(--main);
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35);
}
.header-nav { display: flex; align-items: center; justify-content: space-between; gap: 5rem; }
.nav-link {
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2.1rem;
  color: var(--text);
}
.nav-link:hover { color: var(--accent); }
.burger-btn {
  display: none;
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  background: transparent;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.3s;
}
.burger-btn:hover { opacity: 0.7; }
.burger-btn span {
  display: block;
  width: 3.6rem;
  height: 0.2rem;
  background: var(--main);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.header.scrolled .burger-btn span { background: var(--accent); }
.burger-btn.act span { background: var(--accent); }
.burger-btn.act span:nth-child(1) { transform: translateY(1.2rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-1.2rem) rotate(-45deg); }
html.menu-lock .header { background: transparent; box-shadow: none; }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  justify-content: flex-end;
  background: var(--main);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.menu-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.6rem;
  width: 30.7rem;
  height: 100%;
  background: var(--secondary);
}

main { display: block; }
section { position: relative; }
.container { width: 100%; margin: 0 auto; }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 6rem;
  color: var(--accent);
  text-align: center;
}

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

@media (max-width: 1024px) {
  .header { padding-left: 4rem; padding-right: 4rem; }
}
@media (max-width: 640px) {
  .header { padding: 4.2rem 4.2rem 0; display: flex; justify-content: flex-end; }
  .header.scrolled { padding-top: 1rem; padding-bottom: 1rem; }
  .header-nav { display: none; }
  .burger-btn { display: flex; }
  .section-title { font-size: 3.2rem; line-height: 1.3; }
}
/* /stp:base */
/* stp:hero */
.hero {
  height: 82.3rem;
  padding: 29.6rem 8rem 0;
  background: url('../img/hero.webp') center top / cover no-repeat;
}
.hero-title { width: 63rem; }
.hero-title img { width: 100%; height: auto; }
@media (max-width: 1024px) {
  .hero { padding-left: 4rem; padding-right: 4rem; }
  .hero-title { width: 56rem; }
}
@media (max-width: 640px) {
  .hero { height: 80rem; padding: 23.2rem 2rem 0; background-image: url('../img/hero-m.webp'); }
  .hero-title { width: 33.5rem; }
}
/* /stp:hero */
/* stp:about */
.about { margin-top: 15rem; }
.about-bg {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  width: 110.4rem;
  height: 38.1rem;
  transform: translateX(-50%);
  background: url('../img/about-bg.webp') center / 100% 100% no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.about-inner { position: relative; max-width: 82.4rem; display: flex; flex-direction: column; gap: 2.8rem; }
.about-text { text-align: center; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
@media (max-width: 1024px) {
  .about-bg { width: 100%; }
  .about-inner { max-width: 70rem; }
}
@media (max-width: 640px) {
  .about { margin-top: 8rem; }
  .about-bg { top: 6rem; width: 100%; height: 22rem; }
  .about-inner { max-width: none; padding: 0 2rem; gap: 2.4rem; }
  .about-text { text-align: left; }
}
/* /stp:about */
/* stp:how-to-play */
.how { margin-top: 15rem; }
.how-bg {
  position: absolute;
  top: 7.4rem;
  left: 0;
  width: 100%;
  height: 66.5rem;
  object-fit: cover;
  pointer-events: none;
}
.how-inner { position: relative; max-width: 84.6rem; display: flex; flex-direction: column; gap: 2.8rem; }
.how-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.how-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  border-radius: 0.4rem;
  overflow: hidden;
}
.how-card > img { width: 100%; height: 21.3rem; object-fit: cover; }
.how-info { display: flex; flex-direction: column; gap: 0.4rem; padding: 0 1.2rem 1.2rem; text-align: center; }
.how-info h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 2.7rem;
  color: var(--accent);
}
.how-info p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
@media (max-width: 1024px) {
  .how-inner { padding: 0 2rem; }
}
@media (max-width: 640px) {
  .how { margin-top: 8rem; }
  .how-bg { display: none; }
  .how-inner { padding: 0 2rem; gap: 2.4rem; }
  .how-cards { grid-template-columns: 1fr; gap: 1.6rem; }
  .how-card { min-height: 36rem; }
}
/* /stp:how-to-play */
/* stp:why-play */
.why { margin-top: 15rem; padding: 8rem 0 8.5rem; }
.why-bg { position: absolute; top: 3.6rem; left: 0; width: 100%; height: 43.5rem; background: var(--secondary); }
.why-wave { display: none; }
.why-inner { position: relative; max-width: none; padding: 0 8rem; }
.why-text { width: 63rem; display: flex; flex-direction: column; }
.why-text .section-title { text-align: left; margin-bottom: 2.8rem; }
.why-text h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 2.7rem;
  margin-bottom: 1.6rem;
}
.why-text p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
.why-phone { position: absolute; top: -8rem; left: 85.5rem; width: 27.6rem; height: 51.2rem; }
.why-phone img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .why-inner { padding: 0 4rem; }
  .why-text { width: 56rem; }
  .why-phone { left: auto; right: 4rem; }
}
@media (max-width: 640px) {
  .why { margin-top: 8rem; padding: 3.4rem 0; background: var(--secondary); }
  .why-bg { display: none; }
  .why-wave { display: block; position: absolute; top: 21.6rem; left: 0; width: 100%; height: 14.4rem; object-fit: cover; pointer-events: none; }
  .why-inner { padding: 0 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
  .why-text { display: contents; }
  .why-text .section-title { text-align: center; margin-bottom: 0; width: 100%; order: -2; }
  .why-inner { gap: 0; }
  .why-phone { position: static; display: block; order: -1; width: 20.3rem; height: 36.3rem; margin: 2.4rem 0 1.8rem; }
  .why-text h3 { text-align: center; margin-bottom: 1.6rem; }
  .why-text p { text-align: center; }
}
/* /stp:why-play */
/* stp:faq */
.faq { margin-top: 15rem; }
.faq-bg { position: absolute; top: 12.2rem; left: 0; width: 100%; height: 55.3rem; object-fit: cover; pointer-events: none; }
.faq-inner { position: relative; max-width: 63.5rem; display: flex; flex-direction: column; gap: 2.8rem; }
.faq-list { display: flex; flex-direction: column; gap: 1.2rem; }
.faq-item { padding: 1.6rem 1.4rem; background: var(--secondary); border-radius: 2rem; }
.faq-h { margin: 0; }
.faq-q {
  width: 100%;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2.4rem;
  color: var(--accent);
}
.faq-q:focus-visible { outline: 1px solid var(--accent); outline-offset: 0.4rem; border-radius: 0.4rem; }
.faq-arrow { flex: 0 0 auto; width: 1.6rem; height: 1.4rem; margin: 0 0.8rem; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotate(-90deg); transition: transform .3s ease; }
.faq-item.open .faq-arrow { transform: rotate(0deg); }
.faq-a p { padding: 1.3rem 0 0 0.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
@media (max-width: 1024px) {
  .faq-inner { padding: 0 2rem; }
}
@media (max-width: 640px) {
  .faq { margin-top: 8rem; }
  .faq-bg { display: none; }
  .faq-inner { max-width: none; padding: 0 2rem; gap: 2.4rem; }
  .faq-item { padding: 1.5rem 1.4rem; }
  .faq-a p { padding-top: 1rem; }
}
/* /stp:faq */
/* stp:contact */
.contact { margin-top: 15rem; }
.contact-inner { max-width: 40rem; display: flex; flex-direction: column; gap: 2.8rem; text-align: center; }
.contact .section-title { line-height: 4.9rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }
.contact-info p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
.contact-mail {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem) !important;
  line-height: 2.6rem !important;
  color: var(--accent);
}
.contact-mail a:hover { color: var(--text); }
@media (max-width: 640px) {
  .contact { margin-top: 8rem; }
  .contact-inner { padding: 0 2rem; }
}
/* /stp:contact */
/* stp:footer */
.footer { margin-top: 15rem; display: flex; flex-direction: column; gap: 5rem; padding: 4.6rem 8rem; background: var(--accent); color: var(--main); }
.footer-links { display: flex; justify-content: space-between; gap: 2rem; }
.footer-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 2.9rem;
  color: var(--main);
}
.footer-links a:hover { color: var(--secondary); text-decoration: underline; }
.footer-copy { text-align: center; font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.4rem; }
@media (max-width: 1024px) {
  .footer { padding-left: 4rem; padding-right: 4rem; }
}
@media (max-width: 640px) {
  .footer { margin-top: 8rem; gap: 3.4rem; padding: 4.5rem 2rem; }
  .footer-links { flex-direction: column; justify-content: flex-start; gap: 1.2rem; }
  .footer-copy { text-align: left; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 10.5rem; }
.legal-body .header { padding-left: 18rem; padding-right: 18rem; }
.legal-body .footer { margin-top: 8rem; padding-left: 18rem; padding-right: 18rem; }
.legal-page { padding: 0 18rem; }
.legal-content { max-width: 108rem; margin: 0 auto; }
.legal-content h1 {
  margin-bottom: 2.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 6rem;
  color: var(--accent);
  text-align: center;
}
.legal-content h2, .legal-content h3, .legal-content h4 {
  margin: 2.4rem 0 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 2.7rem;
  color: var(--accent);
}
.legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; color: var(--text); }
.legal-content p { margin-bottom: 1.2rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.2rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content a:hover { color: var(--text); }
.legal-content strong, .legal-content b { font-weight: 700; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
@media (max-width: 1024px) {
  .legal-body .header, .legal-body .footer, .legal-page { padding-left: 4rem; padding-right: 4rem; }
}
@media (max-width: 640px) {
  .legal-main { padding-top: 11.6rem; }
  .legal-body .header { padding: 4.2rem 4.2rem 0; }
  .legal-body .header.scrolled { padding-top: 1rem; padding-bottom: 1rem; }
  .legal-body .footer { margin-top: 8rem; padding: 4.5rem 2rem; }
  .legal-page { padding: 0 2rem; }
  .legal-content h1 { font-size: 3.2rem; line-height: 1.3; margin-bottom: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title { position: relative; }
.anim-on .hero-title img { --ta-k: 1; animation: ta-lock 1.6s linear 0.9s backwards, ta-drift 7s linear 4.5s infinite; }
.anim-on .hero-title::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 78%, color-mix(in srgb, var(--accent) 18%, transparent) 97%, var(--accent) 99.3%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateY(-100%);
  animation: ta-scan 1.2s cubic-bezier(0.45, 0, 0.25, 1) 1s both;
}
.anim-on .section-title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .section-title .ta-ch { display: inline-block; opacity: 0; }
.anim-on .section-title.is-in .ta-ch { animation: ta-tune 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) calc(var(--i) * 0.045s) both; }
@keyframes ta-lock {
  0% { opacity: 0; clip-path: inset(48% 0 48% 0); transform: translateX(calc(-2rem * var(--ta-k))); filter: blur(0.6rem) brightness(2.2) drop-shadow(0.6rem 0 0 var(--accent)); }
  12% { opacity: 1; clip-path: inset(44% 0 40% 0); transform: translateX(calc(1.4rem * var(--ta-k))); }
  22% { clip-path: inset(12% 0 66% 0); transform: translateX(calc(-1rem * var(--ta-k))); }
  32% { clip-path: inset(58% 0 8% 0); transform: translateX(calc(0.8rem * var(--ta-k))); filter: blur(0.3rem) brightness(1.8) drop-shadow(0.4rem 0 0 var(--accent)); }
  42% { clip-path: inset(0 0 32% 0); transform: translateX(calc(-0.5rem * var(--ta-k))); }
  55% { clip-path: inset(0 0 0 0); transform: translateX(calc(0.3rem * var(--ta-k))); filter: blur(0.15rem) brightness(1.4) drop-shadow(0.2rem 0 0 var(--accent)); }
  62% { opacity: 0.5; }
  68% { opacity: 1; transform: translateX(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: blur(0) brightness(1) drop-shadow(0 0 0 transparent); }
}
@keyframes ta-scan {
  0% { opacity: 0; transform: translateY(-100%); }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(0); }
}
@keyframes ta-drift {
  0%, 92%, 97%, 100% { transform: none; filter: none; }
  93% { transform: translateX(0.4rem); filter: brightness(1.3) drop-shadow(-0.3rem 0 0 var(--accent)); }
  95% { transform: translateX(-0.25rem); filter: brightness(1.1) drop-shadow(0.2rem 0 0 var(--accent)); }
}
@keyframes ta-tune {
  0% { opacity: 0; color: var(--text); transform: translateX(-0.8rem); filter: blur(0.5rem) drop-shadow(0 0 0 transparent); }
  30% { opacity: 0.9; transform: translateX(0.2rem); filter: blur(0.1rem) drop-shadow(0 0 0.6rem var(--accent)); }
  42% { opacity: 0.2; }
  56% { opacity: 1; color: var(--text); transform: translateX(0); filter: blur(0) drop-shadow(0 0 0.8rem var(--accent)); }
  100% { opacity: 1; color: var(--accent); transform: none; filter: blur(0) drop-shadow(0 0 0 transparent); }
}
@media (max-width: 640px) {
  .anim-on .hero-title img { --ta-k: 0.5; animation-duration: 1.3s, 7s; }
  .anim-on .section-title.is-in .ta-ch { animation-duration: 0.6s; animation-delay: calc(var(--i) * 0.035s); }
}
/* /stp:title-anim */
