/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500&family=Barlow+Condensed:wght@600&family=Bebas+Neue&family=Inter:wght@400;600&display=swap');

:root {
  --bg: #000616;
  --surface: #010312;
  --yellow: #fec822;
  --white: #fefefe;
  --accent: #3496f1;
  --legal-bg: #f4f6ff;
  --legal-title: #141428;
  --legal-text: #484848;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-nav: 'Barlow Condensed', sans-serif;
  --font-legal: 'Inter', 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; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2.4rem;
  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, filter 0.3s; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }

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

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(1, 3, 18, 0.3);
  border-bottom: 1px solid rgba(254, 200, 34, 0.5);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(0, 6, 22, 0.92);
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35);
}

.nav-link {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 2rem;
  line-height: 2.4rem;
  color: var(--yellow);
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); }

.burger-btn {
  display: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 110;
}
.burger-btn span {
  position: absolute;
  left: 0.3rem;
  width: 1.8rem;
  height: 0.2rem;
  background: var(--white);
  border-radius: 0.1rem;
  transition: transform 0.3s, opacity 0.3s, top 0.3s, background-color 0.3s;
}
.burger-btn span:nth-child(1) { top: 0.6rem; }
.burger-btn span:nth-child(2) { top: 1.1rem; }
.burger-btn span:nth-child(3) { top: 1.6rem; }
.burger-btn:hover span { background: var(--yellow); }
.burger-btn.act span:nth-child(1) { top: 1.1rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 1.1rem; transform: rotate(-45deg); }

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

main { display: block; }
/* /stp:base */
/* stp:header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 144rem;
  margin: 0 auto;
  padding: 1.2rem 7.2rem;
}
.logo { display: block; flex: 0 0 auto; }
.logo:hover { opacity: 0.8; }
.logo img { width: 23.8rem; height: 10rem; }
.nav { display: flex; align-items: center; gap: 3.2rem; }

@media (max-width: 1024px) {
  .header-inner { padding: 1.2rem 4rem; }
  .nav { gap: 2.4rem; }
}

@media (max-width: 640px) {
  .header-inner { padding: 1.8rem 1.6rem 1.4rem; }
  .logo img { width: 14rem; height: 5.8rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:header */
/* stp:menu */
#mobile-menu .nav-link { display: block; }
/* /stp:menu */
/* stp:hero */
.hero {
  position: relative;
  height: 84.8rem;
  padding: 29.5rem 7.2rem 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-glow {
  position: absolute;
  left: 0;
  top: 24.2rem;
  width: 58rem;
  height: 41rem;
  background: linear-gradient(180deg, #050091 35.7%, #01002b 100%);
  filter: blur(10rem);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.2rem;
  width: 46.4rem;
}
.hero-text { width: 100%; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 9.6rem;
  line-height: 9.6rem;
  color: var(--white);
  white-space: nowrap;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--yellow); }
.hero-text p {
  max-width: 31rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 3rem;
  color: var(--white);
}
.btn-play {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 24.9rem;
  height: 6.8rem;
  overflow: hidden;
}
.store-btn { animation: store-float 3s ease-in-out infinite; }
.store-btn:hover { animation-play-state: paused; }
.btn-play img {
  position: absolute;
  left: 0.76rem;
  top: 0.94rem;
  width: 23.3rem;
  height: auto;
  max-width: none;
}

.btn-play:hover {
  filter: brightness(1.15) drop-shadow(0 0 1rem rgba(254, 200, 34, 0.6));
}

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

@media (max-width: 640px) {
  .hero { padding: 29.6rem 1.6rem 0; }
  .hero-bg { object-position: center top; }
  .hero-glow { top: 24.2rem; width: 100%; height: 33rem; background: #060449; }
  .hero-content { align-items: center; width: 100%; gap: 2.4rem; }
  .hero-text { text-align: center; }
  .hero h1 { font-size: 4.8rem; line-height: 4.8rem; }
  .hero-text p { margin: 0 auto; }
  .btn-play { width: 34.3rem; height: 7.8rem; }
  .btn-play img { left: 1rem; top: 1.1rem; width: 32.1rem; }
}
/* /stp:hero */
/* stp:about */
.section { position: relative; padding: 10rem 12rem; background: var(--bg); }
.section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5.8rem;
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
}
.section-title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 3.8rem;
  text-align: center;
  color: var(--white);
}
.row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.row-rev { flex-direction: row-reverse; }
.panel { position: relative; flex: 0 0 auto; }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.panel-text {
  position: absolute;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2.4rem;
  color: var(--white);
}
.pic { flex: 0 0 auto; height: 26.6rem; }

@media (max-width: 1024px) {
  .section { padding: 8rem 4rem; }
  .section-inner { gap: 4.8rem; }
  .row, .row-rev { flex-direction: column; justify-content: center; gap: 4rem; }
}

