:root {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --card-border: rgba(251, 191, 36, 0.42);
  --text-soft: rgba(226, 232, 240, 0.85);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.18), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.2), transparent 42%),
    linear-gradient(180deg, var(--bg-primary) 0%, #040b1e 55%, var(--bg-secondary) 100%);
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.site-title {
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4), 0 0 20px rgba(245, 158, 11, 0.22);
}

.site-shell {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(10px);
}

.nav-link {
  color: var(--text-soft);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.active-link {
  color: #fbbf24;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(2, 132, 199, 0.08)),
    rgba(15, 23, 42, 0.62);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.hero-card > *:not(.binary-rain) {
  position: relative;
  z-index: 1;
}

.binary-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background: radial-gradient(circle at 50% 10%, rgba(34, 197, 94, 0.18), transparent 55%);
}

.binary-rain span {
  position: absolute;
  top: -35%;
  color: rgba(251, 191, 36, 0.86);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  animation: binary-fall linear infinite;
  white-space: nowrap;
}

.binary-rain span:nth-child(1) { left: 4%;  animation-duration: 17s; animation-delay: -2.2s; }
.binary-rain span:nth-child(2) { left: 14%; animation-duration: 18.5s; animation-delay: -7s; }
.binary-rain span:nth-child(3) { left: 24%; animation-duration: 16.8s; animation-delay: -5s; }
.binary-rain span:nth-child(4) { left: 34%; animation-duration: 18s; animation-delay: -1.5s; }
.binary-rain span:nth-child(5) { left: 44%; animation-duration: 15.8s; animation-delay: -6.3s; }
.binary-rain span:nth-child(6) { left: 56%; animation-duration: 17.6s; animation-delay: -4.7s; }
.binary-rain span:nth-child(7) { left: 66%; animation-duration: 19.2s; animation-delay: -8.2s; }
.binary-rain span:nth-child(8) { left: 76%; animation-duration: 16.5s; animation-delay: -3.8s; }
.binary-rain span:nth-child(9) { left: 86%; animation-duration: 18.1s; animation-delay: -6.8s; }
.binary-rain span:nth-child(10){ left: 94%; animation-duration: 17.2s; animation-delay: -2.9s; }

@keyframes binary-fall {
  0% {
    top: -35%;
    opacity: 0;
  }
  12% {
    opacity: 0.78;
  }
  88% {
    opacity: 0.62;
  }
  100% {
    top: 120%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .binary-rain span {
    animation: none;
    opacity: 0.25;
  }
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #02160a;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cta-primary:hover,
.cta-secondary:hover {
  background-color: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.58);
  color: #fde68a;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), 0 8px 24px rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
}

.game-card,
.panel,
.info-card {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.68);
}

.game-card {
  padding: 1rem;
}

.game-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.75rem;
  margin-bottom: 0.9rem;
}

.game-link {
  margin-top: 0.95rem;
  display: inline-block;
  font-size: 0.95rem;
  color: #86efac;
  text-decoration: underline;
}

.game-link:hover {
  color: #fcd34d;
}

.panel {
  background: rgba(15, 23, 42, 0.78);
}

.info-card {
  padding: 1rem;
}

@media (min-width: 768px) {
  .game-card {
    padding: 1.25rem;
  }
}
