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

:root {
  --txt1: #dcd9ce;
  --txt2: #0b0b04;
  --accent1: #c2d724;
  --accent2: #fb468e;
  --bg1: #0b1011;
  --bg2: #1c1d1d;
  --extra: #274432;
  --font: 'Barlow Condensed', 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 {
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  color: var(--txt1);
  background: var(--bg1);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg1); }
main { display: block; }
img { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

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

html.menu-lock, html.menu-lock body { overflow: hidden; }

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

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 8rem; }
.section { padding: 8rem 0; }
.section-label { display: block; margin-bottom: 6.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent1); }
.title { font-size: 6.4rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.04em; text-transform: uppercase; }
.br-m { display: none; }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; display: flex; align-items: center; gap: 3.2rem; padding: 2.4rem 8rem 1.2rem; background: linear-gradient(90deg, var(--bg1) 0%, rgba(11, 16, 17, 0.83) 53.115%, rgba(11, 16, 17, 0) 56.787%); transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out; }
.header.scrolled { background: var(--bg1); box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35); }
.header-logo { display: block; flex: none; width: 3.2rem; height: 3.2rem; transition: opacity 0.3s ease-in-out; }
.header-logo img { width: 100%; height: 100%; object-fit: cover; }
.header-logo:hover { opacity: 0.7; }
.header-nav { display: flex; align-items: center; gap: 0.8rem; }
.nav-link { display: flex; align-items: center; justify-content: center; padding: 0.8rem 1.2rem; font-size: clamp(12px, 1.2rem, 1.2rem); text-transform: uppercase; white-space: nowrap; opacity: 0.5; transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out; }
.nav-link.active { opacity: 1; }
.nav-link:hover { opacity: 1; color: var(--accent1); }

.burger-btn { display: none; position: relative; z-index: 110; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; width: 2.4rem; height: 2.4rem; background: transparent; border: 0; }
.burger-btn span { display: block; width: 1.4rem; height: 0.2rem; background: var(--txt1); transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.burger-btn.act span:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }

#mobile-menu { position: fixed; top: 4.8rem; left: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 100%; height: 63.5rem; max-height: calc(100vh - 4.8rem); padding: 3.2rem 1.6rem; overflow-y: auto; background: var(--bg1); border-bottom: 1px solid var(--accent1); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { width: 20rem; font-size: clamp(14px, 1.6rem, 1.6rem); }

@media (max-width: 1024px) {
  .title { font-size: 5.6rem; }
  .header { background: linear-gradient(90deg, var(--bg1) 0%, rgba(11, 16, 17, 0.83) 78%, rgba(11, 16, 17, 0) 86%); }
}

@media (max-width: 640px) {
  .container { padding: 0 2.1rem; }
  .title { font-size: 4.8rem; }
  .br-m { display: inline; }
  .header { justify-content: space-between; gap: 1.6rem; height: 4.8rem; padding: 0.8rem 1.6rem; background: none; }
  .header.scrolled { background: var(--bg1); }
  .header-nav { display: none; }
  .burger-btn { display: flex; }
}
/* /stp:base */
/* stp:hero */
.hero { position: relative; height: 83.2rem; overflow: hidden; }
.hero-pic { position: absolute; top: 0; right: 0; width: 84.1rem; height: 83.2rem; object-fit: cover; object-position: right center; }
.hero-logo { position: absolute; top: 13.4rem; left: 8rem; z-index: 1; width: 56rem; height: 15.9rem; }
.hero-txt { position: absolute; top: 37.3rem; left: 8rem; z-index: 1; display: flex; flex-direction: column; gap: 8rem; }
.hero-title { font-size: 8rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; }
.hero-line { display: block; }
.hero-dot-pink { color: var(--accent2); }
.hero-dot-green { color: var(--accent1); }
.hero-sub { display: flex; flex-direction: column; gap: 4rem; width: 100%; }
.hero-tag { font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 500; letter-spacing: 0.29em; text-transform: uppercase; color: var(--accent2); opacity: 0.7; }
.hero-desc { font-size: clamp(14px, 1.6rem, 1.6rem); opacity: 0.7; }

