/* pig classes, «Ярость», bridge, digging in (2026-12-03): game dock + name tags + cabinet class picker */
.clsb { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px #5a3214; vertical-align: middle; flex: none; }
.clsb svg { width: 12px; height: 12px; display: block; }

/* name tags in the game */
.lbl .clsw { position: absolute; right: 100%; top: -1px; margin-right: 4px; }
.lbl.dug { opacity: .8; }
.lbl.dug .clsb { background: #6e4a2c !important; }

/* dock: dig in / bridge / rage (before ОГОНЬ) */
#powers { display: flex; gap: 6px; }
#powers .pw { min-width: 66px; width: auto; padding: 2px 6px; }
#powers .pw svg { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
#powers .pw span { white-space: nowrap; }
#powers .pw.off { opacity: .5; }
#rageBtn { --p: 0; color: #e0521c; background-image: linear-gradient(0deg, rgba(255,138,52,.55) calc(var(--p) * 100%), transparent calc(var(--p) * 100%)), linear-gradient(180deg, #fffaf0, #f3dcae); }
#rageBtn span, #rageBtn small { color: #5a3214; }
#rageBtn.full { animation: ragePulse 1s ease-in-out infinite; }
#rageBtn.on { background: linear-gradient(180deg, #ffb36b, #ff6a2a); }
#rageBtn.on span, #rageBtn.on small { color: #fff; text-shadow: 0 1px 0 #7a2a0c; }
@keyframes ragePulse { 0%, 100% { box-shadow: 0 4px 0 #5a3214, 0 0 0 0 rgba(255,110,30,.0); } 50% { box-shadow: 0 4px 0 #5a3214, 0 0 16px 4px rgba(255,110,30,.75); } }

/* rage timer ring over the raging pig */
#rageRing { --p: 1; position: absolute; transform: translate(-50%, -100%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #9a3412 70%, transparent 73%), conic-gradient(#ffb02e calc(var(--p) * 360deg), rgba(255,255,255,.35) 0);
  box-shadow: 0 0 14px rgba(255,120,30,.85); color: #fff; font-weight: 800; font-size: 15px; }

/* cabinet: class badge on the tiles + picker on the pig card */
.tile .tcls { position: absolute; top: 6px; right: 6px; }
.tile .tcls .clsb { width: 22px; height: 22px; }
.tile .tcls .clsb svg { width: 14px; height: 14px; }
#pigCard .clsPick { display: flex; gap: 6px; justify-content: center; }
#pigCard .clsPick button { padding: 3px; border-radius: 12px; box-shadow: 0 3px 0 #5a3214; line-height: 0; }
#pigCard .clsPick button .clsb { width: 26px; height: 26px; box-shadow: none; }
#pigCard .clsPick button .clsb svg { width: 16px; height: 16px; }
#pigCard .clsPick button.on { background: #fff; outline: 3px solid #ffb02e; outline-offset: 0; }
#pigCard .clsTxt { font-size: 12px; line-height: 1.25; max-width: 100%; }
#pigCard .clsTxt .cn { font-weight: 800; font-size: 13px; }
#pigCard .clsTxt .cd { color: #7a5a44; }
