* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --accent: #3b82f6;       /* OS accent recoloured from Settings */
  --glass-blur: 24px;      /* fixed window frost strength */
  --wallpaper-blur: 0px;   /* desktop backdrop blur controlled from Settings */
  --blob-blur: 80px;
  --wallpaper:
    radial-gradient(110% 85% at 18% 12%, rgba(164, 174, 255, 0.52), transparent 58%),
    radial-gradient(95% 80% at 82% 86%, rgba(104, 184, 170, 0.44), transparent 60%),
    linear-gradient(135deg, #192033 0%, #39415f 48%, #6b7a8f 100%);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Desktop ---------- */
#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #192033;
  overflow: hidden;
  isolation: isolate;
}

#desktop::before {
  content: "";
  position: absolute;
  inset: -90px;
  z-index: 0;
  background: var(--wallpaper);
  background-size: 200% 200%;
  filter: blur(var(--wallpaper-blur));
  transform: scale(1.02);
  animation: bgShift 18s ease infinite;
  transition: filter 0.18s var(--ease), background 0.28s var(--ease);
}

@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating color blobs for depth */
.blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(var(--blob-blur));
  opacity: 0.42;
  pointer-events: none;
  will-change: transform;
  transition: filter 0.18s var(--ease), opacity 0.18s var(--ease);
}
.blob-a {
  width: 480px; height: 480px;
  background: #8ea0d8;
  top: -120px; left: -80px;
  animation: float1 22s ease-in-out infinite;
}
.blob-b {
  width: 520px; height: 520px;
  background: #8cb9a8;
  bottom: -160px; right: -100px;
  animation: float2 26s ease-in-out infinite;
}
.blob-c {
  width: 380px; height: 380px;
  background: #d1a58a;
  top: 40%; left: 55%;
  animation: float3 30s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(120px,80px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-100px,-60px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-80px,100px)} }
/* blobs off (Settings toggle) */
#desktop.blobs-off .blob { display: none; }

