/* Game Setup Section */
.game-setup-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-height: 100vh;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.game-setup-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  animation: floatingBubbles 20s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.game-setup-section.loaded .game-setup-content {
  opacity: 1;
}

.game-setup-content {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 5px 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
    0 0 100px rgba(255, 255, 255, 0.1) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 95dvh;
  width: 70%;
  overflow: visible;
  transition: all 0.5s ease;
  opacity: 0.8;
  z-index: 2;
  will-change: opacity;
}

.game-setup-content::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background-image: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.2) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 20% 60%,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 40%,
      rgba(255, 255, 255, 0.16) 2px,
      transparent 2px
    );
  background-size: 60px 60px, 80px 80px, 70px 70px, 90px 90px, 50px 50px;
  animation: setupContentSparkles 12s linear;
  pointer-events: none;
  border-radius: 25px;
  z-index: -1;
}

.game-setup-content h2 {
  margin-top: 0;
  font-family: "Concert One", Arial, sans-serif;
  margin-bottom: 35px;
  font-size: 3em;
  letter-spacing: 0.05em;
  font-weight: bold;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  text-align: center;
}

.setup-row {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1em;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 10px 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.setup-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.setup-row:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(255, 255, 255, 0.15) inset;
  border-color: rgba(255, 255, 255, 0.4);
}

.setup-row:hover::before {
  left: 100%;
}

.setup-row label {
  font-family: "Concert One", Arial, sans-serif;
  color: #5a5a5a;
  font-weight: bold;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  position: relative;
  z-index: 2;
}

.setup-row label:first-child {
  min-width: 150px;
  font-size: 1.2em;
  margin-right: 10px;
  color: #444;
  font-weight: 900;
  background: linear-gradient(45deg, #667eea, #764ba2);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 4s ease-in-out;
}

.setup-radio-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.setup-number-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(102, 126, 234, 0.3);
  color: #5a5a5a;
  font-family: "Concert One", Arial, sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 45px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.setup-number-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.2),
    transparent
  );
  transition: left 0.4s ease;
}

.setup-number-btn:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.setup-number-btn:hover::before {
  left: 100%;
}

.setup-number-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transform: scale(1.05) translateY(-2px);
}

.setup-row label:not(:first-child) {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: var(--gap-sm) 15px;
  border-radius: var(--border-radius-md);
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  color: #5a5a5a;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.setup-row label:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.4s ease;
}

.setup-row label:not(:first-child):hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.4);
}

.setup-row label:not(:first-child):hover::before {
  left: 100%;
}

/* Volume Controls Section */
.volume-controls-section {
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.volume-controls-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.volume-controls-section:hover::before {
  left: 100%;
}

.volume-control-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.volume-control-group:last-child {
  margin-bottom: 0;
}

.volume-label {
  color: #5a5a5a;
  font-size: 1em;
  font-weight: 600;
  min-width: 120px;
  text-align: left;
  font-family: "Concert One", Arial, sans-serif;
}

.volume-rocker {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  padding: 6px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.volume-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #5a5a5a;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(102, 126, 234, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.volume-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(102, 126, 234, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.volume-btn:hover::before {
  transform: translateX(100%);
}

.volume-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.volume-btn:active {
  transform: scale(0.95);
}

.volume-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Specific mute button gradients */
#sfxToggleBtn.volume-mute-btn {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

#bgToggleBtn.volume-mute-btn {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Muted state for volume mute buttons */
.volume-mute-btn.muted {
  opacity: 0.6;
  background: linear-gradient(135deg, #666, #888);
}

.volume-mute-btn.muted:hover {
  opacity: 0.8;
}

/* Start Game Button Positioning */
.start-game-btn {
  margin-top: 20px !important;
}

/* Quiz Info Display */
.quiz-info-display {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 15px;
  margin-top: 10px;
  border: 2px solid #e0e7ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.quiz-info-title {
  font-family: "Concert One", cursive;
  font-size: 18px;
  color: #4c51bf;
  margin: 0 0 5px 0;
}

.quiz-info-details {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.quiz-info-display.no-quiz {
  background: rgba(248, 250, 252, 0.8);
  border-color: #e5e7eb;
  color: #9ca3af;
}

.start-game-btn {
  margin-top: 40px;
  padding: 20px 60px;
  font-size: 1.4em;
  font-family: "Concert One", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  outline: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  letter-spacing: 0.05em;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.start-game-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.start-game-btn:hover::before {
  left: 100%;
}

.start-game-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

.start-game-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}
