/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&family=Marcellus+SC&display=swap');

:root {
  --txt1: #0E1829;
  --txt2: #2B3646;
  --bg1: #F5F1E4;
  --bg2: #CDC6BC;
  --accent: #817565;
  --gold: #F2BF4A;
  --line: rgba(84, 96, 88, 0.3);
  --bg: #F5F1E4;
  --font-title: 'Marcellus SC', serif;
  --font-text: 'Bricolage Grotesque', 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(--bg1);
  color: var(--txt1);
  font-family: var(--font-text);
  font-weight: 300;
  font-variation-settings: "opsz" 14, "wdth" 100;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s; }
button { font: inherit; color: inherit; cursor: pointer; }
main { display: block; }
section { position: relative; }
h1, h2, h3 { font-weight: 400; }

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

#mobile-menu { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }

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

.sep { display: flex; align-items: center; padding: 8rem 8rem 2.4rem; }
.sep img { width: 2.1rem; height: 4rem; object-fit: contain; }
.sep span { font-family: var(--font-title); font-weight: 400; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; letter-spacing: -0.02em; text-transform: capitalize; }

.s-title { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-top: 2.4rem; padding: 0 2rem; text-align: center; }
.s-title h2 { font-family: var(--font-title); font-size: 4.8rem; line-height: 1.5; letter-spacing: -0.02em; text-transform: capitalize; color: var(--txt1); }
.s-title p { font-family: var(--font-title); font-size: 3.2rem; line-height: 1.5; letter-spacing: -0.02em; text-transform: capitalize; color: var(--txt2); }

@media (max-width: 1024px) {
  .sep { padding: 8rem 4rem 2.4rem; }
}

@media (max-width: 640px) {
  .sep { padding: 8rem 1.6rem 2.4rem; }
  .s-title { margin-top: 4.8rem; padding: 0 2.1rem; }
  .s-title h2 { font-size: 4rem; letter-spacing: -0.03em; }
  .s-title p { font-size: 2.8rem; }
}
/* /stp:base */
/* stp:header */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; display: flex; align-items: center; justify-content: flex-start; padding: 2.4rem 8rem 1.2rem; background: url(../img/header-bg.webp) center / 100% 100% no-repeat; transition: box-shadow 0.3s, background-color 0.3s; }
.header.scrolled { background-color: var(--bg1); box-shadow: 0 0.2rem 1.2rem rgba(14, 24, 41, 0.15); }
.nav { display: flex; align-items: center; }
.nav-link { display: flex; align-items: center; justify-content: center; padding: 0.8rem 1.2rem; font-size: clamp(12px, 1.2rem, 1.2rem); font-weight: 300; line-height: 1.5; color: var(--txt1); opacity: 0.5; white-space: nowrap; }
.nav-link:hover { opacity: 1; }
.burger-btn { display: none; background: transparent; border: 0; }

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

