/* ===========================
   ONE TEST — EXTREME ICE THEME
   Frost texture & High-Glow
=========================== */

@font-face {
  font-family: 'Snowblue';
  src: url('/fonts/SNOWBLUE.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-dark: #010204;
  --bg-panel: rgba(10, 25, 30, 0.75);
  --ice-white: #e0fbff; /* Frosted white */
  --ice-cyan: #b2f5ff; /* Ice light cyan */
  --ice-primary: #00f7ff; /* Vivid electric cyan */
  --ice-glow: rgba(0, 247, 255, 0.6);
  --energy-gold: #ffcc00;
  --text-muted: #78a1a8;
  --text-white: #ffffff;
  --glass-border: rgba(208, 253, 255, 0.2);
  --ice-gradient: linear-gradient(135deg, #00f7ff, #ffffff);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Outfit', 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Extreme Glass with Noise/Frost Texture */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Frosty Text (Ice Gradient & Burn Effect) */
.text-frost {
  background: var(--ice-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 950;
  filter: drop-shadow(0 0 15px var(--ice-glow)) drop-shadow(0 0 2px #fff);
  letter-spacing: -0.5px;
}

.text-ice {
  color: var(--ice-cyan);
  text-shadow: 0 0 20px var(--ice-glow), 0 0 8px rgba(255,255,255,0.4);
}

.ice-border {
  border: 2px solid var(--ice-primary) !important;
  box-shadow: 0 0 20px var(--ice-glow);
}

/* Custom Scrollbars */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Ice-Specific Animations */
@keyframes shiver {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes glacier-drift {
  0% { background-position: -200%; }
  100% { background-position: 200%; }
}

.shimmer-ice {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% 100%;
  animation: glacier-drift 5s infinite linear;
}


.n-nav {
  color: #44555b;
  transition: all 0.3s ease;
  cursor: pointer;
}

.n-nav.active {
  color: var(--ice-primary);
}

.n-nav img {
  transition: all 0.3s ease;
}

.n-nav.active img {
  filter: drop-shadow(0 0 8px var(--ice-glow));
  transform: scale(1.1);
}
.lobby-card { cursor: pointer; transition: transform 0.2s; } .lobby-card:hover { transform: translateY(-3px); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* AUTHENTICATION FORM (Premium Dark) */
.auth-input-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}
.auth-input-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6a8c96;
  margin-bottom: 5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.auth-input-group input,
.auth-input-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 13px;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}
.auth-input-group input::placeholder,
.auth-input-group select option {
  color: #4a5c65;
}
.auth-input-group input:focus,
.auth-input-group select:focus {
  border-color: rgba(0, 247, 255, 0.4);
}
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.btn-submit-ice {
  background: linear-gradient(135deg, #0060cc, #00c6ff);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 13px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.8px;
  transition: opacity 0.2s;
  width: 100%;
}
.btn-submit-ice:active {
  opacity: 0.85;
  transform: scale(0.99);
}
.auth-tab {
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active {
  border-bottom: 2px solid var(--ice-primary);
}

/* CUSTOM DROPDOWN */
.custom-select { position: relative; width: 100%; }
.custom-select-trigger {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 36px 11px 13px;
  color: #4a5c65;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.25s;
  user-select: none;
}
.custom-select-trigger.selected { color: #fff; }
.custom-select-trigger:hover { border-color: rgba(0,247,255,0.25); }
.custom-select-trigger .cs-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #4a5c65;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}
.custom-select.open .cs-arrow { transform: rotate(180deg); border-top-color: var(--ice-primary); }
.custom-select.open .custom-select-trigger { border-color: rgba(0,247,255,0.4); }
.custom-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #06090c;
  border: 1px solid rgba(0,247,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  z-index: 9999;
  display: none;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  max-height: 200px;
  overflow-y: auto;
}
.custom-select.open .custom-options { display: block; }
.custom-option {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #8899a6;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: rgba(0,247,255,0.06); color: #fff; }
.custom-option.selected { color: var(--ice-primary); font-weight: 700; }
