
body.kart-page{touch-action:none}
.rhud{gap:4px;padding:6px 8px}
.rstatb{display:flex;flex-direction:column;align-items:center;line-height:1.05;min-width:0}
.rstatb small{font-size:9px;color:#9be36b;letter-spacing:1px}
.rstatb b{font-size:15px;color:#e9d8a6;font-variant-numeric:tabular-nums}
#k-pos{color:#ffcb3b;font-size:18px}
.pbtns{display:flex;gap:4px}
.pbtns .pbtn.small{font-size:11px;padding:5px 6px}
#kstage{position:relative;flex:1 1 auto;min-height:0;height:0;max-height:none;aspect-ratio:auto;width:100%;margin:0;background:#0b120d;overflow:hidden}
#kc{position:absolute;left:0;top:0;display:block;touch-action:none;image-rendering:pixelated;image-rendering:crisp-edges}
#kpad{flex:none;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;padding-bottom:max(10px,env(safe-area-inset-bottom));-webkit-user-select:none;user-select:none}
.kpl,.kpr{display:flex;gap:8px;align-items:center}
.ksteer,.kitem,.kbrake{font:inherit;font-weight:900;border:3px solid #0b120d;box-shadow:0 4px 0 #0b120d;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.ksteer{width:78px;height:70px;border-radius:14px;font-size:28px;color:#14201a;background:#ebc57e}
.kitem{width:82px;height:82px;border-radius:50%;background:#3b4a33;color:#f4f1de;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.kitem span{font-size:30px}.kitem small{font-size:9px;letter-spacing:1px;margin-top:2px}
.kitem.has{background:#e04a3c;animation:pulse .7s ease-in-out infinite}
.kbrake{width:58px;height:44px;border-radius:10px;font-size:10px;color:#f4f1de;background:#5a5550}
.ksteer.on,.kitem.on,.kbrake.on{transform:translateY(3px);box-shadow:0 1px 0 #0b120d;filter:brightness(1.15)}
@keyframes pulse{50%{background:#ff7a5c}}
@media (orientation:landscape) and (max-height:520px){
  #kpad{position:absolute;left:0;right:0;bottom:0;background:none;pointer-events:none;padding:8px 14px}
  #kpad button{pointer-events:auto;opacity:.82}
  .ksteer{width:70px;height:62px}
  #app{position:relative}
}
#k-title{justify-content:flex-start;gap:8px;background:radial-gradient(circle at 50% 22%,#4a3a20,#14201a 70%);padding-top:max(44px,env(safe-area-inset-top))}
.rlogo{font-size:56px;line-height:.92;font-weight:900;color:#ffcb3b;letter-spacing:4px;text-align:center;text-shadow:4px 4px 0 #0b120d,-2px -2px 0 #c0392b;font-style:italic}
.psub{font-size:12px;letter-spacing:4px;color:#9be36b;font-weight:900;margin-top:-2px}
#k-hero{width:300px;height:170px;border:3px solid #0b120d;border-radius:8px;image-rendering:auto}
.phow{font-size:11px;line-height:1.5;color:#c9c3a3;text-align:center;background:#14201a;border:2px solid #0b120d;border-radius:8px;padding:8px 10px;max-width:340px}
.phow b{color:#9be36b}
#k-title .klist{max-width:340px}
#k-select{justify-content:flex-start;gap:10px;background:#14201a;padding-top:max(22px,env(safe-area-inset-top))}
#k-racers{display:flex;flex-direction:column;gap:10px;width:100%;max-width:420px}
.rcard{font:inherit;display:flex;align-items:center;gap:8px;text-align:left;background:#2e4434;border:3px solid #0b120d;border-radius:10px;padding:8px;box-shadow:0 4px 0 #0b120d;color:#f4f1de;position:relative}
.rcard.sel{border-color:#ffcb3b;background:linear-gradient(135deg,color-mix(in srgb,var(--kc) 35%,#2e4434),#2e4434);box-shadow:0 4px 0 #0b120d,0 0 0 3px #ffcb3b inset}
.rcard.sel::after{content:"✔";position:absolute;top:4px;right:8px;color:#ffcb3b;font-weight:900}
.rface{flex:none;width:70px;height:70px;border:3px solid #0b120d;border-radius:50%;overflow:hidden;background:var(--kc)}
.rface img{width:100%;height:100%;object-fit:cover;display:block}
.rinfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rinfo b{font-size:15px;color:#ffcb3b}.rinfo b em{font-style:normal;color:#9be36b;font-size:11px}
.rinfo small{font-size:10px;color:#c9c3a3;line-height:1.25}
.rstat{display:flex;align-items:center;gap:6px;font-size:9px}
.rstat u{text-decoration:none;width:58px;color:#e9d8a6;letter-spacing:1px}
.pips{display:flex;gap:2px}.pips i{width:12px;height:8px;background:#14201a;border:1px solid #0b120d;border-radius:2px}.pips i.on{background:var(--kc)}
.rkart{flex:none;width:62px;height:54px}
#k-over{justify-content:flex-start;gap:8px;background:#14201a;padding-top:max(26px,env(safe-area-inset-top))}
.kres{display:flex;align-items:center;gap:12px}
.kres img{width:72px;height:72px;border-radius:50%;border:3px solid #0b120d}
.kplace{font-size:64px;font-weight:900;font-style:italic;text-shadow:4px 4px 0 #0b120d;color:#e9d8a6}
.kplace.p1{color:#ffcb3b}.kplace.p2{color:#d6dde0}.kplace.p3{color:#d08a4a}
.kfinal small{text-align:center;line-height:1.5}.kfinal small em{font-style:normal;font-weight:900;color:#9be36b}
.pnewbest{margin:0;font-size:18px;color:#14201a;background:#ffcb3b;border:3px solid #0b120d;border-radius:8px;padding:6px 12px;font-weight:900;box-shadow:0 4px 0 #0b120d;animation:bob 1s ease-in-out infinite}
#k-scores{padding:12px;gap:6px;background:#14201a}
.krow-s .rk{min-width:22px;text-align:center;font-weight:900}
.krow-s .rkf{width:24px;height:24px;border-radius:50%;border:2px solid #0b120d;flex:none}
a.pbtn{text-decoration:none;display:inline-block}
@media (orientation:landscape){body.kart-page #app{max-width:1000px}}
