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

:root {
  --bg: #000000;
  --gray: #161411;
  --beg: #eee4cc;
  --sand: #b8a375;
  --orange: #e56700;
  --text-gray: #959593;
  --text-white: #e2e2e2;
  --border: #2c2c2c;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --fs-s: clamp(14px, 1.6rem, 1.6rem);
  --fs-m: clamp(14px, 1.8rem, 1.8rem);
  --header-h: 6.2rem;
}

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 { min-width: 0; background: var(--bg); color: var(--sand); font-family: var(--font-body); font-size: var(--fs-m); line-height: 1.39; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
main { padding-top: var(--header-h); }
section { position: relative; }

html.menu-lock, html.menu-lock body { overflow: hidden; }

#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 8.4rem; }

.sec-title { width: 100%; max-width: 67.2rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; text-align: center; }
.overline { font-family: var(--font-head); font-weight: 400; font-size: var(--fs-m); line-height: 1.28; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.sec-title h2 { font-family: var(--font-head); font-weight: 500; font-size: 4.2rem; line-height: 1.28; letter-spacing: -0.02em; color: var(--beg); }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--gray); backdrop-filter: blur(0.75rem); border-bottom: 1px solid transparent; transition: box-shadow 0.3s, border-color 0.3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.6); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 8rem; }

.logo { position: relative; display: block; flex: none; width: 13rem; height: 4rem; transition: opacity 0.3s; }
.logo:hover { opacity: 0.8; }
.logo-main { position: absolute; left: 0; top: 0; width: 9.3rem; text-align: center; font-weight: 800; font-size: 2.35rem; line-height: 1.28; letter-spacing: -0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.logo-sub { position: absolute; left: 4.47rem; top: 2.24rem; width: 5rem; text-align: center; font-weight: 400; font-size: clamp(14px, 1.41rem, 1.41rem); line-height: 1.28; letter-spacing: -0.06em; text-transform: uppercase; color: #fe7900; white-space: nowrap; }
.logo-icon { position: absolute; left: 9.82rem; top: 0.05rem; width: 2.69rem; height: 3.85rem; max-width: none; transform: rotate(-15.06deg); }

.nav { display: flex; align-items: center; gap: 3.2rem; }
.nav-link { display: flex; align-items: center; justify-content: center; padding: 0.8rem; border-radius: 0.8rem; font-weight: 500; font-size: var(--fs-s); line-height: 1.28; letter-spacing: -0.02em; text-transform: uppercase; color: var(--text-gray); white-space: nowrap; transition: color 0.3s; }
.nav-link:hover { color: var(--orange); }

.burger-btn { display: none; position: relative; flex: none; width: 4rem; height: 4rem; background: transparent; border: 0; z-index: 101; }
.burger-btn span { position: absolute; left: 0.5rem; width: 3rem; height: 0.4rem; border-radius: 0.1rem; background: var(--text-gray); transition: top 0.3s, transform 0.3s, opacity 0.3s, background 0.3s; }
.burger-btn span:nth-child(1) { top: 1rem; }
.burger-btn span:nth-child(2) { top: 1.8rem; }
.burger-btn span:nth-child(3) { top: 2.6rem; }
.burger-btn:hover span { background: var(--beg); }
.burger-btn.act span:nth-child(1) { top: 1.8rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 1.8rem; transform: rotate(-45deg); }

#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: 5.2rem; background: var(--gray); 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); } }

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

@media (max-width: 640px) {
  :root { --header-h: 5.2rem; }
  .container { padding: 0 1.6rem; }
  .header-inner { padding: 0 1.6rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
  .overline { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .sec-title h2 { font-size: 2.2rem; }
}
/* /stp:base */
/* stp:hero */
.hero { display: flex; min-height: 75rem; background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)), url('../img/hero.webp') center bottom / cover no-repeat, #000; }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; padding-top: 8rem; padding-bottom: 8rem; }
.hero-badges { display: flex; gap: 4rem; }
.badge { position: relative; flex: none; width: 14rem; height: 10.91rem; }
.badge img { position: absolute; max-width: none; }
.badge-l { left: 0; top: 0; width: 56.22%; height: 99.79%; }
.badge-r { left: 44.75%; top: 0.32%; width: 55.25%; height: 99.68%; }
.badge-t1 { left: 20.51%; top: 24.36%; width: 58.85%; height: 29.89%; }
.badge-t2 { left: 14.06%; top: 28.57%; width: 72.72%; height: 26.61%; }
.hero-body { display: flex; flex-direction: column; gap: 1rem; width: 63.5rem; max-width: 100%; }
.hero-title { font-family: var(--font-head); font-weight: 500; font-size: 5.2rem; line-height: 1.28; letter-spacing: -0.02em; text-transform: uppercase; color: var(--beg); }
.hero-text { width: 32.6rem; max-width: 100%; font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--sand); }

@media (max-width: 1024px) {
  .hero-title { font-size: 4.4rem; }
}

@media (max-width: 640px) {
  .hero { min-height: 76rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)), url('../img/hero-m.webp') center bottom / cover no-repeat, #000; }
  .hero-inner { justify-content: flex-end; gap: 2.4rem; padding-top: 8rem; padding-bottom: 3.2rem; }
  .badge { width: 12.1rem; height: 9.4rem; }
  .hero-title { font-size: 2.8rem; line-height: 1.36; }
  .hero-text { font-size: var(--fs-s); }
}
/* /stp:hero */
/* stp:about */
.about { padding: 9.6rem 0 7.2rem; background: var(--bg); }
.about-inner { display: flex; flex-direction: column; gap: 4.8rem; }
.about-body { display: grid; grid-template-columns: 1fr 0 1fr; gap: 3.2rem; align-items: start; }
.about-body p { font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--sand); }
.about-body p:first-child { text-align: right; }
.accent { color: var(--orange); }
.about-line { align-self: stretch; width: 0; border-left: 2px solid var(--sand); }

