.kbt{--kb-case:#0d0f17;--kb-cap:#1c2030;--kb-side:#0a0c13;--kb-legend:#c7d2fe;--kb-ok:#4ade80;--kb-down:#7c3aed;--kb-glow:1}.kbt[data-kb=retro]{--kb-case:#cfc4a6;--kb-cap:#efe7d0;--kb-side:#b3a685;--kb-legend:#4a4234;--kb-ok:#15803d;--kb-down:#c2410c;--kb-glow:0}.kbt[data-kb=clean]{--kb-case:#d9dee7;--kb-cap:#fff;--kb-side:#bcc3cf;--kb-legend:#2d3343;--kb-ok:#15803d;--kb-down:#2563eb;--kb-glow:0}.kbt-toolbar{margin-bottom:var(--sp-2);flex-wrap:wrap;align-items:center;gap:.6rem 1rem;display:flex}.kbt-modes{flex-wrap:wrap;gap:.4rem;display:flex}.kbt-mode{min-height:44px;font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--text-2);background:var(--surface-1);border:1px solid var(--border-default);border-radius:var(--radius-pill);cursor:pointer;padding:.5rem 1rem}.kbt-mode.is-on{color:#fff;background:var(--accent);border-color:var(--accent)}:is(.kbt-mode:focus-visible,.kbt-chip:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.kbt-prefs{flex-wrap:wrap;gap:.5rem 1rem;margin-left:auto;display:flex}.kbt-pref{flex-wrap:wrap;align-items:center;gap:.3rem;display:inline-flex}.kbt-pref-label{font-size:var(--fs-xs);font-weight:var(--fw-bold);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2);margin-right:.15rem}.kbt-chip{min-height:40px;font:inherit;font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--text-2);background:var(--surface-1);border:1px solid var(--border-default);border-radius:var(--radius-pill);cursor:pointer;padding:.25rem .75rem}.kbt-chip.is-on{color:#fff;background:var(--accent);border-color:var(--accent)}.kbt-mode-note{margin:0 0 var(--sp-3);color:var(--text-2);font-size:var(--fs-sm)}.kbt-desk{border:1px solid var(--border-subtle);background:radial-gradient(at 50% 0,#7c3aed33,#7c3aed00 60%),linear-gradient(#1a1d2b,#11131c);border-radius:20px;grid-template-columns:minmax(0,1fr);grid-template-areas:"monitor""kb";align-items:end;gap:20px 24px;padding:22px 20px 30px;display:grid;position:relative;overflow:hidden}.kbt-desk:after{content:"";background:linear-gradient(#5b3b22,#3d2715);height:10px;position:absolute;bottom:0;left:0;right:0}html[data-theme=light] .kbt-desk{background:radial-gradient(at 50% 0,#7c3aed1f,#7c3aed00 60%),linear-gradient(#eef1f8,#e2e6ef)}.kbt-monitor{cursor:pointer;flex-direction:column;grid-area:monitor;justify-self:center;align-items:center;width:min(780px,100%);display:flex}.kbt-screen{aspect-ratio:16/8.6;color:#e2e8f0;background:linear-gradient(160deg,#111827 0%,#1e1b4b 55%,#312e81 100%);border:12px solid #07080c;border-bottom-width:18px;border-radius:16px;width:100%;min-height:220px;position:relative;overflow:hidden;box-shadow:0 0 0 1px #2a2f42,0 18px 40px #00000073}.kbt-neck{background:linear-gradient(#1f2433,#141824);width:70px;height:34px}.kbt-foot{background:#1f2433;border-radius:8px 8px 3px 3px;width:220px;height:10px;box-shadow:0 6px 12px #00000059}.kbt-osbar{background:#0f172ad9;border-bottom:1px solid #94a3b82e;align-items:center;gap:10px;height:28px;padding:0 10px;font-size:12px;font-weight:800;display:flex}.kbt-os-name{color:#c4b5fd;white-space:nowrap}.kbt-os-progress{background:#94a3b838;border-radius:999px;flex:auto;height:8px;position:relative;overflow:hidden}.kbt-os-progress>span{transform-origin:0;background:linear-gradient(90deg,#22c55e,#4ade80);transition:transform .25s;position:absolute;inset:0}.kbt-os-count{text-align:right;color:#86efac;font-variant-numeric:tabular-nums;min-width:3.4em}.kbt-boot{z-index:3;color:#a5b4fc;pointer-events:none;background:#0b1020;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-family:ui-monospace,Courier New,monospace;font-size:14px;animation:2.2s forwards kbtBoot;display:flex;position:absolute;inset:28px 0 0}.kbt-boot p{margin:0}@keyframes kbtBoot{0%,72%{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}.kbt-windows{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:12px;animation:.5s 1.7s both kbtFadeIn;display:grid;position:absolute;inset:40px 12px 12px}@keyframes kbtFadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.kbt-win{background:#020617b8;border:1px solid #94a3b840;border-radius:10px;flex-direction:column;min-height:0;display:flex;overflow:hidden;box-shadow:0 8px 18px #0000004d}.kbt-win-title{color:#94a3b8;background:#1e293be6;align-items:center;gap:5px;padding:5px 9px;font-size:12px;font-weight:800;display:flex}.kbt-win-title i{background:#f87171;border-radius:50%;width:8px;height:8px}.kbt-win-title i:nth-child(2){background:#fbbf24}.kbt-win-title i:nth-child(3){background:#4ade80;margin-right:4px}.kbt-win-body{white-space:pre-wrap;word-break:break-word;color:#e0e7ff;flex:auto;min-height:0;padding:8px 10px;font-family:ui-monospace,Courier New,monospace;font-size:clamp(13px,1.6vw,17px);line-height:1.45;overflow:auto}.kbt-placeholder{color:#64748b}.kbt-caret{vertical-align:text-bottom;background:#a5b4fc;width:.55em;height:1.05em;margin-left:1px;animation:1s step-end infinite kbtBlink;display:inline-block}@keyframes kbtBlink{50%{opacity:0}}.kbt-toast{z-index:4;color:#713f12;background:#fef08a;border-radius:12px;padding:6px 12px;font-size:14px;font-weight:800;animation:.35s cubic-bezier(.3,1.5,.5,1) both kbtPop;position:absolute;top:40px;right:14px;box-shadow:0 8px 18px #00000059}@keyframes kbtPop{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}.kbt-done{z-index:4;pointer-events:none;background:#052e169e;justify-content:center;align-items:center;display:flex;position:absolute;inset:28px 0 0}.kbt-done strong{z-index:1;color:#4ade80;text-shadow:0 0 12px #4ade8099;background:#052e16;border-radius:14px;padding:10px 20px;font-size:clamp(18px,3vw,30px);animation:.4s cubic-bezier(.3,1.5,.5,1) both kbtPop;position:relative}.kbt-confetti{position:absolute;inset:0;overflow:hidden}.kbt-confetti i{background:#f472b6;border-radius:2px;width:8px;height:12px;animation:2.6s linear infinite kbtFall;position:absolute;top:-12px}.kbt-confetti i:first-child{animation-delay:0s;left:5%}.kbt-confetti i:nth-child(2){background:#facc15;animation-delay:.4s;left:12%}.kbt-confetti i:nth-child(3){background:#4ade80;animation-delay:1.1s;left:20%}.kbt-confetti i:nth-child(4){background:#60a5fa;animation-delay:.2s;left:27%}.kbt-confetti i:nth-child(5){animation-delay:1.6s;left:35%}.kbt-confetti i:nth-child(6){background:#facc15;animation-delay:.8s;left:42%}.kbt-confetti i:nth-child(7){background:#c084fc;animation-delay:.1s;left:50%}.kbt-confetti i:nth-child(8){background:#4ade80;animation-delay:1.3s;left:57%}.kbt-confetti i:nth-child(9){background:#60a5fa;animation-delay:.6s;left:64%}.kbt-confetti i:nth-child(10){animation-delay:1.9s;left:71%}.kbt-confetti i:nth-child(11){background:#facc15;animation-delay:.3s;left:78%}.kbt-confetti i:nth-child(12){background:#c084fc;animation-delay:1s;left:85%}.kbt-confetti i:nth-child(13){background:#4ade80;animation-delay:1.5s;left:91%}.kbt-confetti i:nth-child(14){background:#60a5fa;animation-delay:.7s;left:97%}@keyframes kbtFall{0%{transform:translateY(0)rotate(0)}to{transform:translateY(420px)rotate(540deg)}}.kbt-screen-hint{z-index:5;color:#fff;white-space:nowrap;background:#7c3aed;border-radius:999px;padding:7px 16px;font-size:14px;font-weight:800;position:absolute;bottom:14px;left:50%;transform:translate(-50%);box-shadow:0 6px 16px #7c3aed73}.kbt-kb{grid-area:kb;min-width:0;position:relative}.kbt-kb:before{content:"";z-index:0;filter:blur(18px);opacity:0;pointer-events:none;background:linear-gradient(90deg,#f43f5e,#f59e0b,#22c55e,#06b6d4,#8b5cf6,#f43f5e);border-radius:22px;position:absolute;inset:10px -4px -12px}.kbt[data-kb=rgb] .kbt-kb:before{opacity:.5;animation:7s linear infinite kbtHue}@keyframes kbtHue{0%{filter:blur(18px)hue-rotate()}to{filter:blur(18px)hue-rotate(360deg)}}.kbt-board{z-index:1;background:var(--kb-case);-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:14px;outline:none;padding:14px 14px 10px;position:relative;box-shadow:inset 0 1px #ffffff14,0 14px 26px #00000073}.kbt-board.is-armed{cursor:default;box-shadow:inset 0 1px #ffffff14,0 0 0 3px #7c3aed8c,0 14px 26px #00000073}.kbt-hint{z-index:3;color:#fff;font-weight:var(--fw-bold);background:#0a0c149e;border-radius:14px;justify-content:center;align-items:center;margin:0;display:flex;position:absolute;inset:0}.kbt-row{gap:5px;margin-bottom:5px;display:flex}.kbt-key{background:var(--kb-side);border-radius:7px;min-height:40px;position:relative}.kbt-cap{background:var(--kb-cap);color:var(--kb-legend);font-size:var(--fs-xs);font-weight:var(--fw-bold);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;transition:transform 45ms,background-color .12s;display:flex;position:absolute;inset:0 0 4px;overflow:hidden;box-shadow:inset 0 1px #ffffff12}.kbt-key.is-ok .kbt-cap{color:var(--kb-ok);box-shadow:inset 0 1px 0 #ffffff12, inset 0 -3px 0 var(--kb-ok)}.kbt[data-kb=rgb] .kbt-key.is-ok .kbt-cap{text-shadow:0 0 8px #4ade80d9}.kbt-key.is-down .kbt-cap{background:var(--kb-down);color:#fff;transform:translateY(3px)}.kbt-short{display:none}.kbt-count{opacity:.85;font-size:9px;position:absolute;top:1px;right:4px}.kbt-key.is-found .kbt-cap{color:#dcfce7;background:#166534}.kbt-key.is-next .kbt-cap{background:var(--accent);color:#fff}.kbt-key.is-dim{opacity:.35}@media (prefers-reduced-motion:no-preference){.kbt-key.is-next .kbt-cap{animation:1.4s ease-in-out infinite kbtPulse}@keyframes kbtPulse{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}}@media (max-width:900px){.kbt-prefs{margin-left:0}}@media (max-width:640px){.kbt-desk{gap:14px;padding:14px 10px 22px}.kbt-screen{aspect-ratio:auto;border-width:8px 8px 12px;height:230px}.kbt-windows{grid-template-rows:minmax(0,1fr) 70px;grid-template-columns:minmax(0,1fr);gap:8px;inset:36px 8px 8px}.kbt-board{padding:8px 6px 4px}.kbt-row{gap:2px;margin-bottom:3px}.kbt-key{border-radius:5px;min-height:28px}.kbt-cap{letter-spacing:-.02em;border-radius:4px;font-size:11px;inset:0 0 3px}.kbt-cap .kbt-long{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.kbt-cap .kbt-short{font-size:14px;display:inline}.kbt-key.is-down .kbt-cap{transform:translateY(2px)}.kbt-neck{height:22px}.kbt-foot{width:150px}}@media (prefers-reduced-motion:reduce){.kbt-boot{display:none}.kbt-windows,.kbt-toast,.kbt-done strong,.kbt-caret{animation:none}.kbt-confetti{display:none}.kbt[data-kb=rgb] .kbt-kb:before{animation:none}.kbt-cap{transition:none}}
