/* Achievement toast (ui-v/01, component.js). A small koiOS card that comes in from the corner in 8px stop-motion steps:
   a 9×9 pixel icon that prints itself in Bayer order (its arriving dots in the red accent), "Unlocked" typed behind the
   square caret, the line opening through a dither screen, and a 2px dither line along the bottom that empties while it
   waits (its moving edge red). They stack upward; the ones above drop in steps when one goes. Hover holds it, click or
   Esc lets it go. Uses the site tokens only (--bg, --fg, --accent, --m). */
.tst-host { position: fixed; right: var(--m, 24px); bottom: 64px; z-index: 70; --fg: #e3e1db; --bg: #141414; width: 312px; height: 0; pointer-events: none; }
.tst { position: absolute; right: 0; bottom: 0; width: 100%; transform: translateY(var(--y, 0px)); transition: transform .28s steps(4, end); pointer-events: auto; }
.tst-slide { position: relative; }
.tst-card { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; padding: 12px 12px 16px;
  background: var(--bg); color: var(--fg); outline: 1px solid var(--fg); font-size: 13px; line-height: 16px; letter-spacing: -.03em; cursor: pointer; user-select: none; -webkit-user-select: none; }
/* the dotted drop shadow of the koiOS windows: one dot in four, 4px down-right */
.tst-card::after { content: ""; position: absolute; left: 4px; top: 4px; right: -4px; bottom: -4px; z-index: -1; pointer-events: none; background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E") 0 0 / 2px 2px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E") 0 0 / 2px 2px; }
.tst-ic { width: 36px; height: 36px; image-rendering: pixelated; }
.tst-tx { min-width: 0; padding-top: 1px; }
.tst-k { position: relative; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.tst-k .w { position: relative; }
.tst-k .ch { opacity: 0; }
.tst-k .ch.on { opacity: 1; }
.tst-k .caret { position: absolute; left: 0; top: 2px; width: 6px; height: 11px; background: var(--accent, #dc3418); opacity: 0; }
.tst-k .caret.on { opacity: 1; }
.tst-n { margin-left: auto; opacity: .5; font-variant-numeric: tabular-nums; }
.tst-t { position: relative; margin-top: 4px; width: fit-content; max-width: 100%; }
.tst-t .dim, .tst-k .dim { opacity: .5; }
.tst-scr { position: absolute; image-rendering: pixelated; pointer-events: none; }
.tst-bar { position: absolute; left: 12px; right: 12px; bottom: 6px; width: calc(100% - 24px); height: 4px; image-rendering: pixelated; }
.tst-out { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 2; }
.tst-card:focus-visible { outline-color: var(--accent, #dc3418); }

@media (max-width: 860px) {
  .tst-host { left: var(--m, 24px); right: var(--m, 24px); width: auto; bottom: 16px; }
}
@media (max-width: 860px) { .tst-host { left: 16px; right: 16px; bottom: auto; top: 132px; } }
