/* Guest-only navigation controls: match the player-benefits back control. */
html body .login-action-screen.login-action-screen .standalone-page-header.standalone-page-header > .standalone-back-button.standalone-back-button,
html body .login-back.login-back.login-back,
html body .guest-shell.player-action-shell .player-action-page.common-tool-action-page > .player-action-page-header > .player-action-page-back,
html body.player-support-route .player-support-portal > .common-tool-support-header > .player-action-page-back {
  position: absolute !important;
  z-index: 2 !important;
  left: 14px !important;
  top: calc(env(safe-area-inset-top) + 11px) !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #d9a52d !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 24% 31%, rgba(255, 255, 255, .82) 0 7%, transparent 17%),
    linear-gradient(rgba(255, 255, 255, .94), rgba(255, 249, 232, .95) 48%, rgba(237, 205, 135, .86)) !important;
  color: #0a2f5c !important;
  box-shadow:
    0 4px 9px rgba(120, 76, 8, .15),
    0 1px 0 rgba(255, 255, 255, .7),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -2px 4px rgba(154, 93, 5, .16) !important;
  filter: none !important;
  transform: none !important;
}

html body .login-action-screen.login-action-screen .standalone-page-header.standalone-page-header > .standalone-back-button.standalone-back-button svg,
html body .login-back.login-back.login-back svg,
html body .guest-shell.player-action-shell .player-action-page.common-tool-action-page > .player-action-page-header > .player-action-page-back svg,
html body.player-support-route .player-support-portal > .common-tool-support-header > .player-action-page-back svg {
  width: 20px !important;
  height: 20px !important;
  color: inherit !important;
  stroke: currentColor !important;
}

/* Safari otherwise stacks a blue focus outline and a gold focus shadow. */
body .login-action-screen .register-page .register-page-card
  :is(.register-id-row, .register-password-row, .register-phone-row, .register-otp-row)
  > input:focus,
body .login-action-screen .register-page .register-page-card
  :is(.register-id-row, .register-password-row, .register-phone-row, .register-otp-row)
  > input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Keep one iOS scroll owner so the page remains draggable after the keyboard closes. */
html body .login-action-screen:has(.register-page) {
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .login-action-screen:has(.register-page) > .register-page {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: pan-y !important;
}