@media (max-width: 1024px) {
  .hero-pic { width: 52rem; }
  .hero-logo { width: 44.8rem; height: 12.7rem; }
  .hero-title { font-size: 6rem; }
  .hero-txt { gap: 6.4rem; }
}

@media (max-width: 640px) {
  .hero { height: 81.2rem; }
  .hero-pic { top: auto; bottom: 0; width: 31.5rem; height: 31rem; }
  .hero-logo { top: 8.8rem; left: 4.7rem; width: 28rem; height: 8.4rem; }
  .hero-txt { top: 20.4rem; left: 2.1rem; display: block; width: 33.3rem; }
  .hero-title { font-size: 6.4rem; white-space: normal; }
  .hero-sub { display: block; }
  .hero-tag { position: absolute; top: 19.1rem; left: 18.7rem; width: 14.7rem; line-height: 1.3; text-align: right; }
  .hero-desc { position: absolute; top: 36.3rem; left: 0; width: 10.7rem; }
}
/* /stp:hero */
/* stp:about */
.about-row { display: flex; align-items: center; gap: 2.4rem; }
.about-row .title { flex: none; width: 54.3rem; }
.about-img { flex: none; width: 33.7rem; height: 23.1rem; object-fit: cover; }
.about-line { flex: none; align-self: center; width: 0; height: 22.7rem; border-left: 1px solid var(--accent1); }
.about-text { flex: 1 1 0; min-width: 0; font-size: clamp(14px, 1.6rem, 1.6rem); }

@media (max-width: 1024px) {
  .about-row { flex-wrap: wrap; }
  .about-row .title { width: 100%; }
  .about-text { flex: 1 1 30rem; }
}

@media (max-width: 640px) {
  .about { padding-bottom: 0; }
  .about-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2.4rem; }
  .about-row .title { order: 0; width: auto; }
  .about-line { order: 1; align-self: stretch; width: auto; height: 0; border-left: 0; border-top: 1px solid var(--accent1); }
  .about-text { order: 2; flex: none; }
  .about-img { order: 3; width: calc(100% + 4.2rem); height: 25.7rem; margin: 1.6rem -2.1rem 0; }
}
/* /stp:about */
/* stp:how-to-play */
.how-row { display: flex; align-items: flex-start; gap: 4.8rem; }
.how-left { flex: none; display: flex; flex-direction: column; gap: 4.8rem; width: 54.3rem; }
.how-pic { width: 100%; height: 8.4rem; }
.how-cards { flex: none; display: flex; flex-direction: column; gap: 1.2rem; width: 65.6rem; }
.how-card { display: flex; align-items: flex-end; gap: 2.4rem; box-shadow: inset 0 -1px 0 var(--bg2); white-space: nowrap; }
.how-num { font-size: 4.8rem; line-height: 1; color: var(--accent2); }
.how-body { display: flex; align-items: flex-end; gap: 2.4rem; }
.how-title { font-size: 2.4rem; text-transform: uppercase; }
.how-text { font-size: clamp(14px, 1.6rem, 1.6rem); opacity: 0.8; }

@media (max-width: 1024px) {
  .how-row { flex-direction: column; align-items: stretch; }
  .how-left { width: 100%; }
  .how-cards { width: 100%; }
}

@media (max-width: 640px) {
  .how-row { gap: 4rem; }
  .how-card { align-items: flex-start; gap: 1.2rem; white-space: normal; }
  .how-num { font-size: 4rem; }
  .how-body { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}
/* /stp:how-to-play */
/* stp:advantages */
.adv { padding-bottom: 0; }
.adv-row { display: flex; align-items: center; gap: 4.8rem; }
.adv-row .title { flex: none; width: 30.3rem; }
.adv-cards { display: flex; align-items: stretch; gap: 2.4rem; }
.adv-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4rem; width: 16.6rem; padding: 1.6rem; background: var(--bg2); text-align: center; }
.adv-icon { flex: none; width: 5.6rem; height: 5.6rem; }
.adv-body { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; width: 100%; }
.adv-title { font-size: clamp(14px, 1.6rem, 1.6rem); text-transform: uppercase; }
.adv-text { font-size: clamp(12px, 1.2rem, 1.2rem); opacity: 0.7; }
.adv-card:nth-child(3) .adv-text, .adv-card:nth-child(5) .adv-text { max-width: 11rem; }
.adv-pic { display: block; width: 100%; height: 72rem; margin-top: 4.8rem; }

