/* Viral Play — night-stadium design language (shared with Golazo Breaker) */
@font-face { font-family: 'Bakbak One'; src: url('/assets/fonts/bakbak-one-v11-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-v32-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-v32-latin-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --night-deep: #081426;
  --night: #0d1f3c;
  --night-mid: #123252;
  --pitch: #2ec96f;
  --pitch-dark: #1e9a51;
  --gold: #ffc233;
  --floodlight: #f2f8ff;
  --dim: #9fb0c8;
  --line: rgba(255, 255, 255, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(120vw 60vh at 50% -10%, rgba(47, 128, 237, 0.14), transparent 60%),
    radial-gradient(80vw 50vh at 80% 100%, rgba(46, 201, 111, 0.08), transparent 60%),
    var(--night-deep);
  color: var(--floodlight);
  font-family: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, .display { font-family: 'Bakbak One', 'Nunito', sans-serif; font-weight: 400; letter-spacing: 0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: 'Bakbak One', sans-serif; font-size: 26px; text-decoration: none;
  color: var(--floodlight);
}
.brand span { color: var(--gold); }
nav .links a {
  text-decoration: none; color: var(--dim); margin-left: 28px; font-size: 15px;
  transition: color 0.2s;
}
nav .links a:hover { color: var(--gold); }

/* ── Hero ── */
.hero { text-align: center; padding: 72px 0 48px; position: relative; overflow: visible; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 48px rgba(255, 194, 51, 0.35); }
.hero p { color: var(--dim); font-size: clamp(16px, 2.2vw, 20px); max-width: 560px; margin: 20px auto 0; }

/* Floating balls marquee */
.marquee { overflow: hidden; margin: 56px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 26s linear infinite; padding: 12px 0; }
.marquee-track img { width: 72px; height: 72px; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45)); transition: transform 0.3s; }
.marquee-track img:hover { transform: scale(1.18) rotate(12deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Games grid ── */
.section-title { font-size: 32px; margin: 72px 0 24px; }
.section-title span { color: var(--pitch); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.game-card {
  position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--night); text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 194, 51, 0.45);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.7), 0 0 40px -18px rgba(255, 194, 51, 0.4);
}
.game-card .cover { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.game-card .meta { display: flex; align-items: center; gap: 14px; padding: 18px; }
.game-card .icon { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 6px 14px rgba(0,0,0,0.5); }
.game-card h3 { font-size: 20px; }
.game-card .tag { color: var(--pitch); font-size: 13px; }
.game-card.soon { opacity: 0.55; pointer-events: none; }
.game-card.soon .cover { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--night), var(--night) 14px, var(--night-mid) 14px, var(--night-mid) 28px); color: var(--dim); font-family: 'Bakbak One', sans-serif; font-size: 22px; letter-spacing: 0.1em; }

/* ── Game page ── */
.game-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 56px 0; }
.game-hero .logo { max-width: 380px; filter: drop-shadow(0 18px 36px rgba(0,0,0,0.6)); }
.game-hero p.lede { color: var(--dim); font-size: 18px; margin-top: 18px; }
.badges { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 20px;
  font-size: 15px; color: var(--floodlight); background: var(--night);
  transition: border-color 0.2s, transform 0.2s;
}
.badge:hover { border-color: var(--gold); transform: translateY(-2px); }
.badge.primary { background: linear-gradient(135deg, var(--pitch), var(--pitch-dark)); border-color: transparent; color: #06231a; font-weight: 800; }
.badge small { color: var(--dim); font-size: 11px; display: block; line-height: 1.2; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px 0 64px; }
.shots img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.7); transition: transform 0.25s; }
.shots img:hover { transform: scale(1.03) rotate(-0.5deg); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 72px; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(13, 31, 60, 0.5); }
.feature b { color: var(--gold); display: block; font-family: 'Bakbak One', sans-serif; font-weight: 400; font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--dim); font-size: 14px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 48px; color: var(--dim); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--dim); text-decoration: none; margin-right: 20px; }
footer a:hover { color: var(--gold); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .game-hero { grid-template-columns: 1fr; text-align: center; }
  .game-hero .logo { margin: 0 auto; }
  .badges { justify-content: center; }
  .shots { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}
