/* QR share modal (Codex copy — pairs with js/qr-share-modal.js). Carried verbatim
   from backstage/css/qr-share-modal.css so Codex owns it and no longer loads the
   backstage copy. Theme-aware (light/dark via CSS vars): backdrop blur over the
   page, a centered surface card, big title, centered QR. */

.qr-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: qr-share-fade-in 0.18s ease-out;
}

.qr-share-modal[hidden] { display: none; }

@keyframes qr-share-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qr-share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qr-share-modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: clamp(14px, 2vmin, 22px);
  padding: clamp(36px, 5.5vmin, 72px) clamp(40px, 7vmin, 96px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4.5vmin, 48px);
  max-width: min(94vw, 920px);
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden;
  animation: qr-share-card-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.18);
}

@keyframes qr-share-card-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.qr-share-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.qr-share-modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.qr-share-modal-title {
  font-size: clamp(3rem, 8vmin, 4.8rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.qr-share-modal-img {
  width: clamp(400px, 72vmin, 760px);
  height: clamp(400px, 72vmin, 760px);
  max-width: 100%;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}

.qr-share-modal-img[hidden] { display: none; }

.qr-share-modal-notice {
  max-width: clamp(280px, 60vmin, 560px);
  font-size: clamp(1rem, 2.4vmin, 1.3rem);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
  padding: 1rem 1.25rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
}