@media (max-width: 1024px) {
  .adv-row { flex-direction: column; align-items: flex-start; }
  .adv-row .title { width: auto; }
  .adv-cards { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .adv-card { width: auto; }
  .adv-pic { height: 60rem; object-fit: cover; }
}

@media (max-width: 640px) {
  .adv-cards { grid-template-columns: 1fr; }
  .adv-card { flex-direction: row; justify-content: flex-start; text-align: left; }
  .adv-body { flex: 1 1 0; align-items: flex-start; width: auto; }
  .adv-card:nth-child(3) .adv-text, .adv-card:nth-child(5) .adv-text { max-width: none; }
  .br-d { display: none; }
  .adv-pic { height: 23rem; margin-top: 4rem; object-fit: fill; }
}
/* /stp:advantages */
/* stp:characters */
.char-row { display: flex; align-items: center; gap: 4.8rem; }
.char-row .title { flex: none; width: 28.4rem; }
.char-cards { display: flex; align-items: flex-start; gap: 2.4rem; }
.char-card { display: flex; flex-direction: column; align-items: center; width: 21.6rem; background: var(--bg1); }
.char-photo { position: relative; width: 100%; aspect-ratio: 1086 / 1448; margin-bottom: -3.6rem; }
.char-photo img { width: 100%; height: 100%; object-fit: cover; }
.char-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 16, 17, 0) 49.829%, var(--bg1)); }
.char-txt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; width: 100%; text-align: center; }
.char-name { font-size: 2.4rem; text-transform: uppercase; color: var(--accent2); }
.char-role { font-size: clamp(14px, 1.6rem, 1.6rem); text-transform: uppercase; }
.char-desc { max-width: 19.6rem; font-size: clamp(12px, 1.2rem, 1.2rem); opacity: 0.7; }
.char-card:nth-child(3) .char-desc { max-width: 18.6rem; }

@media (max-width: 1024px) {
  .char-row { flex-direction: column; align-items: flex-start; }
  .char-row .title { width: auto; }
  .char-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; width: 100%; }
  .char-card { width: auto; }
}

@media (max-width: 640px) {
  .char-row { gap: 4rem; }
  .char-cards { display: flex; gap: 1.2rem; width: calc(100% + 4.2rem); margin: 0 -2.1rem; padding: 0 3.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 3.2rem; scrollbar-width: none; }
  .char-cards::-webkit-scrollbar { display: none; }
  .char-card { flex: 0 0 28rem; width: 28rem; scroll-snap-align: start; }
}
/* /stp:characters */
/* stp:why-play */
.why { position: relative; overflow: hidden; background: var(--accent1); color: var(--txt2); }
.why .section-label { color: var(--txt2); }
.why-text { position: relative; z-index: 1; max-width: 79.2rem; margin: 0 auto; font-size: 3.2rem; font-weight: 500; line-height: 1.5; letter-spacing: -0.04em; text-align: center; text-transform: uppercase; }
.why-dots { position: absolute; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.why-dots::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(194, 215, 36, 0), var(--accent1)); }
.why-dots-r { top: 0.5rem; right: 0; width: 29.7rem; height: 33.4rem; background-image: url(../img/dots-right.webp); }
.why-dots-l { top: 16.8rem; left: 0; width: 27.3rem; height: 17.1rem; background-image: url(../img/dots-left.webp); transform: scaleX(-1); }

@media (max-width: 1024px) {
  .why-text { max-width: 62rem; font-size: 2.8rem; }
  .why-dots-r { width: 18rem; height: 20.2rem; }
  .why-dots-l { width: 16rem; height: 10rem; }
}