@media (max-width: 640px) {
  .header { height: 4rem; padding: 0.8rem 1.6rem; justify-content: flex-end; }
  .header:has(.burger-btn.act) { background: var(--bg1); box-shadow: none; }
  .nav { display: none; }
  .burger-btn { position: relative; z-index: 101; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; width: 2.4rem; height: 2.4rem; background: var(--txt1); border: 0; border-radius: 0.2rem; transition: background-color 0.3s, opacity 0.3s; }
  .burger-btn:hover { opacity: 0.8; }
  .burger-btn span { display: block; width: 1.1rem; height: 1px; background: var(--bg1); transition: transform 0.3s, opacity 0.3s; }
  .burger-btn.act span:nth-child(1) { transform: translateY(0.35rem) rotate(45deg); }
  .burger-btn.act span:nth-child(2) { opacity: 0; }
  .burger-btn.act span:nth-child(3) { transform: translateY(-0.35rem) rotate(-45deg); }
}
/* /stp:header */
/* stp:menu */
#mobile-menu { position: fixed; top: 4rem; left: 0; width: 100%; height: 66.9rem; max-height: calc(100vh - 4rem); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3.2rem 1.6rem; background: var(--bg1); border-bottom: 1px solid var(--gold); }
#mobile-menu .nav-link { width: 20rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
@media (min-width: 641px) { #mobile-menu { display: none; } }
/* /stp:menu */
/* stp:hero */
.hero { height: 84rem; padding-top: 17rem; overflow: hidden; background: var(--bg1); }
.hero__tex { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero__pic { position: absolute; right: 0; bottom: 0; width: 84.1rem; height: 84rem; max-width: none; pointer-events: none; }
.hero__txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; width: 59.5rem; margin-left: 8rem; }
.hero__logo { width: 51.9rem; height: 22.1rem; margin-bottom: 5.6rem; }
.hero h1 { font-family: var(--font-title); font-size: 6.4rem; line-height: 1.2; color: var(--txt1); white-space: nowrap; }
.hero__txt p { margin-top: 4.8rem; font-family: var(--font-title); font-size: 2.4rem; line-height: 1.3; letter-spacing: 0.096rem; text-transform: capitalize; color: var(--txt2); }

@media (max-width: 1024px) {
  .hero__pic { width: 58rem; height: 57.9rem; }
  .hero__txt { margin-left: 4rem; width: 52rem; }
  .hero__logo { width: 40rem; height: 17.1rem; margin-bottom: 4rem; }
  .hero h1 { font-size: 5.2rem; }
  .hero__txt p { margin-top: 3.2rem; font-size: 2rem; }
}

@media (max-width: 640px) {
  .hero { height: 82.9rem; padding-top: 6.4rem; }
  .hero__pic { width: 37.5rem; height: 37.5rem; }
  .hero__txt { width: 33.3rem; margin: 0 2.1rem; }
  .hero__logo { width: 33.3rem; height: 14.2rem; margin-bottom: 1.6rem; }
  .hero h1 { font-size: 4.8rem; white-space: normal; }
  .hero__txt p { margin-top: 0.8rem; font-size: 2.4rem; letter-spacing: 0.04em; }
}
/* /stp:hero */
/* stp:about */
.about { background: var(--bg2); padding-bottom: 8rem; }
.about .sep span { color: var(--txt1); }
.about__cards { display: flex; align-items: center; gap: 2.4rem; max-width: 106.2rem; margin: 4.8rem auto 0; }
.about__text { flex: 0 0 73.2rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--txt1); }
.about__text p + p { margin-top: 2.4rem; }
.about__img { flex: none; width: 30.6rem; height: 31.1rem; }

@media (max-width: 1024px) {
  .about__cards { padding: 0 4rem; }
  .about__text { flex: 1 1 auto; }
  .about__img { width: 24rem; height: auto; aspect-ratio: 306 / 311; }
}

@media (max-width: 640px) {
  .about { padding-bottom: 8rem; }
  .about__cards { flex-direction: column; gap: 2.4rem; margin-top: 4.8rem; padding: 0 2.1rem; }
  .about__text { flex: none; width: 100%; text-align: center; }
  .about__img { order: -1; width: 30.6rem; height: 31.1rem; }
}
/* /stp:about */
/* stp:how-to-play */
.how { padding-bottom: 8rem; background: url(../img/how-bg.webp) center bottom / 100% 112.8rem no-repeat, var(--bg1); }
.how__cards { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 5.6rem 4.8rem; max-width: 112.5rem; margin: 6.4rem auto 0; }
.how__card { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; width: 34.3rem; text-align: center; }
.how__card > img { width: 34.3rem; height: 34.3rem; border: 1px solid var(--gold); border-radius: 1.2rem; }
.how__txt { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.how__txt h3 { font-family: var(--font-title); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt1); }
.how__txt p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--txt2); max-width: 34.3rem; }
.how__card--w .how__txt p { max-width: 27.3rem; }

@media (max-width: 1024px) {
  .how__cards { gap: 4rem 3.2rem; max-width: 94rem; padding: 0 4rem; }
  .how__card { width: 28rem; }
  .how__card > img { width: 28rem; height: 28rem; }
  .how__card--w .how__txt p { max-width: 24rem; }
}

