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

:root {
  --bg: #082131;
  --white: #ffffff;
  --text: #fdffff;
  --gray: #dadada;
  --gray-l: #cbcbcb;
  --blue: #85b6da;
  --blue-hover: #b4d6ef;
  --cyan: #cbfaff;
  --accent: #4894d7;
  --accent-hover: #6aaee8;
  --black: #050c13;
  --line: #616161;
  --card: rgba(255, 255, 255, 0.07);
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Roboto Mono', monospace;
  --font-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); } }

*, *::before, *::after { box-sizing: border-box; }
html.menu-lock, html.menu-lock body { overflow: hidden; }
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, p, ul { margin: 0; padding: 0; }
ul { 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; }
button { font: inherit; cursor: pointer; }

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

main { display: block; }
.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 8.4rem; }
.eyebrow {
  font-weight: 300;
  font-size: clamp(14px, 1.4rem, 1.4rem);
  line-height: 1.28;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--gray);
}
.title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--blue);
}
.heading { display: flex; flex-direction: column; gap: 0.8rem; }

.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.6rem 8.4rem 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(8, 33, 49, 0.92);
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 6.2rem; padding: 0 6.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem);
}
.logo { display: block; width: 4rem; height: 4rem; }
.logo:hover { opacity: 0.75; }
.logo img { width: 100%; height: 100%; border-radius: 0.4rem; }
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav-link {
  display: block; padding: 0.4rem 0.8rem;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.44; letter-spacing: 0.02em; text-transform: uppercase; text-align: center;
  color: var(--gray);
}
.nav-link:hover { color: var(--blue); }

.burger-btn {
  display: none; position: relative; width: 4rem; height: 4rem; padding: 0;
  background: transparent; border: 0;
}
.burger-btn span {
  position: absolute; left: 0.5rem; width: 3rem; height: 0.3rem;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, top 0.3s, background-color 0.3s;
}
.burger-btn span:nth-child(1) { top: 1.25rem; }
.burger-btn span:nth-child(2) { top: 1.85rem; }
.burger-btn span:nth-child(3) { top: 2.45rem; }
.burger-btn:hover span { background: var(--blue); }
.burger-btn.act span:nth-child(1) { top: 1.85rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 1.85rem; transform: 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: 7.8rem;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }

.store-btn {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  width: 24rem; padding: 1.2rem 2rem;
  background: var(--accent); border-radius: 0.8rem; color: var(--black);
  font-family: var(--font-btn);
  animation: store-float 3s ease-in-out infinite;
}
.store-btn:hover { background: var(--accent-hover); animation-play-state: paused; }
.store-btn img { width: 3rem; height: 3.4rem; flex: 0 0 auto; }
.store-btn .store-text { display: flex; flex-direction: column; gap: 0.4rem; width: 11.8rem; line-height: normal; }
.store-btn .store-text span:first-child { font-weight: 400; font-size: clamp(14px, 1.4rem, 1.4rem); }
.store-btn .store-text span:last-child { font-weight: 500; font-size: clamp(14px, 1.8rem, 1.8rem); }
@keyframes store-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1rem); } }

