/* ALGORITHM_CHOICE_STAGE8_MOBILE_CLOSE_20261108
   Only the character-card modal on the mobile play page is affected.
   Raised modal prevents the site hamburger from covering the close control.
*/
body.ac-game-page .ac-card-screen:not([hidden]) {
  z-index: 2147483000 !important;
}
body.ac-game-page .ac-exit-screen:not([hidden]) {
  z-index: 2147483001 !important;
}
/* Hide the background navigation toggle while the character-card modal is open.
   The participant closes the card with the visible X and its confirmation dialog. */
body.ac-game-page:has(#ac-card-screen:not([hidden])) .site-header .menu-toggle {
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 540px) {
  body.ac-game-page .ac-gold-card {
    position: relative;
  }
  body.ac-game-page .ac-card-screen .ac-gold-card .ac-card-x {
    top: 78px !important;
    right: 12px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    z-index: 8 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
    place-items: center !important;
    touch-action: manipulation;
  }
  body.ac-game-page .ac-card-screen .ac-gold-card .ac-cream-panel {
    padding-top: 116px !important;
  }
}
