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

:root {
  --txt1: #100c13;
  --extra: #6f440d;
  --txt2: #fff6c9;
  --bg2: #181220;
  --bg1: #e3d7c5;
  --gold: #af9052;
  --bg: #181220;
  --font-title: 'Stint Ultra Condensed', serif;
  --font-text: 'Afacad', sans-serif;
  --font-faq: '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-text);
  font-weight: 400;
  line-height: 1.5;
  color: var(--txt2);
}
html.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg2); }
h1, h2, h3, p, ul, ol, li { margin: 0; padding: 0; }
h1, h2, h3 { font-size: inherit; font-weight: 400; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
picture { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
section { position: relative; }
main { padding-top: 7rem; }

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

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 8rem; }

.section-label { margin: 0 0 6.4rem; font-size: 2.4rem; line-height: 1.5; text-transform: uppercase; text-align: center; color: var(--gold); }
.section-title { padding-top: 0.4rem; font-family: var(--font-title); font-size: 4.8rem; line-height: 1.5; text-transform: capitalize; text-align: center; }
.decor { width: 39.7rem; height: 1.7rem; }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--bg2); box-shadow: 0 1px 0 transparent; transition: box-shadow 0.3s ease-in-out; }
.header.scrolled { box-shadow: 0 1px 0 var(--gold), 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 144rem; margin: 0 auto; padding: 2.4rem 8rem 1.2rem; }
.logo { display: block; transition: opacity 0.3s ease-in-out; }
.logo:hover { opacity: 0.8; }
.logo img { width: 11.7rem; height: 3.2rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { display: block; padding: 0.8rem 1.2rem; font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; text-transform: uppercase; color: var(--txt2); opacity: 0.5; transition: opacity 0.3s ease-in-out; }
.nav-link:hover, .nav-link.active { opacity: 1; }
.header__partner { width: 15.8rem; height: 3.4rem; }
.burger-btn { display: none; position: relative; width: 2.4rem; height: 2.4rem; padding: 0; background: transparent; border: 0; border-radius: 0.2rem; transition: opacity 0.3s ease-in-out; }
.burger-btn:hover { opacity: 0.7; }
.burger-btn span { position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1px; margin-left: -0.55rem; background: var(--bg1); transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.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: translateY(0) rotate(45deg); }
.burger-btn.act span:nth-child(3) { transform: translateY(0) rotate(-45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }

#mobile-menu { position: fixed; top: 4.8rem; left: 0; width: 100%; z-index: 99; background: var(--bg2); border-bottom: 1px solid var(--gold); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-in-out; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.menu-nav { display: flex; flex-direction: column; align-items: center; gap: 3.7rem; padding: 3.2rem 1.6rem; }
.menu-nav .nav-link { width: 20rem; padding: 0.8rem 0; font-size: clamp(14px, 1.6rem, 1.6rem); text-align: center; }

.footer { background: var(--bg2); color: var(--bg1); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 144rem; margin: 0 auto; padding: 8rem 8rem 6.9rem; }
.footer__copy { font-size: clamp(14px, 1.6rem, 1.6rem); white-space: nowrap; }
.footer__logo { display: block; transition: opacity 0.3s ease-in-out; }
.footer__logo:hover { opacity: 0.8; }
.footer__logo img { width: 30.3rem; height: 8.3rem; }
.footer__links { display: flex; align-items: center; justify-content: space-between; gap: 6.4rem; width: 32.4rem; padding: 0 1.6rem; }
.footer__links a { font-size: clamp(14px, 1.6rem, 1.6rem); text-decoration: underline; text-underline-position: from-font; white-space: nowrap; transition: color 0.3s ease-in-out; }
.footer__links a:hover { color: var(--gold); }

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

@media (max-width: 1024px) {
  .header__inner { padding: 2.4rem 3.2rem 1.2rem; }
  .container { padding: 0 4rem; }
  .footer__inner { flex-direction: column; gap: 3.2rem; padding: 6rem 4rem 5rem; }
}

@media (max-width: 640px) {
  main { padding-top: 0; }
  .container { padding: 0 2.6rem; }
  .section-label { font-size: 2.4rem; }
  .section-title { padding-top: 0; font-size: 3.2rem; line-height: 1.2; }
  .decor { width: 31.3rem; height: 1.2rem; }
  .header__inner { height: 4.8rem; padding: 0.8rem 1.6rem; }
  .nav, .header__partner { display: none; }
  .burger-btn { display: block; background: var(--txt1); }
  .footer__inner { gap: 3.2rem; padding: 8rem 1.6rem 6.9rem; }
  .footer__logo { order: 1; }
  .footer__links { order: 2; width: 30.5rem; padding: 0; }
  .footer__copy { order: 3; white-space: normal; text-align: center; }
}
/* /stp:base */
/* stp:hero */
.hero { height: 74.8rem; overflow: hidden; background: var(--bg1); color: var(--txt1); }
.hero__pic { position: absolute; inset: 0; }
.hero__pic img { width: 100%; height: 100%; object-fit: fill; }
.hero__txt { position: relative; display: flex; flex-direction: column; gap: 4.8rem; width: 43.5rem; margin-left: 8rem; padding: 12rem 0 0 2.4rem; }
.hero__txt h1 { font-family: var(--font-title); font-size: 8rem; font-weight: 400; line-height: 0.9; }
.hero__txt p { font-family: var(--font-title); font-size: 2.4rem; line-height: 1.3; text-transform: uppercase; color: var(--extra); }

@media (max-width: 1024px) {
  .hero__pic img { object-fit: cover; object-position: left center; }
}

@media (max-width: 640px) {
  .hero { height: 81.2rem; }
  .hero__pic img { object-fit: cover; object-position: center; }
  .hero__txt { gap: 2rem; width: 27.3rem; margin: 0 auto; padding: 7.2rem 0 0; text-align: center; }
  .hero__txt h1 { font-size: 5.4rem; }
  .hero__txt .decor { display: none; }
  .hero__txt p { width: 26.3rem; margin: 0 auto; font-size: 2rem; }
}
/* /stp:hero */
/* stp:about */
.about { padding: 8rem 0; background: var(--bg2); }
.about__row { display: flex; align-items: center; gap: 4.8rem; }
.about__pic { flex: 0 0 auto; }
.about__pic img { width: 80.4rem; height: 40.2rem; }
.about__txt { display: flex; flex: 1 1 0; flex-direction: column; gap: 2.4rem; min-width: 0; }
.about__title { font-family: var(--font-title); font-size: 4.8rem; font-weight: 400; line-height: 1.5; text-transform: capitalize; }
.about__txt p { font-size: clamp(14px, 1.6rem, 1.6rem); opacity: 0.7; }

@media (max-width: 1024px) {
  .about__row { flex-direction: column; gap: 4rem; }
  .about__pic { width: 100%; }
  .about__pic img { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .about__txt { width: 100%; }
}

@media (max-width: 640px) {
  .about { padding: 8rem 0 0; }
  .about__row { flex-direction: column-reverse; gap: 4rem; }
  .about__pic { width: calc(100% + 5.2rem); margin: 0 -2.6rem; }
  .about__pic img { height: 25.1rem; aspect-ratio: auto; }
  .about__txt { align-items: center; width: 31.3rem; text-align: center; }
  .about__title { font-size: 3.2rem; line-height: 1.2; }
}
/* /stp:about */
/* stp:how-to-play */
.how { padding: 8rem 0; background: var(--bg1); color: var(--txt1); }
.how::before { content: ""; position: absolute; inset: 0; background: url(../img/texture.webp) center / cover no-repeat; opacity: 0.2; pointer-events: none; }
.how .container { position: relative; }
.how__cards { display: flex; justify-content: center; gap: 2.4rem; margin-top: 4rem; }
.how__card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; width: 23rem; text-align: center; }
.how__card img { width: 16rem; height: 16rem; }
.how__txt { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.how__txt h3 { font-size: 2rem; font-weight: 400; line-height: 1.3; text-transform: uppercase; }
.how__txt p { width: 16rem; font-size: clamp(14px, 1.6rem, 1.6rem); opacity: 0.7; }

@media (max-width: 1024px) {
  .how__cards { display: grid; grid-template-columns: repeat(3, 23rem); justify-content: center; gap: 4rem 2.4rem; }
}

@media (max-width: 640px) {
  .how { padding: 8rem 0; }
  .how .container { padding: 0 1.6rem; }
  .how .section-title { margin: 0 1rem; }
  .how__cards { display: flex; flex-direction: column; align-items: stretch; gap: 2.4rem; margin-top: 4.8rem; }
  .how__card { flex-direction: row; align-items: flex-start; gap: 0.8rem; width: auto; text-align: left; }
  .how__card img { flex: 0 0 auto; width: 9rem; height: 9rem; }
  .how__txt { flex: 1 1 0; align-items: flex-start; min-width: 0; }
  .how__txt h3 br { display: none; }
  .how__txt p { width: auto; }
}
/* /stp:how-to-play */
/* stp:features */
.features { padding: 8rem 0; background: var(--bg2); }
.features__row { display: flex; align-items: center; gap: 4.8rem; margin-top: 4.8rem; }
.features__pic { flex: 0 0 auto; width: 73.2rem; height: 58.8rem; }
.features__list { display: flex; flex: 1 1 0; flex-direction: column; gap: 2.4rem; min-width: 0; }
.features__item { display: flex; align-items: center; gap: 2.4rem; }
.features__item img { flex: 0 0 auto; width: 5.6rem; height: 5.6rem; opacity: 0.7; }
.features__txt { display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 1.6rem; min-width: 0; }
.features__txt h3 { font-size: 2rem; font-weight: 400; line-height: 1.3; text-transform: uppercase; }
.features__txt p { font-size: clamp(14px, 1.6rem, 1.6rem); opacity: 0.7; }
.features__decor { width: 100%; height: 1.2rem; opacity: 0.5; }

@media (max-width: 1024px) {
  .features__row { flex-direction: column; gap: 4rem; }
  .features__pic { width: 100%; height: auto; aspect-ratio: 732 / 588; }
  .features__list { width: 100%; }
}

@media (max-width: 640px) {
  .features .container { padding: 0 1.6rem; }
  .features .section-title { margin: 0 1rem; }
  .features__row { flex-direction: column-reverse; gap: 4rem; margin-top: 4.8rem; }
  .features__pic { width: calc(100% + 3.2rem); max-width: none; height: 30.1rem; margin: 0 -1.6rem; aspect-ratio: auto; }
  .features__item { gap: 1.6rem; }
  .features { padding-bottom: 0; }
}
/* /stp:features */
/* stp:faq */
.faq { padding: 8rem 0; background: var(--bg1); color: var(--txt1); }
.faq::before { content: ""; position: absolute; inset: 0; background: url(../img/faq-bg.webp) center / cover no-repeat; opacity: 0.2; pointer-events: none; }
.faq .container { position: relative; }
.faq .section-title { padding-top: 0; }
.faq__list { display: flex; flex-direction: column; gap: 2.4rem; width: 84.6rem; max-width: 100%; margin: 4.8rem auto 0; }
.faq__item { padding: 0 1.2rem; font-family: var(--font-faq); font-weight: 300; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; min-height: 5.4rem; border-bottom: 1px solid var(--gold); font-size: 2.4rem; line-height: 1.5; list-style: none; cursor: pointer; transition: color 0.3s ease-in-out; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--extra); }
.faq__item summary::after { content: ""; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; background: linear-gradient(var(--extra), var(--extra)) center / 100% 0.2rem no-repeat, linear-gradient(var(--extra), var(--extra)) center / 0.2rem 100% no-repeat; transition: transform 0.3s ease-in-out; }
.faq__item[open] summary::after { transform: rotate(45deg) scale(1.17); }
.faq__item p { margin-top: 2.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); opacity: 0.7; }

@media (max-width: 640px) {
  .faq { padding: 8rem 0; }
  .faq .container { padding: 0 2.1rem; }
  .faq__list { margin-top: 4.8rem; }
  .faq__item summary { gap: 1.6rem; }
}
/* /stp:faq */
/* stp:contact */
.contact { padding: 8rem 0 10.4rem; background: var(--bg2); }
.contact__pic { position: absolute; inset: 0; }
.contact__pic img { width: 100%; height: 100%; object-fit: cover; }
.contact__body { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact__body .section-title { max-width: 56.2rem; }
.contact__mail { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.contact__mail:hover { color: var(--gold); }
.contact__mail img { width: 2.4rem; height: 2.4rem; }

@media (max-width: 640px) {
  .contact { display: flex; flex-direction: column; padding: 8rem 0 0; }
  .contact .container { padding: 0 2.1rem; }
  .contact__pic { position: static; order: 2; margin-top: 4.8rem; }
  .contact__pic img { height: 25.1rem; }
  .contact__body { order: 1; }
}
/* /stp:contact */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 9.9rem; background: var(--bg1); color: var(--txt1); }
.header--legal { background: var(--bg1); }
.legal-bar { width: 100%; max-width: 144rem; margin: 0 auto; padding: 5.6rem 12rem 1.6rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--txt1); transition: color 0.3s ease-in-out; }
.back-link:hover { color: var(--extra); }
.back-link__icon { position: relative; width: 2.4rem; height: 2.4rem; }
.back-link__icon::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.2rem; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.legal-page { padding: 8rem 0; }
.legal-content { width: 100%; max-width: 106.2rem; margin: 0 auto; font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 1.5; }
.legal-content h1 { margin: 0 0 4.8rem; font-family: var(--font-title); font-size: 6.4rem; font-weight: 400; line-height: 1.3; text-align: center; }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 2.4rem 0 1.6rem; font-size: 2rem; font-weight: 400; line-height: 1.2; text-transform: uppercase; }
.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 a { text-decoration: underline; transition: color 0.3s ease-in-out; }
.legal-content a:hover { color: var(--extra); }
.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-bar { padding: 5.6rem 4rem 1.6rem; }
  .legal-page { padding: 8rem 4rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 5.6rem; }
  .legal-bar { padding: 2.3rem 1.6rem 0; }
  .legal-page { padding: 6.4rem 2.1rem 8rem; }
  .legal-content h1 { font-size: 4.8rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-hw, .anim-on .ta-sw { display: inline-block; white-space: nowrap; }
.anim-on .ta-hero .ta-hw { transform-origin: 50% -0.5em; animation: ta-sign-swing 1.6s cubic-bezier(0.3, 0.7, 0.4, 1) calc(0.9s + var(--i) * 0.09s) both; }
.anim-on .ta-hero.is-done .ta-hw--glint { padding: 0.15em 0 0.25em; margin: -0.15em 0 -0.25em; color: transparent; background: linear-gradient(105deg, var(--txt1) 42%, var(--gold) 48%, var(--txt2) 50%, var(--gold) 52%, var(--txt1) 58%) 0 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: ta-lantern-glint 6s ease-in-out 0.6s infinite; }

.anim-on .ta-lab { opacity: 0; }
.anim-on .ta-lab.is-in { animation: ta-scroll-unroll 0.9s cubic-bezier(0.65, 0, 0.35, 1) both; }
.anim-on .ta-sec .ta-sw { opacity: 0; transform-origin: 50% 0; }
.anim-on .ta-sec.is-in .ta-sw { animation: ta-sign-flip 1.2s cubic-bezier(0.3, 0.7, 0.4, 1) calc(0.2s + var(--i) * 0.06s) both; }

@keyframes ta-sign-swing {
  0% { opacity: 0; color: var(--gold); filter: blur(0.3rem) drop-shadow(0 0 0.8rem var(--gold)); transform: translateY(-1.1em) rotate(calc(var(--d) * -18deg)); }
  28% { opacity: 1; color: var(--extra); filter: blur(0) drop-shadow(0 0 0.6rem var(--gold)); transform: translateY(0) rotate(calc(var(--d) * 11deg)); }
  48% { transform: translateY(0) rotate(calc(var(--d) * -6deg)); }
  66% { transform: translateY(0) rotate(calc(var(--d) * 3deg)); }
  83% { filter: blur(0) drop-shadow(0 0 0 transparent); transform: translateY(0) rotate(calc(var(--d) * -1deg)); }
  100% { opacity: 1; filter: none; transform: none; }
}
@keyframes ta-lantern-glint {
  0%, 55% { background-position: 0 0; }
  85%, 100% { background-position: 100% 0; }
}
@keyframes ta-scroll-unroll {
  0% { opacity: 0; clip-path: inset(0 50% 0 50%); }
  20% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes ta-sign-flip {
  0% { opacity: 0; color: var(--gold); transform: perspective(40rem) rotateX(-92deg); }
  40% { opacity: 1; transform: perspective(40rem) rotateX(16deg); }
  62% { transform: perspective(40rem) rotateX(-8deg); }
  82% { transform: perspective(40rem) rotateX(3deg); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .anim-on .ta-hero .ta-hw { animation-duration: 1.2s; animation-delay: calc(0.8s + var(--i) * 0.07s); }
  .anim-on .ta-sec.is-in .ta-sw { animation-duration: 0.9s; animation-delay: calc(0.1s + var(--i) * 0.04s); }
  @keyframes ta-sign-swing {
    0% { opacity: 0; color: var(--gold); filter: blur(0.2rem) drop-shadow(0 0 0.5rem var(--gold)); transform: translateY(-0.6em) rotate(calc(var(--d) * -12deg)); }
    30% { opacity: 1; color: var(--extra); filter: blur(0) drop-shadow(0 0 0.4rem var(--gold)); transform: translateY(0) rotate(calc(var(--d) * 7deg)); }
    55% { transform: translateY(0) rotate(calc(var(--d) * -3deg)); }
    80% { filter: blur(0) drop-shadow(0 0 0 transparent); transform: translateY(0) rotate(calc(var(--d) * 1deg)); }
    100% { opacity: 1; filter: none; transform: none; }
  }
}
/* /stp:title-anim */