@media (max-width: 640px) {
  .how { background-image: url(../img/how-bg-m.webp); background-size: 100% 26.4rem; }
  .how .s-title { padding: 0 0.7rem; }
  .how__cards { flex-wrap: nowrap; justify-content: flex-start; gap: 1.6rem; max-width: none; margin-top: 4.8rem; padding: 0 3.2rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .how__cards::-webkit-scrollbar { display: none; }
  .how__card { flex: 0 0 27rem; width: 27rem; scroll-snap-align: center; }
  .how__card > img { width: 27rem; height: 27rem; }
  .how__txt p, .how__card--w .how__txt p { max-width: 100%; }
  .how__card--4 .how__txt p { max-width: 22rem; }
}
/* /stp:how-to-play */
/* stp:features */
.feat { background: var(--bg2); padding-bottom: 8rem; }
.feat .sep span { color: var(--txt1); }
.feat__wrap { display: flex; align-items: center; gap: 4.8rem; max-width: 124.3rem; margin: 6.4rem auto 0; }
.feat__pic { flex: none; width: 55.1rem; height: 60rem; border: 1px solid var(--gold); border-radius: 1.2rem; }
.feat__list { display: flex; flex-direction: column; flex: 1 1 auto; gap: 2.5rem; }
.feat__item { display: flex; align-items: center; gap: 2.4rem; }
.feat__item > img { flex: none; width: 10rem; height: 10rem; }
.feat__txt { display: flex; flex-direction: column; gap: 1.6rem; }
.feat__txt h3 { font-family: var(--font-title); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt1); }
.feat__txt p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--txt2); }

@media (max-width: 1024px) {
  .feat__wrap { gap: 3.2rem; padding: 0 4rem; }
  .feat__pic { width: 38rem; height: 41.4rem; }
  .feat__item { gap: 1.6rem; }
  .feat__item > img { width: 8rem; height: 8rem; }
}

@media (max-width: 640px) {
  .feat__wrap { flex-direction: column; align-items: stretch; gap: 4.8rem; margin-top: 4.8rem; padding: 0 2.1rem; }
  .feat__pic { width: 100%; height: 36.3rem; }
  .feat__list { gap: 2.4rem; }
  .feat__txt p { font-size: clamp(12px, 1.2rem, 1.2rem); }
  .feat__item { gap: 0.8rem; }
  .feat__item > img { width: 6.2rem; height: 6.2rem; }
}
/* /stp:features */
/* stp:faq */
.faq { padding-bottom: 8rem; background: url(../img/faq-bg.webp) center top / 100% 84.8rem no-repeat, var(--bg1); }
.faq__list { display: flex; flex-direction: column; gap: 3.2rem; max-width: 79rem; margin: 6.4rem auto 0; }
.faq__item { padding: 0 1.2rem; }
.faq__q { display: flex; align-items: center; gap: 2.4rem; padding: 0.8rem 0; list-style: none; cursor: pointer; box-shadow: 0 1px 0 var(--line); font-size: 2.4rem; line-height: 1.5; color: var(--txt2); transition: color 0.3s; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q span { flex: 1 1 auto; }
.faq__q:hover { color: var(--txt1); }
.faq__icon { position: relative; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); transition: background-color 0.3s; }
.faq__icon::before { content: ""; position: absolute; top: 0.8rem; left: 0.9rem; width: 0.6rem; height: 0.6rem; border-right: 1px solid var(--bg1); border-bottom: 1px solid var(--bg1); transform: rotate(45deg); transition: transform 0.3s, top 0.3s; }
.faq__q:hover .faq__icon { background: var(--txt2); }
.faq__item[open] .faq__icon::before { top: 1.1rem; transform: rotate(-135deg); }
.faq__a { margin-top: 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--txt2); }

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

@media (max-width: 640px) {
  .faq { padding-bottom: 7.6rem; background-size: 100% 112rem; background-image: url(../img/faq-bg-m.webp), none; }
  .faq .s-title { align-items: flex-start; padding: 0 3.1rem; text-align: left; }
  .faq__list { margin-top: 4.8rem; padding: 0 1.6rem; }
}

