/* PRF Trainer — tema claro (padrão) e escuro sóbrio.
   As cores do Tailwind (slate, yellow, blue, rose, emerald) leem estas variáveis (build/tailwind.config.js).
   Escolha: automático (sistema) ou fixado em <html data-theme="light|dark"> por /static/tema.js. */
:root {
  --c-slate-50: 2 6 23;
  --c-slate-100: 15 23 42;
  --c-slate-200: 30 41 59;
  --c-slate-300: 51 65 85;
  --c-slate-400: 71 85 105;
  --c-slate-500: 100 116 139;
  --c-slate-600: 148 163 184;
  --c-slate-700: 203 213 225;
  --c-slate-800: 226 232 240;
  --c-slate-900: 241 245 249;
  --c-slate-950: 248 250 252;
  --c-rose-50: 76 5 25;
  --c-rose-100: 136 19 55;
  --c-rose-200: 159 18 57;
  --c-rose-300: 190 18 60;
  --c-rose-400: 190 18 60;
  --c-rose-500: 244 63 94;
  --c-rose-600: 225 29 72;
  --c-rose-700: 190 18 60;
  --c-rose-800: 254 205 211;
  --c-rose-900: 255 228 230;
  --c-rose-950: 255 241 242;
  --c-emerald-50: 2 44 34;
  --c-emerald-100: 6 78 59;
  --c-emerald-200: 6 95 70;
  --c-emerald-300: 4 120 87;
  --c-emerald-400: 4 120 87;
  --c-emerald-500: 16 185 129;
  --c-emerald-600: 5 150 105;
  --c-emerald-700: 4 120 87;
  --c-emerald-800: 167 243 208;
  --c-emerald-900: 209 250 229;
  --c-emerald-950: 236 253 245;
  --c-blue-50: 23 37 84;
  --c-blue-100: 30 58 138;
  --c-blue-200: 30 58 138;
  --c-blue-300: 30 64 175;
  --c-blue-400: 29 78 216;
  --c-blue-500: 42 74 127;
  --c-blue-600: 31 58 104;
  --c-blue-700: 23 46 84;
  --c-blue-800: 199 211 230;
  --c-blue-900: 221 229 241;
  --c-blue-950: 238 242 248;
  --c-yellow-50: 11 28 51;
  --c-yellow-100: 15 36 64;
  --c-yellow-200: 20 41 74;
  --c-yellow-300: 27 53 95;
  --c-yellow-400: 42 74 127;
  --c-yellow-500: 31 58 104;
  --c-yellow-600: 23 46 84;
  --c-yellow-700: 19 38 74;
  --c-yellow-800: 201 212 229;
  --c-yellow-900: 221 228 239;
  --c-yellow-950: 238 242 248;
  color-scheme: light;
  --bg: #f4f5f7;
  --card: #ffffff;
  --line: #e2e8f0;
  --fg: #0f172a;
  --sel: rgb(31 58 104 / .18);
  --font-titulo: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  --c-slate-50: 248 250 252;
  --c-slate-100: 241 245 249;
  --c-slate-200: 226 232 240;
  --c-slate-300: 203 213 225;
  --c-slate-400: 148 163 184;
  --c-slate-500: 100 116 139;
  --c-slate-600: 71 85 105;
  --c-slate-700: 51 65 85;
  --c-slate-800: 30 41 59;
  --c-slate-900: 17 24 39;
  --c-slate-950: 11 17 32;
  --c-rose-50: 255 241 242;
  --c-rose-100: 255 228 230;
  --c-rose-200: 254 205 211;
  --c-rose-300: 253 164 175;
  --c-rose-400: 251 113 133;
  --c-rose-500: 244 63 94;
  --c-rose-600: 225 29 72;
  --c-rose-700: 190 18 60;
  --c-rose-800: 159 18 57;
  --c-rose-900: 136 19 55;
  --c-rose-950: 76 5 25;
  --c-emerald-50: 236 253 245;
  --c-emerald-100: 209 250 229;
  --c-emerald-200: 167 243 208;
  --c-emerald-300: 110 231 183;
  --c-emerald-400: 52 211 153;
  --c-emerald-500: 16 185 129;
  --c-emerald-600: 5 150 105;
  --c-emerald-700: 4 120 87;
  --c-emerald-800: 6 95 70;
  --c-emerald-900: 6 78 59;
  --c-emerald-950: 2 44 34;
  --c-blue-50: 239 246 255;
  --c-blue-100: 219 234 254;
  --c-blue-200: 191 219 254;
  --c-blue-300: 147 197 253;
  --c-blue-400: 122 167 224;
  --c-blue-500: 74 123 200;
  --c-blue-600: 47 98 179;
  --c-blue-700: 38 79 145;
  --c-blue-800: 30 61 112;
  --c-blue-900: 24 48 90;
  --c-blue-950: 16 31 59;
  --c-yellow-50: 251 246 230;
  --c-yellow-100: 245 234 196;
  --c-yellow-200: 238 219 154;
  --c-yellow-300: 228 201 110;
  --c-yellow-400: 214 179 74;
  --c-yellow-500: 196 155 44;
  --c-yellow-600: 163 127 31;
  --c-yellow-700: 127 98 26;
  --c-yellow-800: 92 71 20;
  --c-yellow-900: 61 47 14;
  --c-yellow-950: 36 28 8;
  color-scheme: dark;
  --bg: #0b1120;
  --card: #111827;
  --line: #1f2a3c;
  --fg: #e5e9f0;
  --sel: rgb(196 155 44 / .3);
}
}
:root[data-theme="dark"] {
  --c-slate-50: 248 250 252;
  --c-slate-100: 241 245 249;
  --c-slate-200: 226 232 240;
  --c-slate-300: 203 213 225;
  --c-slate-400: 148 163 184;
  --c-slate-500: 100 116 139;
  --c-slate-600: 71 85 105;
  --c-slate-700: 51 65 85;
  --c-slate-800: 30 41 59;
  --c-slate-900: 17 24 39;
  --c-slate-950: 11 17 32;
  --c-rose-50: 255 241 242;
  --c-rose-100: 255 228 230;
  --c-rose-200: 254 205 211;
  --c-rose-300: 253 164 175;
  --c-rose-400: 251 113 133;
  --c-rose-500: 244 63 94;
  --c-rose-600: 225 29 72;
  --c-rose-700: 190 18 60;
  --c-rose-800: 159 18 57;
  --c-rose-900: 136 19 55;
  --c-rose-950: 76 5 25;
  --c-emerald-50: 236 253 245;
  --c-emerald-100: 209 250 229;
  --c-emerald-200: 167 243 208;
  --c-emerald-300: 110 231 183;
  --c-emerald-400: 52 211 153;
  --c-emerald-500: 16 185 129;
  --c-emerald-600: 5 150 105;
  --c-emerald-700: 4 120 87;
  --c-emerald-800: 6 95 70;
  --c-emerald-900: 6 78 59;
  --c-emerald-950: 2 44 34;
  --c-blue-50: 239 246 255;
  --c-blue-100: 219 234 254;
  --c-blue-200: 191 219 254;
  --c-blue-300: 147 197 253;
  --c-blue-400: 122 167 224;
  --c-blue-500: 74 123 200;
  --c-blue-600: 47 98 179;
  --c-blue-700: 38 79 145;
  --c-blue-800: 30 61 112;
  --c-blue-900: 24 48 90;
  --c-blue-950: 16 31 59;
  --c-yellow-50: 251 246 230;
  --c-yellow-100: 245 234 196;
  --c-yellow-200: 238 219 154;
  --c-yellow-300: 228 201 110;
  --c-yellow-400: 214 179 74;
  --c-yellow-500: 196 155 44;
  --c-yellow-600: 163 127 31;
  --c-yellow-700: 127 98 26;
  --c-yellow-800: 92 71 20;
  --c-yellow-900: 61 47 14;
  --c-yellow-950: 36 28 8;
  color-scheme: dark;
  --bg: #0b1120;
  --card: #111827;
  --line: #1f2a3c;
  --fg: #e5e9f0;
  --sel: rgb(196 155 44 / .3);
}

body { background-color: var(--bg); color: var(--fg); -webkit-tap-highlight-color: transparent; }
::selection { background: var(--sel); }
h1, h2, .marca { font-family: var(--font-titulo); letter-spacing: -0.01em; }
.marca { font-weight: 700; }

/* cartões: planos, sem degradê nem brilho */
.tactical-card, .card { background: var(--card); border: 1px solid var(--line); }
.tactical-glow { box-shadow: 0 1px 2px rgb(15 23 42 / .06); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgb(var(--c-slate-700)); border-radius: 9999px; }

/* botão de tema (rodapé) */
.tema-btn { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; padding: .25rem .7rem; border: 1px solid var(--line);
  border-radius: .5rem; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tema-btn:hover { border-color: rgb(var(--c-slate-500)); }
