/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;700;800;900&display=swap');

:root {
  --bg: #F7F8F1;
  --text: #646562;
  --primary: #5160AE;
  --accent: #B47C23;
  --surface: #FFFFFF;
  --shadow-color: #E3E5D9;
  --font: 'Nunito', 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; }
body, h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
body { font-family: var(--font); font-weight: 500; font-size: 1.8rem; line-height: 1.5; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s, background-color .3s, transform .3s, box-shadow .3s; }
button { font-family: inherit; cursor: pointer; }
section { margin: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.section-title { font-size: 4.8rem; font-weight: 900; line-height: 1.2; color: var(--primary); }

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

#mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2rem; padding-top: 8rem; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 2.4rem; font-weight: 700; color: var(--text); }
#mobile-menu .nav-link:hover { color: var(--accent); }

.burger-btn { display: none; position: relative; width: 6.4rem; height: 6.4rem; padding: 0; background: transparent; border: 0; z-index: 101; }
.burger-btn span { position: absolute; left: 50%; top: 50%; width: 2.4rem; height: .2rem; margin-left: -1.2rem; background: var(--text); border-radius: .2rem; transition: transform .3s, opacity .3s, background-color .3s; }
.burger-btn span:nth-child(1) { transform: translateY(-.8rem); }
.burger-btn span:nth-child(2) { transform: translateY(0); }
.burger-btn span:nth-child(3) { transform: translateY(.8rem); }
.burger-btn.act span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(0) rotate(-45deg); }
.burger-btn:hover span { background: var(--accent); }

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

.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem 1.2rem; background: #000; border: 1px solid #A6A6A6; border-radius: .6rem; }
.store-btn:hover { opacity: .85; box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .3); }
.store-btn-icon { width: 3.1rem; height: 3.5rem; }
.store-btn-text { width: 11.3rem; height: 3.7rem; }

