/* Table motion uses independent WAAPI transforms, leaving the responsive seat,
   card and button geometry intact. Transient nodes never receive pointer input. */
.game-room .degen-effects-host .fx-particle:is(.fx-game-chip,.fx-game-card-back,.fx-game-spark){
 position:absolute;
 left:var(--fx-x);
 top:var(--fx-y);
 z-index:12;
 display:block;
 margin:0;
 padding:0;
 box-sizing:border-box;
 pointer-events:none;
 user-select:none;
 transform:translate(-50%,-50%);
 transform-origin:center;
 opacity:0;
 animation:none!important;
 will-change:translate,rotate,scale,opacity;
}

/* A single small brass chip travels with each wager or pot transfer. */
.game-room .degen-effects-host .fx-particle.fx-game-chip{
 width:var(--fx-size,15px);
 height:calc(var(--fx-size,15px) * .76);
 border:1px solid #b69c68;
 border-radius:50%;
 background:repeating-conic-gradient(#b99a5e 0deg 27deg,#344b3e 28deg 59deg,#b99a5e 60deg 90deg);
 box-shadow:0 2px 0 #26382a,0 3px 4px #0005;
}
.game-room .fx-game-chip::after{
 content:"";
 position:absolute;
 inset:19%;
 border:1px solid #c3a66b80;
 border-radius:50%;
 background:#263e30;
}
.game-room .degen-effects-host .fx-particle.fx-game-chip.fx-game-payout{
 border-color:#cbb177;
 box-shadow:0 2px 0 #26382a,0 3px 5px #0005;
}

/* Two light impressions on the felt accompany a confirmed check. */
.game-room .poker-table .fx-particle.fx-felt-tap{
 position:absolute;left:var(--fx-x);top:var(--fx-y);z-index:1;
 width:var(--fx-size);height:calc(var(--fx-size) * .59);margin:0;
 box-sizing:border-box;border:2px solid #ddce9a;border-radius:50%;
 background:transparent;box-shadow:0 0 0 1px #173c2b66;
 pointer-events:none;opacity:0;animation:none!important;
}

/* Only card backs travel across the felt; private card faces are never copied. */
.game-room .degen-effects-host .fx-particle.fx-game-card-back{
 width:var(--fx-card-width,24px);
 height:var(--fx-card-height,34px);
 border:1px solid #b3a17c;
 border-radius:3px;
 background:repeating-linear-gradient(45deg,#263d32 0 2px,#304739 2px 4px);
 box-shadow:inset 0 0 0 2px #182820,0 2px 4px #0005;
}
.game-room .fx-game-card-back::before{
 content:"";
 position:absolute;
 inset:3px;
 border:1px solid #9c98724f;
 border-radius:1px;
}
.game-room .fx-game-card-back::after{
 content:"♠";
 position:absolute;
 inset:0;
 display:grid;
 place-items:center;
 color:#b5aa7c;
 font:14px/1 Georgia,serif;
}

/* A few brief warm flecks punctuate a payout without covering the winner. */
.game-room .degen-effects-host .fx-particle.fx-game-spark{
 width:var(--fx-size,4px);
 height:var(--fx-size,4px);
 border:0;
 border-radius:1px;
 background:#d3b572;
 box-shadow:0 0 4px #c7a66045;
}

/* Press feedback is independent of existing button gradients and position. */
.game-room :is(.game-scene,.mobile-bet-sheet) :is(.action-panel .action-buttons>button,.game-tools>button,.table-utilities>.icon-button,.pre-actions>button,.bet-presets>button){
 transition:scale 110ms ease-out,transform 120ms ease-out,filter 150ms ease-out,border-color 150ms ease-out,box-shadow 150ms ease-out;
 touch-action:manipulation;
 -webkit-tap-highlight-color:transparent;
}
.game-room :is(.action-buttons>button,.game-tools>button,.table-utilities>.icon-button,.pre-actions>button,.bet-presets>button):active:not(:disabled){
 scale:.97;
}
.game-room :is(.game-scene,.mobile-bet-sheet) :is(.action-panel .action-buttons>button,.game-tools>button,.table-utilities>.icon-button,.pre-actions>button,.bet-presets>button):focus-visible{
 outline:0;
 border-color:#cfb77f;
 box-shadow:inset 0 0 0 1px #cfb77f,0 2px 5px #0005;
}
.game-room :is(.game-tools>button,.table-utilities>.icon-button)>svg{
 transition:scale 150ms ease-out;
}
@media(hover:hover) and (pointer:fine){
 .game-room :is(.game-tools>button,.table-utilities>.icon-button):hover:not(:disabled)>svg{scale:1.08}
 /* The existing transform retains each card's fan angle. Independent motion
    also lets a deal/reveal animation finish before the hover settles in. */
 .game-room .poker-stage :is(.community-cards,.hero-cards,.revealed-hole)>.card[data-suit]:not(.card-back){
  pointer-events:auto;
  transition:translate 180ms cubic-bezier(.2,.7,.25,1),scale 180ms cubic-bezier(.2,.7,.25,1);
 }
 .game-room .poker-stage :is(.community-cards,.hero-cards,.revealed-hole)>.card[data-suit]:not(.card-back):hover{
  translate:0 -3px;
  scale:1.035;
 }
}

/* Motion off keeps the static turn/winner indication and all gameplay timers. */
.game-room .fx-motion-off .fx-particle,
.game-room.fx-motion-off .fx-particle{display:none!important}
.game-room .fx-motion-off .seat.is-winner::before,
.game-room .fx-motion-off .seat.is-winner::after,
.game-room .fx-motion-off :is(.seat-glow,.seat-info)::after,
.game-room.fx-motion-off .seat.is-winner::before,
.game-room.fx-motion-off .seat.is-winner::after,
.game-room.fx-motion-off :is(.seat-glow,.seat-info)::after{animation:none!important}
.game-room .fx-motion-off :is(.fx-card-enter,.fx-seat-bet .seat-info,.fx-seat-turn .avatar,.fx-seat-win .seat-info,.fx-seat-win .avatar,.fx-win .poker-table,.fx-bet .pot),
.game-room.fx-motion-off :is(.fx-card-enter,.fx-seat-bet .seat-info,.fx-seat-turn .avatar,.fx-seat-win .seat-info,.fx-seat-win .avatar,.fx-win .poker-table,.fx-bet .pot){animation:none!important}
.game-room .fx-motion-off :is(.action-buttons>button,.game-tools>button,.table-utilities>.icon-button,.pre-actions>button,.bet-presets>button,.game-tools>button>svg,.table-utilities>.icon-button>svg),
.game-room.fx-motion-off :is(.action-buttons>button,.game-tools>button,.table-utilities>.icon-button,.pre-actions>button,.bet-presets>button,.game-tools>button>svg,.table-utilities>.icon-button>svg){
 transition:none!important;
 scale:none!important;
}
.game-room .fx-motion-off .card[data-suit],
.game-room.fx-motion-off .card[data-suit]{
 transition:none!important;
 translate:none!important;
 scale:none!important;
}
@media(prefers-reduced-motion:reduce){
 .game-room .fx-particle{display:none!important}
 .game-room .seat.is-winner::before,
 .game-room .seat.is-winner::after,
 .game-room :is(.seat-glow,.seat-info)::after{animation:none!important}
 .game-room :is(.action-buttons>button,.game-tools>button,.table-utilities>.icon-button,.pre-actions>button,.bet-presets>button,.game-tools>button>svg,.table-utilities>.icon-button>svg){
  transition:none!important;
  scale:none!important;
 }
 .game-room .poker-stage .card[data-suit]{
  transition:none!important;
  translate:none!important;
  scale:none!important;
 }
}

#pot-amount.fx-pot-count{position:relative;color:transparent}
#pot-amount.fx-pot-count::after{content:var(--fx-pot);position:absolute;inset:0;color:var(--text,#dedbcc);text-align:right}
@keyframes table-sheet-enter{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:no-preference){
 .degen-effects-host:not(.fx-motion-off) .community-cards:has(.card:nth-child(3):not(.card-back)):has(.card:nth-child(4).card-back)::before{content:"";position:absolute;inset:-12%;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse,#c3b57225,transparent 68%);animation:table-felt-flash 450ms cubic-bezier(.2,.8,.2,1) both}
 @media(max-width:700px){.degen-effects-host:not(.fx-motion-off) :is(#mobile-table-sheet,#mobile-bet-sheet)[open]{animation:table-sheet-enter 245ms cubic-bezier(.2,.8,.2,1)}}
}
@keyframes table-felt-flash{0%,100%{opacity:0}40%{opacity:1}}
.fx-runout .card.winning-five-card::after,.fx-runout .seat.is-winner::before,.fx-runout .seat.is-winner::after,.fx-runout .seat.is-winner>.seat-glow{visibility:hidden}
.game-room .hero-cards[data-folded=true]{filter:saturate(.45);translate:0 2px}
