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

:root {
  --accent: #936230;
  --txt1: #e1e1e1;
  --txt2: #a9a9ab;
  --bg1: #030304;
  --bg2: #0d0d0e;
  --line: rgba(147, 98, 48, 0.3);
  --card-border: rgba(90, 68, 42, 0.4);
  --font: 'Encode Sans 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(--txt2);
}
html.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg1); font-size: clamp(14px, 1.6rem, 1.6rem); overflow-x: hidden; }
main { display: block; }
img, svg { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { font-weight: inherit; }

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

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

.section-label {
  padding: 8rem 0 2.4rem;
  font-size: 2.4rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
}
.line { display: block; width: 100%; height: 1px; margin-bottom: -1px; background: var(--line); }

@media (max-width: 1024px) {
  .section-label { padding: 8rem 0 2.4rem; }
}
/* /stp:base */
/* stp:header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 8rem 1.2rem;
  background: linear-gradient(90deg, rgba(10, 14, 17, 0.1), rgba(10, 14, 17, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  background-color: rgba(3, 3, 4, 0.92);
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; justify-content: center; gap: 3.2rem; }
.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;
  color: var(--txt2);
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.nav-link.active { opacity: 1; }
.nav-link:hover { opacity: 1; color: var(--accent); }

.burger-btn { display: none; position: relative; width: 2.4rem; height: 2.4rem; transition: opacity 0.3s ease; }
.burger-btn:hover { opacity: 0.7; }
.burger-btn span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 0.1rem;
  margin: -0.05rem 0 0 -0.55rem;
  background: var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn span:nth-child(1) { transform: translateY(-0.4rem); }
.burger-btn span:nth-child(3) { transform: translateY(0.4rem); }
.burger-btn.act span:nth-child(1) { transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: rotate(-45deg); }

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

@media (max-width: 640px) {
  .header { justify-content: flex-end; padding: 1.6rem 1.6rem 0.8rem; background: none; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:header */
/* stp:menu */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  padding: 8rem 1.6rem 3.2rem;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.menu-nav { display: flex; flex-direction: column; align-items: center; gap: 3.4rem; }
.menu-nav .nav-link { width: 20rem; height: 4rem; padding: 0.8rem 0; font-size: clamp(14px, 1.6rem, 1.6rem); }
/* /stp:menu */
/* stp:hero */
#hero { position: relative; height: 90rem; overflow: hidden; background: var(--bg1); }
.hero-bg { position: absolute; left: 0; bottom: 0; width: 100%; height: 58.2rem; }
.hero-bg picture, .hero-bg img { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0) 69.931%, rgba(3, 3, 4, 0.7) 84.717%, #030304 100%),
    linear-gradient(180deg, #0e0e0e 0%, rgba(14, 14, 14, 0) 100%);
}
.hero-mt { position: absolute; top: 13.4rem; left: 50%; width: 124.9rem; transform: translateX(-50%); }
.hero-mt img { width: 100%; height: auto; }
.hero-logo { position: absolute; top: 13.4rem; left: calc(50% - 16.3rem); width: 30rem; transition: opacity 0.3s ease; }
.hero-logo:hover { opacity: 0.8; }
.hero-title {
  position: absolute;
  top: 26.3rem;
  left: 0;
  width: 100%;
  font-size: 10.4rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--txt1);
}
.hero-text {
  position: absolute;
  top: 79.6rem;
  left: 0;
  width: 100%;
  font-size: clamp(14px, 1.6rem, 1.6rem);
  letter-spacing: 0.32em;
  text-align: center;
  white-space: nowrap;
  color: var(--txt2);
}

@media (max-width: 1024px) {
  .hero-mt { width: 98rem; }
  .hero-title { font-size: 7.6rem; }
  .hero-text { top: 78rem; padding: 0 4rem; white-space: normal; }
}

@media (max-width: 640px) {
  #hero { height: 81.2rem; }
  .hero-bg { top: 47.9rem; bottom: auto; height: 23rem; }
  .hero-mt { top: 17.4rem; left: 1.6rem; width: 34.3rem; transform: none; }
  .hero-logo { top: 7.2rem; left: 3.7rem; }
  .hero-title { top: 35.5rem; left: 1.6rem; width: 34.3rem; font-size: 5.4rem; text-align: left; white-space: normal; }
  .hero-text { top: 69.4rem; left: 2.1rem; width: 33.3rem; padding: 0; font-size: clamp(12px, 1.2rem, 1.2rem); }
}
/* /stp:hero */
/* stp:about */
#about { padding-bottom: 8rem; }
.about-body { display: flex; align-items: center; gap: 4.8rem; width: 100%; max-width: 128rem; margin: 6.4rem auto 0; }
.about-txt { display: flex; flex: 1 1 0; flex-direction: column; gap: 2.5rem; min-width: 0; }
.about-title { font-size: 4rem; color: var(--txt1); }
.about-pic { flex: none; width: 81rem; height: 44.4rem; }
.about-pic img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.35) contrast(0.93) saturate(0.89); }

