/* A small, non-modal invitation that leaves the games usable. */
#account-invite[hidden] { display: none; }
#account-invite {
  position: fixed; z-index: 19000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box; width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px;
  border: 1px solid rgba(0, 191, 255, .4); border-radius: 18px;
  background: #0f121a; color: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  font-family: Poppins, sans-serif;
}
#account-invite h2 { margin: 0 32px 8px 0; font-size: 1.15rem; line-height: 1.3; }
#account-invite p { margin: 0 0 16px; color: #d0d6df; font-size: .9rem; line-height: 1.5; }
#account-invite button { font-family: inherit; cursor: pointer; }
#account-invite-create, #account-invite-login { border-radius: 10px; min-height: 44px; padding: 11px 15px; font-weight: 800; }
#account-invite-create { border: 1px solid #00bfff; background: #00bfff; color: #05080c; }
#account-invite-login { margin-left: 8px; border: 1px solid #73dfff; background: #162c42; color: #fff; }
#account-invite-close { position: absolute; top: 9px; right: 10px; border: 0; border-radius: 8px; width: 40px; height: 40px; background: transparent; color: white; font-size: 1.6rem; line-height: 1; }
#account-invite button:hover { filter: brightness(1.15); }
#account-invite button:focus-visible, #modal-account button:focus-visible, #modal-account input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#account-switch-button, #logout-button { background: none; border: 0; padding: 0; font: inherit; color: #00bfff; cursor: pointer; }
#modal-account { overflow-y: auto; padding: 16px; box-sizing: border-box; }
#modal-account .account-box { box-sizing: border-box; max-height: calc(100dvh - 32px); overflow-y: auto; }
#modal-account .close-modal { min-width: 44px; min-height: 44px; top: 5px; right: 5px; }
#modal-account button:disabled { opacity: .55; cursor: wait; }
