.kps .kps-bar2{padding:8px 16px;gap:8px}
.kps .kps-lab{font:600 13px var(--body);color:var(--dim);text-transform:uppercase;letter-spacing:.08em}
.kps .kps-run{width:100%;max-width:720px;padding:20px 16px;text-align:center;margin:0 auto}
.kps .kps-go{font:700 22px var(--head);margin:0 0 4px;color:var(--text)}
.kps .kps-go b{color:var(--pri-hi)}
.kps .kps-caps{display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,96px));gap:12px;justify-content:center;margin:16px auto 20px;max-width:100%}
.kps .kps-caps span{aspect-ratio:1;border-radius:14px;border:2px solid var(--line);border-bottom-width:6px;display:grid;place-items:center;font-family:var(--head);font-size:40px;font-weight:700;color:var(--text);background:var(--bg2);transition:transform .05s,background .05s,border-color .05s;min-width:0}
.kps .kps-caps.many span{font-size:28px}
.kps .kps-caps span.wide{font-size:16px}
.kps .kps-caps span.on{transform:translateY(4px);border-bottom-width:2px;background:var(--pri);color:var(--pri-ink);border-color:var(--pri)}
.kps .kps-live{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:520px;margin:0 auto 12px}
.kps .kps-live div{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.kps .kps-live span{display:block;font-size:13px;color:var(--muted);font-weight:600}
.kps .kps-live b{font-family:var(--head);font-size:30px;font-variant-numeric:tabular-nums}
.kps .kps-pads{display:none;grid-template-columns:repeat(var(--n,2),minmax(0,1fr));gap:8px;margin:8px auto 12px;max-width:640px}
.kps .kps-pads button{height:150px;min-width:0;border-radius:14px;border:2px solid var(--line);background:var(--bg2);color:var(--text);font:700 24px var(--head);touch-action:none;padding:0;-webkit-tap-highlight-color:transparent}
.kps .kps-pads button.on{background:var(--pri);color:var(--pri-ink)}
.kps.touch .kps-pads{display:grid}
.kps.touch .kps-caps{display:none}
.kps .kps-tools{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.kps .kps-bind{font:700 18px var(--head);color:var(--gold);min-height:28px}
.kps .kps-warn{color:var(--bad);font-weight:700}
@media (max-width:640px){
  .kps .tgt-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
  .kps .tgt-tab{flex:none}
  .kps .tgt-bar{flex-wrap:nowrap;padding:8px 12px}
  .kps .kps-run{padding:12px}
  .kps .kps-go{font-size:18px}
  .kps .kps-caps{gap:6px}
  .kps .kps-caps span{font-size:28px;border-radius:10px}
  .kps .kps-caps.many span{font-size:20px}
  .kps .kps-caps span.wide{font-size:11px}
  .kps .kps-live{gap:8px}
  .kps .kps-live div{padding:6px 8px}
  .kps .kps-live b{font-size:22px}
  .kps .kps-pads button{height:140px;font-size:18px}
}

@media (pointer:coarse){.kps .res-actions kbd{display:none}}

.kps .tgt-dev{font:700 12px var(--body);letter-spacing:.02em;color:var(--gold);border:1px solid rgba(245,200,76,.45);border-radius:999px;padding:4px 10px;white-space:nowrap;cursor:help}
.kps .tc-coach{display:grid;grid-template-columns:minmax(0,210px) minmax(0,1fr);gap:24px;padding:20px 24px;align-items:center;width:100%}
.kps .tc-demo{order:-1;background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px}
.kps .tc-demo svg{width:100%;max-width:190px;height:auto;display:block}
.kps .tc-demo p{margin:0;font-size:13px;color:var(--muted);text-align:center}
.kps .tc-steps{text-align:left}
.kps .tc-steps h3{margin:0 0 10px;font-size:22px}
.kps .tc-steps ol{margin:12px 0;padding-left:20px}
.kps .tc-steps li{margin:4px 0;color:#dcd8cf}
.kps .tc-honest{font-size:14px;color:var(--muted);border-left:3px solid var(--gold);padding:6px 10px;background:var(--bg2);border-radius:6px;margin:0}
.kps .tc-btns{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.kps .tc-key{font-size:14px;color:var(--dim);margin:8px 0 0}
.kps .tc-prac{background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;text-align:left;margin:16px;width:calc(100% - 32px)}
.kps .tc-prac h3{margin:0;font-size:20px}
.kps .tc-prac ul{margin:0;padding-left:20px}
.kps .tc-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.kps .tc-badge{font:700 12px var(--head);letter-spacing:.12em;text-transform:uppercase;padding:4px 10px;border-radius:999px;border:1px solid var(--info);color:var(--info)}
.kps .tc-pracbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;background:rgba(106,168,255,.08);border:1px solid rgba(106,168,255,.35);border-radius:10px;padding:6px 12px;font-size:14px;color:var(--info);font-weight:700}
.kps .tc-link{appearance:none;background:none;border:0;color:var(--muted);font:600 14px var(--body);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px 4px;min-height:44px}
.kps .tc-link:hover{color:var(--text)}
/* demo parts */
.kps .d-mouse{fill:#1c1f27;stroke:#3a3f4c;stroke-width:2}
.kps .d-line{stroke:#3a3f4c;stroke-width:2;fill:none}
.kps .d-btn{fill:var(--pri);opacity:0}
.kps .d-wheel{fill:#2a2e38}
.kps .d-finger{fill:#d9b08c;stroke:#a37b58;stroke-width:1.5}
.kps .d-nail{fill:#f2d9c2}
.kps .d-cap{fill:#1c1f27;stroke:#3a3f4c;stroke-width:2}
.kps .d-capt{font:700 22px var(--head);fill:#f2efe8;text-anchor:middle}
.kps .d-small{font:600 11px var(--body);fill:#a19e96;text-anchor:middle}
.kps .tc-fade{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
@media (prefers-reduced-motion:reduce){.kps .tc-demo *{animation:none !important}.kps .d-btn{opacity:.35}}
@media (max-width:760px){.kps .tc-coach{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}.kps .tc-demo svg{max-width:140px}.kps .tc-steps{display:contents}.kps .tc-steps>*{order:2;margin:0}.kps .tc-steps>.tgt-kicker,.kps .tc-steps>h3,.kps .tc-steps>.tc-btns,.kps .tc-steps>.tc-key{order:0}.kps .tc-coach>.tc-demo{order:1;flex-direction:row;justify-content:center;gap:14px;padding:8px 12px}.kps .tc-coach>.tc-demo svg{width:84px;flex:none}.kps .tc-coach>.tc-demo p{text-align:left;max-width:230px}}
@media (max-width:640px){.kps .tc-steps h3{font-size:19px}.kps .tc-coach .tgt-kicker{display:none}.kps .tgt-dev{font-size:11px;padding:3px 8px}}
.kps .kf1,.kps .kf2{animation:kps-tap .36s infinite}
.kps .kf2,.kps .kk2{animation-delay:-.18s}
.kps .kk1,.kps .kk2{animation:kps-key .36s infinite}
@keyframes kps-tap{0%,40%{transform:translateY(0)}50%,90%{transform:translateY(-16px)}100%{transform:translateY(0)}}
@keyframes kps-key{0%,30%{transform:translateY(4px)}40%,100%{transform:translateY(0)}}
.kps.touch .kps-pads.two button{height:96px}
.kps .kps-tools .tc-link{padding:10px 8px}
.kps .tc-fadel{-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%);mask-image:linear-gradient(90deg,transparent,#000 18%)}
.kps .tc-fade.tc-fadel{-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}
/* phones: wrap tab rows instead of hiding options off-screen */
@media (max-width:640px){
  .kps .tgt-bar{flex-wrap:wrap;row-gap:6px}
  .kps .tgt-tabs{flex-wrap:wrap;overflow:visible;-webkit-mask-image:none;mask-image:none}
  .kps .kps-lab{display:none}
  .kps .tgt-dev{order:5}
}
.kps .tc-wait{pointer-events:none;opacity:.55;transition:opacity .2s}
