#centre-keepsake-dialog {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: #172943;
  background: #fffdf8;
  box-shadow: 0 22px 80px rgba(18, 27, 43, .34);
}

#centre-keepsake-dialog::backdrop {
  background: rgba(15, 24, 38, .72);
  backdrop-filter: blur(4px);
}

.cks-panel { padding: 34px; text-align: center; }
.cks-kicker { margin: 0 0 8px; color: #7c1f31; font-size: 14px; font-weight: 950; letter-spacing: .14em; }
.cks-title { margin: 0; color: #7c1f31; font-size: clamp(30px, 4vw, 48px); line-height: .98; }
.cks-result { margin: 12px 0 24px; font-size: 22px; font-weight: 900; }
.cks-qr-wrap { width: min(330px, 75vw); margin: 0 auto; padding: 18px; border: 3px solid #7c1f31; border-radius: 24px; background: white; }
.cks-qr-wrap canvas { display: block; width: 100%; height: auto; }
.cks-instruction { max-width: 520px; margin: 20px auto 8px; font-size: 21px; font-weight: 850; line-height: 1.28; }
.cks-help { margin: 0 auto 22px; color: #625f58; font-size: 16px; }
.cks-close, #centre-keepsake-trigger { min-height: 54px; border: 0; border-radius: 999px; padding: 14px 24px; color: white; background: #7c1f31; font: inherit; font-weight: 950; letter-spacing: .03em; cursor: pointer; }
#centre-keepsake-trigger { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 260px; min-height: 54px; margin: 18px auto 7px; padding: 0 25px; background: #741b2b; border: 0; border-radius: 999px; box-shadow: 0 7px 0 #4f101c; color: white; font-size: 12px; font-weight: 950; line-height: 1.1; letter-spacing: .07em; text-align: center; }
#centre-keepsake-trigger[hidden] { display: none !important; }
.cks-close:focus-visible, #centre-keepsake-trigger:focus-visible { outline: 4px solid #d5ad36; outline-offset: 4px; }

html.centre-mode .share-button,
html.centre-mode .social-row,
html.centre-mode .share-row,
html.centre-mode #share { display: none !important; }
html.centre-mode .result-actions { grid-template-columns: 1fr 1fr !important; }
html.centre-mode .result-actions #centre-keepsake-trigger { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 12px 15px; border: 2px solid #741b2b; box-shadow: none; font-size: 13px; letter-spacing: .04em; }

@media (max-height: 760px) {
  .cks-panel { padding: 20px 28px; }
  .cks-title { font-size: 34px; }
  .cks-result { margin: 8px 0 12px; }
  .cks-qr-wrap { width: 220px; padding: 12px; }
  .cks-instruction { margin-top: 12px; font-size: 18px; }
  .cks-help { margin-bottom: 12px; font-size: 14px; }
}
