/* Kabaddi Raid — a clay-orange mat with a midline, two teams of seven and three lanes. */
body { background: radial-gradient(120% 70% at 50% 0%, #4a2a16 0%, #1a110b 65%); }
.kb-score { display: flex; align-items: stretch; gap: 8px; width: min(100%, 420px); margin-bottom: 8px; }
.kb-team { flex: 1; background: var(--card); border-radius: 14px; padding: 6px 8px; text-align: center; min-width: 0; border: 2px solid transparent; }
.kb-team.me { border-color: #3ddc8466; } .kb-team.opp { border-color: #ff5c5c66; }
.kb-team b { display: block; font-size: 30px; line-height: 1.1; }
.kb-nm { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-mid { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 96px; font-weight: 800; font-size: 14px; }
.kb-mid small { font-size: 12px; color: var(--gold); font-weight: 700; }
.kb-mat { position: relative; width: min(100%, 420px); height: 300px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--sk-board-bg, #d9773a), var(--sk-board-bg2, #b85d27)); box-shadow: inset 0 0 0 4px var(--sk-board-frame, #f4e3c3), 0 10px 26px #0008; }
.kb-half { position: absolute; left: 0; right: 0; height: 50%; }
.kb-half.top { top: 0; } .kb-half.bottom { bottom: 0; }
.kb-half::before { content: ''; position: absolute; left: 8px; right: 8px; height: 2px; background: #ffffff88; }
.kb-half.top::before { bottom: 34%; } .kb-half.bottom::before { top: 34%; }
.kb-half::after { content: ''; position: absolute; left: 8px; right: 8px; height: 2px; background: #ffffff44; border-top: 2px dashed #ffffff66; }
.kb-half.top::after { top: 20%; } .kb-half.bottom::after { bottom: 20%; }
.kb-midline { position: absolute; left: 0; right: 0; top: calc(50% - 2px); height: 4px; background: #fff; box-shadow: 0 0 10px #fff8; }
.kb-dots { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 24px; }
.kb-half.top .kb-dots { top: 12%; } .kb-half.bottom .kb-dots { bottom: 12%; }
.kb-dots i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0 15%, transparent 40%), var(--c); box-shadow: 0 2px 4px #0006, 0 0 0 2px #fff8; transition: transform .3s, opacity .3s, filter .3s; }
.kb-dots i.out { opacity: .35; filter: grayscale(1); transform: scale(.7); }
.kb-dots i.gone { animation: kb-out .5s ease-out both; }
.kb-dots i.back { animation: kb-back .5s ease-out both; }
@keyframes kb-out { 50% { transform: scale(1.4) rotate(20deg); } 100% { transform: scale(.7); opacity: .35; filter: grayscale(1); } }
@keyframes kb-back { from { transform: scale(.2); } 60% { transform: scale(1.3); } }
.kb-lanes { position: absolute; inset: 0; display: flex; }
.kb-lane { flex: 1; border: 0; background: transparent; color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 3px #000a; display: flex; align-items: center; justify-content: center; border-right: 1px dashed #ffffff33; transition: background .2s; }
.kb-lane:last-child { border-right: 0; }
.kb-lane span { opacity: 0; transition: opacity .2s; background: #0006; border-radius: 999px; padding: 2px 10px; }
.kb-mat.pick .kb-lane span { opacity: 1; }
.kb-mat.pick .kb-lane:hover, .kb-mat.pick .kb-lane:active { background: #ffffff22; }
.kb-mat.pick.attack .kb-lane span { transform: translateY(-62px); }
.kb-mat.pick.defend .kb-lane span { transform: translateY(62px); }
.kb-lane.chosen { background: #ffc53333 !important; box-shadow: inset 0 0 0 3px var(--gold); }
.kb-lane.trap { background: repeating-linear-gradient(45deg, #ff5c5c33 0 8px, transparent 8px 16px); box-shadow: inset 0 0 0 3px #ff5c5c; }
.kb-raider { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 30px; display: grid; place-items: center; transition: left .5s ease-in-out, top .5s ease-in-out, transform .3s; filter: drop-shadow(0 2px 3px #0008); opacity: 0; pointer-events: none; }
.kb-raider.on { opacity: 1; }
.kb-raider.caught { animation: kb-caught .5s ease-in-out 2; }
@keyframes kb-caught { 25% { transform: rotate(-25deg); } 75% { transform: rotate(25deg); } }
.kb-flash { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #000a, 0 0 18px #000; white-space: nowrap; pointer-events: none; opacity: 0; }
.kb-flash.show { animation: kb-flash 1.3s ease-out both; }
@keyframes kb-flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; } }
.kb-depth { display: flex; gap: 8px; justify-content: center; margin-top: 10px; width: min(100%, 420px); }
.kb-depth .tnz-btn { flex: 1; min-height: 42px; font-size: 14px; }
.kb-depth .tnz-btn.on { background: var(--gold); color: #2a1a10; }
.kb-depth.hide { visibility: hidden; }
.kb-turn { font-weight: 700; min-height: 24px; margin: 8px 0 4px; text-align: center; }
.kb-log { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; width: min(100%, 420px); }
.kb-log li { background: var(--card); border-radius: 8px; padding: 2px 6px; font-size: 12px; font-weight: 700; }
.kb-log li.g { box-shadow: inset 0 0 0 2px var(--ok); } .kb-log li.b { box-shadow: inset 0 0 0 2px var(--bad); }
.tnz-tight .kb-mat { height: 240px; }
.tnz-tight .kb-team b { font-size: 24px; }
.tnz-tight .kb-dots i { width: 18px; height: 18px; }
.tnz-tight .kb-mat.pick.attack .kb-lane span { transform: translateY(-48px); }
.tnz-tight .kb-mat.pick.defend .kb-lane span { transform: translateY(48px); }
