/* The retired hand wave must not generate either pseudo-element. */
html body #table .seat.active-turn .seat-side::before,
html body #table .seat.active-turn .seat-side::after,
html body #table .seat.timer-active .seat-side::before,
html body #table .seat.timer-active .seat-side::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* No added seat frame: the turn cue belongs to the card edges. */
#table .seat .seat-circle::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Reuse each card's existing edge pseudo. The face, rank and owl stay opaque. */
#table .seat.active-turn {
  --ponder-active-card-animation: none;
}

html body #table .seat.active-turn .card-ui.seat-card,
html body #table .seat.active-turn .card-ui.card-back {
  border-color: transparent !important;
}

html body #table .seat.active-turn .card-ui.seat-card::after,
html body #table .seat.active-turn .card-ui.card-back::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -1px;
  box-sizing: border-box;
  border: 1px solid rgba(200, 255, 255, .98) !important;
  border-radius: inherit;
  background: none !important;
  box-shadow: 0 0 .18em rgba(40, 235, 255, .65) !important;
  pointer-events: none;
  z-index: 2;
  animation: ponderActiveCardEdgePulse 1.6s ease-in-out infinite !important;
}

@keyframes ponderActiveCardEdgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* The current player's turn breathes BEHIND the hand, never in its glyphs.
   A static radial surface animates only opacity, without animating blur. */
html body.app-view-table #table .seat .seat-cards {
  position:relative;
  isolation:isolate;
}
html body.app-view-table:not(.ponder-table-intro-active):not(.ponder-table-ui-locked) #table .seat.active-turn:not(.folded-seat):not(.eliminated-seat) .seat-cards:has(.card-ui)::before {
  content:"";
  position:absolute;
  inset:-42% -28%;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(55,243,255,.70) 0%,rgba(33,225,247,.46) 36%,rgba(22,207,235,.18) 57%,transparent 74%);
  animation:ponderHandBackgroundBreath 1.8s ease-in-out infinite;
}
@keyframes ponderHandBackgroundBreath {
  0%,100% { opacity:.18; }
  50% { opacity:1; }
}
html:is(.low-power,.low-power-mode) body.app-view-table #table .seat .seat-cards::before,
html body:is(.low-power,.low-power-mode).app-view-table #table .seat .seat-cards::before {
  animation:none !important;opacity:.65;
}
@media (prefers-reduced-motion:reduce) {
  html body.app-view-table #table .seat .seat-cards::before {
    animation:none !important;opacity:.65;
  }
}

/* Every active hand keeps a steady frame; only its background light breathes. */
html body.app-view-table #table .seat.active-turn .card-ui:is(.seat-card,.card-back)::after {
  animation:none !important;opacity:.55;
}
