:root {
  /* Brand palette — mirrors the game / React app theme */
  --bg-start: #15296B;
  --bg-mid: #1F5DA0;
  --bg-end: #2E8AC8;
  --bg-gradient: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);

  --gold: #FFD23C;
  --gold-soft: rgba(255, 210, 60, 0.4);

  --green-top: #5FCB52;
  --green-bottom: #2FA037;

  --text-main: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.85);

  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);

  --radius: 28px;
  --shadow-soft: 0 24px 60px rgba(8, 18, 48, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Fredoka', system-ui, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---------- Decorative golden particles ---------- */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-particles span {
  position: absolute;
  bottom: -10vh;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold) 0%, var(--gold-soft) 60%, transparent 70%);
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-115vh) scale(1.1); opacity: 0; }
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Glass card ---------- */
.card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Staggered entrance */
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo {
  width: clamp(120px, 30vw, 180px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}

.badge {
  margin-top: 1.25rem;
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 210, 60, 0.16);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.title {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-main);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.22s;
}

.title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 4px;
  background: var(--gold);
}

.subtitle {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  font-weight: 500;
  color: var(--gold);
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

.lead {
  margin-top: 1rem;
  max-width: 46ch;
  font-size: clamp(0.98rem, 3vw, 1.08rem);
  line-height: 1.6;
  color: var(--text-secondary);
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.38s;
}

/* ---------- Features ---------- */
.features {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.75rem;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.46s;
}

.features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  font-size: 0.95rem;
  font-weight: 500;
}

.feat-ico {
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Stores ---------- */
.stores {
  margin-top: 2.25rem;
  width: 100%;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.54s;
}

.stores-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-badge {
  position: relative;
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
}

.store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.store-badge.is-soon img {
  filter: grayscale(1) opacity(0.55);
}

.store-badge.is-soon {
  cursor: not-allowed;
}

.soon-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: var(--gold);
  color: #1F2937;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1.25rem 2.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links {
  margin-top: 0.4rem;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links span {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bg-particles { display: none; }
}