@media (max-width: 1024px) {
  .about-body { flex-direction: column; gap: 4rem; padding: 0 4rem; }
  .about-txt { flex: none; width: 100%; }
  .about-pic { width: 100%; height: auto; aspect-ratio: 810 / 444; }
}

@media (max-width: 640px) {
  #about { padding-bottom: 0; }
  .about-body { padding: 0; }
  .about-txt { padding: 0 1.6rem; text-align: center; }
  .about-title { font-size: 3.6rem; }
  .about-txt p { padding: 0 0.5rem; }
  .about-pic { height: 26.6rem; aspect-ratio: auto; }
}
/* /stp:about */
/* stp:how-to-play */
#how-to-play { padding-bottom: 8rem; }
.how-title { margin-top: 6.4rem; font-size: 4rem; font-weight: 500; text-align: center; text-transform: uppercase; color: var(--txt2); }
.how-cards { display: flex; justify-content: center; gap: 2.4rem; width: 100%; max-width: 128rem; margin: 6.4rem auto 0; }
.how-card {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  width: 23rem;
  padding: 2.3rem;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 0.8rem;
}
.how-card img { width: 10rem; height: 10rem; opacity: 0.4; }
.how-card-txt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 100%; text-align: center; }
.how-card-txt h3 { width: 19rem; font-size: clamp(14px, 1.6rem, 1.6rem); text-transform: uppercase; color: var(--txt1); }
.how-card-txt p { width: 15rem; font-size: clamp(12px, 1.2rem, 1.2rem); }

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

@media (max-width: 640px) {
  .how-title { padding: 0 1.6rem; font-size: 3.6rem; }
  .how-cards { flex-direction: column; align-items: stretch; max-width: none; padding: 0 2.1rem; }
  .how-card { flex-direction: row; align-items: center; width: 100%; }
  .how-card img { width: 7.2rem; height: 7.2rem; }
  .how-card-txt { align-items: flex-start; justify-content: center; text-align: left; }
  .how-card-txt h3, .how-card-txt p { width: 100%; }
}
/* /stp:how-to-play */
/* stp:features */
#features { padding-bottom: 8rem; }
.features-title { display: flex; flex-direction: column; align-items: center; margin-top: 6.4rem; text-align: center; }
.features-title span:first-child { font-size: 4rem; opacity: 0.6; color: var(--txt2); }
.features-title span:last-child { font-size: 4.8rem; font-weight: 500; text-transform: uppercase; color: var(--txt1); }
.features-cards { display: flex; flex-direction: column; gap: 4.8rem; width: 100%; max-width: 128rem; margin: 5.2rem auto 0; }
.feature { display: flex; align-items: center; justify-content: center; gap: 4.8rem; }
.feature:nth-child(even) { flex-direction: row-reverse; }
.feature picture { flex: none; width: 83rem; height: 24.9rem; }
.feature img { width: 100%; height: 100%; border-radius: 0.8rem; filter: grayscale(1); }
.feature-descr { display: flex; flex: 1 1 0; flex-direction: column; gap: 1.6rem; min-width: 0; }
.feature-descr h3 { font-size: 2.4rem; font-weight: 600; text-transform: uppercase; color: var(--txt1); }

@media (max-width: 1024px) {
  .features-title span:last-child { font-size: 4.4rem; }
  .features-cards { gap: 6rem; padding: 0 4rem; }
  .feature, .feature:nth-child(even) { flex-direction: column; gap: 2.4rem; }
  .feature picture { width: 100%; height: auto; aspect-ratio: 830 / 249; }
  .feature-descr { flex: none; width: 100%; text-align: center; }
}

