/* Pattasu Chain — a Diwali night board, glowing crackers that wobble when they are about to burst. */
body { background: radial-gradient(120% 70% at 50% 0%, #2a1850 0%, #120d24 65%); }
.pt-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 2px 0 8px; width: min(100%, 440px); }
.pt-chip { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; border: 2px solid transparent; transition: border-color .2s, opacity .3s; max-width: 48%; }
.pt-chip i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pt-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-chip.turn { border-color: var(--gold); box-shadow: 0 0 12px #ffc53355; }
.pt-chip.dead { opacity: .4; text-decoration: line-through; }
.pt-board { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 4px; padding: 8px; width: min(100%, 420px);
  border-radius: 18px; background: var(--sk-board-bg, #1a1233); box-shadow: inset 0 0 0 2px var(--sk-board-frame, #3c2a6b), 0 10px 30px #0008;
  transition: box-shadow .3s; }
.pt-board.live { box-shadow: inset 0 0 0 2px var(--turn-col, #ffc533), 0 0 22px var(--turn-glow, #ffc53355), 0 10px 30px #0008; }
.pt-cell { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--sk-board-cellA, #241a44); border: 0; padding: 0; overflow: visible; cursor: pointer; transition: background .2s; }
.pt-cell:nth-child(odd) { background: var(--sk-board-cellB, #281d4b); }
.pt-cell.mine:hover, .pt-cell.can:active { background: #34285c; }
.pt-cell.last::after { content: ''; position: absolute; inset: 2px; border-radius: 9px; border: 2px dashed #ffffff55; pointer-events: none; }
.pt-cell.flash { animation: pt-flash .35s ease-out; }
@keyframes pt-flash { 0% { background: #fff6; transform: scale(1.12); } 100% { transform: scale(1); } }
.pt-orbs { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pt-orbs b { position: absolute; width: 38%; height: 38%; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fffa 0 12%, transparent 38%), radial-gradient(circle at 50% 50%, transparent 45%, #0007 100%), var(--c);
  box-shadow: 0 0 8px var(--c); transition: transform .2s; }
.pt-orbs b::after { content: ''; position: absolute; left: 46%; top: -22%; width: 2px; height: 30%; background: #e8d9a8; border-radius: 2px; transform: rotate(18deg); }
.pt-orbs.n1 b { transform: translate(0, 0); }
.pt-orbs.n2 b:nth-child(1) { transform: translate(-28%, 0); } .pt-orbs.n2 b:nth-child(2) { transform: translate(28%, 0); }
.pt-orbs.n3 b:nth-child(1) { transform: translate(-28%, 18%); } .pt-orbs.n3 b:nth-child(2) { transform: translate(28%, 18%); } .pt-orbs.n3 b:nth-child(3) { transform: translate(0, -26%); }
.pt-orbs.hot { animation: pt-wobble .5s ease-in-out infinite; }
.pt-orbs.hot b::before { content: ''; position: absolute; left: 40%; top: -40%; width: 6px; height: 6px; border-radius: 50%; background: #ffe066; box-shadow: 0 0 6px 2px #ffb703; animation: pt-spark .3s steps(2) infinite; }
@keyframes pt-wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
@keyframes pt-spark { 50% { opacity: .2; } }
.pt-orbs.pop b { animation: pt-pop .25s ease-out; }
@keyframes pt-pop { from { transform: scale(.2); } }
.pt-turn { font-weight: 700; min-height: 24px; margin: 10px 0 4px; text-align: center; }
.pt-chain { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); font-size: 34px; font-weight: 900; color: #ffe066; text-shadow: 0 0 18px #ff6b2c, 0 2px 0 #0008;
  pointer-events: none; animation: pt-chain 1s ease-out forwards; z-index: 20; white-space: nowrap; }
@keyframes pt-chain { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -90%) scale(1); opacity: 0; } }
.tnz-tight .pt-board { width: min(100%, 360px); gap: 3px; padding: 6px; }
.tnz-tight .pt-turn { margin: 6px 0 2px; }
.tnz-tight .pt-chips { margin-bottom: 4px; }