.slider { position: relative; }
.slider-radio { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.slider-view { overflow: hidden; width: 100%; aspect-ratio: 1272 / 713; }
.slider-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
.slider-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
#about-slide-2:checked ~ .slider-view .slider-track { transform: translateX(-100%); }
#about-slide-3:checked ~ .slider-view .slider-track { transform: translateX(-200%); }
.slider-nav { position: absolute; top: 50%; left: 2.4rem; right: 2.4rem; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.slider-btn { position: relative; display: none; width: 2.6rem; height: 3.9rem; border-radius: 0.4rem; background: rgba(235, 235, 235, 0.4); cursor: pointer; pointer-events: auto; transition: background 0.3s; }
.slider-btn:hover { background: rgba(235, 235, 235, 0.75); }
.slider-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0.45rem; height: 0.45rem; border-left: 2px solid #343434; border-bottom: 2px solid #343434; transform: translate(-30%, -50%) rotate(45deg); }
.slider-btn.next::before { transform: translate(-70%, -50%) rotate(-135deg); }
#about-slide-1:checked ~ .slider-nav .p1, #about-slide-1:checked ~ .slider-nav .n1,
#about-slide-2:checked ~ .slider-nav .p2, #about-slide-2:checked ~ .slider-nav .n2,
#about-slide-3:checked ~ .slider-nav .p3, #about-slide-3:checked ~ .slider-nav .n3 { display: block; }

@media (max-width: 640px) {
  .about { padding: 4.8rem 0 3.2rem; }
  .about-inner { gap: 2.4rem; }
  .about-body { display: flex; flex-direction: column; gap: 0.8rem; }
  .about-body p:first-child { text-align: left; }
  .about-line { display: none; }
  .slider-view { aspect-ratio: 343 / 192; }
  .slider-nav { position: static; margin-top: 1.6rem; left: auto; right: auto; transform: none; }
}

@media (min-width: 641px) {
  .slider-btn { width: 5.2rem; height: 5.2rem; border: 1px solid rgba(238, 228, 204, 0.55); border-radius: 50%; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(0.4rem); backdrop-filter: blur(0.4rem); box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45); transition: background 0.3s, border-color 0.3s; }
  .slider-btn:hover { border-color: var(--orange); background: var(--orange); }
  .slider-btn::before { width: 1.1rem; height: 1.1rem; border-left-width: 0.25rem; border-bottom-width: 0.25rem; border-color: var(--beg); }
}
/* /stp:about */
/* stp:how-to-play */
.how { padding: 7.2rem 0; background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), linear-gradient(59deg, #000 54%, rgba(0, 0, 0, 0) 100%), url('../img/how-to-play-bg.webp') center / cover no-repeat, #000; }
.how-inner { display: flex; flex-direction: column; gap: 4.8rem; }
.how-block { display: grid; grid-template-columns: 644fr 580fr; gap: 4.8rem; }
.how-img { width: 100%; height: 100%; object-fit: cover; }
.how-list { display: flex; flex-direction: column; gap: 2.4rem; }
.how-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.8rem; padding: 2.4rem; background: var(--gray); border: 1px solid var(--border); transition: border-color 0.3s; }
.how-card:hover { border-color: var(--orange); }
.how-card h3 { font-weight: 500; font-size: var(--fs-m); line-height: 1.39; text-transform: uppercase; color: var(--beg); }
.how-card p { font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--sand); opacity: 0.6; }
.how-num { position: absolute; top: 0; right: 0; width: 8.7rem; font-family: var(--font-head); font-weight: 400; font-size: 7.2rem; line-height: 0.92; color: var(--orange); opacity: 0.14; pointer-events: none; }