/* ---------- Desktop icons ---------- */
#desktop-icons {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1; /* sit on the desktop, below any window (windows start z-index 10) */
}
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
  padding: 10px 6px;
  border: none;
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.desktop-icon:hover { background: rgba(255, 255, 255, 0.1); }
.desktop-icon:active { transform: scale(0.95); }

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,95,109,0.85), rgba(79,172,254,0.85));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.desktop-icon:hover .icon-tile {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.icon-tile svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.icon-label {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.aim-title {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #f5bf4f, #ff5f6d, #4facfe);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.aim-game {
  position: relative;
  flex: 1;
  width: 100%;
  align-self: stretch;
}

.target {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a8a, #ec3b3b);
  box-shadow: 0 4px 14px rgba(236, 59, 59, 0.5),
              inset 0 2px 4px rgba(255, 255, 255, 0.4);
  cursor: crosshair;
  animation: targetPop 0.18s var(--ease);
  transition: transform 0.1s var(--ease);
}
.target:hover { transform: scale(1.08); }
.target:active { transform: scale(0.9); }
@keyframes targetPop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.aim-score {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.aim-result {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: popIn 0.36s var(--ease);
}
.aim-final {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
/* ---------- Dock ---------- */
#dock {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 0; /* collapses when empty */
  z-index: 900;
}
#dock:empty { display: none; }
.dock-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(30, 30, 46, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: popIn 0.3s var(--ease);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.dock-chip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff5f6d, #4facfe);
}
.dock-chip:hover {
  transform: translateY(-3px);
  background: rgba(50, 50, 70, 0.7);
}
.dock-chip:active { transform: translateY(0); }

/* restore button = the labelled body of the chip */
.chip-restore {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  padding: 10px 2px;
}

/* close button = small × on the right */
.chip-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.chip-close:hover {
  background: rgba(255, 95, 109, 0.3);
  color: #fff;
}
.chip-close:active { transform: scale(0.9); }

/* ---------- Window ---------- */
.window {
  position: absolute;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  display: none;
  background: rgba(30, 30, 46, 0.42);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  /* open animation */
  transform-origin: center;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), 
              width 0.45s var(--ease), height 0.45s var(--ease),
              left 0.45s var(--ease), top 0.45s var(--ease);
}

/* open / close states */
.window.closing {
  transform: scale(0.92);
  opacity: 0;
  pointer-events: none;
}
.window.opening {
  animation: popIn 0.36s var(--ease);
}
@keyframes popIn {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.window.dragging {
  transition: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  cursor: grabbing;
}

/* live resize: drop the transition so the window tracks the mouse instantly */
.window.resizing { transition: none; }

/* ---------- Resize handles (4 edges + 4 corners) ---------- */
.resizehandle { position: absolute; z-index: 5; }
/* edges: thin strips, inset from corners so corners win the overlap */
.resizehandle.n { top: 0;    left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.resizehandle.s { bottom: 0; left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.resizehandle.e { right: 0;  top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.resizehandle.w { left: 0;   top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
/* corners: small squares, above edges */
.resizehandle.ne { top: 0;    right: 0; width: 12px; height: 12px; cursor: nesw-resize; z-index: 6; }
.resizehandle.nw { top: 0;    left: 0;  width: 12px; height: 12px; cursor: nwse-resize; z-index: 6; }
.resizehandle.se { bottom: 0; right: 0; width: 14px; height: 14px; cursor: nwse-resize; z-index: 6; }
.resizehandle.sw { bottom: 0; left: 0;  width: 12px; height: 12px; cursor: nesw-resize; z-index: 6; }

.window.playing {
  width: 840px !important;  /* beat any inline size left by manual resize */
  height: 680px !important;
}

/* Maximize: fill viewport minus a gap. !important beats inline + .playing.
   Window transition animates the size/position change smoothly. */
.window.maximized {
  --gap: 24px;
  top: var(--gap) !important;
  left: var(--gap) !important;
  width: calc(100vw - var(--gap) * 2) !important;
  height: calc(100vh - var(--gap) * 2) !important;
}

/* hide the intro once the game starts */
.aim-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.window.playing .aim-intro { display: none; }

.aim-timer {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- Window header ---------- */
.windowheader {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: grab;
  user-select: none;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.traffic-lights {
  display: flex;
  gap: 8px;
  align-items: center;
}
.closebutton, .minimizebutton, .maximizebutton {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.closebutton { background: #ec6b5e; cursor: pointer; }
.minimizebutton { background: #f5bf4f; cursor: pointer; }
.maximizebutton { background: #61c454; cursor: pointer; }
.traffic-lights:hover .closebutton,
.traffic-lights:hover .dot { filter: brightness(1.1); }
.closebutton:hover,
.minimizebutton:hover,
.maximizebutton:hover { transform: scale(1.18); }

.headertext {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.header-spacer { width: 48px; } /* balances traffic lights so title centers */

/* ---------- Window body ---------- */
.windowbody {
  flex: 1;
  min-height: 0;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.welcome-title {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ff5f6d, #4facfe, #2af598);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}
.welcome-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.5;
}
.cta {
  margin-top: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}
.cta:hover  { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4); }
.cta:active { transform: translateY(0); }

/* ---------- Settings ---------- */
.main-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.settings-title {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(90deg, #c9d3f0, #a9c8bd, #d7b29a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.settings-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  max-width: 300px;
  line-height: 1.5;
}

/* Window grows to fit its content, capped to the viewport. Body scrolls past the
   cap (or when manually resized short) with the scrollbar hidden. */
#settings {
  width: 560px;
  min-width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
}
#settings .windowbody {
  padding: 18px 22px 22px;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;        /* Firefox */
}
#settings .windowbody::-webkit-scrollbar { width: 0; height: 0; }  /* WebKit */

/* Category tabs */
.settings-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.settings-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.settings-tab:hover { color: #fff; }
.settings-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Only the active panel shows */
.settings-panels { width: 100%; }
.settings-panel { display: none; width: 100%; }
.settings-panel.active { display: block; animation: popIn 0.3s var(--ease); }

/* Reflowing grid: 2 cols when wide, collapses to 1 when narrow (never clips).
   Wide controls span the full width. */
.settings-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  width: 100%;
  margin-top: 8px;
  text-align: left;
}
.settings-section,
.settings-row.stacked { grid-column: 1 / -1; }
.lock-toggle {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Small uppercase divider above a group of rows */
.settings-section {
  margin-top: 7px;
  padding-left: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.settings-section:first-child { margin-top: 0; }

/* One setting = a glass bar: text on the left, control slot on the right */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 15px;
  min-width: 0; /* allow the row to shrink in a narrow column instead of overflowing */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.settings-row:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Stacked label + description on the left */
.settings-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0; /* let long text ellipsize instead of pushing the control off */
}
.settings-row-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.settings-row-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.4;
}

/* Right-hand slot holding the actual control (toggle, swatch, select, …) */
.settings-row-control {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;   /* wrap controls (e.g. accent dots) rather than overflow */
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

/* Toggle switch — design by gharsh11032000 on Uiverse.io (see README credits) */
.switch {
  font-size: 13px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border: 2px solid #414141;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  left: 0.2em;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border-radius: inherit;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.switch input:checked + .slider {
  box-shadow: 0 0 16px var(--accent);
  border: 2px solid var(--accent);
}

.switch input:checked + .slider:before {
  transform: translate(1.5em, -50%);
}

/* Stacked row variant: control drops full-width below the text (for wide
   controls like the wallpaper grid that don't fit the right-hand slot) */
.settings-row.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.settings-row.stacked .settings-row-control {
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* ---------- Tailwind-style controls (hand-written; no framework/CDN) ---------- */

/* Wallpaper + icon pickers: 6 compact gradient swatches in a row */
.wallpaper-grid,
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 8px;
}
.wallpaper-swatch,
.icon-swatch {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25),
              0 7px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s var(--ease), outline-color 0.18s var(--ease),
              filter 0.18s var(--ease);
}
/* icon swatches read as app tiles: rounder + a hint of inner highlight */
.icon-swatch {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.wallpaper-swatch:hover,
.icon-swatch:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.wallpaper-swatch:active,
.icon-swatch:active { transform: translateY(0); }
/* selected ring — Tailwind "ring-2 ring-white" look */
.wallpaper-swatch.is-selected,
.icon-swatch.is-selected { outline-color: #fff; }

/* Lock between wallpaper + icon rows: links the two pickers when engaged */
.lock-toggle {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.lock-toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* engaged: glow like the toggle switch's checked state */
.lock-toggle.is-locked {
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
/* show the right padlock for the state: open by default, closed when locked */
.lock-toggle .lock-closed { display: none; }
.lock-toggle.is-locked .lock-open { display: none; }
.lock-toggle.is-locked .lock-closed { display: inline; }

/* Utility button used for reset and future Settings actions. */
.btn-custom {
  width: auto;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}
.btn-custom:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-custom:active { transform: scale(0.99); }

/* Accent color dots */
.accent-swatches { display: flex; gap: 8px; }
.accent-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.15s var(--ease), outline-color 0.15s var(--ease);
}
.accent-dot:hover { transform: scale(1.12); }
.accent-dot.is-selected { outline-color: #fff; }
/* Tailwind-500 palette */
.ac-blue    { background: #3b82f6; }
.ac-emerald { background: #10b981; }
.ac-rose    { background: #f43f5e; }
.ac-amber   { background: #f59e0b; }
.ac-violet  { background: #8b5cf6; }
.ac-cyan    { background: #06b6d4; }

/* Range slider — Tailwind-ish thin track + round thumb */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 148px;
  height: 6px;
  border-radius: 50px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), var(--accent));
  cursor: pointer;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s var(--ease);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* About blurb in the System tab */
.settings-about {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.5;
  padding: 4px;
}

/* ---------- Light mode (Settings toggle) ----------
   Lightens window chrome + flips text dark. Desktop wallpaper stays selected. */
body.light .window {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 0, 0, 0.08);
}
body.light .windowheader {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.07);
}
body.light .headertext,
body.light .settings-row-label,
body.light .welcome-sub,
body.light .aim-score { color: #1b1f2b; }
body.light .settings-row-desc,
body.light .settings-tab { color: rgba(0, 0, 0, 0.55); }
body.light .settings-tab.active { color: #1b1f2b; }
body.light .settings-row {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}
body.light .settings-section { color: rgba(0, 0, 0, 0.45); }

/* ---------- Reduce motion (Settings toggle) ----------
   Near-instant everything: freezes the gradient drift, blob float, shimmer, pops. */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}
