/* KIT_VERSION 1.0.0 (hero suite retro kit, 2026-10-20). One structure, five skins (data-skin on <body>): phosphor, mac, card, dos, x11.
   Rules: flat fills, hard-stop stripes and dots only (no smooth gradients), no blur, no emoji, no rounded cards (only Mac buttons).
   Fonts are vendored files (OFL, see fonts/OFL.txt and fonts/atkinson-hyperlegible-OFL.txt): Atkinson Hyperlegible for reading, VT323 for terminal digits; logos and big
   numbers come from the kit's own pixel table (pixelfont.js). Tokens: --ground --ink --dim --acc --title-bg --title-ink --body --term. */
@font-face { font-family: "Plex Mono"; src: url(fonts/IBMPlexMono-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/IBMPlexMono-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "VT323"; src: url(fonts/VT323-Regular.ttf); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-400.woff2); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-700.woff2); font-weight: 700; font-display: swap; }

:root { --body: "Atkinson Hyperlegible", system-ui, sans-serif; --term: "VT323", "Plex Mono", ui-monospace, monospace;
  --ground: #04110A; --ink: #6CFF95; --dim: #3DAE64; --faint: #2C8A4C; --acc: #6CFF95; --title-bg: #6CFF95; --title-ink: #04110A; }

/* ---------- shared structure ---------- */
.rk-topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; flex: none; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.brand:focus-visible, .key:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.rk-spacer { flex: 1; }
.key { min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--ink); font: inherit; cursor: pointer; touch-action: manipulation; }
.key[disabled] { opacity: .45; cursor: default; }
.win { margin: 0 10px; }
.win > .title { display: flex; align-items: center; height: 26px; padding: 0 6px; font-size: 13px; font-weight: 700; gap: 8px; background: var(--title-bg); color: var(--title-ink); }

/* gauge: a vertical scale, one tick per row; 25-point ticks long and bright */
.gauge { position: relative; border-left: 2px solid var(--ink); }
.gauge b { position: absolute; left: 0; height: 2px; background: var(--dim); width: 8px; }
.gauge b.major { width: 14px; background: var(--ink); }
.gauge em { position: absolute; left: 20px; font: normal 18px/1 var(--term); color: var(--dim); }

/* green-bar printout: the result / collection card, shared by every skin. Sprocket holes are hard-edged dots. */
.printout { position: relative; background: #FBFAF3; color: #1F2420; padding: 10px 30px; font: 14px/20px var(--body);
  background-image: repeating-linear-gradient(#FBFAF3 0 40px, #DCEBD6 40px 80px); }
.printout::before, .printout::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22px;
  background: radial-gradient(circle at 11px 10px, var(--ground) 0 4px, transparent 4.5px) 0 0 / 22px 20px; }
.printout::before { left: 0; border-right: 1px dashed #B9C2B5; }
.printout::after { right: 0; border-left: 1px dashed #B9C2B5; }
.printout b { font-weight: 700; }
.printout .big { font: 32px/40px var(--term); }
.printout .rule { border: 0; border-top: 2px dashed #8FA68A; margin: 0; height: 0; }

/* ---------- skin 1: phosphor terminal (motif hero) ---------- */
[data-skin=phosphor] { --ground: #04110A; --ink: #6CFF95; --dim: #3DAE64; --faint: #2C8A4C; --acc: #6CFF95; --inv-ink: #04110A; --title-bg: #6CFF95; --title-ink: #04110A; }
body[data-skin=phosphor] { background: #04110A; color: #6CFF95;
  background-image: none; }
[data-skin=phosphor] .rk-topbar { border-bottom: 2px solid var(--faint); }
[data-skin=phosphor] .key { border: 2px solid var(--ink); }
[data-skin=phosphor] .inv { background: var(--ink); color: var(--inv-ink); }
[data-skin=phosphor] .glow { text-shadow: 0 0 6px rgba(108,255,149,.55); }

/* ---------- skin 2: 1-bit Macintosh (rna hero) ---------- */
[data-skin=mac] { --ground: #FFFFFF; --ink: #000000; --dim: #000000; --acc: #000000; --title-bg: #FFFFFF; --title-ink: #000000; }
body[data-skin=mac] { background: #FFF; color: #000; }
[data-skin=mac] .rk-topbar { border-bottom: 1px solid #000; min-height: 40px; }
[data-skin=mac] .win { border: 1px solid #000; box-shadow: 2px 2px 0 #000; }
[data-skin=mac] .win > .title { justify-content: center; position: relative;
  background: repeating-linear-gradient(#FFF 0 2px, #000 2px 3px); background-clip: content-box; padding: 6px 4px; height: 22px; border-bottom: 1px solid #000; }
[data-skin=mac] .win > .title span { background: #FFF; padding: 0 8px; }
[data-skin=mac] .win > .title i { position: absolute; left: 10px; top: 5px; width: 12px; height: 12px; border: 1px solid #000; background: #FFF; }
[data-skin=mac] .key { border: 2px solid #000; border-radius: 8px; }
[data-skin=mac] .key.default { box-shadow: 0 0 0 2px #FFF, 0 0 0 5px #000; }
[data-skin=mac] .inv { background: #000; color: #FFF; }

/* ---------- skin 3: 80-column punch card (align hero) ---------- */
[data-skin=card] { --ground: #3A3832; --ink: #2A2823; --dim: #6E6A5E; --acc: #B23A2B; --stock: #EFE6CC; --print: #B23A2B; --title-bg: #EFE6CC; --title-ink: #2A2823; }
body[data-skin=card] { background: #3A3832; color: #EFE6CC; }
[data-skin=card] .cardstock { background: var(--stock); color: var(--ink); clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px); }
[data-skin=card] .key { border: 2px solid currentColor; }

/* ---------- skin 4: DOS text mode (local hero) ---------- */
[data-skin=dos] { --ground: #0000AA; --ink: #AAAAAA; --dim: #AAAAAA; --hi: #FFFFFF; --acc: #FFFF55; --sel: #00AAAA; --title-bg: #AAAAAA; --title-ink: #000; }
body[data-skin=dos] { background: #0000AA; color: #AAAAAA; font-family: var(--term); font-size: 22px; line-height: 24px; }
[data-skin=dos] .box { border: 4px double #AAAAAA; box-shadow: 8px 8px 0 #000; background: #0000AA; }
[data-skin=dos] .sel { background: #00AAAA; color: #000; }
[data-skin=dos] .bar { background: #AAAAAA; color: #000; }

/* ---------- skin 5: X11 / twm (tree hero) ---------- */
[data-skin=x11] { --ground: #FFFFFF; --ink: #000; --dim: #555; --acc: #2E8B57; --title-bg: #D9D9D9; --title-ink: #000; }
body[data-skin=x11] { color: #000;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='4' height='4' fill='%23fff'/%3E%3Crect width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23000'/%3E%3C/svg%3E") 0 0 / 4px 4px; }
[data-skin=x11] .xw { background: #FFF; border: 2px solid #000; }
[data-skin=x11] .xw > .title { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 6px; border-bottom: 2px solid #000; background: #D9D9D9; font-size: 14px; font-weight: 700; }
[data-skin=x11] .xw > .title .grip { flex: 1; height: 12px; background: repeating-linear-gradient(#000 0 1px, transparent 1px 3px); }
[data-skin=x11] .key { border: 1px solid #000; background: #FFF; }

.brand svg { height: auto; }
@media (max-width: 359px) { .brand [data-px] svg { width: auto; height: 15px; } .brand [data-icon] svg { width: 26px; height: 26px; } }
