/* An extra paper utility in the LAN prototype, not a new in-game HUD. */
#zineUtilities:has(.remote-pair-button) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.remote-pair-button {
  display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 13px;
  color: #f2e5cf; background: #211d24 url('../assets/nachtzine/all-assets-2026-09-13/global/xerox-ink-v2.webp') 20px 70px / 410px;
  border: 0; font: 400 18px/1 'Nachtzine Print', sans-serif; cursor: pointer;
}
.remote-pair-button[data-connected='true'] .remote-phone-icon { color: #dbef65; }
.remote-pair-button[data-quality='fallback'] [data-remote-label],
.remote-pair-button[data-quality='slow'] [data-remote-label] { text-decoration: underline; text-underline-offset: 3px; }
.remote-phone-icon { width: 13px; height: 21px; border: 2px solid currentColor; border-radius: 2px; position: relative; flex: none; }
.remote-phone-icon::after { content: ''; position: absolute; width: 3px; height: 2px; bottom: 1px; left: 3px; background: currentColor; }
.remote-pair {
  box-sizing: border-box; width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 28px);
  overflow: auto; padding: 26px 38px 24px; border: 0; color: #211d24;
  background: #f2e5cf url('../assets/nachtzine/all-assets-2026-09-13/global/paper-stock-v2.webp') center / 900px;
  box-shadow: 2px 4px 0 #211d2433, 7px 14px 30px #15111980;
  font: 400 21px/1.35 'Nachtzine Print', sans-serif; text-align: center;
}
.remote-pair::backdrop { background: #161119bd; }
.remote-pair [hidden] { display: none !important; }
.remote-pair h2 { font: 900 clamp(42px, 6vw, 56px)/1 'Nachtzine Print', sans-serif; margin: 8px 0 14px; }
.remote-pair p { margin: 10px 0; }
.remote-pair-kicker { font-size: 16px; letter-spacing: .07em; }
.remote-pair-intro { max-width: 32ch; margin-inline: auto !important; }
.remote-pair-support { max-width: 34ch; margin: 14px auto !important; padding-block: 10px; border-block: 1px solid #211d2440; font-size: 20px; }
.remote-pair-close { position: absolute; top: 5px; right: 7px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font: 400 36px/1 sans-serif; cursor: pointer; }
.remote-qr-wrap { margin: 20px auto 18px; }
.remote-qr-wrap img { display: block; width: min(240px, 100%); height: auto; margin: auto; background: white; image-rendering: pixelated; }
#remotePairStatus { font-size: 19px; min-height: 2.7em; display: grid; align-content: center; max-width: 31ch; margin-inline: auto; }
.remote-pair .remote-pair-quality { font: 400 16px/1.3 sans-serif; max-width: 40ch; margin: 8px auto 12px; }
.remote-pair-quality-detail { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; }
.remote-pair-quality-detail:empty { display: none; }
.remote-pair-quality[data-quality='fallback'] > :first-child,
.remote-pair-quality[data-quality='slow'] > :first-child { text-decoration: underline; text-underline-offset: 3px; }
.remote-pair-note { font-size: 18px; max-width: 36ch; margin-inline: auto !important; }
.remote-pair-help { margin-top: 18px; text-align: left; font-size: 18px; }
.remote-pair-help summary { cursor: pointer; padding-block: 9px; min-height: 44px; box-sizing: border-box; }
.remote-pair-help a { display: block; overflow-wrap: anywhere; color: #432467; text-underline-offset: 4px; padding-block: 8px; }
.remote-pair-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.remote-pair-done { min-height: 48px; min-width: 120px; padding: 7px 20px; border: 0; color: #211d24; background: #dbef65; font: inherit; cursor: pointer; box-shadow: 2px 3px 0 #211d2444; }
.remote-pair-renew { min-height: 44px; padding: 7px 0; border: 0; color: #211d24; background: transparent; font: inherit; font-size: 18px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.remote-pair-renew:disabled { opacity: .5; cursor: wait; }
.remote-pair button:focus-visible,.remote-pair summary:focus-visible,.remote-pair a:focus-visible,.remote-pair-button:focus-visible { outline: 3px dashed #7952b3; outline-offset: 3px; }
.remote-pair-button:focus-visible { outline-color: #f2e5cf; }
@media (max-width: 520px) { .remote-pair { padding: 30px 22px 20px; } .remote-pair-button { font-size: 16px; } }
@media (max-height: 760px) { .remote-pair h2 { font-size: 44px; } .remote-qr-wrap { margin-block: 10px; } .remote-qr-wrap img { width: 208px; } .remote-pair-help { margin-top: 8px; } }
@media (forced-colors: active) {
  .remote-pair,.remote-pair-button,.remote-pair-renew,.remote-pair-done { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .remote-qr-wrap img { forced-color-adjust: none; }
}

/* Only the heading's deposited ink receives material pressure. Never apply
   it to the dialog, QR image, its quiet zone or any interactive target. */
.remote-pair h2 {
  mask-image: var(--print-stamp-mask, none);
  mask-size: 256px 192px;
  mask-repeat: repeat;
}
@media (forced-colors: active) {
  .remote-pair h2 { mask: none; }
}
