/* Carrom — a wooden board drawn on a canvas, coin counters above, the striker slider below. */
body { background: radial-gradient(120% 70% at 50% 0%, #4a2e18 0%, #1b120a 65%); }
.cr-score { display: flex; gap: 8px; width: min(100%, 440px); margin-bottom: 8px; align-items: stretch; }
.cr-side { flex: 1; min-width: 0; background: var(--card); border-radius: 14px; padding: 6px 8px; text-align: center; border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.cr-side.turn { border-color: var(--gold); box-shadow: 0 0 12px #ffc53355; }
.cr-nm { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-coins { display: flex; justify-content: center; gap: 3px; margin-top: 3px; min-height: 16px; }
.cr-coins i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff55; }
.cr-coins i.w { background: #f6ecd2; } .cr-coins i.b { background: #2b2b2b; }
.cr-coins i.e { background: transparent; border-style: dashed; }
.cr-coins i.q { background: #d6334a; border-color: #ffc533; }
.cr-coins i.pop { animation: cr-pop .4s ease-out; }
@keyframes cr-pop { from { transform: scale(2.2); } }
.cr-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; }
.cr-mid b { font-size: 15px; } .cr-mid small { font-size: 11px; color: var(--muted); }
.cr-wrap { width: min(100%, 440px); aspect-ratio: 1; touch-action: none; }
.cr-board { width: 100%; height: 100%; border-radius: 14px; box-shadow: 0 12px 30px #000a; display: block; touch-action: none; }
.cr-place { display: flex; align-items: center; gap: 10px; width: min(100%, 440px); margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cr-place input { flex: 1; accent-color: var(--gold); height: 28px; }
.cr-place.off { opacity: .35; pointer-events: none; }
.cr-turn { font-weight: 700; min-height: 24px; margin: 8px 0 4px; text-align: center; }
.cr-toast { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #000a, 0 0 16px #000; pointer-events: none; animation: cr-toast 1.4s ease-out forwards; z-index: 20; white-space: nowrap; }
@keyframes cr-toast { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.5); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30px); } }
.tnz-tight .cr-wrap { width: min(100%, 360px); }
.tnz-tight .cr-place { margin-top: 6px; }
