:root {
  --theme-bg: #050510;
  --theme-surface: rgba(13, 2, 33, 0.86);
  --theme-cyan: #00f3ff;
  --theme-magenta: #ff00ff;
  --theme-green: #39ff14;
  --theme-yellow: #f3ec19;
}

.neon-theme {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 243, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 0, 255, 0.12), transparent 50%),
    var(--theme-bg);
  font-family: 'Rajdhani', sans-serif;
  position: relative;
}
    .neon-particles {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .neon-particle {
      position: absolute;
      border-radius: 50%;
      animation: particle-float linear infinite;
      opacity: 0;
    }
    @keyframes particle-float {
      0%   { transform: translateY(100vh) scale(0); opacity: 0; }
      10%  { opacity: 1; }
      90%  { opacity: 0.6; }
      100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
    }
    .scanline-overlay {
      position: fixed;
      inset: 0;
      z-index: 9997;
      pointer-events: none;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 243, 255, 0.018) 3px,
        rgba(0, 243, 255, 0.018) 4px
      );
    }
/* .neon-theme::before,
.neon-theme::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
} */

.neon-theme::before {
  z-index: 0;
  /* background-image:
    linear-gradient(rgba(0, 243, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: theme-grid-move 20s linear infinite; */
}

.neon-theme::after {
  z-index: 9998;
  /* background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.045) 2px,
    rgba(0, 0, 0, 0.045) 4px
  ); */
}

.theme-content {
  position: relative;
  z-index: 1;
}

.theme-scanline {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.025), transparent, rgba(0, 0, 255, 0.025));
}

@keyframes theme-grid-move {
  to {
    transform: translateY(40px);
  }
}

#quit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

#quit-overlay.show {
  display: flex;
}

#quit-dialog {
  background: #12121e;
  border: 1.5px solid rgba(255, 60, 60, .5);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 60, 60, .35);
  max-width: 360px;
  width: 90%;
  animation: qDlgPop .25s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes qDlgPop {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#quit-dialog .qdlg-title {
  color: #ff6060;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

#quit-dialog .qdlg-sub {
  color: rgba(255, 255, 255, .5);
  font-size: .88rem;
  margin-bottom: 24px;
}

.qdlg-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.qdlg-btns button {
  font-family: 'Orbitron', sans-serif;
  font-size: .7rem;
  letter-spacing: .1em;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

#qdlg-confirm {
  background: linear-gradient(135deg, #ff3c3c, #c0392b);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 60, 60, .4);
}

#qdlg-confirm:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

#qdlg-cancel {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .15) !important;
}

#qdlg-cancel:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}


/* Keep party text clean while retaining its neon glow. */
#partyText {
  -webkit-text-stroke: 0 !important;
  paint-order: normal;
}

/* Login */
.login-page {
  min-height: 100vh;
  height: auto;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
}

.login-page h1,
.login-page .btn,
.login-page .form-control {
  font-family: 'Orbitron', sans-serif;
}
.clear-btn {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(0, 243, 255, 0.05));
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 10px!important;
  padding: 12px 10px;
  color: var(--neon-cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.form-control-neon {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 10px!important;
  padding: 8px 10px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif!important;
  font-size: 1rem!important;
  font-weight: 600!important;
  outline: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
      display: block;
    width: 100%;
}

.form-control-neon::placeholder {
  color: rgba(0, 243, 255, 0.35);
  font-weight: 400;
}

.login-container {
  width: min(100%, 450px);
  /* background: var(--theme-surface); */
  border: 1px solid rgba(0, 243, 255, 0.55);
  border-radius: 4px;
  box-shadow:
    0 0 25px rgba(0, 243, 255, 0.2),
    0 0 55px rgba(255, 0, 255, 0.12),
    inset 0 0 25px rgba(0, 243, 255, 0.08);
  backdrop-filter: blur(12px);
}

.login-page .form-label,
.login-page #message {
  color: var(--theme-cyan);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login-page .form-control {
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(0, 243, 255, 0.55);
  border-radius: 0;
  color: #fff !important;
}

.login-page .form-control::placeholder {
  color: rgba(0, 243, 255, 0.45);
}

.login-page .form-control:focus {
  border-color: var(--theme-magenta);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.55);
}

.login-page h1 {
  color: var(--theme-cyan);
  letter-spacing: 4px;
  text-shadow: 0 0 10px var(--theme-cyan), 0 0 24px var(--theme-cyan);
}

.login-page .login-logo {
  width: min(250px, 80%);
  filter: drop-shadow(0 0 12px var(--theme-cyan));
}

.login-page .btn-authenticate {
  background: transparent;
  border: 1px solid var(--theme-magenta);
  border-radius: 0;
  color: var(--theme-magenta);
  letter-spacing: 2px;
}

.login-page .btn-authenticate:hover,
.login-page .btn-authenticate:focus {
  background: var(--theme-magenta);
  box-shadow: 0 0 20px var(--theme-magenta);
  color: #fff;
}

@media (max-width: 480px) {
  .login-container {
    padding: 28px 22px !important;
  }
}
