/* Bunker Lasertag - Spooky Season (child friendly) overlay.
   Loaded after style.css/nav.css. Remove the <link> (or re-upload normal pages) to switch off. */
:root {
  --hw-purple: #8a4dff;
  --hw-purple-soft: rgba(138, 77, 255, 0.35);
  --hw-purple-glow: rgba(138, 77, 255, 0.22);
}

/* Hero: keep content above decorations */
.hero-content, .error-hero > * { position: relative; z-index: 2; }
.hero::after {
  background:
    linear-gradient(to top, var(--bg) 0, transparent 120px),
    radial-gradient(ellipse at 50% 110%, rgba(230, 130, 0, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% -10%, var(--hw-purple-glow), transparent 55%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0.35) 40%, rgba(11, 13, 16, 0.85) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}
.hero h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 0 40px rgba(230, 130, 0, 0.3), 0 0 70px var(--hw-purple-soft);
}

/* Spooky Season badge */
.hw-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 auto 1.1rem; padding: 0.45rem 1rem;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid var(--hw-purple-soft);
  background: linear-gradient(90deg, rgba(138, 77, 255, 0.18), rgba(230, 130, 0, 0.18));
  box-shadow: 0 0 22px var(--hw-purple-glow);
  color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.08em; line-height: 1.2;
}
button.hw-badge { position: relative; z-index: 3; -webkit-appearance: none; appearance: none; cursor: pointer; text-transform: none; transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s; }
button.hw-badge:hover { border-color: rgba(230, 130, 0, 0.7); box-shadow: 0 0 28px rgba(230, 130, 0, 0.45); transform: translateY(-1px); }
button.hw-badge:focus-visible { outline: 2px solid #ffd27a; outline-offset: 3px; }
.hw-badge svg { width: 1.3em; height: 1.3em; flex: none; }
.error-hero .hw-badge { margin-bottom: 1rem; }

/* Decoration layer - never blocks clicks */
.hw-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hw-deco * { pointer-events: none; }
.hw-web { position: absolute; top: calc(var(--nav-height, 88px) - 6px); width: 150px; height: 150px; opacity: 0.45; }
.hw-web--l { left: 0; }
.hw-web--r { right: 0; transform: scaleX(-1); }
.hw-deco svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hw-bat { position: absolute; width: 86px; height: 45px; opacity: 1; filter: drop-shadow(0 0 3px rgba(255, 210, 160, 0.9)) drop-shadow(0 0 10px rgba(230, 130, 0, 0.75)) drop-shadow(0 0 18px var(--hw-purple)); animation: hw-flap 0.5s ease-in-out infinite alternate, hw-drift 9s ease-in-out infinite alternate; }
.hw-bat:nth-child(3) { top: 26%; left: 12%; }
.hw-bat:nth-child(4) { top: 34%; right: 14%; width: 66px; height: 34px; animation-delay: 0.2s, -3s; }
.hw-bat:nth-child(5) { top: 18%; left: 62%; width: 54px; height: 28px; opacity: 0.9; animation-delay: 0.1s, -6s; }
.hw-ghost { position: absolute; width: 108px; height: 130px; opacity: 0.95; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 14px rgba(190, 220, 255, 0.85)) drop-shadow(0 0 30px rgba(160, 200, 255, 0.55)); animation: hw-float 6s ease-in-out infinite alternate; }
.hw-ghost--a { bottom: 50px; left: calc(3% + 250px); }
.hw-ghost--b { bottom: 26%; right: 7%; width: 82px; height: 100px; animation-delay: -2.5s; }
.hw-pumpkin { position: absolute; bottom: 18px; width: 120px; height: 105px; filter: drop-shadow(0 0 6px rgba(255, 170, 40, 0.9)) drop-shadow(0 0 18px rgba(255, 130, 0, 0.8)) drop-shadow(0 0 36px rgba(255, 110, 0, 0.5)); }
.hw-pumpkin--l { left: 3%; }
.hw-pumpkin--r { right: 3%; width: 90px; height: 79px; }

