/* =========================================================
   home-page · v0.2 · editorial dashboard
   fraunces / geist / jetbrains mono · copper on bitumen
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--f-body);
  font-feature-settings: "ss01", "ss02", "cv11";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
input, select, button { font: inherit; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); color: var(--text); }

/* ===========================================================
   THEME · OBSIDIAN  (default — copper on bitumen)
   =========================================================== */
:root, [data-theme="obsidian"] {
  --f-display: "Fraunces", ui-serif, Georgia, serif;
  --f-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #0a0908;
  --surface: rgba(28, 25, 23, 0.55);
  --surface-strong: rgba(36, 32, 28, 0.78);
  --surface-edge: rgba(255, 245, 220, 0.07);
  --hairline: rgba(255, 245, 220, 0.08);

  --text: #ece5d5;
  --text-soft: #b8aea0;
  --muted: #7a7368;

  --accent: #d97706;
  --accent-2: #f59e0b;
  --accent-soft: rgba(217, 119, 6, 0.16);
  --accent-glow: rgba(245, 158, 11, 0.35);

  --live: #ef4444;
  --green: #84cc16;

  --mesh-1: #2a1810;
  --mesh-2: #1a0f08;
  --mesh-3: #3d1f0a;
  --mesh-4: #0a0908;
  --aurora: rgba(217, 119, 6, 0.10);

  --shadow-card: 0 1px 0 rgba(255,245,220,0.04) inset,
                 0 24px 48px -24px rgba(0,0,0,0.55),
                 0 2px 8px -2px rgba(0,0,0,0.4);

  --grain-opacity: 0.28;
  --scanline-opacity: 0;
  --r-card: 18px;
  --r-pill: 999px;
  color-scheme: dark;
}

[data-theme="neon"] {
  --bg: #07021a;
  --surface: rgba(24, 10, 56, 0.55);
  --surface-strong: rgba(34, 14, 78, 0.78);
  --surface-edge: rgba(180, 120, 255, 0.18);
  --hairline: rgba(180, 120, 255, 0.16);
  --text: #f3eaff;
  --text-soft: #c2b3e8;
  --muted: #8978b0;
  --accent: #ff2d95;
  --accent-2: #00f0ff;
  --accent-soft: rgba(255, 45, 149, 0.18);
  --accent-glow: rgba(255, 45, 149, 0.4);
  --live: #ff2d95;
  --green: #00f0ff;
  --mesh-1: #1a043a;
  --mesh-2: #2a0860;
  --mesh-3: #4a0e7a;
  --mesh-4: #07021a;
  --aurora: rgba(255, 45, 149, 0.16);
  --shadow-card: 0 1px 0 rgba(180,120,255,0.10) inset,
                 0 0 0 1px rgba(180,120,255,0.06),
                 0 24px 60px -24px rgba(255, 45, 149, 0.18),
                 0 8px 24px -12px rgba(0, 240, 255, 0.10);
  --grain-opacity: 0.16;
  --scanline-opacity: 0.10;
}

[data-theme="paper"] {
  --bg: #f3eee2;
  --surface: rgba(255, 252, 244, 0.72);
  --surface-strong: rgba(255, 252, 244, 0.92);
  --surface-edge: rgba(20, 16, 12, 0.08);
  --hairline: rgba(20, 16, 12, 0.10);
  --text: #14110d;
  --text-soft: #4a463f;
  --muted: #7a7468;
  --accent: #b91c1c;
  --accent-2: #7c2d12;
  --accent-soft: rgba(185, 28, 28, 0.10);
  --accent-glow: rgba(185, 28, 28, 0.18);
  --live: #b91c1c;
  --green: #4d7c0f;
  --mesh-1: #ebe3d0;
  --mesh-2: #f3eee2;
  --mesh-3: #e0d6bc;
  --mesh-4: #f8f3e6;
  --aurora: rgba(185, 28, 28, 0.06);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.7) inset,
                 0 1px 0 rgba(20,16,12,0.04),
                 0 24px 40px -28px rgba(20,16,12,0.18);
  --grain-opacity: 0.22;
  --scanline-opacity: 0;
  color-scheme: light;
}

