/* Neon Poker v0.9.47 — only the explicitly requested UI corrections. */

/* Keep the password-reset entry visible in both authentication modes. */
.auth-login-extra .auth-forgot-button,
body.legacy-auth-mode .auth-login-extra .auth-forgot-button,
.auth-login-extra .auth-forgot-button.hidden {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Center the profile icon precisely inside the light-blue header field. */
.topbar-v046 .account-badge .account-avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  overflow: hidden !important;
}

/* Keep the range and all three controls visibly inside the Poker raise surface. */
#pokerApp #pokerActionControls:not(.hidden) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: 44px 56px 92px 56px !important;
  gap: 6px !important;
  align-content: start !important;
  overflow: hidden !important;
}
#pokerApp #pokerActionControls .poker-raise-control-v046 {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 22px 22px 42px !important;
  gap: 3px !important;
  width: 100% !important;
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
  margin: 0 !important;
  padding: 3px 7px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
#pokerApp #pokerActionControls .poker-raise-control-v046 > label {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
#pokerApp #pokerActionControls .poker-raise-range-v046 {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 22px !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#pokerApp #pokerActionControls .poker-raise-buttons-v046 {
  grid-column: 1 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: 42px minmax(112px, 168px) 42px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 42px !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}
#pokerApp #pokerActionControls .poker-raise-buttons-v046 > button,
#pokerApp #pokerActionControls .poker-raise-buttons-v046 #pokerRaiseButton {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  padding: 4px 7px !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
}
#pokerApp #pokerActionControls .poker-raise-step {
  font-size: 1.2rem !important;
  line-height: 1 !important;
}
#pokerApp #pokerActionControls .poker-allin {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
}

/* Match the single-player Blackjack card-entry movement. */
#pokerApp .playing-card.poker-card-enter {
  animation: pokerDealLikeSoloBlackjack 440ms cubic-bezier(.16, 1, .3, 1) both !important;
  will-change: transform, opacity, filter;
}
@keyframes pokerDealLikeSoloBlackjack {
  from {
    opacity: 0;
    transform: translate3d(108px, -78px, 0) rotateZ(7deg) scale(.9);
    filter: blur(2px) brightness(1.12);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateZ(0deg) scale(1);
    filter: blur(0) brightness(1);
  }
}

/* Single-player Blackjack round countdown is centered on the table. */
#gameApp .center-status {
  position: relative !important;
}
#gameApp .solo-round-countdown {
  position: absolute !important;
  z-index: 30 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  min-width: 150px !important;
  padding: 11px 16px !important;
  display: grid !important;
  justify-items: center !important;
  gap: 3px !important;
  border: 3px solid #071116 !important;
  border-radius: 14px !important;
  background: #7dd3fc !important;
  color: #071116 !important;
  box-shadow: 5px 5px 0 #071116 !important;
  text-align: center !important;
  pointer-events: none !important;
}
#gameApp .solo-round-countdown.hidden { display: none !important; }
#gameApp .solo-round-countdown span {
  font-size: .68rem !important;
  font-weight: 1000 !important;
  letter-spacing: .08em !important;
}
#gameApp .solo-round-countdown strong {
  font-size: 2rem !important;
  line-height: 1 !important;
}
#gameApp .status-orb.solo-countdown-hidden { visibility: hidden !important; }

@media (max-width: 760px) {
  #pokerApp #pokerActionControls:not(.hidden) {
    grid-template-rows: 42px 50px 92px 50px !important;
    gap: 6px !important;
  }
  #pokerApp #pokerActionControls .poker-raise-buttons-v046 {
    grid-template-columns: 38px minmax(100px, 1fr) 38px !important;
    gap: 6px !important;
  }
}
