/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0,1&family=Outfit:wght@300..600&display=swap');

:root {
  --bg: #171717;
  --white: #ffffff;
  --line: rgba(226, 222, 213, 0.6);
  --navy: #2e4158;
  --blue: #3c679c;
  --sky: #9dccfb;
  --footer-bg: #192a3f;
  --ink: #232933;
  --icon: #405870;
  --font-serif: 'Fraunces', serif;
  --font-sans: 'Outfit', 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; }
html.menu-lock, html.menu-lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--font-sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
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; }

#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; height: 6rem; background: rgba(23, 23, 23, 0.7); backdrop-filter: blur(0.6rem); -webkit-backdrop-filter: blur(0.6rem); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 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: 128rem; height: 100%; margin: 0 auto; padding: 0 0 0.1rem; }
.logo { font-family: var(--font-serif); font-weight: 700; font-variation-settings: 'SOFT' 0, 'WONK' 1; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.8rem; letter-spacing: -0.045rem; color: var(--white); }
.logo:hover { opacity: 0.7; }
.nav { display: flex; align-items: center; gap: 2.8rem; }
.nav-link { font-family: var(--font-serif); font-weight: 300; font-variation-settings: 'SOFT' 0, 'WONK' 1; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.8rem; color: var(--white); }
.nav-link:hover { color: var(--sky); }

.burger-btn { display: none; position: relative; width: 2.4rem; height: 2.4rem; padding: 0; background: transparent; border: 0; z-index: 110; }
.burger-btn span { position: absolute; left: 0.3rem; width: 1.8rem; height: 0.2rem; background: var(--white); transition: transform 0.3s, opacity 0.3s, top 0.3s; }
.burger-btn span:nth-child(1) { top: 0.6rem; }
.burger-btn span:nth-child(2) { top: 1.1rem; }
.burger-btn span:nth-child(3) { top: 1.6rem; }
.burger-btn.act span:nth-child(1) { top: 1.1rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 1.1rem; transform: rotate(-45deg); }

#mobile-menu { position: fixed; inset: 0; z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.mobile-menu__panel { margin-top: 6rem; padding: 4rem; background: rgba(23, 23, 23, 0.92); backdrop-filter: blur(0.6rem); -webkit-backdrop-filter: blur(0.6rem); border-bottom: 1px solid var(--line); }
.mobile-menu__list { display: flex; flex-direction: column; gap: 2.4rem; }
.mobile-menu__link { font-family: var(--font-serif); font-weight: 300; font-variation-settings: 'SOFT' 0, 'WONK' 1; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.8rem; color: var(--white); }
.mobile-menu__link:hover { color: var(--sky); }

.label { font-family: var(--font-sans); font-weight: 400; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; letter-spacing: 0.4rem; text-transform: uppercase; color: var(--white); }
.title { font-family: var(--font-serif); font-weight: 400; font-variation-settings: 'SOFT' 0, 'WONK' 1; font-size: 3.6rem; line-height: 4rem; color: var(--white); }
.text { font-family: var(--font-sans); font-weight: 300; font-size: 2rem; line-height: 2.8rem; color: var(--white); }

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

