/* Popup — Fullscreen Flyer (mobile-friendly) */

:root{
  --popup-z: 6000;              /* above navbar (navbar z-index ~3000) */
  --popup-backdrop: rgba(0,0,0,.65);
  --popup-close-bg: rgba(0,0,0,.65);
  --popup-close-bg-hover: rgba(0,0,0,.85);
}

.popup{
  position: fixed;
  inset: 0;
  z-index: var(--popup-z);
  display: none;              /* JS will show it when enabled */
  background: var(--popup-backdrop);
}

.popup.is-open { display: block; }

/* Center stack */
.popup-wrap{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;              /* breathing room on tiny screens */
}

/* Flyer image — never stretch, just scale down */
.popup-img{
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;       /* clicks go to the big link layer */
}

/* Make it smaller on small phones */
@media (max-width: 480px){
  .popup-img{
    max-width: 82vw;          
    max-height: 68vh;         
  }
}

/* Whole-screen link (except close btn) */
.popup-hit{
  position: absolute;
  inset: 0;
  z-index: calc(var(--popup-z) + 1);
  text-indent: -9999px;       
}

/* Close button sits on top of everything */
.popup-close{
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: calc(var(--popup-z) + 2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--popup-close-bg);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.popup-close:hover,
.popup-close:focus-visible{ background: var(--popup-close-bg-hover); }

/* Tiny tweak for very small phones */
@media (max-width: 380px){
  .popup-close{ width: 40px; height: 40px; font-size: 1.35rem; top: 10px; right: 12px; }
}

/* Popup hint bar */
.popup-hintbar{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: min(92vw, 640px);
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.6);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2147483647; /* above everything */
  font-size: 14px;
  line-height: 1.3;
}
.popup-hintbar__icon{ font-size: 18px; opacity: 0.9; }
.popup-hintbar__text{ flex: 1; }
.popup-hintbar__dismiss{
  appearance: none; border: 0; background: rgba(255,255,255,0.14);
  width: 28px; height: 28px; border-radius: 50%;
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.popup-hintbar__dismiss:focus{ outline: 2px solid #fff; outline-offset: 2px; }

/* little keyboard chip */
.kbd{
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  border-bottom-width: 2px;
  padding: 0 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.12);
}

/* gentle atten*
