/* Larry Is Topless — fan email pop-up (pairs with popup.js) */
.lit-pop[hidden] { display: none !important; }
.lit-pop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lit-pop-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.22s ease;
}
.lit-pop-dialog {
  position: relative; width: 100%; max-width: 25rem;
  background: linear-gradient(180deg, #17120e 0%, #0d0a08 100%);
  color: var(--text, #F5E6C8);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.45), 0 0 34px rgba(255, 107, 26, 0.28), 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  outline: none;
  font-family: var(--font, system-ui, sans-serif);
}
.lit-pop-dialog::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #FF6B1A 0%, #CC5500 35%, #E8A838 70%, #FF8FB8 100%);
}
.lit-pop.is-in .lit-pop-backdrop { opacity: 1; }
.lit-pop.is-in .lit-pop-dialog { opacity: 1; transform: none; }

.lit-pop-x {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(245, 230, 200, 0.18);
  background: rgba(255, 255, 255, 0.04); color: #FFF8E7;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lit-pop-x:hover, .lit-pop-x:focus-visible { background: rgba(255, 107, 26, 0.18); border-color: #FF6B1A; }
.lit-pop-logo { display: block; width: 104px; height: auto; margin: 0 auto 0.6rem; }
.lit-pop-title {
  font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #FF8A3D 0%, #E8A838 55%, #FF8FB8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lit-pop-desc { color: var(--text-muted, #b8a88a); font-size: 0.98rem; line-height: 1.45; margin: 0 0 1rem; }
.lit-pop-form { display: grid; gap: 0.6rem; }
.lit-pop-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lit-pop-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lit-pop-form input[type="email"] {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  border-radius: 12px; border: 1px solid var(--border, #3a2a1c);
  background: #000; color: #FFF8E7; font: inherit; font-size: 16px; /* 16px = no iOS zoom */
}
.lit-pop-form input[type="email"]:focus { outline: 2px solid #FF6B1A; outline-offset: 1px; border-color: #FF6B1A; }
.lit-pop-btn {
  width: 100%; min-height: 50px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.03em;
  color: #1a0f08;
  background: linear-gradient(135deg, #FF6B1A 0%, #CC5500 42%, #E8A838 78%, #FF8FB8 100%);
  background-size: 160% 160%;
  box-shadow: 0 0 18px rgba(255, 107, 26, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background-position 0.3s ease, filter 0.18s ease, transform 0.18s ease;
}
.lit-pop-btn:hover, .lit-pop-btn:focus-visible { background-position: 100% 50%; filter: brightness(1.08) saturate(1.1); }
.lit-pop-btn:focus-visible { outline: 2px solid #FFF8E7; outline-offset: 2px; }
.lit-pop-btn:disabled { opacity: 0.7; cursor: progress; }
.lit-pop-hint { min-height: 1.2em; font-size: 0.88rem; margin: 0; }
.lit-pop-hint.err { color: var(--danger, #f87171); }
.lit-pop-hint a { color: #E8A838; }
.lit-pop-done .lit-pop-desc { margin-bottom: 1rem; }
.lit-pop-no {
  display: inline-block; margin-top: 0.35rem; min-height: 44px; padding: 0.5rem 1rem;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.9rem;
  color: var(--text-muted, #b8a88a); text-decoration: underline; text-underline-offset: 3px;
}
.lit-pop-no:hover, .lit-pop-no:focus-visible { color: #FFF8E7; }
.lit-pop-no[hidden], .lit-pop-done[hidden], .lit-pop-form[hidden] { display: none; }
html.lit-pop-open, html.lit-pop-open body { overflow: hidden; }

/* Mobile: compact bottom sheet, page still visible above it */
@media (max-width: 600px) {
  .lit-pop { align-items: flex-end; padding: 0; }
  .lit-pop-dialog {
    max-width: none; border-radius: 20px 20px 0 0;
    padding: 1.3rem 1.15rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    max-height: 78vh; max-height: 78dvh; overflow-y: auto;
    transform: translateY(40px);
  }
  .lit-pop-dialog::before { border-radius: 20px 20px 0 0; }
  .lit-pop-logo { width: 76px; margin-bottom: 0.4rem; }
  .lit-pop-title { font-size: 1.3rem; padding: 0 2.6rem; }
  .lit-pop-desc { font-size: 0.93rem; margin-bottom: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lit-pop-backdrop, .lit-pop-dialog { transition: none; }
}
