/* The device screens (SPEC addendum A.1): "Not available on web yet" (a phone on domaselo.app) and
   "Only available on mobile" (a computer on an invite link). Always dark like the person's invite page
   (#252525, white text, SF Pro), centred, with the Domaselo mark. Prefix .dg-. Shared by index.html and
   invite.html, so it carries its own colours instead of the site's tokens. */

html[data-device="desktop"] body > main.page { display: none; }

.dg {
  position: fixed; inset: 0; z-index: 50; overflow: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(48px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
  background: #252525; color: #FFFFFF; color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-align: center;
}
.dg[data-gate="mobile"] { justify-content: center; }
.dg-body { flex: 1 1 auto; width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.dg-mark { width: 64px; height: 64px; margin-bottom: 8px; }
.dg-title {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: 0.2px;
}
.dg-sub { margin: 0; font-size: 17px; line-height: 22px; color: rgba(235, 235, 245, 0.6); }

.dg-stores { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.dg-store {
  height: 58px; border-radius: 29px; gap: 8px; padding: 0 16px; font-size: 17px; line-height: 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; color: #FFFFFF; text-decoration: none;
  background: rgba(84, 84, 90, 0.36); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.29);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
  -webkit-user-select: none; user-select: none;
}
.dg-store:active { transform: scale(0.96); background: rgba(120, 120, 128, 0.44); }
.dg-store:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }
.dg-store svg { flex: none; width: 22px; height: 22px; }

.dg-toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 20px; font: 600 15px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: #FFFFFF; background: rgba(60, 60, 64, 0.92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dg-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .dg-store, .dg-toast { transition: none; } }
