.phone-orientation-notice[open] {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  pointer-events: auto;
  overscroll-behavior: contain;
}
.phone-orientation-notice::backdrop { background: var(--surface); }
.phone-orientation-notice h2 { box-sizing: border-box; max-width: min(100%, calc(24em + 48px)); margin: 0; padding: 16px 24px; font-size: 20px; line-height: 1.35; text-align: center; text-wrap: balance; }
.phone-orientation-notice h2::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background-color: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='30' y='10' width='26' height='43' rx='5'/%3E%3Cpath d='M40 47h6M22 45C8 40 8 23 21 17m-9-1 10 0-2 10'/%3E%3C/svg%3E") center / contain no-repeat;
}
html:has(.phone-orientation-notice[open]) { overflow: hidden; }
