html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100%;
  font-family: "Lexend", sans-serif;
  color: #11ff00;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("background.jpg") center center / cover no-repeat;
  z-index: -1;
  filter: brightness(0.25);
  animation: bgBlink 1.5s infinite alternate;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.logo-container {
  margin-top: 30px;
  margin-bottom: 10px;
}

.logo-container img {
  width: clamp(100px, 25vw, 140px);
  height: clamp(100px, 25vw, 140px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(0, 73, 0);
  box-shadow: 0 0 20px #11ff00;
  filter: brightness(1.25);
  animation: blink 1.5s ease-in-out infinite;
}

.welcome {
  max-width: 360px;
  margin: 5px 15px 15px 15px;
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.5;
  color: #ffffff;
  text-shadow: 0 0 10px #00ff00;
  animation: textBlink 1.5s infinite ease-in-out;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 0 20px;
  margin-top: 5px;
}

.links-glow {
  width: 100%;
  max-width: 280px;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 50px;
  padding: 14px 24px;
}

.glow-on-hover {
  border: 2px solid #00ff2f;
  outline: none;
  color: #06ff06;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 50px;
  animation: textBlink 1.5s infinite ease-in-out;
  transition: transform 0.2s, box-shadow 0.2s;
}

.glow-on-hover::before {
  content: "";
  background: linear-gradient(40deg, #000000, #06ff06, #000000);
  position: absolute;
  top: -2.5px;
  left: -2.5px;
  background-size: 400%;
  z-index: -1;
  filter: blur(1px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 50px;
  animation: glowing 10s linear infinite;
}

.glow-on-hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: #000;
  z-index: -1;
  border-radius: 50px;
}

.glow-on-hover:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px #11ff00;
  background: #ff9500;
  color: #ff0000;
  animation: blink 0.3s ease-in-out infinite;
}

/* ====== Game Section ====== */
.game_section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.game_list {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  width: 100%;
  max-width: 360px;
  padding: 0 15px;
}

.game_box {
  border-radius: 10px;
  border: 2px solid #00a71a;
  padding: 5px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.game_box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.game_box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #11ff00;
  animation: blink 0.3s ease-in-out infinite;
}

.copyright {
  margin-top: 40px;
  color: #ffffff;
  font-size: clamp(12px, 2.5vw, 14px);
  opacity: 0.85;
}

@keyframes blink {
  0%,
  100% {
    box-shadow: 0 0 20px #11ff00;
  }
  50% {
    box-shadow: 0 0 0 transparent;
  }
}

@keyframes bgBlink {
  0% {
    filter: brightness(0.25);
  }
  50% {
    filter: brightness(0.45);
  }
  100% {
    filter: brightness(0.25);
  }
}

@keyframes textBlink {
  0%,
  100% {
    color: #0dff00;
    text-shadow: 0 0 2px #000;
  }
  50% {
    color: #40ff0037;
    text-shadow: 0 0 2px #000000;
  }
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@media (max-width: 600px) {
  body {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .logo-container {
    margin-top: 20px;
  }

  .logo-container img {
    width: 90px;
    height: 90px;
  }

  .welcome {
    font-size: 16px;
    margin-bottom: 10px;
    padding: 0 15px;
  }

  .links {
    gap: 10px;
  }

  .links-glow {
    padding: 10px 16px;
    font-size: 15px;
    max-width: 260px;
  }

  .game_list {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 8px;
    max-width: 280px;
  }

  .copyright {
    margin-top: 25px;
    font-size: 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .glow-on-hover:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px #11ff00;
    background: #222;
    color: #0f0;
  }
}