.faq__item::details-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease, content-visibility 0.35s allow-discrete; }
.faq__item[open]::details-content { grid-template-rows: 1fr; }
.faq__a { min-height: 0; margin-top: 0; overflow: hidden; transition: margin-top 0.35s ease; }
.faq__item[open] .faq__a { margin-top: 1.6rem; }
/* /stp:faq */
/* stp:contact */
.contact { background: var(--bg2); padding-bottom: 8rem; }
.contact .sep span { color: var(--txt2); }
.contact__wrap { display: flex; align-items: center; gap: 4.8rem; max-width: 107rem; margin: 0 auto; }
.contact__txt { flex: 0 0 45.5rem; display: flex; flex-direction: column; gap: 2.4rem; }
.contact__txt h2 { font-family: var(--font-title); font-size: 4.8rem; line-height: 1.5; letter-spacing: -0.02em; text-transform: capitalize; color: var(--txt1); }
.contact__mail { display: flex; align-items: center; gap: 2.4rem; font-size: 2.4rem; line-height: 1.5; color: var(--txt1); }
.contact__mail img { flex: none; width: 2.4rem; height: auto; margin: 0 0.4rem; }
.contact__mail:hover { color: var(--accent); }
.contact__pic { flex: none; width: 56.7rem; height: 37.8rem; border: 1px solid var(--gold); border-radius: 1.2rem; }

@media (max-width: 1024px) {
  .contact__wrap { gap: 3.2rem; padding: 0 4rem; }
  .contact__txt { flex: 1 1 auto; }
  .contact__txt h2 { font-size: 4rem; }
  .contact__pic { width: 44rem; height: 29.3rem; }
}