@media (max-width: 1024px) {
  .how-num { font-size: 5.2rem; width: 6.7rem; }
}

@media (max-width: 640px) {
  .how { padding: 3.2rem 0; background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), linear-gradient(83deg, #000 54%, rgba(0, 0, 0, 0) 101%), url('../img/how-to-play-bg-m.webp') center / cover no-repeat, #000; }
  .how-inner { gap: 2.4rem; }
  .how-block { display: flex; flex-direction: column; gap: 2.4rem; }
  .how-img { order: 2; height: 33.9rem; }
  .how-list { gap: 1.6rem; }
  .how-card h3, .how-card p { font-size: var(--fs-s); }
  .how-num { width: 6.7rem; font-size: 5.2rem; }
}
/* /stp:how-to-play */
/* stp:features */
.features { padding: 7.2rem 0; background: var(--bg); }
.features-inner { display: flex; flex-direction: column; gap: 4.8rem; }
.feat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3.2rem; align-items: start; }
.feat { display: flex; align-items: flex-start; gap: 2.4rem; }
.feat img { flex: none; width: 5.3rem; height: 6.2rem; object-fit: contain; }
.feat div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; min-height: 6.2rem; justify-content: center; }
.feat h3 { font-weight: 500; font-size: var(--fs-m); line-height: 1.39; text-transform: uppercase; color: var(--text-white); }
.feat p { font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--sand); }

@media (max-width: 640px) {
  .features { padding: 3.2rem 0; }
  .features-inner { gap: 2.4rem; }
  .feat-list { grid-template-columns: 1fr; gap: 1.6rem; }
  .feat h3, .feat p { font-size: var(--fs-s); }
}
/* /stp:features */
/* stp:contact */
.contact { padding: 7.2rem 0; background: var(--gray); }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; text-align: center; }
.contact-title { font-weight: 500; font-size: 2.6rem; line-height: 1.39; color: var(--beg); }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; padding: calc(1.6rem - 1px); border: 1px solid var(--orange); border-radius: 0.8rem; font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--orange); transition: background 0.3s, color 0.3s; }
.contact-btn:hover { background: var(--orange); color: var(--bg); }

@media (max-width: 640px) {
  .contact { padding: 3.2rem 0; }
  .contact-title { font-size: 2rem; }
  .contact-btn { font-size: var(--fs-s); }
}
/* /stp:contact */
/* stp:footer */
.footer { display: flex; flex-direction: column; gap: 6rem; padding: 6rem 0; background: var(--bg); }
.footer-links { display: flex; justify-content: flex-end; gap: 6rem; width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 8.8rem; }
.footer-links a { font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--beg); transition: color 0.3s; }
.footer-links a:hover { color: var(--orange); }
.footer-rights { padding: 0 1.6rem; text-align: center; font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--text-gray); }

@media (max-width: 640px) {
  .footer { gap: 3.2rem; }
  .footer-links { flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; padding: 0 1.6rem; }
  .footer-links a, .footer-rights { font-size: var(--fs-s); }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: var(--header-h); }
