/* All rules scoped to this module; native modal supplies background input isolation. */
#atlas-portrait-guard {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  color: #f0f6f5;
  background: rgb(8 20 30 / 80%);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: contain;
  touch-action: none;
}
#atlas-portrait-guard[open] { display: grid; place-items: center; }
#atlas-portrait-guard::backdrop { background: rgb(6 15 23 / 35%); }
#atlas-portrait-guard .apg-brand { position: absolute; top: max(16px, env(safe-area-inset-top)); left: max(22px, env(safe-area-inset-left)); font-size: 11px; letter-spacing: .24em; color: #93cec5; }
#atlas-portrait-guard .apg-card { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 40px); width: min(100%, 740px); padding: clamp(20px, 4vh, 40px) clamp(20px, 4vw, 42px); border: 1px solid #50887f; border-radius: 24px; background: rgb(12 32 38 / 86%); box-shadow: 0 12px 45px rgb(0 0 0 / 20%); }
#atlas-portrait-guard .apg-icon { flex: 0 0 auto; width: clamp(64px, 11vw, 106px); height: clamp(64px, 11vw, 106px); color: #91e4d3; }
#atlas-portrait-guard .apg-copy { min-width: 0; padding-left: clamp(20px, 3vw, 32px); border-left: 1px solid #31534f; }
#atlas-portrait-guard p { margin: 0 0 10px; font-size: clamp(13px, 2.15vw, 21px); line-height: 1.5; word-break: keep-all; }
#atlas-portrait-guard h1 { margin: 0; color: #a2eddd; font-size: clamp(19px, 3.2vw, 31px); line-height: 1.4; font-weight: 700; letter-spacing: -.035em; word-break: keep-all; outline: none; }
#atlas-portrait-guard:lang(ja) :is(p, h1),
#atlas-portrait-guard:lang(zh) :is(p, h1) { word-break: normal; line-break: strict; }
@media (max-height: 260px) {
  #atlas-portrait-guard .apg-brand { display: none; }
  #atlas-portrait-guard .apg-card { padding-top: 12px; padding-bottom: 12px; }
}
