/* Scoped amount-page layout owner. Existing component theme remains unchanged. */
html:has(body.game-entry-standalone-open),
body.game-entry-standalone-open {
  overflow: hidden !important;
  background: #fffaf0 !important;
}

html body #root .player-shell .modal-backdrop.game-entry-standalone-owner {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fffaf0 !important;
  backdrop-filter: none !important;
}

html body #root .player-shell .modal-backdrop.game-entry-standalone-owner > .game-entry-modal {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 900px) {
  html body #root .player-shell .modal-backdrop.game-entry-standalone-owner {
    padding-left: var(--sidebar-width, 0px) !important;
  }

  html body #root .player-shell .modal-backdrop.game-entry-standalone-owner > .game-entry-modal {
    border-inline: 1px solid rgba(128, 101, 45, 0.16) !important;
  }
}
