/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,400;9..40,700&display=swap');

:root {
  --bg: #000;
  --text: #F2E9DC;
  --orange: #E87532;
  --gold: #D6A84F;
  --yellow: #FFC120;
  --grey: #BABABA;
  --ink: #1b0a05;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', 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; margin: 0; padding: 0; }
body { background: radial-gradient(ellipse closest-side at 50% 50%, #522012 0%, #020202 100%); color: var(--text); font-family: var(--font-body); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
html.menu-lock, html.menu-lock body { overflow: hidden; }

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 8rem; }
.section { margin-top: 15rem; }
.section-title { font-family: var(--font-head); font-weight: 400; font-size: 3.6rem; line-height: 0.92; color: var(--orange); }

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

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 2.4rem 0; border-bottom: 1px solid transparent; transition: background .3s, box-shadow .3s, border-color .3s, padding .3s; }
.header.scrolled { background: rgba(0, 0, 0, .92); border-bottom-color: rgba(232, 117, 50, .35); box-shadow: 0 .2rem 1.2rem rgba(0, 0, 0, .5); }
.header-inner { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 8rem; display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 2rem; }
.nav-link { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); }
.nav-link:hover { color: var(--orange); }

.burger-btn { display: none; position: relative; width: 4.8rem; height: 4.8rem; background: transparent; border: 0; z-index: 101; }
.burger-btn span { position: absolute; left: .6rem; width: 3.6rem; height: .4rem; background: var(--orange); border-radius: .2rem; transition: transform .3s, opacity .3s, top .3s; }
.burger-btn span:nth-child(1) { top: 1.2rem; }
.burger-btn span:nth-child(2) { top: 2.2rem; }
.burger-btn span:nth-child(3) { top: 3.2rem; }
.burger-btn.act span:nth-child(1) { top: 2.2rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 2.2rem; transform: rotate(-45deg); }
.burger-btn:hover span { background: var(--yellow); }

#mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #3a1810 0%, #170805 55%, #020101 100%); opacity: 0; pointer-events: none; transition: opacity .3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.menu-nav { display: flex; flex-direction: column; align-items: center; gap: 3.6rem; }
.menu-nav .nav-link { font-size: clamp(14px, 1.6rem, 1.6rem); }
html.menu-lock .header { background: transparent; box-shadow: none; border-bottom-color: transparent; }

.footer a:hover { color: var(--text); }
.store-btn { display: inline-block; transition: opacity .3s, transform .3s; }
.store-btn:hover { opacity: .85; }

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

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