@media (max-width: 1024px) {
  .header__inner { padding: 0 4rem 0.1rem; }
}
@media (max-width: 640px) {
  .header__inner { padding: 0 2rem 0.1rem; }
  .nav { display: none; }
  .burger-btn { display: block; }
  .logo { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:base */
/* stp:menu */
.nav-link.mobile-menu__link { font-size: clamp(14px, 1.8rem, 1.8rem); }
/* /stp:menu */
/* stp:hero */
.hero { position: relative; overflow: hidden; height: 80rem; background: var(--bg); }
.hero__bg { position: absolute; left: 50%; top: -6.8rem; width: 145.7rem; max-width: none; height: 109.3rem; transform: translateX(-50%); object-fit: cover; }
.hero__content { position: absolute; left: 50%; top: 32rem; width: 33.8rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--white); }
.hero__label { width: 31.1rem; margin-bottom: 2.1rem; font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.6rem; letter-spacing: 0; }
.hero__title { width: 31.1rem; margin-bottom: 2rem; font-family: var(--font-serif); font-weight: 300; font-variation-settings: 'SOFT' 0, 'WONK' 1; font-size: 7.6rem; line-height: 7.6rem; }
.hero__text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.6rem; }
@media (max-width: 640px) {
  .hero { height: 69.8rem; }
  .hero__bg { top: -1rem; width: 97.3rem; height: 73rem; }
  .hero__content { top: 23.4rem; width: 33.5rem; }
  .hero__label, .hero__title { width: 100%; }
}
/* /stp:hero */
/* stp:about */
.about { padding: 10rem 0; background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%); }
.about__inner { width: 100%; max-width: 98rem; margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.about__head { display: flex; flex-direction: column; gap: 2.4rem; }
.about__label { font-weight: 600; }
.about__body { display: flex; flex-direction: column; gap: 3.2rem; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.8rem; }
.card { display: flex; flex-direction: column; padding: 2.4rem 2rem; background: var(--sky); border: 1px solid rgba(226, 222, 213, 1); border-radius: 0.8rem; color: var(--ink); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-0.4rem); box-shadow: 0 2.4rem 6rem -3.2rem var(--sky); }
.card__icon { width: 2rem; height: 2rem; margin-bottom: 2rem; }
.card__title { margin-bottom: 1.2rem; font-family: var(--font-serif); font-weight: 300; font-variation-settings: 'SOFT' 0, 'WONK' 1; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.8rem; color: var(--ink); }
.card__text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; color: var(--ink); }
@media (max-width: 1024px) {
  .about { padding: 8rem 4rem; }
  .about__body .text { font-size: 2.4rem; line-height: 3.4rem; }
  .about .title { font-size: 4.4rem; line-height: 5rem; }
  .card__title { font-size: 2.2rem; line-height: 3rem; }
  .card__text { font-size: 2rem; line-height: 2.8rem; }
}
@media (max-width: 640px) {
  .about { padding: 6rem 2rem; }
  .about__inner { gap: 3.2rem; }
  .about__head { gap: 2rem; }
  .about .title { font-size: 3.2rem; line-height: 4rem; }
  .about__head .title br { display: none; }
  .about__body .text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.8rem; }
  .cards { grid-template-columns: 1fr; gap: 2rem; }
  .card { padding: 2rem 1.6rem; }
  .card__title { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 2.8rem; }
  .card__text { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
}
/* /stp:about */
/* stp:gameplay */
.feature { padding: 10rem 8rem; }
.feature__inner { width: 100%; max-width: 128rem; margin: 0 auto; display: grid; grid-template-columns: 62.2rem 1fr; align-items: center; gap: 5.6rem; }
.feature--reverse .feature__inner { grid-template-columns: 1fr 62.2rem; }
.feature__media { width: 100%; height: 44.3rem; border-radius: 0.8rem; box-shadow: 0 2.4rem 6rem -3.2rem var(--sky); overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__content { display: flex; flex-direction: column; gap: 4rem; }
.feature__head { display: flex; flex-direction: column; gap: 2.4rem; }
@media (max-width: 1024px) {
  .feature { padding: 8rem 4rem; }
  .feature__inner, .feature--reverse .feature__inner { grid-template-columns: 1fr; gap: 4rem; }
  .feature__media { height: auto; aspect-ratio: 622 / 443; }
  .feature--reverse .feature__media { order: 2; }
  .feature .title { font-size: 4.4rem; line-height: 5rem; }
  .feature .text { font-size: 2.4rem; line-height: 3.4rem; }
}
@media (max-width: 640px) {
  .feature { padding: 6rem 2rem; }
  .feature__inner, .feature--reverse .feature__inner { gap: 3.2rem; }
  .feature__content { gap: 3.2rem; }
  .feature__head { gap: 2rem; }
  .feature .title { font-size: 3.2rem; line-height: 4rem; }
  .feature .text { font-size: 2rem; line-height: 2.8rem; }
  .feature__media { height: 44.3rem; aspect-ratio: auto; }
}
.feature--gameplay { background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%); }
@media (max-width: 640px) {
  .feature--gameplay .feature__media { order: 2; }
}
/* /stp:gameplay */
/* stp:world */
.feature--world { background: var(--navy); }
@media (max-width: 640px) {
  .feature--world { height: 0; padding: 0; overflow: hidden; visibility: hidden; }
}
/* /stp:world */
/* stp:philosophy */
.feature--philosophy { background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%); }
/* /stp:philosophy */
/* stp:contact */
.contact { padding: 10rem 2rem; background: #000 url('../img/contact.webp') center / cover no-repeat; text-align: center; }
.contact__inner { width: 100%; max-width: 66.3rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4rem; }
.contact__head { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; }
.contact .title { font-weight: 300; }
.contact__text { font-weight: 400; color: rgba(255, 255, 255, 0.8); }
.contact__mail { text-decoration: underline; text-underline-offset: 0.3rem; }
.contact__mail:hover { color: var(--sky); }
@media (max-width: 1024px) {
  .contact { padding: 8rem 4rem; }
  .contact .title { font-size: 4.4rem; line-height: 5rem; }
  .contact__text { font-size: 2.4rem; line-height: 3.4rem; }
}
@media (max-width: 640px) {
  .contact { padding: 6rem 2rem; }
  .contact .title { font-size: 3.6rem; line-height: 4rem; }
  .contact__text { font-size: 2rem; line-height: 2.8rem; }
}
/* /stp:contact */
/* stp:footer */
.footer { background: var(--footer-bg); border-top: 1px solid var(--line); }
.footer__inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 2.7rem 0; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.footer__logo { font-family: var(--font-serif); font-weight: 700; font-variation-settings: 'SOFT' 0, 'WONK' 1; font-size: 2.83rem; line-height: 4.4rem; letter-spacing: -0.071rem; color: var(--white); white-space: nowrap; }
.footer__logo:hover { opacity: 0.7; }
.footer__right { display: flex; align-items: center; justify-content: space-between; width: 76.2rem; }
.footer__links { display: flex; align-items: center; gap: 1rem; }
.footer__links a, .footer__copy { font-size: clamp(14px, 1.4rem, 1.4rem); line-height: 2rem; color: var(--white); white-space: nowrap; }
.footer__links a:hover { color: var(--sky); }
.footer__dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--white); }
@media (max-width: 1024px) {
  .footer__inner { padding: 2.7rem 4rem; }
  .footer__right { width: auto; gap: 4rem; }
}
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; justify-content: center; gap: 2rem; padding: 2.8rem 2rem; }
  .footer__right { flex-direction: column; width: 100%; gap: 2rem; }
  .footer__copy { text-align: center; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; background: #0a0a0a; }
.legal-main { flex: 1 0 auto; padding-top: 6rem; }
.legal-page { padding: 8rem 8.8rem; }
.legal-content { width: 100%; max-width: 126.4rem; margin: 0 auto; color: var(--white); font-family: var(--font-sans); font-weight: 300; font-size: 2.4rem; line-height: 3.2rem; }
.legal-content h1 { margin-bottom: 6rem; font-family: var(--font-sans); font-weight: 700; font-size: 3.2rem; line-height: 4rem; }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 3.2rem 0 1.6rem; font-family: var(--font-sans); font-weight: 600; font-size: 2.4rem; line-height: 3.2rem; }
.legal-content p { margin-bottom: 1.6rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.6rem; padding-left: 3.2rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.8rem; }
.legal-content a { text-decoration: underline; text-underline-offset: 0.3rem; }
.legal-content a:hover { color: var(--sky); }
.legal-content strong, .legal-content b { font-weight: 600; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
@media (max-width: 1024px) {
  .legal-page { padding: 6rem 4rem; }
}
@media (max-width: 640px) {
  .legal-main { padding-top: 6rem; }
  .legal-page { padding: 6rem 2rem 4rem; }
  .legal-content h1 { margin-bottom: 4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__title { position: relative; }
.anim-on .hero__title .ta-w, .anim-on .title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero__title .ta-l { display: inline-block; opacity: 0; will-change: transform, filter, opacity; }
.anim-on .hero__title::before, .anim-on .hero__title::after { content: ''; position: absolute; left: 50%; pointer-events: none; opacity: 0; }
.anim-on .hero__title::before { bottom: 50%; width: 0.2rem; height: 46rem; margin-left: -0.1rem; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--sky) 60%, var(--white) 100%); transform: scaleY(0); transform-origin: 50% 0; filter: blur(0.05rem) drop-shadow(0 0 0.6rem var(--sky)); }
.anim-on .hero__title::after { top: 50%; width: 120%; height: 0.1rem; margin-left: -60%; background: linear-gradient(90deg, rgba(157, 204, 251, 0) 0%, var(--white) 50%, rgba(157, 204, 251, 0) 100%); transform: scaleX(0); filter: drop-shadow(0 0 0.8rem var(--sky)); }
.anim-on .hero__title.is-in::before { animation: ta-beam-fall 1.1s cubic-bezier(0.55, 0, 0.3, 1) both; }
.anim-on .hero__title.is-in::after { animation: ta-beam-spread 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both; }
.anim-on .hero__title.is-in .ta-l { animation: ta-prism-in 1.3s cubic-bezier(0.2, 0.75, 0.25, 1) calc(0.45s + var(--d) * 0.1s) both, ta-prism-shimmer 8s ease-in-out calc(4s + var(--i) * 0.07s) infinite; }
.anim-on .title .ta-w { opacity: 0; transform-origin: 50% 100%; will-change: transform, filter, opacity; }
.anim-on .title.is-in .ta-w { animation: ta-reflect-rise 1s cubic-bezier(0.22, 0.8, 0.3, 1) calc(var(--i) * 0.07s) both; }
@keyframes ta-beam-fall {
  0% { opacity: 0; transform: scaleY(0); }
  15% { opacity: 1; }
  55% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}
@keyframes ta-beam-spread {
  0% { opacity: 0; transform: scaleX(0); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scaleX(1); }
}
@keyframes ta-prism-in {
  0% { opacity: 0; color: var(--sky); transform: scale(1.3) translateY(-0.6rem); filter: blur(0.8rem) drop-shadow(-0.9rem 0 0 rgba(255, 110, 150, 0.85)) drop-shadow(0.9rem 0 0 rgba(110, 200, 255, 0.85)); }
  40% { opacity: 1; color: var(--white); transform: scale(1.04) translateY(0); filter: blur(0.15rem) drop-shadow(-0.35rem 0 0 rgba(255, 110, 150, 0.6)) drop-shadow(0.35rem 0 0 rgba(110, 200, 255, 0.7)); }
  100% { opacity: 1; color: var(--white); transform: none; filter: blur(0) drop-shadow(0 0 0 rgba(255, 110, 150, 0)) drop-shadow(0 0 0 rgba(110, 200, 255, 0)); }
}
@keyframes ta-prism-shimmer {
  0%, 88%, 100% { filter: blur(0) drop-shadow(0 0 0 rgba(255, 110, 150, 0)) drop-shadow(0 0 0 rgba(110, 200, 255, 0)); }
  92% { filter: blur(0) drop-shadow(-0.25rem 0 0 rgba(255, 110, 150, 0.55)) drop-shadow(0.25rem 0 0 rgba(110, 200, 255, 0.65)); }
}
@keyframes ta-reflect-rise {
  0% { opacity: 0; color: var(--sky); transform: perspective(40rem) rotateX(160deg); filter: blur(0.4rem) drop-shadow(-0.4rem 0 0 rgba(255, 110, 150, 0.6)) drop-shadow(0.4rem 0 0 rgba(110, 200, 255, 0.6)); }
  35% { opacity: 0.6; }
  70% { opacity: 1; color: var(--white); transform: perspective(40rem) rotateX(-10deg); filter: blur(0) drop-shadow(-0.12rem 0 0 rgba(255, 110, 150, 0.35)) drop-shadow(0.12rem 0 0 rgba(110, 200, 255, 0.35)); }
  100% { opacity: 1; color: var(--white); transform: perspective(40rem) rotateX(0); filter: blur(0) drop-shadow(0 0 0 rgba(255, 110, 150, 0)) drop-shadow(0 0 0 rgba(110, 200, 255, 0)); }
}
@media (max-width: 640px) {
  .anim-on .hero__title::before { height: 30rem; }
  .anim-on .hero__title::after { width: 100%; margin-left: -50%; }
  .anim-on .hero__title.is-in .ta-l { animation-duration: 1s, 8s; }
  .anim-on .title.is-in .ta-w { animation-duration: 0.75s; animation-delay: calc(var(--i) * 0.05s); }
}
/* /stp:title-anim */
