/* Keep the public phone frame flush through browser toolbar and route changes. */
@media (max-width: 560px) and (hover: none) and (pointer: coarse) {
  html:not(.boss-admin-entry):has(> body:not(.admin-mode)),
  html:not(.boss-admin-entry) > body:not(.admin-mode) {
    overscroll-behavior-x: none;
  }

  html:not(.boss-admin-entry) > body.aquamarine:not(.admin-mode),
  html[data-dc88-loading]:not(.boss-admin-entry) > body:not(.admin-mode) {
    --ref-width: 100vw;
  }

  html.public-ice:not(.boss-admin-entry):has(> body:not(.admin-mode)) {
    background: #aef0f8;
  }

  html.public-ice:not(.boss-admin-entry) > body:not(.admin-mode)::before {
    width: 100%;
    box-shadow: none;
  }
}

/* Ice/light banner slots stay aqua while photos load or contain transparency. */
html.native-aqua.public-light body.aquamarine.reference-lobby:not(.admin-mode) .hero.photo {
  background-color: #c8f1f6 !important;
}

html.native-aqua.public-light body.aquamarine.reference-lobby:not(.admin-mode) .hero.photo::before {
  background: none;
}

html.native-aqua.public-light body.aquamarine:not(.admin-mode) .notice-banner-main {
  background: #c8f1f6 !important;
}

/* Public header back controls use the chevron alone and keep their hit areas. */
html:not(.boss-admin-entry) body:not(.admin-mode) :is(
  .dc88-agent-invite > header > [data-agent-invite-action="close"],
  .member-account-hero .member-account-back,
  .member-page-header > #backToLobby,
  .member-personal > .personal-title > a[href="#me"],
  .member-avatar-dialog > header > [data-close],
  .portal-public > header > #portalBack,
  .portal-public > header > #portalBack .promotion-back-glyph,
  .first-deposit-dialog > header > [data-close],
  .dc101-head > .dc101-back,
  .dc88-bh-header > [data-bh-action="back"],
  .payment-deposit-page > header > .deposit-back,
  .payment-history > header > [data-close],
  .withdraw-screen.withdraw-v57 > header > [data-wd-back]
) {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* The static title announces the newly opened invitation screen. */
.dc88-agent-invite > header > #dc88-agent-invite-title:focus {
  outline: none;
}