@media (max-width: 640px) {
  .why { padding-bottom: 0; }
  .why-text { max-width: none; line-height: 1.2; font-size: 3.2rem; }
  .why-dots-r { display: none; }
  .why-dots-l { position: relative; top: auto; left: auto; display: block; width: 100%; height: 23.5rem; margin-top: 2.4rem; }
}
/* /stp:why-play */
/* stp:faq */
.faq-title { margin-bottom: 4.8rem; line-height: 1.5; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 2.4rem; max-width: 84.6rem; margin: 0 auto; }
.faq-item { padding: 0 1.2rem; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; padding: 0.9rem 0; font-size: 2.4rem; list-style: none; cursor: pointer; box-shadow: inset 0 -1px 0 var(--bg2); transition: color 0.3s ease-in-out; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: ""; flex: none; width: 2.4rem; height: 2.4rem; background: url(../img/faq-open.svg) center / 2.4rem 2.4rem no-repeat; }
.faq-item[open] .faq-q::after { width: 2.1rem; height: 2.1rem; background-image: url(../img/faq-close.svg); background-size: 2.1rem 2.1rem; }
.faq-q:hover { color: var(--accent1); }
.faq-a { margin-top: 2.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); opacity: 0.7; }

@media (max-width: 640px) {
  .faq-title { margin-bottom: 4rem; }
  .faq-q { gap: 1.6rem; }
}
/* /stp:faq */
/* stp:contact */
.contact { position: relative; min-height: 44.8rem; margin-top: 1.2rem; padding-bottom: 6.6rem; overflow: hidden; }
.contact .container { position: relative; z-index: 1; }
.contact-box { display: flex; flex-direction: column; gap: 2.4rem; max-width: 49.5rem; }
.mail { display: flex; align-items: center; align-self: flex-start; gap: 2.4rem; font-size: 2.4rem; transition: color 0.3s ease-in-out; }
.mail img { flex: none; width: 3.2rem; height: 3.2rem; }
.mail:hover { color: var(--accent2); }
.contact-bg { position: absolute; right: 0; bottom: 0; width: 114.3rem; height: 44.8rem; background: url(../img/contact-1.webp) center / 100% 100% no-repeat; pointer-events: none; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(11, 16, 17, 0) 61.099%, var(--bg1)); }

@media (max-width: 1024px) {
  .contact-bg { width: 85rem; }
}

@media (max-width: 640px) {
  .contact { min-height: 0; margin-top: 0; padding-bottom: 0; }
  .contact-box { max-width: none; }
  .contact-bg { position: relative; display: block; width: 100%; height: 25.6rem; margin-top: 2.4rem; background-image: url(../img/contact-1-m.webp); }
  .contact-bg::after { display: none; }
}
/* /stp:contact */
/* stp:footer */
.footer { padding: 7.8rem 0 8.1rem; background: var(--bg1); border-top: 1px solid var(--extra); }
.footer-row { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: clamp(14px, 1.6rem, 1.6rem); }
.footer-logo { flex: none; display: block; width: 31.1rem; height: 9.2rem; transition: opacity 0.3s ease-in-out; }
.footer-logo img { width: 100%; height: 100%; }
.footer-logo:hover { opacity: 0.8; }
.footer-links { display: flex; align-items: center; justify-content: space-between; width: 27.2rem; padding: 0 1.6rem; }
.footer-links a { font-size: clamp(14px, 1.6rem, 1.6rem); text-decoration: underline; text-underline-position: from-font; transition: color 0.3s ease-in-out; }
.footer-links a:hover { color: var(--accent1); }