@media (max-width: 640px) {
  .features-title { gap: 0.8rem; padding: 0 1.6rem; margin-top: 6.4rem; }
  .features-title span:first-child { font-size: 3.6rem; }
  .features-title span:last-child { font-size: 4.8rem; line-height: 1.3; }
  .features-cards { gap: 4.8rem; margin-top: 6.4rem; padding: 0 1.6rem; }
  .feature picture { height: 12.4rem; aspect-ratio: auto; }
  .feature-descr p { font-size: clamp(12px, 1.2rem, 1.2rem); }
}
/* /stp:features */
/* stp:faq */
#faq { padding-bottom: 8rem; }
.faq-title { margin-top: 6.4rem; font-size: 4rem; font-weight: 500; text-align: center; text-transform: uppercase; color: var(--txt2); }
.faq-list { display: flex; align-items: start; gap: 2.4rem; width: 100%; max-width: 128rem; margin: 6.4rem auto 0; }
.faq-item { flex: 1 1 0; min-width: 0; padding: 4.7rem 1.6rem; background: var(--bg2); border-radius: 0.8rem; text-align: center; transition: background-color 0.3s ease; }
.faq-item:hover { background: #121214; }
.faq-item summary { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: block; min-height: 7.2rem; font-size: 2.4rem; text-wrap: balance; color: var(--txt1); }
.faq-icon { position: relative; flex: none; width: 1.6rem; height: 1.6rem; }
.faq-icon::before { content: ""; position: absolute; inset: 0; background: var(--accent); transition: transform 0.3s ease; }
.faq-item[open] .faq-icon::before { transform: scale(0.7071) rotate(45deg); }
.faq-a { margin-top: 2.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); text-wrap: balance; }

@media (max-width: 1024px) {
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; padding: 0 4rem; }
}

@media (max-width: 640px) {
  .faq-list { display: flex; flex-direction: column; padding: 0 2.1rem; }
}
/* /stp:faq */
/* stp:contact */
#contact { position: relative; padding-bottom: 58.2rem; }
.contact-txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4.8rem; margin-top: 6.4rem; }
.contact-title {
  font-size: 8rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(43, 44, 44, 0.5), rgba(169, 169, 171, 0.5));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mail-link { display: flex; align-items: center; gap: 1.2rem; font-size: 2.4rem; color: var(--txt1); transition: color 0.3s ease, opacity 0.3s ease; }
.mail-link img { width: 3.2rem; height: 3.2rem; }
.mail-link:hover { color: var(--accent); opacity: 0.85; }
.contact-bg { position: absolute; left: 0; bottom: 0; width: 100%; height: 60.4rem; }
.contact-bg picture, .contact-bg img { width: 100%; height: 100%; }
.contact-bg img { object-fit: cover; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #030304 0%, rgba(3, 3, 4, 0) 31.623%); }

@media (max-width: 1024px) {
  .contact-title { padding: 0 4rem; font-size: 6.2rem; white-space: normal; }
}

@media (max-width: 640px) {
  #contact { padding-bottom: 25.1rem; }
  .contact-txt { padding: 0 2.1rem; }
  .contact-title { padding: 0; font-size: 6.1rem; line-height: 1.3; }
  .contact-bg { height: 21.1rem; }
}
/* /stp:contact */
/* stp:footer */
.footer { padding: 7.9rem 0 9.7rem; background: var(--bg1); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; width: 100%; max-width: 128rem; margin: 0 auto; }
.footer-logo { display: block; width: 25.2rem; height: 5.5rem; transition: opacity 0.3s ease; }
.footer-logo:hover { opacity: 0.8; }
.footer-links { display: flex; align-items: center; justify-content: space-between; gap: 6.4rem; width: 27.9rem; padding: 0 1.6rem; }
.footer-link { text-decoration: underline; transition: color 0.3s ease; }
.footer-link:hover { color: var(--accent); }

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

@media (max-width: 640px) {
  .footer { padding-bottom: 8.1rem; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 3.2rem; padding: 0 1.6rem; }
  .footer-logo { order: 1; margin-bottom: 1.6rem; }
  .footer-links { order: 2; width: 30.5rem; padding: 0; }
  .footer-copy { order: 3; 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.6rem; }
.legal-header { justify-content: flex-start; padding: 5.6rem 12rem 1.6rem; }
.back-link { display: flex; align-items: center; gap: 0.8rem; font-size: clamp(12px, 1.2rem, 1.2rem); color: var(--txt1); transition: color 0.3s ease, opacity 0.3s ease; }
.back-link img { width: 2.4rem; height: 2.4rem; }
.back-link:hover { color: var(--accent); }

.legal-page { padding: 0 0 8rem; }
.legal-content { width: 100%; max-width: 106.2rem; margin: 0 auto; font-size: clamp(14px, 1.4rem, 1.4rem); }
.legal-content h1 { margin: 8rem 0 6.4rem; font-size: 4.8rem; text-align: center; text-transform: uppercase; color: var(--txt1); }
.legal-content h2 { margin: 3.2rem 0 1.6rem; font-size: 2.4rem; color: var(--txt1); }
.legal-content h3 { margin: 2.4rem 0 1.6rem; font-size: 2rem; color: var(--txt1); }
.legal-content h4 { margin: 2.4rem 0 1.6rem; font-size: 1.6rem; color: var(--txt1); }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 2.1rem; }
.legal-content ul, .legal-content ol { padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.8rem; }
.legal-content strong, .legal-content b { font-weight: 600; color: var(--txt1); }
.legal-content a { text-decoration: underline; transition: color 0.3s ease; }
.legal-content a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .legal-header { padding: 5.6rem 4rem 1.6rem; }
  .legal-content { padding: 0 4rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 5.6rem; }
  .legal-header { padding: 3.2rem 1.6rem 1.6rem; }
  .legal-content { padding: 0 2.1rem; }
  .legal-content h1 { font-size: 3.2rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-ch { display: inline-block; }
.anim-on .features-title .ta-w, .anim-on .features-title .ta-ch { font-size: inherit; font-weight: inherit; text-transform: inherit; color: inherit; opacity: 1; }

.anim-on .hero-title:not(.is-in) .ta-ch { opacity: 0; }
.anim-on .hero-title.is-in .ta-ch {
  transform-origin: 50% 50%;
  animation:
    ta-tumbler 1.1s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--i) * 0.045s) both,
    ta-glint 0.7s ease-in-out calc(1.1s + var(--n) * 0.045s + var(--i) * 0.03s);
}
.anim-on .hero-title.is-in .ta-acc .ta-ch {
  animation:
    ta-tumbler 1.1s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--i) * 0.045s) both,
    ta-glint 0.7s ease-in-out calc(1.1s + var(--n) * 0.045s + var(--i) * 0.03s),
    ta-glint-loop 6s ease-in-out calc(4s + var(--n) * 0.075s + var(--i) * 0.06s) infinite;
}

