/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito+Sans:opsz,wght@6..12,400;6..12,700&display=swap');

:root {
  --bg: #3d5372;
  --bg1: #223048;
  --bg2: #3d5372;
  --txt1: #f5f7ff;
  --txt2: #c2c9e2;
  --extra: #697495;
  --accent1: #ffd53a;
  --accent2: #0cb8eb;
  --accent3: #ea4344;
  --google-green: #30a851;
  --font-head: 'Lilita One', 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', Arial, 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(--bg2); color: var(--txt1); font-family: var(--font-body); font-weight: 400; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s, background-color .3s, transform .3s; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
section { position: relative; }
main { padding-top: 5.8rem; overflow: hidden; }

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

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 12rem; background: var(--bg2); transition: box-shadow .3s, background-color .3s; }
.header.scrolled { box-shadow: 0 .2rem 1.2rem rgba(0, 0, 0, .25); }
.logo img { width: 3.2rem; height: 3.2rem; border-radius: .4rem; }
.logo { transition: opacity .3s; }
.logo:hover { opacity: .8; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { display: flex; align-items: center; justify-content: center; padding: .8rem 1.2rem; font-size: clamp(12px, 1.2rem, 1.2rem); font-weight: 400; line-height: 1.5; color: var(--txt1); opacity: .5; white-space: nowrap; }
.nav-link:hover { opacity: 1; color: var(--accent1); }

.burger-btn { display: none; position: relative; z-index: 120; width: 2.4rem; height: 2.4rem; padding: 0; background: transparent; border: 0; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.burger-btn span { display: block; width: 1.6rem; height: .2rem; border-radius: .1rem; background: var(--txt2); transition: transform .3s, opacity .3s, background-color .3s; }
.burger-btn:hover span { background: var(--accent1); }
.burger-btn.act span:nth-child(1) { transform: translateY(.5rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-.5rem) rotate(-45deg); }

#mobile-menu { position: fixed; left: 0; right: 0; top: 5.6rem; bottom: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 4.8rem; padding: 3.2rem 1.6rem; overflow-y: auto; background: var(--bg1); opacity: 0; pointer-events: none; transition: opacity .3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { width: 20rem; height: 4rem; padding: .8rem 0; font-size: clamp(14px, 1.6rem, 1.6rem); }
html.menu-lock .header { background: var(--bg1); }

.store-btn { display: flex; align-items: center; justify-content: center; width: 24rem; height: 6.4rem; border-radius: 1.2rem; background: var(--accent3); box-shadow: 0 .37rem .37rem rgba(45, 45, 45, .5); }
.store-btn img { width: 16.4rem; height: 4rem; }
.store-btn:hover { background: #f25c5d; box-shadow: 0 .6rem 1.2rem rgba(45, 45, 45, .5); }

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

.sec-bar { display: flex; align-items: center; justify-content: center; padding: 8rem 1.2rem 1.6rem; background: var(--bg1); font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 700; line-height: 1.5; text-transform: uppercase; color: var(--txt1); }
.sec-title { font-family: var(--font-head); font-weight: 400; font-size: 3.2rem; line-height: 1.5; text-align: center; text-transform: uppercase; color: var(--txt2); }
.wrap { width: 100%; max-width: 120rem; margin: 0 auto; padding: 0 3.2rem; }
.line { display: block; width: 100%; height: 0; border: 0; border-top: 1px solid var(--accent2); opacity: .8; }
.card-title { font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 700; line-height: 1.5; text-transform: uppercase; text-align: center; color: var(--txt1); }
.card-text { font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 400; line-height: 1.5; text-align: center; }

@media (max-width: 1024px) {
  main { padding-top: 5.6rem; }
  .header { padding: 1.2rem 3.2rem; }
  .nav { display: none; }
  .burger-btn { display: flex; }
  .sec-title { font-size: 2.6rem; }
}

@media (max-width: 640px) {
  main { padding-top: 4rem; }
  .header { padding: .8rem 1.6rem; background: var(--bg1); }
  .logo img { width: 2.4rem; height: 2.4rem; }
  #mobile-menu { top: 4rem; padding: 3.2rem 1.6rem; }
  .sec-bar { padding: 8rem 1.6rem 1.6rem; }
  .sec-title { font-size: 2.8rem; }
  .wrap { padding: 0 2.1rem; }
  .br-d { display: none; }
}
/* /stp:base */
/* stp:footer */
.footer { background: var(--bg2); padding: 8rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 120rem; margin: 0 auto; }
.footer-copy { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; white-space: nowrap; }
.footer-links { display: flex; align-items: center; justify-content: space-between; width: 34.8rem; padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; white-space: nowrap; }
.footer-links a { text-decoration: underline; text-underline-position: from-font; }
.footer-links a:hover { color: var(--accent1); }

@media (max-width: 1024px) {
  .footer-inner { flex-direction: column; gap: 3.2rem; padding: 0 3.2rem; }
  .footer-copy { order: 3; white-space: normal; text-align: center; }
  .footer-links { order: 2; width: auto; gap: 6.4rem; padding: 0; }
}

@media (max-width: 640px) {
  .footer-inner { padding: 0 1.6rem; }
  .footer-links { width: 30.5rem; justify-content: space-between; gap: 6.4rem; }
  .footer-copy { max-width: 19.1rem; }
}
/* /stp:footer */
/* stp:hero */
.hero { height: 79.3rem; padding: 4rem 12rem 0; background: var(--bg2); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../img/hero.webp') center bottom / cover no-repeat; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3.2rem; width: 54.3rem; }
.hero-logo { width: 24.6rem; height: 12.8rem; }
.hero-title { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 400; font-size: 6.4rem; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
.hero-title span { display: block; width: fit-content; color: transparent; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: .4rem #1b3a63; filter: drop-shadow(0 .3rem 0 rgba(15, 30, 60, .6)); }
.hero-title span:first-child { background-image: linear-gradient(180deg, #ffffff 0%, #cfeeff 50%, #8fd0f5 100%); }
.hero-title span:last-child { background-image: linear-gradient(180deg, #86e6ff 0%, #2bc6f2 55%, #0a9fd6 100%); }
.hero-text { width: 34.5rem; font-size: 2.4rem; font-weight: 700; line-height: 1.5; }
.store-btn.hero-store { animation: store-float 3s ease-in-out infinite; }
.store-btn.hero-store:hover { animation-play-state: paused; }

@media (max-width: 1024px) {
  .hero { padding: 4rem 3.2rem 0; }
  .hero-inner { width: 50rem; }
  .hero-title { font-size: 5rem; }
}

@media (max-width: 640px) {
  .hero { height: auto; padding: 1.6rem 1.6rem 6.4rem; }
  .hero::before { background: linear-gradient(180deg, var(--bg2) 0%, rgba(61, 83, 114, 0) 20%, rgba(61, 83, 114, 0) 90%, var(--bg2) 100%) center 36.4rem / 37.5rem 33.4rem no-repeat, url('../img/hero-m.webp') center 36.4rem / 37.5rem 33.4rem no-repeat; }
  .hero-inner { width: 100%; align-items: center; gap: 2.4rem; }
  .hero-logo { width: 24.6rem; height: 12.8rem; }
  .hero-title { align-items: center; font-size: 4rem; -webkit-text-stroke-width: .3rem; }
  .hero-text { width: 34.5rem; max-width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 700; text-align: center; }
  .store-btn.hero-store { margin-top: 26.4rem; }
}
/* /stp:hero */
/* stp:about */
.about-body { padding-top: 8rem; padding-bottom: 8rem; }
.about-body .sec-title { width: 88.2rem; max-width: 100%; margin: 0 auto; }
.about-row { display: flex; align-items: center; justify-content: center; gap: 3.2rem; margin: 5.6rem -4rem 0; }
.about-img { flex: 0 0 21.5rem; width: 21.5rem; height: 28.8rem; }
.about-text { flex: 1 0 0; min-width: 0; font-size: 2.4rem; font-weight: 400; line-height: 1.5; text-align: center; }

@media (max-width: 1024px) {
  .about-row { margin: 5.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 3.2rem; }
  .about-text { grid-column: 1 / -1; grid-row: 1; }
  .about-img-1 { grid-row: 2; justify-self: end; }
  .about-img-2 { grid-row: 2; justify-self: start; }
}

@media (max-width: 640px) {
  .about-body { padding-top: 8rem; padding-bottom: 8rem; }
  .about-row { display: flex; flex-direction: column; gap: 3.2rem; margin-top: 5.6rem; }
  .about-text { flex: 0 0 auto; width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about-img-1 { display: none; }
}
/* /stp:about */
/* stp:gameplay */
.gp-body { padding-top: 8rem; padding-bottom: 8rem; }
.gp-cards { display: flex; align-items: flex-start; justify-content: center; gap: 3.2rem; margin-top: 5.6rem; }
.gp-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 21rem; flex: 0 0 auto; }
.gp-icon { width: 20rem; height: 20rem; border-radius: 3.2rem; }
.gp-txt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 100%; padding: 1.2rem 0; }
.gp-txt .card-text { color: var(--txt2); width: 100%; }
.gp-txt .card-title { width: 100%; }

@media (max-width: 1024px) {
  .gp-cards { flex-wrap: wrap; gap: 4rem 3.2rem; }
}

@media (max-width: 640px) {
  .gp-body { padding-top: 8rem; padding-bottom: 8rem; }
  .gp-cards { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 3.2rem; margin-top: 5.6rem; }
  .gp-card { flex-direction: row; width: 100%; gap: 1.6rem; }
  .gp-icon { flex: 0 0 12rem; width: 12rem; height: 12rem; border-radius: 2rem; }
  .gp-txt { flex: 1 1 0; width: auto; min-width: 0; align-items: flex-start; }
  .gp-txt .card-title, .gp-txt .card-text { text-align: left; }
}
/* /stp:gameplay */
/* stp:advantages */
.adv-body { padding-top: 8rem; }
.adv-body .sec-title { white-space: nowrap; }
.adv-cards { display: flex; align-items: stretch; justify-content: center; gap: 3.2rem; margin-top: 5.6rem; }
.adv-card { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 20rem; padding: 1.6rem; border-radius: 1.6rem; background: var(--extra); filter: drop-shadow(0 .4rem .2rem rgba(55, 65, 88, .3)); }
.adv-txt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 100%; padding: 1.2rem 0; }
.adv-txt .line { border-top-color: var(--accent3); }
.adv-txt .card-title, .adv-txt .card-text { width: 100%; }
.adv-pic { display: block; width: 100%; height: auto; margin-top: 5.6rem; }

@media (max-width: 1024px) {
  .adv-cards { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .adv-body { padding-top: 8rem; }
  .adv-body .sec-title { white-space: normal; }
  .adv-cards { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 3.2rem; margin-top: 5.6rem; }
  .adv-card { width: 100%; padding: 1.6rem; }
  .adv-card:first-child { padding: .8rem 3.2rem; }
  .adv-pic { margin-top: 5.6rem; }
}
/* /stp:advantages */
/* stp:gallery */
.gal-body { padding: 8rem 0; }
.gal-cards { display: flex; align-items: flex-start; justify-content: center; gap: 3.2rem; }
.gal-card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; flex: 0 0 auto; width: 27rem; }
.gal-img { width: 100%; height: auto; aspect-ratio: 270 / 480; object-fit: cover; border: 1px solid var(--extra); border-radius: 1.2rem; }
.gal-txt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 100%; padding: 1.2rem 3.2rem; }
.gal-txt .card-title, .gal-txt .card-text { width: 100%; }
.gal-txt .card-text { color: var(--txt2); }

@media (max-width: 1024px) {
  .gal-cards { flex-wrap: wrap; gap: 4rem 3.2rem; max-width: 66.8rem; margin: 0 auto; }
}

@media (max-width: 640px) {
  .gal-body { padding: 8rem 0; }
  .gal-cards { flex-wrap: nowrap; justify-content: flex-start; gap: 1.6rem; max-width: none; margin: 0; padding: 0 3.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gal-cards::-webkit-scrollbar { display: none; }
  .gal-card { scroll-snap-align: center; }
}
/* /stp:gallery */
/* stp:contact */
.contact-body { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding-top: 11.1rem; }
.contact-body .sec-title { width: 75.2rem; max-width: 100%; }
.mailto { display: flex; align-items: center; gap: 2.4rem; font-size: 2.4rem; line-height: 1.5; white-space: nowrap; }
.mailto img { width: 4rem; height: 4rem; }
.mailto:hover { color: var(--accent1); opacity: .85; }
.contact-pic { display: block; width: 100%; height: auto; margin-top: 5.6rem; }

@media (max-width: 640px) {
  .contact-body { padding-top: 11.1rem; }
}
/* /stp:contact */
/* stp:why-play */
.why-body { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding-top: 8rem; padding-bottom: 8rem; }
.why-body .sec-title { white-space: nowrap; }
.why-text { width: 80rem; max-width: 100%; font-size: 2.4rem; font-weight: 400; line-height: 1.5; text-align: center; }

@media (max-width: 640px) {
  .why-body .sec-title { white-space: normal; }
  .why-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:why-play */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg1); }
.legal-main { flex: 1 0 auto; padding-top: 5.7rem; }
.legal-header { padding: 1.5rem 12rem; background: var(--bg1); justify-content: flex-start; }
.back-link { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.8rem; line-height: 1.5; color: var(--txt2); }
.back-link::before { content: ''; width: .9rem; height: .9rem; margin: 0 .5rem 0 .7rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back-link:hover { color: var(--accent1); }
.legal-page { width: 100%; max-width: 120rem; margin: 0 auto; padding: 8rem 0; }
.legal-content { width: 99.5rem; max-width: 100%; margin: 0 auto; font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.5; color: var(--txt2); }
.legal-content h1 { margin: 0 -10.3rem 5.6rem; font-family: var(--font-head); font-weight: 400; font-size: 5.6rem; line-height: 1.3; color: var(--txt2); }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 2.4rem 0 1.6rem; font-size: 2.4rem; font-weight: 400; line-height: 1.5; color: var(--txt2); }
.legal-content h3, .legal-content h4 { font-size: 1.8rem; }
.legal-content p { margin: 0 0 1.6rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.6rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: .8rem; }
.legal-content a { color: var(--txt1); text-decoration: underline; }
.legal-content a:hover { color: var(--accent1); }
.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-header { padding: 1.5rem 3.2rem; }
  .legal-page { padding: 6.4rem 3.2rem 8rem; }
  .legal-content h1 { margin: 0 0 4rem; font-size: 4.8rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 5.1rem; }
  .legal-header { padding: 1.2rem 1.6rem; }
  .legal-page { padding: 6.4rem 1.6rem 8rem; }
  .legal-content h1 { margin: 0 0 5.6rem; font-size: 4rem; }
  .legal-content h2 { font-size: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title { --ta-k: 1; }
.anim-on .hero-title > span { background-image: none; }
.anim-on .hero-title > span:first-child { --ta-g: linear-gradient(180deg, #ffffff 0%, #cfeeff 50%, #8fd0f5 100%); }
.anim-on .hero-title > span:last-child { --ta-g: linear-gradient(180deg, #86e6ff 0%, #2bc6f2 55%, #0a9fd6 100%); }
.anim-on .hero-title span.ta-w { display: inline-block; width: auto; white-space: nowrap; background-image: none; filter: none; }
.anim-on .hero-title span.ta-l { display: inline-block; width: auto; filter: none; background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%), var(--ta-g); background-size: 300% 100%, 100% 100%; background-position: 0% 0, 0 0; background-repeat: no-repeat; animation: ta-snap .8s cubic-bezier(.2, .85, .3, 1) calc(.9s + var(--i) * .04s) both; }
.anim-on .hero-title > span:last-child span.ta-w:last-child span.ta-l { animation: ta-snap .8s cubic-bezier(.2, .85, .3, 1) calc(.9s + var(--i) * .04s) both, ta-glint 5s linear calc(3.4s + var(--i) * .05s) infinite; }

@keyframes ta-snap {
  0% { opacity: 0; transform: translate(calc(var(--x) * var(--ta-k)), calc(var(--y) * var(--ta-k))) rotate(var(--r)) scale(.4); filter: brightness(1); }
  55% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1.14); filter: brightness(1.7); }
  78% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(.95); filter: brightness(1.15); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); filter: brightness(1); }
}
@keyframes ta-glint {
  0% { background-position: 100% 0, 0 0; }
  16%, 100% { background-position: 0% 0, 0 0; }
}

.anim-on .sec-title { perspective: 60rem; }
.anim-on .sec-title .ta-w { display: inline-block; white-space: nowrap; opacity: 0; transform: rotateX(-95deg); transform-origin: 50% 0; }
.anim-on .sec-title.is-in .ta-w { animation: ta-flip .75s cubic-bezier(.3, 1.45, .55, 1) calc(var(--i) * .08s) both; }

@keyframes ta-flip {
  0% { opacity: 0; transform: rotateX(-95deg); filter: drop-shadow(0 0 0 rgba(12, 184, 235, 0)) brightness(1.4); }
  50% { opacity: 1; filter: drop-shadow(0 0 .8rem var(--accent2)) brightness(1.4); }
  100% { opacity: 1; transform: rotateX(0deg); filter: drop-shadow(0 0 0 rgba(12, 184, 235, 0)) brightness(1); }
}

@media (max-width: 640px) {
  .anim-on .hero-title { --ta-k: .45; }
  .anim-on .hero-title span.ta-l { animation-duration: .65s; animation-delay: calc(.8s + var(--i) * .03s); }
  .anim-on .hero-title > span:last-child span.ta-w:last-child span.ta-l { animation-duration: .65s, 5s; animation-delay: calc(.8s + var(--i) * .03s), calc(2.8s + var(--i) * .05s); }
  .anim-on .sec-title.is-in .ta-w { animation-duration: .6s; animation-delay: calc(var(--i) * .06s); }
}
/* /stp:title-anim */