@media (max-width: 1024px) {
  .header { padding: 1.6rem 4rem 0; }
  .header-bar { padding: 0 2.4rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
  .container { padding: 0 4rem; }
}
@media (max-width: 640px) {
  .header { padding: 0; }
  .header-bar { height: 5.2rem; padding: 0 1.6rem; border-radius: 0; }
  #mobile-menu { padding-top: 5.2rem; }
  .container { padding: 0 1.6rem; }
  .title { font-size: 1.6rem; line-height: 1.5; }
  .heading { gap: 0.8rem; }
  .store-btn { width: 100%; }
}
/* /stp:base */
/* stp:hero */
.hero {
  min-height: 81.2rem;
  display: flex; align-items: center;
  padding-top: 7.8rem;
  background: var(--bg) url(../img/hero.webp) center / cover no-repeat;
}
.hero-in { display: flex; align-items: center; }
.hero-box { display: flex; flex-direction: column; align-items: flex-start; gap: 4rem; width: 62.4rem; }
.hero-info { display: flex; flex-direction: column; gap: 1.6rem; width: 100%; }
.hero-label {
  font-weight: 300; font-size: 2rem; line-height: 1.4; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text);
}
.hero-title {
  font-family: var(--font-head); font-weight: 700; font-size: 7.2rem; line-height: 1.36;
  text-transform: uppercase; color: var(--blue);
}
.hero-text { width: 40.8rem; max-width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--gray); }
@media (max-width: 1024px) {
  .hero { background-position: 70% center; }
  .hero-box { width: 100%; max-width: 62.4rem; }
}
@media (max-width: 640px) {
  .hero { min-height: 81.2rem; align-items: flex-end; padding: 5.2rem 0 3.2rem; background-image: linear-gradient(to top, #122633 18.7%, rgba(24, 41, 62, 0) 47.7%), url(../img/hero-m.webp); background-position: center; }
  .hero-in { align-items: flex-end; }
  .hero-box { width: 100%; max-width: none; gap: 2.4rem; }
  .hero-label { font-size: clamp(14px, 1.6rem, 1.6rem); letter-spacing: 0.02em; }
  .hero-title { font-size: 4.2rem; }
  .hero-text { width: 100%; font-size: clamp(14px, 1.4rem, 1.4rem); }
}
/* /stp:hero */
/* stp:about */
.about { padding: 8rem 0 6.4rem; }
.about-in { display: flex; justify-content: space-between; gap: 1.6rem; }
.about-title { width: 51.6rem; flex: 0 0 auto; }
.about-body { display: flex; flex-direction: column; gap: 0.8rem; width: 62.4rem; padding-top: 2.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--gray); }
@media (max-width: 1024px) {
  .about-in { flex-direction: column; gap: 3.2rem; }
  .about-title, .about-body { width: 100%; padding-top: 0; }
}
@media (max-width: 640px) {
  .about { padding: 4.8rem 0 3.2rem; }
  .about-in { gap: 2.4rem; }
  .about-body { font-size: clamp(14px, 1.4rem, 1.4rem); }
}
/* /stp:about */
/* stp:how-to-play */
.how { padding: 6.4rem 0; }
.how-in { display: flex; flex-direction: column; gap: 4.8rem; }
.how-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; align-items: start; }
.how-card { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.4rem; }
.how-num { font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.4; text-transform: uppercase; color: var(--white); }
.how-name { font-weight: 600; font-size: 2.2rem; line-height: 1.5; color: var(--cyan); }
.how-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--gray); }
@media (max-width: 1024px) {
  .how-cards { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}
@media (max-width: 640px) {
  .how { padding: 3.2rem 0; }
  .how-in { gap: 2.4rem; }
  .how-cards { grid-template-columns: 1fr; gap: 1.6rem; }
  .how-card { padding: 1.6rem; }
  .how-num { font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.5; }
  .how-name { font-size: 1.6rem; }
  .how-text { font-size: clamp(14px, 1.4rem, 1.4rem); }
}
/* /stp:how-to-play */
/* stp:features */
.features { padding: 6.4rem 0; }
.features-in { display: flex; flex-direction: column; gap: 4.8rem; }
.features-title { width: 51.6rem; max-width: 100%; }
.features-list { display: flex; flex-direction: column; gap: 3.2rem; }
.features-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4.8rem; align-items: start; }
.feature { display: flex; flex-direction: column; gap: 0.8rem; }
.feature-name { font-weight: 600; font-size: 2.2rem; line-height: 1.5; color: var(--white); }
.feature-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--gray); }
.features-img { width: 100%; height: auto; aspect-ratio: 1272 / 713; object-fit: cover; }
@media (max-width: 640px) {
  .features { padding: 3.2rem 0; }
  .features-in { gap: 1.6rem; }
  .features-list { gap: 1.6rem; }
  .features-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-name { font-size: 1.6rem; }
  .feature-text { font-size: clamp(14px, 1.4rem, 1.4rem); }
  .features-img { aspect-ratio: 343 / 192; }
}
/* /stp:features */
/* stp:level-design */
.level { padding: 6.4rem 0; background: var(--bg) url(../img/section-bg.webp) center / cover no-repeat; }
.level-in { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.level-title { width: 62.4rem; max-width: 100%; align-items: center; }
.level-text { width: 62.4rem; max-width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--gray); }
@media (max-width: 640px) {
  .level { padding: 3.2rem 0; }
  .level-in { align-items: flex-start; gap: 2.4rem; text-align: left; }
  .level-title { align-items: flex-start; }
  .level-text { font-size: clamp(14px, 1.4rem, 1.4rem); }
}
/* /stp:level-design */
/* stp:gallery */
.gallery { padding: 6.4rem 0; }
.gallery-in { display: flex; flex-direction: column; gap: 4.8rem; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.4rem; }
.gallery-nav { display: flex; gap: 1.2rem; flex-shrink: 0; }
.gallery-arrow {
  display: flex; align-items: center; justify-content: center; width: 5.6rem; height: 5.6rem; padding: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 0.4rem; color: var(--white);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s;
}
.gallery-arrow svg { width: 2.4rem; height: 2.4rem; }
.gallery-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--black); }
.gallery-arrow:disabled { opacity: 0.35; cursor: default; }
.gallery-track { overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; }
.gallery-track.is-dragging { cursor: grabbing; }
.gallery-rail { display: flex; align-items: center; gap: 2.4rem; will-change: transform; }
.gallery-rail.is-animating { transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1); }
.gallery-rail img { flex: 0 0 30rem; width: 30rem; height: 65.1rem; object-fit: cover; border: 2px solid var(--line); pointer-events: none; -webkit-user-drag: none; }
@media (max-width: 640px) {
  .gallery { padding: 3.2rem 0; }
  .gallery-in { gap: 2.4rem; }
  .gallery-nav { display: none; }
  .gallery-track {
    margin: 0 -1.6rem; padding: 0 1.6rem; overflow-x: auto; cursor: auto; user-select: auto; touch-action: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 1.6rem; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-rail { gap: 1.6rem; transform: none !important; will-change: auto; }
  .gallery-rail img { flex-basis: 30rem; scroll-snap-align: start; scroll-snap-stop: always; }
}
/* /stp:gallery */
/* stp:highlights */
.highlights { padding: 6.4rem 0; }
.hl-body {
  position: relative; display: flex; flex-direction: column; gap: 2.4rem;
  height: 54.6rem; padding: 4.8rem 4.8rem 0;
  background: url(../img/highlights-1.webp) center / 100% 100% no-repeat;
}
.hl-body::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); pointer-events: none; }
.hl-body > * { position: relative; }
.hl-list { display: flex; flex-direction: column; gap: 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--white); }
@media (max-width: 640px) {
  .highlights { padding: 4rem 0; }
  .hl-body { height: 49.5rem; padding: 2.4rem 1.6rem 0; background-image: url(../img/highlights-1-m.webp); }
  .hl-list { gap: 0.8rem; font-size: clamp(14px, 1.4rem, 1.4rem); }
}
/* /stp:highlights */
/* stp:faq */
.faq { padding: 6.4rem 0; }
.faq-in { display: flex; flex-direction: column; gap: 4.8rem; }
.faq-list { display: flex; flex-direction: column; gap: 1.6rem; }
.faq-item { padding: 2rem 2.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.4rem; }
.faq-item summary { display: flex; align-items: center; gap: 0.8rem; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-weight: 600; font-size: 2.2rem; line-height: 1.5; color: var(--blue); transition: color 0.3s; }
.faq-item summary:hover .faq-q { color: var(--blue-hover); }
.faq-item.is-open .faq-q { color: var(--white); }
.faq-icon { position: relative; flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0.3rem; top: 1.1rem; width: 1.8rem; height: 0.15rem; background: var(--white); transition: transform 0.3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0); }
.faq-a { margin-top: 1.6rem; padding-left: 3.2rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--gray); }
@media (max-width: 640px) {
  .faq { padding: 3.2rem 0; }
  .faq-in { gap: 2.4rem; }
  .faq-q { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .faq-a { font-size: clamp(14px, 1.4rem, 1.4rem); }
}
/* /stp:faq */
/* stp:contact */
.contact { padding: 6.4rem 0; background: var(--bg) url(../img/section-bg.webp) center / cover no-repeat; }
.contact-in { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.contact-title { width: 62.4rem; max-width: 100%; align-items: center; }
.contact .eyebrow { color: var(--white); }
.contact-mail { display: flex; align-items: center; justify-content: center; gap: 0.8rem; font-weight: 600; font-size: 2.2rem; line-height: 1.5; color: var(--white); }
.contact-mail img { width: 3.2rem; height: 3.2rem; transition: transform 0.3s; }
.contact-mail:hover { color: var(--blue); }
.contact-mail:hover img { transform: translate(0.3rem, -0.3rem); }
@media (max-width: 640px) {
  .contact { padding: 3.2rem 0; }
  .contact-mail { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .contact-mail img { width: 2.4rem; height: 2.4rem; }
}
/* /stp:contact */
/* stp:footer */
.footer { padding: 5.6rem 0; background: var(--bg); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; text-align: center; }
.footer-in { display: flex; flex-direction: column; align-items: center; gap: 3.2rem; }
.footer-docs { display: flex; align-items: center; justify-content: flex-end; gap: 6rem; width: 100%; color: var(--text); }
.footer-docs a:hover { color: var(--blue); }
.footer-copy { color: var(--gray-l); }
.foot-m { display: none; }
@media (max-width: 640px) {
  .footer { font-size: clamp(14px, 1.4rem, 1.4rem); }
  .footer-in { gap: 2.4rem; }
  .footer-docs { flex-direction: column; justify-content: center; gap: 0.8rem; color: var(--gray); }
  .footer-copy { color: var(--gray); }
  .foot-d { display: none; }
  .foot-m { display: inline; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 7.8rem; }
.legal-page { padding: 8rem 21.2rem; }
.legal-content { width: 100%; max-width: 101.6rem; margin: 0 auto; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--gray); }
.legal-content h1 { margin-bottom: 4rem; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1.4; text-align: center; text-transform: uppercase; color: var(--white); }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 3.2rem 0 1.6rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.4; color: var(--blue); }
.legal-content p, .legal-content ul, .legal-content ol { margin: 0 0 1.6rem; }
.legal-content ul { list-style: disc; padding-left: 2.4rem; }
.legal-content ol { list-style: decimal; padding-left: 2.4rem; }
.legal-content li { margin-bottom: 0.8rem; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content a:hover { color: var(--blue-hover); }
.legal-content strong, .legal-content b { font-weight: 600; color: var(--white); }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
@media (max-width: 1024px) {
  .legal-page { padding: 6.4rem 4rem; }
}
@media (max-width: 640px) {
  .legal-main { padding-top: 5.2rem; }
  .legal-page { padding: 5.6rem 1.6rem; }
  .legal-content { font-size: clamp(14px, 1.4rem, 1.4rem); }
  .legal-content h1 { font-size: 1.6rem; line-height: 1.5; margin-bottom: 2.4rem; }
  .legal-content h2, .legal-content h3, .legal-content h4 { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title .ta-w,
.anim-on .title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero-title .ta-l,
.anim-on .title .ta-l { display: inline-block; }
.anim-on .hero-title .ta-l {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transform: translateX(-1.6rem);
}
.anim-on .hero-title.is-in .ta-l {
  animation: ta-roll 0.9s steps(6, end) calc(var(--i) * 0.07s) forwards, ta-beam 1.4s ease-out calc(var(--i) * 0.07s + 0.3s) both;
}
.anim-on .hero-title.is-in .ta-loop .ta-l {
  animation: ta-roll 0.9s steps(6, end) calc(var(--i) * 0.07s) forwards, ta-beam 1.4s ease-out calc(var(--i) * 0.07s + 0.3s) both, ta-tread 7s steps(1, end) calc(2.6s + var(--i) * 0.08s) infinite;
}
@keyframes ta-roll {
  0% { opacity: 1; clip-path: inset(100% 0 0 0); transform: translateX(-1.6rem); color: var(--cyan); }
  60% { clip-path: inset(0 0 0 0); color: var(--cyan); }
  100% { opacity: 1; clip-path: inset(-20% -20% -20% -20%); transform: translateX(0); color: var(--blue); }
}
@keyframes ta-beam {
  0% { filter: drop-shadow(0 0 0.8rem var(--cyan)) brightness(1.6); }
  100% { filter: none; }
}
@keyframes ta-tread {
  0%, 92%, 100% { transform: translateY(0); color: var(--blue); }
  94% { transform: translateY(-0.4rem); color: var(--cyan); }
  96% { transform: translateY(0); color: var(--blue); }
}
.anim-on .title .ta-l {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}
.anim-on .title.is-in .ta-l {
  animation: ta-build 0.5s steps(4, end) calc(var(--i) * min(0.03s, 1.2s / var(--n))) forwards;
}
@keyframes ta-build {
  0% { opacity: 1; clip-path: inset(100% 0 0 0); color: var(--cyan); filter: drop-shadow(0 0 0.6rem var(--cyan)); }
  70% { clip-path: inset(0 0 0 0); color: var(--cyan); }
  100% { opacity: 1; clip-path: inset(-20% -20% -20% -20%); color: var(--blue); filter: none; }
}
@media (max-width: 640px) {
  .anim-on .hero-title .ta-l { transform: translateX(-0.8rem); }
  @keyframes ta-roll {
    0% { opacity: 1; clip-path: inset(100% 0 0 0); transform: translateX(-0.8rem); color: var(--cyan); }
    60% { clip-path: inset(0 0 0 0); color: var(--cyan); }
    100% { opacity: 1; clip-path: inset(-20% -20% -20% -20%); transform: translateX(0); color: var(--blue); }
  }
  .anim-on .title.is-in .ta-l { animation-duration: 0.4s; }
}
/* /stp:title-anim */
