/* ─────────── Velo theme tokens ───────────
   data-theme="…" sets colors, data-style="…" sets surface treatment.
   Everything reads from these variables. */
.velo {
  --bg: 11 13 18;          /* rgb triplets so we can vary alpha */
  --surface: 24 27 36;
  --raise: 255 255 255;
  --fg: #f5f6fa;
  --muted: #9aa1b2;
  --faint: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --accent: #7c8cff;
  --accent-2: #c084fc;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --opacity: .86;
  --blur: 24px;
  --speed: 1;
  --ease: cubic-bezier(.32, 1.28, .5, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --font-scale: 1;
  --shadow-a: .55;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  color-scheme: dark;
}
[data-theme="midnight"] { --bg: 11 13 18; --surface: 26 29 40; --accent: #7c8cff; --accent-2: #c084fc; }
[data-theme="aurora"]   { --bg: 6 19 15;  --surface: 15 34 29; --accent: #34d399; --accent-2: #22d3ee; --muted: #8fb5a8; }
[data-theme="sunset"]   { --bg: 23 11 11; --surface: 40 22 22; --accent: #fb7185; --accent-2: #f59e0b; --muted: #c0a09c; }
[data-theme="ocean"]    { --bg: 6 16 28;  --surface: 15 30 48; --accent: #38bdf8; --accent-2: #6366f1; --muted: #8ea6c2; }
[data-theme="rose"]     { --bg: 22 10 18; --surface: 40 20 34; --accent: #f472b6; --accent-2: #e879f9; --muted: #c29ab2; }
[data-theme="forest"]   { --bg: 11 18 9;  --surface: 23 34 20; --accent: #a3e635; --accent-2: #4ade80; --muted: #9db095; }
[data-theme="cyber"]    { --bg: 10 6 20;  --surface: 25 16 44; --accent: #f0abfc; --accent-2: #22d3ee; --muted: #a99bc7; }
[data-theme="mono"]     { --bg: 13 13 13; --surface: 30 30 30; --accent: #e5e5e5; --accent-2: #a3a3a3; --muted: #9a9a9a; }
[data-theme="gold"]     { --bg: 18 15 8;  --surface: 36 30 18; --accent: #fbbf24; --accent-2: #f97316; --muted: #b8aa8a; }
[data-theme="light"]    { --bg: 244 245 248; --surface: 255 255 255; --raise: 0 0 0; --fg: #11131a; --muted: #5d6475; --faint: rgba(0,0,0,.045); --line: rgba(0,0,0,.09); --accent: #4f46e5; --accent-2: #0ea5e9; color-scheme: light; }
[data-theme="paper"]    { --bg: 245 239 228; --surface: 252 248 240; --raise: 60 40 10; --fg: #2a2116; --muted: #7a6a55; --faint: rgba(60,40,10,.05); --line: rgba(60,40,10,.12); --accent: #b45309; --accent-2: #be123c; color-scheme: light; }

/* ─────────── surface styles ─────────── */
.surface {
  color: var(--fg);
  font-family: var(--font);
  transition: background calc(.35s / var(--speed)), box-shadow calc(.35s / var(--speed)), border-color calc(.35s / var(--speed));
}
[data-style="glass"] .surface {
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(var(--raise) / .10), transparent 45%),
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    rgb(var(--bg) / var(--opacity));
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  border: 1px solid rgb(var(--raise) / .14);
  box-shadow: inset 0 1px 0 rgb(var(--raise) / .18), inset 0 -1px 0 rgb(0 0 0 / .25), 0 18px 50px rgb(0 0 0 / var(--shadow-a));
}
[data-style="metallic"] .surface {
  background:
    repeating-linear-gradient(90deg, rgb(var(--raise) / .025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgb(var(--raise) / .16) 0%, rgb(var(--raise) / .02) 38%, rgb(0 0 0 / .18) 62%, rgb(var(--raise) / .07) 100%),
    linear-gradient(110deg, rgb(var(--surface)) 0%, rgb(var(--bg)) 45%, rgb(var(--surface)) 70%, rgb(var(--bg)) 100%);
  border: 1px solid rgb(var(--raise) / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 6px rgb(0 0 0 / .35), 0 16px 44px rgb(0 0 0 / var(--shadow-a));
}
[data-style="flat"] .surface {
  background: rgb(var(--bg));
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(0 0 0 / calc(var(--shadow-a) * .5));
}
[data-style="neon"] .surface {
  background: rgb(var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 25%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 0 22px color-mix(in srgb, var(--accent) 18%, transparent), 0 16px 44px rgb(0 0 0 / var(--shadow-a));
}
[data-style="amoled"] .surface {
  background: #000;
  border: 1px solid rgb(255 255 255 / .06);
  box-shadow: 0 14px 40px rgb(0 0 0 / var(--shadow-a));
}
[data-style="amoled"] { --fg: #fff; --line: rgba(255,255,255,.08); --faint: rgba(255,255,255,.05); --raise: 255 255 255; }
[data-style="clay"] .surface {
  background: linear-gradient(145deg, rgb(var(--surface)), rgb(var(--bg)));
  border: 1px solid rgb(var(--raise) / .06);
  box-shadow: 10px 12px 30px rgb(0 0 0 / var(--shadow-a)), -6px -6px 18px rgb(var(--raise) / .05), inset 1px 1px 0 rgb(var(--raise) / .08);
}

/* cards inside surfaces */
.card {
  border-radius: 18px;
  background: rgb(var(--raise) / .045);
  border: 1px solid var(--line);
}
[data-style="glass"] .card { background: rgb(var(--raise) / .06); box-shadow: inset 0 1px 0 rgb(var(--raise) / .08); }
[data-style="metallic"] .card { background: linear-gradient(180deg, rgb(var(--raise) / .10), rgb(var(--raise) / .02)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 2px 6px rgb(0 0 0 / .25); }
[data-style="flat"] .card { background: rgb(var(--surface)); border-color: transparent; }
[data-style="neon"] .card { background: rgb(var(--raise) / .03); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
[data-style="amoled"] .card { background: #0c0c0e; border-color: rgba(255,255,255,.06); }
[data-style="clay"] .card { background: linear-gradient(145deg, rgb(var(--surface)), rgb(var(--bg))); border-color: transparent; box-shadow: 5px 6px 14px rgb(0 0 0 / .35), -3px -3px 10px rgb(var(--raise) / .04); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { flex: none; display: block; }
