* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #00111a, #000);
  height: 100vh;
  overflow: hidden;
  color: white;
}
  


/* Background Layers */
#bg-layers {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,0,255,0.1));
  filter: blur(80px);
  z-index: -2;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.center-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.game-card {
  width: 380px;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 25px rgba(0,255,255,0.25);
  animation: fadeIn 0.5s ease;
}

.card-head {
  text-align: center;
  margin-bottom: 20px;
}

.icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 24px;
  letter-spacing: 2px;
}

.btn {
  width: 100%;
  padding: 11px;
  margin: 6px 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  transition: 0.25s;
}

.btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.03);
}

.btn.primary {
  background: #00d5ff;
  color: #000;
  font-weight: bold;
}

.btn.primary:hover {
  background: #00eaff;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #aaa;
}

.hidden {
  display: none;
}

.status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.question {
  font-size: 35px;
  text-align: center;
  margin: 20px 0;
}

.answer-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #aaa;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.2);
  color: white;
  text-align: center;
}

.game-over {
  margin-top: 15px;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  text-align: center;
}

/* POPUP */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.4);
  z-index: 10;
}

.popup.hidden {
  display: none !important;
}

.popup-content {
  width: 320px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 15px rgba(0,255,255,0.25);
  text-align: center;
}

.stars span {
  font-size: 32px;
  cursor: pointer;
  padding: 4px;
  color: #888;
}

.stars span.active,
.stars span:hover {
  color: #ffd700;
  text-shadow: 0 0 10px #ffea00;
}

#ratingStats {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 25px rgba(0,255,255,0.25);
  text-align: center;
  z-index: 20;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
/* Galaxy Particles */
.galaxy {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite ease-in-out;
  filter: drop-shadow(0 0 6px #8ff);
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.2; transform: scale(0.8); }
}
