/* =========================================================
   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.88);
  --surface-strong: rgba(36, 32, 28, 0.95);
  --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.90);
  --surface-strong: rgba(34, 14, 78, 0.97);
  --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.94);
  --surface-strong: rgba(255, 252, 244, 0.99);
  --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.92);
  --surface-strong: rgba(49, 50, 68, 0.97);
  --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.90);
  --surface-strong: rgba(31, 45, 36, 0.97);
  --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.90);
  --surface-strong: rgba(58, 30, 42, 0.97);
  --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;
}

[data-theme="macchiato"] {
  --bg: #181926;
  --surface: rgba(36, 39, 58, 0.92);
  --surface-strong: rgba(54, 58, 79, 0.97);
  --surface-edge: rgba(245, 169, 127, 0.14);
  --hairline: rgba(245, 169, 127, 0.10);
  --text: #cad3f5;
  --text-soft: #a5adcb;
  --muted: #6e738d;
  --accent: #f5a97f;
  --accent-2: #ee99a0;
  --accent-soft: rgba(245, 169, 127, 0.16);
  --accent-glow: rgba(245, 169, 127, 0.32);
  --live: #ed8796;
  --green: #a6da95;
  --mesh-1: #24273a;
  --mesh-2: #1e2030;
  --mesh-3: #363a4f;
  --mesh-4: #181926;
  --aurora: rgba(245, 169, 127, 0.10);
  --shadow-card: 0 1px 0 rgba(245,169,127,0.05) inset,
                 0 24px 48px -24px rgba(0,0,0,0.5);
  --grain-opacity: 0.18;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="frappe"] {
  --bg: #232634;
  --surface: rgba(48, 52, 70, 0.92);
  --surface-strong: rgba(65, 69, 89, 0.97);
  --surface-edge: rgba(239, 159, 118, 0.14);
  --hairline: rgba(239, 159, 118, 0.10);
  --text: #c6d0f5;
  --text-soft: #a5adce;
  --muted: #737994;
  --accent: #ef9f76;
  --accent-2: #e5c890;
  --accent-soft: rgba(239, 159, 118, 0.16);
  --accent-glow: rgba(239, 159, 118, 0.3);
  --live: #e78284;
  --green: #a6d189;
  --mesh-1: #2a2e42;
  --mesh-2: #1f2233;
  --mesh-3: #414559;
  --mesh-4: #232634;
  --aurora: rgba(239, 159, 118, 0.09);
  --shadow-card: 0 1px 0 rgba(239,159,118,0.05) inset,
                 0 24px 48px -24px rgba(0,0,0,0.5);
  --grain-opacity: 0.18;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="nord"] {
  --bg: #0f1420;
  --surface: rgba(30, 38, 56, 0.90);
  --surface-strong: rgba(42, 52, 74, 0.97);
  --surface-edge: rgba(136, 192, 208, 0.14);
  --hairline: rgba(136, 192, 208, 0.10);
  --text: #e5e9f0;
  --text-soft: #b6c2d6;
  --muted: #667088;
  --accent: #88c0d0;
  --accent-2: #81a1c1;
  --accent-soft: rgba(136, 192, 208, 0.16);
  --accent-glow: rgba(136, 192, 208, 0.3);
  --live: #bf616a;
  --green: #a3be8c;
  --mesh-1: #1a2436;
  --mesh-2: #131b2a;
  --mesh-3: #263349;
  --mesh-4: #0f1420;
  --aurora: rgba(136, 192, 208, 0.10);
  --shadow-card: 0 1px 0 rgba(136,192,208,0.06) inset,
                 0 24px 48px -24px rgba(0,0,0,0.55);
  --grain-opacity: 0.16;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="tokyo-night"] {
  --bg: #0d0e1a;
  --surface: rgba(26, 27, 44, 0.92);
  --surface-strong: rgba(36, 40, 62, 0.97);
  --surface-edge: rgba(122, 162, 247, 0.14);
  --hairline: rgba(122, 162, 247, 0.10);
  --text: #c0caf5;
  --text-soft: #9aa5ce;
  --muted: #565f89;
  --accent: #7aa2f7;
  --accent-2: #bb9af7;
  --accent-soft: rgba(122, 162, 247, 0.16);
  --accent-glow: rgba(187, 154, 247, 0.32);
  --live: #f7768e;
  --green: #9ece6a;
  --mesh-1: #16192b;
  --mesh-2: #1a1b2e;
  --mesh-3: #292e4a;
  --mesh-4: #0d0e1a;
  --aurora: rgba(122, 162, 247, 0.12);
  --shadow-card: 0 1px 0 rgba(122,162,247,0.06) inset,
                 0 24px 48px -24px rgba(0,0,0,0.55);
  --grain-opacity: 0.16;
  --scanline-opacity: 0.05;
  color-scheme: dark;
}

[data-theme="dracula"] {
  --bg: #191a21;
  --surface: rgba(40, 42, 54, 0.92);
  --surface-strong: rgba(53, 56, 71, 0.97);
  --surface-edge: rgba(255, 121, 198, 0.14);
  --hairline: rgba(189, 147, 249, 0.10);
  --text: #f8f8f2;
  --text-soft: #c6c6d0;
  --muted: #6272a4;
  --accent: #ff79c6;
  --accent-2: #bd93f9;
  --accent-soft: rgba(255, 121, 198, 0.16);
  --accent-glow: rgba(189, 147, 249, 0.32);
  --live: #ff5555;
  --green: #50fa7b;
  --mesh-1: #21222c;
  --mesh-2: #1a1b23;
  --mesh-3: #2d2f3f;
  --mesh-4: #191a21;
  --aurora: rgba(189, 147, 249, 0.12);
  --shadow-card: 0 1px 0 rgba(189,147,249,0.06) inset,
                 0 24px 48px -24px rgba(0,0,0,0.55);
  --grain-opacity: 0.18;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="gruvbox"] {
  --bg: #1d2021;
  --surface: rgba(40, 40, 40, 0.92);
  --surface-strong: rgba(60, 56, 54, 0.97);
  --surface-edge: rgba(250, 189, 47, 0.14);
  --hairline: rgba(250, 189, 47, 0.10);
  --text: #ebdbb2;
  --text-soft: #bdae93;
  --muted: #7c6f64;
  --accent: #fabd2f;
  --accent-2: #fe8019;
  --accent-soft: rgba(250, 189, 47, 0.16);
  --accent-glow: rgba(254, 128, 25, 0.32);
  --live: #fb4934;
  --green: #b8bb26;
  --mesh-1: #282828;
  --mesh-2: #1d2021;
  --mesh-3: #3c3836;
  --mesh-4: #1d2021;
  --aurora: rgba(250, 189, 47, 0.10);
  --shadow-card: 0 1px 0 rgba(250,189,47,0.05) inset,
                 0 24px 48px -24px rgba(0,0,0,0.55);
  --grain-opacity: 0.22;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="rose-pine"] {
  --bg: #191724;
  --surface: rgba(31, 29, 46, 0.92);
  --surface-strong: rgba(38, 35, 58, 0.97);
  --surface-edge: rgba(235, 188, 186, 0.14);
  --hairline: rgba(196, 167, 231, 0.10);
  --text: #e0def4;
  --text-soft: #908caa;
  --muted: #6e6a86;
  --accent: #ebbcba;
  --accent-2: #c4a7e7;
  --accent-soft: rgba(235, 188, 186, 0.16);
  --accent-glow: rgba(196, 167, 231, 0.32);
  --live: #eb6f92;
  --green: #9ccfd8;
  --mesh-1: #21202e;
  --mesh-2: #191724;
  --mesh-3: #26233a;
  --mesh-4: #191724;
  --aurora: rgba(196, 167, 231, 0.10);
  --shadow-card: 0 1px 0 rgba(235,188,186,0.05) inset,
                 0 24px 48px -24px rgba(0,0,0,0.55);
  --grain-opacity: 0.18;
  --scanline-opacity: 0;
  color-scheme: dark;
}

[data-theme="everforest"] {
  --bg: #1e2326;
  --surface: rgba(39, 46, 51, 0.92);
  --surface-strong: rgba(52, 61, 66, 0.97);
  --surface-edge: rgba(167, 192, 128, 0.14);
  --hairline: rgba(167, 192, 128, 0.10);
  --text: #d3c6aa;
  --text-soft: #a7b0a0;
  --muted: #7a8478;
  --accent: #a7c080;
  --accent-2: #83c092;
  --accent-soft: rgba(167, 192, 128, 0.16);
  --accent-glow: rgba(131, 192, 146, 0.3);
  --live: #e67e80;
  --green: #a7c080;
  --mesh-1: #232a2e;
  --mesh-2: #1e2326;
  --mesh-3: #2e383c;
  --mesh-4: #1e2326;
  --aurora: rgba(167, 192, 128, 0.09);
  --shadow-card: 0 1px 0 rgba(167,192,128,0.05) inset,
                 0 24px 48px -24px rgba(0,0,0,0.5);
  --grain-opacity: 0.18;
  --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);
  /* static by default — no will-change, no GPU layer promotion */
}
/* only animate when explicitly turned on in settings */
[data-bg-anim="on"] .bg-mesh {
  animation: meshDrift 50s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-1.5%, 0.8%, 0) scale(1.02); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.03); }
}

