/* Replace the existing token block, or load after the page stylesheet. */
:root{
  color-scheme:light;
  --bg:#fff7e8;--panel:#ffffff;--ink:#20324a;--muted:#4f6075;--line:#c2d3df;
  --accent:#215cc5;--accent-ink:#ffffff;--sky:#e5f5ff;--gold:#815000;
  --bad:#ae304e;--good:#176849;--typed:#526579;
  --c1:#ffd1dc;--c2:#ffe0b3;--c3:#fff1aa;--c4:#c8efb9;--c5:#bcecf2;--c6:#e0d5ff;
  --sun:#ffcf4d;--leaf:#45b975;--berry:#ed739c;--ocean:#42bddd;
  --display:"Fredoka",system-ui,sans-serif;--body:"Nunito",system-ui,sans-serif;--mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme:dark;
  --bg:#142037;--panel:#1c2d46;--ink:#f4f8ff;--muted:#bccce0;--line:#506581;
  --accent:#a9caff;--accent-ink:#142037;--sky:#233c54;--gold:#ffcf66;
  --bad:#ffabba;--good:#8de5b6;--typed:#bacce0;
  --c1:#643349;--c2:#604327;--c3:#554c25;--c4:#294e39;--c5:#234d59;--c6:#453c69;
  --sun:#ffd66d;--leaf:#80dea5;--berry:#ffa4c4;--ocean:#83d9ee;
}}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#142037;--panel:#1c2d46;--ink:#f4f8ff;--muted:#bccce0;--line:#506581;
  --accent:#a9caff;--accent-ink:#142037;--sky:#233c54;--gold:#ffcf66;
  --bad:#ffabba;--good:#8de5b6;--typed:#bacce0;
  --c1:#643349;--c2:#604327;--c3:#554c25;--c4:#294e39;--c5:#234d59;--c6:#453c69;
  --sun:#ffd66d;--leaf:#80dea5;--berry:#ffa4c4;--ocean:#83d9ee;
}
/* Optional finger/row accents; retain next-key and error priority. */
.kbd .k[data-color]:not(.next):not(.shake){background:var(--key-color);color:var(--ink)}
.k[data-color="1"]{--key-color:var(--c1)} .k[data-color="2"]{--key-color:var(--c2)}
.k[data-color="3"]{--key-color:var(--c3)} .k[data-color="4"]{--key-color:var(--c4)}
.k[data-color="5"]{--key-color:var(--c5)} .k[data-color="6"]{--key-color:var(--c6)}
/* Existing .next uses dark text: use the decorative sun, not text gold. */
.kbd .k.next{background:var(--sun);color:#20324a;border-color:var(--gold)}
