/* Hand Cricket (2.3.0): scoreboard, two hands, 1–6 finger buttons, ball-by-ball chips. */
.hc-board { width: min(100%, 420px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; background: linear-gradient(135deg, var(--sk-board-bg, #1f4d2e), var(--sk-board-bg2, #143524)); border-radius: 16px; padding: 10px 12px; box-shadow: inset 0 0 18px #0007, inset 0 1px 0 #ffffff26, 0 8px 20px #0007; }
.hc-team { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 4px; border-radius: 12px; }
.hc-team.bat { background: #ffffff14; box-shadow: inset 0 0 0 2px var(--gold); }
.hc-name { font-weight: 700; font-size: 13px; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-runs { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hc-team small { color: #cfe8d6; font-size: 12px; min-height: 16px; }
.hc-mid { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 120px; }
.hc-inn { font-weight: 800; font-size: 13px; color: var(--gold); }
.hc-mid small { font-size: 12px; color: #e9f5ec; }
/* 2.4.0: the hands stand on a small green field (board skin cellA) with a pitch strip down the middle. */
.hc-arena { width: min(100%, 420px); display: flex; justify-content: space-around; align-items: center; margin: 10px 0 4px; padding: 8px 0; border-radius: 50% / 38%;
  background: linear-gradient(90deg, transparent 45.5%, #e9d8a624 45.5%, #e9d8a624 54.5%, transparent 54.5%), radial-gradient(ellipse at 50% 45%, #ffffff14, transparent 65%), var(--sk-board-cellA, #1d4a2b);
  box-shadow: inset 0 0 0 2px #ffffff1f, inset 0 -10px 24px #0006, 0 8px 18px #0006; }
.hc-hand { filter: drop-shadow(0 6px 4px #0007); }
.hc-side { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 110px; }
.hc-hand { font-size: 60px; line-height: 1; height: 72px; display: flex; align-items: center; gap: 4px; }
.hc-hand b { font-size: 34px; color: var(--gold); }
.hc-hand.shake { animation: hc-shake .3s ease-in-out 3; }
@keyframes hc-shake { 50% { transform: translateY(-18px) rotate(-10deg); } }
.hc-role { font-size: 12px; color: var(--muted); min-height: 16px; }
.hc-flash { font-weight: 900; font-size: 22px; color: var(--primary); min-width: 70px; text-align: center; }
.hc-flash.out { color: var(--bad); font-size: 30px; animation: hc-pop .4s ease both; }
.hc-flash.runs { color: var(--ok); font-size: 30px; animation: hc-pop .4s ease both; }
@keyframes hc-pop { from { transform: scale(0); } 60% { transform: scale(1.3); } to { transform: scale(1); } }
.hc-flash.four { font-size: 36px; text-shadow: 0 0 14px #3ddc8499; }
.hc-flash.six { color: var(--gold); font-size: 40px; text-shadow: 0 0 18px #ffc533aa; }
.hc-flash.count { animation: hc-pop .25s ease both; }
/* 2.4.0: the toss coin spins while the hands shake */
.hc-flash.coin { font-size: 34px; animation: hc-coin .3s linear infinite; }
@keyframes hc-coin { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-14px); } to { transform: rotateY(360deg) translateY(0); } }
.hc-balls li.new { animation: hc-pop .35s ease both; box-shadow: 0 0 0 2px #ffffff55; }
.hc-pick { box-shadow: 0 3px 0 #0004; }
.hc-pick:active { box-shadow: 0 1px 0 #0004; }
@media (prefers-reduced-motion: reduce) {
  .hc-hand.shake, .hc-flash.out, .hc-flash.runs, .hc-flash.count, .hc-flash.coin, .hc-balls li.new { animation: none; }
}
.hc-turn { font-weight: 700; min-height: 24px; margin: 6px 0; text-align: center; }
.hc-calls, .hc-choose { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.hc-calls[hidden], .hc-choose[hidden], .hc-end[hidden], .hc-end-btns [hidden] { display: none; }
.hc-call { min-width: 110px; min-height: 46px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; font-size: 16px; cursor: pointer; }
.hc-call.on { border-color: var(--gold); background: #ffc53322; }
.hc-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 420px); }
.hc-pick { min-height: 78px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .12s, border-color .2s, opacity .2s; }
.hc-pick span { font-size: 30px; line-height: 1.1; }
.hc-pick b { font-size: 22px; }
.hc-pick:active { transform: scale(.94); }
.hc-pick.on { border-color: var(--gold); box-shadow: 0 0 14px #ffc53366; transform: translateY(-3px); }
.hc-pick[disabled] { opacity: .4; cursor: default; }
.hc-balls { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: min(100%, 420px); }
.hc-balls li { min-width: 30px; height: 30px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.hc-balls li.w { background: var(--bad); color: #fff; }
.hc-balls li.b4 { background: #2f7d4a; }
.hc-balls li.b6 { background: var(--gold); color: #2a1a00; }
.hc-balls li.sep { background: transparent; min-width: 8px; color: var(--muted); }
.hc-end { margin-top: 12px; text-align: center; }
.hc-end p { font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.hc-end-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.tnz-tight .hc-hand { font-size: 44px; height: 52px; }
.tnz-tight .hc-pick { min-height: 60px; }
.tnz-tight .hc-pick span { font-size: 24px; }
.tnz-tight .hc-runs { font-size: 22px; }
