/* ============================================================
   loader.css — Shattered Nexus
   Loading screen styles (extracted from index.html inline styles).
   ============================================================ */

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #080b12 0%, #0d1220 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Cinzel', serif;
}

#loading-screen h2 {
  color: #4ecfff;
  margin-bottom: 50px;
  font-size: 28px;
  letter-spacing: 2px;
}

.loading-bar-wrap {
  width: 320px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(78, 207, 255, 0.2);
}

#loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4ecfff, #00d4b4);
  transition: width 0.2s ease;
  box-shadow: 0 0 12px rgba(78, 207, 255, 0.6);
}

#loading-text {
  color: #7a90a8;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ── PWA Update Toast ───────────────────────────────────────── */
#pwa-update-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #0d1220;
  border: 1px solid rgba(78,207,255,0.35);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #c8dff0;
  z-index: 99999;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

#pwa-update-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.pwa-toast-btn {
  padding: 6px 14px;
  background: rgba(78,207,255,0.12);
  border: 1px solid #4ecfff;
  border-radius: 6px;
  color: #4ecfff;
  font-family: 'VT323', monospace;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.pwa-toast-btn:hover { background: rgba(78,207,255,0.25); }

/* ── Quality Picker ─────────────────────────────────────────── */
#quality-picker {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #080b12 0%, #0d1220 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Cinzel', serif;
}

.qp-box {
  text-align: center;
  padding: 36px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(78,207,255,0.2);
  border-radius: 12px;
  max-width: 360px;
  width: 90%;
}

.qp-title {
  font-size: 18px;
  letter-spacing: 3px;
  color: #4ecfff;
  margin-bottom: 10px;
}

.qp-sub {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #7a90a8;
  margin-bottom: 28px;
  line-height: 1.5;
}

.qp-options {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.qp-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: rgba(78,207,255,0.06);
  border: 1px solid rgba(78,207,255,0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: #c8dff0;
}

.qp-btn:hover {
  background: rgba(78,207,255,0.14);
  border-color: #4ecfff;
  transform: translateY(-2px);
}

.qp-icon { font-size: 26px; }

.qp-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
}

.qp-desc {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #7a90a8;
  line-height: 1.4;
}