@keyframes hw-flap { from { transform: scaleY(1); } to { transform: scaleY(0.55); } }
@keyframes hw-drift { from { translate: 0 0; } to { translate: 40px -18px; } }
.hw-candle { animation: hw-flicker 2.4s ease-in-out infinite; }
@keyframes hw-flicker { 0%, 100% { opacity: 1; } 30% { opacity: 0.82; } 45% { opacity: 0.95; } 70% { opacity: 0.86; } }
@keyframes hw-float { from { transform: translateY(0); } to { transform: translateY(-16px); } }

/* Offer popup */
.hw-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hw-modal[hidden] { display: none; }
.hw-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 4, 14, 0.78); }
.hw-modal__box { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 1.5rem 1.25rem 1.25rem; text-align: center; color: #fff;
  background: linear-gradient(180deg, #1c1430 0%, #0f0d18 100%); border: 1px solid var(--hw-purple-soft); border-radius: 18px;
  box-shadow: 0 0 40px var(--hw-purple-glow), 0 0 60px rgba(230, 130, 0, 0.18); animation: hw-pop 0.25s ease-out; }
.hw-modal__x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hw-modal__x:hover { background: rgba(255, 255, 255, 0.18); }
.hw-bunker { display: block; width: 100%; max-width: 260px; height: auto; margin: 0.25rem auto 0.75rem; filter: drop-shadow(0 0 6px rgba(255, 154, 26, 0.8)) drop-shadow(0 0 14px var(--hw-purple-soft)); }
.hw-modal__box h2 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; }
.hw-modal__text { margin: 0 0 1rem; opacity: 0.9; }
.hw-modal__code { display: inline-flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 1.4rem; margin-bottom: 1rem; border: 2px dashed var(--orange, #e68200); border-radius: 12px; background: rgba(230, 130, 0, 0.1); }
.hw-modal__label { font-size: 0.8rem; letter-spacing: 0.08em; opacity: 0.8; }
.hw-modal__value { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.12em; color: #ffd27a; user-select: all; }
.hw-modal__actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.hw-modal__btn { min-height: 44px; padding: 0.6rem 1.2rem; font: inherit; font-weight: 600; border-radius: var(--radius-pill, 999px); cursor: pointer; }
.hw-modal__copy { border: 1px solid #c9a6ff; background: rgba(138, 77, 255, 0.2); color: #fff; }
.hw-modal__copy:hover { background: rgba(138, 77, 255, 0.35); }
.hw-modal__x:focus-visible, .hw-modal__btn:focus-visible { outline: 2px solid #ffd27a; outline-offset: 3px; }
.hw-modal__status { min-height: 1.2em; margin: 0.6rem 0 0; font-size: 0.9rem; color: #ffd27a; }
html.hw-modal-open { overflow: hidden; }
@keyframes hw-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@media (max-width: 400px) { .hw-modal__actions { flex-direction: column; } .hw-modal__box h2 { font-size: 1.3rem; } }

/* Section accents */
.section-divider { box-shadow: 0 0 18px var(--hw-purple-glow); }
.detail-item h2 { text-shadow: 0 0 16px var(--hw-purple-soft); }
.legal-doc li::marker { color: var(--orange); }
footer { box-shadow: inset 0 1px 0 var(--hw-purple-soft); }

/* Tablets */
@media (min-width: 601px) and (max-width: 1000px) {
  .hw-ghost--a { width: 90px; height: 108px; bottom: 50px; left: calc(3% + 160px); }
}

/* Phones */
@media (max-width: 600px) {
  .hw-web { width: 90px; height: 90px; }
  .hw-bat:nth-child(5), .hw-ghost--b { display: none; }
  .hw-bat:nth-child(3) { width: 64px; height: 33px; top: 20%; left: 4%; }
  .hw-bat:nth-child(4) { width: 52px; height: 27px; top: 24%; right: 6%; }
  .hw-ghost--a { width: 58px; height: 70px; bottom: 4px; left: calc(2% + 140px); }
  .hw-pumpkin--l { width: 76px; height: 66px; bottom: 10px; left: 2%; }
  .hw-pumpkin--r { width: 60px; height: 53px; bottom: 10px; right: 2%; }
  .hw-badge { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-bat, .hw-ghost, .hw-candle, .hw-modal__box { animation: none !important; }
  button.hw-badge { transition: none; transform: none !important; }
}
