:root {
  --bg: #0a1020;
  --bg-deep: #05080f;
  --ink: #f4f7ff;
  --muted: #a8b3c9;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffd24a;
  --accent-hot: #ff6b9d;
  --play: #3ddc84;
  --play-ink: #062816;
  --card: rgba(255, 255, 255, 0.04);
  --radius: 1.25rem;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 90% 60% at 15% 10%, rgba(255, 107, 157, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 5%, rgba(255, 210, 74, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 45% at 70% 80%, rgba(91, 168, 255, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffe28a;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
}

.site-header a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-header a:hover {
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6.5rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.hero-inner {
  width: min(100%, 40rem);
  text-align: center;
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: min(100%, 28rem);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.version-badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 210, 74, 0.12);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

.hero p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-play {
  color: var(--play-ink);
  background: linear-gradient(180deg, #5ef0a0 0%, var(--play) 100%);
  box-shadow: 0 10px 28px rgba(61, 220, 132, 0.28);
}

.btn-play:hover {
  color: var(--play-ink);
  box-shadow: 0 14px 34px rgba(61, 220, 132, 0.38);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}

.play-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.section {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 5rem;
}

.section-head {
  margin: 0 0 1.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.section-head p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  animation: fade-up 700ms ease both;
}

.shot:nth-child(2) { animation-delay: 60ms; }
.shot:nth-child(3) { animation-delay: 120ms; }
.shot:nth-child(4) { animation-delay: 180ms; }
.shot:nth-child(5) { animation-delay: 240ms; }
.shot:nth-child(6) { animation-delay: 300ms; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot.is-empty {
  display: none;
}

.shot-placeholder {
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.game {
  width: 5.5rem;
  text-align: center;
}

.game img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: #111827;
  object-fit: cover;
  transition: transform 180ms ease;
}

.game:hover img {
  transform: scale(1.06);
}

.game span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Legal pages */
.legal-page {
  padding: 6rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.legal-wrap {
  width: min(100%, 46rem);
  margin: 0 auto;
}

.legal-wrap h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.legal-meta {
  color: var(--muted);
  margin: 0 0 2rem;
}

.legal-wrap h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.legal-wrap p,
.legal-wrap li {
  color: #d5dceb;
}

.legal-wrap ul {
  padding-left: 1.2rem;
}

.legal-wrap li + li {
  margin-top: 0.35rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

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