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

:root {
  --bg: #01060a;
  --teal: #066b7d;
  --text: #f2f7f7;
  --gold: #ddbb76;
  --green: #66e2d7;
  --dark-text: #053540;
  --font-head: 'Marcellus', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-note: 'Inter', sans-serif;
  --pill-bg: radial-gradient(ellipse closest-side at 50% 50%, #066b7d 0%, #055260 25%, #043944 50%, #021f27 75%, #021318 87.5%, #01060a 100%);
}

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); } }

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse closest-side at 50% 50%, #066b7d 0%, #01060a 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 1.5;
  overflow-x: hidden;
}
main { display: block; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, background-color 0.3s, transform 0.3s; }
button { font: inherit; color: inherit; cursor: pointer; }
section { position: relative; }

.title {
  font-family: var(--font-head);
  font-size: 3.6rem;
  line-height: 1.5;
  color: var(--gold);
  text-align: center;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 2.8rem 0 0;
  transition: padding 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  padding: 1rem 0;
  background-color: rgba(1, 6, 10, 0.85);
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35);
}
.header-wrap {
  width: 100%;
  max-width: 128rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 4rem;
  background: var(--pill-bg);
}
.nav-link { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); white-space: nowrap; }
.nav-link:hover { color: var(--gold); }

.burger-btn {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  justify-content: space-between;
  width: 4.8rem;
  height: 4.8rem;
  padding: 1.2rem 0.6rem;
  background: transparent;
  border: 0;
}
.burger-btn span {
  display: block;
  width: 3.6rem;
  height: 0.2rem;
  background: var(--bg);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.header.scrolled .burger-btn span,
.burger-btn.act span { background: var(--gold); }
.burger-btn:hover span { opacity: 0.7; }
.burger-btn.act span:nth-child(1) { transform: translateY(1.1rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-1.1rem) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse closest-side at 50% 50%, #066b7d 0%, #01060a 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  overflow: hidden;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
.menu-links { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 3.6rem; }
.menu-links .nav-link { font-size: clamp(14px, 1.6rem, 1.6rem); }
.menu-jelly-1 { position: absolute; left: 0; bottom: 0; width: 19.3rem; height: auto; }
.menu-jelly-2 { position: absolute; left: 21.5rem; top: calc(50% - 20.5rem); width: 8rem; height: auto; }
html.menu-lock, html.menu-lock body { overflow: hidden; }
html.menu-lock .header { background-color: transparent; box-shadow: none; }

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

@media (max-width: 1024px) {
  .header-wrap { padding: 0 2rem; }
}
@media (max-width: 640px) {
  .title { font-size: 3.6rem; }
  .header { padding: 4.2rem 0 0; }
  .header.scrolled { padding: 1rem 0; }
  .header-wrap { padding: 0 4.2rem; justify-content: flex-end; }
  .header-nav { display: none; }
  .burger-btn { display: flex; }
}
/* /stp:base */
/* stp:hero */
.hero { padding: 31.1rem 8rem 31rem; background: url(../img/hero.webp) center / cover no-repeat; }
.hero-title img { width: 63rem; max-width: 100%; height: auto; }
@media (max-width: 1024px) {
  .hero { padding: 24rem 4rem; }
}
@media (max-width: 640px) {
  .hero { padding: 33.6rem 2rem 35.6rem; background-image: url(../img/hero-m.webp); }
  .hero-title img { width: 33.5rem; }
}
/* /stp:hero */
/* stp:about */
.about { margin-top: 15rem; padding: 0 2rem 19.1rem; background: url(../img/about.webp) center bottom / 100% auto no-repeat; }
.about-content { max-width: 63rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2.8rem; text-align: center; }
@media (max-width: 640px) {
  .about { margin-top: 8rem; padding: 0 2rem 8.8rem; }
  .about-content { max-width: none; gap: 2.4rem; }
  .about-text { text-align: left; }
}
/* /stp:about */
/* stp:characters */
.characters { margin-top: 15rem; }
.characters-wrap { max-width: 127.9rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2.8rem; }
.cards { width: 100%; display: flex; align-items: stretch; gap: 2rem; }
.card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 33.3rem;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border-radius: 4rem;
  border: 1px solid var(--green);
  outline: 1px solid rgba(102, 226, 215, 0.45);
  outline-offset: -0.6rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: 0 0 2.4rem rgba(102, 226, 215, 0.35); transform: translateY(-0.4rem); }
.card img { width: 100%; height: auto; aspect-ratio: 381 / 218; object-fit: cover; border-radius: 2rem; }
.card-info { width: 34.7rem; max-width: 100%; display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.card-name { font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--green); }
.card-bio { font-family: var(--font-note); font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; color: var(--text); }
@media (max-width: 1024px) {
  .characters { padding: 0 2rem; }
  .cards { flex-wrap: wrap; justify-content: center; }
  .card { flex: 0 0 calc(50% - 1rem); }
}
@media (max-width: 640px) {
  .characters { margin-top: 8rem; padding: 0 2rem; }
  .characters-wrap { gap: 2.4rem; }
  .cards { flex-direction: column; flex-wrap: nowrap; gap: 1.6rem; }
  .card { flex: none; width: 100%; min-height: 28.8rem; }
  .card-info { width: 100%; }
  .card-bio { padding: 0 0.8rem; }
}
/* /stp:characters */
/* stp:why-play */
.why { margin-top: 15rem; padding: 5rem 18.9rem 17.1rem 10.4rem; background: url(../img/why-play.webp) center / cover no-repeat; }
.why-content { max-width: 114.7rem; display: grid; grid-template-columns: 30.1rem 41.3rem 21.5rem; column-gap: 10.9rem; align-items: center; }
.why-text { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 2.8rem; text-align: center; }
.why-phone { width: 100%; height: auto; }
.why-phone-1 { grid-column: 1; grid-row: 1; }
.why-phone-2 { grid-column: 3; grid-row: 1; }
@media (max-width: 1024px) {
  .why { padding: 5rem 4rem 8rem; }
  .why-content { max-width: none; grid-template-columns: 20rem 1fr 14.3rem; column-gap: 4rem; }
}
@media (max-width: 640px) {
  .why { margin-top: 8rem; padding: 0 2rem; background: none; }
  .why-content { position: relative; display: block; max-width: none; }
  .why-text { display: contents; }
  .why-desc { margin-top: 29.2rem; text-align: left; }
  .why-phone { position: absolute; max-width: none; }
  .why-phone-1 { top: 7.7rem; left: 4.2rem; width: 15.1rem; height: 22.4rem; transform: rotate(26.67deg); }
  .why-phone-2 { top: 5.55rem; left: 16.8rem; width: 10.9rem; height: 24.1rem; transform: rotate(-15.9deg); }
}
/* /stp:why-play */
/* stp:faq */
.faq { margin-top: 15rem; }
.faq-wrap { max-width: 63.4rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2.8rem; }
.faq-list { width: 100%; display: flex; flex-direction: column; gap: 1.6rem; }
.faq-q { display: flex; align-items: center; gap: 0.4rem; list-style: none; cursor: pointer; }
.faq-q::-webkit-details-marker { display: none; }
.faq-arrow { position: relative; flex: 0 0 5rem; width: 5rem; height: 5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gold); transition: transform 0.3s, background-color 0.3s; }
.faq-arrow::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2.2rem; height: 2rem; background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translate(-50%, -50%); }
.faq-item:not([open]) .faq-arrow { transform: rotate(-90deg); }
.faq-q-text, .faq-a { box-shadow: inset 0 0 0 1px var(--gold); border-radius: 4rem; padding: 1.2rem 1.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); transition: background-color 0.3s; }
.faq-q-text { flex: 1 1 auto; font-weight: 700; }
.faq-a { width: 57.6rem; max-width: 100%; margin-left: auto; }
.faq-q:hover .faq-q-text { background-color: rgba(221, 187, 118, 0.1); }
.faq-q:hover .faq-arrow { background-color: rgba(221, 187, 118, 0.1); }
@media (max-width: 640px) {
  .faq { margin-top: 8rem; padding: 0 2rem; }
  .faq-wrap { max-width: none; }
  .faq-a { width: 100%; }
}
/* /stp:faq */
/* stp:contact */
.contact { margin-top: 15rem; padding: 0 2rem; }
.contact-wrap { position: relative; width: max-content; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2.8rem; }
.contact-info { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.contact-mail { font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--gold); }
.contact-mail a:hover { color: var(--text); text-decoration: underline; }
.contact-deco { position: absolute; max-width: none; height: auto; pointer-events: none; }
.contact-deco--left { top: 2.93rem; left: calc(50% - 25.17rem); width: 10.79rem; transform: rotate(-26.72deg); }
.contact-deco--right { top: 3.12rem; left: calc(50% + 14.96rem); width: 8.6rem; transform: rotate(14.91deg); }
@media (max-width: 640px) {
  .contact { margin-top: 8rem; }
  .contact-deco { display: none; }
}
/* /stp:contact */
/* stp:footer */
.footer { position: relative; margin-top: 15rem; padding: 4.6rem 8rem; background: var(--gold); border-radius: 12rem 12rem 0 0; color: var(--dark-text); }
.footer-inner { max-width: 128rem; margin: 0 auto; display: flex; flex-direction: column; gap: 5rem; }
.footer-links { display: flex; justify-content: space-between; gap: 2rem; }
.footer-link { font-family: var(--font-head); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--dark-text); }
.footer-link:hover, .footer .footer-link:hover { color: var(--bg); text-decoration: underline; }
.footer-copy { text-align: center; font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; color: var(--dark-text); }
.footer-deco { display: none; }
@media (max-width: 1024px) {
  .footer { padding: 4.6rem 4rem; }
}
@media (max-width: 640px) {
  .footer { margin-top: 8rem; padding: 4.5rem 2rem; border-radius: 8rem 8rem 0 0; }
  .footer-inner { gap: 3.4rem; }
  .footer-links { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 1.6rem; }
  .footer-copy { text-align: left; }
  .footer-deco { display: block; position: absolute; top: -6rem; left: 15.7rem; width: 6.2rem; height: auto; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 11.2rem; }
.legal-body .header-wrap { max-width: 108rem; }
.legal-body .footer { margin-top: 0; }
.legal-body .footer-inner { max-width: 108rem; }
.legal-page { padding: 0 2rem 10rem; }
.legal-content { max-width: 108rem; margin: 0 auto; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; color: var(--text); }
.legal-content h1 { margin-bottom: 2.8rem; font-family: var(--font-head); font-size: 3.6rem; line-height: 1.5; color: var(--gold); text-align: center; }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 0; font-family: var(--font-body); font-size: clamp(14px, 1.6rem, 1.6rem); font-weight: 700; line-height: 1.5; color: var(--text); text-align: left; }
.legal-content p { margin: 0 0 2.4rem; }
.legal-content ul, .legal-content ol { margin: 0 0 2.4rem; padding-left: 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(--gold); }
.legal-content strong, .legal-content b, .legal-content .domain, .legal-content .app-domain { font-weight: 700; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
@media (max-width: 1024px) {
  .legal-body .footer { padding: 4.6rem 4rem; }
}
@media (max-width: 640px) {
  .legal-main { padding-top: 11.6rem; }
  .legal-body .burger-btn span { background: var(--gold); }
  .legal-page { padding: 0 2rem 8rem; }
  .legal-content h1 { margin-bottom: 2.4rem; }
  .legal-body .footer { padding: 4.5rem 2rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero-title:not(.is-in) { opacity: 0; }
.anim-on .hero-title.is-in { animation: ta-surface 2.1s cubic-bezier(0.22, 0.7, 0.2, 1) backwards; }
.anim-on .title .ta-tide { display: inline-block; }
.anim-on .title:not(.is-in) .ta-tide { opacity: 0; clip-path: polygon(-6% -40%, 106% -40%, 106.0% -22.0%, 94.8% -19.2%, 83.6% -27.3%, 72.4% -14.7%, 61.2% -30.6%, 50.0% -13.0%, 38.8% -30.6%, 27.6% -14.7%, 16.4% -27.3%, 5.2% -19.2%, -6.0% -22.0%); }
.anim-on .title.is-in .ta-tide { animation: ta-tide 1.5s cubic-bezier(0.3, 0.55, 0.35, 1) backwards; }
@keyframes ta-surface {
  0% { opacity: 0; transform: translateY(3.2rem); filter: blur(1rem) brightness(0.55) drop-shadow(0 0 2.4rem var(--green)); }
  55% { opacity: 1; transform: translateY(0.5rem); filter: blur(0.15rem) brightness(1.18) drop-shadow(0 0 1.6rem var(--gold)); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0) brightness(1) drop-shadow(0 0 0 transparent); }
}
@keyframes ta-tide {
  0% { opacity: 0.2; color: var(--green); filter: blur(0.3rem) drop-shadow(0 0 1rem var(--green)); clip-path: polygon(-6% -40%, 106% -40%, 106.0% -22.0%, 94.8% -19.2%, 83.6% -27.3%, 72.4% -14.7%, 61.2% -30.6%, 50.0% -13.0%, 38.8% -30.6%, 27.6% -14.7%, 16.4% -27.3%, 5.2% -19.2%, -6.0% -22.0%); }
  35% { opacity: 1; color: var(--green); filter: blur(0.12rem) drop-shadow(0 0 0.8rem var(--green)); clip-path: polygon(-6% -40%, 106% -40%, 106.0% 38.8%, 94.8% 21.0%, 83.6% 38.3%, 72.4% 23.2%, 61.2% 34.7%, 50.0% 28.0%, 38.8% 29.2%, 27.6% 33.5%, 16.4% 24.1%, 5.2% 37.7%, -6.0% 21.2%); }
  70% { opacity: 1; color: var(--gold); filter: blur(0) drop-shadow(0 0 0.7rem var(--gold)); clip-path: polygon(-6% -40%, 106% -40%, 106.0% 80.0%, 94.8% 85.3%, 83.6% 85.5%, 72.4% 79.8%, 61.2% 90.4%, 50.0% 75.9%, 38.8% 92.9%, 27.6% 75.1%, 16.4% 92.0%, 5.2% 77.7%, -6.0% 88.0%); }
  100% { opacity: 1; color: var(--gold); filter: blur(0) drop-shadow(0 0 0 transparent); clip-path: polygon(-6% -40%, 106% -40%, 106.0% 138.0%, 94.8% 153.4%, 83.6% 136.0%, 72.4% 153.7%, 61.2% 137.4%, 50.0% 150.7%, 38.8% 141.7%, 27.6% 145.5%, 16.4% 147.3%, 5.2% 140.2%, -6.0% 152.0%); }
}
@media (max-width: 640px) {
  .anim-on .hero-title.is-in { animation-duration: 1.7s; }
  .anim-on .title.is-in .ta-tide { animation-duration: 1.2s; }
}
/* /stp:title-anim */