.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%);
  opacity: 0.6;
  /* static by default */
}
[data-bg-anim="on"] .bg-aurora {
  animation: auroraDrift 36s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate(0,0); opacity: 0.6; }
  50%  { transform: translate(1.5%,-0.8%); opacity: 0.75; }
  100% { transform: translate(-0.8%,0.8%); opacity: 0.55; }
}

.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: calc(var(--grain-opacity) * 0.5);
}
[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%);
}

/* ─────────── snow ❄️ (pure CSS, off by default) ─────────── */
.bg-snow {
  display: none;
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
}
[data-snow="on"] .bg-snow {
  display: block;
  background-image:
    radial-gradient(2px 2px at 10% 0%, #fff, transparent),
    radial-gradient(2px 2px at 35% 0%, #fff, transparent),
    radial-gradient(3px 3px at 60% 0%, #fff, transparent),
    radial-gradient(2px 2px at 80% 0%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 95% 0%, #fff, transparent);
  background-repeat: repeat;
  background-size: 220px 800px;
  opacity: 0.55;
  animation: snowFall 12s linear infinite;
}
.bg-snow::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 0%, #fff, transparent),
    radial-gradient(2px 2px at 50% 0%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 72% 0%, #fff, transparent),
    radial-gradient(2.5px 2.5px at 90% 0%, #fff, transparent);
  background-repeat: repeat;
  background-size: 340px 1100px;
  opacity: 0.4;
  animation: snowFall 20s linear infinite reverse;
}
@keyframes snowFall {
  from { background-position-y: -800px; }
  to   { background-position-y: 800px; }
}

/* ─────────── party mode 🎉 (pure CSS, off by default) ─────────── */
[data-party="on"] .page {
  animation: partyHue 6s linear infinite;
}
@keyframes partyHue {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

/* ===========================================================
   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);
  opacity: 0.9;
}
.kicker__sep { color: var(--surface-edge); }
.kicker__date, .kicker__weather { color: var(--text-soft); }
.kicker__weather { font-style: normal; }

.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-strong);
  border: 1px solid var(--surface-edge);
  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);
  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);
}

/* ===========================================================
   BENTO
   =========================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, 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; }

/* all cards span exactly 2 rows — uniform row groups, no mixed-height transitions */
/* row A: spotify(5) + discord(4) + github(3)  = 12          */
/* row B: weather(4) + twitch(5)  + mc(3)      = 12          */
/* row C: steam(4)   + wishlist(4)+ docker(4)  = 12          */
/* row D: news-tech(6) + news-games(6)         = 12          */
.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 2; order:  5; }
.card--mc       { grid-column: span 3; grid-row: span 2; order:  6; }
.card--steam    { grid-column: span 4; grid-row: span 2; order:  7; }
.card--wishlist { grid-column: span 4; grid-row: span 2; order:  8; }
.card--docker   { grid-column: span 4; grid-row: span 2; order:  9; }
.card--news     { grid-column: span 6; grid-row: span 2; 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; }
  .card--discord  { grid-column: span 6; }
  .card--github   { grid-column: span 6; }
  .card--twitch   { grid-column: span 5; }
  .card--mc       { grid-column: span 3; }
  .card--steam    { grid-column: span 6; }
  .card--wishlist { grid-column: span 6; }
  .card--docker   { grid-column: span 12; }
  .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);
  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;
  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;
  contain: layout style;
}
.card[hidden] { display: none; }
.card:hover { border-color: rgba(255,255,255,0.18); }
[data-theme="paper"] .card:hover { border-color: rgba(20,16,12,0.22); }
@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);
  flex-shrink: 0;
  opacity: 0.9;
}
.live-dot--green { background: var(--green); }

/* ===========================================================
   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%);
  background-size: cover;
  background-position: center;
}
.spotify__art-img.no-art::after {
  content: "♪";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.35);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.spotify__art-glow {
  position: absolute; inset: -30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(249,168,212,0.35), transparent 70%);
  z-index: -1;
  opacity: 0.6;
}
.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);
  z-index: -1;
}

.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: 8px;
}
.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: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0.45);
  animation: spProgress 226s linear forwards;
  animation-play-state: paused;
}
.spotify--playing .spotify__bar span { animation-play-state: running; }
@keyframes spProgress { to { transform: scaleX(1); } }
.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: 20px;
  margin-top: 8px;
}
.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;
  animation-play-state: paused;
  transform: scaleY(0.35);
}
.eq--playing span { animation-play-state: running; }
.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: 12px;
  padding-top: 10px;
  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 {
  position: relative;
  width: 24px; height: 24px; border-radius: 4px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.recent-tracks__cover.no-art::after {
  content: "♪";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.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
   =========================================================== */
/* ===========================================================
   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); }

.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; }
.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);
}
.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: 10px; flex: 1; }

/* decorative pixel block */
.mc__status-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mc__status {
  display: inline-flex; align-items: center; gap: 8px;
  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: 4px;
  color: var(--muted);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
}

.mc__motd-line1 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mc__motd-line2 {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.mc__players {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  margin-top: auto;
}
.mc__players-num {
  font-family: var(--f-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.mc__players-max { color: var(--muted); font-size: 0.5em; }
.mc__players-meta { display: flex; flex-direction: column; gap: 4px; }
.mc__players-lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.mc__players-list { display: flex; flex-wrap: wrap; gap: 3px; }
.mc__players-list li {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 6px 2px 4px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 1px solid var(--hairline);
  color: var(--text-soft);
}
.mc__pl-skin {
  width: 8px; height: 8px; border-radius: 1px;
  background: var(--c1);
}

.mc__resources {
  display: grid;
  gap: 6px;
  padding: 0 2px;
}
.mc__res {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.mc__res-lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  width: 28px;
}
.mc__res-bar {
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.mc__res-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  transition: width .5s ease;
}
.mc__res-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  width: 48px;
  text-align: right;
}

/* ===========================================================
   STEAM
   =========================================================== */
.steam-list { display: grid; gap: 2px; flex: 1; align-content: start; }
.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;
}
.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);
}
.docker__item-dot--off { background: var(--muted); }
.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;
}
.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.5);
  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) 96%, transparent);
  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 {
  display: inline-block;
  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);
  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); }
}