[data-theme="catppuccin"] {
  --bg: #11111b;
  --surface: rgba(30, 30, 46, 0.62);
  --surface-strong: rgba(49, 50, 68, 0.82);
  --surface-edge: rgba(203, 166, 247, 0.14);
  --hairline: rgba(203, 166, 247, 0.10);
  --text: #cdd6f4;
  --text-soft: #a6adc8;
  --muted: #7f849c;
  --accent: #cba6f7;
  --accent-2: #b4befe;
  --accent-soft: rgba(203, 166, 247, 0.14);
  --accent-glow: rgba(203, 166, 247, 0.3);
  --live: #f38ba8;
  --green: #a6e3a1;
  --mesh-1: #1e1e2e;
  --mesh-2: #181825;
  --mesh-3: #313244;
  --mesh-4: #11111b;
  --aurora: rgba(203, 166, 247, 0.10);
  --shadow-card: 0 1px 0 rgba(203,166,247,0.06) inset,
                 0 24px 48px -24px rgba(0,0,0,0.5),
                 0 0 0 1px rgba(137, 180, 250, 0.04);
  --grain-opacity: 0.18;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="forest"] {
  --bg: #0c1410;
  --surface: rgba(22, 32, 26, 0.6);
  --surface-strong: rgba(31, 45, 36, 0.85);
  --surface-edge: rgba(134, 239, 172, 0.10);
  --hairline: rgba(134, 239, 172, 0.08);
  --text: #e2ecdf;
  --text-soft: #a8b8a4;
  --muted: #6b7c6a;
  --accent: #86efac;
  --accent-2: #4ade80;
  --accent-soft: rgba(134, 239, 172, 0.14);
  --accent-glow: rgba(134, 239, 172, 0.3);
  --live: #f87171;
  --green: #86efac;
  --mesh-1: #1a2820;
  --mesh-2: #14201a;
  --mesh-3: #25382b;
  --mesh-4: #0c1410;
  --aurora: rgba(134, 239, 172, 0.10);
  --shadow-card: 0 1px 0 rgba(134,239,172,0.05) inset,
                 0 24px 48px -24px rgba(0,0,0,0.5);
  --grain-opacity: 0.20;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="rose"] {
  --bg: #1a0f14;
  --surface: rgba(40, 22, 30, 0.6);
  --surface-strong: rgba(58, 30, 42, 0.84);
  --surface-edge: rgba(251, 113, 133, 0.12);
  --hairline: rgba(251, 113, 133, 0.10);
  --text: #f5e1e6;
  --text-soft: #d3b6bf;
  --muted: #8a6a74;
  --accent: #fb7185;
  --accent-2: #f472b6;
  --accent-soft: rgba(251, 113, 133, 0.16);
  --accent-glow: rgba(251, 113, 133, 0.32);
  --live: #fb7185;
  --green: #86efac;
  --mesh-1: #2a1018;
  --mesh-2: #1c0a10;
  --mesh-3: #3d1a26;
  --mesh-4: #1a0f14;
  --aurora: rgba(251, 113, 133, 0.10);
  --shadow-card: 0 1px 0 rgba(251,113,133,0.06) inset,
                 0 24px 48px -24px rgba(0,0,0,0.55);
  --grain-opacity: 0.22;
  --scanline-opacity: 0;
  color-scheme: dark;
}

/* ===========================================================
   ATMOSPHERE
   =========================================================== */
.bg-mesh, .bg-grain, .bg-scanlines, .bg-aurora, .bg-vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-mesh {
  background:
    radial-gradient(60% 60% at 18% 12%, var(--mesh-3) 0%, transparent 60%),
    radial-gradient(50% 50% at 82% 22%, var(--mesh-1) 0%, transparent 65%),
    radial-gradient(70% 70% at 70% 88%, var(--mesh-2) 0%, transparent 60%),
    radial-gradient(40% 40% at 12% 86%, var(--mesh-3) 0%, transparent 70%),
    var(--mesh-4);
  filter: saturate(1.05);
  animation: meshDrift 38s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.06); }
}
[data-bg-anim="off"] .bg-mesh { animation: none; }

