/* 18t: Jake Kart Battle overlay (kart-ui.js); reuses the .pl-* layout from arcade.css */
.kt-ov { background: #05031a; }
.kt-ov .pl-top { background: linear-gradient(180deg, #2a1206, #120618); }
.kt-chips { flex: 1 1 auto; min-width: 0; display: flex; gap: 5px; align-items: center; justify-content: center; overflow: hidden; }
.kt-title { font: 900 15px/1 Inter, system-ui, sans-serif; letter-spacing: .05em; color: #ffb13d; text-shadow: 0 0 12px rgba(255,120,40,.6); white-space: nowrap; }
.kt-chip { --kc: #fff; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 3px 7px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1.5px solid var(--kc); }
.kt-chip.me { background: color-mix(in srgb, var(--kc) 22%, transparent); box-shadow: 0 0 10px var(--kc); }
.kt-chip.gone { opacity: .45; }
.kt-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #141a3a; flex: 0 0 auto; }
.kt-chip span { min-width: 0; display: flex; flex-direction: column; line-height: 1.05; }
.kt-chip b { font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 66px; }
.kt-chip b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; max-width: 84px; font-size: 10px; line-height: 1.1; }   /* namefit */
.kt-chip i { font-style: normal; font-size: 9px; color: var(--kc); letter-spacing: 1px; }
.kt-stage { touch-action: none; }
.kt-joy { position: absolute; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: radial-gradient(circle, rgba(255,255,255,.08), rgba(255,255,255,.02)); pointer-events: none; z-index: 2; }
.kt-joy[hidden] { display: none; }
.kt-joy i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #c9d4ff 60%, #8b98d8); box-shadow: 0 4px 14px rgba(0,0,0,.5); transform: translate(-50%,-50%); }
.kt-boost { --cd: 360deg; position: absolute; right: 16px; bottom: 18px; width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0; z-index: 3; cursor: pointer; touch-action: none;
  background: conic-gradient(#ffb13d var(--cd), rgba(255,255,255,.12) 0); box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.kt-boost[hidden] { display: none; }
.kt-boost b { position: absolute; inset: 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 13px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; color: #fff;
  background: radial-gradient(circle at 40% 30%, #ff8a3d, #d0400e 70%, #8c2405); border: 2px solid #1b0a00; }
.kt-boost:not(.ready) b { filter: grayscale(.55) brightness(.75); }
.kt-boost.ready { box-shadow: 0 0 22px rgba(255,140,40,.75), 0 6px 18px rgba(0,0,0,.55); }
.kt-boost.push b { transform: scale(.9); }
.kt-pan { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 12px 10px 18px; background: rgba(3,2,14,.55); -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.kt-pan[hidden] { display: none; }
.kt-card { width: 100%; max-width: 400px; padding: 14px 14px 12px; border-radius: 20px; background: linear-gradient(180deg, rgba(34,16,60,.97), rgba(12,8,30,.97)); border: 2px solid #ff8a3d; box-shadow: 0 0 0 3px #1b0a00, 0 16px 40px rgba(0,0,0,.6); text-align: center; }
.kt-card h2 { margin: 2px 0 4px; font: 900 22px/1.1 Inter, system-ui, sans-serif; color: #ffd23f; text-shadow: 0 2px 0 #7a2a00; }
.kt-rules { margin: 0 0 10px; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.88); }
.kt-sub { margin: 6px 0; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.kt-seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kt-seat { --kc: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 3px; border-radius: 14px; border: 2px dashed rgba(255,255,255,.22); min-height: 66px; justify-content: center; }
.kt-seat.on { border: 2px solid var(--kc); background: color-mix(in srgb, var(--kc) 14%, transparent); }
.kt-seat.me { box-shadow: 0 0 12px var(--kc); }
.kt-seat img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #141a3a; }
.kt-seat img[hidden] { display: none; }
.kt-seat b { font-size: 11px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.9); }
.kt-seat:not(.on) b { color: rgba(255,255,255,.45); }
.kt-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.kt-card button { padding: 9px 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font: 800 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.kt-card button.go { background: linear-gradient(180deg, #ffb13d, #ff6b2c); color: #2a0e00; border-color: #1b0a00; box-shadow: 0 3px 0 #1b0a00; }
.kt-card button.on { background: #ffd23f; color: #2a1500; border-color: #ffd23f; }
.kt-cpu { margin-top: 10px; padding: 10px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.kt-cpu > b { display: block; font-size: 13px; margin-bottom: 6px; }
.kt-opt { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; }
.kt-opt button { padding: 7px 10px; font-size: 12px; }
.kt-cpu > button.go { margin-top: 2px; width: 100%; }
.kt-lb { margin-top: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,210,63,.35); text-align: left; }
.kt-lb > b { display: block; font-size: 13px; color: #ffd23f; margin-bottom: 4px; text-align: center; }
.kt-lb ol { list-style: none; margin: 0; padding: 0; }
.kt-lb li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; padding: 2px 0; }
.kt-lb li.me, .kt-lb small.me { color: #ffd23f; }
.kt-lb small { display: block; font-size: 11px; color: rgba(255,255,255,.65); text-align: center; margin-top: 3px; }
.kt-trophy { font-size: 46px; line-height: 1; animation: ktPop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes ktPop { from { transform: scale(.3); opacity: 0; } }
.kt-res { list-style: none; margin: 8px auto; padding: 0; max-width: 260px; }
.kt-res li { --kc: #fff; display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; font-weight: 800; }
.kt-res li i { width: 12px; height: 12px; border-radius: 50%; background: var(--kc); box-shadow: 0 0 8px var(--kc); flex: 0 0 auto; }
.kt-res li span { flex: 1 1 auto; text-align: left; }
.kt-res li b { color: rgba(255,255,255,.8); }
.kt-note { margin: 4px 0; font-size: 12px; font-weight: 800; color: #3dff8b; }
.kt-ov .pl-help button { background: #ff8a3d; color: #2a0e00; }
@media (max-width: 520px) { .kt-chips.many .kt-chip img { display: none; } .kt-chips.many .kt-chip { padding: 3px 7px; } .kt-chips.many { gap: 3px; } }
@media (max-width: 360px) { .kt-chip b { max-width: 48px; } .kt-boost { width: 74px; height: 74px; } }
@media (prefers-reduced-motion: reduce) { .kt-trophy { animation: none; } }
