/* ═══ 6 ВИЗУАЛЬНЫХ ДИЗАЙНА (темы) ═══ */

[data-theme="cyber"], :root {
  --accent: #00d4ff;
  --accent-alt: #7c5cff;
  --accent-live: #ff3d5a;
  --accent-dim: rgba(0, 212, 255, 0.35);
  --accent-glow: rgba(0, 212, 255, 0.2);
  --page-bg: #05080c;
  --panel-bg: rgba(8, 12, 18, 0.85);
  --border: rgba(255, 255, 255, 0.09);
  --text-muted: #8b9cb0;
  --header-bg: rgba(5, 8, 12, 0.92);
  --card-radius: 12px;
  --gradient-hero: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, transparent 60%);
}

[data-theme="ember"] {
  --accent: #ff5c3a;
  --accent-alt: #ffb347;
  --accent-live: #ff2244;
  --accent-dim: rgba(255, 92, 58, 0.4);
  --accent-glow: rgba(255, 92, 58, 0.22);
  --page-bg: #0c0806;
  --panel-bg: rgba(18, 10, 8, 0.88);
  --border: rgba(255, 120, 80, 0.12);
  --text-muted: #b09080;
  --header-bg: rgba(12, 8, 6, 0.94);
  --gradient-hero: linear-gradient(135deg, rgba(255, 92, 58, 0.15) 0%, transparent 60%);
}

[data-theme="ember"] .site-logo .logo-mode,
[data-theme="ember"] .site-logo .logo-game { -webkit-text-fill-color: #ff5c3a; background: none; color: #ff5c3a; }
[data-theme="ember"] .arena-overlay {
  background: linear-gradient(180deg, rgba(12,8,6,0.5) 0%, rgba(12,8,6,0.94) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(255, 60, 30, 0.08) 0%, transparent 50%) !important;
}

[data-theme="toxic"] {
  --accent: #39ff8a;
  --accent-alt: #b8ff39;
  --accent-live: #ff3d5a;
  --accent-dim: rgba(57, 255, 138, 0.35);
  --accent-glow: rgba(57, 255, 138, 0.18);
  --page-bg: #040a06;
  --panel-bg: rgba(6, 14, 10, 0.88);
  --border: rgba(57, 255, 138, 0.1);
  --text-muted: #7a9a88;
  --header-bg: rgba(4, 10, 6, 0.94);
  --gradient-hero: linear-gradient(135deg, rgba(57, 255, 138, 0.1) 0%, transparent 60%);
}

[data-theme="toxic"] .site-logo .logo-mode { -webkit-text-fill-color: #39ff8a; background: none; }

[data-theme="violet"] {
  --accent: #a78bfa;
  --accent-alt: #c084fc;
  --accent-live: #f472b6;
  --accent-dim: rgba(167, 139, 250, 0.4);
  --accent-glow: rgba(167, 139, 250, 0.22);
  --page-bg: #08060f;
  --panel-bg: rgba(12, 8, 20, 0.88);
  --border: rgba(167, 139, 250, 0.12);
  --text-muted: #9a8fb8;
  --header-bg: rgba(8, 6, 15, 0.94);
  --gradient-hero: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, transparent 60%);
}

[data-theme="violet"] .site-logo .logo-mode { -webkit-text-fill-color: #a78bfa; background: none; }

[data-theme="arctic"] {
  --accent: #6ecfff;
  --accent-alt: #e0f4ff;
  --accent-live: #ff6b8a;
  --accent-dim: rgba(110, 207, 255, 0.35);
  --accent-glow: rgba(110, 207, 255, 0.2);
  --page-bg: #060a10;
  --panel-bg: rgba(10, 16, 24, 0.9);
  --border: rgba(180, 220, 255, 0.1);
  --text-muted: #8aa8c0;
  --header-bg: rgba(6, 10, 16, 0.95);
  --gradient-hero: linear-gradient(135deg, rgba(180, 230, 255, 0.1) 0%, transparent 60%);
}

[data-theme="arctic"] .site-logo .logo-mode { -webkit-text-fill-color: #6ecfff; background: none; }

[data-theme="blood"] {
  --accent: #dc2626;
  --accent-alt: #991b1b;
  --accent-live: #ff4444;
  --accent-dim: rgba(220, 38, 38, 0.4);
  --accent-glow: rgba(220, 38, 38, 0.2);
  --page-bg: #0a0404;
  --panel-bg: rgba(16, 6, 6, 0.9);
  --border: rgba(220, 38, 38, 0.15);
  --text-muted: #a08080;
  --header-bg: rgba(10, 4, 4, 0.95);
  --gradient-hero: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, transparent 60%);
}

[data-theme="blood"] .site-logo .logo-mode { -webkit-text-fill-color: #dc2626; background: none; }

.theme-picker {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 600;
}

.theme-picker-fab {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  color: var(--accent);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.theme-picker-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 280px;
  padding: 18px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.theme-picker.is-open .theme-picker-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.theme-picker-label {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-swatch .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.theme-swatch[data-theme="cyber"] .dot,
.theme-swatch[data-theme-pick="cyber"] .dot { background: linear-gradient(135deg, #00d4ff, #7c5cff); }
.theme-swatch[data-theme="ember"] .dot,
.theme-swatch[data-theme-pick="ember"] .dot { background: linear-gradient(135deg, #ff5c3a, #ffb347); }
.theme-swatch[data-theme="toxic"] .dot,
.theme-swatch[data-theme-pick="toxic"] .dot { background: linear-gradient(135deg, #39ff8a, #b8ff39); }
.theme-swatch[data-theme="violet"] .dot,
.theme-swatch[data-theme-pick="violet"] .dot { background: linear-gradient(135deg, #a78bfa, #c084fc); }
.theme-swatch[data-theme="arctic"] .dot,
.theme-swatch[data-theme-pick="arctic"] .dot { background: linear-gradient(135deg, #6ecfff, #e0f4ff); }
.theme-swatch[data-theme="blood"] .dot,
.theme-swatch[data-theme-pick="blood"] .dot { background: linear-gradient(135deg, #dc2626, #991b1b); }

.theme-swatch.on {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-grid--profile {
  margin-top: 12px;
}

.theme-custom {
  display: grid;
  gap: 10px;
}

.theme-custom label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.theme-custom input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.theme-custom .btn { width: 100%; }