@media (max-width: 640px) {
  .container { padding: 0 2rem; }
  .section { margin-top: 8rem; }
  .header { padding: 1rem 0 0; }
  .header.scrolled { padding: 1.2rem 0; }
  .header-inner { padding: 0 4.2rem; justify-content: flex-end; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:base */
/* stp:hero */
.hero { position: relative; min-height: 82.3rem; padding: 18.6rem 8rem 0; background: var(--bg) url(../img/hero.webp) center / cover no-repeat; }
.hero-inner { width: 100%; max-width: 128rem; margin: 0 auto; }
.hero-title { width: 59.5rem; max-width: 100%; }
.hero-title img { width: 100%; height: auto; }
@media (max-width: 1024px) {
  .hero { padding: 18.6rem 4rem 0; min-height: 72rem; }
}
@media (max-width: 640px) {
  .hero { min-height: 80rem; padding: 58.3rem 2rem 0; background-image: url(../img/hero-m.webp); }
  .hero-title { width: 33.5rem; }
}
/* /stp:hero */
/* stp:about */
.about-grid { display: flex; align-items: center; gap: 2rem; }
.about-text { flex: 0 0 63rem; display: flex; flex-direction: column; gap: 2.8rem; }
.about-title { line-height: 1.17; }
.about-img { height: 23.8rem; object-fit: cover; }
.about-img-1 { flex: 0 0 41.3rem; width: 41.3rem; }
.about-img-2 { flex: 0 0 19.7rem; width: 19.7rem; }
@media (max-width: 1024px) {
  .about-grid { flex-wrap: wrap; }
  .about-text { flex: 1 1 100%; }
  .about-img-1 { flex: 1 1 0; width: auto; }
  .about-img-2 { flex: 0 0 19.7rem; }
}
@media (max-width: 640px) {
  .about { padding: 0; }
  .about-grid { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 2rem; padding: 0; }
  .about-text { display: contents; }
  .about-title { order: 1; text-align: center; margin-bottom: .4rem; width: 100%; }
  .about-img-1 { order: 2; flex: 0 0 auto; width: 100%; height: 21.6rem; }
  .about-img-2 { display: none; }
  .about-desc { order: 3; padding: 0 2rem; }
}
/* /stp:about */
/* stp:how-to-play */
.how-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.9rem; }
.how-card { display: flex; align-items: center; gap: 2rem; min-height: 10.8rem; padding: 1.6rem 1.2rem; border: 1px solid var(--gold); transition: background .3s, border-color .3s; }
.how-card:hover { background: rgba(214, 168, 79, .08); border-color: var(--orange); }
.how-card img { flex: 0 0 8.8rem; width: 8.8rem; height: 7.6rem; object-fit: cover; }
.how-info { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.how-info h3 { font-family: var(--font-head); font-weight: 400; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; color: var(--gold); }
.how-info p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }
@media (max-width: 1024px) {
  .how-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .how-title { text-align: center; }
  .how-list { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 2.4rem; }
  .how-card { gap: .6rem; }
}
/* /stp:how-to-play */
/* stp:reviews */
.reviews { padding: 10.6rem 0 10.5rem; background: var(--bg) url(../img/reviews-bg.webp) center / cover no-repeat; }
.reviews-title { margin-bottom: 2.8rem; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { display: flex; flex-direction: column; gap: 1.6rem; min-height: 22.3rem; padding: 2.2rem 2.5rem; border: 1px solid var(--orange); transition: background .3s, box-shadow .3s; }
.card:hover { background: rgba(232, 117, 50, .08); box-shadow: 0 0 1.6rem rgba(232, 117, 50, .25); }
.rating { display: flex; gap: .5rem; }
.rating img { width: 1.6rem; height: 1.6rem; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 1.8rem; }
.card-text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }
.profile { display: flex; align-items: center; gap: 1.8rem; margin-top: auto; }
.avatar { width: 7.2rem; height: 7.2rem; border-radius: 50%; object-fit: cover; }
.name { font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; color: var(--orange); }
@media (max-width: 1024px) {
  .reviews { padding: 8rem 0; }
  .reviews-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .reviews { padding: 0; background: none; }
  .reviews .container { padding: 0; }
  .reviews-title { text-align: center; margin-bottom: 2.4rem; }
  .reviews-list { display: flex; gap: 2rem; padding: 0 2rem; overflow-x: auto; scrollbar-width: none; }
  .reviews-list::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 33.5rem; min-height: 24.5rem; }
}
/* /stp:reviews */
/* stp:faq */
.faq-title { margin-bottom: 2.8rem; }
.faq-row { display: flex; align-items: stretch; gap: 2rem; }
.faq-img { flex: 0 0 63rem; width: 63rem; height: auto; min-height: 68rem; object-fit: cover; }
.faq-list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.faq-item { flex: 1 1 auto; min-height: 12rem; padding: 1.6rem 1.2rem; border: 1px solid var(--orange); transition: background .3s; }
.faq-item:hover { background: rgba(232, 117, 50, .06); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5.6rem; padding: 1rem; border-radius: 4rem; font-weight: 700; color: var(--gold); cursor: pointer; list-style: none; transition: color .3s; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--yellow); }
.faq-arrow { flex: 0 0 3.6rem; width: 3.6rem; height: 3.6rem; transition: transform .3s; transform: rotate(180deg); }
.faq-item[open] .faq-arrow { transform: rotate(0deg); }
.faq-a { padding: 0 1rem .8rem; }
@media (max-width: 1024px) {
  .faq-row { flex-direction: column; }
  .faq-img { flex: none; width: 100%; min-height: 0; height: 40rem; }
  .faq-item { flex: none; }
}
@media (max-width: 640px) {
  .faq .container { padding: 0; }
  .faq-title { text-align: center; margin-bottom: 2.4rem; }
  .faq-row { gap: 2rem; }
  .faq-img { height: 40.5rem; }
  .faq-list { padding: 0 2rem; gap: 1.6rem; }
  .faq-item { min-height: 0; }
}
/* /stp:faq */
/* stp:contact */
.contact-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-title { margin-bottom: 2.8rem; }
.contact-text { margin-bottom: 1.6rem; }
.contact-mail { font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; color: var(--gold); }
.contact-mail:hover { color: var(--yellow); }
/* /stp:contact */
/* stp:footer */
.footer { margin-top: 15rem; background: var(--orange); padding: 4.6rem 0; }
.footer-inner { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 8rem; display: flex; flex-direction: column; gap: 5rem; }
.footer-links { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.2; color: var(--ink); }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--text); }
.footer-copy { padding: 0 17.4rem 0 12.8rem; text-align: center; font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; color: var(--ink); }
@media (max-width: 1024px) {
  .footer-inner { padding: 0 4rem; }
  .footer-copy { padding: 0; }
}
@media (max-width: 640px) {
  .footer { margin-top: 8rem; padding: 4.5rem 0; }
  .footer-inner { padding: 0 2rem; gap: 3.4rem; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .footer-copy { text-align: left; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 9rem; }
.legal-page .legal-content { width: 100%; max-width: 124rem; margin: 0 auto; padding: 0 8rem; }
.legal-content h1 { font-family: var(--font-head); font-weight: 400; font-size: 3.6rem; line-height: 0.92; color: var(--orange); text-align: center; margin-bottom: 2.8rem; }
.legal-content h2, .legal-content h4 { font-family: var(--font-body); font-weight: 700; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); text-align: left; margin: 2.4rem 0 0; }
.legal-content h3 { font-family: var(--font-body); font-weight: 400; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); text-align: left; margin: 0; }
.legal-content h1 + h2 { font-weight: 400; margin-top: 0; }
.legal-content p { margin: 0; }
.legal-content ul, .legal-content ol { margin: 0 0 0 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { color: var(--text); }
.legal-content a:hover { color: var(--orange); }
.legal-content strong, .legal-content .domain { font-weight: 700; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-body .footer { margin-top: 10rem; }
@media (max-width: 1024px) {
  .legal-page .legal-content { padding: 0 4rem; }
}
@media (max-width: 640px) {
  .legal-main { padding-top: 11.6rem; }
  .legal-page .legal-content { padding: 0 2rem; }
  .legal-content h1 { margin-bottom: 2.4rem; }
  .legal-body .footer { margin-top: 8rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title { position: relative; }
.anim-on .hero-title:not(.is-in) img { opacity: 0; }
.anim-on .hero-title.is-in { animation: ta-blows 3.2s linear both; }
.anim-on .hero-title.is-in img { animation: ta-iron 3.2s linear both; }
.anim-on .hero-title.is-in::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, #fff3c4 0%, var(--yellow) 25%, var(--orange) 55%, rgba(232, 117, 50, 0) 85%) 50% 100% / 100% 240% no-repeat;
  -webkit-mask: url(../img/hero-title.webp) center / 100% 100% no-repeat;
  mask: url(../img/hero-title.webp) center / 100% 100% no-repeat;
  mix-blend-mode: color-dodge;
  animation: ta-heat 3.2s linear both, ta-reheat 9s ease-in-out 4s infinite;
}
.ta-spark {
  position: absolute;
  z-index: 2;
  width: 2rem;
  height: .3rem;
  border-radius: .15rem;
  pointer-events: none;
  background: linear-gradient(to right, var(--orange), var(--yellow) 60%, #fff3c4);
  box-shadow: 0 0 .8rem var(--orange), 0 0 .2rem var(--yellow);
  --k: 1;
  animation: ta-spark .85s cubic-bezier(.15, .7, .4, 1) var(--d) both;
}
.anim-on .section-title { position: relative; }
.section-title .ta-spark { width: 1rem; height: .18rem; }
.ta-word { display: inline-block; white-space: nowrap; }
.ta-letter { display: inline-block; transform-origin: 50% 100%; }
.anim-on .section-title:not(.is-in) .ta-letter { opacity: 0; }
.anim-on .section-title.is-in .ta-letter { animation: ta-punch .62s cubic-bezier(.3, .6, .4, 1) calc(var(--i) * .05s) both; }
@keyframes ta-blows {
  0%, 12% { transform: scale(1) translateY(0); }
  14% { transform: scale(1.012, .975) translateY(.2rem); }
  19%, 32% { transform: scale(1) translateY(0); }
  34% { transform: scale(1.018, .965) translateY(.3rem); }
  39%, 52% { transform: scale(1) translateY(0); }
  54% { transform: scale(1.026, .95) translateY(.45rem); }
  58% { transform: scale(.995, 1.012) translateY(-.1rem); }
  63%, 100% { transform: scale(1) translateY(0); }
}
@keyframes ta-iron {
  0% { opacity: 0; filter: brightness(.12) saturate(.3); }
  10% { opacity: 1; filter: brightness(.2) saturate(.3); }
  13.9% { opacity: 1; filter: brightness(.22) saturate(.35); }
  14% { filter: brightness(.95) saturate(.9); }
  31% { filter: brightness(.34) saturate(.5); }
  34% { filter: brightness(1.25) saturate(1.1); }
  51% { filter: brightness(.55) saturate(.7); }
  54% { filter: brightness(1.7) saturate(1.3); }
  100% { opacity: 1; filter: brightness(1) saturate(1); }
}
@keyframes ta-heat {
  0%, 13.9% { opacity: 0; background-position: 50% 100%; }
  14% { opacity: .4; background-position: 50% 100%; }
  31% { opacity: .08; }
  34% { opacity: .7; background-position: 50% 80%; }
  51% { opacity: .22; }
  54% { opacity: 1; background-position: 50% 60%; }
  100% { opacity: 0; background-position: 50% 0%; }
}
@keyframes ta-reheat {
  0%, 78%, 100% { opacity: 0; background-position: 50% 0%; }
  90% { opacity: .3; background-position: 50% 45%; }
}
@keyframes ta-spark {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--a)) scaleX(.4); }
  6% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--dx) * var(--k)), calc(var(--dy) * var(--k))) rotate(var(--a)) scaleX(1); }
  100% { opacity: 0; transform: translate(calc(var(--ex) * var(--k)), calc(var(--ey) * var(--k))) rotate(var(--a)) scaleX(.3); }
}
@keyframes ta-punch {
  0% { opacity: 0; transform: translateY(-1.1rem) scale(1.75); color: #fff3c4; filter: brightness(1.5) blur(.1rem); }
  32% { opacity: 1; transform: translateY(0) scale(1.12, .8); color: var(--yellow); filter: brightness(1.6) blur(0); }
  52% { transform: translateY(-.1rem) scale(.97, 1.05); color: var(--yellow); filter: brightness(1.2); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1); }
}
@media (max-width: 640px) {
  .ta-spark { --k: .62; }
  .anim-on .section-title.is-in .ta-letter { animation-duration: .5s; animation-delay: calc(var(--i) * .035s); }
}
/* /stp:title-anim */
