.qr-promo {
  --qr-bg: #0a0a0c;
  --qr-gold: #c9a96b;
  --qr-gold-hi: #e4d09c;
  --qr-gold-lo: #a98a4e;
  --qr-text: #ece8df;
  --qr-muted: #bcb6aa;
  position: fixed;
  z-index: 48;
  inset-inline-start: 50%;
  inset-block-end: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  width: min(1024px, calc(100% - 44px));
  max-height: calc(100dvh - 120px);
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #786341;
  border-radius: 20px;
  background: var(--qr-bg);
  box-shadow: 0 18px 56px #0006;
  color: var(--qr-text);
  animation: qr-promo-appear 320ms ease-out both;
}

.qr-promo[hidden], .menu-open .qr-promo { display: none; }
.qr-promo-content { position: relative; z-index: 1; padding: 27px clamp(22px, 3.5vw, 43px) 30px; }
.qr-promo-brand { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; color: var(--qr-gold-hi); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.qr-promo-brand svg { flex: none; color: var(--qr-gold); }
.qr-promo-brand small { font: inherit; font-size: .78em; color: var(--qr-muted); }

.qr-promo h2 {
  margin: 0 0 10px;
  color: var(--qr-text);
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.qr-promo h2 em { color: var(--qr-gold-hi); font-weight: inherit; display: block; white-space: nowrap; }
.qr-promo-copy { max-width: 51ch; margin: 0 0 16px; color: var(--qr-muted); font-size: .93rem; line-height: 1.5; }
.qr-promo-media { display: grid; align-items: center; min-width: 0; align-self: stretch; background: var(--qr-bg); }
.qr-promo-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }

.qr-promo-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 17px;
  border-radius: 999px;
  background: linear-gradient(var(--qr-gold-hi), var(--qr-gold) 55%, var(--qr-gold-lo));
  color: #1a1409;
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.qr-promo-cta:hover { background: var(--qr-gold-hi); color: #1a1409; }
.qr-promo-close {
  position: absolute;
  z-index: 2;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c9a96b49;
  border-radius: 50%;
  background: var(--qr-bg);
  color: var(--qr-text);
  font: 400 1.4rem/1 Arial, sans-serif;
  cursor: pointer;
}

.qr-promo-close:hover { background: #231d15; border-color: var(--qr-gold); }
.qr-promo :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@keyframes qr-promo-appear {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 740px) {
  .qr-promo { grid-template-columns: minmax(0, 1fr); width: min(480px, calc(100% - 20px)); border-radius: 16px; }
  .qr-promo-media { grid-row: 1; }
  .qr-promo-media video { max-height: clamp(126px, 37vw, 172px); }
  .qr-promo-content { padding: 1px 18px 17px; }
  .qr-promo-brand { margin-bottom: 7px; }
  .qr-promo h2 { font-size: clamp(1.55rem, 6.2vw, 1.85rem); margin-bottom: 7px; }
  .qr-promo-copy { margin-bottom: 11px; font-size: .9rem; }
  .qr-promo-cta { display: flex; }
  .qr-promo-close { inset-block-start: 8px; inset-inline-end: 8px; }
}

@media (max-width: 680px) {
  .qr-promo { inset-block-end: calc(78px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 170px - env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .qr-promo { animation: none; }
}
