/* The four Frost Command looks for the site, its legal pages and the admin consoles
   (they share the --night/--panel/--frost names). /skin.js sets html[data-skin]. */
html[data-skin]:root { color-scheme: dark; }
html[data-skin="rally"]:root {
  --night: #070b14; --panel: #0f172a; --panel-2: #131d33; --rule: #1e293b; --snow: #f1f5f9; --mist: #94a3b8;
  --frost: #38bdf8; --call: #fbbf24; --hit: #f87171; --good: #4ade80;
}
html[data-skin="whiteout"]:root {
  --night: #061220; --panel: rgb(16 36 60 / .58); --panel-2: rgb(30 58 92 / .5); --rule: rgb(170 220 255 / .18); --snow: #ecf8ff; --mist: #a3bdd4;
  --frost: #a5ecff; --call: #ffd98a; --hit: #ff9a90; --good: #7ef0c0;
}
html[data-skin="furnace"]:root {
  --night: #0c0e13; --panel: #14171f; --panel-2: #1a1e29; --rule: #292f3d; --snow: #f4efe8; --mist: #a7a9b3;
  --frost: #ff8a3d; --call: #ffd166; --hit: #ff6b6b; --good: #6ee7a8;
}
html[data-skin="aurora"]:root {
  --night: #070912; --panel: #0d1121; --panel-2: #131a2e; --rule: #232a46; --snow: #eef1ff; --mist: #9ba4c9;
  --frost: #5eead4; --call: #fcd34d; --hit: #fda4af; --good: #86efac;
}

/* Whiteout: polar night, frosted glass, faint snow */
html[data-skin="whiteout"] body {
  background: radial-gradient(1100px 520px at 85% -8%, rgb(120 205 255 / .2), transparent 62%), radial-gradient(900px 560px at -12% 18%, rgb(70 130 220 / .16), transparent 60%), linear-gradient(180deg, #08192d 0%, #050d18 100%) fixed;
}
html[data-skin="whiteout"] body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 120px 80px, #dff4ff 50%, transparent 51%), radial-gradient(2px 2px at 200px 160px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60px 200px, #cfeaff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 260px 40px, #fff 50%, transparent 51%);
  background-size: 300px 240px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
html[data-skin="whiteout"] body > *:not(.fc-skin-menu) { position: relative; z-index: 1; }
html[data-skin="whiteout"] .sheet, html[data-skin="whiteout"] .app, html[data-skin="whiteout"] .plan, html[data-skin="whiteout"] .panel { backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 12px 32px rgb(0 0 0 / .28); }
html[data-skin="whiteout"] h1 { text-shadow: 0 0 24px rgb(165 236 255 / .4); }

/* Furnace: ember glow from the top, ice-blue details */
html[data-skin="furnace"] body { background: radial-gradient(900px 420px at 50% -12%, rgb(255 120 40 / .14), transparent 65%), #0c0e13; }
html[data-skin="furnace"] .hero h1 em, html[data-skin="furnace"] .step::before { text-shadow: 0 0 22px rgb(255 120 40 / .45); }
html[data-skin="furnace"] .utc, html[data-skin="furnace"] .label { color: #9ad8ff; }
html[data-skin="furnace"] .btn-primary { color: #1e0a00; }

/* Aurora: northern lights across the top */
html[data-skin="aurora"] body { background: radial-gradient(1000px 500px at 70% -10%, rgb(167 139 250 / .16), transparent 60%), radial-gradient(800px 420px at 10% -5%, rgb(94 234 212 / .12), transparent 60%), #070912; }
html[data-skin="aurora"] .hero h1, html[data-skin="aurora"] h1 { background: linear-gradient(90deg, #5eead4, #a5b4fc 55%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-skin="aurora"] .hero h1 em { color: transparent; }
html[data-skin="aurora"] .btn-primary { background: linear-gradient(135deg, #5eead4, #8b9cf8); color: #0b0d1a; }

/* the menu in the site's top bar */
.top .fc-skin-btn { border-color: var(--rule); }
.top nav { align-items: center; }

/* Glows and gradients stay put behind the page (no repeat seam on short pages). */
html[data-skin] body { background-attachment: fixed; min-height: 100vh; }