.bg-aurora {
  background:
    radial-gradient(40% 30% at 75% 18%, var(--aurora), transparent 70%),
    radial-gradient(50% 40% at 22% 82%, var(--aurora), transparent 70%);
  mix-blend-mode: screen;
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
[data-theme="paper"] .bg-aurora { mix-blend-mode: multiply; }
@keyframes auroraDrift {
  0%   { transform: translate(0,0) rotate(0deg); opacity: 0.85; }
  50%  { transform: translate(2%,-1%) rotate(2deg); opacity: 1; }
  100% { transform: translate(-1%,1%) rotate(-1deg); opacity: 0.7; }
}
[data-bg-anim="off"] .bg-aurora { animation: none; }

.bg-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}
[data-grain="off"] .bg-grain { display: none; }

.bg-scanlines {
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255,255,255,0.05) 2px 3px);
  opacity: var(--scanline-opacity);
}

.bg-vignette {
  background: radial-gradient(120% 90% at 50% 30%, transparent 50%, rgba(0,0,0,0.45) 100%);
}
[data-theme="paper"] .bg-vignette {
  background: radial-gradient(120% 90% at 50% 30%, transparent 60%, rgba(20,16,12,0.10) 100%);
}

/* ===========================================================
   PAGE
   =========================================================== */
.page {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 44px) clamp(20px, 4vw, 60px) clamp(40px, 6vw, 80px);
  display: grid;
  gap: clamp(22px, 2.2vw, 36px);
}
[data-compact="on"] .page { gap: clamp(14px, 1.4vw, 22px); }

/* ===========================================================
   MASTHEAD
   =========================================================== */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-block: 6px 22px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.masthead::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: 0.4;
}

.kicker {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--muted);
  margin-bottom: 14px;
}
.kicker__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.kicker__sep { color: var(--surface-edge); }
.kicker__date, .kicker__weather { color: var(--text-soft); }
.kicker__weather { font-style: normal; }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.85); }
}

.greeting {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.038em;
  margin: 0;
  color: var(--text);
  font-variation-settings: "opsz" 80;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.18em;
}
.greeting__pre { display: inline-block; }
.greeting__pre em {
  font-style: italic;
  font-weight: 350;
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.greeting__name {
  font-style: italic;
  font-weight: 300;
  color: var(--text-soft);
  cursor: pointer;
  transition: color .25s ease;
  text-decoration: underline wavy var(--accent-soft);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.greeting__name:hover { color: var(--accent); text-decoration-color: var(--accent); }
.greeting__caret {
  display: inline-block;
  color: var(--accent);
  animation: caret 1.1s steps(2) infinite;
  font-style: normal;
  font-weight: 300;
  margin-left: -0.18em;
}
@keyframes caret { 50% { opacity: 0; } }

.dek {
  margin: 16px 0 0;
  max-width: 56ch;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--text-soft);
  text-wrap: pretty;
  letter-spacing: 0.005em;
}
.dek__accent { color: var(--accent); font-style: normal; font-family: var(--f-body); font-weight: 500; font-size: 0.9em; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); margin: 0 2px; }

.masthead__right {
  display: flex; align-items: flex-end;
  gap: 18px;
}
.clock { text-align: right; font-family: var(--f-mono); }
.clock__time {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  display: inline-flex; align-items: baseline; gap: 6px;
}
.clock__sec {
  font-size: 0.46em;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0;
}
[data-seconds="off"] .clock__sec { display: none; }
.clock__date {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 4px;
}
.clock__meta {
  display: flex; gap: 14px; justify-content: flex-end;
  margin-top: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.clock__meta span { display: inline-flex; align-items: center; gap: 4px; }
.clock__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; opacity: 0.7; }
.clock__meta b { color: var(--text-soft); font-weight: 500; }

.menu-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), color .25s, border-color .25s, box-shadow .25s;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.menu-btn:hover {
  color: var(--accent);
  transform: rotate(45deg);
  border-color: var(--accent-soft);
}

/* ===========================================================
   SEARCH
   =========================================================== */