@media (max-width: 640px) {
  .section { padding: 4.8rem 0; }
  .section-inner { gap: 0; }
  .row, .row-rev { gap: 0; }
  .panel { width: 100%; }
  .panel-bg { opacity: 0.24; }
  .panel-text {
    left: 1.6rem;
    top: 4rem;
    width: 34.3rem;
    font-size: clamp(14px, 1.8rem, 1.8rem);
    line-height: 2.6rem;
    text-align: center;
  }
  .pic { position: relative; width: 100%; height: auto; }
}
.about .row { gap: 12.6rem; }
.panel-about { width: 58.8rem; height: 34.2rem; }
.panel-about .panel-text { left: 9rem; top: 7.5rem; width: 43.2rem; }
.pic-about { width: 48.6rem; }

@media (max-width: 1024px) {
  .about .row { gap: 4rem; }
}

@media (max-width: 640px) {
  .about { padding-bottom: 6.2rem; }
  .panel-about { width: 100%; height: 38rem; }
  .panel-about .panel-text { left: 1.6rem; top: 4rem; width: 34.3rem; }
  .pic-about { width: 100%; margin-top: -1.6rem; }
}
/* /stp:about */
/* stp:gameplay */
.gameplay { background: var(--surface); }
.gameplay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/gameplay-bg.webp) center / cover no-repeat;
  opacity: 0.17;
}
.gameplay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(1, 3, 18, 0) 41%, rgba(1, 3, 18, 0.7) 100%);
}
.gameplay .section-inner { position: relative; z-index: 1; }
.gameplay .row-rev { gap: 20.3rem; }
.panel-gameplay { width: 50.4rem; height: 28.8rem; }
.panel-gameplay .panel-text { left: 3.4rem; top: 3.4rem; width: 43.6rem; }
.pic-gameplay { width: 49.4rem; }

@media (max-width: 1024px) {
  .gameplay .row-rev { gap: 4rem; }
}

@media (max-width: 640px) {
  .gameplay { background: var(--bg); }
  .gameplay::before, .gameplay::after { display: none; }
  .panel-gameplay { width: 100%; height: 42.4rem; }
  .panel-gameplay .panel-text { left: 1.6rem; top: 4rem; width: 34.3rem; }
  .pic-gameplay { width: 100%; margin-top: -3.4rem; }
}
/* /stp:gameplay */
/* stp:features */
.features { background: linear-gradient(180deg, #01020e 0%, #08022d 100%); }
.features .row { gap: 9.4rem; }
.panel-features { width: 63.2rem; height: 36.2rem; }
.panel-features .panel-text { left: 6rem; top: 8.4rem; width: 52.2rem; }
.pic-features { width: 47.4rem; }

@media (max-width: 1024px) {
  .features .row { gap: 4rem; }
}

@media (max-width: 640px) {
  .features { background: var(--bg); }
  .panel-features { width: 100%; height: 46.1rem; }
  .panel-features .panel-text { left: 1.6rem; top: 4rem; width: 34.3rem; }
  .pic-features { width: 100%; margin-top: -1.9rem; }
}
/* /stp:features */
/* stp:challenges */
.challenges { background: var(--surface); }
.challenges::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/challenges-bg.webp) center top / cover no-repeat;
  opacity: 0.3;
}
.challenges::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(1, 3, 13, 0) 41%, rgba(1, 3, 13, 0.85) 100%);
}
.challenges .section-inner { position: relative; z-index: 1; }
.challenges .row-rev { gap: 21.8rem; }
.panel-challenges { width: 50.8rem; height: 28.8rem; }
.panel-challenges .panel-text { left: 3.6rem; top: 4.2rem; width: 43.6rem; }
.pic-challenges { width: 47.4rem; }

@media (max-width: 1024px) {
  .challenges .row-rev { gap: 4rem; }
}

@media (max-width: 640px) {
  .challenges { background: var(--bg); }
  .challenges::before, .challenges::after { display: none; }
  .panel-challenges { width: 100%; height: 36.8rem; }
  .panel-challenges .panel-text { left: 1.6rem; top: 4rem; width: 34.3rem; }
  .pic-challenges { width: 100%; margin-top: -3rem; }
}
/* /stp:challenges */
/* stp:footer */
.footer { background: var(--bg); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 144rem;
  margin: 0 auto;
  padding: 4.4rem 7.2rem;
}
.footer-contact { flex: 0 0 auto; width: 27.4rem; }
.footer-contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 3.8rem;
  color: var(--yellow);
}
.footer-contact p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; color: var(--white); }
.footer .accent, .footer .mail { color: var(--accent); }
.footer .mail:hover { color: var(--white); }
.footer-logo { flex: 0 0 auto; width: 29.2rem; height: 12.2rem; object-fit: cover; opacity: 0.3; }
.footer-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2rem;
  color: var(--accent);
  white-space: nowrap;
}
.footer-meta p { font-size: inherit; line-height: inherit; }
.footer-links { display: flex; align-items: center; gap: 1.2rem; }
.footer-links a { color: var(--accent); }
.footer-links a:hover { color: var(--yellow); }

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

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; justify-content: center; gap: 4.8rem; padding: 4.8rem 1.6rem 1.6rem; }
  .footer-contact { width: 100%; }
  .footer-logo { width: 27.8rem; height: 11.6rem; }
  .footer-meta { align-items: center; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--legal-bg); }