.anim-on :is(.about-title, .how-title, .features-title, .faq-title) .ta-w { clip-path: inset(-0.4em -0.2em 0 -0.2em); }
.anim-on :is(.about-title, .how-title, .features-title, .faq-title):not(.is-in) .ta-ch { opacity: 0; transform: translateY(110%); }
.anim-on :is(.about-title, .how-title, .features-title, .faq-title).is-in .ta-ch {
  animation: ta-reel 0.8s cubic-bezier(0.2, 0.8, 0.25, 1) calc(var(--i) * 0.016s) both;
}

.anim-on .contact-title:not(.is-in) { opacity: 0; transform: translateY(0.4em); }
.anim-on .contact-title.is-in { animation: ta-reel-block 1s cubic-bezier(0.2, 0.8, 0.25, 1) both; }

@keyframes ta-tumbler {
  0% { opacity: 0; color: var(--accent); transform: perspective(30rem) rotateX(-90deg); }
  28% { opacity: 1; color: var(--accent); transform: perspective(30rem) rotateX(38deg); }
  48% { transform: perspective(30rem) rotateX(-22deg); }
  66% { transform: perspective(30rem) rotateX(11deg); }
  83% { transform: perspective(30rem) rotateX(-4deg); }
  100% { opacity: 1; transform: perspective(30rem) rotateX(0); }
}
@keyframes ta-glint {
  0%, 100% { text-shadow: none; }
  40% { color: #fff; text-shadow: 0 0 1.2rem var(--accent), 0 0 0.3rem var(--accent); }
}
@keyframes ta-glint-loop {
  0%, 12%, 100% { text-shadow: none; }
  5% { color: #fff; text-shadow: 0 0 1.2rem var(--accent), 0 0 0.3rem var(--accent); }
}
@keyframes ta-reel {
  0% { opacity: 0; color: var(--accent); transform: translateY(110%); }
  20% { opacity: 1; }
  65% { color: var(--accent); transform: translateY(-8%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes ta-reel-block {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(0.4em); }
  70% { opacity: 1; transform: translateY(-0.04em); }
  100% { opacity: 1; clip-path: inset(-20% -2% -20% -2%); transform: translateY(0); }
}

@media (max-width: 640px) {
  .anim-on .hero-title.is-in .ta-ch {
    animation:
      ta-tumbler 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--i) * 0.035s) both,
      ta-glint 0.6s ease-in-out calc(0.9s + var(--n) * 0.035s + var(--i) * 0.025s);
  }
  .anim-on .hero-title.is-in .ta-acc .ta-ch {
    animation:
      ta-tumbler 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--i) * 0.035s) both,
      ta-glint 0.6s ease-in-out calc(0.9s + var(--n) * 0.035s + var(--i) * 0.025s),
      ta-glint-loop 6s ease-in-out calc(3.5s + var(--n) * 0.06s + var(--i) * 0.06s) infinite;
  }
  .anim-on :is(.about-title, .how-title, .features-title, .faq-title).is-in .ta-ch {
    animation-duration: 0.65s;
    animation-delay: calc(var(--i) * 0.012s);
  }
  .anim-on .contact-title.is-in { animation-duration: 0.8s; }
}
/* /stp:title-anim */