.legal-page { padding: 8rem 21.2rem; background: var(--bg); }
.legal-content { width: 100%; max-width: 101.6rem; margin: 0 auto; }
.legal-content h1 { margin-bottom: 4rem; font-family: var(--font-head); font-weight: 500; font-size: 5.2rem; line-height: 1.28; letter-spacing: -0.02em; text-align: center; text-transform: uppercase; color: var(--beg); }
.legal-content h2, .legal-content h3, .legal-content h4 { margin-top: 2.4rem; margin-bottom: 1.6rem; font-weight: 500; font-size: var(--fs-m); line-height: 1.39; text-transform: uppercase; color: var(--beg); }
.legal-content p, .legal-content li { font-size: var(--fs-m); line-height: 1.39; letter-spacing: -0.02em; color: var(--beg); }
.legal-content p + p, .legal-content p + ul, .legal-content p + ol, .legal-content ul + p, .legal-content ol + p { margin-top: 1.6rem; }
.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 + li { margin-top: 0.8rem; }
.legal-content strong, .legal-content b { font-weight: 500; color: inherit; }
.legal-content:has(h2) strong, .legal-content:has(h2) b { font-weight: 400; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-content a { color: #00bbff; text-decoration: none; transition: color 0.3s; }
.legal-content a:hover { color: #66d6ff; text-decoration: underline; }

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

@media (max-width: 640px) {
  .legal-page { padding: 5.6rem 1.6rem; }
  .legal-content h1 { margin-bottom: 4rem; font-size: 2.8rem; line-height: 1.36; }
  .legal-content h2, .legal-content h3, .legal-content h4, .legal-content p, .legal-content li { font-size: var(--fs-s); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title .ta-w, .anim-on .sec-title h2 .ta-w, .anim-on .contact-title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero-title .ta-ch { display: inline-block; opacity: 0; }
.anim-on .hero-title.is-play .ta-ch { animation: ta-ignite 1.2s cubic-bezier(0.3, 0.6, 0.35, 1) calc(0.9s + var(--i) * 0.038s) both; }
.anim-on .hero-title.is-play .ta-acc { animation: ta-candle 6.5s ease-in-out 3.8s infinite; }

@keyframes ta-ignite {
  0% { opacity: 0; color: var(--orange); transform: translateY(0.12em); filter: blur(0.4rem) drop-shadow(0 0 0 rgba(229, 103, 0, 0)); }
  18% { opacity: 0.85; color: #ffa24a; filter: blur(0) drop-shadow(0 0 0.9rem rgba(229, 103, 0, 0.9)); }
  27% { opacity: 0.3; }
  38% { opacity: 1; color: #f6c27e; filter: blur(0) drop-shadow(0 0 0.7rem rgba(229, 103, 0, 0.7)); }
  46% { opacity: 0.7; }
  58% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; color: var(--beg); transform: translateY(0); filter: blur(0) drop-shadow(0 0 0 rgba(229, 103, 0, 0)); }
}

@keyframes ta-candle {
  0%, 80%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(229, 103, 0, 0)); }
  84% { filter: brightness(1.18) drop-shadow(0 0 0.7rem rgba(229, 103, 0, 0.55)); }
  87% { filter: brightness(1.04) drop-shadow(0 0 0.25rem rgba(229, 103, 0, 0.25)); }
  91% { filter: brightness(1.14) drop-shadow(0 0 0.6rem rgba(229, 103, 0, 0.45)); }
}

.anim-on .sec-title h2 .ta-w, .anim-on .contact-title .ta-w {
  opacity: 0;
  color: transparent;
  background-image: linear-gradient(100deg, var(--beg) 0%, var(--beg) 38%, #f6c27e 46%, var(--orange) 50%, #f6c27e 54%, var(--beg) 62%, var(--beg) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.anim-on .sec-title h2.is-in .ta-w, .anim-on .contact-title.is-in .ta-w { animation: ta-focus 0.9s cubic-bezier(0.22, 0.7, 0.3, 1) calc(var(--i) * 0.07s) both, ta-lantern 1.6s ease-in-out calc(0.15s + var(--i) * 0.07s) both; }

@keyframes ta-focus {
  0% { opacity: 0; transform: translateY(0.35em) scale(1.06); filter: blur(0.6rem); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes ta-lantern {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 640px) {
  .anim-on .hero-title.is-play .ta-ch { animation-duration: 1s; animation-delay: calc(0.8s + var(--i) * 0.026s); }
  .anim-on .sec-title h2.is-in .ta-w, .anim-on .contact-title.is-in .ta-w { animation-duration: 0.7s, 1.2s; animation-delay: calc(var(--i) * 0.05s), calc(0.1s + var(--i) * 0.05s); }
  @keyframes ta-focus {
    0% { opacity: 0; transform: translateY(0.25em) scale(1.04); filter: blur(0.4rem); }
    55% { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: none; filter: blur(0); }
  }
}
/* /stp:title-anim */
