:root {
  --bg-top: #08111f;
  --bg-bottom: #1d3557;
  --bg-pop: #2a9d8f;
  --card: #ffffff;
  --text: #0d1b2a;
  --accent: #ffb703;
  --accent-2: #fb8500;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 133, 0, 0.2), transparent 40%),
    radial-gradient(circle at 80% 78%, rgba(42, 157, 143, 0.25), transparent 42%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -80px;
  right: -60px;
  background: rgba(255, 183, 3, 0.28);
}

body::after {
  bottom: -90px;
  left: -80px;
  background: rgba(42, 157, 143, 0.28);
}

.home {
  width: min(92vw, 760px);
  text-align: center;
  position: relative;
  z-index: 1;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8ad7ce;
  font-size: 0.9rem;
}

h1 {
  margin: 0.3rem 0 0;
  font-family: "Bungee", "Trebuchet MS", sans-serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.95;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 1rem 0 2rem;
  opacity: 0.95;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.game-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: var(--card);
  color: var(--text);
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  border: 4px solid transparent;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  top: -140%;
  left: -35%;
  width: 45%;
  height: 380%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-220%) rotate(12deg);
  animation: cardShine 3.4s ease-in-out infinite;
  pointer-events: none;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent-2);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.44);
}

@keyframes cardShine {
  0%,
  62% {
    transform: translateX(-220%) rotate(12deg);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(480%) rotate(12deg);
    opacity: 0;
  }
}

.game-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.game-card p {
  margin: 0.7rem 0 1.2rem;
}

.game-card span {
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ffd166);
  color: #1f2933;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.credit {
  margin: 1.3rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #e6f7ff;
  opacity: 0.95;
}
