.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--panel);
  border: 3px solid var(--panel-edge);
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  font-size: 18px;
  color: var(--panel-edge);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.6);
}

.config-subtitle {
  font-size: 13px;
  color: var(--text);
  margin: 6px 0 12px 0;
  letter-spacing: 0.18em;
}

.config-label {
  font-size: 11px;
  color: #41ffd9;
  margin: 16px 0 8px 0;
  letter-spacing: 0.18em;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(65, 255, 217, 0.4);
}

.config-audio-row {
  display: grid;
  grid-template-columns: 24px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.icon-speaker svg {
  filter: drop-shadow(0 0 4px rgba(79, 162, 255, 0.6));
}

.arcade-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: rgba(12, 18, 26, 0.8);
  border: 2px solid #2e76b3;
  box-shadow: inset 0 0 6px rgba(79, 162, 255, 0.25),
    0 0 8px rgba(79, 162, 255, 0.15);
}

.arcade-range:focus {
  outline: none;
  box-shadow: inset 0 0 6px rgba(79, 162, 255, 0.4),
    0 0 10px rgba(79, 162, 255, 0.35);
}

/* WebKit */
.arcade-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #8bc4ff;
  border: 2px solid #2e76b3;
  box-shadow: 0 0 6px rgba(79, 162, 255, 0.8), inset 0 0 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.arcade-range::-webkit-slider-runnable-track {
  height: 12px;
}

/* Firefox */
.arcade-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #8bc4ff;
  border: 2px solid #2e76b3;
  box-shadow: 0 0 6px rgba(79, 162, 255, 0.8), inset 0 0 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.arcade-range::-moz-range-track {
  height: 12px;
  background: rgba(12, 18, 26, 0.8);
  border: 2px solid #2e76b3;
}

.range-value {
  font-size: 12px;
  color: var(--text);
}

.config-hint {
  font-size: 10px !important;
  color: #9fd6ff !important;
  opacity: 0.9;
}

.modal-content p {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-close-btn {
  padding: 10px 20px;
  font-size: 10px;
  font-family: "Press Start 2P", monospace;
  border: 2px solid var(--text);
  background: var(--accent);
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.18em;
  transition: transform 0.1s ease;
}

.modal-close-btn:active {
  transform: translateY(2px);
}
