#game-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: #0f0;
  color: #0b0e16;
  border: none;
  font-size: 26px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 0 10px #0f0;
  transition: transform .3s, box-shadow .3s;
}
#game-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #0f0;
}
#game-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s;
}
#game-modal.active {
  opacity: 1;
  visibility: visible;
}
#game-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
#game-container {
  position: relative;
  background: #0b0e16;
  border: 2px solid #0f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px #0f0;
  z-index: 1001;
  max-width: 600px;
  width: 90%;
}
#close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgb(0, 255, 0);
  font-size: 18px;
  cursor: pointer;
}
h1 {
  color: #0f0;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  margin-bottom: 20px;
  text-shadow: 0 0 8px #0f0;
}
#game-board {
  display: grid;
  grid-template-columns: repeat(5, 80px);
  grid-gap: 8px;
  justify-content: center;
}
.card {
  width: 80px;
  height: 80px;
  background: #161a25;
  border: 2px solid rgb(2, 151, 2);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: transform .3s;
  transform-style: preserve-3d;
}
.card:hover{
     border-color: red;
     scale: 1.05;
     box-shadow: 0 0 6px #f33;
}
.card.flip { transform: rotateY(180deg); }
.card img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}
.front {
  background: url(logo.png);
  background-size: cover;
  color: #0b0e16;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  position: absolute;
  border-radius: 5px;
  width: 100%;
  height: 100%;
}
.back { transform: rotateY(180deg); }
#reset-btn {
  margin-top: 10px;
  background: rgba(0, 255, 0, 0.856);
  color: #0b0e16;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  font-size: 10px;
  transition: background .2s;
}
#reset-btn:hover { background: #0f0; }
#score {
  margin-top: 10px;
  color: #0f0;
  font-family: monospace;
  font-size: 12px;
}
#confetti {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
@media (max-width:600px) {
  #game-board { grid-template-columns: repeat(4,60px); }
  .card { width: 60px; height: 60px; }
}
