@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top, rgba(0,255,255,0.15), transparent 40%),
    radial-gradient(circle at bottom, rgba(255,0,255,0.12), transparent 40%),
    linear-gradient(135deg, #03131d, #071d2b, #021018);
  background-color: #021018;
  color: white;
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  text-align: center;
  position: relative;
}
body::before {
  content: '';

  position: absolute;

  inset: 0;

  background:
    radial-gradient(circle at 20% 20%, rgba(0,255,255,0.08), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(255,0,255,0.08), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(0,255,255,0.06), transparent 25%);

  pointer-events: none;

  z-index: 0;
}
.screen {
  position: relative;
  z-index: 1;
}
h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #6ef2ff;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow:
    0 0 10px rgba(0,255,255,0.7),
    0 0 20px rgba(0,255,255,0.5),
    0 0 40px rgba(0,255,255,0.3);
  margin-bottom: 50px;
}

.main-title {
  margin-bottom: 40px;
}

.btn {
  border: none;
  outline: none;
  overflow: hidden;
  position: relative;
  padding: 18px 42px;
  font-size: 1rem;
  border-radius: 50px;
  background: linear-gradient(90deg, #00e5ff, #ff00d4);
  color: white;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 0 15px rgba(0,229,255,0.7),
    0 0 35px rgba(255,0,212,0.5);
  transition: 0.35s ease;
}
.btn:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 25px rgba(0,229,255,0.9),
    0 0 45px rgba(255,0,212,0.8);
}


.btn:focus {
  outline: none;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  transition: margin 0.5s ease-out;
}

.screen.up {
  margin-top: -100vh;
}

.insects-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.choose-insect-btn {
  position: relative;
  width: 220px;
  height: 220px;

  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);

  background: rgba(255,255,255,0.05);

  backdrop-filter: blur(6px);

  color: white;

  cursor: pointer;

  transition: 0.4s ease;

  overflow: hidden;
}

.insects-list li:nth-child(1) .choose-insect-btn {
  box-shadow: 0 0 25px #ff4fd8;
  border-color: #ff4fd8;
}

.insects-list li:nth-child(2) .choose-insect-btn {
  box-shadow: 0 0 25px #4de9ff;
  border-color: #4de9ff;
}

.insects-list li:nth-child(3) .choose-insect-btn {
  box-shadow: 0 0 25px #c86bff;
  border-color: #c86bff;
}

.insects-list li:nth-child(4) .choose-insect-btn {
  box-shadow: 0 0 25px #ffb84d;
  border-color: #ffb84d;
}
.choose-insect-btn:hover {
  transform: scale(1.08);
}

.choose-insect-btn:active {
  transform: scale(0.96);
}
.choose-insect-btn p {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: white;
}


.choose-insect-btn img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.5));
}

.game-container {
  position: relative;
}

.time,
.score {
  position: absolute;
  top: 20px;
  font-size: 1.2rem;
  color: #6ef2ff;
  text-shadow: 0 0 10px #00f7ff;
}

.time {
  left: 20px;
}

.score {
  right: 20px;
}

.message {
  line-height: 1.8;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  width: 420px;
  padding: 25px;
  border-radius: 20px;
  z-index: 100;
  text-align: center;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -200%);
  transition: all 0.5s ease;
  box-shadow: 0 0 30px rgba(0,247,255,0.2);
}

.message.visible {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.insect {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  position: absolute;
  transform: translate(-50%, -50%) scale(1);
  transition:
  transform 0.3s ease,
  opacity 0.3s ease;
  animation: float 2s infinite ease-in-out;
}
.insect.caught {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.insect img {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 12px rgba(255,140,0,0.8));
}
@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(0px);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }

  100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
}

/* RESPONSIVE */

@media(max-width: 768px) {

  h1 {
    font-size: 2rem;
  }

  .insects-list {
    gap: 15px;
  }

  .choose-insect-btn {
    width: 150px;
    height: 180px;
  }

  .choose-insect-btn img {
    width: 90px;
    height: 90px;
  }

  .message {
    width: 90%;
    font-size: 0.7rem;
  }

  .time,
  .score {
    font-size: 0.8rem;
  }
}.corner-design {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(0,255,255,0.25);
  z-index: 0;
}

.top-left {
  top: -100px;
  left: -100px;
  border-radius: 0 0 100% 0;
}

.top-right {
  top: -100px;
  right: -100px;
  border-radius: 0 0 0 100%;
}

.bottom-left {
  bottom: -100px;
  left: -100px;
  border-radius: 0 100% 0 0;
}

.bottom-right {
  bottom: -100px;
  right: -100px;
  border-radius: 100% 0 0 0;
}