.search-row {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 4px 0 6px;
}
.search {
  position: relative;
  display: flex; align-items: center;
  width: min(680px, 100%);
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--surface-strong);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--surface-edge);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 18px 40px -24px rgba(0,0,0,0.4);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.search:focus-within {
  border-color: var(--accent-soft);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    0 0 36px -8px var(--accent-glow),
    0 1px 0 rgba(255,255,255,0.05) inset;
}
.search__icon { color: var(--muted); flex-shrink: 0; transition: color .2s; }
.search:focus-within .search__icon { color: var(--accent); }
.search__input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  margin-left: 12px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
  min-width: 0;
}
.search__input::placeholder {
  color: var(--muted);
  font-style: italic;
  font-family: var(--f-display);
  font-size: 16px;
}
.search__hint {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-right: 10px;
  white-space: nowrap;
}
.search__hint code {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
}
@media (max-width: 720px) { .search__hint { display: none; } }
.search__kbd {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
}

.quicklinks {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px;
}
.ql {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  color: var(--text-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: color .2s, border-color .2s, transform .2s, background .2s;
}
.ql:hover {
  color: var(--text);
  border-color: var(--ql-c);
  background: color-mix(in oklab, var(--ql-c) 14%, var(--surface));
  transform: translateY(-1px);
}
.ql__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ql-c);
  box-shadow: 0 0 8px color-mix(in oklab, var(--ql-c) 60%, transparent);
}

/* ===========================================================
   BENTO
   =========================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(220px, auto);
  grid-auto-flow: row dense;
  gap: clamp(14px, 1.4vw, 22px);
  align-items: stretch;
}

/* tiling sizes — each card declares its preferred footprint;
   JS reflows to pack remaining cards when some are hidden */
.card { min-width: 0; }

.card--spotify  { grid-column: span 5; grid-row: span 2; order: 1; }
.card--discord  { grid-column: span 4; grid-row: span 2; order: 2; }
.card--github   { grid-column: span 3; grid-row: span 2; order: 3; }
.card--twitch   { grid-column: span 5; grid-row: span 1; order: 4; }
.card--mc       { grid-column: span 3; grid-row: span 1; order: 5; }
.card--steam    { grid-column: span 4; grid-row: span 2; order: 6; }
.card--wishlist { grid-column: span 4; grid-row: span 2; order: 7; }
.card--docker   { grid-column: span 4; grid-row: span 2; order: 8; }
.card--news     { grid-column: span 6; grid-row: span 2; order: 9; }
.card--weather  { grid-column: span 6; grid-row: span 1; order: 10; }

/* tiling-mode override: when JS sets data-tile, span the row width it computes */
.card[data-tile-cols] { grid-column: span var(--tile-cols) !important; }
.card[data-tile-rows] { grid-row: span var(--tile-rows) !important; }
.card[data-tile-order] { order: var(--tile-order) !important; }

@media (max-width: 1180px) {
  .card--spotify  { grid-column: span 12; grid-row: auto; }
  .card--weather  { grid-column: span 6; grid-row: auto; }
  .card--github   { grid-column: span 6; grid-row: auto; }
  .card--discord  { grid-column: span 6; }
  .card--twitch   { grid-column: span 6; }
  .card--mc       { grid-column: span 6; }
  .card--steam    { grid-column: span 6; grid-row: auto; }
  .card--wishlist { grid-column: span 6; grid-row: auto; }
  .card--docker   { grid-column: span 12; grid-row: auto; }
  .card--news     { grid-column: span 12; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .card  { grid-column: span 1 !important; grid-row: auto !important; }
  .masthead { grid-template-columns: 1fr; }
  .masthead__right { align-items: flex-start; justify-content: space-between; width: 100%; }
}

/* ===========================================================
   CARD BASE
   =========================================================== */
.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--surface-edge);
  border-radius: var(--r-card);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-card);
  transition: border-color .25s ease, transform .25s ease;
  opacity: 0; transform: translateY(8px);
  animation: cardIn .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--delay) * 55ms + 100ms);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card[hidden] { display: none; }
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 30%, transparent), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-1px); }
.card:hover::after { opacity: 1; }
[data-theme="paper"] .card:hover { border-color: rgba(20,16,12,0.18); }
@keyframes cardIn { to { opacity: 1; transform: none; } }

.card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  gap: 10px;
}
.card__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}
.card__source {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.card__source--link { transition: color .2s ease; }
.card__source--link:hover { color: var(--accent); }

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live);
  animation: liveDot 1.6s ease-out infinite;
  flex-shrink: 0;
}
.live-dot--green { background: var(--green); animation-name: liveDotGreen; }
@keyframes liveDot {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}
@keyframes liveDotGreen {
  0%   { box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(132, 204, 22, 0); }
}