@media (max-width: 1024px) {
  .container { max-width: none; padding: 0 4rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 3.6rem; }
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:base */
/* stp:header */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--surface); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 .2rem 1.2rem rgba(0, 0, 0, .15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 6rem; }
.logo { display: block; width: 4.4rem; height: 4.4rem; background: #332C2C; border-radius: .4rem; overflow: hidden; }
.logo:hover { opacity: .8; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 54.4rem; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 500; line-height: 1.5; color: var(--text); }
.nav-link:hover { color: var(--accent); }

@media (max-width: 640px) {
  .header-inner { height: 8rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
}
/* /stp:header */
/* stp:hero */
.hero { position: relative; height: 64.8rem; overflow: hidden; background: #FBFDFF; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-inner { position: relative; padding-top: 11rem; padding-bottom: 0; }
.hero-logo { width: 42rem; height: 24.4rem; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-subtitle { margin-top: 1.8rem; font-size: 2.8rem; font-weight: 800; line-height: 1.3; color: var(--text); }
.hero-text { width: 54.4rem; margin-top: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.hero .store-btn { margin-top: 4.4rem; animation: store-float 3s ease-in-out infinite; }
.hero .store-btn:hover { animation-play-state: paused; }

@media (max-width: 1024px) {
  .hero { height: auto; min-height: 56rem; padding-bottom: 6rem; }
  .hero-logo { width: 34rem; height: auto; }
  .hero-subtitle { font-size: 2.4rem; }
  .hero-text { width: 50%; }
}
@media (max-width: 640px) {
  .hero { height: 81.2rem; min-height: 0; padding-bottom: 0; }
  .hero-bg { object-position: center; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; padding-top: 10rem; text-align: center; }
  .hero-logo { width: 34.3rem; height: 19.9rem; }
  .hero-subtitle { width: 100%; margin-top: 1.6rem; font-size: 2.4rem; }
  .hero-text { width: 100%; margin-top: .8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hero .store-btn { margin-top: 24.6rem; }
}
/* /stp:hero */
/* stp:how-to-play */
.how { padding: 8rem 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; margin-top: 5.6rem; }
.how-item { display: flex; flex-direction: column; gap: .8rem; }
.how-title { font-size: 2.8rem; font-weight: 800; line-height: 1.3; color: var(--accent); }
.how-img { aspect-ratio: 352 / 216; border: 1px solid var(--text); border-radius: 3.2rem; overflow: hidden; }
.how-img img { width: 100%; height: 100%; object-fit: cover; }
.how-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }

@media (max-width: 1024px) {
  .how-grid { gap: 2rem; }
  .how-title { font-size: 2.2rem; }
  .how-img { border-radius: 2.4rem; }
}
@media (max-width: 640px) {
  .how { padding: 6.4rem 0; }
  .how-grid { grid-template-columns: 1fr; gap: 3.2rem; margin-top: 4.8rem; }
  .how-title { font-size: 2.4rem; }
  .how-img { border-radius: 3.2rem; }
  .how-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-to-play */
/* stp:features */
.features { padding: 8rem 0; }
.features-inner { display: grid; grid-template-columns: 54.4rem 54.4rem; justify-content: space-between; align-items: start; gap: 3.2rem; }
.features-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 5.6rem; }
.feature { display: flex; flex-direction: column; gap: .4rem; }
.feature-title { font-size: 2rem; font-weight: 700; line-height: 1.5; color: var(--accent); }
.feature-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.features-img { width: 100%; height: auto; aspect-ratio: 544 / 514; }

@media (max-width: 1024px) {
  .features-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .features-list { margin-top: 3.2rem; }
}
@media (max-width: 640px) {
  .features { padding: 6.4rem 0 0; }
  .features-inner { display: block; padding: 0; }
  .features-content { padding: 0 1.6rem; }
  .features-list { margin-top: 5.6rem; }
  .feature-title { font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 700; line-height: 1.5; }
  .feature-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { display: block; margin-top: 3.8rem; aspect-ratio: 375 / 354; }
}
/* /stp:features */
/* stp:reviews */
.reviews { padding: 8rem 0; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; align-items: start; margin-top: 5.6rem; }
.review { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.4rem; background: var(--surface); border-radius: 3.2rem; box-shadow: .2rem .4rem .6rem var(--shadow-color); }
.review-stars { display: flex; align-items: center; gap: .8rem; }
.review-stars img { width: 3.2rem; height: 3.1rem; }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.review-name { font-size: 2rem; font-weight: 700; line-height: 1.5; text-align: right; color: var(--primary); }

@media (max-width: 1024px) {
  .reviews-list { gap: 2rem; }
  .review { padding: 2rem; border-radius: 2.4rem; }
  .review-stars img { width: 2.4rem; height: 2.3rem; }
  .review-name { font-size: 1.8rem; }
}
@media (max-width: 640px) {
  .reviews { padding: 6.4rem 0; }
  .reviews-slider { margin: 4.8rem -1.6rem -1.6rem; padding: 0.8rem 0 1.6rem; overflow: hidden; }
  .reviews-list { display: flex; gap: 1.6rem; margin: 0; padding: 0 1.6rem; touch-action: pan-y; will-change: transform; }
  .review { flex: 0 0 30rem; width: 30rem; padding: 2.4rem; border-radius: 3.2rem; }
  .review-stars img { width: 3.2rem; height: 3.1rem; }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .review-name { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:reviews */
/* stp:faq */
.faq { padding: 8rem 0; }
.faq-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 5.6rem; }
.faq-item { padding: 2.4rem; background: var(--surface); border-radius: 3.2rem; box-shadow: .2rem .4rem .6rem var(--shadow-color); }
.faq-question { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.6rem; font-size: 2rem; font-weight: 700; line-height: 1.5; color: var(--accent); cursor: pointer; }
.faq-question::after { content: ''; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; background: url('../img/plus.svg') center / contain no-repeat; }
.faq-item.is-open .faq-question::after { background-image: url('../img/minus.svg'); }
.faq-question { list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { transition: transform 0.3s ease; }
.faq-item.is-open .faq-question::after { transform: rotate(180deg); }
.faq-question:hover { opacity: .8; }
.faq-answer { margin-top: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }

@media (max-width: 1024px) {
  .faq-item { padding: 2rem; border-radius: 2.4rem; }
}
@media (max-width: 640px) {
  .faq { padding: 6.4rem 0; }
  .faq-list { margin-top: 4.8rem; }
  .faq-item { padding: 2.4rem; border-radius: 3.2rem; }
  .faq-question { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq-answer { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding: 4rem 1.6rem 1.6rem; background: var(--text); color: var(--bg); text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: clamp(12px, 1.2rem, 1.2rem); font-weight: 400; line-height: 1.5; }

@media (max-width: 640px) {
  .footer-links { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer-copy { font-size: clamp(11px, 1.1rem, 1.1rem); }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6rem; }
.legal-page { padding: 8rem 0; }
.legal-content { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; color: var(--text); font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 500; line-height: 1.5; }
.legal-content h1 { margin-bottom: 2.7rem; font-size: 4.8rem; font-weight: 900; line-height: 1.2; }
.legal-content h2 { margin: 2.7rem 0; font-size: 2.8rem; font-weight: 800; line-height: 1.3; }
.legal-content h3 { margin: 2.7rem 0; font-size: 2rem; font-weight: 700; line-height: 1.5; }
.legal-content h4 { margin: 2.7rem 0; font-size: 1.8rem; font-weight: 700; line-height: 1.5; }
.legal-content h1:first-child { margin-top: 0; }
.legal-content p { margin: 0; }
.legal-content p + p { margin-top: 0; }
.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 li { margin: 0; }
.legal-content strong { font-weight: 800; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .legal-content { max-width: none; padding: 0 4rem; }
}
@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 0 6.4rem; }
  .legal-content { padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { margin-bottom: 2.4rem; font-size: 3.6rem; }
  .legal-content h2 { margin: 2.4rem 0; font-size: 2.4rem; }
  .legal-content h3 { margin: 2.4rem 0; font-size: clamp(14px, 1.8rem, 1.8rem); }
  .legal-content h4 { margin: 2.4rem 0; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-logo { position: relative; }
.anim-on .hero-logo > img { opacity: 0; }
.anim-on .hero-logo.is-done > img { opacity: 1; animation: ta-clear 0.9s ease-out both; }
.ta-tiles { position: absolute; inset: 0; pointer-events: none; }
.anim-on .hero-logo.is-done .ta-tiles { opacity: 0; transition: opacity 0.2s 0.1s; }
.ta-tile { position: absolute; inset: 0; background: center / contain no-repeat; opacity: 0; transform: translate(calc(var(--dx) * 7rem), calc(var(--dy) * 7rem)); animation: ta-tile-slide 0.6s cubic-bezier(0.3, 1.45, 0.55, 1) both; animation-delay: calc(0.8s + var(--i) * 0.07s); }
@keyframes ta-tile-slide {
  0% { opacity: 0; transform: translate(calc(var(--dx) * 7rem), calc(var(--dy) * 7rem)); filter: brightness(1.25) saturate(0.6); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0); filter: none; }
}
@keyframes ta-clear {
  0% { filter: drop-shadow(0 0 0 rgba(180, 124, 35, 0)); transform: scale(1); }
  35% { filter: drop-shadow(0 0 1.6rem rgba(180, 124, 35, 0.55)); transform: scale(1.025); }
  100% { filter: drop-shadow(0 0 0 rgba(180, 124, 35, 0)); transform: scale(1); }
}

.ta-m { display: inline-block; white-space: nowrap; clip-path: inset(-15% -4% -25% -4%); }
.ta-w { display: inline-block; }
.anim-on .ta-sub .ta-w { opacity: 0; transform: translate(calc(var(--dx) * 1.2em), calc(var(--dy) * 1.2em)); }
.anim-on .ta-sub .ta-w { animation: ta-word-slide 0.55s cubic-bezier(0.3, 1.4, 0.55, 1) both; animation-delay: calc(1.5s + var(--i) * 0.08s); }
.anim-on .ta-sec .ta-w { opacity: 0; transform: translate(calc(var(--dx) * 1.1em), calc(var(--dy) * 1.1em)); color: var(--accent); }
.anim-on .ta-sec.is-in .ta-w { animation: ta-word-slide 0.6s cubic-bezier(0.3, 1.4, 0.55, 1) both, ta-word-tint 0.5s ease-out both; animation-delay: calc(var(--i) * 0.12s), calc(0.45s + var(--i) * 0.12s); }
@keyframes ta-word-slide {
  0% { opacity: 0; transform: translate(calc(var(--dx) * 1.1em), calc(var(--dy) * 1.1em)); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes ta-word-tint {
  from { color: var(--accent); }
  to { color: var(--primary); }
}

@media (max-width: 640px) {
  .ta-tile { animation-duration: 0.5s; animation-delay: calc(0.75s + var(--i) * 0.055s); }
  @keyframes ta-tile-slide {
    0% { opacity: 0; transform: translate(calc(var(--dx) * 4rem), calc(var(--dy) * 4rem)); }
    25% { opacity: 1; }
    100% { opacity: 1; transform: translate(0, 0); }
  }
  .anim-on .ta-sub .ta-w { animation-delay: calc(1.25s + var(--i) * 0.06s); }
  .anim-on .ta-sec.is-in .ta-w { animation-duration: 0.5s, 0.4s; animation-delay: calc(var(--i) * 0.09s), calc(0.35s + var(--i) * 0.09s); }
}
/* /stp:title-anim */
