:root {
  --bg-primary: #0d0221;
  --bg-secondary: #240046;
  --bg-accent: #3c096c;
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --text-primary: #ffffff;
  --text-secondary: #c4b5d0;
  --text-muted: #8b7fa5;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(240, 214, 138, 0.22);
  --footer-bg: rgba(9, 3, 23, 0.65);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at top, #2f0a5e 0%, var(--bg-primary) 46%, #080212 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(9, 3, 23, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.25rem;
  display: inline-flex;
  gap: 0.25rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active {
  background: linear-gradient(120deg, #4f168e, #7144b1);
  color: var(--text-primary);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 0 3rem;
  radial-gradient(circle at top, #2f0a5e 0%, var(--bg-primary) 46%, #080212 100%);
  /* background: linear-gradient(160deg, var(--bg-primary), var(--bg-secondary)); */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 42rem;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(5.5rem, 24vw, 10rem);
  aspect-ratio: 1;
  transform: translate(-50%, -20pt);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 214, 138, 0.34) 0%,
    rgba(240, 214, 138, 0.2) 38%,
    rgba(240, 214, 138, 0.08) 62%,
    rgba(240, 214, 138, 0) 100%
  );
  filter: blur(9px);
  opacity: 0.6;
  animation: iconPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-symbol {
  width: clamp(5.5rem, 24vw, 10rem);
  height: auto;
  display: block;
  margin: 0 auto 0.8rem;
  transform: translateY(-20pt);
  filter: drop-shadow(0 10px 22px rgba(212, 168, 67, 0.35));
}

.hero-kicker {
  margin: 0;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2,
.legal-content h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--gold-light);
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1;
}

.hero-subtitle {
  margin: 0.8rem 0 0;
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  color: var(--text-secondary);
}

.hero-description {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: #e6dff0;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  background: radial-gradient(circle at 30% 30%, #fff6d5 0%, var(--gold-light) 60%, #d4a843 100%);
  opacity: 0.85;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 92%,
    50% 70%,
    21% 92%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  box-shadow: 0 0 14px rgba(240, 214, 138, 0.85);
  animation: twinkle 3.2s ease-in-out infinite;
}

.s1 { top: 20%; left: 12%; }
.s2 { top: 34%; left: 26%; animation-delay: 0.6s; }
.s3 { top: 24%; right: 18%; animation-delay: 1.2s; }
.s4 { top: 62%; left: 20%; animation-delay: 1.8s; }
.s5 { top: 74%; right: 22%; animation-delay: 2.2s; }
.s6 { top: 50%; right: 8%; animation-delay: 2.8s; }
.s7 { top: 14%; left: 68%; animation-delay: 0.4s; }
.s8 { top: 44%; left: 8%; animation-delay: 0.9s; }
.s9 { top: 78%; left: 52%; animation-delay: 1.7s; }
.s10 { top: 30%; right: 34%; animation-delay: 2.5s; }
.s11 { top: 56%; right: 44%; animation-delay: 2.9s; }
.s12 { top: 86%; right: 10%; animation-delay: 3.2s; }
.s13 { top: 10%; left: 30%; animation-delay: 0.3s; }
.s14 { top: 18%; right: 28%; animation-delay: 1.1s; }
.s15 { top: 26%; left: 44%; animation-delay: 2s; }
.s16 { top: 38%; right: 6%; animation-delay: 2.7s; }
.s17 { top: 47%; left: 34%; animation-delay: 3.1s; }
.s18 { top: 64%; right: 30%; animation-delay: 1.4s; }
.s19 { top: 72%; left: 6%; animation-delay: 2.3s; }
.s20 { top: 90%; left: 40%; animation-delay: 3.5s; }
.s21 { top: 12%; right: 48%; animation-delay: 0.5s; }
.s22 { top: 22%; left: 4%; animation-delay: 1.3s; }

.coming-soon {
  background: var(--footer-bg);
  padding: 4rem 0;
}

.coming-soon .container {
  background: rgb(5, 20, 35);
  border: 1px solid var(--surface-border);
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  text-align: center;
}

h2 {
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.coming-copy {
  margin: 0 auto;
  color: var(--text-secondary);
  max-width: 34rem;
}

.store-buttons {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.store-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.95rem;
  padding: 0.8rem 1rem;
  background: rgba(11, 8, 20, 0.8);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.store-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(212, 168, 67, 0.18), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 214, 138, 0.55);
}

.store-btn:hover::after {
  opacity: 1;
}

.store-btn:disabled {
  opacity: 0.82;
  cursor: not-allowed;
}

.store-icon {
  font-size: 1.35rem;
  color: var(--gold-light);
}

.store-icon.play {
  font-size: 1.1rem;
  transform: translateX(2px);
}

.store-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.store-text small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.store-text strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.badge {
  margin-left: auto;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--gold-light);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer {
  background: var(--footer-bg);
  padding: 1.6rem 0 2.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
  border-color: rgba(240, 214, 138, 0.7);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  padding-top: 5.5rem;
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  padding: 1.4rem;
  margin-bottom: 2rem;
}

.support-content {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  padding: 1.4rem;
  margin-bottom: 2rem;
}

.support-lead {
  color: var(--text-secondary);
  margin: 0.8rem 0 1.2rem;
}

.support-form {
  display: grid;
  gap: 0.7rem;
}

.support-label {
  color: var(--gold-light);
  font-size: 0.9rem;
}

.support-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0.8rem;
  background: rgba(11, 8, 20, 0.8);
  color: var(--text-primary);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.support-input:focus {
  outline: none;
  border-color: rgba(240, 214, 138, 0.62);
  box-shadow: 0 0 0 2px rgba(240, 214, 138, 0.2);
}

.support-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.support-submit {
  margin-top: 0.3rem;
  border: 1px solid rgba(240, 214, 138, 0.45);
  border-radius: 0.8rem;
  background: linear-gradient(120deg, #4f168e, #7144b1);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.support-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.support-dialog {
  width: min(92vw, 28rem);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: #13062b;
  color: var(--text-primary);
  padding: 1.1rem;
}

.support-dialog::backdrop {
  background: rgba(6, 4, 12, 0.74);
}

.support-dialog-message {
  margin: 0 0 0.9rem;
  color: var(--gold-light);
}

.support-dialog-close {
  border: 1px solid rgba(240, 214, 138, 0.45);
  border-radius: 0.7rem;
  background: linear-gradient(120deg, #4f168e, #7144b1);
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--gold-light);
}

.back-link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(240, 214, 138, 0.6);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(-50%, -20pt) scale(0.94);
  }

  50% {
    opacity: 0.68;
    transform: translate(-50%, -20pt) scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -16px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 7rem;
  }

  .store-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .coming-soon .container,
  .legal-content,
  .support-content {
    padding: 2rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .nav {
    height: 4.4rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .store-btn {
    padding: 0.95rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
