/* Finite motion stays on the foreground; the baked backdrop is softened once. */
.hero-stage,.table-stage{background:none!important}
.hero-stage:before,.table-stage:before{content:'';position:absolute;inset:-4px;background:#17b7ef url('/nanduno/img/island-background.webp') center/cover no-repeat;filter:blur(2px) saturate(.83) brightness(.94);pointer-events:none;z-index:0}
.hero-stage canvas,.table-stage canvas{position:relative;z-index:1}
.avatar img,.photo-upload img{object-fit:contain;background:#173d71}
.hand .hand-card.playable{animation:legal-card-wiggle .65s ease-in-out infinite!important}
@keyframes legal-card-wiggle{0%,100%{transform:translateY(-6px) rotate(calc(var(--fan) - 1.5deg))}50%{transform:translateY(-10px) rotate(calc(var(--fan) + 1.5deg))}}
.hand-panel{right:calc(var(--safe-r) + 8px);padding-right:0;display:flex;justify-content:center;align-items:flex-end;gap:8px}
.hand-panel .hand{min-width:0;flex:0 1 auto;width:max-content;max-width:calc(100% - 96px)}
.hand-controls{position:relative!important;flex:none;right:auto!important;left:auto!important;top:auto!important;bottom:auto!important;width:86px!important;margin-bottom:10px}
.hand-controls #draw{min-height:54px;border:3px solid #fff3a3;box-shadow:0 4px #b97008,0 0 12px #fff45166}
#leaderboardOpen{font-size:12px;white-space:nowrap}
@media(max-height:520px) and (orientation:landscape){.hand-panel{left:28%;right:calc(var(--safe-r) + 8px);padding-right:0}.hand-controls{width:82px!important;margin-bottom:5px}.hand-controls #draw{min-height:46px;font-size:11px}#leaderboardOpen{font-size:10px;padding:7px}}
@media(orientation:portrait) and (max-width:760px){.hand-panel{left:var(--safe-l);right:var(--safe-r);padding-right:0}.hand-panel .hand{max-width:calc(100% - 81px)}.hand-controls{width:73px!important}#leaderboardOpen{font-size:9px;max-width:89px}}
@media(prefers-reduced-motion:reduce){.hand .hand-card.playable{animation:none!important}}