/* ===========================================================
   SPOTIFY
   =========================================================== */
.spotify {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 22px;
  align-items: center;
}
.spotify__art {
  position: relative;
  width: 148px; height: 148px;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.spotify__art-img {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 30% 20%, #f9a8d4 0%, transparent 55%),
    radial-gradient(140% 140% at 80% 80%, #4c1d95 0%, transparent 60%),
    linear-gradient(135deg, #831843 0%, #1e1b4b 100%);
  filter: saturate(1.2) contrast(1.05);
  background-size: cover;
  background-position: center;
}
.spotify__art-glow {
  position: absolute; inset: -30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(249,168,212,0.45), transparent 70%);
  filter: blur(34px);
  z-index: -1;
  opacity: 0.7;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.8; } }
.spotify__art-vinyl {
  position: absolute;
  right: -42px; top: 50%;
  transform: translateY(-50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px),
    radial-gradient(circle at center, var(--accent) 0 8px, #1a0f08 8px 100%);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: -6px 0 16px -6px rgba(0,0,0,0.6);
  animation: spinSlow 8s linear infinite;
  z-index: -1;
}
@keyframes spinSlow { to { transform: translateY(-50%) rotate(360deg); } }

.spotify__meta { min-width: 0; }
.spotify__title {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.05;
}
.spotify__artist { font-size: 14px; color: var(--text-soft); margin-bottom: 2px; }
.spotify__album {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.spotify__progress { max-width: 320px; }
.spotify__bar {
  height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
  position: relative;
}
.spotify__bar span {
  display: block; height: 100%; width: 45%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: spProgress 226s linear infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}
@keyframes spProgress { to { width: 100%; } }
.spotify__times {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.eq {
  display: flex; align-items: flex-end; gap: 3px;
  height: 24px;
  margin-top: 12px;
}
.eq span {
  display: block; width: 3px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 1.5px;
  transform-origin: bottom;
  animation: eq 1.2s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 60%; animation-delay: -.15s; }
.eq span:nth-child(2) { height: 90%; animation-delay: -.42s; }
.eq span:nth-child(3) { height: 70%; animation-delay: -.05s; }
.eq span:nth-child(4) { height: 100%; animation-delay: -.32s; }
.eq span:nth-child(5) { height: 50%; animation-delay: -.22s; }
.eq span:nth-child(6) { height: 80%; animation-delay: -.55s; }
.eq span:nth-child(7) { height: 65%; animation-delay: -.10s; }
.eq span:nth-child(8) { height: 45%; animation-delay: -.38s; }
.eq span:nth-child(9) { height: 75%; animation-delay: -.18s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.recent-tracks {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline);
}
.recent-tracks__label {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 8px;
}
.recent-tracks__list { display: grid; gap: 4px; }
.recent-tracks__list a {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s ease, padding-left .2s ease;
}
.recent-tracks__list a:hover { background: var(--surface-strong); padding-left: 12px; }
.recent-tracks__cover {
  width: 24px; height: 24px; border-radius: 4px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.recent-tracks__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recent-tracks__artist { font-size: 11px; color: var(--text-soft); }
.recent-tracks__time { font-family: var(--f-mono); font-size: 10px; color: var(--muted); }

/* ===========================================================
   WEATHER
   =========================================================== */
.wx { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.wx__now {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
}
.wx__icon {
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
.wx__num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.wx__num sup {
  font-family: var(--f-mono);
  font-size: 0.22em;
  vertical-align: super;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 2px;
  letter-spacing: 0.08em;
}
.wx__sub { display: grid; }
.wx__cond {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--text-soft);
  letter-spacing: -0.01em;
}
.wx__feels {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 3px;
}

.wx__hours {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  height: 90px;
  padding: 8px 2px;
  border-top: 1px dashed var(--hairline);
  border-bottom: 1px dashed var(--hairline);
  position: relative;
}
.wx__hours::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed var(--hairline);
  opacity: 0.3;
}
.wx__hours li {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  align-items: center;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  position: relative;
}
.wx__h-time { font-size: 9px; letter-spacing: 0.08em; }
.wx__h-mark {
  align-self: start;
  margin-top: var(--y);
  color: var(--accent);
  font-size: 8px;
  filter: drop-shadow(0 0 4px var(--accent-glow));
  transition: transform .2s ease;
}
.wx__h-temp { color: var(--text-soft); font-size: 10px; font-variant-numeric: tabular-nums; }
.wx__hours li:hover .wx__h-mark { transform: scale(1.6); }

.wx__sun {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: auto;
}
.wx__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 4px;
  vertical-align: middle;
}
.wx__dot--down { background: var(--muted); }
.wx__sun-bar {
  height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.wx__sun-bar i {
  display: block;
  height: 100%;
  width: var(--p);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
}

/* ===========================================================
   GITHUB
   =========================================================== */
.gh { display: grid; gap: 14px; flex: 1; }
.gh__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gh__stat {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-strong);
}
.gh__num {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gh__lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 4px;
}

.gh__heatwrap {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px;
  align-items: center;
}
.gh__heat-labels {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  font-family: var(--f-mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
  height: 100%;
}
.gh__heat-labels span { display: flex; align-items: center; justify-content: flex-end; }
.gh__heat {
  --cell: 11px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, var(--cell));
  gap: 2px;
  justify-content: start;
}
.gh__heat span {
  width: var(--cell); height: var(--cell);
  border-radius: 2px;
  background: var(--hairline);
  transition: transform .15s ease;
}
.gh__heat span:hover { transform: scale(1.3); }
.gh__heat span.l1 { background: color-mix(in oklab, var(--accent) 25%, var(--hairline)); }
.gh__heat span.l2 { background: color-mix(in oklab, var(--accent) 50%, var(--hairline)); }
.gh__heat span.l3 { background: color-mix(in oklab, var(--accent) 80%, var(--hairline)); }
.gh__heat span.l4 { background: var(--accent); box-shadow: 0 0 4px var(--accent-glow); }

.gh__commits { display: grid; gap: 0; }
.gh__commits a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .2s ease;
}
.gh__commits li:last-child a { border-bottom: 0; }
.gh__commits a:hover { padding-left: 6px; }
.gh__sha {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.gh__msg {
  font-size: 12px;
  color: var(--text-soft);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.gh__repo {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
}

/* ===========================================================
   DISCORD
   =========================================================== */
.discord {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  align-items: center;
}
.discord__avatar {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 30% 30%, #818cf8 0%, transparent 60%),
    linear-gradient(135deg, #4f46e5 0%, #1e1b4b 100%);
  border: 1px solid var(--surface-edge);
}
.discord__presence {
  position: absolute; right: -2px; bottom: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bg);
}
.discord__presence[data-presence="online"]  { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.discord__presence[data-presence="idle"]    { background: #eab308; }
.discord__presence[data-presence="dnd"]     { background: #ef4444; }
.discord__presence[data-presence="offline"] { background: var(--muted); }
.discord__main { min-width: 0; }
.discord__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}
.discord__tag {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.discord__activity {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}
.discord__act-label {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.discord__act-name { color: var(--text); }
.discord__act-detail {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.discord__history {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
}
.discord__history-label {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 8px;
}
.discord__timeline { display: grid; gap: 4px; }
.discord__timeline li {
  display: grid;
  grid-template-columns: 42px 16px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-soft);
}
.discord__t-time { font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
.discord__t-icon { color: var(--accent); font-size: 11px; }

/* ===========================================================
   TWITCH
   =========================================================== */
.streamers { display: grid; gap: 4px; }
.streamer {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 8px 8px;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}
.streamer:hover {
  background: var(--surface-strong);
  transform: translateX(2px);
}
.streamer__av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 2px solid transparent;
  position: relative;
}
.streamer--live .streamer__av {
  border-color: var(--live);
  box-shadow: 0 0 0 1px var(--bg) inset, 0 0 12px color-mix(in oklab, var(--live) 40%, transparent);
}
.streamer__main { display: grid; min-width: 0; }
.streamer__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.streamer__game {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-soft);
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.streamer__viewers {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.streamer__viewers--off { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; }

/* ===========================================================
   MINECRAFT
   =========================================================== */
.mc { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mc__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-soft);
}
.mc__status-label { text-transform: uppercase; letter-spacing: 0.18em; color: var(--green); }
.mc__ping { margin-left: auto; color: var(--muted); }

.mc__motd {
  display: grid;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.mc__motd-line1 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--text);
}
.mc__motd-line2 {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.mc__players {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.mc__players-num {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.mc__players-max { color: var(--muted); font-size: 0.55em; }
.mc__players-list { display: flex; flex-wrap: wrap; gap: 4px; }
.mc__players-list li {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 3px 7px 3px 4px;
  border-radius: 4px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  color: var(--text-soft);
}
.mc__pl-skin {
  width: 8px; height: 8px; border-radius: 1px;
  background: var(--c1);
}
.mc__last {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mc__last span { color: var(--accent); }

/* ===========================================================
   STEAM
   =========================================================== */
.steam-list { display: grid; gap: 2px; flex: 1; }
.steam-game {
  display: grid;
  grid-template-columns: 38px 1fr 36px;
  gap: 10px;
  align-items: center;
  padding: 7px 8px 7px 0;
  border-radius: 8px;
  transition: background .2s ease, transform .2s ease;
}
.steam-game:hover { background: var(--surface-strong); transform: translateX(2px); }
.steam-game__cover {
  width: 38px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 1px solid var(--surface-edge);
}
.steam-game__main { display: grid; min-width: 0; }
.steam-game__name {
  font-family: var(--f-display);
  font-size: 14px;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.steam-game__sub {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.steam-game__bar {
  display: block;
  width: 36px; height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.steam-game__bar span {
  display: block; height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.steam-list__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
  display: flex; flex-direction: column;
}
.steam-list__ach-label {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--accent);
}
.steam-list__ach {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ===========================================================
   WISHLIST
   =========================================================== */
.wishlist {
  display: grid; gap: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 280px;
  max-height: 480px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 16px), transparent 100%);
}
.wishlist::-webkit-scrollbar { width: 6px; }
.wishlist::-webkit-scrollbar-track { background: transparent; }
.wishlist::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 3px; }

.wish {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background .2s ease, padding-left .2s ease;
  border-radius: 6px;
}
.wish:hover { background: var(--surface-strong); padding-left: 8px; }
.wish__cover {
  width: 56px; height: 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 1px solid var(--surface-edge);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.wish__cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.08));
}
.wish__info { display: grid; min-width: 0; gap: 2px; }
.wish__name {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-style: italic;
}
.wish__price-line {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.wish__price { color: var(--text); font-weight: 500; }
.wish__price-old { color: var(--muted); text-decoration: line-through; font-size: 10px; }
.wish__badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--surface-strong);
  color: var(--muted);
  border: 1px solid var(--hairline);
}
.wish__badge--deal {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
  font-weight: 600;
}
.wish__badge--soon { color: var(--text-soft); }
.wish__ends {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.04em;
}
.wish__ends b { color: var(--live); font-weight: 500; }

/* ===========================================================
   DOCKER
   =========================================================== */
.docker { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.docker__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.docker__sum-stat {
  display: flex; flex-direction: column;
  padding: 9px 11px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface-strong);
}
.docker__sum-num {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.docker__sum-num small { font-size: 0.55em; color: var(--muted); margin-left: 1px; font-family: var(--f-mono); }
.docker__sum-num--off { color: var(--muted); }
.docker__sum-lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 4px;
}

.docker__sparks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-strong);
}
.docker__spark { display: grid; gap: 6px; }
.docker__spark-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.docker__spark-head b { color: var(--text); font-weight: 500; }
.docker__spark-head small { color: var(--muted); font-size: 0.85em; margin-left: 1px; }
.spark-svg { width: 100%; height: 28px; display: block; }
.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px var(--accent-glow));
}
.spark-line--alt { stroke: var(--accent-2); }

.docker__list { display: grid; gap: 0; flex: 1; }
.docker__item {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--f-mono);
  font-size: 11px;
}
.docker__item:last-child { border-bottom: 0; }
.docker__item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px color-mix(in oklab, var(--green) 60%, transparent);
}
.docker__item-dot--off { background: var(--muted); box-shadow: none; }
.docker__item-name { color: var(--text); }
.docker__item-img { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docker__item-up { color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ===========================================================
   NEWS
   =========================================================== */
.news { display: grid; }
.news__item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: padding-left .25s ease;
}
.news__item:last-child { border-bottom: 0; }
.news__item::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width .25s ease;
  box-shadow: 0 0 6px var(--accent-glow);
}
.news__item:hover { padding-left: 14px; }
.news__item:hover::before { width: 2px; }
.news__src {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.news__title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.014em;
  color: var(--text);
  line-height: 1.3;
  transition: color .2s ease;
  text-wrap: pretty;
}
.news__item:hover .news__title { color: var(--accent-2); }
.news__time {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ===========================================================
   COLOPHON
   =========================================================== */
.colophon {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  gap: 16px;
}
.colophon__center { text-align: center; font-style: italic; text-transform: none; letter-spacing: 0.04em; font-family: var(--f-display); font-size: 12px; color: var(--text-soft); }
.colophon__right { text-align: right; }

/* ===========================================================
   SETTINGS PANEL
   =========================================================== */
.panel {
  position: fixed; inset: 0;
  z-index: 50;
  pointer-events: none;
}
.panel[aria-hidden="false"] { pointer-events: auto; }

.panel__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.panel[aria-hidden="false"] .panel__scrim { opacity: 1; }

.panel__sheet {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-left: 1px solid var(--surface-edge);
  transform: translateX(110%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -32px 0 64px -32px rgba(0,0,0,0.6);
}
.panel[aria-hidden="false"] .panel__sheet { transform: none; }

.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--hairline);
}
.panel__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text);
}
.panel__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--surface-edge);
  background: var(--surface);
  color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s;
}
.panel__close:hover { color: var(--accent); border-color: var(--accent-soft); }

.panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 24px;
  display: grid; gap: 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}
.panel__section {
  display: grid; gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--hairline);
}
.panel__section:last-child { border-bottom: 0; padding-bottom: 0; }
.panel__section-title {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 6px;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.theme-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--surface-edge);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .2s, transform .2s, background .2s;
}
.theme-card:hover { border-color: var(--accent-soft); transform: translateY(-1px); }
.theme-card[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.theme-card__swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, var(--a) 0 33%, var(--b) 33% 66%, var(--c) 66% 100%);
  grid-row: span 2;
  box-shadow: 0 0 0 1px var(--surface-edge) inset;
}
.theme-card__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text);
}
.theme-card__sub {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--text-soft);
}
.row em { color: var(--muted); font-style: italic; font-size: 11px; margin-left: 6px; }

.toggle {
  appearance: none;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  position: relative;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-soft);
  top: 2px; left: 2px;
  transition: transform .25s cubic-bezier(.5,1.7,.4,1), background .25s;
}
.toggle:checked { background: var(--accent); border-color: var(--accent); }
.toggle:checked::after { transform: translateX(16px); background: var(--bg); }

.select, .input {
  appearance: none;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  min-width: 140px;
  outline: none;
  transition: border-color .2s;
}
.select:focus, .input:focus { border-color: var(--accent); }

.panel__btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--surface-edge);
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color .2s, border-color .2s;
}
.panel__btn:hover { color: var(--live); border-color: var(--live); }

.panel__foot {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-align: center;
  padding-top: 10px;
}

/* ===========================================================
   CONFETTI
   =========================================================== */
.confetti {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.confetti span {
  position: absolute;
  top: -10vh;
  width: 8px; height: 14px;
  background: var(--c, var(--accent));
  opacity: 0.95;
  animation: fall var(--d, 3s) cubic-bezier(.3,.7,.4,1) forwards;
  transform: rotate(var(--r, 0deg));
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===========================================================
   CURSOR SPARKLES
   =========================================================== */
.spark {
  position: fixed;
  pointer-events: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 70;
  animation: sparkOut .7s ease-out forwards;
}
@keyframes sparkOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

[data-tilt="on"] .page { animation: tilt 4s ease-in-out infinite; }
@keyframes tilt {
  0%, 100% { transform: rotate(-0.4deg); }
  50%      { transform: rotate(0.4deg); }
}

/* ===========================================================
   MOTION REDUCED
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bg-mesh, .bg-aurora { animation: none; }
}
