/* v2.5.22: animações isoladas; não alteram posicionamento dos modais. */
@keyframes zecaPageEnter{from{opacity:.35;transform:translate3d(0,12px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes zecaSheetEnter{from{opacity:.6;transform:translate3d(0,36px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes zecaBackdropEnter{from{background-color:rgba(0,0,0,0)}to{background-color:rgba(0,0,0,.73)}}
@keyframes zecaDialogEnter{from{opacity:.4;transform:translate3d(0,18px,0) scale(.975)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
/* Transição somente no conteúdo visível, nunca no body, nav ou teclado. */
section.zeca-page-enter:not(.hidden){animation:zecaPageEnter 310ms cubic-bezier(.2,.8,.2,1) both}
.games-modal:not(.hidden){animation:zecaBackdropEnter 320ms ease-out both;backdrop-filter:none!important}
.games-modal:not(.hidden)>.games-modal-card{animation:zecaSheetEnter 380ms cubic-bezier(.18,.85,.22,1) both;transform:none;will-change:transform,opacity}
.games-modal-card{min-height:0;overscroll-behavior:contain}
.status-overlay:not(.hidden)>.status-modal,.zeca-overlay:not(.hidden)>.zeca-dialog,.calendar-overlay:not(.hidden)>.calendar-dialog{animation:zecaDialogEnter 320ms cubic-bezier(.2,.8,.2,1) both}
button:not(:disabled){-webkit-tap-highlight-color:transparent}
button:active:not(:disabled){filter:brightness(1.13)}
.games-match:active{background-color:rgba(80,220,140,.10)}
@media(prefers-reduced-motion:reduce){section.zeca-page-enter:not(.hidden),.games-modal:not(.hidden),.games-modal:not(.hidden)>.games-modal-card,.status-overlay:not(.hidden)>.status-modal,.zeca-overlay:not(.hidden)>.zeca-dialog,.calendar-overlay:not(.hidden)>.calendar-dialog{animation:none!important}}

/* v2.5.23: modal separado da seção animada, fixo na viewport.
   O painel nunca herda o transform de uma página. */
#gamesDetails.games-modal:not(.hidden){position:fixed!important;inset:0!important;z-index:5000!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;animation:none!important;transform:none!important}
#gamesDetails.games-modal:not(.hidden)>.games-modal-card{position:relative!important;flex:0 1 700px;min-height:0;max-height:min(86dvh,860px);overflow-y:auto;animation:zecaSheetEnter 380ms cubic-bezier(.18,.85,.22,1) both!important}
#gamesDetails.games-modal.hidden{display:none!important}
