/* HoopStatix Keys — what the keyboard adds to the Live app's own look (live.css). */
@font-face{font-family:Inter;src:url(/fonts/inter-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:Inter;src:url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0100-024F}
*,*::before,*::after{box-sizing:border-box}
html,body,#root{height:100%;margin:0;background:#070A0F;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#F1F3F7;overflow:hidden}
.k,.fb,.tile,.subbar,.cbtn{touch-action:manipulation;cursor:pointer}
.k:active,.fb:active,.subbar:active{transform:translateY(2px);filter:brightness(1.25)}
.kscreen{position:relative;height:100%;display:flex;flex-direction:column;gap:12px;padding:calc(12px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px))}
.kboard{flex:1 1 0;min-height:0;display:grid;gap:12px}
.kboard{overflow:hidden}
.kboard .col.side{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:14px 14px 14px}
.kboard .col.side .k{min-height:0}
.kboard .play-k,.kboard .score-k{min-height:0}
.kboard .col.side .ch{flex:none}
.kboard .lb{flex:none;margin:10px 0 7px}
.kfoot{flex:none}
.kdot{width:8px;height:8px;border-radius:50%;background:#8A92A0;display:inline-block}
.kdot.on{background:#34c77b}
.kdot.wait{background:#F5A15A}
/* the wide layout (iPad on its side): our team large, theirs a small cluster */
.kwide .kboard{grid-template-columns:2.7fr 1fr}
.kwide .us .score-k{grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1.3fr;flex:2.2 1 0}
.kwide .us .play-k{flex:1 1 0;margin-top:8px}
.kwide .us .play-k.two{flex:.9 1 0;margin-top:0}
.kwide .us .subbar{flex:none;margin:10px 0 0}
.kwide .us .score-k .k b{font-size:44px}.kwide .us .score-k .k.miss b{font-size:34px}
.kwide .us .score-k .k span{font-size:12px}
.kwide .us .play-k .k b{font-size:25px}
.kwide .opp .score-k{grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1.25fr;flex:0 0 236px;gap:8px}
.kwide .opp .score-k .k.miss{grid-column:1 / -1}
.kwide .opp .score-k .k b{font-size:30px}.kwide .opp .score-k .k.miss b{font-size:22px}
.kwide .opp .play-k.two{flex:0 0 104px;margin-top:auto;gap:8px}
.kwide .opp .play-k .k b{font-size:17px}
.kwide .kfoot .fb.kplay{min-width:210px;justify-content:center;font-size:15px}
/* the tall layout (a phone in one hand): theirs small on top, ours large, the film under the thumb */
.ktall .kscreen{gap:9px;padding-left:calc(10px + env(safe-area-inset-left,0px));padding-right:calc(10px + env(safe-area-inset-right,0px))}
.ktall .kboard{display:flex;flex-direction:column;gap:9px}
.ktall .kboard .col.side{padding:10px}
.ktall .kboard .col.side .ch{padding-bottom:7px;margin-bottom:8px}
.ktall .opp{flex:none}
.ktall .opp .score-k{grid-template-columns:repeat(6,1fr);grid-template-rows:62px;gap:6px;flex:none;min-height:62px}
.ktall .opp .score-k .k{border-radius:11px;gap:2px}
.ktall .opp .score-k .k b{font-size:21px}.ktall .opp .score-k .k.sm b{font-size:14px}
.ktall .opp .score-k .k span{font-size:8px}
.ktall .us{flex:1 1 0}
.ktall .us .subbar{flex:none;height:40px;min-height:0;margin:0}
.ktall .us .play-k{flex:1.05 1 0;gap:6px;margin-top:0}
.ktall .us .play-k.two{flex:.9 1 0;gap:8px;margin-top:8px}
.ktall .us .score-k{grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1.35fr;gap:8px;flex:2.5 1 0}
.ktall .us .score-k .k b{font-size:38px}.ktall .us .score-k .k.miss b{font-size:24px}
.ktall .us .score-k .k span{font-size:10px}
/* the phone: made shots in one row, one wide miss key under them */
.ktall .us .score-k.made{grid-template-rows:1fr;flex:1.55 1 0}
.ktall .us .score-k.missone{grid-template-columns:1fr;grid-template-rows:1fr;flex:.8 1 0;margin-top:8px}
.ktall .us .score-k.missone .k{flex-direction:row;gap:12px}
.ktall .us .score-k.missone .k b{font-size:26px}
.ktall .us .score-k.missone .k span{font-size:10px;letter-spacing:.14em}
.ktall .us .play-k .k b{font-size:18px}.ktall .us .play-k.two .k b{font-size:19px}
.ktall .kfoot{height:66px;padding:0 6px;gap:6px}
.ktall .kfoot .fb{height:48px;padding:0;flex:1;justify-content:center;font-size:12.5px}
.ktall .kfoot .fb.kplay{height:50px;flex:2.4;font-size:15px}
.ktall .ktop{height:46px;padding:0 6px;gap:6px}
.ktall .ktop .fb{height:34px;padding:0 10px;font-size:12px}
/* a pressed key waits lit for the desktop's answer; the rest step back while a question is open */
.k.kdown{box-shadow:0 0 0 3px #34c77b,0 0 22px rgba(52,199,123,.45)}
.kasked .kboard .k:not(.kdown),.kasked .kboard .subbar,.kasked .ktop{opacity:.3}
.klocked .kboard .k,.klocked .kboard .subbar{opacity:.3;pointer-events:none}
/* the pop-up: from the bottom, where the thumbs are */
.kdim{position:absolute;inset:0;background:rgba(4,6,10,.64);z-index:5}
.kpop{position:absolute;left:12px;right:12px;z-index:6;flex:none;border:1.5px solid rgba(52,199,123,.55);box-shadow:0 -18px 60px rgba(0,0,0,.72);padding:14px 16px 16px;gap:13px;background:#0E1117;display:flex;flex-direction:column;border-radius:16px;max-height:calc(100% - 110px);overflow:auto}
.kwide .kpop{bottom:84px}.ktall .kpop{left:8px;right:8px;bottom:104px;padding:12px 12px 14px}
.kpop-h{display:flex;align-items:center;gap:12px}
.kpop-h b{font-size:21px;font-weight:900;letter-spacing:-.01em;line-height:1.15}
.ktall .kpop-h b{font-size:18px}
.kpop-h .tbadge{position:static;font-size:13px;padding:5px 11px;border-radius:9px;white-space:nowrap}
.kpop-h .cbtn{margin-left:auto;white-space:nowrap}
.kpop .tiles{gap:10px}
.kpop .tile{position:relative}
.kpop .tile .ph2{max-height:150px;margin:6px 0}
.ktall .kpop .tile{padding:7px 6px}.ktall .kpop .tile .ph2{max-height:104px;margin:4px 0}
.ktall .kpop .tile .tno{font-size:17px}.ktall .kpop .tile .tnm{font-size:11.5px}.ktall .kpop .tile .tmeta{font-size:9px}
.kpop .tile.ksug{box-shadow:0 0 0 2.5px #f1f3f7}
.kpop .tile.kextra{justify-content:center;gap:6px;border-style:dashed;min-height:96px}
.kpop .tile.kextra b{font-size:17px;font-weight:900}.kpop .tile.kextra small{font-size:10px;letter-spacing:.08em;color:var(--tx2);font-weight:700}
/* the kind of shot, in the same pop-up as the player */
.kseg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border-radius:12px;border:1.5px solid #323946;overflow:hidden;flex:none}
.kseg span{height:50px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:900;letter-spacing:.04em;color:#A9AFBB;background:#12151C;touch-action:manipulation;cursor:pointer}
.kseg span.on{background:#f0514e;color:#2a0705}
.kseg small{font-size:10px;letter-spacing:.12em;font-weight:800;margin-left:8px;opacity:.75}
.kopts{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.kopts .k{min-height:92px}.kopts .k b{font-size:24px}.kopts .k span{font-size:10.5px;letter-spacing:.1em}
.ktall .kopts{grid-template-columns:repeat(2,1fr)}.ktall .kopts .k{min-height:78px}.ktall .kopts .k b{font-size:20px}
.kcourt{position:relative;border-radius:12px;overflow:hidden;align-self:center;width:min(100%,calc((100vh - 300px) * 1.066));touch-action:manipulation;cursor:crosshair}
.kcourt img{display:block;width:100%;height:auto;pointer-events:none}
.kskip{align-self:center}
/* connect */
.kjoin{height:100%;display:grid;place-items:center;padding:24px;text-align:center}
.kjoin main{max-width:380px;width:100%}
.kmark{font-weight:900;font-size:22px;letter-spacing:.02em}.kmark b{color:#FF7900}
.kjoin h1{font-size:28px;line-height:1.1;letter-spacing:-.5px;margin:20px 0 8px;font-weight:900}
.kjoin p{margin:0 0 14px;color:#A9AFBB;font-size:15.5px;line-height:1.5}
.kjoin input{width:100%;height:58px;border-radius:14px;border:1.5px solid #323946;background:#0E1117;color:#F1F3F7;font:900 26px Inter,system-ui,sans-serif;letter-spacing:.16em;text-align:center;text-transform:uppercase;outline:none}
.kjoin input:focus{border-color:#FF7900}
.kjoin button{margin-top:12px;width:100%;height:54px;border-radius:14px;border:0;background:#FF7900;color:#160a02;font:900 17px Inter,system-ui,sans-serif;cursor:pointer}
.kjoin button:disabled{opacity:.45}
.kjoin .kerr{color:#F5A15A;font-size:14px;min-height:20px;margin-top:10px}
.kjoin .kleave{margin-top:18px;background:transparent;border:1px solid #323946;color:#D5D9E0;height:46px;font-size:14px}
