/* Shared by every site. Each site themes the door nav with these variables. */
:root {
  --nav-bg: #111;
  --nav-fg: #fff;
  --nav-border: transparent;
  --nav-font: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; display: block; }

.door-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--nav-bg);
  color: var(--nav-fg);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  font: 600 12px/1 var(--nav-font);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.door-nav a {
  color: inherit;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
}
.door-nav a:hover, .door-nav a:focus-visible { background: color-mix(in srgb, var(--nav-fg) 18%, transparent); }

.door-nav .dn-mid { min-width: 190px; text-align: center; }

/* The buy sheet: this door's coupon, then on to Instagram. Themed with the same variables as the pill. */
.buy-sheet {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, 0.62);
  font-family: var(--nav-font);
}
.buy-card {
  position: relative; width: 100%; max-width: 420px;
  padding: 26px 22px 20px; border-radius: 18px;
  background: var(--nav-bg); color: var(--nav-fg);
  border: 1px solid var(--nav-border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  text-align: center; line-height: 1.35;
}
.buy-card p { margin: 0 0 10px; }
.bs-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.bs-code {
  display: inline-block; padding: 10px 18px; margin-bottom: 12px !important;
  border: 2px dashed currentColor; border-radius: 10px;
  font-size: 28px; font-weight: 800; letter-spacing: 0.08em;
}
.bs-price { font-size: 19px; }
.bs-price b { font-size: 26px; }
.bs-price s { opacity: 0.6; }
.bs-note { font-size: 14px; opacity: 0.85; }
.bs-msg {
  padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: left;
  background: color-mix(in srgb, var(--nav-fg) 12%, transparent);
}
.bs-go {
  display: block; width: 100%; min-height: 52px; margin: 6px 0 12px; padding: 12px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--nav-fg); color: var(--nav-bg);
  font: 800 16px/1.2 var(--nav-font);
}
.bs-hunt { color: inherit; font-size: 14px; text-underline-offset: 3px; }
.bs-close {
  position: absolute; top: 6px; right: 8px; width: 44px; height: 44px;
  border: 0; background: none; color: inherit; font-size: 26px; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