@media (max-width: 640px) {
  .contact__wrap { flex-direction: column; align-items: stretch; gap: 4.8rem; padding: 0 2.1rem; }
  .contact__txt { flex: none; }
  .br-d { display: none; }
  .contact__txt h2 { font-size: 4rem; letter-spacing: -0.03em; }
  .contact__mail { font-size: 2rem; }
  .contact__pic { width: 100%; height: 37.8rem; object-fit: cover; }
}
/* /stp:contact */
/* stp:footer */
.footer { padding: 7.9rem 8rem 8.1rem; background: linear-gradient(to bottom, #CDC6BC, #817565); box-shadow: inset 0 1px 0 var(--accent); }
.footer__row { display: flex; align-items: center; justify-content: space-between; max-width: 128rem; margin: 0 auto; }
.footer__copy { font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 400; line-height: 1.5; color: var(--txt1); }
.footer__logo { display: block; width: 16.9rem; height: 7.2rem; transition: opacity 0.3s; }
.footer__logo:hover { opacity: 0.7; }
.footer__logo img { width: 100%; height: 100%; }
.footer__links { display: flex; align-items: center; justify-content: space-between; width: 37.3rem; padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 400; line-height: 1.5; }
.footer__links a { text-decoration: underline; text-underline-position: from-font; }
.footer__links a:hover { color: var(--bg1); }

@media (max-width: 1024px) {
  .footer { padding: 7.9rem 4rem 8.1rem; }
  .footer__links { width: auto; gap: 3.2rem; }
}

@media (max-width: 640px) {
  .footer { padding: 8rem 1.6rem; }
  .footer__row { flex-direction: column; justify-content: center; gap: 3.2rem; }
  .footer__logo { order: 1; }
  .footer__links { order: 2; width: 30.5rem; gap: 6.4rem; padding: 0; }
  .footer__copy { order: 3; max-width: 21.3rem; 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; }
.legal-header { display: flex; align-items: center; justify-content: flex-start; height: 9.9rem; padding: 0 12rem; }
.legal-back { display: flex; align-items: center; gap: 0.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 300; line-height: 1.5; color: var(--txt2); }
.legal-back::before { content: ""; width: 0.8rem; height: 0.8rem; margin: 0 0.8rem 0 0.7rem; border-left: 1px solid var(--txt2); border-bottom: 1px solid var(--txt2); transform: rotate(45deg); transition: border-color 0.3s; }
.legal-back:hover { color: var(--accent); }
.legal-back:hover::before { border-color: var(--accent); }
.legal-page { padding: 8rem 2rem 8rem; background: var(--bg1); }
.legal-content { max-width: 99.5rem; margin: 0 auto; font-size: clamp(14px, 1.4rem, 1.4rem); font-weight: 300; line-height: 1.5; color: var(--txt2); }
.legal-content h1 { margin-bottom: 6.4rem; font-family: var(--font-title); font-size: 6.4rem; font-weight: 400; line-height: 1.3; text-align: center; color: var(--txt2); }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 2.4rem 0 1.6rem; font-size: 2.4rem; font-weight: 300; line-height: 1.5; text-transform: uppercase; }
.legal-content h3, .legal-content h4 { font-size: clamp(14px, 1.4rem, 1.4rem); }
.legal-content p { margin-bottom: 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: 0.8rem; }
.legal-content strong, .legal-content b { font-weight: 400; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-content a { text-decoration: underline; color: var(--txt1); }
.legal-content a:hover { color: var(--accent); }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 5.6rem; }
  .legal-header { height: 5.6rem; padding: 0 1.6rem; }
  .legal-page { padding: 6.4rem 1.6rem 8rem; }
  .legal-content h1 { margin-bottom: 6.4rem; font-size: 4.8rem; }
  .legal-content h2 { font-size: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-hero { --ta-step: 0.06s; position: relative; }
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-l { display: inline-block; }
.anim-on .ta-hero .ta-l { clip-path: polygon(-15% -20%, -15% -20%, -35% 120%, -15% 120%); }
.anim-on .ta-hero .ta-dot { clip-path: none; opacity: 0; transform-origin: 50% 85%; }
.anim-on .ta-hero.is-in .ta-l { animation: ta-write 0.26s linear calc(0.3s + var(--i) * var(--ta-step)) both, ta-dry 1.5s ease-out calc(0.3s + var(--i) * var(--ta-step)) both; }
.anim-on .ta-hero.is-in .ta-dot { animation: ta-blot 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) calc(0.3s + var(--i) * var(--ta-step)) both, ta-dry 1.5s ease-out calc(0.3s + var(--i) * var(--ta-step)) both; }
.anim-on .ta-hero.is-done .ta-l { clip-path: none; opacity: 1; animation: none; }
.anim-on .ta-hero.is-done .ta-accent .ta-l { animation: ta-gilt 9s ease-in-out calc(2s + var(--j) * 0.07s) infinite; }
.ta-quill { position: absolute; top: 0; left: 0; z-index: 2; width: 6.4rem; height: 6.4rem; opacity: 0; pointer-events: none; transform-origin: 4% 97%; }
.ta-quill svg { display: block; width: 100%; height: 100%; overflow: visible; }
.anim-on .ta-sec .ta-w { opacity: 0; transform-origin: 0 50%; }
.anim-on .s-title p.ta-sec { --ta-after: 0.3s; }
.anim-on .ta-sec.is-in .ta-w { animation: ta-page 1s cubic-bezier(0.25, 0.7, 0.3, 1) calc(var(--ta-after, 0s) + var(--i) * 0.09s) both; }
@keyframes ta-write {
  to { clip-path: polygon(-15% -20%, 135% -20%, 115% 120%, -15% 120%); }
}
@keyframes ta-blot {
  from { opacity: 0; transform: scale(2.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ta-dry {
  0% { color: var(--gold); filter: blur(0.08rem); }
  25% { color: var(--gold); filter: blur(0); }
  60% { color: var(--accent); filter: blur(0); }
}
@keyframes ta-gilt {
  0%, 6%, 100% { color: var(--txt1); }
  3% { color: var(--gold); }
}
@keyframes ta-page {
  0% { opacity: 0; color: var(--gold); transform: perspective(40rem) rotateY(-84deg); }
  50% { opacity: 1; color: var(--accent); transform: perspective(40rem) rotateY(7deg); }
  75% { transform: perspective(40rem) rotateY(-2deg); }
  100% { opacity: 1; transform: perspective(40rem) rotateY(0); }
}
@media (max-width: 640px) {
  .anim-on .ta-hero { --ta-step: 0.045s; }
  .ta-quill { width: 4.8rem; height: 4.8rem; }
  .anim-on .ta-sec.is-in .ta-w { animation-duration: 0.8s; }
}
/* /stp:title-anim */