@media (max-width: 1024px) {
  .footer { padding: 7.9rem 0 8rem; }
  .footer-row { flex-direction: column; }
  .footer-logo { order: 0; }
  .footer-links { order: 1; width: 30.5rem; margin-top: 4.8rem; padding: 0; }
  .footer-copy { order: 2; margin-top: 3.2rem; text-align: center; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 9.9rem; }
.header-legal { display: block; gap: 0; padding: 5.6rem 12rem 1.6rem; background: var(--bg1); }
.back-link { display: inline-flex; align-items: center; gap: 0.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); transition: color 0.3s ease-in-out; }
.back-link img { flex: none; width: 2.4rem; height: 2.4rem; }
.back-link:hover { color: var(--accent1); }
.legal-page { padding: 8rem 2rem; }
.legal-content { max-width: 106.2rem; margin: 0 auto; }
.legal-content h1 { margin-bottom: 4.8rem; font-size: 6.4rem; font-weight: 500; line-height: 1.5; text-align: center; text-transform: uppercase; }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 2.4rem 0 1.6rem; font-size: 2.4rem; line-height: 1.5; text-transform: uppercase; }
.legal-content p, .legal-content li { font-size: clamp(14px, 1.4rem, 1.4rem); }
.legal-content ul, .legal-content ol { margin: 0; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { text-decoration: underline; transition: color 0.3s ease-in-out; }
.legal-content a:hover { color: var(--accent1); }
.legal-content strong, .legal-content b { font-weight: 500; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }

@media (max-width: 640px) {
  .legal-main { padding-top: 5.6rem; }
  .header-legal { height: auto; padding: 2.3rem 1.6rem 0.6rem; }
  .legal-page { padding: 8rem 2.1rem; }
  .legal-content h1 { font-size: 4.8rem; }
}
/* /stp:legal */
/* stp:title-anim */
.ta-w { display: inline-block; white-space: nowrap; }
.ta-c { display: inline-block; }
.anim-on .hero-title .ta-c { position: relative; color: transparent; }
.anim-on .hero-title .ta-c::after { content: attr(data-s); position: absolute; top: 0; left: 50%; color: var(--tc, var(--accent1)); transform: translateX(-50%); filter: drop-shadow(0 0 0.6rem var(--tc, var(--accent1))); }
.anim-on .hero-title .ta-c.is-set { color: inherit; animation: ta-lock 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.anim-on .hero-title .ta-c.is-set::after { content: none; }
.anim-on .hero-title.is-done .hero-dot-green .ta-c { animation: ta-live 4.5s ease-in-out 1s infinite; }
@keyframes ta-lock {
  0% { color: var(--accent1); transform: translateY(-0.12em); filter: drop-shadow(0 0 0.8rem var(--accent1)); }
  60% { transform: translateY(0.03em); }
  100% { transform: translateY(0); filter: drop-shadow(0 0 0 transparent); }
}
@keyframes ta-live {
  0%, 82%, 100% { opacity: 1; filter: drop-shadow(0 0 0 transparent); }
  87% { opacity: 0.3; }
  92% { opacity: 1; filter: drop-shadow(0 0 1rem var(--accent1)); }
}

.anim-on .title .ta-w { position: relative; color: transparent; }
.anim-on .title .ta-w::after { content: ''; position: absolute; top: 0.1em; bottom: 0.08em; left: -0.04em; right: 0; background: var(--accent1); clip-path: inset(0 100% 0 0); }
.anim-on .title.is-in .ta-w { animation: ta-row-txt 0.9s ease-out calc(var(--i) * 0.07s) both; }
.anim-on .title.is-in .ta-w::after { animation: ta-row-flash 0.7s cubic-bezier(0.7, 0, 0.3, 1) calc(var(--i) * 0.07s) both; }
@keyframes ta-row-flash {
  0% { clip-path: inset(0 100% 0 0); }
  48%, 52% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
@keyframes ta-row-txt {
  0%, 45% { color: transparent; }
  46% { color: var(--accent1); }
  100% { color: var(--txt1); }
}

@media (max-width: 640px) {
  .anim-on .hero-title .ta-c.is-set { animation-duration: 0.45s; }
  .anim-on .title.is-in .ta-w { animation-duration: 0.7s; animation-delay: calc(var(--i) * 0.05s); }
  .anim-on .title.is-in .ta-w::after { animation-duration: 0.55s; animation-delay: calc(var(--i) * 0.05s); }
}
/* /stp:title-anim */