.legal-body .header { background: var(--bg); }
.legal-main { flex: 1 0 auto; padding-top: 12.5rem; }
.legal-page { padding: 3.2rem 7.2rem; background: var(--legal-bg); }
.legal-content {
  width: 100%;
  max-width: 129.6rem;
  margin: 0 auto;
  font-family: var(--font-legal);
  font-weight: 400;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2.4rem;
  color: var(--legal-text);
}
.legal-content > * + * { margin-top: 0.8rem; }
.legal-content h1 {
  font-family: var(--font-legal);
  font-weight: 600;
  font-size: 4rem;
  line-height: 4.8rem;
  color: var(--legal-title);
}
.legal-content h2, .legal-content h3, .legal-content h4 {
  font-family: var(--font-legal);
  font-weight: 600;
  font-size: 2rem;
  line-height: 2.4rem;
  color: var(--legal-title);
}
.legal-content h4 { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
.legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
.legal-content ul, .legal-content ol { padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content strong, .legal-content b { font-weight: 600; color: var(--legal-title); }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-content a { color: #0000ee; text-decoration: underline; word-break: break-word; }
.legal-content a:hover { color: var(--accent); }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 8.7rem; }
  .legal-page { padding: 3.2rem 1.6rem; }
  .legal-body .header-inner { padding: 1.4rem 1.6rem; }
}
/* /stp:legal */
/* stp:title-anim */
.hero h1, .section-title, .footer-contact h2 {
  --ta-g0: #ff4a5a;
  --ta-g1: var(--yellow);
  --ta-g2: #3fe07a;
  --ta-g3: var(--accent);
  --ta-g4: #b45cff;
}
.hero h1 { --ta-r: 24deg; }
.section-title, .footer-contact h2 { --ta-r: 16deg; }
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-ch { display: inline-block; }
.hero h1 .line .ta-ch { --d: -1; }
.hero h1 .accent .ta-ch { --d: 1; }
.anim-on .hero h1 .ta-ch { opacity: 0; transform-origin: 50% 340%; }
.anim-on .hero h1.is-in .ta-ch {
  animation:
    ta-ring 0.85s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--i) * 0.04s) both,
    ta-charge 0.7s ease-out calc(var(--n) * 0.04s + 0.75s + var(--i) * 0.028s) both;
}
.anim-on .hero h1.is-in .accent .ta-ch {
  animation:
    ta-ring 0.85s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--i) * 0.04s) both,
    ta-charge 0.7s ease-out calc(var(--n) * 0.04s + 0.75s + var(--i) * 0.028s) both,
    ta-surge 5s ease-in-out calc(var(--n) * 0.068s + 3s + var(--i) * 0.035s) infinite;
}
.anim-on .section-title .ta-ch, .anim-on .footer-contact h2 .ta-ch { opacity: 0; transform-origin: 50% 260%; }
.anim-on .section-title.is-in .ta-ch, .anim-on .footer-contact h2.is-in .ta-ch {
  animation:
    ta-ring 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--i) * 0.035s) both,
    ta-spark 0.6s ease-out calc(var(--i) * 0.035s + 0.4s) both;
}
@keyframes ta-ring {
  0% { opacity: 0; transform: rotate(calc(var(--d) * var(--ta-r))) scale(0.6); }
  35% { opacity: 1; }
  72% { transform: rotate(calc(var(--d) * var(--ta-r) * -0.1)) scale(1.04); }
  86% { transform: rotate(calc(var(--d) * var(--ta-r) * 0.03)) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes ta-charge {
  0% { color: var(--gem); filter: drop-shadow(0 0 0.5rem var(--gem)) drop-shadow(0 0 0 transparent); }
  30% { color: #fff; filter: drop-shadow(0 0 0.6rem #fff) drop-shadow(0 0 1.8rem #b45cff); }
  100% { filter: none; }
}
@keyframes ta-spark {
  0% { color: var(--gem); }
  35% { color: #fff; filter: drop-shadow(0 0 0.6rem var(--accent)); }
  100% { filter: none; }
}
@keyframes ta-surge {
  0%, 86%, 100% { color: var(--yellow); filter: none; }
  91% { color: #fff; filter: drop-shadow(0 0 0.5rem #fff) drop-shadow(0 0 1.4rem #b45cff); }
}
@media (max-width: 640px) {
  .hero h1 { --ta-r: 16deg; }
  .section-title, .footer-contact h2 { --ta-r: 11deg; }
  .anim-on .hero h1 .ta-ch { transform-origin: 50% 260%; }
  .anim-on .hero h1.is-in .ta-ch { animation-duration: 0.7s, 0.55s; }
  .anim-on .hero h1.is-in .accent .ta-ch { animation-duration: 0.7s, 0.55s, 5s; }
  .anim-on .section-title.is-in .ta-ch, .anim-on .footer-contact h2.is-in .ta-ch { animation-duration: 0.55s, 0.5s; }
}
/* /stp:title-anim */
