/* Kazhuthai — a green cloth table, our own four-suit cards (🌺 🥭 🐟 🌙, 1–10), a fanned hand. */
body { background: radial-gradient(120% 70% at 50% 0%, #1f3a2d 0%, #0f1a15 65%); }
.kz-opps { display: flex; gap: 6px; justify-content: center; width: min(100%, 440px); margin-bottom: 6px; }
.kz-opp { flex: 1; min-width: 0; background: #ffffff10; border-radius: 12px; padding: 6px 4px; text-align: center; border: 2px solid transparent; transition: border-color .2s, opacity .3s; position: relative; }
.kz-opp.turn { border-color: var(--gold); box-shadow: 0 0 12px #ffc53355; }
.kz-opp.done { opacity: .55; }
.kz-opp .nm { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-opp .backs { display: flex; justify-content: center; height: 26px; margin: 3px 0 1px; }
.kz-opp .backs i { width: 16px; height: 24px; border-radius: 3px; margin-left: -9px; border: 1px solid #ffffff55; background: linear-gradient(135deg, var(--sk-cardBack-bg, #7a1f3d), var(--sk-cardBack-bg2, #3d0f24)); box-shadow: 0 1px 2px #0006; }
.kz-opp .backs i:first-child { margin-left: 0; }
.kz-opp .n { font-size: 11px; color: var(--muted); }
.kz-opp .tag { position: absolute; top: -8px; right: -4px; font-size: 16px; }
.kz-opp .voids { font-size: 10px; color: #ffb4b4; min-height: 13px; }
.kz-table { position: relative; width: min(100%, 420px); height: 200px; border-radius: 22px; background: radial-gradient(ellipse at center, var(--sk-board-bg, #2c6b47), var(--sk-board-bg2, #174230));
  box-shadow: inset 0 0 0 4px var(--sk-board-frame, #6b4a2b), inset 0 0 30px #0008, 0 8px 24px #0007; overflow: hidden; }
.kz-led { position: absolute; left: 10px; top: 8px; font-size: 13px; font-weight: 700; background: #0005; border-radius: 999px; padding: 2px 10px; }
.kz-burn { position: absolute; right: 10px; top: 8px; font-size: 12px; color: #ffffffbb; }
.kz-trick { position: absolute; inset: 30px 10px 10px; }
.kz-trick .kz-card { position: absolute; left: 50%; top: 50%; margin: -42px 0 0 -30px; transition: transform .35s cubic-bezier(.2, 1.2, .4, 1), opacity .4s; }
.kz-trick .who { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font-size: 10px; white-space: nowrap; background: #0008; border-radius: 6px; padding: 0 4px; color: #fff; }
.kz-trick .kz-card.in { animation: kz-in .35s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes kz-in { from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 120px)) rotate(0) scale(.7); } }
.kz-trick .kz-card.top { box-shadow: 0 0 0 3px var(--gold), 0 4px 10px #0008; }
.kz-trick .kz-card.cutter { box-shadow: 0 0 0 3px #ff5c5c, 0 4px 10px #0008; }
.kz-trick.gone .kz-card { opacity: 0; transform: translate(var(--gx, 0), var(--gy, -200px)) scale(.4) !important; }
.kz-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 22px; font-weight: 900; padding: 6px 14px; border-radius: 12px; background: #000a; white-space: nowrap; z-index: 3; animation: kz-pop .35s ease-out both; }
@keyframes kz-pop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
.kz-card { width: 60px; height: 84px; border-radius: 9px; background: linear-gradient(160deg, #fffdf6, #f1e9d6); color: #222; box-shadow: 0 3px 8px #0007; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--kc, #999); padding: 0; }
.kz-card b { font-size: 26px; font-weight: 900; line-height: 1; color: var(--kc); }
.kz-card span { font-size: 22px; line-height: 1.1; }
.kz-card small { position: absolute; left: 4px; top: 2px; font-size: 12px; font-weight: 800; color: var(--kc); }
.kz-card.s-P { --kc: #d6336c; } .kz-card.s-M { --kc: #e8590c; } .kz-card.s-F { --kc: #1c7ed6; } .kz-card.s-N { --kc: #7048e8; }
.kz-hand { display: flex; justify-content: center; width: min(100%, 460px); min-height: 104px; padding: 12px 8px 4px; }
.kz-hand .kz-card { margin-left: -26px; cursor: pointer; transition: transform .18s, filter .2s, margin .2s; flex: none; }
.kz-hand .kz-card:first-child { margin-left: 0; }
.kz-hand.few .kz-card { margin-left: -10px; }
.kz-hand .kz-card.ok { transform: translateY(-10px); }
.kz-hand .kz-card.ok:active { transform: translateY(-16px) scale(1.04); }
.kz-hand .kz-card.dim { filter: brightness(.55) saturate(.6); }
.kz-hand .kz-card.new { animation: kz-new .45s ease-out both; }
@keyframes kz-new { from { transform: translateY(-80px) scale(.6); opacity: 0; } }
.kz-turn { font-weight: 700; min-height: 24px; margin: 8px 0 0; text-align: center; }
.tnz-tight .kz-table { height: 160px; }
.tnz-tight .kz-card { width: 52px; height: 74px; }
.tnz-tight .kz-card b { font-size: 22px; } .tnz-tight .kz-card span { font-size: 18px; }
.tnz-tight .kz-trick .kz-card { margin: -37px 0 0 -26px; }
.tnz-tight .kz-hand { min-height: 90px; padding-top: 10px; }