/* ── silly mode css ── */
[data-comic="on"]   { --f-body: 'Comic Sans MS', 'Chalkboard SE', cursive !important; --f-display: 'Comic Sans MS', 'Chalkboard SE', cursive !important; --f-mono: 'Comic Sans MS', 'Chalkboard SE', cursive !important; }
[data-rainbow="on"] .card { --accent: var(--c-1); --accent-2: var(--c-2); }
[data-rainbow="on"] .card:nth-child(6n+1) { --c-1: #f43f5e; --c-2: #fb7185; }
[data-rainbow="on"] .card:nth-child(6n+2) { --c-1: #f97316; --c-2: #fb923c; }
[data-rainbow="on"] .card:nth-child(6n+3) { --c-1: #eab308; --c-2: #facc15; }
[data-rainbow="on"] .card:nth-child(6n+4) { --c-1: #22c55e; --c-2: #4ade80; }
[data-rainbow="on"] .card:nth-child(6n+5) { --c-1: #3b82f6; --c-2: #60a5fa; }
[data-rainbow="on"] .card:nth-child(6n+6) { --c-1: #a855f7; --c-2: #c084fc; }
[data-flip="on"]   .page { transform: scaleY(-1); }
[data-flip="on"]   .page img, [data-flip="on"] .page video { transform: scaleY(-1); }
[data-wiggle="on"] .card:hover { animation: wiggle .3s ease-in-out; }
@keyframes wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-1deg)} 75%{transform:rotate(1deg)} }
[data-tiny="on"]   .page { transform: scale(0.75); transform-origin: top center; }
[data-chonky="on"] .page { transform: scale(1.15); transform-origin: top center; }
[data-crt="on"]    .page::after { content: ''; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px); z-index: 9999; }
[data-typewriter="on"] .greeting { font-family: var(--f-mono); }
[data-typewriter="on"] .greeting__name::after { content: '|'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===========================================================
   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; }
}

/* ── personalization css ── */
[data-font="geist"]   { --f-body: 'Geist', 'Inter', system-ui, sans-serif !important; }
[data-font="mono"]    { --f-body: 'JetBrains Mono', 'Fira Code', monospace !important; --f-display: 'JetBrains Mono', 'Fira Code', monospace !important; }
[data-font="serif"]   { --f-body: 'Georgia', 'Times New Roman', serif !important; --f-display: 'Georgia', 'Times New Roman', serif !important; }
[data-font="cursive"] { --f-body: 'Dancing Script', 'Brush Script MT', cursive !important; --f-display: 'Dancing Script', 'Brush Script MT', cursive !important; }
[data-radius="sharp"] .card { border-radius: 0 !important; }
[data-radius="sharp"] .card header { border-radius: 0 !important; }
[data-radius="soft"]  .card { border-radius: 16px !important; }
[data-radius="pill"]  .card { border-radius: 999px !important; padding: 24px 32px !important; }

/* pet rock */
.pet-rock {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; user-select: none;
  animation: rockEnter .4s ease-out;
  transition: transform .2s;
}
.pet-rock:hover { transform: scale(1.1); }
.pet-rock--happy { animation: rockBounce .3s ease; }
@keyframes rockEnter { 0% { transform: translateY(40px) scale(0.5); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes rockBounce { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-8px) scale(1.1); } 60% { transform: translateY(-3px); } }
.pet-rock__body {
  position: relative; width: 36px; height: 30px;
  background: color-mix(in oklab, var(--accent) 40%, var(--text));
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
}
.pet-rock__eye { position: absolute; top: 8px; width: 5px; height: 5px; background: var(--bg); border-radius: 50%; }
.pet-rock__eye--l { left: 8px; }
.pet-rock__eye--r { right: 8px; }
.pet-rock__mouth { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 8px; height: 3px; border-bottom: 1.5px solid var(--bg); border-radius: 0 0 50% 50%; }
.pet-rock__name { font-family: var(--f-mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* ── quicklinks editor ── */
#ql-editor { display: grid; gap: 6px; }
.ql-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 4px; align-items: center; }
.ql-row__lbl, .ql-row__url { font-family: var(--f-mono); font-size: 11px; padding: 4px 6px; border: 1px solid var(--hairline); border-radius: 4px; background: var(--surface-strong); color: var(--text); }
.ql-row__col { width: 28px; height: 22px; padding: 0; border: 1px solid var(--hairline); border-radius: 4px; cursor: pointer; }
.ql-row__del { font-size: 12px; color: var(--muted); cursor: pointer; background: none; border: none; padding: 4px; line-height: 1; }
.ql-row__del:hover { color: var(--accent); }
#ql-add-btn { font-family: var(--f-mono); font-size: 10px; color: var(--muted); background: none; border: 1px dashed var(--hairline); border-radius: 4px; padding: 6px; cursor: pointer; width: 100%; margin-top: 4px; }
#ql-add-btn:hover { color: var(--accent); border-color: var(--accent); }
