html { scroll-behavior: smooth; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 14px/1.55 var(--font);
  background:
    radial-gradient(900px 500px at 8% -5%, rgba(91,75,255,.28), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(0,180,216,.2), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(18,147,95,.16), transparent 60%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}
body::before { /* keeps the phone status bar area frosted */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--glass2); backdrop-filter: blur(18px); z-index: 60;
}
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--ac); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.ce { color: var(--ce); } .pe { color: var(--pe); } .muted { color: var(--muted); }
.up, .pos { color: var(--pe); } .dn, .neg { color: var(--ce); }
.sp { flex: 1; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--ac); color: #fff; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
/* Very thin, quiet scrollbars: a faint hairline that brightens only on hover */
* { scrollbar-width: thin; scrollbar-color: rgba(130,140,200,.28) transparent; }
*:hover { scrollbar-color: rgba(130,140,200,.6) transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(130,140,200,.28); border-radius: 4px; }
*:hover::-webkit-scrollbar-thumb { background: rgba(130,140,200,.6); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
