/* ============================================================
   Voxel — accent presets
   Apply by setting data-theme on <html>:
     <html data-theme="emerald">
   Or leave it off for the default lilac.
   Every accent, glow, gradient, button and the logo re-theme
   automatically because the whole site runs on --brand-* vars.
   ============================================================ */

/* Emerald — classic Minecraft green */
:root[data-theme="emerald"] {
  --brand:        #4ADE88;
  --brand-bright: #7CEBA8;
  --brand-deep:   #22B368;
  --brand-ink:    #05130b;
  --brand-glow:   rgba(74, 222, 136, 0.40);
  --brand-soft:   rgba(74, 222, 136, 0.16);
  --brand-tint:   rgba(74, 222, 136, 0.08);
}

/* Ember — warm fireside peach */
:root[data-theme="ember"] {
  --brand:        #F2A88C;
  --brand-bright: #F7C7A8;
  --brand-deep:   #D97F5E;
  --brand-ink:    #1c0f08;
  --brand-glow:   rgba(242, 168, 140, 0.40);
  --brand-soft:   rgba(242, 168, 140, 0.16);
  --brand-tint:   rgba(242, 168, 140, 0.08);
}

/* Mint — cool spearmint */
:root[data-theme="mint"] {
  --brand:        #6FD8C2;
  --brand-bright: #9AE8D8;
  --brand-deep:   #4AB39D;
  --brand-ink:    #071512;
  --brand-glow:   rgba(111, 216, 194, 0.40);
  --brand-soft:   rgba(111, 216, 194, 0.16);
  --brand-tint:   rgba(111, 216, 194, 0.08);
}

/* Sky — calm periwinkle blue */
:root[data-theme="sky"] {
  --brand:        #8FB2FF;
  --brand-bright: #B5CBFF;
  --brand-deep:   #6E8FE6;
  --brand-ink:    #0a1020;
  --brand-glow:   rgba(143, 178, 255, 0.40);
  --brand-soft:   rgba(143, 178, 255, 0.16);
  --brand-tint:   rgba(143, 178, 255, 0.08);
}

/* ============================================================
   Demo theme switcher (the floating dots on the live demo).
   It is injected entirely by js/theme-demo.js — to remove it,
   delete that one <script> tag from index.html. These styles
   are harmless to keep either way.
   ============================================================ */
.theme-demo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 22, 29, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.theme-demo__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.theme-demo__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.theme-demo__dot:hover { transform: scale(1.15); }
.theme-demo__dot.active { border-color: #fff; transform: scale(1.1); }
@media (max-width: 560px) {
  .theme-demo__label { display: none; }
  .theme-demo { padding: 9px 11px; gap: 8px; }
}
