/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top, #1a2a6c 0%, #050505 60%),
    linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* ================= CONTAINER ================= */
.container {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 30px;
  padding: 55px 75px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.8);
  text-align: center;
  animation: intro 1s ease forwards;
}

/* ================= TITLE ================= */
h1 {
  font-size: 3rem;
  margin-bottom: 55px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #00f2fe, #4facfe, #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(0,255,200,0.35);
}

/* ================= GRID ================= */
.games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 55px 70px;
  max-width: 680px;
  margin: 0 auto;
}

/* ================= GAME CARD ================= */
.game {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  box-shadow:
    0 0 20px rgba(0,255,200,0.25),
    inset 0 0 25px rgba(255,255,255,0.05);
  animation: neonPulse 3s infinite ease-in-out;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* VISUAL EFFECTS  DO NOT BLOCK CLICKS */
.game::before,
.game::after {
  pointer-events: none; /* ?? FIX KRITIK */
}

/* LIGHT SWEEP */
.game::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ANIMATED BORDER */
.game::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(120deg, #00f2fe, #4facfe, #00ffcc);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ================= HOVER ================= */
.game:hover {
  transform:
    perspective(1000px)
    rotateX(6deg)
    rotateY(-6deg)
    scale(1.1);
  box-shadow:
    0 0 55px rgba(0,255,200,0.9),
    inset 0 0 30px rgba(255,255,255,0.1);
}

.game:hover::before,
.game:hover::after {
  opacity: 1;
}

/* ================= LINK ================= */
.game a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2; /* ?? LINK SIPĖR */
}

/* ================= IMAGE ================= */
.game img {
  width: 100%;
  display: block;
  border-radius: 26px 26px 0 0;
}

/* ================= NAME ================= */
.game-name {
  padding: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= ANIMATIONS ================= */
@keyframes neonPulse {
  0% {
    box-shadow: 0 0 18px rgba(0,255,200,0.25);
  }
  50% {
    box-shadow: 0 0 45px rgba(0,255,200,0.85);
  }
  100% {
    box-shadow: 0 0 18px rgba(0,255,200,0.25);
  }
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .container {
    padding: 40px 30px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .games {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
