/* HauntMap v1 — mobile-first, tasteful Halloween theme */
:root {
  --bg: #05080a;
  --bg2: #0e1b21;
  --card: #16232b;
  --ink: #f9e5c2;
  --muted: #94a6c0;
  --accent: #ff7b1c;
  --accent2: #57a8ff;
  --danger: #e5484d;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(1200px 600px at 50% -10%, #0f2e54 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* z176 background-fit fix (Dan, Oct 26): the old 120vmin box made the
     ghost watermark render 20% taller than a wide-but-short viewport,
     clipping its head and hem off the top and bottom. The layer now spans
     exactly the visible viewport in every engine (Chrome + Safari):
     height 100% of the fixed containing block as the fallback, then
     100dvh so mobile Safari/Chrome dynamic toolbars can never push the
     ghost off-screen (raw 100vh is taller than the visible area there).
     With background-size: contain (shorthand below) the whole ghost —
     head to hem, edge to edge — always fits, centered. */
  height: 100%;
  height: 100dvh;
  background: url('/static/img/hauntmap_ghost_watermark.webp') center/contain no-repeat;
  opacity: 0.29;
  pointer-events: none;
  z-index: -1;
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 1rem; }

.site-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0.15rem 1rem;
  /* Fully opaque: the header is sticky, so a translucent background lets
     scrolled page content bleed through and collide with the logo/nav. */
  background: #05080a;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid #274860;
  position: sticky; top: 0; z-index: 10;
  min-height: unset;
  line-height: 1.2;
}
.site-header nav {
  display: flex; gap: 0.5rem; align-items: center;
  padding-bottom: 0.4rem;
  margin-left: auto;
}
.site-header nav a {
  padding: 0.2rem 0;
}
.brand { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand-logo { height: 88px; width: 88px; max-height: 88px; max-width: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
/* Phone */
@media (max-width: 600px) {
  .brand-logo { height: 80px; width: 80px; max-height: 80px; max-width: 80px; }
  .site-header { flex-wrap: wrap; gap: 0.5rem; }
  .site-header nav { flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; }
}
/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  .brand-logo { height: 56px; width: 56px; max-height: 56px; max-width: 56px; }
}
/* Desktop */
@media (min-width: 1025px) {
  .brand-logo { height: 175px; width: 175px; max-height: 175px; max-width: 175px; }
}
.site-header nav { display: flex; gap: 0.75rem; align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.btn-upload {
  background: var(--accent); color: #1a0f00 !important; font-weight: 700;
  padding: 0.45rem 0.9rem; border-radius: 999px; white-space: nowrap;
}

.site-footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2rem 1rem; }

/* feed */
.feed-controls { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.feed-top-row { display: flex; gap: 0.5rem; align-items: center; }
.search-inline { flex: 1; margin: 0; }
.town-search-inline {
  width: 100%; box-sizing: border-box;
  background: var(--bg2); color: var(--ink); border: 1px solid #274860;
  border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.9rem;
}
.town-search-inline::placeholder { color: var(--muted); }
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.cat-tabs a { flex: 0 1 160px; text-align: center; padding: 0.6rem; border-radius: 12px; background: var(--bg2); color: var(--muted); text-decoration: none; font-weight: 700; font-size: 1rem; border: 1px solid #274860; }
.cat-tabs a.active { background: var(--accent); color: #1a0f00; border-color: var(--accent); }
.sort-toggle { display: flex; background: var(--bg2); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.sort-toggle a { padding: 0.4rem 0.9rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
.sort-toggle a.active { background: var(--accent); color: #1a0f00; font-weight: 700; }
.town-filter select {
  background: var(--bg2); color: var(--ink); border: 1px solid #274860;
  border-radius: 10px; padding: 0.5rem; font-size: 0.95rem; max-width: 45vw;
}
.nearby-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.nearby-form input[type="text"] {
  flex: 1; min-width: 140px; background: var(--bg2); color: var(--ink);
  border: 1px solid #274860; border-radius: 10px; padding: 0.55rem 0.7rem; font-size: 0.95rem;
}
.nearby-form select {
  background: var(--bg2); color: var(--ink); border: 1px solid #274860;
  border-radius: 10px; padding: 0.5rem; font-size: 0.95rem;
}
.nearby-count { color: var(--muted); margin: 0.5rem 0 1rem; }
.tag-checks { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin-top: 0.3rem; }
.tag-checks label { display: flex; align-items: center; gap: 0.3rem; font-weight: normal; font-size: 0.9rem; }
.town-filter { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.town-search {
  background: var(--bg2); color: var(--ink); border: 1px solid #274860;
  border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.95rem; width: 130px;
}
.town-search-full { width: 100%; box-sizing: border-box; }
.filter-row { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; padding-bottom: 0.2rem; }
.filter-row select {
  background: var(--bg2); color: var(--ink); border: 1px solid #274860;
  border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.85rem; flex: 1 1 160px; min-width: 0;
}
.filter-row .town-search { flex: 1 1 160px; min-width: 0; width: auto; }
.filter-chip {
  background: var(--bg2); color: var(--muted); border: 1px solid #274860;
  border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.85rem;
  text-decoration: none; text-align: center; flex: 0 1 160px; min-width: 0;
  white-space: nowrap;
}
.filter-chip.active { color: var(--ink); border-color: var(--accent); background: #101e24; }
.book-banner {
  margin-top: 1rem; display: flex; justify-content: center;
}
.book-link {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg2); border: 1px solid #274860; border-radius: 10px;
  padding: 0.5rem 0.8rem; text-decoration: none; color: var(--ink);
  max-width: 280px;
}
.book-link:hover { border-color: #4f94c4; }
.book-cover-img {
  width: 28px; height: auto; border-radius: 3px; flex-shrink: 0;
}
.book-info { display: flex; flex-direction: column; gap: 0.1rem; }
.book-label { font-size: 0.7rem; color: var(--muted); }
.book-title { font-size: 0.85rem; color: var(--ink); }
.book-info h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.book-title { margin: 0 0 0.2rem; font-size: 1.1rem; }
.book-desc { color: var(--muted); margin: 0 0 0.6rem; font-size: 0.9rem; }
.book-btn { display: inline-block; text-decoration: none; }

.newsletter-box {
  background: var(--bg2); border: 1px solid #274860; border-radius: 12px;
  padding: 1.2rem; margin-top: 2rem; text-align: center;
}
.newsletter-box h3 { margin: 0 0 0.3rem; }
.newsletter-box p { color: var(--muted); margin: 0 0 0.8rem; font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  background: var(--bg); color: var(--ink); border: 1px solid #274860;
  border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.95rem;
}
.newsletter-success { color: #7ee787; font-weight: 700; }
.newsletter-error { color: #ff7b72; font-size: 0.85rem; }

.signup-strip {
  background: linear-gradient(135deg, #182630 0%, #33284e 100%);
  border: 1px solid #402f54; border-radius: 12px;
  padding: 0.5rem 0.75rem; margin: 0.6rem auto; text-align: center;
  max-width: 480px;
}
.signup-strip h3 { margin: 0 0 0.2rem; font-size: 0.9rem; color: #f9e5c2; }
.signup-strip p { color: #a9cdf5; margin: 0 0 0.4rem; font-size: 0.78rem; line-height: 1.35; }
.signup-strip .newsletter-form input { background: rgba(0,0,0,0.25); }
.signup-strip-slim { padding: 0.8rem 1rem; margin: 1rem 0; }
/* /tour only (Dan, Oct 27): center the "Don't miss a stop" catcher in the
   page column — .signup-strip-slim zeroes the horizontal auto margins the
   base .signup-strip relies on, so restore them for this instance only. */
.tour-catcher-center { margin-left: auto; margin-right: auto; }

.footer-social { margin-top: 0.6rem; }
.social-btn {
  display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid #402f54;
  color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.social-btn:hover { border-color: #57a8ff; }
.tiktok-strip { text-align: center; margin: 1.75rem 0; display: flex; justify-content: center; }
.tiktok-follow { display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.tiktok-follow img { width: 30px; height: 30px; }
.tiktok-follow .tt-handle { color: #ff7518; }
.tiktok-follow:hover { opacity: 0.85; }

/* ---- DIY page ---- */
.diy-section-title { color: #f9e5c2; margin: 2.4rem 0 0.2rem; }
.diy-section-title a { color: #ff7518; }
.diy-section-sub { color: #a9cdf5; margin: 0 0 0.4rem; }
.diy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.diy-card { background: rgba(255,255,255,0.03); border: 1px solid #274860; border-radius: 12px; padding: 1rem; }
.diy-card h3 { margin: 0 0 0.2rem; color: #f9e5c2; }
.diy-creator { color: #ff7518; font-weight: 600; margin: 0 0 0.4rem; font-size: 0.9rem; }
.diy-blurb { color: #a9cdf5; font-size: 0.92rem; line-height: 1.45; margin: 0 0 0.6rem; }
.diy-embed { display: flex; justify-content: center; }
.diy-embed iframe { width: 100%; max-width: 340px; height: 600px; border: 0; border-radius: 10px; background: #000; }
.diy-watch { text-align: center; margin: 0.5rem 0 0; font-size: 0.9rem; }

/* ---- DIY Costumes page ---- */
.costume-card { padding-top: 0.85rem; }
/* Creator photos arrive only via platform embeds (Dan, Oct 22 rework):
   Pinterest's pinit.js replaces the .pin-embed-link anchor with the real
   pin (photo served by Pinterest); until it loads — or if it can't — the
   anchor is a styled, tappable fallback link straight to the pin. */
.pin-slot { display: flex; justify-content: center; margin: 0 0 0.35rem; min-height: 84px; }
.pin-slot > span, .pin-slot iframe { max-width: 100%; }
.pin-fallback { display: block; border: 1px dashed rgba(143,216,255,0.55); border-radius: 8px; padding: 1.1rem 0.8rem; color: #8fd8ff; font-size: 0.9rem; font-weight: 600; text-align: center; line-height: 1.45; }
.pin-embed-link { text-decoration: none; }
.pin-embed-link:hover .pin-fallback { border-color: #ff7518; color: #ffb27a; }
.costume-media-note { color: #a9cdf5; font-size: 0.78rem; text-align: center; margin: 0 0 0.55rem; }
.costume-card .yt-facade { margin: 0 0 0.35rem; }
.costume-meta { margin: 0 0 0.45rem; }
.costume-chip { display: inline-block; background: rgba(255,117,24,0.14); border: 1px solid rgba(255,117,24,0.45); color: #ffb27a; border-radius: 999px; padding: 0.08rem 0.55rem; font-size: 0.78rem; font-weight: 600; margin-right: 0.3rem; }
.costume-materials { color: #e6defa; font-size: 0.88rem; line-height: 1.45; margin: 0 0 0.5rem; }
.costume-credits { margin: 2.2rem 0 0.5rem; padding: 0.9rem 1rem; border: 1px dashed #274860; border-radius: 12px; color: #a9cdf5; font-size: 0.9rem; line-height: 1.5; }
.costume-credits a { color: #ff7518; }
.costume-crosslink { margin-top: 1.6rem; }

/* ---- Sponsor banners (homepage) ---- */
.sponsor-section { margin: 0.8rem 0; text-align: center; }
.sponsor-section h2 { font-size: 0.85rem; margin: 0 0 0.15rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.sponsor-sub { display: none; }
.sponsor-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  max-width: 980px; margin: 0 auto;
}
.sponsor-card {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 0.4rem 0.7rem; text-decoration: none; color: var(--ink);
  font-size: 0.85rem; transition: border-color .15s ease;
  max-width: 100%;
}
.sponsor-card:hover { border-color: #57a8ff; }
.sponsor-logo {
  width: 48px !important; height: 72px !important;
  max-width: 48px !important; max-height: 72px !important;
  object-fit: contain; flex-shrink: 0; border-radius: 4px;
}
.sponsor-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.sponsor-name { font-size: 1.05rem; }
.sponsor-text { color: var(--muted); font-size: 0.85rem; }
.sponsor-tier {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #e6b16d; font-weight: 700;
}
.sponsor-card.tier-title { flex: 0 1 660px; margin: 0 auto; flex-direction: column; text-align: center; gap: 1.1rem; padding: 2.6rem 2rem; border-color: #e6b16d; border-width: 2px; box-sizing: border-box; justify-content: center; }
.sponsor-card.tier-title .sponsor-logo { width: 300px !important; height: 300px !important; max-width: 300px !important; max-height: 300px !important; }
.sponsor-card.tier-title .sponsor-name { font-size: 2.6rem; }
.sponsor-card.tier-title .sponsor-text { font-size: 1.35rem; }
.sponsor-card.tier-premium { border-color: #57a8ff; }
.sponsor-cta { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }
.sponsor-cta a { color: var(--accent); }

/* ---- Sponsor admin rows ---- */
.sponsor-admin-row { align-items: center; }
.sponsor-admin-logo {
  width: 48px; height: 48px; object-fit: contain; flex-shrink: 0;
  border-radius: 8px; background: #fff; padding: 3px;
}
.sponsor-admin-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }

.tips-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #274860; }
.tips-section h3 { margin: 0 0 1rem; }
.tips-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.2rem; }
.tip { background: var(--bg2); border-radius: 10px; padding: 0.8rem 1rem; }
.tip-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
.tip p { margin: 0; }
.tip-form { display: flex; flex-direction: column; gap: 0.5rem; }
.tip-form input, .tip-form textarea {
  background: var(--bg2); color: var(--ink); border: 1px solid #274860;
  border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.95rem; font-family: inherit;
}
.tip-form button { align-self: flex-start; }
.cat-tabs-main { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.state-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.state-tabs-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1rem 0; }
.state-btn {
  flex: 0 1 160px; text-align: center; padding: 0.5rem; border-radius: 10px;
  background: var(--bg2); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
}
.state-btn.active { border-color: var(--accent); background: #101e24; }
.state-btn .state-count { background: #14222b; color: #ffd98a; border-radius: 999px; padding: 0.02rem 0.5rem; font-size: 0.8em; font-weight: 700; margin-left: 0.3rem; white-space: nowrap; }
/* "Browse by town" link under the homepage state buttons (Dan Oct 23):
   /towns had no path from the homepage nav — this centered pill is it. */
.browse-towns-row { display: flex; justify-content: center; margin: 0.25rem 0 1.25rem; }
.browse-towns-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.55rem 1.4rem; border-radius: 999px;
  background: var(--bg2); color: var(--muted); border: 1px solid #274860;
  font-weight: 600; font-size: 1rem; text-decoration: none;
}
.browse-towns-link:hover, .browse-towns-link:focus { color: var(--accent); border-color: var(--accent); }
.cat-btn-main {
  flex: 0 1 160px; text-align: center; padding: 0.7rem; border-radius: 12px;
  background: var(--bg2); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; border: 2px solid transparent;
}
.cat-btn-main.active { border-color: var(--accent); background: #101e24; }
.cat-tabs-sub { display: flex; gap: 0.35rem; align-items: stretch; flex-wrap: wrap; justify-content: center; margin-bottom: 0.8rem; padding-bottom: 0.2rem; }
.cat-sub-label { font-size: 0.8rem; color: var(--muted); flex: 0 0 auto; align-self: center; }
.cat-btn-sub {
  padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.8rem; flex: 0 1 160px; text-align: center;
  background: var(--bg2); color: var(--muted); text-decoration: none;
  border: 1px solid #274860;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.cat-btn-sub.active { color: var(--ink); border-color: var(--accent); }
/* Laptop/desktop only (Dan 2026-10-23): Tour fuel buttons go two over two —
   Coffee & Cafes / Restaurhaunts on line one, Shops / Parks on line two.
   Capping the row at the label + two 160px chips makes Shops wrap down next
   to Parks; the capped row stays centered like the category rows above it.
   Phone (<=480px) is deliberately untouched: its media query below still
   gives the label its own line and 2-across chips, exactly as before. */
@media (min-width: 481px) {
  .cat-tabs-sub { max-width: 30rem; margin-left: auto; margin-right: auto; }
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  /* Phone portrait: main/state button rows go exactly 5 per line, wrapping down, centered */
  .state-btn, .cat-btn-main, .cat-tabs a { flex-basis: calc(20% - 0.5rem); }
  /* Tour-fuel chips: 2 per row — wide enough for single-line labels and,
     with the row's stretch alignment, one uniform height for all four */
  .cat-btn-sub { flex: 1 1 calc(50% - 0.35rem); }
  .cat-sub-label { flex-basis: 100%; text-align: center; }
  /* Filter controls: 2 per row at ~half width so every label stays fully
     readable (the old 5-across squeeze truncated them to "All s…", "Ty…") */
  .filter-row select, .filter-row .town-search, .filter-row .filter-chip { flex: 0 1 calc(50% - 0.4rem); }
}
/* Phone (Dan Oct 23): homepage state filter buttons go compact — name stacked
   over the count pill at ~half the old height, 4 across at 390px. Long names
   still fit: worst single word ("Massachusetts") measures ~79px at this size
   vs ~79px of text room per button. Desktop rendering unchanged. */
@media (max-width: 760px) {
  .state-tabs-bottom { gap: 0.25rem; }
  .state-tabs-bottom .state-btn {
    flex: 1 1 calc(25% - 0.25rem); max-width: calc(25% - 0.25rem); min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.12rem; padding: 0.3rem 0.1rem; border-radius: 8px;
    font-size: 0.7rem; line-height: 1.15; letter-spacing: -0.02em;
  }
  .state-tabs-bottom .state-btn .state-count {
    margin-left: 0; font-size: 0.85em; padding: 0.02rem 0.4rem; line-height: 1.3;
  }
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); border: 1px solid #274860;
  display: block;
}
.card-media { position: relative; aspect-ratio: 4/3; background: #05080a; }
.card-media-empty { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-badge {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px;
  background: rgba(0,0,0,0.55); border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.sample-badge {
  position: absolute; top: 8px; left: 8px; background: var(--accent2);
  color: #0b151a; font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.card-body { padding: 0.7rem 0.85rem; }
.card-body h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.votes { margin: 0.35rem 0 0; font-weight: 700; color: var(--accent); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-emoji { font-size: 3rem; margin: 0; }

/* forms & buttons */
.form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.form input[type="text"], .form input[type="password"], .form input[type="file"],
.form input[type="url"], .form select {
  display: block; width: 100%; margin-top: 0.35rem;
  background: var(--bg2); border: 1px solid #274860; color: var(--ink);
  border-radius: 10px; padding: 0.65rem; font-size: 1rem;
}
.form small { color: var(--muted); font-weight: 400; }
.req { color: var(--accent); } .opt { color: var(--muted); font-weight: 400; }
.btn {
  display: inline-block; background: var(--bg2); color: var(--ink);
  border: 1px solid #402f54; border-radius: 999px; padding: 0.55rem 1.2rem;
  font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn-big { background: var(--accent); color: #1a0f00; font-weight: 800; border: none; width: 100%; padding: 0.85rem; font-size: 1.1rem; }
.btn-voted { background: #1d2b33; color: var(--muted); cursor: default; }
.btn-small { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.alert { background: #3d1620; border: 1px solid var(--danger); border-radius: 10px; padding: 0.8rem; margin-bottom: 1rem; }
.lede { color: var(--muted); }
#map { height: 260px; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid #274860; z-index: 0; }
.detail-map { height: 220px; border-radius: var(--radius); margin: 1rem 0; border: 1px solid #274860; z-index: 0; }

/* detail */
.detail-media { border-radius: var(--radius); overflow: hidden; position: relative; background: #05080a; }
/* TikTok facade (detail + watch): pin thumbnail + play button until tapped */
.tt-facade { position: relative; cursor: pointer; }
.tt-facade-blank { height: 340px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: radial-gradient(600px 300px at 50% 0%, #0f2e54 0%, #05080a 70%); }
.tt-play {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px;
  background: rgba(0,0,0,0.62); border: 2px solid rgba(255,255,255,0.85); border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  pointer-events: none;
}
.tt-facade-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.6rem 0.55rem;
  text-align: center; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,0.7)); pointer-events: none;
}
/* Pin chains + rails (detail page loop) */
.next-haunt { display: block; text-align: center; margin: 0.9rem 0 0.2rem; text-decoration: none; }
.next-haunt-sub { display: block; font-size: 0.85rem; font-weight: 600; opacity: 0.85; margin-top: 0.15rem; }
.rail-section { margin: 1.5rem 0 0.2rem; }
.rail-section h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.rail { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.rail-card { flex: 0 0 218px; scroll-snap-align: start; }
.chain-nav { display: flex; justify-content: space-between; gap: 0.7rem; margin: 1.2rem 0 0.4rem; }
/* Engagement next-steps (staged Oct 22): prominent neighbour block + tour
   builder CTA, Haunt or Not card, town-request capture */
.engage-next { margin: 1.3rem 0 0.4rem; padding: 1rem; background: linear-gradient(160deg, #14222b, #0e1a20); border: 1px solid #402f54; border-radius: 14px; }
.engage-next h2 { font-size: 1.2rem; margin: 0 0 0.7rem; }
.btn-tour-build { margin-top: 0.7rem; cursor: pointer; }
.tour-build-note { color: #a9cdf5; font-size: 0.82rem; text-align: center; margin: 0.45rem 0 0; }
.hon-card { display: flex; gap: 0.9rem; align-items: center; margin: 1.2rem 0; padding: 0.9rem 1rem; background: linear-gradient(135deg, #182630, #33284e); border: 1px solid #402f54; border-radius: 14px; }
.hon-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.hon-body h2 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.hon-body p { color: #a9cdf5; font-size: 0.88rem; line-height: 1.4; margin: 0 0 0.6rem; }
.town-request { max-width: 560px; margin: 1.2rem auto; text-align: left; padding: 1rem 1.1rem; }
.town-request h3 { font-size: 1.15rem; text-align: center; }
.town-request p { font-size: 0.9rem; text-align: center; }
.town-request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; }
.town-request-form input { background: rgba(0,0,0,0.25); border: 1px solid #402f54; border-radius: 8px; padding: 0.55rem 0.7rem; color: #e8e6e3; width: 100%; box-sizing: border-box; }
.town-request-form input[name="email"] { grid-column: 1 / -1; }
.town-request-form .btn { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #ff7b72; font-weight: 600; }
/* Text-alerts capture (SMS — staged Oct 22, capture-first) */
.text-alerts { max-width: 560px; margin: 1.2rem auto; text-align: left; padding: 1rem 1.1rem; }
.text-alerts h3 { font-size: 1.15rem; text-align: center; }
.text-alerts p { font-size: 0.9rem; text-align: center; }
.text-alerts-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; align-items: center; }
.text-alerts-form input[type="tel"] { grid-column: 1 / -1; }
.text-alerts-form input, .text-alerts-form select { background: rgba(0,0,0,0.25); border: 1px solid #402f54; border-radius: 8px; padding: 0.55rem 0.7rem; color: #e8e6e3; width: 100%; box-sizing: border-box; }
.text-alerts-form .btn { grid-column: 1 / -1; }
.text-alerts-form .ta-radius { color: #a9cdf5; font-size: 0.82rem; display: flex; flex-direction: column; gap: 0.25rem; }
.text-alerts-form .ta-check { display: flex; gap: 0.4rem; align-items: center; color: #e8e6e3; font-size: 0.9rem; }
.text-alerts-form .ta-check input { width: auto; }
.text-alerts .ta-consent { font-size: 0.72rem; color: #a9cdf5; margin-top: 0.6rem; line-height: 1.4; }
@media (max-width: 560px) {
  .text-alerts-form { grid-template-columns: 1fr; }
}
.town-map-strip { max-width: 560px; margin: 1.4rem auto; }
@media (max-width: 560px) {
  .hon-card { flex-direction: column; text-align: center; }
  .hon-card img { width: 100%; height: 150px; }
  .town-request-form { grid-template-columns: 1fr; }
}
/* Watch feed: vertical snap-scroll of footage pins */
.watch-sub { color: var(--muted); }
.watch-feed { display: grid; gap: 1.1rem; }
.watch-slide {
  background: var(--card); border: 1px solid #274860; border-radius: var(--radius);
  overflow: hidden; scroll-snap-align: start;
}
.watch-slide .tt-facade img { width: 100%; display: block; max-height: 62vh; object-fit: contain; background: #05080a; }
.watch-slide video { width: 100%; display: block; max-height: 62vh; background: #05080a; }
.watch-meta { padding: 0.7rem 0.9rem 0.95rem; }
.watch-meta h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.watch-meta h2 a { color: var(--ink); text-decoration: none; }
.watch-actions { margin: 0.55rem 0 0; }
.detail-media img, .detail-media video { width: 100%; display: block; max-height: 70vh; object-fit: contain; background: #05080a; }
.votes-big { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.detail-actions { margin: 1rem 0; }
.detail-foot { display: flex; gap: 1rem; align-items: center; margin-top: 1.25rem; flex-wrap: wrap; }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.95rem; padding: 0; text-decoration: underline; }
.linklike.danger { color: var(--danger); }
.inline-form { display: inline; }
.muted { color: var(--muted); }

/* leaderboard */
.leader-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.7rem; }
.leader-list li a {
  display: flex; gap: 0.8rem; align-items: center; background: var(--card);
  border: 1px solid #274860; border-radius: var(--radius); padding: 0.6rem;
  text-decoration: none; color: var(--ink);
}
.leader-list img, .leader-list video { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #05080a; }
.leader-info { display: flex; flex-direction: column; gap: 0.1rem; }
.leader-info strong { font-size: 0.98rem; }

/* Top 100 Nationwide laptop type boost (Dan, Oct 27): the ranked list
   is the working text of /leaderboard/top-100, and at 0.98rem titles /
   0.85rem meta it read small on laptop. On desktop widths the whole
   page steps up a clear notch — scoped to the page's .t100 wrapper so
   the shared .leader-list on Top Haunts and Top 10 by State keeps its
   current sizes, and phone rendering is untouched. */
@media (min-width: 900px) {
  .t100 p.muted { font-size: 1.2rem; line-height: 1.7; }
  .t100 .cat-tabs a { font-size: 1.26rem; padding: 0.75rem 0.5rem; flex-basis: 210px; }
  .t100 .leader-list { gap: 0.9rem; }
  .t100 .leader-list li a { padding: 0.9rem; gap: 1rem; }
  .t100 .leader-list img, .t100 .leader-list video { width: 120px; height: 92px; }
  .t100 .leader-info { gap: 0.28rem; }
  .t100 .leader-info strong { font-size: 1.3rem; line-height: 1.32; }
  .t100 .leader-list .meta { font-size: 1.1rem; line-height: 1.5; }
  .t100 .leader-list .votes { font-size: 1.15rem; }
  .t100 .leader-list .tour-add-btn { font-size: 1.16rem; padding: 0.55rem 1.1rem; }
  .t100 .leader-list .featured-badge { font-size: 0.92rem; padding: 0.22rem 0.7rem; }
  .t100 .leader-list .sample-badge { font-size: 0.9rem; }
  .t100 .states-cta a { font-size: 1.28rem; line-height: 1.6; padding: 1.15rem 1.25rem; }
}

/* Top 10 by State */
.featured-badge {
  align-self: flex-start; margin-top: 0.3rem; background: var(--accent);
  color: #1a0f00; font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.states-cta { margin: 0 0 2rem; }
.states-cta a {
  display: block; background: var(--card); border: 1px solid #274860;
  border-radius: var(--radius); padding: 0.9rem 1rem; color: var(--ink);
  text-decoration: none;
}
.states-cta a:hover { border-color: var(--accent); }
.state-jump a { flex: 0 1 auto; padding: 0.35rem 0.7rem; font-size: 0.85rem; border-radius: 999px; }
.state-top10 { margin-bottom: 2.2rem; scroll-margin-top: 90px; }
.state-top10 h2 { margin-bottom: 0.15rem; }
.state-meta { margin: 0 0 0.8rem; }
.metro-eyebrow {
  margin: 0 0 0.2rem; color: var(--accent); font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Top 10 by State — homepage block (Dan, Oct 23): the visitor's own
   state's Top 10, in the hero above Trending (laptop hero copy) with
   a below-band twin on phone; generic states-cta when state unknown. */
.top10-home {
  margin: 1.2rem 0 0.4rem; padding: 1rem;
  background: linear-gradient(160deg, #14222b, #0e1a20);
  border: 1px solid #402f54; border-radius: 14px;
}
.top10-home h2 { font-size: 1.25rem; margin: 0 0 0.3rem; }
.top10-home-sub { color: #a9cdf5; margin: 0 0 0.7rem; }
.top10-home .states-cta { margin: 0; }
.top10-home-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.35rem; }
.top10-home-list a {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid #274860;
  border-radius: 10px; padding: 0.45rem 0.6rem;
}
.top10-home-list a:hover { border-color: var(--accent); }
.t10-rank { font-weight: 800; color: var(--accent); }
.t10-title {
  font-weight: 700; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.t10-meta { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.top10-home-list .featured-badge { margin-top: 0; flex: 0 0 auto; }
.top10-home-more { font-weight: 700; }

/* Auto Tour — homepage block: "Build my tour for me" entry point.
   Same panel treatment as .top10-home, with the blue glow (accent2)
   the theme uses for interactive highlights. Seat (Dan, Oct 27 —
   order update): inside .hero-intro directly under the find block,
   one copy for both viewports (see the z181 exception that keeps
   it visible at >=761px). */
.auto-tour-home {
  margin: 1.2rem 0 0.4rem; padding: 1rem;
  background: linear-gradient(160deg, #14222b, #0e1a20);
  border: 1px solid #402f54; border-radius: 14px;
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.28);
}
.auto-tour-home h2 { font-size: 1.25rem; margin: 0 0 0.3rem; }
.auto-tour-sub { color: #a9cdf5; margin: 0 0 0.7rem; }
.auto-tour-btns { display: grid; gap: 0.5rem; }
.auto-tour-btn {
  display: flex; flex-direction: column; gap: 0.1rem;
  color: var(--ink); text-decoration: none;
  background: rgba(87, 168, 255, 0.10); border: 1px solid var(--accent2);
  border-radius: 10px; padding: 0.55rem 0.7rem;
}
.auto-tour-btn:hover { background: rgba(87, 168, 255, 0.20); }
.auto-tour-btn-title { font-weight: 800; }
.auto-tour-btn-sub { color: var(--muted); font-size: 0.82rem; }

/* ============ z103: TOP 10 PHONE SEAT (Dan, Oct 23 ~21:33) ====
   Dan: "Put the top ten by state under the my tik tok videos above
   the follow us on tik tok view on the phone." The phone copy moves
   out of the below-band cluster into .hero-split as its own grid
   area, between "video" (.tt-featured) and "strip"
   (.tt-follow-vert); the three stacked grid-template-areas lists
   below carry the new "top10home" row. Grid gap spaces it, so the
   block's below-band margin goes. The copy is display:none at
   >=761px (z67 rule), so the laptop grid never sees it and the
   in-hero copy + laptop layout are untouched. */
.hero-split > .top10-home { grid-area: top10home; margin: 0; }

/* admin */
.admin-list { display: grid; gap: 0.6rem; margin-bottom: 2rem; }
.admin-row {
  background: var(--card); border: 1px solid #274860; border-radius: 10px;
  padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.4rem;
}
.admin-row a { color: var(--ink); }
.admin-actions { display: flex; gap: 0.5rem; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; color: var(--accent2); margin-top: 1.75rem; }

.hero-intro {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.hero-intro h1 {
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  font-weight: 800;
}
.hero-intro h1.hero-title {
  font-family: "Creepster", cursive;
  font-size: clamp(1.8rem, 6.75vw, 2.85rem);
  font-weight: 400;
  color: #ff7518;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-shadow: 3px 3px 0 #1d0b26;
  margin: 0 0 1.5rem;
}
.hero-intro p {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  line-height: 1.6;
}
.hero-intro p:last-child {
  margin-bottom: 0;
}

.entry-address {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.35rem 0 0;
}

.directions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.btn-dir {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-dir:hover { background: var(--hover); }

/* Floating spooky side decorations */
.spooky-side {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.spooky-left { left: 0; }
.spooky-right { right: 0; }
.spooky-side span {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.35;
  animation: float-spooky 6s ease-in-out infinite;
}
.spooky-side span:nth-child(1) { top: 15%; animation-delay: 0s; }
.spooky-side span:nth-child(2) { top: 35%; animation-delay: 1.5s; }
.spooky-side span:nth-child(3) { top: 55%; animation-delay: 3s; }
.spooky-side span:nth-child(4) { top: 75%; animation-delay: 4.5s; }
.spooky-side span:nth-child(5) { top: 90%; animation-delay: 2s; }
@keyframes float-spooky {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@media (max-width: 820px) {
  .spooky-side { display: none; }
}

.hook-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-style: italic;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0;
  padding-top: 0;
  margin-top: 0;
  align-self: center;
}
.header-center nav {
  margin-left: 0;
  justify-content: space-between;
  width: 100%;
}
.header-hook {
  font-size: clamp(1.02rem, 1.8vw, 1.4rem);
  font-weight: 700;
  font-style: italic;
  color: #f9e5c2;
  margin: 0 0 1rem;
  text-align: left;
  line-height: 1.28;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  width: 100%;
  padding-left: clamp(1.5rem, 7vw, 6rem);
}
@media (max-width: 600px) {
  .header-hook {
    font-size: 0.8rem;
    margin: 0 0 0.4rem;
    text-align: center;
    line-height: 1.3;
  }
  .header-center {
    align-items: center;
    width: 100%;
  }
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-header nav {
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
    padding-bottom: 0.2rem;
  }
}

.btn-live {
  display: inline-block;
  background: #ff2d55;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Haunt or Not */
.duel-score { font-weight: 700; }
.duel-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: stretch; margin: 1.25rem 0 0.5rem; }
.duel-card { background: #161c24; border: 2px solid #2a3442; border-radius: 12px; padding: 0; cursor: pointer; color: #e8e6e3; display: flex; flex-direction: column; overflow: hidden; text-align: left; transition: border-color .15s, transform .15s; }
.duel-card:hover { border-color: #ff7518; transform: translateY(-2px); }
.duel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #000; }
.duel-card.duel-win { border-color: #8fd8ff; box-shadow: 0 0 18px rgba(126,184,255,.35); }
.duel-title { font-weight: 800; font-size: 1.05rem; padding: 0.6rem 0.8rem 0.1rem; }
.duel-town { color: #9a97a3; padding: 0 0.8rem 0.7rem; font-size: 0.9rem; }
.duel-vs { align-self: center; font-weight: 900; font-size: 1.4rem; color: #8fd8ff; background: #161c24; border: 2px solid #57a8ff; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 14px rgba(87, 168, 255, 0.45); }
.duel-hint { text-align: center; color: #9a97a3; font-size: 0.9rem; }
.duel-leaders li { margin: 0.4rem 0; }
.duel-leader-town { color: #9a97a3; }
.duel-leader-stat { color: #8fd8ff; font-weight: 700; margin-left: 0.4rem; }
.duel-empty { color: #9a97a3; }
@media (max-width: 640px) {
  .duel-vs { width: 40px; height: 40px; font-size: 1.05rem; }
  .duel-title { font-size: 0.92rem; }
}

/* Scare-O-Meter */
.scare-meter { background: #161c24; border: 1px solid #2a3442; border-radius: 12px; padding: 1rem 1.1rem; margin: 1.25rem 0; }
.scare-meter h2 { margin: 0 0 0.8rem; font-size: 1.15rem; }
.scare-row { display: flex; align-items: center; gap: 0.6rem; margin: 0.35rem 0; }
.scare-row form { margin: 0; }
.scare-btn { background: #1d2632; color: #e8e6e3; border: 1px solid #2a3442; border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; font-size: 0.92rem; min-width: 158px; text-align: left; }
.scare-btn:hover { border-color: #ff7518; }
.scare-btn.scare-picked { border-color: #8fd8ff; background: rgba(126,184,255,.12); font-weight: 700; }
.scare-bar { flex: 1; height: 10px; background: #0b0f14; border-radius: 999px; overflow: hidden; }
.scare-fill { height: 100%; background: linear-gradient(90deg, #8fd8ff, #ffb02e, #ff5252); border-radius: 999px; }
.scare-n { min-width: 2ch; text-align: right; color: #9a97a3; font-size: 0.9rem; }
.scare-total { color: #9a97a3; font-size: 0.9rem; margin: 0.6rem 0 0; }
@media (max-width: 640px) { .scare-btn { min-width: 128px; font-size: 0.85rem; } }

/* Games hub */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.game-card { background: #161c24; border: 1px solid #2a3442; border-radius: 12px; padding: 1.1rem 1.2rem; color: #e8e6e3; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
a.game-card:hover { border-color: #ff7518; transform: translateY(-2px); }
.game-card h3 { margin: 0.4rem 0; font-size: 1.2rem; }
.game-card p { color: #c9c4d4; line-height: 1.45; margin: 0 0 0.7rem; }
.game-emoji { font-size: 2rem; }
.game-play { color: #ff7518; font-weight: 800; }
.game-soon { opacity: 0.75; }
.game-soon .game-play { color: #9a97a3; }

/* Portal catalog (Dan, Oct 26) — GameDistribution partner games on
   the /games hub, below our own games. Click-to-load facades keep the
   hub fast: cover art only until Play is tapped. Blue-glow theme to
   match the rebrand; the frame keeps each game's native aspect ratio
   (portrait titles like Knife Hit get a tall, centered stage instead
   of a stretched one), capped so no single game eats the page. */
.portal-head { margin-top: 2.2rem; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0 1rem; }
.portal-card { background: #161c24; border: 1px solid #2a3442; border-radius: 12px; padding: 1rem 1.1rem 1.1rem; color: #e8e6e3; }
.portal-card h3 { margin: 0.7rem 0 0.4rem; font-size: 1.15rem; }
.portal-card p { color: #c9c4d4; line-height: 1.45; margin: 0 0 0.6rem; }
.portal-tag { color: #8fd8ff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.portal-frame { position: relative; width: min(100%, calc(430px * var(--pw) / var(--ph))); aspect-ratio: var(--pw) / var(--ph); margin: 0 auto; background: #000; border: 1px solid #2a3442; border-radius: 10px; overflow: hidden; }
.portal-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.portal-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.45)); }
.portal-playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: rgba(10, 22, 40, 0.82); border: 2px solid #57a8ff; box-shadow: 0 0 18px rgba(87, 168, 255, 0.55); color: #eaf6ff; font-size: 1.35rem; line-height: 54px; text-align: center; padding-left: 4px; }
.portal-facade:hover .portal-playbtn, .portal-facade:focus-visible .portal-playbtn { background: rgba(23, 58, 102, 0.92); box-shadow: 0 0 26px rgba(87, 168, 255, 0.85); }
.portal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.portal-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #57a8ff; background: rgba(10, 22, 40, 0.88); color: #eaf6ff; font-size: 1rem; line-height: 1; cursor: pointer; }
/* Fullscreen for games (Dan, Oct 27) — one ⛶ chip for every in-site
   playable game, styled as the portal ✕'s twin and parked just left of
   it on the frame. The frame CONTAINER goes fullscreen (helper:
   static/js/game_fullscreen.js) so chip + game scale together; in
   fullscreen the frame sheds its capped inline size and fills the
   screen — GamePix titles letterbox inside their own player, so the
   game keeps its native aspect. Exiting restores the card layout. */
.game-fs-btn { position: absolute; top: 6px; right: 46px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #57a8ff; background: rgba(10, 22, 40, 0.88); color: #eaf6ff; font-size: 1.05rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.game-fs-btn:hover { background: rgba(23, 58, 102, 0.92); }
@media (pointer: coarse) {
  .game-fs-btn { width: 44px; height: 44px; right: 56px; font-size: 1.2rem; }
}
.portal-frame:fullscreen, .portal-frame:-webkit-full-screen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; background: #000; }
.portal-card.is-playing { border-color: #57a8ff; box-shadow: 0 0 18px rgba(87, 168, 255, 0.28); }
.portal-note { color: #9a97a3; font-size: 0.9rem; margin: 0 0 2rem; }

/* Daily Trivia */
.trivia-box { background: #161c24; border: 1px solid #2a3442; border-radius: 12px; padding: 1.2rem 1.3rem; max-width: 640px; margin: 1rem auto; }
.trivia-progress { display: flex; justify-content: space-between; color: #9a97a3; font-size: 0.92rem; margin-bottom: 0.6rem; }
.trivia-q { margin: 0.2rem 0 1rem; font-size: 1.35rem; line-height: 1.35; }
.trivia-options { display: grid; gap: 0.6rem; }
.trivia-opt { background: #1d2632; color: #e8e6e3; border: 1px solid #2a3442; border-radius: 10px; padding: 0.8rem 1rem; font-size: 1.05rem; text-align: left; cursor: pointer; }
.trivia-opt:hover:not(:disabled) { border-color: #ff7518; }
.trivia-opt.trivia-right { border-color: #8fd8ff; background: rgba(126,184,255,.15); font-weight: 700; }
.trivia-opt.trivia-wrong { border-color: #ff5252; background: rgba(255,82,82,.12); }
.trivia-done { text-align: center; max-width: 640px; margin: 1rem auto; background: #161c24; border: 1px solid #2a3442; border-radius: 12px; padding: 1.6rem 1.3rem; }
.trivia-score { font-size: 2rem; font-weight: 900; margin: 0 0 0.4rem; }
.trivia-verdict { font-size: 1.15rem; color: #f19d45; margin: 0 0 1.1rem; }
.trivia-again { color: #9a97a3; }
.trivia-streak { color: #ff7518; font-weight: 800; font-size: 1.1rem; }

/* Header nav — a clean strip on the bottom line of the purple banner */
.site-header { flex-wrap: wrap; }
.header-center { align-self: center; }
.header-nav { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between; align-items: center; margin-top: 0.55rem; padding: 0.5rem 0.2rem 0.15rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.header-nav a { color: #e8e6e3; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.header-nav a:hover { color: #ff7518; }

/* Fun spooky picture at the right end of the purple header */
.header-spooky { height: 118px; width: 168px; object-fit: cover; border-radius: 12px; border: 2px solid #e6b16d; align-self: center; flex: 0 0 auto; }
@media (max-width: 700px) { .header-spooky { display: none; } }

/* (The old .mobile-search block is gone — Oct 23: it merged with
   the locate panel into the combined .hm-find block under the hero
   headline; its simple-bar styles live on as .hm-find-form below.) */
.town-search { padding: 0.45rem 0.6rem; border-radius: 8px; border: 1px solid #402f54; background: #0e1a20; color: #e8e6e3; font-size: 0.95rem; min-width: 170px; }
.votes-new { color: #ffd98a; font-weight: 700; }
.votes-first { color: #94a6c0; font-style: italic; }
@media (max-width: 760px) {
  .hero-intro h1.hero-title { font-size: 1.2rem; margin-bottom: 0.4rem; }
  /* Span the header's full content width: in the column header layout the
     nav otherwise shrink-wraps to its widest row and overflows the edge,
     clipping "+ Add yours". */
  .header-nav { flex-wrap: wrap; justify-content: center; align-self: stretch; width: 100%; max-width: 100%; gap: 0.45rem 0.9rem; }
  .header-nav a { white-space: nowrap; font-size: 0.97rem; }
}

/* Moment-of-interest email prompt */
#hm-prompt { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 2000; width: min(430px, calc(100vw - 2rem)); background: linear-gradient(160deg, #14222b, #0e1a20); border: 2px solid #e6b16d; border-radius: 14px; padding: 1rem 1.1rem 0.9rem; box-shadow: 0 12px 40px rgba(0,0,0,0.55); }
#hm-prompt .hm-prompt-text { margin: 0 1.4rem 0.6rem 0; font-weight: 700; color: #f9e5c2; line-height: 1.4; }
#hm-prompt .hm-prompt-form { display: flex; gap: 0.5rem; }
#hm-prompt .hm-prompt-form input { flex: 1; padding: 0.55rem 0.7rem; border-radius: 8px; border: 1px solid #402f54; background: #0d0a1a; color: #e8e6e3; }
#hm-prompt .hm-prompt-form button { background: #ff7518; color: #14101f; font-weight: 800; border: none; border-radius: 8px; padding: 0.55rem 0.9rem; cursor: pointer; }
#hm-prompt .hm-prompt-x { position: absolute; top: 0.35rem; right: 0.55rem; background: none; border: none; color: #94a6c0; font-size: 1.25rem; cursor: pointer; }
#hm-prompt .hm-prompt-done { color: #8fd8ff; font-weight: 700; margin: 0.2rem 0; }

/* Add Yours invite popup (Dan, Oct 24 — STAGED for preview). Centered
   card on laptop, bottom sheet on phone. z-index 1500 sits BELOW
   #hm-prompt (2000) on purpose: the JS also waits #hm-prompt out, so
   the two never stack, and if both ever fired the email prompt wins. */
#hm-addyours { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
#hm-addyours[hidden] { display: none; }
.hm-addyours-backdrop { position: absolute; inset: 0; background: rgba(8, 4, 18, 0.68); opacity: 0; transition: opacity 0.22s ease; }
#hm-addyours.open .hm-addyours-backdrop { opacity: 1; }
.hm-addyours-card { position: relative; width: min(440px, 100%); background: linear-gradient(160deg, #402f54, #0e1a20); border: 2px solid #ff7518; border-radius: 18px; padding: 1.7rem 1.5rem 1.25rem; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.22s ease, transform 0.22s ease; }
#hm-addyours.open .hm-addyours-card { opacity: 1; transform: none; }
.hm-addyours-x { position: absolute; top: 0.3rem; right: 0.45rem; width: 2.4rem; height: 2.4rem; background: none; border: none; color: #94a6c0; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.hm-addyours-x:hover, .hm-addyours-x:focus-visible { color: #f9e5c2; }
.hm-addyours-title { font-family: "Creepster", cursive; font-weight: 400; font-size: 1.95rem; letter-spacing: 0.02em; line-height: 1.15; color: #f9e5c2; margin: 0 1.4rem 0.55rem; }
.hm-addyours-text { color: var(--muted); margin: 0 0 1.15rem; line-height: 1.45; }
.hm-addyours-cta { display: block; background: #ff7518; color: #0a1e24; font-weight: 800; font-size: 1.05rem; padding: 0.8rem 1rem; border-radius: 10px; text-decoration: none; }
.hm-addyours-cta:hover, .hm-addyours-cta:focus-visible { background: #ff8c3a; }
.hm-addyours-later { display: block; margin: 0.65rem auto 0; padding: 0.35rem 0.8rem; background: none; border: none; color: #94a6c0; font-size: 0.92rem; cursor: pointer; text-decoration: underline; }
.hm-addyours-later:hover, .hm-addyours-later:focus-visible { color: #f9e5c2; }
@media (max-width: 760px) {
  #hm-addyours { align-items: flex-end; padding: 0; }
  .hm-addyours-card { width: 100%; border-radius: 18px 18px 0 0; border-bottom: none; padding: 1.5rem 1.2rem calc(1.15rem + env(safe-area-inset-bottom)); transform: translateY(26px); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-addyours-backdrop, .hm-addyours-card { transition: none; }
  .hm-addyours-card { transform: none; }
}
.check-label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.95rem; }

/* ---- Homepage TikTok promo (replaces email signup strip) ---- */
.tiktok-promo { text-align: center; }
.tiktok-promo .tiktok-follow { margin-top: 0.4rem; }
.tiktok-follow-big { font-size: 1.55rem; }
.tiktok-follow-big img { width: 46px; height: 46px; }
.tiktok-line { color: #a9cdf5; font-size: 0.95rem; margin: 0.55rem 0 0.2rem; }

/* ---- Collection loop: "You've seen X of Y in [Town]" ---- */
.seen-strip { margin: 0.7rem 0; }
.seen-text { color: #a9cdf5; font-size: 0.85rem; margin: 0 0 0.3rem; }
.seen-bar { height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; max-width: 340px; }
.seen-fill { height: 100%; background: #ff7518; border-radius: 3px; }

/* ---- Image nav buttons (header): themed image, word underneath ---- */
.header-nav a.navbtn { display: inline-flex; flex-direction: column; align-items: center; gap: 0.22rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.header-nav a.navbtn img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201, 168, 106, 0.55); }
.header-nav a.navbtn:hover img { border-color: #ff7518; }
@media (max-width: 760px) {
  .header-nav a.navbtn { font-size: 0.62rem; gap: 0.15rem; }
  .header-nav a.navbtn img { width: 40px; height: 40px; }
}

/* ---- Tonight's Display (homepage daily hook) ---- */
.tonight-card { display: flex; gap: 0.9rem; align-items: center; background: linear-gradient(160deg, #14222b, #0e1a20); border: 2px solid #e6b16d; border-radius: 14px; padding: 0.7rem 0.9rem; margin: 1rem 0; text-decoration: none; }
.tonight-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.tonight-body { display: flex; flex-direction: column; gap: 0.15rem; }
.tonight-kicker { color: #ff7518; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; }
.tonight-title { color: #f9e5c2; font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.tonight-meta { color: #a9cdf5; font-size: 0.85rem; }

/* (The in-hero compact Tonight's card rules that lived here were retired
   in z43 when Tonight's Display moved back out of the hero panel into its
   own band — see the z43 section at the end of this file.) */

/* Apple-style header type (Dan, Oct 21): SF on Apple devices, Inter elsewhere;
   clean, upright, tight and strong — marketing-grade header text. */
.site-header {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.header-hook {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.06;
}
.header-nav a.navbtn {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.02em;
}

/* Creepy hero backdrop + visible intro on all screens (Dan, Oct 21) */
.hero-intro {
  background: linear-gradient(rgba(5, 8, 10, 0.66), rgba(5, 8, 10, 0.86)), url('/static/img/hero_creepy2.jpg') center 38% / cover no-repeat;
  border: 1px solid rgba(255, 117, 24, 0.25);
  border-radius: 18px;
  max-width: 780px;
  padding: 2rem 1.4rem 1.6rem;
  margin: 0.6rem auto 1rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

/* Mobile nav: clean 4-over-4 grid (Dan, Oct 21 — was wrapping 6+2).
   Higher-specificity selector on purpose: beats the base flex rule outright. */
@media (max-width: 760px) {
  .site-header .header-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    row-gap: 0.55rem;
  }
}

/* Hero backdrop visibility (Dan, Oct 21): scene across the top of the block,
   fading to near-solid so paragraphs stay readable; the old cover+heavy
   overlay buried the scene on tall phone cards. */
.hero-intro {
  background: linear-gradient(rgba(5, 8, 10, 0.42), rgba(5, 8, 10, 0.94) 62%), url('/static/img/hero_creepy2.jpg') center top / 100% auto no-repeat, #0b0614;
}

/* Hero backdrop: image repeats behind ALL paragraphs, whole block (Dan, Oct 21) */
.hero-intro {
  background: linear-gradient(rgba(5, 8, 10, 0.60), rgba(5, 8, 10, 0.74)), url('/static/img/hero_creepy2.jpg') center top / 100% auto repeat-y, #0b0614;
}

/* Landscape phones: no ghost photo in the header (Dan, Oct 21) */
@media (orientation: landscape) and (max-height: 500px) {
  .header-spooky { display: none; }
}

/* Hero backdrop: four unique scenes stacked behind the four paragraphs (Dan, Oct 21) */
.hero-intro {
  background: linear-gradient(rgba(5, 8, 10, 0.60), rgba(5, 8, 10, 0.74)), url('/static/img/hero_backdrop_tall.webp') center top / 100% 100% no-repeat, #0b0614;
}

/* Header hook: Fredoka (Dan, Oct 21 — Apple stack read as a plain Shaker
   mission statement); sentences flow as one tight paragraph, no <br> gap. */
.header-hook {
  font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Sponsor BILLBOARD (Dan, Oct 21): white panel, black frame, black
   Apple-style type — the sponsor slot should look like a billboard. */
.sponsor-section {
  background: #ffffff;
  border: 3px solid #0a0a0a;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  padding: 1.9rem 1.4rem 1.5rem;
  margin: 1.1rem 0;
  color: #111111;
}
.sponsor-section h2 { color: #111111; font-size: 0.95rem; letter-spacing: 0.14em; }
.sponsor-sub { display: block; color: #555960; font-size: 1rem; margin: 0.2rem 0 1.1rem; }
.sponsor-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  color: #111111;
  box-shadow: none;
}
.sponsor-card:hover { border-color: #111111; }
.sponsor-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  color: #111111;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.sponsor-text { color: #33373d; }
.sponsor-tier { color: #6e7278; border-color: #d9d9de; }
.sponsor-card.tier-title { border: none; background: #ffffff; }
.sponsor-card.tier-title .sponsor-name { font-size: clamp(2.3rem, 7vw, 3.3rem); line-height: 1.04; }
.sponsor-card.tier-title .sponsor-text { font-size: 1.3rem; color: #33373d; }
.sponsor-cta { color: #111111; }
.sponsor-cta a { color: #111111; font-weight: 700; text-decoration: underline; }

/* Header tagline sign-off (Dan's pick, Oct 21) */
.header-tagline {
  font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-weight: 600;
  color: #ff7518;
  letter-spacing: 0.05em;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  margin: 0.15rem 0 0.9rem;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .header-tagline { text-align: center; margin-bottom: 0.5rem; }
}

/* Header goes full ad campaign (Dan, Oct 21): hook bigger + bolder;
   tagline closes the header under the nav, orange and loud. */
.header-hook { font-size: clamp(1.3rem, 2.6vw, 1.95rem); font-weight: 700; }
.header-tagline {
  flex: 1 1 100%;
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 700;
  margin: 0.55rem 0 0.2rem;
}
@media (max-width: 600px) {
  .header-hook { font-size: 1.06rem; }
  .header-tagline { font-size: 1.02rem; }
}

/* Header in Nosifer — bloody drips, blood red (Dan, Oct 21) */
.header-hook {
  font-family: "Nosifer", "Creepster", cursive;
  font-weight: 400;
  color: #e01e26;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-shadow: 0 3px 0 rgba(43, 18, 4, 0.55), 0 6px 18px rgba(0, 0, 0, 0.6);
}
.header-tagline {
  font-family: "Nosifer", "Creepster", cursive;
  font-weight: 400;
  color: #e01e26;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(43, 18, 4, 0.55), 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Header type sized down so the whole header banner fits up top (Dan, Oct 21) */
.header-hook { font-size: clamp(1.02rem, 1.9vw, 1.45rem); }
.header-tagline { font-size: clamp(0.82rem, 1.5vw, 1.05rem); }
@media (max-width: 600px) {
  .header-hook { font-size: 0.74rem; line-height: 1.3; }
  .header-tagline { font-size: 0.68rem; }
}

/* Split the header colors (Dan, Oct 21): hook in neon slime green,
   tagline stays blood red — slime + blood, no purple clash. */
.header-hook {
  color: #39ff14;
  text-shadow: 0 3px 0 rgba(0, 62, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.6);
}
.header-tagline { color: #e01e26; }

/* Dan's pick (Oct 21): hook in Rubik Wet Paint — wet slime green;
   tagline stays Nosifer blood red. */
.header-hook { font-family: "Rubik Wet Paint", "Nosifer", cursive; }

/* Dan's double pick (Oct 21): billboard goes Lavender Mist; header hook
   becomes Creepster in a deeper slime green (neon was too much). */
.sponsor-section { background: #e9e4ff; }
.sponsor-card { background: #f4f1ff; }
.sponsor-card.tier-title { background: #f4f1ff; }
.header-hook {
  font-family: "Creepster", cursive;
  color: #66cc00;
  text-shadow: 0 3px 0 rgba(20, 51, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Tagline bigger (Dan, Oct 21) */
.header-tagline { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
@media (max-width: 600px) {
  .header-tagline { font-size: 0.95rem; }
}

/* Billboard background: Pumpkin Orange (Dan, Oct 21 — supersedes lavender) */
.sponsor-section { background: #ff7518; }
.sponsor-card { background: #ff9a44; border-color: rgba(0, 0, 0, 0.25); }
.sponsor-card.tier-title { background: #ff9a44; }
.sponsor-sub { color: #402e00; }
.sponsor-tier { color: #4a3400; border-color: rgba(0, 0, 0, 0.3); }

/* Header hook color: Bone Cream (Dan, Oct 21 — same Creepster slime font) */
.header-hook {
  color: #efe3cc;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Sponsor billboard 20% smaller (Dan, Oct 21) */
.sponsor-section { padding: 1.5rem 1.1rem 1.2rem; }
.sponsor-section h2 { font-size: 0.8rem; }
.sponsor-sub { font-size: 0.85rem; margin-bottom: 0.9rem; }
.sponsor-card.tier-title { padding: 2.1rem 1.6rem; gap: 0.9rem; }
.sponsor-card.tier-title .sponsor-logo { width: 240px !important; height: 240px !important; max-width: 240px !important; max-height: 240px !important; }
.sponsor-card.tier-title .sponsor-name { font-size: clamp(1.85rem, 5.6vw, 2.65rem); }
.sponsor-card.tier-title .sponsor-text { font-size: 1.05rem; }

/* Header type back UP (Dan, Oct 21 — the compact pass overshot) */
.header-hook { font-size: clamp(1.28rem, 2.4vw, 1.8rem); }
.header-tagline { font-size: clamp(1.55rem, 3vw, 2.05rem); }
@media (max-width: 600px) {
  .header-hook { font-size: 0.94rem; }
  .header-tagline { font-size: 1.12rem; }
}

/* Hook matches the tagline size (Dan, Oct 21) */
.header-hook { font-size: clamp(1.55rem, 3vw, 2.05rem); }
@media (max-width: 600px) {
  .header-hook { font-size: 1.12rem; }
}

/* Howling wolf at the end of the header (Dan, Oct 21) */
.header-wolf {
  height: 2.3em;
  width: auto;
  vertical-align: -0.62em;
  margin-left: 0.35rem;
}

/* Wolf sizing guard (explicit box so he can never balloon) */
.header-wolf { height: 1.9em; width: 1.9em; object-fit: contain; vertical-align: -0.45em; }

/* Wolf bigger (Dan, Oct 21) */
.header-wolf { height: 2.9em; width: 2.9em; vertical-align: -0.85em; }

/* Header cleanup (Dan, Oct 21): tight hook lines; wolf floats at the
   hook's end so he can't stretch the paragraph. */
.header-hook { line-height: 1.15; position: relative; }
.header-center { position: relative; }
.header-wolf {
  position: absolute;
  right: 0.3rem;
  bottom: -0.4rem;
  height: 2.9em;
  width: 2.9em;
}
@media (max-width: 600px) {
  .header-wolf { right: 0.1rem; bottom: -0.55rem; }
}

/* Frankenstein at the end of the tagline (Dan, Oct 21) */
.header-frank {
  height: 2.5em;
  width: auto;
  vertical-align: -0.72em;
  margin-left: 0.3rem;
}

/* Hook formatted into 3 clean lines on mobile; wolf in-flow at the end
   of line 3, same size, no longer covering words (Dan, Oct 21) */
.header-wolf {
  position: static;
  height: 2.9em;
  width: 2.9em;
  vertical-align: -0.85em;
  margin: -1.15em 0 -1.25em 0.3rem;
}
@media (max-width: 760px) {
  .hook-line { display: block; }
}

/* Header goes LIGHT: lavender band (Dan, Oct 21). Hook + nav labels flip
   to deep purple for contrast; red tagline unchanged. */
.site-header { background: linear-gradient(180deg, #f0eaff 0%, #e4f5e9 100%); }
.header-hook { color: #33284e; text-shadow: none; }
.site-header .navbtn span { color: #33284e; }

/* Revert the lavender band (Dan clarified: he meant FONT colors).
   Dark header restored; hook = bone cream, nav labels = lavender,
   tagline stays blood red. */
.site-header { background: linear-gradient(180deg, #0a1e24, #0a1418); }
.header-hook { color: #efe3cc; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 6px 18px rgba(0, 0, 0, 0.6); }
.site-header .navbtn span { color: #cdeedd; }

/* Hero title off orange (Dan): bone cream + lavender */
.hero-intro h1.hero-title { color: #efe3cc; }
.hero-title-alt { color: #8fd8ff; }

/* Hook two-tone (Dan): closing line in lavender, rest bone cream */
.hook-line.alt { color: #8fd8ff; }

/* Hook split flipped (Dan): lavender leads, bone cream closes */
.header-hook { color: #8fd8ff; }
.hook-line.alt { color: #efe3cc; }

/* DESKTOP HEADER RESTORE (Dan): small and clean like before — compact logo,
   no ghosts/wolf/Frank clutter, tight rows. Phone untouched. */
@media (min-width: 761px) {
  .site-header { padding: 0.45rem 1.25rem 0.5rem; row-gap: 0.3rem; }
  .brand-logo { height: 92px; width: 92px; max-height: 92px; max-width: 92px; }
  .header-spooky { display: none; }
  .header-wolf { height: 2.1em; margin: -0.55em 0 -0.55em 0.1em; }
  .header-frank { height: 2em; }
  .header-center { padding-left: 0; text-align: center; }
  .header-hook { font-size: 1.18rem; line-height: 1.25; }
  .header-nav { gap: 0.55rem; }
  .navbtn img { width: 52px; height: 52px; }
  .navbtn span { font-size: 0.66rem; }
  .header-tagline { font-size: 1.45rem; margin-top: 0.1rem; }
}

/* FORCED hook colors (Dan): the .hook-line spans carry their own color rule
   (var(--accent) orange) that beat every parent color all day — set them directly. */
.hook-line { color: #8fd8ff; font-size: inherit; }
.hook-line.alt { color: #efe3cc; }

/* Header larger + spanning (Dan), closer in red */
.hook-line.alt { color: #e01e26; }
@media (min-width: 761px) {
  .site-header { padding: 0.6rem 2rem 0.7rem; }
  .brand-logo { height: 120px; width: 120px; max-height: 120px; max-width: 120px; }
  .header-hook { font-size: 1.6rem; text-align: center; }
  .header-nav { justify-content: space-between; width: 100%; }
  .navbtn img { width: 60px; height: 60px; }
  .navbtn span { font-size: 0.72rem; }
  .header-tagline { font-size: 1.75rem; }
  .header-wolf { height: 2em; }
}

/* Hook truly spans the header on desktop (Dan) */
@media (min-width: 761px) {
  .header-hook { font-size: clamp(2rem, 3.4vw, 3.2rem); padding-left: 0; letter-spacing: 0.01em; }
}

/* Tagline font: Nosifer drip scrapped -> Creepster, same as the headline (Dan) */
.header-tagline { font-family: "Creepster", cursive; letter-spacing: 0.02em; }

/* Tagline three-color rhythm like the header (Dan): lavender / bone cream / red */
.header-tagline .tag-a { color: #8fd8ff; }
.header-tagline .tag-b { color: #efe3cc; }
.header-tagline .tag-c { color: #e01e26; }

/* "THE" matches "NEW HAUNTS DAILY!!!" lavender (Dan) */
.header-tagline .tag-b { color: #8fd8ff; }
/* Phone: wolf stays glued to "BUILD YOUR NIGHT." on the same line (Dan screenshot) */
@media (max-width: 760px) {
  .hook-line.alt { white-space: nowrap; }
  .header-wolf { height: 1.8em; width: 1.8em; vertical-align: -0.35em; margin: 0 0 0 0.15em; }
}

/* Phone: headline wider, fills the banner (Dan) */
@media (max-width: 760px) {
  .header-hook { font-size: 1.38rem; }
}

/* Homepage featured TikTok (Dan): the 40-hours brand video above the follow strip */
.tt-featured { width: min(300px, 84vw, calc(56svh * 0.5625)); margin: 1.4rem auto 0.2rem; }
.tt-featured .tt-facade + .tt-facade { margin-top: 0.9rem; }
.tt-featured-title { text-align: center; font-family: "Creepster", cursive; font-weight: 400; color: #efe3cc; letter-spacing: 0.03em; margin: 0 0 0.6rem; }
.tt-featured .tt-facade { border-radius: 14px; overflow: hidden; border: 2px solid #402f54; }
.tt-featured .tt-facade img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.tt-featured .tt-play { width: 64px; height: 64px; font-size: 1.45rem; }

/* ============ z97: RAIL EMBED SCALE BOX (Dan, Oct 23) ============
   A played homepage promo embed keeps TikTok's native 325px stage
   inside .tt-scalebox-inner (see hmLoadTikTok / hmTtFitRail in
   base.html); the box takes the rail column's width and clips while
   JS scales the stage to fit and tracks its height. The player is
   never cropped and the rail never widens. The blockquote's 578px
   min-height is the v1 player's exact height at 325 wide and a
   floor for the v0 embed until TikTok's own height message lands,
   so the box never collapses mid-load. */
.tt-scalebox { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #000; }
.tt-scalebox-inner { width: 325px; transform-origin: 0 0; }
.tt-scalebox .tiktok-embed { margin: 0; min-height: 578px; }
.tt-featured .tt-facade + .tt-scalebox,
.tt-featured .tt-scalebox + .tt-facade { margin-top: 0.9rem; }

/* Phone header compaction (Dan, Oct 21): the banner was eating half the phone
   screen — shrink every stacked piece on small screens only. Desktop untouched. */
@media (max-width: 760px) {
  .site-header { padding: 0.45rem 0.9rem 0.35rem; gap: 0.3rem; }
  .brand-logo { height: 60px; width: 60px; max-height: 60px; max-width: 60px; }
  .header-hook { font-size: 1.05rem; line-height: 1.2; margin: 0 0 0.3rem; }
  .header-wolf { height: 1.7em; width: 1.7em; }
  .site-header .header-nav { row-gap: 0.4rem; margin-top: 0.3rem; padding-top: 0.35rem; }
  .header-nav a.navbtn img { width: 40px; height: 40px; }
  .header-nav a.navbtn { font-size: 0.6rem; gap: 0.12rem; }
  .header-tagline { font-size: 0.9rem; margin: 0.35rem 0 0.1rem; }
}

/* Embedded TikTok players (Watch + pin pages): cap the player width so the
   whole player fits a phone screen instead of TikTok's full-size embed. */
.watch-slide .tiktok-embed, .detail-media .tiktok-embed { max-width: 340px; margin-left: auto; margin-right: auto; }

/* Phone banner strip (Dan, Oct 21): logo BESIDE the headline instead of stacked
   on top of it — same art, words and colors, roughly half the height.
   Laptop/desktop header is untouched by this block. */
@media (max-width: 760px) {
  .site-header { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0.4rem 0.8rem 0.3rem; }
  .brand { order: 1; flex: 0 0 auto; }
  .brand-logo { height: 54px; width: 54px; max-height: 54px; max-width: 54px; }
  .header-center { order: 2; flex: 1 1 0; min-width: 0; align-self: center; }
  .header-hook { font-size: 0.92rem; line-height: 1.18; text-align: left; margin: 0; padding-left: 0.45rem; }
  .header-wolf { height: 1.55em; width: 1.55em; }
  .site-header .header-nav { order: 3; flex: 1 1 100%; row-gap: 0.35rem; margin-top: 0.35rem; padding-top: 0.35rem; }
  .header-nav a.navbtn img { width: 38px; height: 38px; }
  .header-nav a.navbtn { font-size: 0.58rem; }
  .header-tagline { order: 4; flex: 1 1 100%; font-size: 0.85rem; margin: 0.3rem 0 0.05rem; }
  .header-frank { height: 24px; }
}

/* Landscape phones (Dan, Oct 21): width crosses into desktop header rules on a
   ~390px-tall screen and the banner eats the page. Force one slim row instead:
   logo + headline + nav in a single line, tagline hidden in this view only. */
@media (orientation: landscape) and (max-height: 500px) {
  .site-header { flex-direction: row; flex-wrap: nowrap; align-items: center; padding: 0.25rem 0.8rem; gap: 0.6rem; position: static; }
  .brand-logo { height: 40px; width: 40px; max-height: 40px; max-width: 40px; }
  .header-center { flex: 1 1 auto; min-width: 0; }
  .header-hook { font-size: 0.78rem; line-height: 1.15; text-align: left; margin: 0; padding-left: 0; }
  .header-wolf { height: 1.4em; width: 1.4em; }
  .site-header .header-nav { display: flex; flex-wrap: nowrap; flex: 0 0 auto; gap: 0.55rem; margin: 0; padding: 0; border-top: none; }
  .header-nav a.navbtn img { width: 30px; height: 30px; }
  .header-nav a.navbtn { font-size: 0.52rem; gap: 0.08rem; }
  .header-tagline { display: none; }
}

/* ============ z33: 15% HEADER (Dan, Oct 22) =====   Hard rule: the whole header banner (logo + hook + nav + tagline) must
   measure <=15% of viewport height at every size, the hook never wraps,
   and the header no longer sticks — on scroll a slim mini-bar (44px)
   takes over instead. Design language unchanged: dark purple gradient,
   Creepster hook in lavender with the red closer, wolf + Frankenstein,
   same nav icons and order, same copy. */
@media (min-width: 761px) {
  .site-header { position: static; align-items: center; padding: 0.35rem 1rem 0.3rem; row-gap: 0.22rem; }
  .brand-logo { height: 52px; width: 52px; max-height: 52px; max-width: 52px; }
  .header-center { flex: 1 1 auto; min-width: 0; }
  .header-hook { white-space: nowrap; font-size: clamp(1.02rem, 1.72vw, 1.42rem); line-height: 1.15; text-align: center; margin: 0; }
  .hook-line { display: inline; }
  .header-wolf { position: static; height: 1.5em; width: 1.5em; margin: -0.25em 0 -0.25em 0.15rem; vertical-align: -0.3em; }
  .header-nav { flex: 1 1 auto; order: 3; margin-top: 0.1rem; padding: 0.15rem 0 0; gap: 0.35rem 0.6rem; justify-content: space-between; }
  .header-nav a.navbtn { font-size: 0.55rem; gap: 0.1rem; }
  .header-nav a.navbtn img { width: 26px; height: 26px; }
  .header-tagline { flex: 0 0 auto; order: 4; font-size: 0.98rem; margin: 0 0 0 0.9rem; align-self: center; white-space: nowrap; }
  .header-frank { height: 1.5em; vertical-align: -0.38em; margin-left: 0.2rem; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .brand-logo { height: 46px; width: 46px; max-height: 46px; max-width: 46px; }
  .header-nav a.navbtn img { width: 24px; height: 24px; }
}
@media (max-width: 760px) {
  .site-header { position: static; padding: 0.3rem 0.6rem 0.3rem; row-gap: 0.15rem; }
  .brand-logo { height: 40px; width: 40px; max-height: 40px; max-width: 40px; }
  .header-hook { font-size: 0.84rem; line-height: 1.15; }
  .header-wolf { height: 1.4em; width: 1.4em; }
  .site-header .header-nav { display: flex; flex-wrap: nowrap; gap: 0.45rem; justify-content: space-between; margin-top: 0.25rem; padding-top: 0.25rem; }
  .header-nav a.navbtn { font-size: 0.52rem; gap: 0.08rem; }
  .header-nav a.navbtn img { width: 28px; height: 28px; }
  .header-tagline { font-size: 0.7rem; margin: 0.15rem 0 0; }
  .header-frank { height: 18px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header { position: static; flex-direction: row; flex-wrap: nowrap; align-items: center; padding: 0.22rem 0.8rem; gap: 0.6rem; }
  .brand-logo { height: 36px; width: 36px; max-height: 36px; max-width: 36px; }
  .header-hook { font-size: 0.78rem; white-space: nowrap; }
  .site-header .header-nav { display: flex; flex-wrap: nowrap; flex: 0 0 auto; gap: 0.5rem; margin: 0; padding: 0; border-top: none; }
  .header-nav a.navbtn img { width: 26px; height: 26px; }
  .header-tagline { display: none; }
}

/* Slim scroll mini-bar: appears only after the header scrolls away. */
.mini-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 44px; display: flex; align-items: center; gap: 0.7rem; padding: 0 0.9rem; background: linear-gradient(180deg, #0a1e24, #0a1418); border-bottom: 1px solid #274860; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); transform: translateY(-110%); transition: transform 0.18s ease; }
.mini-bar.show { transform: translateY(0); }
.mini-bar img { height: 28px; width: 28px; border-radius: 50%; object-fit: cover; display: block; }
.mini-bar a { color: #cdeedd; font-weight: 700; font-size: 0.8rem; text-decoration: none; white-space: nowrap; }
.mini-bar a:hover { color: #ff7518; }
.mini-bar .mini-links { margin-left: auto; display: flex; gap: 0.95rem; align-items: center; }

/* z33b: measured fixes — nav width:100% (legacy rule) was forcing the
   tagline onto its own row; hook spans were display:block on phone. */
@media (min-width: 761px) {
  .site-header { padding: 0.3rem 1rem 0.25rem; }
  .brand-logo { height: 48px; width: 48px; max-height: 48px; max-width: 48px; }
  .header-nav { width: auto; padding-top: 0.1rem; }
  .header-nav a.navbtn { padding: 0.05rem 0; }
  .header-nav a.navbtn img { width: 24px; height: 24px; }
  .header-tagline { font-size: 0.95rem; }
}
@media (max-width: 760px) {
  .hook-line { display: inline; }
  .site-header .header-nav { margin-top: 0.15rem; padding-top: 0.15rem; }
}

/* z33c: phone header final trims to land under the 15% cap (<=127px @844). */
@media (max-width: 760px) {
  .site-header { padding-bottom: 0.2rem; }
  .brand-logo { height: 38px; width: 38px; max-height: 38px; max-width: 38px; }
  .header-hook { font-size: 0.8rem; }
  .header-nav a.navbtn img { width: 24px; height: 24px; }
  .header-tagline { font-size: 0.66rem; }
}
@media (max-width: 760px) {
  .site-header { row-gap: 0.08rem; }
  .header-tagline { margin-top: 0.05rem; }
}

/* ============ z35: HEADER V2 (Dan, Oct 22) =====   One horizontal band across the top: logo far left, the two text lines
   across the middle (hook on top, tagline directly beneath it), modern
   Frankenstein far right. The wolf is OUT — its space funds the buttons
   row beneath the band: the animated Events button (Dan's pick #3,
   events-btn-3.gif) leads the existing icon nav; no nav item dropped.
   Hard cap stands: whole header <=15% of viewport at 1100x800 and
   390x844. Header stays non-sticky; the 44px scroll mini-bar is unchanged. */
.site-header.v2 { display: block; }
.header-band { display: flex; align-items: center; gap: 0.9rem; }
.header-band .brand { flex: 0 0 auto; line-height: 0; order: 1; }
.header-band .header-center { flex: 1 1 auto; min-width: 0; align-self: center; order: 2; }
.header-band .header-hook { margin: 0; padding-left: 0; width: auto; text-align: center; }
.header-band .header-tagline { margin: 0.08rem 0 0; padding: 0; text-align: center; flex: none; }
.header-band .header-frank { flex: 0 0 auto; width: auto; object-fit: contain; order: 3; }
.site-header.v2 .header-nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; width: 100%; }
.site-header.v2 .header-nav a.navbtn-events { line-height: 0; }
.site-header.v2 .header-nav a.navbtn-events img.events-gif { display: block; width: auto; border: none; border-radius: 8px; object-fit: contain; }
@media (min-width: 761px) {
  .site-header.v2 { padding: 0.3rem 1rem 0.28rem; }
  .header-band .header-hook { white-space: nowrap; font-size: clamp(1.02rem, 1.72vw, 1.42rem); line-height: 1.15; }
  .header-band .header-tagline { white-space: nowrap; font-size: 1rem; line-height: 1.15; }
  .header-band .header-frank { height: 56px; }
  .site-header.v2 .header-nav { margin-top: 0.22rem; padding: 0.22rem 0 0; gap: 0.5rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 24px; height: 24px; }
  .site-header.v2 .header-nav a.navbtn-events img.events-gif { height: 30px; }
}
@media (max-width: 760px) {
  .site-header.v2 { padding: 0.25rem 0.5rem 0.22rem; }
  .header-band { gap: 0.45rem; }
  .header-band .brand-logo { height: 38px; width: 38px; max-height: 38px; max-width: 38px; }
  .header-band .header-hook { font-size: 0.78rem; line-height: 1.15; }
  .header-band .header-hook .hook-line.alt { white-space: nowrap; }
  .header-band .header-tagline { white-space: nowrap; font-size: 0.62rem; line-height: 1.15; }
  .header-band .header-frank { height: 40px; }
  .site-header.v2 .header-nav { margin-top: 0.18rem; padding: 0.18rem 0 0; gap: 0.28rem; flex-wrap: nowrap; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.48rem; gap: 0.08rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 21px; height: 21px; }
  .site-header.v2 .header-nav a.navbtn-events img.events-gif { height: 19px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header.v2 { padding: 0.18rem 0.8rem; }
  .header-band .brand-logo { height: 34px; width: 34px; max-height: 34px; max-width: 34px; }
  .header-band .header-frank { height: 34px; }
  .header-band .header-tagline { display: none; }
  .header-band .header-hook { font-size: 0.78rem; white-space: nowrap; }
  .site-header.v2 .header-nav { margin-top: 0.12rem; padding-top: 0.12rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 20px; height: 20px; }
  .site-header.v2 .header-nav a.navbtn-events img.events-gif { height: 18px; }
}

/* ============ z36: ONE-LINE BAND (Dan, Oct 22 — final) =====   The band center is now ONE single line: hook + "Build Your Night." +
   tagline segments, ALL at the same font size, no wrap, fluid-sized to
   fill the width between the logo (far left) and Frankenstein (far
   right). Segment colors unchanged (lavender / red / lavender /
   lavender / red). The tag-* color rules in the z-sections above are
   scoped to a .header-tagline ancestor, so they are re-declared here
   for the spans' new home inside .header-hook. Buttons row unchanged.
   z46 (Dan, Oct 22): "The" (.tag-b) goes red too — the whole closer
   "The Haunt Starts Here" is now red #eb7a2c. */
.header-band .header-hook .tag-a { color: #8fd8ff; }
.header-band .header-hook .tag-b { color: #e01e26; }
.header-band .header-hook .tag-c { color: #e01e26; }
.header-band .header-hook { white-space: nowrap; }
@media (min-width: 761px) {
  .header-band .header-hook { font-size: clamp(0.85rem, 1.42vw, 1.12rem); line-height: 1.15; }
}
@media (max-width: 760px) {
  /* Full line at 390px only fits at ~5.5px — below any legibility floor;
     it stays ONE line per Dan's spec (see ship report). Flanks shrink a
     touch to buy the line every available pixel. */
  .header-band .brand-logo { height: 34px; width: 34px; max-height: 34px; max-width: 34px; }
  .header-band .header-frank { height: 34px; }
  .header-band .header-hook { font-size: 1.42vw; line-height: 1.15; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-band .header-hook { font-size: 0.72rem; }
}

/* ============ z37: EVENTS ARTWORK, NOT A BUTTON (Dan, Oct 22) =====   The Events item in the buttons row is the full events-btn-3.gif artwork
   rendered AS the element itself: a plain image link to /events at the
   far left of the row, before all the buttons. No button chrome — no
   border, no background pill, no padding. The navbtn-events rules in z35
   no longer apply (the class is gone); these rules own the element now. */
.site-header.v2 .header-nav a.events-link { flex: 0 0 auto; line-height: 0; padding: 0; margin: 0; background: none; border: none; border-radius: 0; box-shadow: none; }
.site-header.v2 .header-nav a.events-link img.events-gif { display: block; width: auto; border: none; border-radius: 0; background: none; object-fit: contain; }
@media (min-width: 761px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 33px; }
}
@media (max-width: 760px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 22px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 20px; }
}

/* Hero split (Dan, Oct 22): one compact hero band. Desktop: featured TikTok
   video left with the sponsor billboard reflowed as a vertical rectangle
   beneath it; headline block right with a vertical TikTok-follow banner
   running down its right edge. Stacked (headline / video / follow button /
   sponsor) below 1000px. Sponsor content, orange panel, black frame and
   Apple-style type are unchanged — only reflowed for the narrow column. */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "headline" "vtstrip" "video" "top10home" "strip" "social" "sponsor";
  gap: 0.9rem;
  margin: 0.4rem 0;
}
.hero-split .hero-intro { grid-area: headline; max-width: none; margin: 0; }
.hero-split .tt-featured { grid-area: video; width: min(300px, 84vw, calc(56svh * 0.5625)); margin: 0 auto; }
.hero-split .tt-follow-vert { grid-area: strip; }
.hero-split .sponsor-section { grid-area: sponsor; margin: 0; }

/* TikTok-follow banner: full-width horizontal button when stacked */
.tt-follow-vert {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0.6rem;
  background: linear-gradient(160deg, #14222b, #0d0a1a);
  border: 2px solid #402f54; border-radius: 12px;
  color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none;
  padding: 0.6rem 0.9rem;
}
.tt-follow-vert img { width: 26px; height: 26px; flex: 0 0 auto; }
.tt-follow-vert-handle { color: #ff7518; }
.tt-follow-vert:hover { border-color: #ff7518; }

@media (min-width: 1000px) {
  .hero-split {
    grid-template-columns: 252px minmax(0, 1fr) 56px;
    grid-template-areas: "social social social" "video headline strip" "sponsor headline strip";
    gap: 0.9rem 1.1rem;
    width: min(1060px, calc(100vw - 2rem));
    position: relative; left: 50%; transform: translateX(-50%);
  }
  .hero-split .hero-intro { padding: 1.25rem 1.2rem 1rem; }
  .hero-split .hero-intro h1.hero-title { margin-bottom: 1rem; }
  .hero-split .hero-intro p { margin-bottom: 0.9rem; }
  .hero-split .hero-intro p:last-child { margin-bottom: 0; }
  .hero-split .tt-featured { width: 100%; margin: 0; }
  .hero-split .tt-facade { height: 248px; }
  .hero-split .tt-facade img { height: 100%; aspect-ratio: auto; }
  /* Sponsor billboard as a vertical rectangle: same orange panel, black
     frame and type, stacked and tightened for the 252px column */
  .hero-split .sponsor-section { padding: 0.75rem 0.6rem 0.65rem; }
  .hero-split .sponsor-grid { flex-direction: column; align-items: stretch; }
  .hero-split .sponsor-card { flex-direction: column; text-align: center; gap: 0.5rem; padding: 0.65rem 0.6rem; }
  .hero-split .sponsor-logo { width: 72px !important; height: 108px !important; max-width: 72px !important; max-height: 108px !important; }
  .hero-split .sponsor-sub { margin-bottom: 0.5rem; }
  .hero-split .sponsor-cta { text-align: center; margin-top: 0.5rem; }
  .hero-split .sponsor-meta { align-items: center; }
  /* Vertical rectangle: icon on top, text running downward */
  .tt-follow-vert { flex-direction: column; justify-content: flex-start; gap: 0.55rem; padding: 0.85rem 0; }
  .tt-follow-vert-text, .tt-follow-vert-handle { writing-mode: vertical-rl; }
  .tt-follow-vert-text { letter-spacing: 0.05em; }
}

/* ============ z86: PHONE FEATURED-TOKS ROW (Dan, Oct 23) ====
   z87 fix: selectors unprefixed — in the real homepage DOM
   .tt-featured is a TOP-LEVEL block (after .mobile-search), NOT
   inside .hero-split, so the .hero-split-prefixed rules in this
   block matched nothing and the toks stayed stacked.
   z88 (Dan, Oct 23): a THIRD promo tok (Northeast coverage) joins
   the row. Phone only (<=760px); desktop/laptop rendering untouched
   (all three stack there). On phone the three sit side by side
   (Scare-O-Meter left, 40-hours middle, Northeast right) instead of
   stacked. When one is tapped, the inline binding adds .tt-playing:
   the tapped video's embed spans the full width on top and the two
   untouched facades drop below it full-width, stacked — a TikTok
   embed is unusable at a third of phone width. */
@media (max-width: 760px) {
  .tt-featured {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
    width: min(430px, 100%);
  }
  .tt-featured .tt-facade + .tt-facade { margin-top: 0; }
  .tt-featured > .tt-facade:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .tt-featured > .tt-facade:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .tt-featured > .tt-facade:nth-of-type(3) { grid-column: 3; grid-row: 1; }
  /* Third-width cards get scaled-down chrome (row state only) */
  .tt-featured:not(.tt-playing) .tt-play { width: 36px; height: 36px; font-size: 0.85rem; }
  .tt-featured:not(.tt-playing) .tt-facade-label { font-size: 0.66rem; padding: 0.9rem 0.2rem 0.3rem; }
  /* Playing: embed full width on top; the untouched facades drop below */
  .tt-featured > blockquote.tiktok-embed,
  .tt-featured > iframe { grid-column: 1 / -1; grid-row: 1; margin: 0 auto; }
  .tt-featured.tt-playing > .tt-facade { grid-column: 1 / -1; grid-row: auto; }
}

/* ============ z38: EVENTS ARTWORK = ROW-TWO ANCHOR (Dan, Oct 22) ====
   The Events GIF stands ~2x the button height — the unmistakable anchor
   of row two, still a plain image link with no button chrome. The extra
   row height is funded WITHOUT touching the 15% header cap: the band
   art (logo / Frankenstein) trims down and the row's padding/margins
   tighten. Achieved sizes are measured per breakpoint below. */
@media (min-width: 761px) {
  .site-header.v2 { padding: 0.2rem 1rem 0.14rem; }
  .header-band .brand-logo { height: 44px; width: 44px; max-height: 44px; max-width: 44px; }
  .header-band .header-frank { height: 44px; }
  .site-header.v2 .header-nav { margin-top: 0.08rem; padding-top: 0.04rem; }
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 64px; }
}
@media (max-width: 760px) {
  /* Phone: the header cap has room, but the single row's WIDTH binds —
     8 buttons plus the artwork must fit 390px. 30px is the largest
     artwork height that keeps the row on one line. */
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 26px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 26px; }
}

/* ============ z41: EVENTS GIF BIGGER (Dan, Oct 22 — 3rd escalation) ====
   Dan's word overrides the 15% header cap on desktop: the Events &
   Parties artwork grows 64px -> 88px tall (~293px wide at the GIF's
   native 3.33:1) — unmistakably the anchor of row two, still a plain
   image link with no button chrome. The header grows with it; accepted.
   Everything else in the header stays exactly as finalized.
   Phone portrait: the single row's WIDTH binds at 390px, so the nav
   tightens a touch (row gap, label size, header side padding) to buy
   the artwork real size without horizontal overflow: 26px -> 36px.
   Landscape phones: width is plentiful but height is precious, so the
   artwork takes a modest bump only (26px -> 32px). */
@media (min-width: 761px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 88px; }
}
@media (max-width: 760px) {
  .site-header.v2 { padding-left: 0.35rem; padding-right: 0.35rem; }
  .site-header.v2 .header-nav { gap: 0.14rem; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.44rem; }
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 36px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 32px; }
}

/* ============ z43: TONIGHT'S BAND + TOWN FORM IN HERO (Dan, Oct 22) ====
   Two homepage moves on Dan's word: (1) Tonight's Display LEAVES the hero
   panel and stands as its own full-width band directly below the whole
   hero block and above the Haunt Map / Jolly Map buttons, restored to the
   roomier standalone card; (2) the town-request form ("Do you HauntMap in
   your town?") moves INTO the hero's left column under the sponsor
   billboard (video -> sponsor -> form), restyled to the column width —
   same fields, same POST /town-request wiring, one instance only. */

/* Tonight's band wraps the base .tonight-card (92px thumb, gold frame);
   the band adds presence: wider thumb, bigger title, a trailing CTA. */
.tonight-band { margin: 0.35rem 0 0.5rem; }
.tonight-band .tonight-card { margin: 0; padding: 0.85rem 1.05rem; gap: 1.05rem; border-radius: 16px; }
.tonight-band .tonight-card img { width: 110px; height: 110px; border-radius: 12px; }
.tonight-band .tonight-title { font-size: 1.3rem; }
.tonight-band .tonight-kicker { font-size: 0.85rem; }
.tonight-cta {
  margin-left: auto; flex: 0 0 auto; align-self: center;
  color: #0e1a20; background: #ff7518; font-weight: 800; font-size: 0.9rem;
  padding: 0.55rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.tonight-band .tonight-card:hover .tonight-cta { background: #ffa25e; }
@media (max-width: 560px) {
  .tonight-band .tonight-card { padding: 0.7rem 0.8rem; gap: 0.8rem; }
  .tonight-band .tonight-card img { width: 84px; height: 84px; }
  .tonight-band .tonight-title { font-size: 1.12rem; }
  .tonight-cta { display: none; }
}

/* Town-request form inside the hero grid: its own area under the sponsor
   billboard in the left column (last in the stacked order on phone).
   strip-fit: "vtstrip" (phone VT/TV twin) joins right after "headline". */
.hero-split { grid-template-areas: "headline" "vtstrip" "video" "top10home" "strip" "social" "sponsor" "townreq"; }
.hero-split .town-request {
  grid-area: townreq; margin: 0; max-width: none; width: 100%;
  box-sizing: border-box; text-align: left;
}

/* Desktop: the band aligns edge-to-edge with the broken-out hero block,
   and the hero gains its third left-column row for the form. */
@media (min-width: 1000px) {
  .tonight-band {
    width: min(1060px, calc(100vw - 2rem));
    position: relative; left: 50%; transform: translateX(-50%);
  }
  .hero-split {
    grid-template-areas: "social social social" "video headline strip" "sponsor headline strip" "advstrip headline strip" "townreq headline strip";
  }
  /* Restyle the form to the 252px column: one field per row, tighter type */
  .hero-split .town-request { padding: 0.85rem 0.75rem 0.9rem; }
  .hero-split .town-request h3 { font-size: 1.02rem; line-height: 1.25; }
  .hero-split .town-request p { font-size: 0.83rem; line-height: 1.4; }
  .hero-split .town-request-form { grid-template-columns: 1fr; gap: 0.45rem; margin-top: 0.55rem; }
  .hero-split .town-request-form input { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
  .hero-split .town-request-form .btn { padding: 0.55rem 0.6rem; font-size: 0.92rem; }
}

/* ============ z42: ROW-TWO REFINEMENT (Dan, Oct 22) =====   One notch back on the artwork, one notch up on the buttons: the
   Events & Parties GIF dials down (desktop 88px -> 74px, phone 36px
   -> 30px, landscape 32px -> 27px) and stays the plain-image anchor
   at the far left of row two. The nav buttons to its right grow a
   little (bigger icons, labels and padding) and the row's spacing is
   set deliberately: space-between stays, so the freed width spreads
   as even, consistent gaps from the GIF to the right edge — nothing
   crammed at either end, no wrap, no overflow. */
@media (min-width: 761px) {
  .site-header.v2 .header-nav { gap: 0.75rem; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.78rem; gap: 0.25rem; padding: 0.1rem 0.2rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 28px; height: 28px; }
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 74px; }
}
@media (max-width: 760px) {
  .site-header.v2 .header-nav a.navbtn { font-size: 0.47rem; gap: 0.1rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 22px; height: 22px; }
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 30px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 27px; }
}

/* ============ z47: DIY COSTUMES NAV BUTTON (Dan, Oct 22) =====   A ninth button joins row two — "DIY Costumes" (/diy-costumes),
   right after DIY, same .navbtn treatment with its own mask icon.
   Desktop absorbs it easily (space-between redistributes the wide
   gaps). The 390px phone row was already nearly full, so the phone
   buttons give back a sliver — icon 22px -> 18px, label 0.47rem ->
   0.40rem, letter-spacing eased — keeping the row one line, no
   overflow, no wrap, GIF untouched at 100x30, "DIY Costumes" fully
   legible and never truncated. */
@media (max-width: 760px) {
  .site-header.v2 .header-nav a.navbtn { font-size: 0.40rem; letter-spacing: 0.01em; }
  .site-header.v2 .header-nav a.navbtn img { width: 18px; height: 18px; }
}

/* ============ z48: ROW TWO — GIF 25% SMALLER + ALIGNMENT PASS (Dan, Oct 22) ====
   Dan's final size word on the artwork: 25% smaller on desktop —
   74px -> 55px tall (~185px wide at the GIF's native ~3.35:1), still
   the plain-image anchor at the far left of row two, still clearly
   larger than the ~49px buttons beside it. Phone keeps the artwork
   at 100x30 (the z44/z47 phone sizing stands, untouched below), and
   landscape keeps its own 27px override — re-declared after the
   desktop rule so this section can't swallow it.
   Alignment pass (Dan, twice: "button alignment is bugging me"):
   every item in the row — artwork and all nine buttons — centers on
   ONE shared centerline (align-items: center, reaffirmed here), the
   buttons all carry the same box (fixed icon box, same padding,
   labels pinned to a single line so no button can grow taller than
   its neighbours), and space-between stays, so the width the
   artwork gives back spreads as uniform gaps from the GIF to the
   right edge — no bunching, no orphan gap. */
.site-header.v2 .header-nav { align-items: center; }
.site-header.v2 .header-nav a.navbtn span { white-space: nowrap; }
@media (min-width: 761px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 55px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 27px; }
}

/* ============ z49: TAGLINE UPSIZE — FILL THE BAND (Dan, Oct 22) ====
   The one squeezed line becomes TWO balanced lines that each span the
   full band between the logo (far left) and Frankenstein (far right):
   line 1 "...fright night for you. Build Your Night." and line 2
   "NEW HAUNTS DAILY!!! THE HAUNT STARTS HERE". Segment colors are
   unchanged (lavender / red / lavender / all-red closer). Sizing is in
   cqw against .header-center (the band itself), so each line fills
   ~the same share of the band at every width — fluid from phone to
   desktop, no dead space at either end. Logo, Frankenstein and the
   row-two buttons are untouched. Landscape phones keep the standing
   slim-row design: line 2 hides (it was the old .header-tagline,
   hidden in that view since z35) and line 1 stays small. */
.header-band .header-center { container-type: inline-size; }
.header-band .header-hook { white-space: normal; }
.header-band .header-hook .hook-l1,
.header-band .header-hook .hook-l2 { display: block; white-space: nowrap; }
.header-band .header-hook .hook-l1 { font-size: clamp(0.55rem, 3.36cqw, 4.25rem); line-height: 1.12; }
.header-band .header-hook .hook-l2 { font-size: clamp(0.8rem, 6.15cqw, 7.4rem); line-height: 1.12; margin-top: 0.05em; }
@media (orientation: landscape) and (max-height: 500px) {
  .header-band .header-hook .hook-l2 { display: none; }
  .header-band .header-hook .hook-l1 { font-size: 0.78rem; }
}
/* ============ z50: PHONE HERO POLISH (Dan, Oct 22) ====
   Two fixes from Dan's live phone screenshot.
   1) HEADLINE WRAP: "Near You" (the lavender .hero-title-alt span)
      can never split — at 390px the break now lands exactly as Dan
      wants it: line 1 "Find the Best Halloween Displays", line 2
      "Near You" (before: "...Displays Near" / "You" orphaned). The
      nowrap is global so the segment stays intact at every width;
      the desktop headline layout is otherwise untouched.
   2) PHONE CORNERS: the hero panel's 18px radius and the Tonight's
      band card's 16px radius previously rested on single early rules
      buried under dozens of later appended sections. On phone they
      are now declared explicitly, corner by corner, as the last word
      in the cascade — one uniform radius on all four corners of each
      panel, nothing squared or clipped. Both panels keep their clean
      inset from the screen edges (the .wrap 1rem gutter, untouched). */
.hero-title-alt { white-space: nowrap; }
@media (max-width: 760px) {
  .hero-intro {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
  }
  .tonight-band .tonight-card {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
  }
}

/* ============ z51: TAGLINE TUNE + BORDERLESS EVENTS LETTERS (Dan, Oct 22) ====
   Three refinements to the z49/z48 header:
   1) TAGLINE 30% SMALLER: the two Creepster lines scale x0.7 —
      line 1 3.36cqw -> 2.35cqw, line 2 6.15cqw -> 4.31cqw, clamp
      bounds scaled by the same 0.7. The lines no longer fill the
      whole band — that's intended. The landscape slim row is
      re-declared below bit-identical to z49 (line 2 hidden, line 1
      at 0.78rem) so this section can't disturb it.
   2) "HALLOWEEN" TURNS RED: the word gets its own .hw-red span with
      its own color rule, red #eb7a2c like the other red segments.
      The rest of line 1 stays lavender; "Build Your Night." stays red.
   3) EVENTS & PARTIES — LETTERS ONLY: the artwork swaps to
      events-btn-4-borderless.gif (variant 3's color-chase letters,
      transparent canvas, no purple panel, no cream border; a thin
      dark outline + soft dark drop shadow are baked into the art so
      the letters read cleanly on the dark header). Same 320x96
      canvas as btn-3, so the z48 display slot (55px desktop /
      30px phone / 27px landscape) and row-two geometry are unchanged;
      still a plain clickable image link to /events. */
.header-band .header-hook .hw-red { color: #e01e26; }
.header-band .header-hook .hook-l1 { font-size: clamp(0.39rem, 2.35cqw, 2.98rem); }
.header-band .header-hook .hook-l2 { font-size: clamp(0.56rem, 4.31cqw, 5.18rem); }
@media (orientation: landscape) and (max-height: 500px) {
  .header-band .header-hook .hook-l2 { display: none; }
  .header-band .header-hook .hook-l1 { font-size: 0.78rem; }
}

/* ============ z52: TAGLINE +15% / "MAP" RED TOO (Dan, Oct 22) ====
   Follow-up to z51, same day: the tuned lines grow back 15% —
   line 1 2.35cqw -> 2.70cqw, line 2 4.31cqw -> 4.95cqw (x1.15 on the
   z51 values, clamp bounds scaled to match; net vs the z49 original:
   x0.805). Phone scales proportionally (same cqw rules); the
   landscape slim row is re-declared bit-identical again (line 2
   hidden, line 1 0.78rem). And in line 1 the word "map" joins
   "Halloween" in red #eb7a2c (same .hw-red span) — line 1's red
   runs are now "Halloween", "map" and "Build Your Night."; every
   other word keeps its current color. */
.header-band .header-hook .hook-l1 { font-size: clamp(0.45rem, 2.70cqw, 3.43rem); }
.header-band .header-hook .hook-l2 { font-size: clamp(0.64rem, 4.95cqw, 5.96rem); }
@media (orientation: landscape) and (max-height: 500px) {
  .header-band .header-hook .hook-l2 { display: none; }
  .header-band .header-hook .hook-l1 { font-size: 0.78rem; }
}

/* ============ z53: HEADER FLANKS GROW (Dan, Oct 22 — revised factors) ====
   Dan's final size word on the band art (supersedes his 2x order from
   minutes earlier): the main logo (far left) grows 70% and
   Frankenstein (far right) grows 40% off the z38 sizes that stood
   since this morning — desktop 44px -> logo 75px / Frank 62px tall,
   phone 34px -> logo 58px / Frank 48px tall. Landscape phones
   (flanks also stood at 44px via the z38 desktop rule) scale
   proportionally but moderated — see the landscape block below —
   with the slim-row design untouched (line 2 still hidden, line 1
   still the small fixed size).
   The band between the flanks narrows; the tagline is cqw-sized
   against .header-center (z49/z51), so it rescales on its own and
   stays centered — on phone its line 1 simply sits at its clamp
   floor (0.45rem after the z52 +15% tune), which the narrowed band
   still fits with room to spare.
   Row two is untouched. Assets: the logo source is 264x291 — at a
   75px box it stays crisp even at 2x DPR (150 device px < 264);
   Frank's source is 1600x1600, crisp at any of these sizes. */
@media (min-width: 761px) {
  .header-band .brand-logo { height: 75px; width: 75px; max-height: 75px; max-width: 75px; }
  .header-band .header-frank { height: 62px; }
}
@media (max-width: 760px) {
  .header-band .brand-logo { height: 58px; width: 58px; max-height: 58px; max-width: 58px; }
  .header-band .header-frank { height: 48px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  /* Landscape moderated (logo x1.45 / Frank x1.20 off 44px): full
     factors would push the slim landscape header to ~34% of a 390px
     screen; at 64/53 the header holds ~31% and the row stays slim. */
  .header-band .brand-logo { height: 64px; width: 64px; max-height: 64px; max-width: 64px; }
  .header-band .header-frank { height: 53px; }
}

/* ============ z54: PHONE NAV ROW — EVEN SPACING, NO CUTOFF (Dan, Oct 22) ====
   Dan's phone screenshot: row two's buttons bunch on the left, the gaps
   wander, and "Add Yours" falls off the right edge. Measured cause: the
   row is OVER-FULL — the ten items at natural width plus the minimum
   gaps total ~383px against a 379px row at 390px viewport (~29px of
   overflow at 360px), so space-between has no slack to spread and the
   row packs at the floor gap and spills past the edge (on Dan's iPhone,
   whose text renders wider than the test browser, the spill cuts the
   last button). The fix is structural and item-count-agnostic — the
   distribution rule does not care how many buttons the row holds
   (two more are coming: "Restaurhaunts & Cafes" and "About Us"):
   - space-between stays, so whatever slack exists is distributed as
     IDENTICAL gaps between every pair of neighbours;
   - buttons may shrink (flex-shrink with min-width 0) instead of
     pushing the last one off-screen, and their labels may wrap to a
     second centred line under pressure instead of overflowing — at
     today's count and widths they stay on one line;
   - the Events artwork keeps its 100x30 slot (flex-basis unchanged)
     and yields only a few px, and only under real overflow pressure,
     via a small flex-shrink factor — never enough to notice, always
     enough to keep the last button on screen;
   - two micro-trims buy the slack back: icons 18px -> 16px and label
     letter-spacing zeroed (labels stay 0.40rem, one line, readable).
   Desktop geometry and the landscape slim row are untouched: this
   section applies to portrait phones only. */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav { justify-content: space-between; gap: 0.12rem; }
  .site-header.v2 .header-nav a.navbtn { flex: 0 1 auto; min-width: 0; font-size: 0.40rem; letter-spacing: 0; }
  .site-header.v2 .header-nav a.navbtn img { width: 16px; height: 16px; }
  .site-header.v2 .header-nav a.navbtn span { white-space: normal; text-align: center; }
  .site-header.v2 .header-nav a.events-link { flex: 0 0.5 auto; min-width: 0; }
  .site-header.v2 .header-nav a.events-link img.events-gif { max-width: 100%; }

}

/* ============ z55: LOGO +30% MORE (Dan, Oct 22) ====
   On top of the z53 flanks build (logo x1.7 of the old 44/34px),
   the main logo (far left) grows another 30% — desktop 75px ->
   98px, phone 58px -> 75px, landscape 64px -> 83px (net vs the
   pre-flanks originals: x2.21 desktop, x2.21 phone, x1.89
   landscape). Frankenstein is NOT touched — his z53 sizes stand
   (62px desktop / 48px phone / 53px landscape).
   The tagline band narrows again; the tagline keeps its z52
   cqw sizing and rescales on its own — on phone line 1 stays at
   its 0.45rem clamp floor and its ink still fits the narrowed
   band (measured, not assumed). The logo source is 264x291: at
   a 98px box it stays crisp even at 2x DPR (196 device px < 264). */
@media (min-width: 761px) {
  .header-band .brand-logo { height: 98px; width: 98px; max-height: 98px; max-width: 98px; }
}
@media (max-width: 760px) {
  .header-band .brand-logo { height: 75px; width: 75px; max-height: 75px; max-width: 75px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-band .brand-logo { height: 83px; width: 83px; max-height: 83px; max-width: 83px; }
}
/* Second-click #1 (Oct 22): pin-page recirculation — "More haunts in
   {Town}" rail directly under the address/map buttons, plus a sticky
   mobile "Next haunt" bar so a pin page never dead-ends on a phone.
   The bar is mobile-only (desktop has the in-flow Next button); when
   the tour bar (#2) is visible it stacks above it via body.has-tourbar. */
.town-rail { margin: 1.1rem 0 0.2rem; }
.town-rail h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
/* Retention Wave 1, Item 3 (Oct 23): the under-player "More videos near
   here" rail on video pin pages (existing .rail/pin-card styling does
   the rest), and a thumbnail in the sticky next-haunt bar when it
   chains video-to-video. */
.more-videos { margin: 1rem 0 0.2rem; }
.more-videos h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.next-haunt-bar .nhb-thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.next-haunt-bar { display: none; }
@media (max-width: 760px) {
  .next-haunt-bar {
    display: flex; align-items: center; gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(160deg, #402f54, #0a1e24);
    border-top: 2px solid #ff7518; color: #fff; text-decoration: none;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
  }
  body.has-tourbar .next-haunt-bar { bottom: 61px; }
  .next-haunt-bar .nhb-label { font-weight: 800; color: #f19d45; white-space: nowrap; }
  .next-haunt-bar .nhb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
  .detail:has(.next-haunt-bar) { padding-bottom: 60px; }
  body.has-tourbar .detail:has(.next-haunt-bar) { padding-bottom: 122px; }
}

/* ============ z58: LOGO CENTERPIECE +15% (Dan, Oct 22) ====
   Two moves. (1) The main logo grows ANOTHER 15% on top of the
   z55 build — desktop 98px -> 113px, phone 75px -> 86px,
   landscape 83px -> 95px (net vs the pre-flanks originals:
   x2.57 desktop / x2.53 phone / x2.16 landscape). Frankenstein
   untouched (62/48/53). (2) The logo is CENTERED in its left
   flank zone: the .brand anchor becomes an explicit zone box
   (flex, centred content) whose width comes out of the tagline
   band — the tagline keeps its z52 cqw sizing and rescales in
   the narrower band. Zone widths: desktop 165px, phone 106px,
   landscape 117px, tuned so the measured space on the logo's
   left (from the header's left edge) equals the space on its
   right (to the tagline band's left edge) within ~1px.
   Sharpness: at 113px the 264px-wide source is still ~2.3x
   oversampled at 1x DPR (1.17x at 2x DPR) — crisp. */
.header-band .brand { display: flex; align-items: center; justify-content: center; }
@media (min-width: 761px) {
  .header-band .brand { width: 165px; }
  .header-band .brand-logo { height: 113px; width: 113px; max-height: 113px; max-width: 113px; transform: translateX(-1px); }
}
@media (max-width: 760px) {
  .header-band .brand { width: 106px; }
  .header-band .brand-logo { height: 86px; width: 86px; max-height: 86px; max-width: 86px; transform: translateX(1px); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-band .brand { width: 117px; }
  .header-band .brand-logo { height: 95px; width: 95px; max-height: 95px; max-width: 95px; transform: translateX(-1px); }
}

/* Second-click #2 (Oct 22): "+ Tour" save buttons on every card +
   the persistent tour bar. The bar appears once the visitor has at
   least one stop saved (hidden on /tour itself, where the builder
   already shows the count); body.has-tourbar reserves scroll room so
   page footers never hide behind it, and the email prompt stacks
   above it instead of covering it. */
.tour-add-btn { display: inline-block; margin-top: 0.45rem; padding: 0.34rem 0.75rem; border-radius: 999px; background: #402f54; border: 1px solid #57a8ff; color: #ffd9a0; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.tour-add-btn:hover, .tour-add-btn:focus-visible { background: #402f54; outline: none; }
.tour-add-btn.in-tour { background: #1e5c2e; border-color: #2f8f4a; color: #c9f5d2; }
#hm-tourbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom)); background: linear-gradient(160deg, #402f54, #0a1e24); border-top: 2px solid #ff7518; color: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,0.45); }
#hm-tourbar[hidden] { display: none; }
#hm-tourbar .tb-label { font-size: 0.95rem; }
#hm-tourbar .tb-build { background: #ff7518; color: #0a1e24; font-weight: 800; padding: 0.45rem 0.95rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
body.has-tourbar { padding-bottom: 60px; }
body.has-tourbar #hm-prompt { bottom: 4.4rem; }

/* Second-click #3 (Oct 22): first-screen modules on the unfiltered
   homepage — "Near you tonight" (biggest haunt towns as chips, the
   visitor's remembered town first when they have one, location
   actions) and a "Trending today" rail ranked by live detail-page
   view counts with the numbers shown. Added modules only; the hero,
   Tonight's band and search are untouched. */
.near-you { margin: 1.2rem 0 0.4rem; padding: 1rem; background: linear-gradient(160deg, #14222b, #0e1a20); border: 1px solid #402f54; border-radius: 14px; }
.near-you h2 { font-size: 1.25rem; margin: 0 0 0.3rem; }
.near-you-sub { color: #a9cdf5; margin: 0 0 0.7rem; }
.near-you-mine { margin: 0 0 0.7rem; font-weight: 700; }
.town-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.town-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: #402f54; border: 1px solid #57a8ff; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.town-chip:hover { background: #402f54; }
.town-chip .chip-n { color: #f19d45; font-size: 0.8rem; font-weight: 800; }
.near-you-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-ghost { background: transparent; border: 1px solid #57a8ff; color: #e8ddff; }

/* Retention Wave 1, Item 1 (Oct 23): the Near-you module gets a heading
   row with a visible "Change area" affordance (links into the existing
   /nearby town search — no new header/nav controls). */
.near-you-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.near-you-head h2 { margin-bottom: 0.3rem; }
.near-you-change { font-size: 0.82rem; font-weight: 700; color: #f19d45; white-space: nowrap; }
.trending { margin: 1.2rem 0 0.2rem; }
.trending h2 { font-size: 1.25rem; margin: 0 0 0.6rem; }
.trending .card-media { position: relative; }
.rank-badge { position: absolute; top: 0.5rem; left: 0.5rem; background: #ff7518; color: #0a1e24; font-weight: 900; font-size: 0.85rem; padding: 0.15rem 0.5rem; border-radius: 999px; }
.views-line { color: #f19d45; font-weight: 700; font-size: 0.85rem; margin: 0.25rem 0 0; }

/* /music page (Dan Oct 22) — playlists, classic videos, artist cards */
.music-h2 { font-size: 1.45rem; margin: 1.8rem 0 0.4rem; }
.music-spotify-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0.8rem 0 0.4rem; }
.music-embed { margin: 0; background: var(--card); border: 1px solid #274860; border-radius: var(--radius); padding: 0.6rem; }
.music-embed iframe { display: block; border-radius: 10px; }
.music-embed figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.55rem; }
.music-embed figcaption strong { color: var(--ink); }
@media (min-width: 620px) {
  .music-spotify-grid { grid-template-columns: 1fr 1fr; }
  .music-spotify-grid .music-embed:first-child { grid-column: 1 / -1; }
}
.yt-feature { margin: 0.8rem 0 0.4rem; }
.yt-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 0.9rem; }
@media (min-width: 620px) { .yt-grid { grid-template-columns: 1fr 1fr; } }
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid #274860; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(87, 168, 255, 0.92); color: #1a0f00; font-size: 1.5rem; line-height: 62px; text-align: center; padding-left: 4px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 22px rgba(87, 168, 255, 0.55); }
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { background: #ff8c42; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 1px solid #274860; border-radius: var(--radius); display: block; background: #000; }
.yt-cap { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }
.yt-meta { color: var(--muted); font-size: 0.82rem; margin: 0.15rem 0 0; opacity: 0.85; }
.music-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0.8rem 0 0.4rem; }
@media (min-width: 620px) { .music-cards { grid-template-columns: 1fr 1fr; } }
.music-card { background: var(--card); border: 1px solid #274860; border-radius: var(--radius); padding: 0.9rem; }
.music-card-art { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
.music-card h3 { margin: 0.7rem 0 0.3rem; font-size: 1.2rem; }
.music-claim { color: var(--muted); margin: 0 0 0.8rem; }
.music-btns { display: flex; flex-direction: column; gap: 0.5rem; }
.mbtn { display: block; text-align: center; text-decoration: none; font-weight: 700; padding: 0.55rem 0.8rem; border-radius: 999px; border: 1px solid #274860; background: var(--bg2); color: var(--ink); }
.mbtn-spotify { background: #1db954; border-color: #1db954; color: #052a12; }
.mbtn-yt { background: var(--danger); border-color: var(--danger); color: #fff; }
.mbtn-pin { background: var(--accent); border-color: var(--accent); color: #1a0f00; }
.music-xref { color: var(--muted); margin-top: 0.9rem; }
.music-events-cta { margin-top: 1.6rem; font-weight: 700; }

/* /music live radio (Dan, Oct 26): iHeartRadio click-to-load facades
   (official embed loads only on tap — zero third-party weight before)
   + the Radio Garden link-out card (Radio Garden blocks embedding). */
.radio-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0.8rem 0 0.4rem; }
@media (min-width: 620px) {
  .radio-grid { grid-template-columns: 1fr 1fr; }
  .radio-grid .radio-lead { grid-column: 1 / -1; }
}
.ihr-facade { display: flex; align-items: center; gap: 0.8rem; width: 100%; text-align: left; padding: 0.85rem 0.9rem; border: 1px solid #274860; border-radius: 10px; background: linear-gradient(160deg, rgba(87, 168, 255, 0.16), rgba(87, 168, 255, 0.03) 55%), #0b141a; color: var(--ink); cursor: pointer; font: inherit; }
.ihr-facade:hover, .ihr-facade:focus-visible { border-color: var(--accent2); box-shadow: 0 0 16px rgba(87, 168, 255, 0.45); }
.ihr-play { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--accent2); color: #06121f; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; padding-left: 3px; box-shadow: 0 0 14px rgba(87, 168, 255, 0.55); }
.radio-lead .ihr-play { width: 54px; height: 54px; font-size: 1.35rem; }
.ihr-info { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.ihr-name { font-weight: 800; font-size: 1.08rem; line-height: 1.15; }
.radio-lead .ihr-name { font-size: 1.3rem; }
.ihr-sub { color: var(--muted); font-size: 0.85rem; }
.ihr-tag { margin-left: auto; flex: 0 0 auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #ffb066; border: 1px solid rgba(255, 123, 28, 0.55); border-radius: 999px; padding: 0.18rem 0.55rem; background: rgba(255, 123, 28, 0.12); }
.ihr-frame { display: block; width: 100%; height: 300px; border: 0; border-radius: 10px; background: #fff; }
.rg-face { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 0.9rem; border: 1px dashed #2e4a66; border-radius: 10px; background: radial-gradient(120px 60px at 18% 50%, rgba(87, 168, 255, 0.25), transparent 70%), #0b141a; }
.rg-globe { font-size: 2rem; line-height: 1; filter: drop-shadow(0 0 10px rgba(87, 168, 255, 0.8)); }

/* /movies page (Dan Oct 23) — the screening room: trailer shelves reusing
   the /music facade grid, plus a cross-link card at the foot of /music. */
.movies-subnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.2rem; }
.movies-subnav a { text-decoration: none; font-weight: 700; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid #274860; background: var(--card); color: var(--ink); }
.movies-subnav a:hover { border-color: var(--accent); }
.movie-title { margin: 0.55rem 0 0.1rem; font-size: 1.12rem; }
.movie-year { color: var(--muted); font-weight: 400; }
.movie-meta { color: #f19d45; font-weight: 700; font-size: 0.9rem; margin: 0.15rem 0 0; }
.movie-blurb { color: var(--muted); margin: 0.3rem 0 0; }
.movies-cta { background: var(--card); border: 1px solid #274860; border-radius: var(--radius); padding: 0.85rem 1rem; }
.music-crosslink { color: var(--muted); margin: 0.2rem 0 0.8rem; }
/* Halloween Radio (Spotify) — Dan, Oct 22, z61: a slim chip fixed at
   the bottom-left of every page; expanding it lazy-loads the Spotify
   embed (no iframe exists before first interaction). The stack sits
   ABOVE the existing bottom bars: the tour bar is 61px tall at
   bottom:0 (body.has-tourbar), and the mobile pin-page "Next haunt"
   bar takes another 61px above it (body.has-nextbar, set by the
   radio script only when that bar is actually visible) — so the
   radio's bottom offset is 12px + 61px per visible bar. The off
   state leaves only a small music-note tab. body.has-radio reserves
   scroll room like body.has-tourbar does. */
#hm-radio { position: fixed; left: 0.75rem; bottom: 0.75rem; z-index: 90; }
body.has-tourbar #hm-radio { bottom: calc(61px + 0.75rem); }
body.has-nextbar #hm-radio { bottom: calc(61px + 0.75rem); }
body.has-tourbar.has-nextbar #hm-radio { bottom: calc(122px + 0.75rem); }
body.has-radio { padding-bottom: 64px; }
body.has-tourbar.has-radio { padding-bottom: 124px; }
.hmr-chip { display: flex; align-items: center; gap: 0.35rem; background: linear-gradient(160deg, #402f54, #0a1e24); border: 2px solid #ff7518; border-radius: 999px; padding: 0.3rem 0.45rem 0.3rem 0.3rem; box-shadow: 0 6px 22px rgba(0,0,0,0.5); }
.hmr-chip[hidden], .hmr-panel[hidden], .hmr-tab[hidden] { display: none; }
.hmr-main { display: flex; align-items: center; gap: 0.5rem; background: none; border: none; color: #fff; font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer; padding: 0.3rem 0.35rem; }
.hmr-main .hmr-play { color: #ff7518; font-size: 0.85rem; }
.hmr-x { background: none; border: none; color: #94a6c0; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.4rem; }
.hmr-x:hover { color: #fff; }
.hmr-tab { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(160deg, #402f54, #0a1e24); border: 2px solid #57a8ff; color: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,0.5), 0 0 16px rgba(87, 168, 255, 0.55); }
.hmr-panel { width: min(400px, calc(100vw - 1.5rem)); background: linear-gradient(160deg, #402f54, #0a1e24); border: 2px solid #ff7518; border-radius: 16px; padding: 0.8rem; box-shadow: 0 12px 40px rgba(0,0,0,0.55); color: #fff; }
.hmr-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.hmr-title { font-weight: 900; font-size: 1.02rem; }
.hmr-head-btns { display: flex; gap: 0.25rem; }
.hmr-head-btns button { background: #402f54; border: 1px solid #57a8ff; color: #e8ddff; width: 30px; height: 30px; border-radius: 9px; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.hmr-picks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.hmr-pick { padding: 0.34rem 0.75rem; border-radius: 999px; background: #402f54; border: 1px solid #57a8ff; color: #ffd9a0; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.hmr-pick:hover, .hmr-pick:focus-visible { background: #402f54; outline: none; }
.hmr-pick.active { background: #ff7518; border-color: #ff7518; color: #0a1e24; }
.hmr-pick[hidden] { display: none; }
.hmr-frame { margin-top: 0.65rem; min-height: 152px; }
.hmr-frame iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: #191919; }
.hmr-custom { margin-top: 0.7rem; }
.hmr-custom label { display: block; font-size: 0.83rem; font-weight: 700; color: #a9cdf5; margin-bottom: 0.35rem; }
.hmr-custom-row { display: flex; gap: 0.5rem; }
.hmr-custom-row input { flex: 1; min-width: 0; padding: 0.55rem 0.7rem; border-radius: 8px; border: 1px solid #402f54; background: #0d0a1a; color: #e8e6e3; font: inherit; font-size: 0.88rem; }
.hmr-custom-row button { background: #ff7518; color: #0a1e24; font-weight: 800; border: none; border-radius: 8px; padding: 0.55rem 0.9rem; cursor: pointer; white-space: nowrap; }
.hmr-err { color: #ff9a9e; font-size: 0.82rem; margin: 0.45rem 0 0; }
.hmr-note { color: #94a6c0; font-size: 0.78rem; margin: 0.65rem 0 0; line-height: 1.45; }
.hmr-reset-row { margin: 0.45rem 0 0; }
.hmr-reset { background: none; border: none; padding: 0; color: #ff7518; font: inherit; font-size: 0.83rem; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Build Your Mix (Dan, Oct 22, z61): per-visitor mix inside the
   radio panel — cued-track controls (ours), the visitor's ordered
   mix list with up/down/remove, a paste-a-track form, and the
   verified staple catalog. The panel scrolls internally so the
   stack above the bottom bars never pushes off-screen. */
.hmr-panel { max-height: min(84vh, 780px); overflow-y: auto; }
.hmr-mix[hidden] { display: none; }
.hmr-mix { margin-top: 0.7rem; border-top: 1px solid #402f54; padding-top: 0.7rem; }
.hmr-mix-now { display: flex; align-items: center; gap: 0.5rem; }
.hmr-mix-now > button { background: #402f54; border: 1px solid #57a8ff; color: #e8ddff; border-radius: 9px; height: 34px; padding: 0 0.6rem; cursor: pointer; font-size: 0.95rem; }
.hmr-mix-now .hmr-playmix { flex: 1; background: #ff7518; border-color: #ff7518; color: #0a1e24; font-weight: 800; }
.hmr-mix-cur { color: #ffd9a0; font-size: 0.85rem; font-weight: 700; margin: 0.55rem 0 0.3rem; }
.hmr-mix-list { list-style: none; margin: 0.3rem 0 0; padding: 0; max-height: 148px; overflow-y: auto; }
.hmr-mix-list li { display: flex; align-items: center; gap: 0.3rem; padding: 0.28rem 0.3rem; border-radius: 8px; }
.hmr-mix-list li.current { background: #402f54; }
.hmr-mix-list .hmr-mix-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; }
.hmr-mix-list button { background: none; border: 1px solid #57a8ff; color: #e8ddff; border-radius: 7px; min-width: 26px; height: 24px; cursor: pointer; font-size: 0.78rem; line-height: 1; }
.hmr-mix-hint { color: #a9cdf5; font-size: 0.83rem; font-weight: 700; margin: 0.7rem 0 0.35rem; }
.hmr-catalog { list-style: none; margin: 0; padding: 0; max-height: 208px; overflow-y: auto; }
.hmr-catalog li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.3rem; border-bottom: 1px solid #402f54; }
.hmr-catalog li.hmr-cat-head { display: block; padding: 0.5rem 0.3rem 0.25rem; border-bottom: none; color: #ff7518; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hmr-catalog .hmr-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; }
.hmr-catalog button { background: #402f54; border: 1px solid #57a8ff; color: #ffd9a0; font-weight: 700; font-size: 0.8rem; border-radius: 999px; padding: 0.28rem 0.7rem; cursor: pointer; white-space: nowrap; }
.hmr-catalog button.added { background: #1e5c2e; border-color: #2f8f4a; color: #c9f5d2; cursor: default; }
.hmr-music-row { margin: 0.55rem 0 0; }
.hmr-music-link { color: #ff7518; font-weight: 800; font-size: 0.92rem; text-decoration: none; }
.hmr-music-link:hover { text-decoration: underline; }

/* ============ z64: PHONE NAV — EQUAL SHARES + BIGGER BUTTONS, and HOMEPAGE HERO ORDER (Dan, Oct 22) ====
   Two phone fixes, one section, last word in the cascade.
   1) NAV SPACING + SIZE. Dan's screenshot (admin stats page, iPhone):
      the first labels run together — WATCH/MAP/NEARBY/TOURS/DIY nearly
      touching — while the rest spread out. Measured root cause in a
      headless render of the z63 code at 390px: the row is packed
      exactly full, so space-between has ZERO slack to distribute and
      every inter-box gap collapses to the 0.12rem floor (1.90px);
      worse, the buttons size to their CONTENT (flex 0 1 auto), so the
      boxes are wildly unequal (Map 14.6px wide vs DIY Costumes 44.3px)
      and several labels are WIDER than their own box — measured
      label-to-label distances: 1.11, 0.96, -0.22 (overlap!), 2.91,
      3.89, 0.90, 0.89, 1.90, 1.90 at 390px; five pairs touch or
      overlap at 360px. Fix, structural: the Events artwork keeps a
      fixed slot and the ten buttons become EQUAL flex shares
      (flex: 1 1 0; min-width: 0) with one fixed 3px gap — box gaps
      are then uniform BY CONSTRUCTION at any width, every label is
      centred in an identical box, and nothing can overflow.
      SIZE (Dan: "make the buttons bigger"): icons 16px -> 25px at
      390px class widths, and every label moves from its crammed
      content-width box (Map's was 14.6px) into a full 25.9px share
      at the same 0.40rem — the label font itself is capped there by
      the widest word, COSTUMES (~29px of ink), which must fit its
      share without touching its neighbours. That icon size is the
      largest the row's geometry allows: the row is ~379px wide at
      390px viewport; the GIF at a modestly trimmed 90x27 (still ~3.6x
      a button's width, still the row's anchor) plus 10 x 3px gaps
      leaves a 25.9px share per button. 34px icons would need
      10 x 34 + 90 + gaps > 460px of row — impossible in a single
      nowrap row alongside the artwork at this viewport width.
      Narrower phones step down proportionally (360px class: 22px
      icons, GIF 86.7x26); wider phones step up (420px+: 28px icons).
      Desktop and the landscape slim row are untouched.
   2) HOMEPAGE HERO ORDER (phone only). The search block lives
      inside .hero-split directly after .hero-intro (index.html) —
      since Oct 23 that block is the combined .hm-find (heading +
      simple search bar + Use my location + Choose my town), one
      node on every viewport. On phones the "search" grid area seats
      it directly under the headline panel and above the video:
      headline -> find block -> video -> rest. */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav { justify-content: flex-start; gap: 3px; }
  .site-header.v2 .header-nav a.events-link { flex: 0 0 auto; }
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 27px; }
  .site-header.v2 .header-nav a.navbtn {
    flex: 1 1 0; min-width: 0; padding: 0;
    font-size: 0.40rem; letter-spacing: 0; gap: 0.14rem;
  }
  .site-header.v2 .header-nav a.navbtn img { width: 25px; height: 25px; }
  .site-header.v2 .header-nav a.navbtn span { white-space: normal; text-align: center; line-height: 1.15; }
  /* One-word-too-wide exception: COSTUMES is ~36px of ink at 0.40rem —
     wider than any equal share — so this one label steps down a size
     rather than touch GAMES. Shares and gaps stay identical. */
  .site-header.v2 .header-nav a.navbtn[href="/diy-costumes"] span { font-size: 0.34rem; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 26px; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.38rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 22px; height: 22px; }
  .site-header.v2 .header-nav a.navbtn[href="/diy-costumes"] span { font-size: 0.31rem; }
}
@media (max-width: 340px) and (orientation: portrait) {
  .site-header.v2 .header-nav a.navbtn { font-size: 0.38rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 18px; height: 18px; }
}
@media (min-width: 420px) and (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav a.navbtn { font-size: 0.42rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 28px; height: 28px; }
  .site-header.v2 .header-nav a.navbtn[href="/diy-costumes"] span { font-size: 0.36rem; }
}
@media (max-width: 760px) {
  .hero-split { grid-template-areas: "headline" "vtstrip" "video" "top10home" "strip" "social" "sponsor" "townreq"; }
}

/* ============ z65: PHONE NAV — TWO ROWS OF FIVE (Dan, Oct 22; supersedes the z64 single row) ====
   Dan's call, verbatim: "I don't think we should have 10 buttons in
   a row in the phone but a row of 5 over the next 5 so we can have
   room and size." Phone portrait only — desktop/laptop keep the
   single row, landscape phones keep the slim row. Traffic framing
   (Dan, same evening): most visitors are on phones, so the phone
   first screen is the product — the two rows are sized to keep the
   whole first screen (band + both rows + headline + search) clean,
   with zero horizontal overflow.
   Layout: the nav becomes a grid. The Events & Parties artwork is
   a fixed left column spanning BOTH rows (grid-row: 1 / span 2),
   and the ten buttons flow 5-over-5 into equal 1fr columns to its
   right, in the existing order — Watch, Map, Nearby, Tours, DIY /
   DIY Costumes, Games, Top Haunts, Add Yours, About Us. Columns are
   equal by construction and the gaps are a uniform 6px on both
   axes, so distribution is even at any width.
   Room buys size: icons 25px -> 42px at 390px-class widths (38px
   at 360px-class, 46px on wide phones), labels 0.40rem -> 0.50rem
   (0.47rem at 360px). The artwork (120x36 at 390px class, 110x33
   at 360px) stays ~2.9x a button's width — still clearly the
   biggest element in the nav. COSTUMES keeps its one-size step
   down so the widest word never touches its neighbours.
   The z64 hero-order rules above stand untouched. */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav {
    display: grid;
    grid-template-columns: auto repeat(5, 1fr);
    column-gap: 6px; row-gap: 6px;
    align-items: center; justify-content: stretch; justify-items: stretch;
  }
  .site-header.v2 .header-nav a.events-link { grid-row: 1 / span 2; grid-column: 1; align-self: center; }
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 36px; }
  .site-header.v2 .header-nav a.navbtn {
    flex: none; min-width: 0; padding: 0;
    font-size: 0.50rem; letter-spacing: 0; gap: 0.14rem;
  }
  .site-header.v2 .header-nav a.navbtn img { width: 42px; height: 42px; }
  .site-header.v2 .header-nav a.navbtn span { white-space: normal; text-align: center; line-height: 1.15; }
  .site-header.v2 .header-nav a.navbtn[href="/diy-costumes"] span { font-size: 0.44rem; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 33px; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.47rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 38px; height: 38px; }
  .site-header.v2 .header-nav a.navbtn[href="/diy-costumes"] span { font-size: 0.43rem; }
}
@media (min-width: 560px) and (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 42px; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.54rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 46px; height: 46px; }
  .site-header.v2 .header-nav a.navbtn[href="/diy-costumes"] span { font-size: 0.50rem; }
}

/* ============ z65b: PHONE HOOK — BIGGER TYPE (Dan, Oct 22) ====
   Dan: the hook/tagline type is too small on the phone. Measured
   before: the two lines sat at their cqw clamp floors — line 1 at
   7.2px, line 2 at 10.24px — set nowrap, so the paragraph (227.7px
   of ink) overflowed the 205.6px band centre and squeezed between
   the logo and Frankenstein. Phone portrait only (desktop keeps
   its cqw sizing; landscape keeps the slim row): the lines may now
   wrap, and they grow into the space the 86px logo already gives
   the band — line 1 wraps to two lines, line 2 breaks cleanly
   between its two phrases ("NEW HAUNTS DAILY!!!" / "THE HAUNT
   STARTS HERE"), and the hook block (~75px) still fits under the
   logo's 86px, so the band — and the header — does not grow at
   all. Wording and the .hook-line / .tag-* colors are untouched. */
@media (max-width: 760px) and (orientation: portrait) {
  .header-band .header-hook .hook-l1 { font-size: clamp(0.80rem, 4.2cqw, 1.30rem); white-space: normal; }
  .header-band .header-hook .hook-l2 { font-size: clamp(0.94rem, 5.6cqw, 1.60rem); white-space: normal; margin-top: 0.12em; }
  /* The closer always starts on its own line: "NEW HAUNTS DAILY!!!"
     never shares a line with "THE HAUNT STARTS HERE". */
  .header-band .header-hook .hook-l2 .tag-a { display: block; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .header-band .header-hook .hook-l1 { font-size: 0.78rem; }
  .header-band .header-hook .hook-l2 { font-size: 0.88rem; }
}

/* ============ z66: PHONE HOOK — "NEW HAUNTS DAILY!!!" MOVES UNDER THE
   EVENTS GIF; CLOSER SPLIT; LAPTOP FRANKENSTEIN +50% (Dan, Oct 22) ====
   Three Dan orders from his z65 phone screenshot, one section.
   1) PHONE ONLY: "NEW HAUNTS DAILY!!!" leaves the top hook — Dan:
      "let's create space with the text on top, let's take out New
      Haunts Daily!!!" The .tag-a span is display:none inside the
      phone-portrait query below (desktop keeps it in the hook, and
      landscape keeps its standing behaviour). The freed line lets
      the closer breathe: hook-l2's margin-top grows 0.12em -> 0.30em.
      Type sizes are NOT shrunk back.
   2) PHONE ONLY: the phrase reappears as .events-daily, a span inside
      the Events & Parties anchor, stacked under the GIF in the nav's
      left column (the column spans both button rows; GIF + text are
      centred as one unit). .events-daily is display:none globally,
      so it exists ONLY in phone portrait — never duplicated on
      desktop, never in landscape. Lavender #8fd8ff (its hook color),
      Creepster (the header display font), two balanced lines
      ("NEW HAUNTS" / "DAILY!!!"). Its max-width stays under the
      GIF's width (120px at 390 class, 110px at 360 class) so the
      grid's auto column — and every button share — is untouched.
   3) PHONE ONLY: the closer splits — "THE HAUNT STARTS" (.tag-b +
      .tag-c) goes lavender, only "HERE" (.tag-d, split out of the
      old .tag-c in base.html) stays red. Desktop keeps the whole
      closer red: the global .tag-d rule below paints it the same
      #eb7a2c as .tag-c, and only the phone query recolors b/c.
   4) LAPTOP/DESKTOP ONLY: Frankenstein grows 50% — 62px -> 93px
      height (the min-width:761px rule near z58 set 62px). Phone
      (48px) and landscape (53px) rules are elsewhere and untouched.
      The band centre narrows by the extra width; the desktop hook
      is cqw-sized against that centre (z49), so both lines rescale
      on their own and stay one line each, exactly as before. */
.header-band .header-hook .tag-d { color: #e01e26; }
.events-daily { display: none; }
@media (min-width: 761px) and (min-height: 501px) {
  /* min-height keeps this off landscape phones: their slim-row rule
     (landscape, max-height 500px) must keep Frank at 53px. */
  .header-band .header-frank { height: 93px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .header-band .header-hook .hook-l2 .tag-a { display: none; }
  .header-band .header-hook .hook-l2 { margin-top: 0.30em; }
  .header-band .header-hook .tag-b { color: #8fd8ff; }
  .header-band .header-hook .tag-c { color: #8fd8ff; }
  .header-band .header-hook .tag-d { color: #e01e26; }
  .site-header.v2 .header-nav a.events-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  }
  .site-header.v2 .header-nav a.events-link .events-daily {
    display: block; font-family: "Creepster", cursive; color: #8fd8ff;
    font-size: 0.95rem; line-height: 1.12; text-align: center; letter-spacing: 0.02em;
    max-width: 112px; text-wrap: balance;
  }
  /* z75: PHONE ONLY — split the column copy: "NEW HAUNTS" goes red
     #eb7a2c, "DAILY!!!" stays lavender #8fd8ff (Dan, Oct 22 20:45).
     Colours live on the two spans (.nh-red / .nh-daily in base.html),
     per the standing hook-colour rule. Scoped to this phone-portrait
     query, so the desktop .tag-a (all-red since z72) and the closer
     below (.events-closer: lavender / HERE red) are untouched. This
     supersedes the z72 banner's aside that .events-daily "stays
     lavender" — only its first two words change. */
  .site-header.v2 .header-nav a.events-link .events-daily .nh-red { color: #eb7a2c; }
  .site-header.v2 .header-nav a.events-link .events-daily .nh-daily { color: #8fd8ff; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .site-header.v2 .header-nav a.events-link .events-daily { font-size: 0.86rem; max-width: 102px; }
}

/* ============ z67: LAPTOP HERO STACK (Dan, Oct 22) ============
   Inside the hero photo panel (.hero-intro), under the headline:
   Airbnb-style search pill, then Near-you, Trending and Text Alerts,
   each its own sub-block, centred with even spacing. The stack is
   desktop-only: below 761px it never renders and phones keep the
   original below-band modules exactly where they were. At >=761px
   the below-band copies hide, so each module appears exactly once. */
.hero-stack { display: none; }

@media (min-width: 761px) {
  .near-you:not(.hero-copy),
  .trending:not(.hero-copy),
  .top10-home:not(.hero-copy),
  .auto-tour-home:not(.hero-copy),
  .below-band-only { display: none; }
  /* z96: same one-copy rule for the three cards that moved into the
     hero panel (Tonight's Display / Daily Fright / Haunt Bracket). */
  .tonight-band:not(.hero-copy),
  .daily-band:not(.hero-copy),
  .bk-home-band:not(.hero-copy) { display: none; }

  .hero-stack {
    display: flex; flex-direction: column; gap: 1rem;
    margin-top: 0.6rem; text-align: left;
  }

  /* (The Airbnb-style search pill that used to sit here moved out
     on Oct 23 — Dan merged it with the locate panel and the phone
     search into the ONE combined .hm-find block under the headline;
     its styles went with it. See the Wave-2 section below.) */
  /* Sub-blocks: near-you and text-alerts keep their own panels;
     trending gets a translucent panel so its rows stay readable
     over the hero photo. */
  .hero-stack .near-you.hero-copy { margin: 0; }
  .hero-stack .top10-home.hero-copy {
    margin: 0; background: rgba(5, 8, 10, 0.72);
  }
  /* Auto Tour hero copy (STAGED): same compact in-panel treatment. */
  .hero-stack .auto-tour-home.hero-copy {
    margin: 0; background: rgba(5, 8, 10, 0.72);
  }
  .hero-stack .auto-tour-home h2 { font-size: 0.95rem; margin-bottom: 0.2rem; }
  .hero-stack .auto-tour-sub { font-size: 0.76rem; margin-bottom: 0.4rem; }
  .hero-stack .auto-tour-btn { padding: 0.4rem 0.55rem; }
  .hero-stack .auto-tour-btn-title { font-size: 0.85rem; }
  .hero-stack .top10-home h2 { font-size: 0.95rem; margin-bottom: 0.2rem; }
  .hero-stack .top10-home-sub { font-size: 0.76rem; margin-bottom: 0.4rem; }
  .hero-stack .top10-home-list a { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
  .hero-stack .top10-home-more { font-size: 0.85rem; }
  .hero-stack .trending.hero-copy {
    margin: 0; padding: 1rem;
    background: rgba(5, 8, 10, 0.72);
    border: 1px solid rgba(255, 117, 24, 0.25); border-radius: 14px;
  }
  .hero-stack .text-alerts { margin: 0 auto; width: 100%; }
}

/* ============ z68: LAPTOP HEADER BALANCE (Dan, Oct 22) ============
   Equal flank zones either side of the hook band: the logo centres
   in a 130px left zone and Frankenstein centres in a 130px right
   zone (his box widens; object-fit keeps the picture centred in it),
   so the hook band's centre lands on the banner centre. The old
   flanks totalled 165 + 93 = 258px; 2 x 130 = 260px, so the hook
   band keeps its width and the hook stays one line at its size.
   min-height guard: landscape phones keep their slim header. */
@media (min-width: 761px) and (min-height: 501px) {
  .header-band .brand {
    flex: 0 0 130px; display: flex; align-items: center; justify-content: center;
  }
  /* Retire the z58 translateX(-1px) nudge — it was tuned for the old
     165px zone; in the 130px zone flex centring is exact without it.
     (Landscape phones are outside this media and keep their nudge.) */
  .header-band .brand-logo { transform: none; }
  .header-band .header-frank {
    flex: 0 0 130px; width: 130px; height: 93px; object-position: center;
    margin-left: 0; /* the old 0.3rem tagline margin skewed the band centre */
  }
}

/* ============ z69: PHONE CLOSER MOVES TO THE NAV COLUMN (Dan, Oct 22) ====
   Phone portrait only: "THE HAUNT STARTS HERE" leaves the top hook
   (the hook keeps only "The Halloween Map... Build Your Night.") and
   joins the left nav column under NEW HAUNTS DAILY!!! — stack:
   Events GIF / NEW HAUNTS DAILY!!! / THE HAUNT STARTS HERE, with the
   split colours from the z66 brief (THE HAUNT STARTS lavender, HERE
   red). Desktop and landscape never render the column copy and keep
   the closer in the top hook, all red, exactly as before. */
.events-closer { display: none; }
.events-closer .ec-a { color: #8fd8ff; }
.events-closer .ec-b { color: #eb7a2c; }

@media (max-width: 760px) and (orientation: portrait) {
  .header-band .header-hook .hook-l2 { display: none; }
  .events-closer {
    display: block; font-family: "Creepster", cursive; font-weight: 400;
    font-size: 0.88rem; line-height: 1.12; text-align: center;
    max-width: 112px; text-wrap: balance; letter-spacing: 0.02em;
  }
}
@media (max-width: 380px) and (orientation: portrait) {
  .events-closer { font-size: 0.82rem; max-width: 102px; }
}

/* ============ z72: TAG-A RED ON DESKTOP (Dan, Oct 22) ============
   "NEW HAUNTS DAILY!!!" (.tag-a) joins the red words on desktop:
   line 2 becomes NEW HAUNTS DAILY!!! red / THE HAUNT STARTS lavender
   / HERE red. Desktop media only — the phone's column copy
   (.events-daily) is a different element and stays lavender. The
   short-wide reassertion block at the end of this file carries the
   same colour for short desktop windows. */
@media (min-width: 761px) and (min-height: 501px) {
  .header-band .header-hook .tag-a { color: #e01e26; }
}

/* ============ z70: DESKTOP CLOSER SPLIT + LAVENDER PILL (Dan, Oct 22) ====
   (1) The desktop top-hook closer gets the phone's split treatment
   (superseding Dan's Oct 22 13:59 all-red-desktop rule): "THE HAUNT
   STARTS" (.tag-b + .tag-c) goes lavender #8fd8ff — the site's
   lavender, same value as NEW HAUNTS DAILY!!! — and only "HERE"
   (.tag-d) stays red #eb7a2c. Scoped to the desktop band with the
   usual min-height guard, so phone and landscape computed styles are
   untouched (phone's closer already carries this split in its new
   nav-column home). (2) The hero search pill's background switches
   from bone cream #efe3cc to the same lavender — edited in place in
   the z67 block above; dark segment text and the orange Search
   button are unchanged and stay legible on it. */
@media (min-width: 761px) and (min-height: 501px) {
  .header-band .header-hook .tag-b { color: #8fd8ff; }
  .header-band .header-hook .tag-c { color: #8fd8ff; }
}

/* ============ z71: COMPACT HERO SUB-BLOCKS (Dan, Oct 22) ============
   Laptop only (the .hero-stack renders >=761px; phones keep the
   full-size below-band modules). Near-you, Trending and Text Alerts
   scale to ~60% of their z67 footprint — tighter paddings, smaller
   headings/chips/cards/form rows — so the lavender pill dominates
   the hero and more of the Halloween backdrop photo shows. All
   content, fields and tap targets stay; smallest copy (views line,
   consent) stays >= ~11px. Headline and pill untouched. */
@media (min-width: 761px) {
  .hero-stack { gap: 0.7rem; }

  /* Near you tonight — compact */
  .hero-stack .near-you.hero-copy { padding: 0.55rem 0.7rem; }
  .hero-stack .near-you h2 { font-size: 0.92rem; margin-bottom: 0.12rem; }
  .hero-stack .near-you-sub { font-size: 0.76rem; margin-bottom: 0.35rem; }
  .hero-stack .near-you-mine { font-size: 0.85rem; margin-bottom: 0.35rem; }
  .hero-stack .town-chips { gap: 0.3rem; margin-bottom: 0.4rem; }
  .hero-stack .town-chip { padding: 0.22rem 0.5rem; font-size: 0.76rem; gap: 0.3rem; }
  .hero-stack .town-chip .chip-n { font-size: 0.7rem; }
  .hero-stack .near-you-actions { gap: 0.4rem; }
  .hero-stack .near-you .btn { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

  /* Trending today — compact. The rail's height is set by its tallest
     card, and one long event title ran 7 lines — so hero titles clamp
     to 2 lines (full title lives on the pin page), meta/views go
     single-line-tight, and the fat 0.9rem paragraph margins go. */
  .hero-stack .trending.hero-copy { padding: 0.6rem 0.7rem; }
  .hero-stack .trending h2 { font-size: 0.95rem; margin-bottom: 0.4rem; }
  .hero-stack .trending .rail { gap: 0.5rem; padding-bottom: 0.25rem; align-items: flex-start; }
  .hero-stack .trending .rail-card { flex-basis: 148px; }
  .hero-stack .trending .card-body { padding: 0.45rem 0.6rem; }
  .hero-stack .trending .card-body h3 {
    font-size: 0.82rem; margin-bottom: 0.15rem; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-stack .trending .card-body .meta,
  .hero-stack .trending .views-line { font-size: 0.72rem; line-height: 1.25; }
  .hero-stack .trending .card-body .meta { margin: 0 0 0.2rem; white-space: nowrap; }
  .hero-stack .trending .views-line { margin: 0.15rem 0 0; white-space: nowrap; }
  .hero-stack .trending .rank-badge { font-size: 0.7rem; padding: 0.1rem 0.4rem; top: 0.35rem; left: 0.35rem; }
  .hero-stack .trending .tour-add-btn { font-size: 0.75rem; padding: 0.22rem 0.55rem; margin-top: 0.3rem; }

  /* Text alerts — compact: the form goes 3-up (phone / ZIP / town /
     radius share rows with the two interest checks) instead of
     stacking a near-empty checks row. */
  .hero-stack .text-alerts { padding: 0.55rem 0.75rem; max-width: 640px; }
  .hero-stack .text-alerts h3 { font-size: 0.92rem; }
  .hero-stack .text-alerts p { font-size: 0.78rem; margin-bottom: 0.25rem; }
  .hero-stack .text-alerts-form { gap: 0.3rem; margin-top: 0.35rem; grid-template-columns: 1fr 1fr 1fr; }
  .hero-stack .text-alerts-form input,
  .hero-stack .text-alerts-form select { padding: 0.32rem 0.5rem; font-size: 0.83rem; }
  .hero-stack .text-alerts-form .ta-radius { font-size: 0.75rem; gap: 0.15rem; }
  .hero-stack .text-alerts-form .ta-check { font-size: 0.8rem; }
  .hero-stack .text-alerts-form .btn { padding: 0.35rem 0.9rem; font-size: 0.88rem; }
  .hero-stack .text-alerts .ta-consent { margin-top: 0.35rem; line-height: 1.32; }
}

/* ============ z72: SHORT-WIDE DESKTOP HEADER FIX (Dan, Oct 22) ====
   BUG: the landscape slim-row rules key on (orientation: landscape)
   and (max-height: 500px) with NO width cap, so a wide-but-short
   DESKTOP window (Dan's laptop: >1440 wide, <=500 CSS px tall) got
   the phone-slim header — 117px brand zone, 95px logo with the old
   -1px nudge, 53px Frankenstein, hook line 2 hidden, hook band
   centre off by +30px. At >=1024px wide the window is never a
   phone, so this block reasserts the full desktop band (z68 zones
   and sizes, z52 hook clamps, z70/z72 hook colours) over the slim
   rules. Landscape phones (<=960px wide) never match and keep the
   slim header untouched. */
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
  .header-band .brand {
    flex: 0 0 130px; width: 130px; display: flex; align-items: center; justify-content: center;
  }
  .header-band .brand-logo {
    height: 113px; width: 113px; max-height: 113px; max-width: 113px; transform: none;
  }
  .header-band .header-frank {
    flex: 0 0 130px; width: 130px; height: 93px; margin-left: 0; object-position: center;
  }
  .header-band .header-hook .hook-l1 { font-size: clamp(0.45rem, 2.70cqw, 3.43rem); }
  .header-band .header-hook .hook-l2 { display: block; font-size: clamp(0.64rem, 4.95cqw, 5.96rem); }
  .header-band .header-hook .tag-a { color: #e01e26; }
  .header-band .header-hook .tag-b { color: #8fd8ff; }
  .header-band .header-hook .tag-c { color: #8fd8ff; }
}

/* ============ z74: /events TEXT-ALERTS COMPACT (Dan, Oct 22) =======
   The /events copy of the signup panel only (scoped .ev-alerts; the
   homepage hero + below-band copies keep their own sizing). The slab
   before the filters shrinks by compacting the air — padding, gaps,
   heading sizes and a wider, reflowing form — never the fields'
   usability. Phone follows Dan's comfort floor: input/select text at
   16px (no iOS tap-zoom), field boxes and the submit button at least
   44px tall; the fields themselves do not shrink. */
/* Laptop: 4-up form (phone spans, ZIP/town/radius share a row, the two
   checks and the button share the last row), panel widened so the
   consent copy wraps to fewer lines. */
@media (min-width: 761px) {
  .ev-alerts .text-alerts { max-width: 700px; margin: 0.7rem auto; padding: 0.55rem 0.8rem; }
  .ev-alerts .text-alerts h3 { font-size: 0.92rem; margin: 0 0 0.1rem; }
  .ev-alerts .text-alerts p { font-size: 0.78rem; margin: 0 0 0.2rem; }
  .ev-alerts .text-alerts-form { grid-template-columns: repeat(4, 1fr); gap: 0.3rem; margin-top: 0.3rem; }
  .ev-alerts .text-alerts-form input,
  .ev-alerts .text-alerts-form select { padding: 0.32rem 0.5rem; font-size: 0.83rem; }
  .ev-alerts .text-alerts-form .ta-radius {
    flex-direction: row; align-items: center; grid-column: span 2;
    font-size: 0.75rem; gap: 0.35rem;
  }
  .ev-alerts .text-alerts-form .ta-radius select { flex: 1; }
  .ev-alerts .text-alerts-form .ta-check { font-size: 0.8rem; }
  .ev-alerts .text-alerts-form .btn { grid-column: span 2; padding: 0.35rem 0.9rem; font-size: 0.88rem; }
  .ev-alerts .text-alerts .ta-consent { font-size: 0.68rem; margin-top: 0.35rem; line-height: 1.3; }
}
/* Phone: same air-compacting, floor-compliant fields. ZIP + Town share
   a row; the radius label sits beside its select; the two interest
   checks sit side by side. */
@media (max-width: 760px) {
  .ev-alerts .text-alerts { margin: 0.7rem auto; padding: 0.6rem 0.7rem; }
  .ev-alerts .text-alerts h3 { font-size: 1rem; line-height: 1.15; margin: 0 0 0.1rem; }
  .ev-alerts .text-alerts p { font-size: 0.85rem; line-height: 1.25; margin: 0 0 0.2rem; }
  .ev-alerts .text-alerts-form { grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.35rem; }
  .ev-alerts .text-alerts-form input,
  .ev-alerts .text-alerts-form select { font-size: 16px; min-height: 44px; }
  .ev-alerts .text-alerts-form .ta-radius {
    flex-direction: row; align-items: center; grid-column: 1 / -1;
    font-size: 0.85rem; gap: 0.4rem;
  }
  .ev-alerts .text-alerts-form .ta-radius select { flex: 1; }
  .ev-alerts .text-alerts-form .ta-check { min-height: 40px; }
  .ev-alerts .text-alerts-form .btn { min-height: 44px; }
  .ev-alerts .text-alerts .ta-consent { font-size: 0.72rem; margin-top: 0.4rem; line-height: 1.3; }
}
/* Narrow phones: ZIP and Town stack full-width (Dan, Oct 22); the
   checks stay side by side. */
@media (max-width: 370px) {
  .ev-alerts .text-alerts-form input[name="zip"],
  .ev-alerts .text-alerts-form input[name="town"] { grid-column: 1 / -1; }
}

/* ============ Wave 3, Item 5: "Tonight" strip =====================
   Slim one-line band (countdown + what's on tonight near the anchor
   town) on the homepage — directly above Tonight's Display, at the
   band's breakout width on desktop — and under town-page headers.
   Existing design language only: the signup panels' purple gradient
   and border, Tonight's gold accent, orange counts. */
.tonight-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 1.1rem;
  background: linear-gradient(135deg, #182630 0%, #33284e 100%);
  border: 1px solid #402f54; border-radius: 12px;
  padding: 0.55rem 0.95rem; margin: 0.9rem 0;
  font-size: 0.93rem; line-height: 1.35;
}
.tonight-strip .ts-count { color: #f9e5c2; font-weight: 800; white-space: nowrap; }
.tonight-strip a.ts-link { color: #f3eefc; text-decoration: none; white-space: nowrap; }
.tonight-strip a.ts-link:hover { text-decoration: underline; }
.tonight-strip .ts-n { color: #ff7518; }
.tonight-strip .ts-note { color: #a9cdf5; font-size: 0.78rem; }
@media (min-width: 1000px) {
  /* Homepage only (the partial adds .ts-wide there): align with the
     Tonight's Display band's edge-to-edge breakout. */
  .tonight-strip.ts-wide {
    width: min(1060px, calc(100vw - 2rem));
    position: relative; left: 50%; transform: translateX(-50%);
    box-sizing: border-box;
  }
}
@media (max-width: 560px) {
  .tonight-strip { font-size: 0.86rem; gap: 0.3rem 0.8rem; padding: 0.5rem 0.75rem; }
  .tonight-strip a.ts-link { white-space: normal; }
}

/* ============ Wave 3, Item 9: pin-page text-alert prompt ==========
   The shared _text_alerts.html form on pin pages only. EVERY rule is
   scoped under .pin-alerts, so the homepage copies and the /events
   copy (including its z74 .ev-alerts scoped shrink) are untouched.
   The prompt hugs the pin column's left edge like the rest of the
   detail content (the generic .text-alerts block centers itself),
   runs a touch tighter than the standalone block, and gains a gold
   edge + soft orange glow when .ta-highlight lands after the first
   video play (see hmLoadTikTok in base.html). */
.pin-alerts .text-alerts {
  margin: 0.9rem 0; padding: 0.85rem 1rem;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}
.pin-alerts .text-alerts h3 { font-size: 1.04rem; text-align: left; }
.pin-alerts .text-alerts p { text-align: left; }
.pin-alerts .text-alerts .newsletter-success { text-align: left; }
.pin-alerts .text-alerts.ta-highlight {
  border-color: #e6b16d;
  box-shadow: 0 0 0 3px rgba(255, 117, 24, 0.28), 0 6px 22px rgba(0, 0, 0, 0.35);
}
@media (max-width: 760px) {
  /* Same phone comfort floor as the /events copy: 16px fields (no iOS
     tap-zoom), 44px targets. Scoped to .pin-alerts, as above. */
  .pin-alerts .text-alerts-form input,
  .pin-alerts .text-alerts-form select { font-size: 16px; min-height: 44px; }
  .pin-alerts .text-alerts-form .btn { min-height: 44px; }
  .pin-alerts .text-alerts-form .ta-check { min-height: 40px; }
}

/* ============ Wave 4, Item 4: Haunt Passport =====================
   The collection loop surfaced: a homepage chip in the Tonight
   cluster, the /passport page (header stats, per-town progress bars,
   a gold "Town conquered" completion state worth screenshotting),
   and the passport link inside the pin page's seen-strip. Existing
   language only: the signup panels' purple gradient, Tonight's gold
   (#e6b16d), the orange progress fill the seen-strip already uses. */
.passport-chip {
  display: inline-block; margin: 0.15rem 0 0.6rem;
  background: linear-gradient(135deg, #182630 0%, #33284e 100%);
  border: 1px solid #402f54; border-radius: 999px;
  padding: 0.42rem 0.9rem; color: #f3eefc; text-decoration: none;
  font-size: 0.9rem; font-weight: 700;
}
.passport-chip[hidden] { display: none; }
.passport-chip:hover { border-color: #e6b16d; text-decoration: underline; }
.seen-passport { margin: 0.35rem 0 0; font-size: 0.85rem; }
.seen-passport a { color: #ff7518; font-weight: 700; text-decoration: none; }
.seen-passport a:hover { text-decoration: underline; }
.passport-stats { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1rem 0; }
.passport-stats[hidden] { display: none; }
.pstat {
  flex: 1 1 100px; text-align: center;
  background: linear-gradient(160deg, #14222b, #0e1a20);
  border: 1px solid #402f54; border-radius: 14px; padding: 0.8rem 0.5rem;
}
.pstat-n { display: block; font-size: 1.7rem; font-weight: 900; color: #f9e5c2; line-height: 1.1; }
.pstat-l { display: block; font-size: 0.8rem; color: #a9cdf5; margin-top: 0.15rem; }
.passport-empty {
  background: linear-gradient(135deg, #182630 0%, #33284e 100%);
  border: 1px solid #402f54; border-radius: 14px;
  padding: 1rem 1.1rem; margin: 1rem 0;
}
.passport-empty[hidden] { display: none; }
.passport-empty-line { color: #f9e5c2; font-weight: 700; margin: 0 0 0.4rem; }
.passport-empty-sub { color: #a9cdf5; margin: 0 0 0.5rem; font-size: 0.92rem; }
.passport-loading { color: #a9cdf5; }
.passport-loading[hidden] { display: none; }
.passport-rows { margin: 0.6rem 0 1.2rem; }
.prow {
  background: linear-gradient(160deg, #14222b, #0e1a20);
  border: 1px solid #402f54; border-radius: 12px;
  padding: 0.65rem 0.9rem; margin: 0 0 0.55rem;
}
.prow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; }
.prow-town { color: #f9e5c2; font-weight: 800; }
.prow-count { color: #a9cdf5; font-size: 0.85rem; white-space: nowrap; }
.prow-bar { max-width: none; margin: 0.45rem 0 0.4rem; }
.prow-link { color: #ff7518; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.prow-link:hover { text-decoration: underline; }
/* Completion state: gold frame + warm gradient + trophy (set in the
   row's town name by the renderer) — built to be screenshotted. */
.prow-done {
  border: 2px solid #e6b16d;
  background: linear-gradient(160deg, #3a2a10, #14222b);
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.22), 0 6px 22px rgba(0, 0, 0, 0.35);
}
.prow-done .prow-count { color: #e6b16d; font-weight: 800; }
.prow-done .prow-link { color: #e6b16d; }

/* ============ Wave 4, Item 6: Daily Fright =======================
   The canonical daily drop: a homepage band in the Tonight cluster
   (Tonight strip -> Tonight's Display -> Daily Fright band -> the
   Item 4 passport chip) and the /daily page. Same language as the
   Tonight modules: purple gradient panels, gold frame on the big
   display card (the shared .tonight-card), orange accents. */
.daily-band {
  background: linear-gradient(135deg, #182630 0%, #33284e 100%);
  border: 1px solid #402f54; border-radius: 12px;
  padding: 0.6rem 0.95rem; margin: 0.15rem 0 0.6rem;
}
@media (min-width: 1000px) {
  /* Align with the Tonight's Display band's edge-to-edge breakout. */
  .daily-band {
    width: min(1060px, calc(100vw - 2rem));
    position: relative; left: 50%; transform: translateX(-50%);
    box-sizing: border-box;
  }
}
.daily-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; }
.daily-band-title { color: #f9e5c2; font-weight: 800; text-decoration: none; font-size: 1rem; }
.daily-band-title:hover { text-decoration: underline; }
.daily-band .fright-streak-flame { color: #ff7518; font-weight: 800; font-size: 0.9rem; }
.daily-band-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-top: 0.3rem; }
.daily-band-links a.daily-mini { color: #f3eefc; text-decoration: none; font-size: 0.92rem; }
.daily-band-links a.daily-mini:hover { text-decoration: underline; }
.fright-streak { color: #ff7518; font-weight: 800; }
.fright-streak-flame[hidden] { display: none; }
.daily-display .daily-card { margin: 1rem 0; padding: 1rem 1.1rem; gap: 1.1rem; border-radius: 16px; }
.daily-display .daily-card img { width: 150px; height: 150px; border-radius: 12px; }
.daily-display .tonight-title { font-size: 1.45rem; }
.daily-display .tonight-card:hover .tonight-cta { background: #ffa25e; }
@media (max-width: 560px) {
  .daily-display .daily-card { padding: 0.75rem 0.85rem; gap: 0.85rem; }
  .daily-display .daily-card img { width: 96px; height: 96px; }
  .daily-display .tonight-title { font-size: 1.15rem; }
  .daily-display .tonight-cta { display: none; }
}
.daily-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.4rem 0 1rem; }
.daily-drop-card {
  flex: 1 1 260px;
  background: linear-gradient(160deg, #14222b, #0e1a20);
  border: 1px solid #402f54; border-radius: 14px; padding: 0.9rem 1rem;
}
.daily-drop-card h2 { margin: 0 0 0.4rem; font-size: 1.15rem; color: #f9e5c2; }
.daily-drop-card p { color: #a9cdf5; margin: 0 0 0.6rem; }
.daily-drop-card .daily-trivia-q { color: #f9e5c2; font-weight: 700; font-size: 1.02rem; }
.daily-foot { color: #a9cdf5; font-size: 0.9rem; }

/* Item 10 — lazy map placeholder (detail pages). The placeholder sits in
   the exact .detail-map box (height from .detail-map), so the real
   Leaflet map swapping in causes no layout shift. On CDN failure the
   .hm-map-failed box stays as a static panel with a directions link. */
.hm-map-lazy { position: relative; overflow: hidden; background: #14102a; }
.hm-map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; text-align: center; padding: 1rem; }
.hm-map-ph-pin { font-size: 1.8rem; }
.hm-map-ph-text { color: #a9cdf5; font-size: 0.95rem; }
.hm-map-ph-link { color: #ffa25e; font-weight: 700; text-decoration: none; }
.hm-map-ph-link:hover { text-decoration: underline; }
.hm-map-lazy.hm-map-ready { background: #05080a; }

/* VT/TV slim strip (Dan Oct 23): replaces the two big stacked hero pills
   (~125px of full-width hero space) with one thin two-up row under the
   header nav, homepage only — about a quarter of the old footprint.
   Brand treatment kept: VT = accent orange / dark text (ex .btn-big),
   TV = purple gradient + #57a8ff border / white text (ex inline pill). */
.vt-tv-strip { display: flex; gap: 0.4rem; margin: 0 0 0.9rem; }
.vt-tv-strip a {
  flex: 1 1 0; min-width: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  gap: 0.3rem; padding: 0.28rem 0.2rem; border-radius: 999px;
  font-size: 0.75rem; line-height: 1.25; font-weight: 800;
  text-decoration: none; text-align: center; white-space: nowrap;
}
.vt-tv-strip .vt-btn { background: var(--accent); color: #1a0f00; }
.vt-tv-strip .tv-btn { background: linear-gradient(90deg, #33284e, #402f54); border: 2px solid #57a8ff; color: #fff; }
.vt-tv-strip .music-btn { background: #0a1216; border: 2px solid var(--accent); color: #ffd9a8; }
.vt-tv-strip .movies-btn { background: #0d0205; border: 2px solid #c1122f; color: #ffe9d6; }
.vt-tv-strip .art-btn { background: #14091f; border: 2px solid #ff5da2; color: #ffd9ec; }
/* 7-across fit (Dan, Oct 23): Art button added after HauntMap Movies —
   base strip type/padding/gap tuned down (0.85rem/0.5rem/0.5rem ->
   0.75rem/0.2rem/0.4rem) so every stacked label, icon included (widest:
   "Nationwide"), fits inside its pill in the 720px column; the phone
   strip's own sizes below are tuned the same way (0.5rem -> 0.46rem,
   gap 0.2rem -> 0.15rem) so "Nationwide" fits its bubble at 390 too. */
.vt-tv-strip .markets-btn { background: #0b1f14; border: 2px solid #2fbf71; color: #d9ffe9; }
.vt-tv-strip .top100-btn { background: linear-gradient(90deg, #4a2d00, #8a5a00); border: 2px solid #ffb02e; color: #fff3d6; }
/* ============ strip-fit (Dan, Oct 23) ============
   1) LABEL FIT: at phone width the one-line labels spilled outside
   their bubbles ("HauntMap" wider than the TV/Music/Movies pills,
   "Nationwide" past the gold pill's edge). Labels are now
   span-structured (icon + line spans); on phone each button stacks
   its icon over centered label lines sized to fit inside the bubble.
   2) PHONE RELOCATION: on phone the strip leaves its seat above the
   hero and sits DIRECTLY UNDER the hero panel — the .vt-tv-strip-phone
   twin inside .hero-split (grid area "vtstrip", right after
   "headline"). The top copy is the >=761px seat only; exactly one
   copy shows per viewport. Laptop layout unchanged. */
.vt-tv-strip-phone { display: none; }
.hero-split .vt-tv-strip-phone { grid-area: vtstrip; }
/* Label lines stack at EVERY width: in the 720px content column the
   one-line labels never fit the ~108px laptop pills either ("Flea
   Markets & Pop-Ups" ran into "Top 100 Nationwide"). Stacked lines
   keep the same row, seat, colors and icons — the text just wraps
   inside its own bubble instead of spilling into the next one. */
.vt-tv-strip .vt-l1,
.vt-tv-strip .vt-l2,
.vt-tv-strip .vt-l3 { display: block; }
.vt-tv-strip a { white-space: normal; }
@media (max-width: 760px) {
  .vt-tv-strip-top { display: none; }
  .hero-split .vt-tv-strip-phone { display: flex; margin: 0; gap: 0.15rem; }
  .vt-tv-strip-phone a {
    flex-direction: column; justify-content: center;
    gap: 0.14rem; padding: 0.34rem 0;
    line-height: 1.12; font-size: 0.46rem;
  }
  .vt-tv-strip-phone .vt-ic { font-size: 0.92rem; line-height: 1; }
}

/* ============ bubbles-bottom (Dan, Oct 26) ============
   Third copy of the bubble strip, seated at the bottom of EVERY
   page just above the footer (base.html, last child of <main>; it
   began as a homepage-feed copy in index.html and moved sitewide
   the same day). All base .vt-tv-strip
   rules apply as-is; these rules only seat the copy: desktop mirrors
   the top copy's fit trim, phone mirrors the phone twin's FINAL
   wrap layout (4-up rows, icon over stacked label lines, labels
   fully inside their bubbles, nothing off-screen) without needing
   the .hero-split seat. */
.vt-tv-strip-bottom { margin: 1.1rem 0 0.5rem; }
@media (min-width: 761px) {
  .vt-tv-strip-bottom a { font-size: 0.68rem; }
}
@media (max-width: 760px) {
  .vt-tv-strip-bottom { flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
  .vt-tv-strip-bottom a {
    flex: 0 1 calc((100% - 3 * 0.35rem) / 4);
    flex-direction: column; justify-content: center;
    gap: 0.14rem; padding: 0.42rem 0.1rem;
    font-size: 0.52rem; line-height: 1.18;
  }
  .vt-tv-strip-bottom .vt-ic { font-size: 1rem; line-height: 1; }
}


/* ============ z80: PHONE MODULE DIET (Dan, Oct 23) ============
   Phone only (<=760px); desktop rendering untouched. Two homepage
   modules shrink hard at phone width:
   - "Near you tonight" panel: town pills flow 2-up on single
     lines, smaller heading/intro (intro now fits 2 lines at the
     smaller size), one slim action row.
   - "Trending today": rail cards go 218px -> 124px wide, titles
     clamp to 2 lines, meta/views/tour button slim down.
   Smallest text stays >= ~11px (0.7rem); tap targets stay usable. */
@media (max-width: 760px) {
  .near-you:not(.hero-copy) { margin: 0.6rem 0 0.25rem; padding: 0.45rem 0.6rem 0.5rem; border-radius: 12px; }
  .near-you:not(.hero-copy) h2 { font-size: 0.92rem; line-height: 1.15; margin: 0 0 0.1rem; }
  .near-you:not(.hero-copy) .near-you-head { gap: 0.4rem; }
  .near-you:not(.hero-copy) .near-you-change { font-size: 0.7rem; }
  .near-you:not(.hero-copy) .near-you-sub { font-size: 0.72rem; line-height: 1.2; margin: 0 0 0.35rem; }
  .near-you:not(.hero-copy) .near-you-mine { font-size: 0.75rem; margin: 0 0 0.4rem; }
  .near-you:not(.hero-copy) .town-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; margin-bottom: 0.35rem; }
  .near-you:not(.hero-copy) .town-chip {
    justify-content: center; gap: 0.2rem;
    padding: 0.18rem 0.14rem; font-size: 0.7rem; line-height: 1.15;
    border-radius: 999px; text-align: center; white-space: nowrap; overflow: hidden;
  }
  .near-you:not(.hero-copy) .town-chip .chip-n { font-size: 0.7rem; line-height: 1.15; white-space: nowrap; }
  .near-you:not(.hero-copy) .near-you-actions { flex-wrap: nowrap; gap: 0.4rem; }
  .near-you:not(.hero-copy) .near-you-actions .btn {
    flex: 1 1 0; text-align: center; white-space: nowrap;
    padding: 0.26rem 0.4rem; font-size: 0.75rem; line-height: 1.25;
  }

  .trending:not(.hero-copy) { margin: 0.7rem 0 0.1rem; }
  .trending:not(.hero-copy) h2 { font-size: 0.95rem; margin: 0 0 0.35rem; }
  .trending:not(.hero-copy) .rail { gap: 0.45rem; padding-bottom: 0.3rem; }
  .trending:not(.hero-copy) .rail-card { flex-basis: 124px; }
  .trending:not(.hero-copy) .card-body { padding: 0.4rem 0.5rem 0.45rem; }
  .trending:not(.hero-copy) .card-body h3 {
    font-size: 0.78rem; line-height: 1.2; margin-bottom: 0.12rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .trending:not(.hero-copy) .card-body .meta { font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trending:not(.hero-copy) .views-line { font-size: 0.7rem; margin-top: 0.12rem; }
  .trending:not(.hero-copy) .tour-add-btn { font-size: 0.7rem; padding: 0.16rem 0.5rem; margin-top: 0.3rem; }
  .trending:not(.hero-copy) .rank-badge { font-size: 0.68rem; padding: 0.08rem 0.4rem; top: 0.35rem; left: 0.35rem; }
  .trending:not(.hero-copy) .play-badge { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* ============ z81: TEXT-ALERTS PANEL DIET (Dan, Oct 23) ============
   Phone only (<=760px), scoped to the below-band homepage copy via
   .below-band-only: NOT the hero-stack copy, NOT pin pages
   (.pin-alerts / detail), NOT /events (.ev-alerts).
   The single-column stack becomes a compact 2-up form: phone spans
   the row; ZIP + town pair up; the radius label sits beside its
   select; the two checkboxes share a row. Input/select font-size is
   deliberately untouched — fields shrink via padding only, so focus
   behavior (incl. iOS zoom semantics) is exactly today's. Copy,
   field order, and POST /text-alerts are unchanged. */
@media (max-width: 760px) {
  .below-band-only .text-alerts { margin: 0.55rem auto; padding: 0.55rem 0.7rem 0.6rem; border-radius: 12px; }
  .below-band-only .text-alerts h3 { font-size: 0.92rem; line-height: 1.15; margin: 0 0 0.15rem; }
  .below-band-only .text-alerts p { font-size: 0.75rem; line-height: 1.25; margin: 0 0 0.2rem; }
  .below-band-only .text-alerts-form { grid-template-columns: 1fr 1fr; gap: 0.28rem; margin-top: 0.3rem; }
  .below-band-only .text-alerts-form input,
  .below-band-only .text-alerts-form select { padding: 0.32rem 0.55rem; border-radius: 7px; }
  .below-band-only .text-alerts-form .ta-radius {
    flex-direction: row; align-items: center; gap: 0.45rem;
    grid-column: 1 / -1; font-size: 0.78rem; white-space: nowrap;
  }
  .below-band-only .text-alerts-form .ta-radius select { flex: 1; }
  .below-band-only .text-alerts-form .ta-check { font-size: 0.8rem; gap: 0.3rem; }
  .below-band-only .text-alerts-form .btn { padding: 0.38rem 0.9rem; font-size: 0.85rem; }
  .below-band-only .text-alerts .ta-consent { font-size: 0.66rem; line-height: 1.3; margin-top: 0.35rem; }
}

/* ============ Retention Wave 2, Items 3+5 (retention2-capture) ====
   Item 3: #hm-capture mid-browse text-alert sheet — a bottom sheet in
   the signup-strip palette (same gradient/border family as
   .text-alerts), slides up, never blocks the page. It reuses
   .text-alerts-form field styles; only the shell + compact spacing
   live here. Item 5: .fright-chip on pin pages, a small pill in the
   .social-btn / tour-add-btn visual language with the streak orange
   (#ff7518, same as .fright-streak). */
.fright-chip-row { margin: 0.35rem 0 0.1rem; }
.fright-chip {
  display: inline-block; padding: 0.34rem 0.8rem; border-radius: 999px;
  background: rgba(255, 117, 24, 0.12); border: 1px solid #57a8ff;
  color: #ff7518; font-weight: 800; font-size: 0.85rem; text-decoration: none;
}
.fright-chip:hover, .fright-chip:focus-visible { background: rgba(255, 117, 24, 0.22); outline: none; }
.fright-chip[hidden] { display: none; }

#hm-capture {
  position: fixed; left: 50%; bottom: 1rem; z-index: 2000;
  width: min(430px, calc(100vw - 2rem));
  transform: translate(-50%, calc(100% + 2rem));
  transition: transform 0.35s ease;
  background: linear-gradient(160deg, #14222b, #0e1a20);
  border: 2px solid #402f54; border-radius: 14px;
  padding: 1rem 1.1rem 0.9rem; box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
#hm-capture.hm-capture-in { transform: translate(-50%, 0); }
#hm-capture[hidden] { display: none; }
body.has-tourbar #hm-capture { bottom: 4.4rem; }
#hm-capture h3 { margin: 0 1.4rem 0.2rem 0; font-size: 1.05rem; color: #f9e5c2; }
#hm-capture p { color: #a9cdf5; margin: 0 0 0.4rem; font-size: 0.85rem; line-height: 1.35; }
#hm-capture .hm-capture-x {
  position: absolute; top: 0.35rem; right: 0.55rem; background: none; border: none;
  color: #94a6c0; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0.3rem;
}
#hm-capture .text-alerts-form { margin-top: 0.5rem; }
#hm-capture .hm-capture-done { color: #7ee787; font-weight: 700; margin: 0.4rem 0; }
#hm-capture .ta-consent { font-size: 0.72rem; color: #a9cdf5; margin-top: 0.6rem; line-height: 1.4; }

/* ============ Retention Wave 2, Items 1 + 4 (homepage only) ========
   Item 1 (REVISED Oct 23, Dan): the one-tap locate prompt no longer
   stands alone above the hero. It merged with the hero's simple
   search bar and the duplicate locate button under it into ONE
   combined block, .hm-find, seated with the search bar directly
   under the hero headline (grid area "search" in .hero-split):
   heading "See the haunts closest to you" (the old "— one tap, no
   typing." tail is gone), the original simple bar (black Town-or-ZIP
   input + Search), ONE Use-my-location button, Choose-my-town link.
   Always rendered — it is part of the hero now, so the old panel's
   7-day dismissal is gone with the panel. Same purple panel language
   as .near-you, orange primary like the other location actions.
   Item 4: body.hm-returning (set by index.html's detector when the
   hm_visited flag exists) collapses the hero to a slim bar and shows
   the welcome-back slimbar; every section stays in the DOM — the
   class only hides/shrinks — and "See full homepage" drops the
   class, restoring today's layout exactly. .hm-find is NOT hidden
   for returners: it stays reachable under the welcome bar. Header
   untouched. */
.hm-find {
  margin: 0; padding: 0.85rem 1rem;
  background: linear-gradient(160deg, #14222b, #0e1a20);
  /* Black border (Dan, Oct 23) — the old locate panel's orange is gone. */
  border: 1px solid #000; border-radius: 14px;
}
.hm-find-text { margin: 0 0 0.6rem; color: #f5f2ec; font-size: 1.05rem; }
/* The hero's ORIGINAL simple search bar, values unchanged from the
   old .mobile-search-form: black input, Search button beside it. */
.hm-find-form { display: flex; gap: 0.5rem; margin: 0 0 0.6rem; }
.hm-find-form input { flex: 1; min-width: 0; padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid #274860; background: #000; color: #f5f2ec; font-size: 1rem; }
.hm-find-form input::placeholder { color: #94a6c0; }
/* Side-by-side (Dan, Oct 23): the two actions share ONE row, half
   width each, smaller than the old stacked full-width pills, so the
   block is shorter. "Choose my town instead" may wrap to two lines
   inside its button; text stays >= ~13px, targets >= 44px tall. */
.hm-find-actions { display: flex; flex-direction: row; align-items: stretch; gap: 0.5rem; }
.hm-find-btn {
  flex: 1 1 0; min-width: 0; min-height: 44px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.88rem; line-height: 1.15; padding: 0.45rem 0.4rem;
}
.hm-find-msg { margin: 0.6rem 0 0; color: #f19d45; font-weight: 600; }
.hm-find-msg[hidden] { display: none; }
.hm-find-msg a { color: #ffd9a0; }
@media (min-width: 761px) {
  /* On the full-width laptop row the bar keeps a readable measure. */
  .hm-find-form, .hm-find-actions { max-width: 620px; }
}

/* Slim strip (Dan, Oct 23: "much thinner and smaller" — the old
   pill wrapped into a tall card on phones). One row, two lines max
   at 390px: ~13px text, hairline padding, middot separators, and
   "See full homepage" demoted from a pill button to a small text
   link at the end of the row. Segments keep their graceful states
   (the Passport segment still hides until the visitor has stamps). */
.hm-slimbar {
  display: none;
  flex-wrap: wrap; align-items: center; gap: 0.05rem 0.4rem;
  margin: 0.4rem 0 0.15rem; padding: 0.22rem 0.5rem;
  background: linear-gradient(135deg, #182630 0%, #33284e 100%);
  border: 1px solid #402f54; border-radius: 12px;
  font-size: 0.78rem; line-height: 1.3;
}
/* "See full homepage" rides inline, glued to the Passport segment
   ("… · N towns · See full homepage") — Dan, Oct 23. The pair is one
   nowrap flex item so the wrap can never split them; at 390px the
   fullest state (streak + Passport) takes two lines, with only the
   Daily Fright segment wrapping ahead of the Passport line. */
.hm-slim-group { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.hm-slimbar .hm-full-btn::before { content: "\00B7"; margin-right: 0.4rem; color: #94a6c0; }
body.hm-returning .hm-slimbar { display: flex; }
.hm-slimbar-welcome { font-weight: 800; color: #f9e5c2; white-space: nowrap; }
.hm-slimbar-link { color: #f3eefc; text-decoration: none; font-weight: 600; white-space: nowrap; }
.hm-slimbar-link:hover { text-decoration: underline; }
.hm-slimbar-link[hidden] { display: none; }
.hm-slimbar-link::before { content: "\00B7"; margin-right: 0.45rem; color: #94a6c0; }
.hm-slimbar .hm-full-btn {
  padding: 0; background: none; border: 0; cursor: pointer;
  color: #8fd8ff; font: inherit; font-weight: 600; white-space: nowrap;
}
.hm-slimbar .hm-full-btn:hover { text-decoration: underline; }

/* Compact hero: the big first-visit furniture goes away, the hero
   intro shrinks to a slim left-aligned bar, and the laptop hero grid
   collapses to its headline column (its Near-you copy — the "Tonight
   near you" module — stays, and so does the combined .hm-find block
   under the headline; Trending / Text Alerts copies inside the hero
   stack hide, their below-band phone copies and the Tonight cluster
   below are untouched). */
/* z96 (Dan, Oct 23): the returning-mode hero collapse that used to
   sit here is RETIRED. It hid the left video rail, the sponsor
   billboard and the right TikTok strip, squashed the photo panel
   into a slim strip (its 4-scene backdrop invisible) and shrank
   the headline to 1.25rem — Dan's verdict: "I really liked the
   formatting but it's all gone now." Returning visitors now get
   the full homepage formatting, exactly like a first visit; the
   only returning-only element left is the welcome-back slimbar
   above the hero (untouched). "See full homepage" still drops
   the hm-returning class — visually that now only removes the
   slimbar. */
@media (max-width: 760px) {
  .hm-find { padding: 0.7rem 0.8rem; }
  .hm-find-btn { font-size: 0.85rem; padding: 0.4rem 0.3rem; }
}
/* --- Haunt Bracket (staged Oct 2026) --- */
.bk-hero { text-align: center; padding: 1.5rem 0 0.5rem; }
.bk-hero h1 { font-family: 'Creepster', cursive; font-size: 3rem; color: var(--accent); letter-spacing: 2px; margin: 0.25rem 0; }
.bk-presented { color: var(--muted); font-size: 0.9rem; }
.bk-presented-slot { border: 1px dashed #6b549e; border-radius: 6px; padding: 0.05rem 0.45rem; color: #8fd8ff; }
.bk-sub { max-width: 640px; margin: 0.25rem auto 0.75rem; color: var(--ink); }
.bk-countdown { display: inline-flex; gap: 0.6rem; align-items: baseline; background: var(--bg2); border: 1px solid #274860; border-radius: 999px; padding: 0.45rem 1.1rem; }
.bk-countdown-label { color: #8fd8ff; font-weight: 700; font-size: 0.9rem; }
.bk-countdown-time { font-weight: 900; font-size: 1.15rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.bk-total { color: var(--muted); margin-top: 0.6rem; }
.bk-window { color: var(--muted); margin-top: -0.4rem; }
.bk-matchups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.bk-matchup { background: var(--bg2); border: 1px solid #274860; border-radius: 14px; padding: 0.9rem; }
.bk-matchup-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.6rem; }
.bk-share { background: none; border: 1px solid #274860; color: #8fd8ff; border-radius: 999px; padding: 0.2rem 0.7rem; cursor: pointer; font-weight: 700; }
.bk-side { display: flex; gap: 0.7rem; }
.bk-side img { width: 104px; height: 78px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.bk-side-body { flex: 1; min-width: 0; }
.bk-side-title { font-weight: 800; margin: 0; }
.bk-side-title a { color: var(--ink); text-decoration: none; }
.bk-seed { background: var(--accent); color: #1a0f00; border-radius: 6px; padding: 0.02rem 0.4rem; font-size: 0.85rem; }
.bk-vid { color: #8fd8ff; font-size: 0.8rem; font-weight: 700; }
.bk-side-meta { color: var(--muted); font-size: 0.85rem; margin: 0.15rem 0 0.4rem; }
.bk-vs { text-align: center; font-family: 'Creepster', cursive; color: var(--accent); font-size: 1.3rem; padding: 0.25rem 0; }
.bk-bar { position: relative; background: #05080a; border-radius: 999px; height: 22px; overflow: hidden; margin-bottom: 0.45rem; }
.bk-bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #57a8ff, #ff7b1c); }
.bk-bar-label { position: relative; font-size: 0.78rem; font-weight: 800; padding-left: 0.6rem; line-height: 22px; color: #fff; text-shadow: 0 1px 2px #000; }
.bk-vote-btn { background: var(--accent); color: #1a0f00; border: none; font-weight: 900; border-radius: 999px; padding: 0.4rem 1.2rem; cursor: pointer; }
.bk-vote-btn[disabled] { opacity: 0.65; cursor: default; }
.bk-voted { background: #2e7d32; color: #fff; }
.bk-advances { color: #f19d45; font-weight: 900; margin: 0.2rem 0 0; }
.bk-side-win .bk-side-title a { color: #f19d45; }
.bk-tbd { color: var(--muted); font-style: italic; }
.bk-resolve { margin-top: 0.6rem; background: #274860; color: #fff; border: none; border-radius: 8px; padding: 0.35rem 0.8rem; cursor: pointer; }
.bk-tree-cols { display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.5rem; }
.bk-tree-col { min-width: 200px; flex: 1; }
.bk-tree-col h3 { color: var(--accent); margin-bottom: 0.1rem; }
.bk-tree-window { color: var(--muted); font-size: 0.8rem; margin-top: 0; }
.bk-tree-row { background: var(--bg2); border: 1px solid #274860; border-radius: 10px; padding: 0.5rem 0.6rem; margin-bottom: 0.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.bk-tree-mid { font-size: 0.7rem; color: var(--muted); font-weight: 800; }
.bk-tree-side { font-size: 0.88rem; font-weight: 600; }
.bk-tree-win { color: #f19d45; font-weight: 900; }
.bk-tree-score { font-size: 0.78rem; color: var(--muted); }
.bk-predict-intro, .bk-contenders-intro { max-width: 720px; color: var(--ink); }
.bk-thanks { background: #1e3320; border: 1px solid #2e7d32; border-radius: 10px; padding: 0.6rem 0.9rem; }
.bk-my-picks { background: var(--bg2); border: 1px solid #274860; border-radius: 12px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.bk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 0.8rem; }
.bk-form-row label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; }
.bk-form-row input { background: var(--bg2); border: 1px solid #274860; border-radius: 10px; color: var(--ink); padding: 0.55rem 0.7rem; }
.bk-optional { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.bk-form-rounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.8rem; }
.bk-form-round { border: 1px solid #274860; border-radius: 12px; padding: 0.7rem 0.9rem; }
.bk-form-round legend { color: var(--accent); font-weight: 800; padding: 0 0.4rem; }
.bk-pick { margin-bottom: 0.6rem; }
.bk-pick-label { font-size: 0.75rem; font-weight: 800; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.bk-pick-opt { display: block; background: var(--bg2); border: 1px solid #274860; border-radius: 8px; padding: 0.4rem 0.6rem; margin-bottom: 0.3rem; cursor: pointer; font-weight: 600; }
.bk-pick-opt em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.bk-pick select { width: 100%; background: var(--bg2); color: var(--ink); border: 1px solid #274860; border-radius: 8px; padding: 0.5rem; }
.bk-submit { background: var(--accent); color: #1a0f00; border: none; font-weight: 900; font-size: 1.05rem; border-radius: 999px; padding: 0.7rem 1.8rem; cursor: pointer; margin-top: 0.9rem; }
.bk-fineprint { color: var(--muted); font-size: 0.85rem; max-width: 640px; }
.bk-board { margin-top: 1.4rem; }
.bk-board-count { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.bk-board-list { list-style: none; padding: 0; }
.bk-board-list li { display: flex; gap: 0.8rem; align-items: baseline; background: var(--bg2); border: 1px solid #274860; border-radius: 10px; padding: 0.5rem 0.9rem; margin-bottom: 0.4rem; }
.bk-board-handle { font-weight: 900; }
.bk-board-champ { color: var(--muted); flex: 1; }
.bk-board-out { color: #e57373; }
.bk-board-score { font-weight: 900; color: var(--accent); }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.bk-card { background: var(--bg2); border: 1px solid #274860; border-radius: 14px; overflow: hidden; }
.bk-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.bk-card-body { padding: 0.7rem 0.9rem 0.9rem; }
.bk-card-title { font-weight: 800; margin: 0; }
.bk-card-title a { color: var(--ink); text-decoration: none; }
.bk-card-meta { color: var(--muted); font-size: 0.88rem; margin: 0.2rem 0; }
.bk-card-note { color: #8fd8ff; font-size: 0.85rem; margin: 0.3rem 0; }
.bk-champion-card { display: flex; gap: 1rem; background: linear-gradient(135deg, #0f2e54, #0e1b21); border: 2px solid #f19d45; border-radius: 16px; padding: 1rem; text-decoration: none; }
.bk-champion-card img { width: 220px; height: 165px; object-fit: cover; border-radius: 12px; }
.bk-champion-kicker { text-align: center; font-family: 'Creepster', cursive; font-size: 1.8rem; color: #f19d45; letter-spacing: 1px; margin-bottom: 0.5rem; }
.bk-champion-body { display: flex; flex-direction: column; gap: 0.3rem; }
.bk-champion-title { font-size: 1.6rem; font-weight: 900; color: #fff; }
.bk-champion-meta { color: #8fd8ff; font-weight: 700; }
.bk-champion-prize { color: var(--muted); }
.bk-home-band { margin: 1rem 0; }
.bk-home-card { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #0f2e54, #0e1b21); border: 2px solid var(--accent); border-radius: 16px; padding: 1rem 1.2rem; text-decoration: none; }
.bk-home-emoji { font-size: 2.4rem; }
.bk-home-body { flex: 1; display: flex; flex-direction: column; }
.bk-home-title { font-weight: 900; font-size: 1.25rem; color: #fff; }
.bk-home-meta { color: #8fd8ff; }
.bk-home-champ .tonight-card { border: 2px solid #f19d45; }
.bk-ribbon { display: block; background: linear-gradient(90deg, #ff7518, #57a8ff); color: #14091f; font-weight: 900; border-radius: 10px; padding: 0.55rem 0.9rem; text-decoration: none; margin: 0.6rem 0; }
@media (max-width: 640px) {
  .bk-hero h1 { font-size: 2.2rem; }
  .bk-form-row { grid-template-columns: 1fr; }
  .bk-champion-card { flex-direction: column; }
  .bk-champion-card img { width: 100%; height: auto; }
  .bk-home-card { flex-wrap: wrap; }
}

/* ============ z96: CARDS INSIDE THE HERO PANEL + FIND UNDER THE HEADLINE (Dan, Oct 23) ====
   The three cards (Tonight's Display / Daily Fright / Haunt Bracket)
   now live inside the hero photo panel under Text Alerts (hero
   copies in index.html; below-band originals hide >=761px in the
   z67 block above). Inside the panel they drop their full-width
   breakout geometry (1060px centred bands) and take the panel's
   width at the stack's compact scale, so the panel's backdrop art
   stays visible around them; the panel simply grows taller. The
   combined find block likewise moved inside the panel, directly
   under the headline: it keeps its own panel styling (purple
   gradient, black border from z95) and its form/button rows keep
   the readable 620px measure. */
@media (min-width: 761px) {
  .hero-stack .tonight-band,
  .hero-stack .daily-band,
  .hero-stack .bk-home-band { margin: 0; }
  .hero-stack .tonight-band,
  .hero-stack .daily-band {
    width: auto; position: static; left: auto; transform: none;
    box-sizing: border-box;
  }
  .hero-stack .tonight-band .tonight-card { padding: 0.7rem 0.85rem; gap: 0.85rem; }
  .hero-stack .tonight-band .tonight-card img { width: 88px; height: 88px; }
  .hero-stack .tonight-band .tonight-title { font-size: 1.12rem; }
  .hero-stack .bk-home-card { padding: 0.75rem 0.95rem; gap: 0.85rem; }
  .hero-stack .bk-home-emoji { font-size: 2rem; }
  .hero-stack .bk-home-title { font-size: 1.08rem; }
  .hero-stack .bk-home-meta { font-size: 0.88rem; }
}
.hero-intro .hm-find { margin: 0.1rem 0 0.3rem; text-align: left; }
.hero-intro .hm-find-msg { margin: 0.6rem 0 0; }

/* ============ z99: TEXT ALERTS ANCHORED TO THE HERO BLOCK'S BOTTOM + PHONE BLOCKS SHRUNK/CENTRED (Dan, Oct 23) ====
   (1) Laptop hero block: Dan's photo showed the in-panel Text Alerts
   form sitting directly under the Haunt Bracket while a long stretch
   of the backdrop's castle scene sat empty at the block's bottom. The
   panel is now a flex column and the stack fills its height, with the
   form's margin-top:auto pushing it to the block's bottom edge — over
   the castle — so whatever slack the block has becomes open art
   between the Bracket and the form. The find block's vertical margins
   are zeroed in this context because flex margins don't collapse:
   the collapsed block-layout gaps (headline 1rem, stack 0.6rem) come
   out identical, so nothing above the form moves.
   (2) Phone only: the TikTok-follow strip, the sponsor billboard and
   the town-request form were sized by the hero grid's 408px
   min-content column — they ran 408px wide on a 390px screen and
   hung off the right edge while the blocks below sit at the page's
   358px measure. They now take the same measure as the blocks below
   (100vw - 2rem = the content column), left-aligned to the same edge,
   with their padding/type/logo scaled ~15% down. Colours and the
   billboard's locked design are untouched — sizes only. */
@media (min-width: 761px) {
  .hero-intro { display: flex; flex-direction: column; }
  .hero-intro .hm-find { margin-top: 0; margin-bottom: 0; }
  .hero-stack { flex: 1 1 auto; }
  .hero-stack .text-alerts { margin-top: auto; }
}
@media (max-width: 760px) {
  .hero-split .tt-follow-vert,
  .hero-split .sponsor-section,
  .hero-split .town-request {
    width: calc(100vw - 2rem); max-width: calc(100vw - 2rem);
    min-width: 0; justify-self: start; box-sizing: border-box;
  }
  /* TikTok-follow strip: 49px -> ~42px tall */
  .hero-split .tt-follow-vert { padding: 0.5rem 0.75rem; gap: 0.5rem; font-size: 0.85rem; }
  .hero-split .tt-follow-vert img { width: 22px; height: 22px; }
  /* Sponsor billboard: same orange panel, black frame and type, ~15% smaller */
  .hero-split .sponsor-section { padding: 1.25rem 0.95rem 1rem; }
  .hero-split .sponsor-section h2 { font-size: 0.72rem; }
  .hero-split .sponsor-sub { font-size: 0.74rem; margin: 0.15rem 0 0.7rem; }
  .hero-split .sponsor-grid { gap: 0.42rem; }
  .hero-split .sponsor-card { padding: 0.34rem 0.6rem; gap: 0.5rem; }
  .hero-split .sponsor-logo { width: 41px !important; height: 61px !important; max-width: 41px !important; max-height: 61px !important; }
  .hero-split .sponsor-name { font-size: 0.92rem; }
  .hero-split .sponsor-text { font-size: 0.74rem; }
  .hero-split .sponsor-tier { font-size: 0.62rem; }
  .hero-split .sponsor-cta { margin-top: 0.8rem; font-size: 0.8rem; }
  /* Town-request form: ~15% smaller (input font size kept at 16px so
     iOS doesn't auto-zoom on focus — padding carries the shrink) */
  .hero-split .town-request { padding: 0.85rem 0.95rem; }
  .hero-split .town-request h3 { font-size: 0.98rem; }
  .hero-split .town-request p { font-size: 0.78rem; line-height: 1.3; }
  .hero-split .town-request-form { gap: 0.35rem; margin-top: 0.5rem; }
  .hero-split .town-request-form input { padding: 0.42rem 0.6rem; }
  .hero-split .town-request-form .btn { padding: 0.5rem 0.6rem; font-size: 0.92rem; }
}

/* ============ z101: PHONE HOOK — SLIGHTLY LARGER, NO PERIODS (Dan, Oct 23) ====
   Phone portrait only; laptop renders exactly as before (the two
   periods live in unstyled .hook-dot spans in base.html and show
   inline everywhere except this query).
   1) The periods at the ends of the hook's two sentences drop out:
      "…fright night for you." / "Build Your Night." lose their dots.
      (hook-l2 — "NEW HAUNTS DAILY!!!" / "THE HAUNT STARTS HERE" — has
      no periods and is untouched, colors included.)
   2) hook-l1 grows ~12%: it sat at the z65b clamp floor (0.80rem =
      12.8px at 390 — the 4.2cqw term resolves to ~8.6px against the
      ~206px band centre, so the floor binds). Floor rises to 0.90rem
      (14.4px); coefficient and cap scale with it. hook-l2 is
      display:none on phone (z69), so only line 1 is affected. The
      hook block stays well under the 86px logo height, so the band —
      and the header's height discipline — does not grow. */
@media (max-width: 760px) and (orientation: portrait) {
  .header-band .header-hook .hook-l1 { font-size: clamp(0.90rem, 4.7cqw, 1.46rem); }
  .header-band .header-hook .hook-dot { display: none; }
}

/* ============ z104: PHONE HOOK — EVEN LARGER (Dan, Oct 23 ~21:38) ====
   Phone portrait only; same media query as z101, later in the cascade,
   so this clamp overrides z101's. Dan saw z101 live (14.4px at 390)
   and asked for the hook bigger still. The floor binds at phone widths
   (the cqw term resolves well under it against the ~206px band centre),
   so the whole clamp scales ~+20%: floor 0.90 -> 1.08rem (17.28px at
   390), coefficient 4.7 -> 5.6cqw, cap 1.46 -> 1.75rem. Periods stay
   hidden via z101's .hook-dot rule; colors and hook-l2 untouched;
   laptop is outside this query and renders exactly as before. */
@media (max-width: 760px) and (orientation: portrait) {
  .header-band .header-hook .hook-l1 { font-size: clamp(1.08rem, 5.6cqw, 1.75rem); }
}

/* ============ z105: TOP 10 BY STATE HEADINGS IN CREEPSTER (Dan, Oct 23 ~21:47) ====
   Dan: "Let's give the top ten by state some cool Halloween font
   letters." The Top 10 headings now wear the site's Halloween display
   face — Creepster, the same family as the hero headline ("Find the
   Best Halloween Displays Near You", .hero-intro h1.hero-title) and
   already loaded in base.html; no new font is fetched. Heading text
   ONLY: the ranked rows, view counts and Featured badges stay in the
   readable UI type, and heading colors are unchanged.
   - Homepage block, personalized variant: .top10-home h2 ("Top N in
     {State}") — covers both copies (laptop in-hero + phone twin),
     which share the _top10_home.html include.
   - Homepage block, generic variant: the "Top 10 by state" lead-in of
     the states-cta bar; the descriptive tail of the bar ("— the best
     … haunts in every state →") keeps UI type, like the personalized
     variant's "See the full Top 10…" line.
   - /leaderboard/states page title: h1.states-title. The per-state
     section h2s on that page are untouched. */
.top10-home h2 {
  font-family: "Creepster", cursive;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.top10-home .states-cta a strong {
  font-family: "Creepster", cursive;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: 1.15em;
}
.states-title {
  font-family: "Creepster", cursive;
  font-weight: 400;
  letter-spacing: 0.03em;
}
/* ============ z106: TABLET FEATURED-TOKS ROW (Dan, Oct 23 ~21:46) ====
   Dan, from his iPad: the three promo toks stacked in one narrow
   centred column "looks ridiculous" — "let's put those in one row
   all together." Band 761–1199px only: phone (<=760px) keeps its
   z86 three-across row untouched, desktop (>=1200px) keeps the
   approved left-rail stack untouched.
   761–999: the hero band is stacked full-width here, so the block
   simply goes full width as a 3-column grid, natural 9/16 posters.
   1000–1199: the hero grid's "video" area spans the whole top row
   and the toks sit three-across in it; posters are capped at
   400px tall (cover-cropped, same treatment as the desktop rail)
   so the row doesn't eat the landscape screen. Headline, sponsor,
   town-request and the follow strip keep their rail-era seats in
   the rows below. Playback untouched: at >=761px the loader swaps
   a tapped facade for its scale box in place (z97), and the scale
   box inherits the facade's grid slot via the nth-of-type rules. */
@media (min-width: 761px) and (max-width: 1199px) {
  .hero-split .tt-featured {
    width: 100%; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem;
  }
  .hero-split .tt-featured > .tt-facade:nth-of-type(1),
  .hero-split .tt-featured > .tt-scalebox:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .hero-split .tt-featured > .tt-facade:nth-of-type(2),
  .hero-split .tt-featured > .tt-scalebox:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .hero-split .tt-featured > .tt-facade:nth-of-type(3),
  .hero-split .tt-featured > .tt-scalebox:nth-of-type(3) { grid-column: 3; grid-row: 1; }
  .hero-split .tt-featured .tt-facade + .tt-facade,
  .hero-split .tt-featured .tt-facade + .tt-scalebox,
  .hero-split .tt-featured .tt-scalebox + .tt-facade,
  .hero-split .tt-featured .tt-scalebox + .tt-scalebox { margin-top: 0; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .hero-split {
    grid-template-areas: "social social social" "video video video" "sponsor headline strip" "advstrip headline strip" "townreq headline strip";
  }
  .hero-split .tt-featured { gap: 1.1rem; }
  .hero-split .tt-featured .tt-facade { height: 400px; }
  .hero-split .tt-featured .tt-facade img { height: 100%; aspect-ratio: auto; }
}
/* ============ z107: TOP 10 HOME LIST — PHONE OVERFLOW FIX (Oct 23) ====
   The personalized homepage block ("Top N in {State}") overflowed at
   phone width: .top10-home-list is a grid with no explicit columns,
   so its single implicit track sized to max-content and the rows
   (long title + nowrap .t10-meta) measured ~515px inside the ~356px
   block (block scrollW 531, page scrollW 548 at 390). Pin the track
   to the block with minmax(0, 1fr) and let the row items shrink
   (min-width: 0): .t10-title already carries min-width: 0 + ellipsis,
   so titles truncate gracefully while rank, ⭐ badge and the views
   meta stay inside the row. Generic variant and laptop widths were
   already clean and render unchanged (verified by measurement). */
.top10-home-list { grid-template-columns: minmax(0, 1fr); }
.top10-home-list li { min-width: 0; }
/* ============ z108: TOP 10 BY STATE BAR — JACK-O'-LANTERN, NO TAIL (Dan, Oct 23 ~22:18) ====
   Dan: "Let's put a fun Halloween image next to top ten by state and
   get rid of 'the best in every state'." The generic states-cta bar
   drops its descriptive tail ("— the best … haunts in every state")
   and the 🗺️ emoji; a flat jack-o'-lantern (static/img/pumpkin_jack.svg,
   drawn in the site's flat style — the only pumpkin art in the repo
   lives inside the full logo composition, ring/trail/background and
   all, so no standalone asset existed to reuse) sits left of the
   Creepster "Top 10 by state", with the trailing arrow kept. The
   homepage copy of the bar lays out as a flex row so the image and
   text centre vertically; the /leaderboard pages' own .states-cta
   bars are outside .top10-home and stay block layout, untouched.
   Personalized variant ("Top N in {State}") has no tail and is
   unchanged. */
.top10-home .states-cta a { display: flex; align-items: center; gap: 0.6rem; }
.top10-home .states-cta-img { width: 36px; height: 36px; flex: 0 0 auto; }
.top10-home .states-cta-arrow { flex: 0 0 auto; }
/* ============ z109: TOP 10 BY STATE BAR FILLS ITS BLOCK (Dan, Oct 23 ~22:38) ====
   Dan: "Let's make the top ten by state fill the block." The generic
   bar's visible face is the .states-cta anchor (var(--card) bg), but
   it sat inset inside the .top10-home section's own panel — 1rem of
   section padding + border on every side — so the bar measured 34px
   narrower than the blocks around it (phone: 324 face inside the
   358 block, vs the 358 Follow-us bar below; laptop: 642.4 face
   inside the 676.4 hero-stack column, vs Near You / Trending panels
   at 676.4), and its pumpkin + label + arrow clustered at the left
   with dead bar trailing right. For the generic variant the section
   wrapper is redundant — the anchor already carries a card face
   (bg, border, 14px radius) — so the .top10-home--cta section (set
   in _top10_home.html when home_top10 is falsy) drops its padding,
   background and border and the bar's face spans the block
   edge-to-edge in both seats. Inside the wider bar the layout reads
   pumpkin + label left, arrow pushed to the right edge
   (margin-left: auto on the arrow). The personalized variant keeps
   its panel and padding — its rows already fill the block — and is
   untouched. /leaderboard .states-cta bars are outside .top10-home
   and unchanged. */
.top10-home.top10-home--cta,
.hero-stack .top10-home.hero-copy.top10-home--cta {
  padding: 0; background: none; border: none;
}
.top10-home .states-cta-arrow { margin-left: auto; }
/* ============ z110: TOP 10 BY STATE BAR — BIG FONT FILLS THE BLOCK (Dan, Oct 23 ~22:54) ====
   Dan, replying to the z109 iPad fill screenshot: "Top ten by state
   needs to big font to fill the entire block it's in." The bar spans
   its block (z109) but the Creepster label was still 1.15em (~18px)
   with a 36px pumpkin — modest type adrift in a wide bar. The generic
   variant only (scoped to .top10-home--cta; the personalized state
   list and the /leaderboard .states-cta bars are untouched): the
   label scales up a step ladder — 1.7rem on phone, 2.3rem at
   >=761px — on one line at every width (white-space: nowrap; the
   rendered Creepster text measures ~165px at the phone step and
   ~223px at the wide step against 324px / 639px of bar inner width,
   so nothing wraps or overflows), the jack-o'-lantern grows with it
   (46px / 58px) and the arrow takes the label's size. The bar grows
   taller to fit (~70px phone, ~87px wide) — that is the fill Dan
   asked for; width-fill from z109 is unchanged. */
.top10-home.top10-home--cta .states-cta a { gap: 0.8rem; padding: 0.7rem 1rem; }
.top10-home.top10-home--cta .states-cta a strong {
  font-size: 1.7rem; white-space: nowrap;
}
.top10-home.top10-home--cta .states-cta-img { width: 46px; height: 46px; }
.top10-home.top10-home--cta .states-cta-arrow { font-size: 1.7rem; line-height: 1; }
@media (min-width: 761px) {
  .top10-home.top10-home--cta .states-cta a { padding: 0.85rem 1.1rem; }
  .top10-home.top10-home--cta .states-cta a strong { font-size: 2.3rem; }
  .top10-home.top10-home--cta .states-cta-img { width: 58px; height: 58px; }
  .top10-home.top10-home--cta .states-cta-arrow { font-size: 2.3rem; }
}
/* ============ z111: TABLET HEADER NAV FITS ITS ROW (Dan, Oct 23 ~22:55) ====
   Dan's iPad photo: header nav row two (Events GIF + Watch …
   About Us) overflows the tablet width — the Events GIF clips at
   the left edge and About Us at the right, spacing uneven. Measured
   at 820 portrait on the pre-fix tree: the 11 items' intrinsic
   widths total ~759px + 10 × 12px minimum gaps = ~879px against a
   788px row — About Us ended at x≈895, ~75px off-screen. Band
   761–1199px ONLY (phone ≤760 and laptop ≥1200 rules untouched):
   the Events GIF steps down 55px → 46px tall (still the row's
   anchor at ~1.8× the icon size), labels 0.72rem → 0.67rem with
   tighter tracking, icons 28px → 26px, and the base gap drops so
   justify-content: space-between distributes what's left EVENLY
   across all ten slots. The 1000–1199 sub-band keeps slightly
   larger art/type since it has the width for it. */
@media (min-width: 761px) and (max-width: 1199px) {
  .site-header.v2 .header-nav { gap: 0.45rem; }
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 46px; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.67rem; letter-spacing: 0.02em; }
  .site-header.v2 .header-nav a.navbtn span { font-size: 0.67rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 26px; height: 26px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .site-header.v2 .header-nav a.events-link img.events-gif { height: 50px; }
  .site-header.v2 .header-nav a.navbtn { font-size: 0.70rem; }
  .site-header.v2 .header-nav a.navbtn span { font-size: 0.70rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 27px; height: 27px; }
}
/* ============ z113: TOP 10 BY STATE BAR — ARROW OUT, TEXT FILLS THE BLOCK (Dan, Oct 24 ~14:06) ====
   Dan: "Let's get rid of the arrow in the top 10 by state and fill
   the block with the text." Generic homepage bar only (scoped
   .top10-home--cta, the z108–z110 discipline; the personalized
   state list and the /leaderboard .states-cta bars are untouched):
   the arrow span is removed from _top10_home.html (both homepage
   seats render from that one include), and the Creepster label now
   flexes across the whole bar face beside the pumpkin — a bigger
   type ladder plus open tracking, tuned per band so the glyph run
   spans its flex zone edge-to-edge on one line. A tighter
   line-height (1.1, vs Creepster's ~1.58 default) keeps the bar
   near its z110 height instead of growing with the type. The
   z108–z110 .states-cta-arrow rules match nothing on the homepage
   now and are inert. */
.top10-home.top10-home--cta .states-cta a strong {
  flex: 1 1 auto;
  font-size: 2.35rem;
  letter-spacing: 0.075em;
  line-height: 1.1;
}
@media (min-width: 761px) and (max-width: 1199px) {
  .top10-home.top10-home--cta .states-cta a strong {
    font-size: 4.6rem;
    letter-spacing: 0.235em;
  }
}
@media (min-width: 1200px) {
  .top10-home.top10-home--cta .states-cta a strong {
    font-size: 3.9rem;
    letter-spacing: 0.22em;
  }
}
/* ============ z114: TOP 10 PHONE BLOCK — SAME LENGTH AS THE BLOCKS BELOW (Dan, Oct 24 ~14:32) ====
   Dan: "Let's make the top ten haunts by state block the same
   length as the blocks below it in a nice clean uniform look for
   the phone view." Measured at 390px on the z113 tree: the phone
   column's blocks are uniformly 358 wide at x=16 — Follow-us
   (358x42), sponsor section, town-request, tonight strip/band,
   Daily Fright, Near You, Trending, every one — but the Top 10
   block measured 408 wide, ending at x=424, off the phone's edge.
   Cause: the block is a stretch grid item in .hero-split, whose
   single 1fr column is sized by the widest min-content in the
   stack (the hero headline's, 408px); the three blocks below that
   already look right (follow strip, sponsor, town-request) only
   escape it because the strip-fit block above pins them to
   width: calc(100vw - 2rem) with justify-self: start. The Top 10
   seat (added z103) never got that treatment. Phone band only:
   give the phone-seat section the identical pin, so the stack
   reads one clean uniform column — same width, same left edge,
   same right edge as every block below it. Nothing else changes:
   the bar keeps its z110/z113 face (the z113 label was already
   tuned for exactly this 358 width: glyph run 262.3 of the 265.2
   zone, bar 70.4 tall), the personalized variant in the same seat
   gets the same outer width, and tablet/laptop geometry is
   untouched (their copies are not .hero-split children in this
   band's reach and the hero-seat rules are unchanged). */
@media (max-width: 760px) {
  .hero-split > .top10-home {
    width: calc(100vw - 2rem); max-width: calc(100vw - 2rem);
    min-width: 0; justify-self: start; box-sizing: border-box;
  }
}

/* ============ z115: PHONE STACK — ONE CENTRED MEASURE + BAR THINS (Dan, Oct 24 ~15:07) ====
   Dan, from his phone screenshot: "Let's clean up and center the
   spacing margins of the circles for Virtual Tour through Top 100
   Nationwide... one end/side of the page should have equal spacing.
   Center the three TikTok videos in the middle. Let's make Top 10
   by State a little thinner" — then, widening it: "Center all the
   blocks on each side so it looks smooth and clean."
   Measured at 390px on the z114 tree: every block BELOW the hero
   grid already sits at the page measure (358 wide at x=16 — follow
   strip, sponsors, town-request were pinned by z99, the Top 10 seat
   by z114, and the below-band panels flow in the 358 content
   column). The unevenness lives INSIDE .hero-split: its single 1fr
   track still sizes to the hero headline's ~408px min-content, so
   the two children nobody pinned render 408 wide ending at x=424 —
   the hero panel itself, and the circle strip (its last circle,
   Top 100 Nationwide, clips off the phone's right edge; the first
   sat flush to the column's left edge). The TikTok group was
   centred in that 408 track (x=87, right slack 37 against the
   screen) instead of in the screen. Phone band only:
   1) The track itself is capped: minmax(0, 1fr) removes the
      automatic min-content minimum, so the column IS the content
      column and every stretch child takes the shared measure.
   2) The hero panel and the circle strip get the same pin z99/z114
      gave their neighbours (calc(100vw - 2rem), start-aligned): the
      whole stack now reads one centred column, 358 at x=16, edges
      aligned top to bottom.
   3) Circles: the seven buttons measured unequal — the borderless
      first button 52.8 wide against 56.8 for the six bordered
      ones. flex-grow distributes onto each item's content box, so
      the 2px borders ride on top of the equal share and the orange
      (borderless) pill comes up exactly 4px short; the 0.15rem
      gaps were already uniform. On phone the strip container
      becomes a 7-column grid (repeat(7, minmax(0, 1fr))), whose
      tracks size the border box itself — all seven circles come
      out identical, end margins are the strip's own 16px like
      every other block, and the buttons' internal icon/label
      stacking (their own flex) is unchanged. The >=761px top
      copy stays flex, untouched.
   4) The TikTok group needs no rule of its own: with the track at
      358 its existing margin: 0 auto centres it in the screen —
      equal slack both sides.
   5) Top 10 bar a little thinner: the generic bar's face drops
      70.4px -> ~59px (−16%) WITHOUT touching the label: the
      pumpkin steps 46 -> 34px and the vertical padding 0.7rem ->
      0.5rem, so the Creepster line box (2.35rem at line-height
      1.1, z113) becomes the tallest element and the glyph run
      keeps its z113 edge-to-edge fill of the flex zone — nothing
      clips top, bottom or sides (verified: anchor scroll height
      equals client height, label fully inside). The personalized
      variant is a list panel, not a bar — it keeps the shared
      width from z114; there is no bar face to thin. The laptop
      hero-seat bar (in .hero-stack, outside .hero-split) and
      every >=761px rule are untouched. */
@media (max-width: 760px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-split > .hero-intro,
  .hero-split > .vt-tv-strip-phone {
    width: calc(100vw - 2rem); max-width: calc(100vw - 2rem);
    min-width: 0; justify-self: start; box-sizing: border-box;
  }
  .hero-split .vt-tv-strip-phone {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .hero-split .top10-home.top10-home--cta .states-cta a { padding: 0.5rem 1rem; }
  .hero-split .top10-home.top10-home--cta .states-cta-img { width: 34px; height: 34px; }
}


/* ============ VARIANT D — LOGO-GAME (Dan, Oct 24): logo-sampled palette, modern game-HUD feel, game type + colored fonts. Preview only. ============ */
:root { --font-game: "Noto Sans Display", "Arial Narrow", system-ui, sans-serif; }
.site-header {
  background: linear-gradient(180deg, rgba(10, 30, 36, 0.94), rgba(5, 8, 10, 0.97));
  border-bottom: 1px solid rgba(143, 216, 255, 0.55);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.6), 0 1px 16px rgba(87, 168, 255, 0.28);
  backdrop-filter: blur(6px);
}
.mini-bar { background: linear-gradient(180deg, rgba(10, 30, 36, 0.96), rgba(5, 8, 10, 0.98)); border-bottom: 1px solid rgba(143, 216, 255, 0.5); box-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 12px rgba(87,168,255,0.22); }
.hero-title { text-shadow: 0 0 26px rgba(87, 168, 255, 0.5), 0 2px 0 rgba(0, 0, 0, 0.65), 0 0 60px rgba(87, 168, 255, 0.25); }
h2, h3 { font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 900; }
h2 { color: #e6b16d; text-shadow: 0 0 16px rgba(230, 177, 109, 0.35), 0 2px 0 rgba(0,0,0,0.5); }
.card, .tonight-card, .bk-home-card, .sponsor-card, .hm-prompt, .engage-next, .hon-card {
  background: linear-gradient(165deg, rgba(64, 47, 84, 0.42), rgba(16, 37, 45, 0.58));
  border: 1px solid rgba(143, 216, 255, 0.30);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(249, 229, 194, 0.08), 0 0 16px rgba(87, 168, 255, 0.10);
  backdrop-filter: blur(5px);
}
.card-body h3, .bk-home-title { color: #f9e5c2; }
.meta, .views-line, .tonight-meta { color: #a9cdf5; }
a { color: #8fd8ff; }
.btn, .mbtn, .cat-btn-main, .cat-btn-sub, .filter-chip, .state-btn, .tonight-cta, .tour-add-btn, .hm-full-btn {
  font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.055em; font-weight: 800;
  border: 1px solid rgba(143, 216, 255, 0.42);
  box-shadow: 0 0 12px rgba(87, 168, 255, 0.16), inset 0 1px 0 rgba(249, 229, 194, 0.09);
}
.filter-chip.active, .state-btn.active, .cat-btn-main.active, .cat-btn-sub.active {
  border-color: #8fd8ff; color: #8fd8ff;
  box-shadow: 0 0 14px rgba(143, 216, 255, 0.35), inset 0 0 12px rgba(87, 168, 255, 0.15);
}
.tonight-kicker, .passport-chip { color: #8fd8ff; font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.07em; text-shadow: 0 0 12px rgba(143, 216, 255, 0.4); }
.header-nav a, .hm-slimbar-link { font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
.vt-label { font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; color: #f9e5c2; }
input, select, textarea { background: rgba(16, 37, 45, 0.62); border: 1px solid rgba(143, 216, 255, 0.30); color: #f9e5c2; }
.hm-addyours-cta, .btn-primary { background: linear-gradient(180deg, #eb7a2c, #cf5f1a); box-shadow: 0 0 18px rgba(235, 122, 44, 0.40), inset 0 1px 0 rgba(249, 229, 194, 0.35); border: 1px solid rgba(249, 229, 194, 0.4); }

/* ============ VARIANT D — GLOW MAX (Dan, Oct 24: "Let's make it all glow") ============ */
body {
  background:
    radial-gradient(900px 480px at 50% 14%, rgba(87, 168, 255, 0.20), rgba(87, 168, 255, 0) 62%),
    radial-gradient(1200px 620px at 50% -10%, #14406e 0%, var(--bg) 62%) fixed,
    var(--bg);
}
.site-header {
  border-bottom: 1px solid rgba(143, 216, 255, 0.85);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 22px rgba(143, 216, 255, 0.35), 0 0 44px rgba(87, 168, 255, 0.22);
}
.header-nav a img, .vt-ic img { filter: drop-shadow(0 0 6px rgba(143, 216, 255, 0.55)); }
.hero-split, .hero-intro { box-shadow: 0 0 48px rgba(87, 168, 255, 0.28), 0 0 120px rgba(87, 168, 255, 0.12), inset 0 1px 0 rgba(249, 229, 194, 0.10); border: 1px solid rgba(143, 216, 255, 0.35); }
.card, .tonight-card, .bk-home-card, .sponsor-card, .hm-prompt, .engage-next, .hon-card {
  border: 1px solid rgba(143, 216, 255, 0.50);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(249, 229, 194, 0.10), inset 0 0 18px rgba(87, 168, 255, 0.07), 0 0 22px rgba(87, 168, 255, 0.20);
}
.tonight-band, .bk-home-band {
  border: 1px solid rgba(143, 216, 255, 0.45);
  box-shadow: 0 0 34px rgba(87, 168, 255, 0.22), inset 0 -2px 0 rgba(143, 216, 255, 0.55), inset 0 1px 0 rgba(249, 229, 194, 0.08);
}
h2 { text-shadow: 0 0 6px rgba(230, 177, 109, 0.55), 0 0 20px rgba(230, 177, 109, 0.40), 0 0 38px rgba(230, 177, 109, 0.22), 0 2px 0 rgba(0, 0, 0, 0.5); }
.hero-title { text-shadow: 0 0 10px rgba(143, 216, 255, 0.45), 0 0 30px rgba(87, 168, 255, 0.55), 0 0 70px rgba(87, 168, 255, 0.35), 0 2px 0 rgba(0, 0, 0, 0.65); }
.btn, .mbtn, .cat-btn-main, .cat-btn-sub, .filter-chip, .state-btn, .tonight-cta, .tour-add-btn, .hm-full-btn {
  box-shadow: 0 0 16px rgba(143, 216, 255, 0.30), inset 0 0 10px rgba(143, 216, 255, 0.12), inset 0 1px 0 rgba(249, 229, 194, 0.10);
  text-shadow: 0 0 9px rgba(143, 216, 255, 0.35);
}
.town-chip {
  border-color: rgba(143, 216, 255, 0.65);
  box-shadow: 0 0 14px rgba(87, 168, 255, 0.30), inset 0 0 10px rgba(87, 168, 255, 0.14);
}
.vt-tv-strip a { box-shadow: 0 0 18px rgba(143, 216, 255, 0.22), inset 0 0 12px rgba(143, 216, 255, 0.08); filter: brightness(1.07); }
input, select, textarea { box-shadow: 0 0 0 1px rgba(143, 216, 255, 0.22), 0 0 16px rgba(87, 168, 255, 0.16); }
.play-badge, .tt-play { filter: drop-shadow(0 0 12px rgba(143, 216, 255, 0.65)); }
.hm-addyours-cta, .btn-primary { box-shadow: 0 0 24px rgba(235, 122, 44, 0.50), inset 0 1px 0 rgba(249, 229, 194, 0.4); }
hr { border-color: rgba(143, 216, 255, 0.40); box-shadow: 0 0 10px rgba(143, 216, 255, 0.30); }
/* ============ z117: NEW LOGO LOCKUP LIVE (Dan, Oct 24) ============
   Dan's new logo goes live in the header's far-left brand slot: the
   ghost-map lockup (ghost + HAUNTMAP wordmark under it, transparent,
   tall 1111x1626 aspect) replaces the old circular badge. The old
   rules forced a square box with border-radius:50% + object-fit:
   cover, which would crop the lockup's ghost head and wordmark — so
   the box becomes height-driven: the SAME heights the badge rendered
   at (113px desktop / 86px phone / 95px landscape-slim), width auto
   by aspect (~77px desktop / ~59px phone), no radius, no crop.
   Header heights are unchanged at every breakpoint, so the <=15%
   viewport discipline measured at z115/z116 holds exactly. The
   final block reasserts 113px for short-wide desktop windows,
   mirroring the z72 guard so that fix is not regressed. The scroll
   mini-bar swaps to the ghost cutout alone (no wordmark at 28px),
   shown whole (contain, no circle clip). The body::before watermark
   and the maintenance page keep the old badge art — untouched. */
.header-band .brand-logo { width: auto; max-width: none; max-height: none; height: 113px; border-radius: 0; object-fit: contain; }
.mini-bar img { object-fit: contain; border-radius: 0; }
@media (max-width: 760px) {
  .header-band .brand-logo { height: 86px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-band .brand-logo { height: 95px; }
}
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
  .header-band .brand-logo { height: 113px; }
}

/* ============ z118: BLUE-GLOW THEME LIVE + NEW-LOGO WATERMARK (Dan, Oct 24) ============
   The logo-game theme (variant E) ships: every surface keyed to the new
   logo's palette with the BLUE glow family (#57A8FF accent / #8FD8FF glow
   core) Dan picked over the logo's teal-green, game-UI type, hook red
   #E01E26 kept as the standing exception. The z117 logo block above is
   unchanged and still governs header logo sizing. The body::before
   background watermark swaps from the old badge (hauntmap_logo.jpg) to
   the new ghost (hauntmap_ghost_watermark.webp, 512px derivative of
   Dan's ghost cutout) at the same 120vmin / 0.29 opacity presence —
   superseding the z117 note that left the watermark untouched. */

/* ============ z118 ADDENDUM (Dan, Oct 24, same ship) ============
   (1) /movies Screening Room chips — neat grid: was flex-wrap with
   content-width chips wrapping raggedly (2 uneven / 1 / 1 on phone).
   Now a strict grid: one even row of four equal chips on laptop, a
   2x2 grid on phone — equal columns, even gaps both ways, labels
   centered fully inside their bubbles, carrying the theme's blue
   chip glow (same shadow as the GLOW MAX chips). */
.movies-subnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.movies-subnav a { display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 14px rgba(87, 168, 255, 0.30), inset 0 0 10px rgba(87, 168, 255, 0.14); }
@media (max-width: 760px) {
  .movies-subnav { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
}
/* (2) Sponsor billboard — orange -> theme blue (Dan: "change that
   sponsor orange to closer to blue we have themed"; supersedes the
   Oct 21 Pumpkin Orange spec at his direction). Same billboard —
   thick black frame, black Apple-style type, Something Wicked cover
   center, same size/placement — only the field changes:
   section #ff7518 -> azure radial #8FD8FF -> #57A8FF; cards #ff9a44
   -> #8FD8FF (the glow core); the orange-tuned dark-brown text tones
   (#402e00 / #4a3400) -> black so the black-type spec stays crisp
   (black on #57A8FF ~8:1, on #8FD8FF ~11:1). */
.sponsor-section { background: radial-gradient(130% 150% at 50% 0%, #8FD8FF 0%, #57A8FF 65%); }
.sponsor-card { background: #8FD8FF; border-color: rgba(0, 0, 0, 0.25); }
.sponsor-card.tier-title { background: #8FD8FF; }
.sponsor-sub { color: #111111; }
.sponsor-tier { color: #111111; }
/* (3) Virtual Tour button — orange -> theme blue (Dan: "it sticks out
   too much"). Its fill was var(--accent) = #ff7b1c orange; now the
   same azure family as the billboard above, keeping its filled
   primary-action prominence, label and icon treatment, plus a blue
   glow to match the theme. */
.vt-tv-strip .vt-btn { background: linear-gradient(180deg, #8FD8FF, #57A8FF); box-shadow: 0 0 18px rgba(87, 168, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

/* ============ DRIP HEADINGS — BLUE NOSIFER (Dan, Oct 24) ============
   ALL /advertise package card headings (business + homeowner ladders)
   and the homepage "Tour fuel:" chips label get the drippy Nosifer
   face in the theme's azure blue — Dan: "all drippy, but blue instead
   of red". Nosifer is SELF-HOSTED (static/fonts/Nosifer.ttf, from the
   Google Fonts repo) — this @font-face shadows the Google Fonts
   stylesheet copy for this family. Blue treatment: azure #57A8FF
   glyphs, deep-blue drip shadow (#0F2E54 family), a soft azure glow
   so the headings sit in the same blue world as the site theme. */
@font-face {
  font-family: "Nosifer";
  src: url("/static/fonts/Nosifer.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.adv-pack h3.pack-drip {
  font-family: "Nosifer", "Creepster", cursive;
  font-weight: 400;
  color: #57a8ff;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(15, 46, 84, 0.55), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 14px rgba(87, 168, 255, 0.35);
}
/* "Tour fuel:" chips label on the homepage — same blue-drip Nosifer
   treatment, tuned down to the small label's size (Dan, Oct 24). */
.cat-sub-label.tour-fuel-label-drip {
  font-family: "Nosifer", "Creepster", cursive;
  font-weight: 400;
  color: #57a8ff;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(15, 46, 84, 0.55), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 10px rgba(87, 168, 255, 0.35);
}

/* ============ z122: PHONE BUBBLE-STRIP FIT + PAGE CENTERING (Dan, Oct 24) ============
   Dan, from his phone: "The H is covered in all the bubbles Virtual
   Tour through Top 100 Nationwide" — the circles overlap, Top 100 is
   cut off at the right edge, the whole page sits shifted left, and
   the slimbar's "SEE FULL HOMEPAGE" flies off the right edge.
   DIAGNOSIS (measured, not guessed): the strip's labels are set in
   --font-game at 0.46rem, sized for Noto Sans Display — but that
   face is never loaded (the Google Fonts link in base.html omits
   it), so phones fall back to a wide system face, and iOS text
   autosizing inflates the micro-type further. "NATIONWIDE" measures
   ~51px against a ~45px bubble content box at 390px (worse at 360):
   every label spills out of its bubble, disappears under the
   neighbouring bubble's background (grid items paint in order), and
   the last bubble's spill becomes scrollable overflow — the document
   grows wider than the viewport, so the page renders shifted left.
   The slimbar fails the same way: its nowrap Passport + "See full
   homepage" group (~430px inflated) is one unshrinkable flex item,
   wider than the bar, so the button leaves the screen.
   FIX:
   1) text-size-adjust: 100% — iOS stops inflating the small print.
   2) Phone strip: the 7-across grid becomes two neat wrapped rows
      (4 + 3, second row centred), same uniform bubble size, labels
      a readable 0.52rem — every label now fits inside its bubble
      with room to spare at 360/390/430 in any font the phone
      actually has. Laptop top strip is unchanged (one row).
   3) Virtual Tour gains the 2px border ring every other bubble
      already had (its azure gradient fill stays — z118).
   4) Slimbar containment + placement (Dan, precise): the Passport
      group becomes a left-aligned column — "SEE FULL HOMEPAGE"
      always sits on its OWN line UNDER the Passport line, inside
      the bar (never trailing the Passport line, never off-screen),
      with a real tap target; and no single segment may exceed the
      bar — long segments ellipsize instead of blowing out the page. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.vt-tv-strip .vt-btn { border: 2px solid #57a8ff; }
.vt-tv-strip .vt-label { letter-spacing: 0.01em; }
@media (min-width: 761px) {
  /* Same fit problem in miniature on the laptop row: "NATIONWIDE"
     + icon measured ~5px proud of the pill on both sides; a 0.07rem
     trim puts every laptop label back inside its bubble. */
  .vt-tv-strip-top a { font-size: 0.68rem; }
}
.hm-slim-group { flex-direction: column; align-items: flex-start; white-space: normal; row-gap: 0.1rem; }
.hm-slimbar > *, .hm-slim-group > * { min-width: 0; }
.hm-slimbar-link, .hm-slimbar-welcome { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hm-slimbar .hm-full-btn { padding: 0.3rem 0.3rem; margin: 0; text-align: left; }
@media (max-width: 760px) {
  .hero-split .vt-tv-strip-phone {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.35rem;
  }
  .vt-tv-strip-phone a {
    flex: 0 1 calc((100% - 3 * 0.35rem) / 4);
    padding: 0.42rem 0.1rem; font-size: 0.52rem; line-height: 1.18;
  }
  .vt-tv-strip-phone .vt-ic { font-size: 1rem; }
}


/* ================= HauntMap Social — Phase 1 step 1 (STAGED z113) ==========
   Member auth forms + public profiles. Scoped .soc-* so nothing existing
   restyles. */
.soc-auth { max-width: 560px; margin: 0 auto; }
.soc-lede { color: var(--muted); }
.soc-error { background: #3d0f16; border: 1px solid var(--danger); color: #ffd7d9;
  border-radius: 10px; padding: 0.6rem 0.9rem; }
.soc-ok { background: #14300f; border: 1px solid #4c9a3f; color: #d9ffd2;
  border-radius: 10px; padding: 0.6rem 0.9rem; }
.soc-note { color: var(--muted); }
.soc-alt { margin-top: 1rem; }
.soc-form input[type="email"], .soc-form input[type="date"],
.soc-form textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  background: var(--bg2); border: 1px solid #33254f; color: var(--ink);
  border-radius: 10px; padding: 0.65rem; font-size: 1rem; font-family: inherit;
}
.soc-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.soc-check input { margin-top: 0.3rem; }
.soc-sr { position: absolute; left: -9999px; }

.soc-profile { max-width: 720px; margin: 0 auto; }
.soc-banner { position: relative; height: 120px; border-radius: var(--radius);
  overflow: hidden; }
.soc-banner-moons { position: absolute; right: 0.8rem; bottom: 0.4rem;
  font-size: 1.4rem; opacity: 0.75; letter-spacing: 0.3rem; }
.soc-head { display: flex; gap: 1rem; align-items: flex-start;
  margin-top: -34px; padding: 0 0.8rem; position: relative; }
.soc-avatar { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--bg); font-size: 2.2rem; color: var(--ink); }
.soc-avatar span { line-height: 1; }
.soc-avatar-sm { width: 38px; height: 38px; font-size: 1.15rem; border-width: 2px; }
.soc-id { flex: 1; min-width: 0; padding-top: 38px; }
.soc-id h1 { margin: 0; font-size: 1.5rem; overflow-wrap: anywhere; }
.soc-handle { margin: 0.1rem 0; color: var(--accent2); font-weight: 600; }
.soc-since { margin: 0; color: var(--muted); font-size: 0.85rem; }
.soc-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; padding-top: 42px; }
.soc-actions form { margin: 0; }
.soc-bio { padding: 0.4rem 0.8rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.soc-profile h2 { margin: 1.4rem 0 0.6rem; font-size: 1.15rem; }
.soc-music iframe { border-radius: var(--radius); background: var(--card); }
.soc-haunt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.soc-empty { background: var(--card); border: 1px dashed #443366;
  border-radius: var(--radius); padding: 1rem; color: var(--muted); }
.soc-wall-form textarea { margin-bottom: 0.5rem; }
.soc-comments { list-style: none; margin: 0.8rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.9rem; }
.soc-comment { display: flex; gap: 0.7rem; }
.soc-comment-body { flex: 1; min-width: 0; background: var(--card);
  border-radius: var(--radius); padding: 0.55rem 0.8rem; }
.soc-comment-meta { margin: 0; font-weight: 700; }
.soc-comment-meta a { color: var(--ink); text-decoration: none; }
.soc-comment-handle { color: var(--accent2); font-weight: 600; font-size: 0.85rem; }
.soc-comment-meta time { color: var(--muted); font-weight: 400; font-size: 0.8rem; margin-left: 0.4rem; }
.soc-comment-text { margin: 0.25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.soc-comment-tools { margin: 0.35rem 0 0; display: flex; gap: 0.8rem; }
.soc-comment-tools form { margin: 0; }
.soc-tool { background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 0.8rem; padding: 0; text-decoration: underline; }
.soc-tool:hover { color: var(--accent); }
.soc-picker { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.4rem; }
.soc-pick { display: inline-flex !important; align-items: center; gap: 0.35rem;
  margin: 0 !important; font-weight: 400 !important; cursor: pointer;
  background: var(--bg2); border: 1px solid #33254f; border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem; }
.soc-banner-chip { width: 44px; height: 22px; border-radius: 6px; display: inline-block; }
@media (max-width: 560px) {
  .soc-head { flex-wrap: wrap; }
  .soc-actions { padding-top: 0.4rem; }
  .soc-banner { height: 92px; }
}

/* ============ z125: SOCIAL JOIN — NAV PILL + HOMEPAGE PROMO (Dan, Oct 25 — STAGED) ============
   Two capture spots for the social network that went live in z124:
   (1) a JOIN pill at the far right of header nav row two, after
   About Us — deliberately NOT a .navbtn icon disc: a filled azure
   pill in the game font, the one action in the row. For a logged-in
   member it becomes their @handle, linking to their profile.
   (2) a promo band on the homepage directly under the hero block.
   Blue-glow game styling per the z118 theme (#57A8FF / #8FD8FF). */
.header-nav a.nav-join {
  font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800;
  font-size: 0.95rem; line-height: 1.1; white-space: nowrap; align-self: center;
  color: #0a1e24; background: linear-gradient(180deg, #8fd8ff, #57a8ff);
  border: 2px solid #8fd8ff; border-radius: 999px; padding: 0.52rem 1.2rem;
  max-width: 12rem;
}
.header-nav a.nav-join:hover { color: #0a1e24; filter: brightness(1.08); }
.header-nav a.nav-join .nav-join-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .header-nav a.nav-join { font-size: 0.8rem; padding: 0.42rem 0.85rem; max-width: 9.5rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-nav a.nav-join { font-size: 0.78rem; padding: 0.3rem 0.7rem; }
}

.social-promo {
  display: flex; align-items: center; gap: 1rem;
  margin: 1rem 0; padding: 0.9rem 1.1rem;
  background: linear-gradient(165deg, rgba(64, 47, 84, 0.42), rgba(16, 37, 45, 0.58));
  border: 1px solid rgba(143, 216, 255, 0.50); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(249, 229, 194, 0.10), inset 0 0 18px rgba(87, 168, 255, 0.07), 0 0 22px rgba(87, 168, 255, 0.20);
}
.social-promo-ghost { height: 64px; width: auto; flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(143, 216, 255, 0.6)); }
.social-promo-body { flex: 1 1 auto; min-width: 0; }
.social-promo-title { margin: 0 0 0.25rem; font-size: 1.3rem; color: #8fd8ff; text-shadow: 0 0 14px rgba(143, 216, 255, 0.45), 0 2px 0 rgba(0, 0, 0, 0.5); }
.social-promo-line { margin: 0; color: #cfe7fb; line-height: 1.45; }
.social-promo-cta { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; flex: 0 0 auto; text-align: center; }
.social-promo-btn {
  font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800;
  color: #0a1e24; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #8fd8ff, #57a8ff);
  border: 2px solid #8fd8ff; border-radius: 999px; padding: 0.6rem 1.15rem;
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.social-promo-btn:hover { color: #0a1e24; filter: brightness(1.08); }
.social-promo-alt { color: #a9cdf5; font-size: 0.85rem; }
a.social-promo-alt:hover { color: #8fd8ff; }
@media (max-width: 760px) {
  .social-promo { flex-wrap: wrap; gap: 0.7rem; padding: 0.85rem 0.9rem; }
  .social-promo-ghost { height: 52px; }
  .social-promo-title { font-size: 1.12rem; }
  .social-promo-cta { flex: 1 1 100%; }
  .social-promo-btn { white-space: normal; }
}

/* ============ z126: ORANGE OUTLINE RING ON HEADER NAV DISCS (Dan, Oct 25) ============
   Blue discs stay (nav2_* art). Dan wanted the orange back as an OUTLINE RING only:
   a box-shadow ring sits outside the disc, follows the 50% radius, and cannot
   shift layout or change disc sizes at any width. */
.header-nav a.navbtn img,
.site-header.v2 .header-nav a.navbtn img { box-shadow: 0 0 0 2px #ff7518; }

/* ============ z127: JOIN PILL SAYS "JOIN HAUNTSOCIAL" (Dan, Oct 25) ============
   The pill label grew from "Join" to "Join HauntSocial" (Dan named the social
   network). Widen the pill's max-width so the longer label never ellipsizes;
   the pill sits on its own wrapped line on phone, so the extra width is safe.
   Nothing else changes: same href, same member-state @handle behavior. */
.header-nav a.nav-join { max-width: 16rem; }
@media (max-width: 760px) {
  .header-nav a.nav-join { max-width: 13rem; }
}

/* ============ z128: JOIN BUTTONS IN THE DRIP FONT (Dan, Oct 25) ============
   Dan: "Let's use the drippy font for join social button." Both join
   buttons get Nosifer (self-hosted, same face as .pack-drip):
   (1) NAV PILL — the pill stays azure-filled, so the label goes deep
   navy #0F2E54 (the pack-drip shadow color) with a dark drip shadow;
   the pill's own azure glow is unchanged. Scoped to the anonymous
   pill only: a member's @handle pill keeps the game font.
   (2) PROMO BAND CTA — the full .pack-drip treatment (azure #57A8FF
   glyphs, deep-blue drip shadow, azure glow), so the CTA needs the
   dark fill those headings sit on; scoped via [href="/signup"] so a
   member's "Go to your page" button is untouched.
   Nosifer is WIDE: sizes are tuned down and the label gets breathing
   room (line-height + a touch of padding) so the drips never clip
   against the label span's overflow:hidden. */
.header-nav a.nav-join:not(.nav-join-member) .nav-join-label {
  font-family: "Nosifer", "Creepster", cursive;
  font-weight: 400;
  color: #0f2e54;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
  padding: 0.06rem 0.1rem 0.14rem;
  text-shadow: 0 2px 0 rgba(10, 30, 36, 0.30), 0 0 9px rgba(255, 255, 255, 0.28);
}
@media (max-width: 760px) {
  .header-nav a.nav-join:not(.nav-join-member) .nav-join-label { font-size: 0.64rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-nav a.nav-join:not(.nav-join-member) .nav-join-label { font-size: 0.62rem; }
}
.social-promo-btn[href="/signup"] {
  font-family: "Nosifer", "Creepster", cursive;
  font-weight: 400;
  color: #57a8ff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
  background: linear-gradient(180deg, #14304f, #0f2e54);
  border-color: #57a8ff;
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.55), inset 0 1px 0 rgba(143, 216, 255, 0.30);
  text-shadow: 0 2px 0 rgba(15, 46, 84, 0.55), 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 14px rgba(87, 168, 255, 0.35);
}
.social-promo-btn[href="/signup"]:hover { color: #57a8ff; filter: brightness(1.18); }
@media (max-width: 760px) {
  .social-promo-btn[href="/signup"] { font-size: 0.72rem; }
}
/* ============ z129: HAUNTSOCIAL PHASE A (Dan, Oct 25 — STAGED) ============
   The social network gets its name (HauntSocial) and the MySpace-success
   lessons: mascot host Frank, wall treats, profile anthem, Top 8 THINGS,
   and SAFE preset profile themes (CSS variables only, profile page only).
   Scoped .soc-* / .social-promo-* like everything social before it. */
.soc-kicker { font-family: var(--font-game); text-transform: uppercase;
  letter-spacing: 0.35em; font-size: 0.72rem; font-weight: 800;
  color: var(--accent2); margin: 0 0 0.35rem; }
.soc-profile-kicker { padding: 0.2rem 0.2rem 0.55rem; }
.soc-official { display: inline-block; background: linear-gradient(180deg, #8fd8ff, #57a8ff);
  color: #0a1e24; border-radius: 999px; padding: 0.05rem 0.55rem;
  font-size: 0.72rem; font-weight: 800; vertical-align: middle; }
.soc-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.soc-themed { border-radius: 18px; padding: 0.65rem 0.65rem 1rem; }

/* Promo band brand kicker (above the standing approved headline). */
.social-promo-kicker { font-family: var(--font-game); text-transform: uppercase;
  letter-spacing: 0.35em; font-size: 0.7rem; font-weight: 800;
  color: #8fd8ff; opacity: 0.9; margin: 0 0 0.15rem; }

/* Wall treats: one sticker per comment, chosen from the fixed set. */
.soc-treats { display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem; margin: 0 0 0.55rem; }
.soc-treats-label { color: var(--muted); font-size: 0.85rem; margin-right: 0.15rem; }
.soc-treat { display: inline-flex !important; margin: 0 !important; cursor: pointer;
  font-weight: 400 !important; }
.soc-treat input { position: absolute; opacity: 0; pointer-events: none; }
.soc-treat span { display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem; padding: 0 0.4rem; border-radius: 999px;
  background: var(--bg2); border: 1px solid #33254f; font-size: 1.05rem; }
.soc-treat input:checked + span { border-color: var(--accent2);
  box-shadow: 0 0 10px rgba(87, 168, 255, 0.55); }
.soc-treat input:focus-visible + span { outline: 2px solid var(--accent2); }
.soc-treat span { font-size: 1.05rem; }
.soc-treat:first-of-type span { font-size: 0.8rem; }
.soc-treat-gift { font-size: 1.25rem; vertical-align: -0.15em; }

/* My Top 8 (things) — profile grid + edit rows. */
.soc-top8-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.soc-top8-card { display: flex; flex-direction: column; gap: 0.15rem;
  background: var(--card); border: 1px solid #33254f; border-radius: var(--radius);
  padding: 0.55rem; color: var(--ink); text-decoration: none; min-width: 0; }
a.soc-top8-card:hover { border-color: var(--accent2); }
.soc-top8-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; }
.soc-top8-fallback { font-size: 1.7rem; line-height: 1.2; }
.soc-top8-title { font-weight: 700; font-size: 0.86rem; overflow-wrap: anywhere; }
.soc-top8-sub { color: var(--muted); font-size: 0.75rem; overflow-wrap: anywhere; }
@media (max-width: 560px) { .soc-top8-grid { grid-template-columns: repeat(2, 1fr); } }
.soc-top8-edit { margin-top: 1rem; }
.soc-top8-edit-head { font-weight: 700; margin: 0 0 0.5rem; }
.soc-top8-row { display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 0.45rem; margin-bottom: 0.5rem; }
.soc-top8-num { flex: 0 0 1.4rem; height: 2.2rem; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 800;
  color: var(--accent2); }
.soc-top8-row select, .soc-top8-row input[type="text"] {
  background: var(--bg2); border: 1px solid #33254f; color: var(--ink);
  border-radius: 10px; padding: 0.55rem; font-size: 0.95rem; font-family: inherit; }
.top8-haunt-fields, .top8-film-fields { flex: 1 1 220px; min-width: 0; position: relative; }
.top8-haunt-fields input[type="text"], .top8-film-fields input[type="text"] { width: 100%; }
.top8-results { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.3rem; }
.top8-hit { text-align: left; background: var(--card); color: var(--ink);
  border: 1px solid var(--accent2); border-radius: 8px; padding: 0.4rem 0.6rem;
  cursor: pointer; font-size: 0.88rem; }
.top8-none { color: var(--muted); font-size: 0.85rem; }

/* Theme picker chips in /profile/edit (one per preset). */
.soc-theme-chip { width: 44px; height: 22px; border-radius: 6px; display: inline-block; }
.soc-theme-midnight { background: linear-gradient(120deg, #0e1b21, #57a8ff); }
.soc-theme-pumpkin { background: linear-gradient(120deg, #2b1200, #ff7518); }
.soc-theme-slime { background: linear-gradient(120deg, #0c2405, #6abe30); }
.soc-theme-bloodmoon { background: linear-gradient(120deg, #1c0208, #e0313c); }
.soc-theme-graveyard { background: linear-gradient(120deg, #0d0d12, #9a8cff); }

/* ============ z130: UPDATE BAR LIVE + NEW EVENTS ANNOUNCEMENT (Dan, Oct 25) ============
   The just-added ticker (staged Oct 23) goes live: a stock-board crawl
   of the newest additions, one slim bar between the VT/TV strip and
   the hero. The top strip's 0.9rem bottom gap is split around the bar
   (0.45 + 0.45), so the only added vertical space is the bar itself
   (32px). Motion is a continuous LINEAR right-to-left crawl — no
   easing, no fades — over two identical groups; the inline script sets
   the duration from the content width so the speed stays a constant
   ~60px/sec. The crawl leads with Dan's pinned announcement ("NEW
   EVENTS posted in every city!" -> /events): .nt-announce keeps its
   exact casing (no board uppercase) in accent orange so it reads as
   an announcement, not another listing. */
.vt-tv-strip.vt-tv-strip-top { margin-bottom: 0.45rem; }
.news-ticker {
  position: relative; height: 32px; margin: 0 0 0.45rem;
  background: linear-gradient(90deg, #1d1038, #120b24);
  border: 1px solid #3a2566; border-radius: 10px; overflow: hidden;
}
.nt-chip {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 0.3rem; padding: 0 0.65rem;
  background: var(--accent); color: #1a0f00;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
  box-shadow: 10px 0 14px -4px rgba(10, 4, 24, 0.9);
}
.nt-viewport { position: absolute; inset: 0; overflow: hidden; }
.nt-track {
  display: flex; width: max-content; height: 100%; align-items: center;
  will-change: transform;
  animation: nt-crawl 45s linear infinite;
}
.nt-group { display: flex; align-items: center; flex: none; }
.nt-item {
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.045em;
  text-transform: uppercase;
}
.nt-item:hover { color: #ffd9a8; }
.nt-announce { text-transform: none; color: var(--accent); font-weight: 800; }
.nt-town { color: var(--muted); font-weight: 600; }
.nt-sep { color: var(--accent); margin: 0 0.7rem; font-size: 0.7rem; flex: none; }
@keyframes nt-crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.news-ticker:hover .nt-track,
.news-ticker:active .nt-track,
.news-ticker:focus-within .nt-track,
.news-ticker.nt-paused .nt-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .nt-track { animation: none; }
  .nt-viewport { overflow-x: auto; scrollbar-width: none; }
  .nt-viewport::-webkit-scrollbar { display: none; }
  .nt-group + .nt-group { display: none; }

}

/* ============ z131: BAND CTA LETTERS BIGGER (Dan, Oct 25) ============
   Dan: "Make the Join HauntSocial letters bigger on the join button
   on home page." Scoped to the homepage promo band CTA only: the
   z128 drip button (dark navy fill, azure Nosifer glyphs, azure
   glow) grows from 0.8rem to 1.05rem on desktop and 0.72rem to
   0.95rem on phone. At 1.05rem single-line the button would take
   536px of the band's 688px and crush the band text into a ~31px
   column, so on desktop the button now wraps to two lines inside
   a 21rem cap (white-space: normal, the phone treatment): letters
   at full size, band text column ends up WIDER than the z128
   baseline (231px vs 151px). On phone the label wraps the same
   way (z125) with the cap lifted so the button spans its row.
   Padding gets a small bump so the bigger glyphs and their drips
   keep breathing room. Nav pill and the member-state "Go to your
   page" button are untouched. */
.social-promo-btn[href="/signup"] { font-size: 1.05rem; padding: 0.7rem 1.3rem; white-space: normal; max-width: 21rem; }
@media (max-width: 760px) {
  .social-promo-btn[href="/signup"] { font-size: 0.95rem; padding: 0.65rem 1.1rem; max-width: none; }
}
/* ============ z132: HAUNTSOCIAL EXPLAINER + BAND RESTACK (Dan, Oct 25) ============
   (1) The promo band moves INSIDE .hero-split as grid area "social",
   above the sponsor billboard in every .hero-split area list (stacked
   lists: right before "sponsor"; 3-column lists: a full-width top
   row) — Dan: "put the Halloween social network block above the
   sponsor." No rail/hero block is hidden or removed.
   (2) Inside the band, ghost + headline share ONE row (ghost left,
   headline vertically centered against it) on phone and laptop —
   Dan: "put the First Halloween Social Network text next to the
   ghost picture in the block." The HauntSocial kicker rides atop the
   headline column. Under the row: Dan's approved explainer subline,
   the standing claim line, and the CTA stack (z128 drip button
   untouched) ending in a "What is HauntSocial?" link to /hauntsocial.
   (3) The same approved copy lands on /signup (.soc-sub) and on the
   new /hauntsocial explainer page (.hs-about). */
.hero-split > .social-promo { grid-area: social; margin: 0; min-width: 0; }
.social-promo { flex-direction: column; align-items: stretch; gap: 0.65rem; }
.social-promo-top { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.social-promo-head { flex: 1 1 auto; min-width: 0; }
.social-promo-ghost { height: 76px; }
.social-promo-sub { margin: 0; color: #eaf6ff; font-weight: 700; line-height: 1.45; }
.social-promo-cta { align-items: stretch; flex: none; }
.social-promo-what { color: #a9cdf5; font-size: 0.85rem; }
.social-promo-what:hover { color: #8fd8ff; }
@media (min-width: 761px) {
  .social-promo-ghost { height: 88px; }
  .social-promo-cta { align-items: flex-start; text-align: left; }
}
@media (max-width: 760px) {
  .social-promo-ghost { height: 62px; }
}
.soc-sub { color: var(--ink); margin: 0.2rem 0 0; }
.hs-about { max-width: 620px; margin: 0 auto; }
.hs-about-frank { float: right; width: 190px; max-width: 44%; height: auto;
  margin: 0.15rem 0 0.7rem 1rem; border-radius: 14px;
  border: 1px solid rgba(143, 216, 255, 0.45);
  box-shadow: 0 0 22px rgba(87, 168, 255, 0.30); }
.hs-about-list { list-style: none; margin: 0.7rem 0 1rem; padding: 0;
  display: grid; gap: 0.5rem; }
.hs-about-cta { clear: both; display: flex; flex-direction: column;
  align-items: flex-start; gap: 0.45rem; margin-top: 1.25rem; }
@media (max-width: 560px) {
  .hs-about-frank { float: none; display: block; margin: 0 auto 0.9rem;
    width: 170px; max-width: 70%; }
  .hs-about-cta { align-items: stretch; text-align: center; }
}

/* ============ z133: WIDE JOIN BUTTON + NAV DISC CLEANUP (Dan, Oct 25) ============
   Two asks from Dan's phone screenshot:
   (1) The Join HauntSocial pill goes LENGTHWISE — its own full-width
   line under the nav discs on every (non-compact) viewport — and the
   label grows a tagline: "JOIN HAUNTSOCIAL - THE FIRST HALLOWEEN
   SOCIAL NETWORK". The main label keeps the navy Nosifer drip from
   z128 at Dan's reduced size (0.67rem desktop / 0.58rem phone); the
   tagline rides in the pill's bold game sans (render-measured: the
   full line in Nosifer overflowed the button at 360/390px, and the
   drip-headline + clean-tagline pairing reads better anyway). The member @handle
   pill takes the same wide line, handle only, tagline is join-state
   only. The pill also slims a touch vertically (padding trim). The
   compact landscape header (height <= 500px) keeps its in-row pill.
   (2) The phone disc grid gets clean and neat: the portrait grid's
   1fr columns run ~36px at 390px while the disc art was fixed at
   42px, so the orange-ringed circles overflowed their tracks and
   touched. Now the art fills its column exactly (border-box), the
   grid gap is a uniform 8px on both axes, and discs align at their
   row tops instead of centering against wrapped two-line labels.
   Discs free the desktop row too — the pill leaving it lets the ten
   discs + Events art take the full width. */
/* --- the wide join button --- */
.header-nav a.nav-join { text-align: center; padding: 0.45rem 1.2rem; }
@media (max-width: 760px) {
  .header-nav a.nav-join { padding: 0.36rem 0.7rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-nav a.nav-join { padding: 0.3rem 0.7rem; }
}
@media (min-height: 501px) {
  .site-header.v2 .header-nav { flex-wrap: wrap; }
  .header-nav a.nav-join { flex: 1 1 100%; max-width: none; }
}
.header-nav a.nav-join:not(.nav-join-member) .nav-join-label { font-size: 0.67rem; }
.header-nav a.nav-join .nav-join-tag {
  font-family: var(--font-game); font-weight: 800; letter-spacing: 0.04em;
  font-size: 1.05em; text-shadow: 0 1px 0 rgba(10, 30, 36, 0.25);
}
@media (max-width: 760px) {
  .header-nav a.nav-join:not(.nav-join-member) .nav-join-label { font-size: 0.58rem; }
  .header-nav a.nav-join .nav-join-tag { font-size: 0.92em; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .header-nav a.nav-join:not(.nav-join-member) .nav-join-label { font-size: 0.62rem; }
}
/* --- phone portrait: pill spans the grid; discs fit their columns --- */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav { column-gap: 8px; row-gap: 8px; }
  .site-header.v2 .header-nav a.navbtn { align-self: start; }
  .site-header.v2 .header-nav a.navbtn img { width: 100%; height: auto; max-width: 46px; aspect-ratio: 1; }
  .site-header.v2 .header-nav a.nav-join { grid-column: 1 / -1; }
}

/* ============ z134: HAUNTSOCIAL WORDMARK IN EATER (Dan's pick, Oct 25) ============
   The HauntSocial band gets a logo line: the h2 .social-promo-wordmark
   ("HauntSocial" in Eater — the wide goo-drip Halloween display face Dan
   chose from the three-option preview over Creepster and Pirata One),
   azure #8FD8FF glyphs + layered blue glow per the Logo-Game theme; red
   stays reserved for the header hook words. "The First Halloween Social
   Network" sits in the kicker slot above it. The /hauntsocial h1 gets the
   same face on its "HauntSocial" span. Faces SELF-HOSTED under
   static/fonts/ (site standard — no hotlinking). Nothing else in the band
   changes: layout, subline, claim line, drip CTA, ghost, and the band's
   seat above the sponsor billboard are all exactly as before. */
@font-face {
  font-family: "Creepster";
  src: url("/static/fonts/Creepster.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eater";
  src: url("/static/fonts/Eater.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Band wordmark — Eater (wide goo-drip, runs smaller, drips need line room) */
.social-promo-title.social-promo-wordmark {
  font-family: "Eater", cursive;
  font-weight: 400;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.28;
  text-transform: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #8fd8ff;
  text-shadow: 0 0 16px rgba(87, 168, 255, 0.55), 0 0 44px rgba(87, 168, 255, 0.30), 0 2px 0 rgba(0, 0, 0, 0.5);
}
/* /hauntsocial headline — same face on the "HauntSocial" span */
.hs-wordmark-inline {
  font-family: "Eater", cursive;
  text-transform: none;
  font-size: 1.0em;
  white-space: nowrap;
  color: #8fd8ff;
  text-shadow: 0 0 14px rgba(87, 168, 255, 0.50), 0 0 36px rgba(87, 168, 255, 0.28), 0 2px 0 rgba(0, 0, 0, 0.45);
}

/* ============ z135: EATER EVERYWHERE THE BRAND APPEARS (Dan, Oct 25) ============
   Dan: "fix the HauntSocial font anywhere on the page with the new font."
   z134 put Eater on the band wordmark + /hauntsocial h1; this pass wraps
   EVERY remaining HauntSocial brand word in a .hs-brand span and sets it
   in the same Eater face, so the social network's identity reads in Eater
   site-wide:
     - header JOIN bar (.nav-join-brand inside the Nosifer label; "Join"
       stays Nosifer and the tagline stays bold game sans — the pairing
       z133 measured to fit; only the HAUNTSOCIAL word changes face)
     - band + /hauntsocial Join CTAs (the brand word inside the Nosifer
       "Join HauntSocial — claim your handle" button)
     - the .soc-kicker brand line on /signup, /login, /hauntsocial and
       profile pages (the kicker IS the brand word on those pages)
     - the /signup h1 brand word
     - "What is HauntSocial?" + "Join HauntSocial" text links
   Deliberately NOT Eater: body copy and prose mentions of the network,
   taglines ("The First Halloween Social Network"), form labels, member
   handles, and <title> tags — readability surfaces stay in their faces.
   Eater is all-drip display: spans get text-transform:none (brand
   camel-case, same as the z134 wordmark) and drip room in line-height. */
.hs-brand {
  font-family: "Eater", cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
}
/* Header JOIN bar — the brand word inside the measured Nosifer label.
   Sized a hair under the label so the full line keeps z133's fit. */
.header-nav a.nav-join .nav-join-brand {
  font-size: 0.96em;
  line-height: 1.3;
}
/* Page kickers that are the brand word itself: the kicker's game sans
   runs 0.72rem letterspaced; Eater needs more presence + drip room. */
.soc-kicker .hs-brand {
  font-size: 1.5em;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
/* Join CTAs: brand word at the button's own size (Nosifer 0.8rem);
   Eater's advance is close to Nosifer's, the button fit is unchanged. */
.social-promo-btn .hs-brand { line-height: 1.3; }
/* /signup h1: brand word inherits the h1 size; drips need the room. */
.soc-auth h1 .hs-brand { line-height: 1.25; }
/* ============ z136: RAIL BOOST PHASE 1 (Dan, Oct 25) ============
   Pin-page discovery upgrades aimed at the rail_click metric: earned
   card badges, view counts on all rail cards, per-rail attribution
   (no styles), the moved-up "More near here" rail, rail-end tour adds,
   the Keep exploring tail, and an unmistakable in-tour card state. */
/* One badge per card, top-right of the media (the Sample badge owns
   top-left). Colors from the logo palette; glyph stays crisp. */
.card-badge { position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 0.16rem 0.55rem; border-radius: 999px; color: #0b151a;
  box-shadow: 0 0 10px rgba(87, 168, 255, 0.45); pointer-events: none; }
.cb-star { background: #e6b16d; }
.cb-hot { background: #eb7a2c; color: #fff7ea; }
.cb-new { background: #57a8ff; color: #08131f; }
/* Baymard addendum: a collected pin inside a rail must read at a
   glance — brighter ring + glow on top of the existing green state. */
.rail .tour-add-btn.in-tour { box-shadow: 0 0 0 2px #2f8f4a, 0 0 12px rgba(47, 143, 74, 0.55); }
/* Rail-end bulk add sits under its rail, clear of the cards. */
.rail-add-all { margin-top: 0.55rem; }
.engage-next .rail-add-all { margin-top: 0.7rem; margin-right: 0.5rem; }
/* Keep exploring tail. */
.explore-section #btn-explore { margin-top: 0.4rem; }
.explore-section #explore-rail:empty { display: none; }

/* ============ z137: JOIN BAR — FLAT + "JOIN" IN EATER (Dan, Oct 25) ============
   Dan: "get rid of the background shadow behind the join hauntsocial
   and make the font for join the same as our new HauntSocial font."
   (1) The header JOIN bar (.header-nav a.nav-join) is FLAT now: its
   box-shadow (azure glow + inset highlight, from the z125 base rule)
   is deleted from that rule above. Only the bar's own shadow goes —
   discs, cards and the homepage band CTA keep theirs.
   (2) The word "Join" in the bar label moves from Nosifer to Eater,
   the same face as the HauntSocial word beside it (new .nav-join-first
   .hs-brand span in base.html). Navy #0F2E54 is inherited from the
   label, sizes/layout unchanged; the tagline stays bold game sans;
   the member-state @handle bar is untouched. Sized/leading matched
   to .nav-join-brand so the two Eater words sit as one line. */
.header-nav a.nav-join .nav-join-first {
  font-size: 0.96em;
  line-height: 1.3;
}

/* ============ z138: HAUNTSOCIAL PHOTO UPLOADS (Dan, Oct 25) ============
   "We should be able to upload our profile picture into HauntSocial
   and add photos as well." The uploaded picture renders through the
   existing .soc-avatar-img (round, object-fit cover); these rules add
   only the public Photos grid and the edit-page manager boxes. */
.soc-photo-grid { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.6rem; }
.soc-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); display: block; }
.soc-upload-box { margin-top: 1.6rem; background: var(--card);
  border-radius: var(--radius); padding: 1rem; }
.soc-upload-head { margin: 0 0 0.7rem; font-size: 1.1rem; }
.soc-upload-current { display: flex; gap: 0.9rem; align-items: center;
  margin-bottom: 0.9rem; }
.soc-upload-current p { margin: 0 0 0.5rem; }
.soc-upload-current form { margin: 0; }
.soc-upload-box .form { margin-top: 0.4rem; }
.soc-photo-manage .soc-photo-item { margin: 0; }
.soc-photo-manage .soc-photo-item form { margin-top: 0.25rem;
  text-align: right; }

/* ============ z139: BAND JOIN BUTTON — "JOIN" IN EATER TOO (Dan, Oct 25) ============
   Dan, from his phone screenshot of the homepage band: "Let's make the
   'Join' on the join HauntSocial button the same font here." The band
   CTA (.social-promo-btn href=/signup) set "HauntSocial" in Eater
   (.hs-brand) but left "Join" in the button's Nosifer drip face, so
   the two words visibly mismatched. Same treatment as the z137 header
   JOIN bar: "Join" now wears its own .hs-brand span (.promo-join-first)
   in templates/index.html + templates/hauntsocial.html. The brand word
   beside it sits at the button's own size (see the z135 note on
   .social-promo-btn .hs-brand), so "Join" matches it at 1em — no size
   shrink — with the same drip-room line-height. Button size, padding,
   colors and glow unchanged; the member-state "Go to your page"
   variant and every other button's drip font are untouched. */
.social-promo-btn .promo-join-first {
  font-size: 1em;
  line-height: 1.3;
}

/* ============ z139 (2): BILLBOARD HEADING — DROP SHADOW GONE (Dan, Oct 25) ============
   Dan, zoomed screenshot of the homepage sponsor billboard: remove
   the drop shadow behind the "⭐ FEATURED SPONSORS" heading text.
   That heading is .sponsor-section h2; its own rules set color/size/
   spacing but never a shadow — the echo is the site-wide h2 glow
   (gold halos + a 0 2px 0 black offset) landing on black billboard
   type. Scoped off here ONLY: the heading's text, color, size and
   letter-spacing stay, the billboard panel (frame + box-shadow) is
   untouched, and every other h2 keeps the theme glow. The card's
   inner .sponsor-tier tag ("FEATURED SPONSOR") is a separate rule
   that never carried a text-shadow — unchanged. */
.sponsor-section h2 { text-shadow: none; }

/* ============ z140: "GET TO KNOW ME" PROFILE BUNDLE (Dan, Oct 25) ====
   Dan's picks from the fun-fields menu (items 1–11 + 13, not #12):
   optional HauntSocial profile fields, edited on /profile/edit under
   a "Get to know me" heading and rendered as ONE section on the
   profile — badge row for the picks (haunter kind / monster ego /
   scare tolerance), labeled rows for the short texts, a quote block
   for the best Halloween memory, and the favorite song captioning
   the Anthem player. The section exists only when something is set,
   so an untouched profile renders exactly as before. Passport
   stamps (#11) are NOT here: passport progress is device-local
   localStorage (hm_seen) with no account tie-in — see the ship
   report for the account-linking work it needs. All colors ride the
   theme variables, like every .soc-* block before it. */
.soc-anthem-song { color: var(--muted); margin: 0.45rem 0 0;
  font-size: 0.92rem; }
.soc-gtk-badges { display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 0 0 0.55rem; }
.soc-badge { display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--bg2); border: 1px solid #33254f; border-radius: 999px;
  padding: 0.32rem 0.75rem; font-weight: 600; font-size: 0.9rem; }
.soc-gtk-line { margin: 0.3rem 0; font-weight: 600; }
.soc-gtk-rows { margin: 0.6rem 0 0; }
.soc-gtk-row { display: flex; gap: 0.7rem; padding: 0.3rem 0;
  border-top: 1px dashed #33254f; }
.soc-gtk-row dt { flex: 0 0 11.5rem; color: var(--muted);
  font-size: 0.88rem; font-weight: 600; }
.soc-gtk-row dd { margin: 0; flex: 1; min-width: 0;
  overflow-wrap: anywhere; }
.soc-gtk-row dd a { color: var(--accent2); font-weight: 700; }
@media (max-width: 560px) {
  .soc-gtk-row { flex-direction: column; gap: 0.1rem; }
  .soc-gtk-row dt { flex: none; }
}
.soc-gtk-memory { margin: 0.8rem 0 0; background: var(--card);
  border: 1px solid #33254f; border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 0.75rem 0.95rem; }
.soc-gtk-memory p { margin: 0; font-style: italic; white-space: pre-wrap;
  overflow-wrap: anywhere; }
.soc-gtk-memory footer { margin-top: 0.45rem; color: var(--muted);
  font-size: 0.85rem; font-style: normal; }
.soc-gtk-edit { margin-top: 1rem; }
.soc-gtk-edit-head { font-weight: 700; margin: 0 0 0.5rem; }

/* ============ z141: HAUNT PASSPORT ON PROFILES (#11, Dan, Oct 25) ====
   The account half of the passport: a signed-in member's device set
   (hm_seen) union-merges into passport_stamps via POST
   /api/passport/sync, and the profile renders the collection as
   social proof — a total plus the most recent stamps, each linked to
   its pin. The block renders only when the member has stamps, so an
   unstamped profile is unchanged. Anonymous passport progress stays
   device-local and never appears here. Rides the theme variables
   like every .soc-* block before it. */
.soc-passport-total { font-weight: 700; margin: 0 0 0.4rem; }
.soc-passport-list { list-style: none; margin: 0; padding: 0; }
.soc-passport-list li { padding: 0.3rem 0;
  border-top: 1px dashed #33254f; overflow-wrap: anywhere; }
.soc-passport-list a { color: var(--accent2); font-weight: 700; }
.soc-passport-town { color: var(--muted); font-size: 0.85rem; }

/* ============ z142: GHOST MAZE (Dan, Oct 25) ====
   HauntMap's own maze-chase arcade game at /games/ghost-maze. The
   cabinet rides the rebrand language — dark glass panels, azure
   glow, cream type, pumpkin for the one loud button — and the board
   itself is all canvas (static/js/ghost_maze.js draws everything,
   no image assets). Featured card takes the top of the /games hub
   without demoting anything: the grid just gains a hero row. */
.game-card-featured { grid-column: 1 / -1; border-color: #57a8ff;
  background: linear-gradient(135deg, #0f2e54 0%, #16232b 55%, #2a1608 130%);
  box-shadow: 0 0 22px rgba(87,168,255,0.35); }
.game-card-featured h3 { font-size: 1.5rem; }
a.game-card-featured:hover { border-color: #ff7b1c; }

.gm-wrap { max-width: 460px; margin: 0 auto; }
.gm-hud { display: flex; align-items: flex-end; gap: 0.9rem;
  padding: 0.5rem 0.2rem 0.6rem; }
.gm-stat { display: flex; flex-direction: column; line-height: 1.15; }
.gm-stat-l { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.gm-stat-n { font-family: Fredoka, system-ui, sans-serif; font-weight: 700;
  font-size: 1.15rem; color: var(--ink); }
.gm-iconbtn { margin-left: auto; background: rgba(14,27,33,0.85);
  border: 1px solid #2a4a6b; border-radius: 10px; color: var(--ink);
  font-size: 1rem; padding: 0.3rem 0.5rem; cursor: pointer; }
.gm-iconbtn + .gm-iconbtn { margin-left: 0; }
.gm-iconbtn:hover { border-color: #57a8ff; }
/* Ghost Maze fullscreen (Dan, Oct 27) — the ⛶ chip lives in the HUD
   (the cabinet's own control row, same dark-chip/azure language as the
   portal frames) and fullscreens the whole cabinet (#gm-wrap): HUD,
   stage and D-pad stay together and the stage is sized off the screen
   HEIGHT so nothing overflows or stretches — canvas keeps its native
   418:528 aspect. Exit restores the 460px column untouched. */
#gm-fs { color: #8fd8ff; }
@media (pointer: coarse) { #gm-fs { min-width: 44px; min-height: 44px; } }
.gm-wrap:fullscreen, .gm-wrap:-webkit-full-screen { max-width: none; width: 100%; height: 100%; background: #05080a; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.5rem; box-sizing: border-box; overflow: auto; }
.gm-wrap:fullscreen .gm-hud, .gm-wrap:-webkit-full-screen .gm-hud,
.gm-wrap:fullscreen .gm-stage, .gm-wrap:-webkit-full-screen .gm-stage { width: min(96vw, calc((100vh - 200px) * 0.7917)); width: min(96vw, calc((100dvh - 200px) * 0.7917)); flex: none; }

.gm-stage { position: relative; border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(87,168,255,0.35), 0 0 4px rgba(87,168,255,0.6);
  border: 1px solid #2a4a6b; overflow: hidden; background: #05080a; }
#gm-canvas { display: block; width: 100%; height: auto; touch-action: none; }

.gm-overlay { position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(5,8,10,0.55); }
.gm-overlay.gm-show { display: flex; }
.gm-panel { text-align: center; max-width: 330px; padding: 1.2rem 1.3rem;
  background: rgba(14,27,33,0.92); border: 1px solid #57a8ff;
  border-radius: var(--radius);
  box-shadow: 0 0 26px rgba(87,168,255,0.45); }
.gm-panel-title { margin: 0 0 0.4rem; font-family: Fredoka, system-ui, sans-serif;
  font-size: 1.7rem; color: var(--ink); }
.gm-panel-text { margin: 0 0 0.8rem; color: #c9c4d4; line-height: 1.45; }
.gm-panel-score { margin: 0 0 0.5rem; font-family: Fredoka, system-ui, sans-serif;
  font-weight: 700; font-size: 1.15rem; color: #ff7b1c; }
.gm-panel-note { margin: 0 0 0.8rem; font-size: 0.88rem; color: var(--muted); }
.gm-panel-note:not([hidden]) + .gm-start { margin-top: 0.1rem; }
.gm-start { background: #ff7b1c; color: #16100a; border: none; cursor: pointer;
  font-family: Fredoka, system-ui, sans-serif; font-weight: 700;
  font-size: 1.1rem; padding: 0.65rem 1.5rem; border-radius: 999px;
  box-shadow: 0 0 18px rgba(255,123,28,0.55); }
.gm-start:hover { background: #ff8c3a; }
.gm-panel-hint { margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--muted); }

.gm-dpad { display: grid; gap: 0.4rem; justify-content: center;
  grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(2, 52px);
  margin: 0.9rem auto 0.2rem; }
.gm-dbtn { background: rgba(14,27,33,0.9); border: 1px solid #2a4a6b;
  border-radius: 12px; color: #57a8ff; font-size: 1.15rem; cursor: pointer;
  touch-action: none; -webkit-tap-highlight-color: transparent; }
.gm-dbtn:active { background: #0f2e54; border-color: #57a8ff; }
.gm-dup { grid-column: 2; grid-row: 1; }
.gm-dleft { grid-column: 1; grid-row: 2; }
.gm-ddown { grid-column: 2; grid-row: 2; }
.gm-dright { grid-column: 3; grid-row: 2; }

.gm-board, .gm-how { max-width: 460px; margin: 1.6rem auto 0; }
.gm-board h2, .gm-how h2 { font-family: Fredoka, system-ui, sans-serif; }
.gm-board-list { list-style: none; counter-reset: gmrank; margin: 0; padding: 0; }
.gm-board-list li { counter-increment: gmrank; display: flex;
  align-items: baseline; gap: 0.6rem; padding: 0.45rem 0.7rem;
  background: #161c24; border: 1px solid #2a3442; border-radius: 10px;
  margin-bottom: 0.4rem; }
.gm-board-list li::before { content: counter(gmrank);
  font-family: Fredoka, system-ui, sans-serif; font-weight: 700;
  color: #57a8ff; min-width: 1.2rem; text-align: right; }
.gm-board-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.gm-board-score { margin-left: auto; font-family: Fredoka, system-ui, sans-serif;
  font-weight: 700; color: #ff7b1c; }
.gm-board-empty, .gm-board-you { color: var(--muted); }
.gm-how p { color: #c9c4d4; line-height: 1.55; }

/* ============ BUBBLES: HAUNTED ARCADE MAZE (Dan, Oct 26 — STAGED) ==
   The 7 hub bubbles — every .vt-tv-strip copy at once (homepage top,
   the phone twin, the sitewide bottom strip) — trade their mixed
   fills for the site's own arcade-maze treatment, built from the
   Ghost Maze palette in pure CSS: a deep maze-navy fill (#081a30,
   the game's maze color) under a faint neon grid, walls drawn as a
   double neon line (azure border + dark groove + inner line, the
   site's #57A8FF / #8FD8FF glow family), and a glowing candy pellet
   at each end of the corridor, tinted with the button's own
   long-standing accent color. Generic neon arcade styling only —
   an original HauntMap treatment: no third-party character, name,
   maze layout or artwork anywhere. Labels, icons, order, sizes and
   seats are untouched — .vt-label cream stays crisp on the navy.
   Selectors repeat the strip class (.vt-tv-strip.vt-tv-strip a) so
   this block wins over the older per-button fills at (0,2,0). */
.vt-tv-strip.vt-tv-strip a {
  position: relative;
  background-color: #050f22;
  background-image:
    repeating-linear-gradient(0deg, rgba(87, 168, 255, 0.055) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(90deg, rgba(87, 168, 255, 0.055) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, #0d2547 0%, #081a30 55%, #040f20 100%);
  border: 2px solid #57a8ff;
  box-shadow:
    inset 0 0 0 2px rgba(4, 16, 31, 0.92),
    inset 0 0 0 3px rgba(143, 216, 255, 0.50),
    inset 0 0 14px rgba(87, 168, 255, 0.18),
    0 0 18px rgba(87, 168, 255, 0.38);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}
/* Candy pellets at both ends of each corridor bubble. */
.vt-tv-strip a::before,
.vt-tv-strip a::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: #f9e5c2;
  box-shadow: 0 0 6px 2px rgba(249, 229, 194, 0.45);
  pointer-events: none;
}
.vt-tv-strip a::before { left: 6px; }
.vt-tv-strip a::after { right: 6px; }
/* Each bubble's pellets keep its own accent (sparing — two 5px dots):
   Tour/TV azure, Music orange, Movies red, Art pink, Markets green,
   Top 100 gold — the same accents their borders carried before. */
.vt-tv-strip a.vt-btn::before, .vt-tv-strip a.vt-btn::after,
.vt-tv-strip a.tv-btn::before, .vt-tv-strip a.tv-btn::after {
  background: #8fd8ff; box-shadow: 0 0 6px 2px rgba(143, 216, 255, 0.50);
}
.vt-tv-strip a.music-btn::before, .vt-tv-strip a.music-btn::after {
  background: #ff7b1c; box-shadow: 0 0 6px 2px rgba(255, 123, 28, 0.50);
}
.vt-tv-strip a.movies-btn::before, .vt-tv-strip a.movies-btn::after {
  background: #e5484d; box-shadow: 0 0 6px 2px rgba(229, 72, 77, 0.50);
}
.vt-tv-strip a.art-btn::before, .vt-tv-strip a.art-btn::after {
  background: #ff5da2; box-shadow: 0 0 6px 2px rgba(255, 93, 162, 0.50);
}
.vt-tv-strip a.markets-btn::before, .vt-tv-strip a.markets-btn::after {
  background: #2fbf71; box-shadow: 0 0 6px 2px rgba(47, 191, 113, 0.50);
}
.vt-tv-strip a.top100-btn::before, .vt-tv-strip a.top100-btn::after {
  background: #ffb02e; box-shadow: 0 0 6px 2px rgba(255, 176, 46, 0.50);
}
/* Hover / keyboard focus: the corridor lights up a step (there was
   no strip hover rule before — this keeps states at least as clear
   as the old static brightness pass, and gives focus a real ring). */
.vt-tv-strip.vt-tv-strip a:hover,
.vt-tv-strip.vt-tv-strip a:focus-visible {
  filter: brightness(1.16);
  box-shadow:
    inset 0 0 0 2px rgba(4, 16, 31, 0.92),
    inset 0 0 0 3px rgba(143, 216, 255, 0.78),
    inset 0 0 16px rgba(87, 168, 255, 0.28),
    0 0 26px rgba(87, 168, 255, 0.60);
}

/* ============ z147: LAPTOP HOMEPAGE PASS (Dan, Oct 26) ============
   Seven fixes from Dan's laptop photos of the homepage, all scoped
   to laptop/desktop widths (>=761px / >=1000px) — phone rendering
   is untouched:
   (1) HAUNTSOCIAL BAND CENTERED: the .social-promo panel was already
   centered on the page, but its content group (ghost + wordmark row,
   explainer lines, CTA stack) hugged the left edge. On desktop the
   band now composes as a centered unit: the top row shrinks to its
   content and centers, the copy lines center, and the CTA stack
   centers — which also sizes the JOIN HAUNTSOCIAL button to its
   content (the z131 cap) instead of the row.
   (2) HUB BUBBLE STRIPS SPREAD OUT + SLEEKER (upgraded by Dan's
   second photo, Oct 26): the top strip was confined to the 720px
   text column while the hero composition below it spans 1060px,
   so the 7 maze bubbles bunched in the middle; the BOTTOM strip
   sat in the same narrow column, tighter still (92.8px bubbles),
   and in Dan's sidebar-narrowed Safari window it ran off the left
   edge, clipping "Virtual Tour". At >=1000px (the same breakpoint
   where .hero-split breaks out) BOTH strips take the hero's exact
   breakout — width min(1060px, 100vw - 2rem), centered as a unit
   with equal outer margins — the base flex:1 1 0 spreads the
   bubbles evenly with a uniform 0.6rem gap, and the bubbles go
   sleeker (~54px -> ~43px: smaller label type/leading, slimmer
   padding, icons scale with the type). Nothing can clip: the
   strip is viewport-capped and the bubbles shrink. Maze styling,
   pellets, labels, order and links untouched; the phone twin
   keeps its current seat and sizes.
   (3) JOIN BAR SIZED TO CONTENT: the header JOIN HAUNTSOCIAL bar
   (z133's full-width line) is "way too long" on laptop. It keeps its
   own row (flex-basis 100% still forces the wrap) but is capped at
   fit-content and centered with auto margins — a proper pill. The
   compact landscape header (height <=500px, in-row pill) and phone
   are unchanged. The member @handle pill takes the same sizing so
   the header reads consistently in both states.
   (4) SPONSOR BILLBOARD SHRUNK (left rail, >=1000px): the azure
   panel rode the full 252px column at ~399px tall. It now hugs a
   200px width at the column's left edge, stops stretching to its
   grid row (align-self: start — the empty azure under the card is
   gone), and tightens inside: smaller cover (72x108 -> 40x60),
   slimmer padding/type. Same azure panel, black frame/type, cover
   and links — roughly a quarter less width, a fifth less height,
   ~40% less footprint. The video above it keeps the full column.
   (5) "TOP 10 BY STATE" HEADING FITS: z113's fixed per-band ladder
   (4.6rem at 761-1199px) was tuned for a full-width bar; inside the
   hero column the bar is ~606px at a 1024px window and the nowrap
   Creepster label (684px) ran off its right edge — "TOP 10 BY
   STAT…". The label now sizes in container-query units against the
   block itself (8.6cqw, capped at the old 3.9rem), so it fills the
   bar at 1440 and still fits at 1024. The personalized h2 variant
   (0.95rem, wraps) never overflowed and is untouched.
   (6) NEAR YOU CHIPS SPREAD OUT (hero copy): the town chips sat at
   their natural widths bunched left, ~85px of dead box on the
   right of every row. Chips now flex-grow to fill each row edge to
   edge (uniform 0.45rem gaps, labels centered) and get beefier:
   padding 0.22/0.5rem -> 0.42/0.7rem, type 0.76rem -> 0.85rem.
   Labels, counts, links and the box's other copy are untouched;
   the phone copy (.near-you:not(.hero-copy)) keeps its grid.
   (7) TOWN-REQUEST CARD HUGS ITS FORM (left rail, >=1000px): the
   "Get your town on the map" panel stretched to its grid row —
   821px tall for 366px of form, a long empty tail below the
   button. align-self: start ends the panel shortly after the
   button with its normal padding; fields, copy and button are
   unchanged and the rail below moves up naturally. */
@media (min-width: 761px) {
  .social-promo { align-items: center; text-align: center; }
  .social-promo-cta { align-items: center; text-align: center; }
}
@media (min-width: 761px) and (min-height: 501px) {
  /* Force the pill onto its own line at EVERY desktop width: capping
     the pill at fit-content also shrinks its hypothetical flex size,
     so on wide screens it would otherwise slip back into the discs
     row (right-aligned, not centered). A zero-height full-basis
     ::after ordered just before it guarantees the line break; the
     extra line's row-gap cost is paid back on the pill itself (see
     below), so the header's height is unchanged. */
  .site-header.v2 .header-nav::after {
    content: ""; order: 1; flex: 0 0 100%; height: 0;
  }
  /* The extra (empty) line costs one 12px row-gap; the pill's -12px
     top margin pays it back, so the pill sits exactly where the old
     full-width bar sat and the header's height is unchanged. */
  .header-nav a.nav-join { order: 2; max-width: fit-content; margin-inline: auto; margin-top: -12px; }
}
@media (min-width: 1000px) {
  /* (2) Both laptop strips take the hero's exact breakout: the
     strip is a viewport-centered unit (equal outer margins at every
     width), its width can never exceed the viewport minus 1rem a
     side, and flex:1 1 0 + min-width:0 bubbles shrink before
     anything can clip — at ~1100 (Safari sidebar) as at 1920. */
  .vt-tv-strip.vt-tv-strip-top,
  .vt-tv-strip.vt-tv-strip-bottom {
    width: min(1060px, calc(100vw - 2rem));
    position: relative; left: 50%; transform: translateX(-50%);
    gap: 0.6rem;
  }
  /* (2b) SLEEKER BUBBLES (Dan, Oct 26, second photo): the maze
     bubbles read chunky/tall at 53.7px. On laptop the label type
     steps down (0.68rem -> 0.63rem, line-height 1.25 -> 1.12 — the
     icon inherits the link size, so it scales with the text) and
     the vertical padding slims (0.28rem -> 0.16rem): ~43px tall.
     Maze walls, pellets (50%-positioned, height-safe), fills,
     labels, order and links untouched; the phone twin and the
     <=999px seats keep the current profile. */
  .vt-tv-strip.vt-tv-strip-top a,
  .vt-tv-strip.vt-tv-strip-bottom a {
    font-size: 0.63rem; line-height: 1.12;
    padding: 0.16rem 0.2rem;
  }
}
/* ============ strip FILL — laptop (Dan, Oct 27, supersedes the
   sleeker-bubbles trim above for >=900px) ============
   "ALL the buttons in that row — make sure the text fills the
   buttons and it's easier to read." Every copy of the strip steps
   up from the 0.63rem fit-trim to text that fills its bubble: icons
   scale with the labels, padding grows to suit, and the widest
   lines ("Nationwide", "Top 100") keep measured clearance inside
   their pills — fill, never spill. Two bands, because the 8-across
   row is only as wide as the window: 900–1339px wraps 4-across (the
   phone bottom strip's own even layout) so each bubble is wide
   enough to fill; 1340px+ keeps the single row and widens the
   strip's measure from 1060px to 1400px on the same left:50% /
   translateX centering the block above uses. Same selector weight
   as the trim block, later in the file, so these win where they
   apply; phone (<=760px) is untouched. */
@media (min-width: 900px) and (max-width: 1339px) {
  .vt-tv-strip { flex-wrap: wrap; }
  .vt-tv-strip a { flex: 1 1 21%; }
  .vt-tv-strip.vt-tv-strip-top a,
  .vt-tv-strip.vt-tv-strip-bottom a {
    font-size: 1.18rem; line-height: 1.2;
    gap: 0.4rem; padding: 0.5rem 0.35rem;
  }
  .vt-tv-strip.vt-tv-strip-top a .vt-ic,
  .vt-tv-strip.vt-tv-strip-bottom a .vt-ic { font-size: 1.45rem; line-height: 1; }
}
@media (min-width: 1340px) {
  .vt-tv-strip.vt-tv-strip-top,
  .vt-tv-strip.vt-tv-strip-bottom {
    width: min(1400px, calc(100vw - 2rem));
  }
  .vt-tv-strip.vt-tv-strip-top a,
  .vt-tv-strip.vt-tv-strip-bottom a {
    font-size: 1.02rem; line-height: 1.18;
    gap: 0.4rem; padding: 0.5rem 0.3rem;
  }
  .vt-tv-strip.vt-tv-strip-top a .vt-ic,
  .vt-tv-strip.vt-tv-strip-bottom a .vt-ic { font-size: 1.25rem; line-height: 1; }
}
@media (min-width: 761px) {
  /* (5) Top 10 by State: label sized to its own block via cqw. */
  .top10-home.top10-home--cta { container-type: inline-size; }
  .top10-home.top10-home--cta .states-cta a strong {
    font-size: clamp(2rem, 8.6cqw, 3.9rem);
    letter-spacing: 0.22em;
    min-width: 0;
  }
  /* (6) Near You chips: fill every row, beefier (hero copy only). */
  .hero-stack .town-chips { gap: 0.45rem; }
  .hero-stack .town-chip {
    flex: 1 1 auto; justify-content: center;
    padding: 0.42rem 0.7rem; font-size: 0.85rem;
  }
  .hero-stack .town-chip .chip-n { font-size: 0.78rem; }
}
@media (min-width: 1000px) {
  /* (4) Sponsor billboard: smaller footprint, hugs its content.
     The narrower panel makes copy wrap taller, so type also gets
     tighter line-heights to keep the height win (measured locally:
     252x399 -> 200x~311, logo 72x108 -> 40x60). */
  .hero-split .sponsor-section {
    width: 200px; justify-self: start; align-self: start;
    padding: 0.5rem 0.45rem;
  }
  .hero-split .sponsor-section h2 { font-size: 0.82rem; letter-spacing: 0.06em; }
  .hero-split .sponsor-sub { font-size: 0.85rem; line-height: 1.3; margin: 0.15rem 0 0.4rem; }
  .hero-split .sponsor-section .sponsor-card { padding: 0.4rem; gap: 0.32rem; }
  .hero-split .sponsor-section .sponsor-logo {
    width: 40px !important; height: 60px !important;
    max-width: 40px !important; max-height: 60px !important;
  }
  .hero-split .sponsor-section .sponsor-name { font-size: 0.9rem; line-height: 1.25; }
  .hero-split .sponsor-section .sponsor-text { font-size: 0.8rem; line-height: 1.3; }
  .hero-split .sponsor-cta { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.35; }
  /* (7) Town-request card: no grid-row stretch. */
  .hero-split .town-request { align-self: start; }
}

/* ============ z149: SPONSOR RAIL MARGINS (Dan, Oct 26) =====}

   "Nice clean formatting for the sponsor — equal margins from
   videos above and below." In the desktop hero grid the sponsor
   sits in its own left-rail row between the video row and the
   town-request row, but the headline spanning those rows makes
   the sponsor's row taller than the panel (z147 made the panel
   hug its content at the row's TOP), so all the row's slack
   pooled UNDER the panel: measured 14.4px above (the plain row
   gap) vs 59.3px below at 1440/1280 — and 14.4 vs 460.9 at 1100,
   where the headline runs taller beside the rail. Centering the
   panel in its row splits that slack evenly, so the visible gap
   above the sponsor (video bottom -> sponsor top) EQUALS the gap
   below it (sponsor bottom -> town card top) at every desktop
   width by construction: gap = row gap + slack/2 on both sides.
   Horizontally the z147 shrink left the 200px panel hugging the
   column's left edge with all 52px of dead space on its right;
   centered, the column's slack splits 26/26. Panel size, content,
   azure styling and links are untouched (z147 stands); the video
   card and town card keep their own alignment; phone (<1000px)
   is not in this block and renders exactly as before. */
@media (min-width: 1000px) {
  .hero-split .sponsor-section { align-self: center; justify-self: center; }
}

/* ============ z150: JOIN BUTTON SITS UNDER THE EVENTS GIF (Dan, Oct 26) ============
   Dan: "put the HauntSocial button under Events & Parties and make it
   fit nicely underneath." The JOIN HAUNTSOCIAL pill (a member's
   @handle pill takes the same seat) leaves its centered own-row spot
   (z133's full-width line, z147's fit-content pill) and moves into a
   new left header column (.header-events-col in base.html): the
   Events & Parties GIF on top, the pill directly beneath it, the two
   composed as one block at the head of the nav row.
   FIT: the column's width is the GIF's width (183px at 1440, 167px
   at 1100, 120px on phone); the pill stretches to exactly that width
   and its label restacks — "Join HauntSocial" (Eater words, as
   before) on its own line, the "- The First Halloween Social
   Network" tagline as a smaller block line under it — so the full
   text survives the narrow seat with nothing ellipsized. The z147
   ::after line-break that forced the pill's old row is retired, so
   the desktop header keeps its height (the column is no taller than
   the two rows it replaces). Phone portrait: the column takes the
   Events artwork's old grid seat (col 1, rows 1-2) and the grid
   loses the pill's full-width bottom row. Compact landscape keeps
   its slim single row: GIF and pill ride side by side there. */
/* --- the column itself --- */
/* width: min-content makes the GIF the column's width driver: the
   pill's longest line (the tagline) can wrap, so its min-content is
   just its longest word — narrower than the GIF at every size — and
   the pill then stretches to the GIF's exact width. */
.header-events-col {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0.38rem; flex: 0 0 auto; min-width: 0; width: min-content;
}
/* --- the pill in its new seat (both states) --- */
.site-header.v2 .header-nav .header-events-col a.nav-join {
  flex: 0 0 auto; order: 0; align-self: stretch;
  width: 100%; max-width: none; margin: 0;
  padding: 0.34rem 0.55rem; text-align: center;
}
/* --- member pill: the @handle scales to the narrow seat (6.4% of
   the pill's width, capped at its usual size) so a typical handle
   shows in full instead of ellipsizing --- */
.header-events-col a.nav-join-member .nav-join-label { font-size: min(0.99rem, 6.4cqw); }
/* --- label restacks inside the narrow pill --- */
.header-events-col a.nav-join .nav-join-label { white-space: normal; }
.header-events-col a.nav-join .nav-join-tag {
  display: block; margin-top: 0.1rem;
  font-size: 0.60rem; letter-spacing: 0.02em; line-height: 1.2;
}
@media (min-width: 761px) and (min-height: 501px) {
  /* Retire z147's forced line break: the pill no longer needs its
     own row, and the empty line would pad the header. */
  .site-header.v2 .header-nav::after { content: none; }
  /* One-line tagline, sized to the pill: the pill is a container
     and the tag runs at 4.3% of its width (measured: the line is
     202px at 9.6px type, so 4.3cqw lands it just inside the pill's
     content box at both 183px and 167px column widths) — the pill
     stays one brand line + one caption line, ~46px tall, and the
     header keeps its height. */
  .site-header.v2 .header-nav .header-events-col a.nav-join {
    container-type: inline-size; padding: 0.3rem 0.4rem;
  }
  .header-events-col a.nav-join .nav-join-tag {
    font-size: 4.3cqw; letter-spacing: 0.01em; white-space: nowrap;
  }
}
/* --- phone portrait: the column takes the artwork's grid seat --- */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col {
    grid-row: 1 / span 2; grid-column: 1; align-self: center;
    width: 120px; gap: 0.35rem;
  }
  .site-header.v2 .header-nav .header-events-col a.nav-join { padding: 0.3rem 0.4rem; container-type: inline-size; }
  .header-events-col a.nav-join .nav-join-tag { font-size: 0.52rem; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col { width: 110px; }
}
@media (min-width: 560px) and (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col { width: 140px; }
}
/* --- compact landscape: slim row preserved, pill beside the GIF --- */
@media (orientation: landscape) and (max-height: 500px) {
  .header-events-col { flex-direction: row; align-items: center; gap: 0.5rem; width: auto; }
  .site-header.v2 .header-nav .header-events-col a.nav-join { width: auto; }
  .header-events-col a.nav-join .nav-join-label { white-space: nowrap; }
  .header-events-col a.nav-join .nav-join-tag {
    display: inline; margin-top: 0; font-size: 1.05em; letter-spacing: 0.04em;
  }
  /* No size container in this layout, so the handle takes a fixed
     size that fits its content-width pill. */
  .header-events-col a.nav-join-member .nav-join-label { font-size: 0.58rem; }
}

/* ============ z151: HEADER TIGHTENING + BIGGER NAV DISCS (Dan, Oct 26) ============
   Four asks from Dan's laptop photo of the z150 header:
   (1) Tighten the header margins again — top/bottom padding trimmed
       and the band→nav gap closed, so the header hugs its content.
   (2) The JOIN HAUNTSOCIAL pill under the Events GIF goes a little
       smaller (~13%: padding, label, caption; the member @handle
       scales the same way). Its width still matches the GIF exactly —
       the z150 composed column is untouched; only the pill's height
       and type shrink, and the GIF→pill gap tightens with it.
   (3) The blue border line under the block moves UP: the shorter
       column (smaller pill + tighter gap) plus the trimmed bottom
       padding put the line right under the content, and the bigger
       discs fill most of the row's old dead air beneath them.
   (4) The ten main nav discs + labels scale ×1.3: laptop 28px art /
       0.72rem labels → 36px / 0.93rem; the 1000–1199 band's 27px /
       0.70rem pair → 35px / 0.91rem; 761–999's 26px / 0.67rem pair →
       34px / 0.87rem. Phone portrait discs already fill their grid
       columns edge-to-edge (z133: width 100%, max 46px) — the largest
       that fit with no scroll — so the phone takes the tightening and
       the smaller pill and keeps its max-fit discs. Compact landscape
       keeps its slim row: pill padding only. */
/* --- (2) the column gap + pill padding in the seat (all contexts) --- */
.header-events-col { gap: 0.30rem; }
.site-header.v2 .header-nav .header-events-col a.nav-join { padding: 0.28rem 0.48rem; }
/* --- (2) member @handle scales with the pill (cqw of the pill) --- */
.header-events-col a.nav-join-member .nav-join-label { font-size: min(0.99rem, 5.6cqw); }
@media (orientation: landscape) and (max-height: 500px) {
  /* No size container in the slim row (z150): keep the handle on a
     fixed size there, scaled down with the rest of the pill. */
  .header-events-col a.nav-join-member .nav-join-label { font-size: 0.51rem; }
}
@media (min-width: 761px) and (min-height: 501px) {
  /* (1)+(3) tighter shell: less padding, no dead gap above the nav */
  .site-header.v2 { padding-top: 0.16rem; padding-bottom: 0.10rem; }
  .site-header.v2 .header-nav { margin-top: 0; padding-top: 0; }
  /* (4) discs ×1.3 — laptop band */
  .site-header.v2 .header-nav a.navbtn { font-size: 0.93rem; gap: 0.25rem; }
  .site-header.v2 .header-nav a.navbtn span { font-size: 0.93rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 36px; height: 36px; }
  /* (2) smaller pill: tighter padding, label + caption scaled down */
  .site-header.v2 .header-nav .header-events-col a.nav-join { padding: 0.24rem 0.35rem; }
  .header-events-col a.nav-join:not(.nav-join-member) .nav-join-label { font-size: 0.585rem; }
  .header-events-col a.nav-join .nav-join-tag { font-size: 3.75cqw; }
}
@media (min-width: 1000px) and (max-width: 1199px) and (min-height: 501px) {
  /* (4) the sidebar-narrowed band scales its own 27px / 0.70rem pair */
  .site-header.v2 .header-nav a.navbtn { font-size: 0.91rem; }
  .site-header.v2 .header-nav a.navbtn span { font-size: 0.91rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 35px; height: 35px; }
}
@media (min-width: 761px) and (max-width: 999px) and (min-height: 501px) {
  .site-header.v2 .header-nav a.navbtn { font-size: 0.87rem; }
  .site-header.v2 .header-nav a.navbtn span { font-size: 0.87rem; }
  .site-header.v2 .header-nav a.navbtn img { width: 34px; height: 34px; }
}
/* --- phone portrait: tightening + smaller pill; discs stay max-fit --- */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 { padding-top: 0.19rem; padding-bottom: 0.14rem; }
  .site-header.v2 .header-nav { margin-top: 0; padding-top: 0; }
  .site-header.v2 .header-nav .header-events-col { gap: 0.28rem; }
  .site-header.v2 .header-nav .header-events-col a.nav-join { padding: 0.24rem 0.35rem; }
  /* The anon label keeps z133's 0.58rem on phone: its Eater brand
     words fall apart below ~8.9px in Chromium rasterization
     (measured: 0.51rem and 0.55rem labels both render sliced glyphs;
     0.58rem is clean). The phone pill still shrinks ~10% overall
     via the tighter padding above + the smaller caption here. */
  .header-events-col a.nav-join .nav-join-tag { font-size: 0.46rem; }
}

/* ============ z152: SPONSOR GAP PINNED AT MID WIDTHS (Dan, Oct 26) ============
   "Center space evenly below TikTok videos and the sponsor block."
   z149 centered the sponsor in its hero-grid row, which is perfect
   while the row is only as tall as the panel + 44.9px of slack
   (1440/1280: gaps 36.84 == 36.84). But at 1000–1199px the tablet
   hero runs the video full-width, the headline spans the sponsor +
   town rows, and its extra height distributes EQUALLY into both
   spanned rows — the sponsor's row balloons to ~778px and the
   centering splits the void around the panel: 237.66px above ==
   237.67px below, the sponsor adrift in an empty rail (Dan's
   photo). Content-sized tracks (max-content / fit-content) still
   absorb that span distribution in Chromium; a DEFINITE track
   size does not. So the sponsor row (row 3 in BOTH desktop hero
   layouts) is pinned to exactly the height it has at 1440 today:
   panel 331.75px + 44.88px of slack (2 x 22.44). z149's centering
   then yields the wide-layout rhythm at EVERY desktop width by
   construction: visible gap = 0.9rem row gap (14.4) + 22.44 =
   36.84 above (video bottom -> sponsor top) and 36.84 below
   (sponsor bottom -> town card top). The headline's extra height
   now lands in the town row (below the rail stack) at mid widths;
   grid total height, headline/strip rects and the whole 1440/1280
   layout are pixel-identical to before (verified: rows, sponsor
   and town tops match to 0.03px). If the sponsor panel's height
   ever changes, re-derive: row = panel height + 44.88px.
   Phone (<1000px) is not in this block and renders as before.
   z211 CORRECTION (Dan, Oct 28): z205's What's New rail added a
   row ABOVE the video row in both desktop templates, moving the
   sponsor from row 3 to row 4 — but this pin stayed on row 3,
   which is now the VIDEO row. The three 248px facades need 744px;
   frozen at 376.63px their stack overflowed ~367px and the
   sponsor panel (row 4, centered) painted over the last facade's
   bottom ~282px (Dan's MacBook photo; measured overlap 282.2px at
   1440 + 1280, Chromium). The pin now sits on row 4 (the sponsor
   row) in both definite-rows rules (this block + the z161 block
   below), restoring z152's design exactly: video row auto-sized
   again, sponsor row definite at panel + 44.88px, visible gap
   36.84px above and below the panel at every desktop width. */
@media (min-width: 1000px) {
  .hero-split { grid-template-rows: auto auto auto 376.63px auto; }
}

/* ============ z153: BOTTOM STRIP — EVEN AIR ABOVE AND BELOW (Dan, Oct 26) ============
   Dan, from his /events laptop photo: "Again even spacing from
   bottom links and last event blocks for the Virtual Tour through
   Top 100 Nationwide buttons." The sitewide bottom strip (last
   child of <main>, just above the footer) hugged the content above
   it — measured 17.6px from the last block (20px on the homepage)
   — while the visible air between the strip and the footer's text
   block (tagline + menu links + TikTok button) measured 69.6px:
   the strip's 8px bottom margin + <main>'s 16px bottom padding +
   the footer's own 32px top padding and ~13.6px first-paragraph
   margin. All that slack pooled BELOW the strip, leaving a big
   empty illustrated gap over the footer. Same remedy as the
   sponsor fix (z149): the strip now sits centered in the total
   air around it — its top margin takes the full below-chain
   value (2.85rem = 45.6px) and the two container contributions
   under it (its own bottom margin, <main>'s bottom padding) go
   to zero, so the visible gaps land equal: last block -> strip ==
   strip -> footer text, on every page and at every width (the
   homepage reads ~2.4px wider above, from its own last row's
   margin — page content spacing is untouched). Footer internals
   are untouched; <main>'s padding is zeroed ONLY on pages that
   carry the strip (:has), so admin (no strip) keeps its 1rem.
   The strip's geometry (z147 breakout width, slim bubbles,
   centered as a unit) is unchanged — vertical margins only. */
.vt-tv-strip-bottom { margin: 2.85rem 0 0; }
main.wrap:has(> .vt-tv-strip-bottom) { padding-bottom: 0; }

/* ============ z160: HOOK LETTER COLORS -> NEW-LOGO PALETTE (Dan, Oct 26 — VARIANT 2, shipped: Dan picked V2 over the live V1 and ordered the flip; replaces the z154 block) ============
   Dan: "If that doesn't look good we can just try alternating the red
   letters to match the colors of the new logo."
   Same letter-span structure as the Events & Parties variant (z154):
   every glyph of the old red runs wrapped in .ep1-.ep5 spans, this time
   cycling a 5-color palette sampled from Dan's ghost-map logo
   (static/img/hauntmap_logo_lockup.webp — clustered + hue-family means):
   neon ghost green #77DFB8 (the glow; largest bright family in the art,
   sampled family mean), compass gold #E6B16D, window amber #F19D45,
   pumpkin #EB7A2C, cream #F9E5C2 (gold/amber/pumpkin families are
   present in the file but compression-muted in the 309px webp, so the
   brand values from Dan's art are used for those three).
   EXCLUDED from the logo palette: night purple #402F54 (sampled
   #3E2D50 — too dark to read as letters on the black header), the deep
   scene greens #0B4737 / #2A7868 (too dark/mid for headline letters),
   and the slate/brown shading tones (scene shading, not brand colors).
   Cycle order follows the logo's own arrangement: green glow first,
   then the warm lit-window/compass tones out to pumpkin, resting on
   cream. Untouched: cream words, lavender NEW HAUNTS DAILY!!!, wording,
   sizes, fonts, everything outside the header hook. */
.header-band .header-hook .epw { white-space: nowrap; }
.header-band .header-hook .ep1 { color: #77dfb8; }
.header-band .header-hook .ep2 { color: #e6b16d; }
.header-band .header-hook .ep3 { color: #f19d45; }
.header-band .header-hook .ep4 { color: #eb7a2c; }
.header-band .header-hook .ep5 { color: #f9e5c2; }
/* ============ z155: PHONE JOIN PILL SLIMS DOWN (Dan, Oct 26) ============
   Dan (phone screenshot): "make the Join HauntSocial button smaller
   and less clunky, neat and clean for the phone view." PHONE PORTRAIT
   ONLY — the laptop pill keeps its z150/z151 seat and size exactly,
   and compact landscape (pill beside the GIF) is a different band
   and is not in this block.
   Two moves inside the phone-portrait band:
   (1) The "- The First Halloween Social Network" caption is DROPPED
       on phone. In the 120px seat it stacked into 3 cramped lines
       (0.46rem, z151) — over half the pill's height — and a one-line
       version cannot fit: ~34 chars at the ~0.5rem floor is ~135px
       of type against a ~105px content box. Neatness wins: the
       homepage HauntSocial band carries the full pitch, and the
       header pill becomes one clean line.
   (2) Part of the freed height returns as vertical padding so the
       pill lands at a tidy ~38px instead of a ~21px sliver:
       vertical padding 0.24rem -> 0.75rem, horizontal unchanged.
       Height math, anchored on z151's measured 49.5px phone pill
       (border 4 + padding 7.7 + label line 10.2 + caption margin
       1.6 + caption 3 lines x 8.83 = 49.5): -28.1px of caption
       + 16.3px of padding = ~38px, with the "Join HauntSocial"
       label (Eater brand at z133's 0.58rem floor, untouched —
       smaller slices its glyphs) centered on one line.
   The member @handle pill shares this padding rule and gets the
   same slim seat (~35px); its cqw handle scaling is untouched.
   Width still matches the Events GIF column exactly; the GIF ->
   pill gap, the discs, the hook and everything else in the header
   are untouched, and the header gives back the ~11.5px the pill
   sheds (~258.8 -> ~247px at 390 where the column drives the
   rows). */
@media (max-width: 760px) and (orientation: portrait) {
  .header-events-col a.nav-join .nav-join-tag { display: none; }
  .site-header.v2 .header-nav .header-events-col a.nav-join { padding: 0.75rem 0.35rem; }
}
/* z157 fix: the z155 block's closing brace above was dropped in the
   z156 ship's rebase-conflict resolution, which left this phone-only
   @media unclosed and nested the z156 block inside it — disabling the
   top-strip full-width rule at every width. Brace restored; no rule
   changes. */

/* ============ z156: TOP STRIP GOES FULL WIDTH (Dan, Oct 26) ============
   Dan: "Space out top of page Virtual Tour through Top 100
   Nationwide buttons to span the entire page left to right with
   proper spacing in between buttons. Nice and clean." z147 capped
   BOTH strips at the hero's 1060px breakout, centered; the TOP
   strip now drops the cap and takes the page's full span instead:
   width calc(100vw - 2rem) leaves exactly the 1rem page margin a
   side the header's own content sits at (logo at x=16, Frank flank
   at vw-16 at every laptop width), so the first bubble is flush
   with the page's left content edge and the last flush right. The
   z147 centering breakout (left: 50% + translateX(-50%)) and the
   base flex:1 1 0 carry over — only the width changes, so the 7
   bubbles share the wider span with the same uniform 0.6rem gaps.
   Slim z147 height, maze walls, pellets, labels, order and links
   untouched. The BOTTOM strip keeps z147's 1060px centered geometry
   exactly — this block selects the top strip only. Scoped to
   >=1000px like z147's breakout; below that the strip keeps its
   column seat and the phone twin is unchanged. (Re-dispatch of the
   first attempt's WIP commit 108cce6 on branch topstrip-fullwidth,
   rebased onto z152; renumbered z151 -> z156 at ship time (z153-z155 were taken by the bottom-strip, hook-colors and join-pill ships ahead of it in the Oct 26 retry queue).) */
@media (min-width: 1000px) {
  .vt-tv-strip.vt-tv-strip-top { width: calc(100vw - 2rem); }
}

/* ============ z161: SPONSOR-VISIBILITY STRIP (Dan, Oct 26) =====
   Dan approved the strip + the ROTATING version ("rotate both
   lines"). The leak: /advertise — the page every sponsor pitch
   points at, both price ladders + live Stripe checkout — got 103
   views against the homepage's 76,561 (0.13%, Dan's Oct 26 stats).
   Well-placed homepage offers do get clicked (near-here rail CTR
   20.9%), so the fix is placement: ONE slim azure strip, sibling
   to the Join pill family (same #8FD8FF -> #57A8FF gradient, dark
   #0A1E24 type, blue glow), NOT a new design language and NOT a
   second billboard.
   Seats (twin copies, exactly one per viewport — the hero-module
   pattern): the RAIL copy is a .hero-split child in the new grid
   area "advstrip" directly under the sponsor billboard in the
   desktop left rail (both desktop area maps gained the row; the
   sponsor row stays row 3, so z152's pin is re-stated below with
   the extra auto row); the PHONE copy sits directly under the
   below-band Tonight's Display card and shows at <=999px (at
   761-999 it lands under the hero panel that carries Tonight's
   in-panel copy — still exactly one strip per viewport).
   Rotation: pure-CSS crossfade, 12s cycle, each line ~6s with a
   ~1.2s blend; hover / keyboard focus / touch-hold pause it (the
   hold class is toggled by the small inline script beside the
   phone copy in index.html); prefers-reduced-motion parks it on
   the business line. NO layout shift: an in-flow, visibility-
   hidden .adv-sizer copy of the taller business line pins the
   strip's height at every width, and both rotating lines are
   absolutely inset to the same content box. The whole strip is
   ONE <a href="/advertise"> in both states. Copy figures are the
   verified sponsor-send floors (120,000+ total HUMAN views,
   corrected Oct 26 — the earlier 200,000+ figure came from
   counters that counted /healthz health-check pings as views;
   Dan's admin showed 206,175 raw the same day); never inflated. */
.adv-strip {
  --adv-py: 0.55rem; --adv-px: 0.7rem;
  position: relative; display: block; box-sizing: border-box;
  overflow: hidden; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, #8fd8ff, #57a8ff);
  border: 2px solid #8fd8ff; border-radius: 12px;
  color: #0a1e24; font-weight: 600; line-height: 1.35;
  padding: var(--adv-py) var(--adv-px);
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.35), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.adv-strip:hover { filter: brightness(1.06); }
.adv-strip .adv-sizer { display: block; visibility: hidden; }
.adv-strip .adv-line {
  position: absolute; inset: var(--adv-py) var(--adv-px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: advRotate 12s ease-in-out infinite;
}
.adv-strip .adv-line-b { animation-delay: 6s; }
/* The line's mixed inline content rides in ONE .adv-in flex item —
   unwrapped, the <strong> and the text node become separate flex
   items and the bold lead collapses into a one-word-wide column. */
.adv-strip .adv-in { display: block; text-align: center; }
@keyframes advRotate {
  0% { opacity: 0; } 5% { opacity: 1; } 45% { opacity: 1; }
  55% { opacity: 0; } 100% { opacity: 0; }
}
.adv-strip:hover .adv-line,
.adv-strip:focus-visible .adv-line,
.adv-strip.adv-paused .adv-line { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .adv-strip .adv-line { animation: none; }
  .adv-strip .adv-line-a { opacity: 1; }
  .adv-strip .adv-line-b { opacity: 0; }
}
/* Rail copy: desktop only, in the grid's advstrip area. */
.hero-split .adv-strip-rail { grid-area: advstrip; display: none; font-size: 0.82rem; }
/* Phone copy: under Tonight's Display, hidden once the rail exists. */
.adv-strip-phone { margin: 0.9rem 0 0; font-size: 0.88rem; }
@media (min-width: 1000px) {
  .hero-split { grid-template-rows: auto auto auto 376.63px auto auto; }
  .hero-split .adv-strip-rail { display: block; }
  .adv-strip-phone { display: none; }
}

/* ============ z211: VIDEO ROW PINNED TOO (Dan, Oct 28) ============
   Companion to the z152/z211 sponsor-row pin above. With the
   sponsor row definite again, the headline's span deficit at
   >=1200px still pooled in the auto VIDEO row (+32.9px measured),
   leaving 69.7px of air between the last facade and the sponsor
   panel vs 36.84px below it — the uneven air Dan keeps flagging
   in this column. Pin the video row definite at exactly its
   content height so no slack can pool in it either: >=1200px the
   three stacked facades are 248px each (the >=1000px hero rule)
   = 744px; at 1000–1199px the three-across facades are capped at
   400px (z106). The deficit now lands in the whatsnew row (the
   rail stretches to fill it, z208) and the advstrip/townreq rows
   below the sponsor, per z152's design. If the facade height or
   the promo count ever changes, re-derive both numbers. */
@media (min-width: 1200px) {
  .hero-split { grid-template-rows: auto auto 744px 376.63px auto auto; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .hero-split { grid-template-rows: auto auto 400px 376.63px auto auto; }
}

/* ============ z162: PHONE JOIN PILL — A LITTLE SLIMMER STILL (Dan, Oct 26) ============
   Dan, looking at the LIVE z155 pill on his phone (wide light-azure
   capsule under Events & Parties): "joint jaunt soci button under
   events and parties a little slimmer." A modest trim of the z155
   seat, PHONE PORTRAIT ONLY — same band, later in the file so the
   rules win on order. Measured on the local rig (Chromium, 390
   portrait, anonymous): the z155 pill is 120 x 46.6px (Eater's line
   box runs ~18.6px, taller than z155's analytic 10.2 — the live
   number is the one that matters); this block lands it at
   108 x 33.8px and the header gives back ~13px (255.9 -> 243).
   (1) Height: vertical padding 0.75rem -> 0.35rem. The label type
       is untouched (0.58rem Eater no-slice floor) — padding only.
   (2) Width: 100% of the events column -> 90%, centered via
       align-self: center (the z150 rule stretches it; same
       specificity, this block is later): a slim ~6px inset a side
       at the 120px column. At <=380 the column itself is only
       110px and 90% would starve the label, so the pill keeps the
       column's full width there (height trim still applies).
   (3) The label is pinned to ONE line (nowrap, letter-spacing 0):
       at 108px the two brand words would otherwise wrap at their
       space and balloon the pill back to ~57px. With the tighter
       horizontal padding (0.35rem -> 0.15rem) the one-line label
       fits its ~99px content box exactly, fully inside, verified
       at 390 / 430 / 360 with zero horizontal overflow.
   The member @handle pill rides the same pill selector and gets
   the same trim; its cqw handle scaling is untouched. The caption
   stays dropped (z155); azure gradient, blue glow, GIF -> pill
   gap, discs, hook and everything else are untouched, and laptop
   + compact landscape are outside this band entirely. */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col a.nav-join {
    padding: 0.35rem 0.15rem; width: 90%; align-self: center;
  }
  .header-events-col a.nav-join .nav-join-label {
    white-space: nowrap; letter-spacing: 0;
  }
}
@media (max-width: 380px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col a.nav-join { width: 100%; }
}

/* ============ z163: PHONE JOIN PILL — SMALLER AND SLIMMER AGAIN (Dan, Oct 26) ============
   Dan, replying to the z162 pill (108 x 33.8 at 390): "Haunt social
   button smaller — and slimmer." Third pass, PHONE PORTRAIT ONLY,
   same band, later in the file so the rules win on order.
   (1) Width: 90% -> 80% of the events column (96px at the 120px
       column, ~12px daylight a side, still centered under the GIF).
   (2) Height: vertical padding 0.35rem -> 0.24rem, and the label's
       line box tightened to line-height 1.3 (its computed 14.4px
       box inflated the pill well past the ~10px of glyph ink).
   (3) The narrower seat starves the one-line label, so the label
       steps 0.58rem -> 0.55rem with letter-spacing -0.02em: the two
       Eater words (91.5px of text at z162) shrink to 80.1px and
       sit fully inside the ~88px content box. Measured on the rig
       (Chromium, local tree): 390 pill 108 x 33.75 -> 96 x 28.27,
       header 243.0 -> 237.6; label scroll size == client size at
       390 / 430 / 360 (no horizontal or vertical clipping; glyph
       ink ~10px inside the 11.4px line box), zero page overflow,
       and the laptop pill (183.3 x 39.5) + header (218.4) are
       pixel-identical to z162.
   At <=380 the column is only 110px and 80% would starve the label,
   so the pill keeps the column's full width there (the height and
   label trims still apply) — same adaptation as z162.
   The member @handle pill shares the pill rule and gets the same
   trim; its own cqw label sizing is untouched. Azure gradient,
   blue glow, caption drop, GIF -> pill gap, discs, hook and
   everything else untouched; laptop + compact landscape are
   outside this band entirely. */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col a.nav-join {
    padding: 0.24rem 0.12rem; width: 80%; align-self: center;
  }
  .site-header.v2 .header-nav .header-events-col a.nav-join:not(.nav-join-member) .nav-join-label {
    font-size: 0.55rem; line-height: 1.3; letter-spacing: -0.02em;
  }
}
@media (max-width: 380px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col a.nav-join { width: 100%; }
}

/* ============ z164: PHONE JOIN PILL — TWO ROWS, LONGER (Dan, Oct 26) ============
   Dan's own phone screenshot of the LIVE z163 pill showed the label
   ellipsized — "JOIN HAUNTSOCI…" — although the sandbox rig measured
   it fitting: at z163's 0.12rem horizontal padding the one-line label
   had only ~4px of slack a side in Chromium (text 80.1px in an 88.2px
   content box), and his iPhone renders Eater wider than that, so the
   ellipsis fired. His fix, verbatim: "Make the join haunt social
   longer an thing we but center it under parties and events" and
   "You can put join on too [top] and jaunt [Haunt] social on the
   bottom in two rows." So the label STACKS — JOIN over HAUNTSOCIAL —
   and the pill is sized off the single wide word with real headroom.
   PHONE PORTRAIT ONLY, same band, later in the file so the rules win
   on order (this block also supersedes z163's <=380 width:100% —
   same selector, later source position).
   (1) TWO ROWS: .nav-join-first goes display:block, so "Join" takes
       the top line and "HauntSocial" the bottom, both centered (the
       pill's text-align:center carries down to both lines), each on
       its own nowrap line at z163's 0.55rem Eater with line-height
       1.3, so the rows sit close. The z155-dropped caption stays
       dropped. The pill grows taller to hug the two lines; the
       0.24rem vertical padding is unchanged.
   (2) WIDTH FROM THE WIDE WORD, WITH THE iOS SAFETY FACTOR: rig-
       measured (Chromium, Eater fully loaded) "HauntSocial" is
       57.94px at the pill's seat (0.96em of the 0.55rem label).
       Inflated x1.2 for iOS the design text width is 69.5px. The
       pill is a fixed 116px with 0.94rem (15px) horizontal padding:
       content box 116 - 30 - 4 (borders) = 82px, so even at the
       inflated width the text sits ~6px inside the content box and
       ~23px from each pill edge — and the word would have to render
       ~41% wider than Chromium before it could touch the content
       box at all. No ellipsis is possible (label scroll == client,
       verified): the pill is sized to the text, never the reverse.
   (3) CENTERED, NO OVERFLOW: align-self:center (z162/z163) centers
       the 116px pill on the Events & Parties column — inside the
       120px column at 390/430; at 360 (110px column) it overhangs
       the column 3px a side with its left edge at ~2.6px, so page
       overflow stays zero at 360/390/430 (verified) and the header
       row is otherwise untouched.
   The member @handle pill shares the pill width/padding rule and
   keeps its single line; its label scales by cqw off the pill
   (container-type stands), so the wider seat scales the handle
   proportionally — same fit as before. Azure gradient, blue glow
   and the GIF -> pill gap are untouched; laptop + compact landscape
   are outside this band entirely. */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav .header-events-col a.nav-join {
    width: 116px; padding: 0.24rem 0.94rem;
  }
  .site-header.v2 .header-nav .header-events-col a.nav-join:not(.nav-join-member) .nav-join-first {
    display: block;
  }
}

/* ============ z165: JOIN PILL REMOVED ON DESKTOP (Dan, Oct 26) ============
   Dan: "get rid of the HauntSocial button on laptop view." The JOIN
   HAUNTSOCIAL pill under the Events & Parties GIF leaves the DESKTOP
   layout entirely — display:none in the desktop band only, the same
   (min-width: 761px) and (min-height: 501px) band the header has
   used for its desktop seat since z150/z151. That band is exactly
   the complement of the two layouts that keep the pill: phone
   portrait (max-width: 760px — the two-row pill Dan just iterated
   through z162–z164 renders there untouched) and compact landscape
   (max-height: 500px — the slim GIF+pill row, also untouched).
   Only the logged-out Join state is hidden (:not(.nav-join-member)):
   the member @handle pill is the other state of the same seat and
   stays exactly as it is on desktop. The seat collapses on its own —
   the pill is a flex child of .header-events-col, so with it out of
   flow the column is just the Events & Parties GIF; no gap, no hole,
   and nothing else in the header moves (the nav row's height is set
   by the nav discs, not the column). CSS-only; the anchor stays in
   base.html for the bands that still show it. */
@media (min-width: 761px) and (min-height: 501px) {
  .site-header.v2 .header-nav .header-events-col a.nav-join:not(.nav-join-member) {
    display: none;
  }
}

/* z166 (Oct 26, 2026): SPONSOR FIGURES — HUMAN-ONLY CORRECTION (Dan
   approved Oct 26). The homepage sponsor strip's business line now
   reads "seen by 120,000+ Halloween visitors" (was 200,000+): the
   old figure came from counters that counted /healthz health-check
   pings as views (68,573 pings through Oct 26). Copy lives in
   templates/index.html; the /media-kit aggregates in app/main.py
   now exclude machine paths the same way, so every sponsor-facing
   number is human page views only. No style rules in this block. */

/* ================================================================
   z167: THE FRONT DOOR (Dan, Oct 26 — staged preview approved,
   "Ship it"; rebased over z166, nothing from z166 altered). The homepage
   is the cold front door: 29% quick-exit, 9s median, and on phone
   the first real haunt card (Tonight's Display) sat ~2,020px down —
   2.4 viewports of header/ticker/buttons/promos before one haunt.
   This block does three things, all inside the hero panel:
   1) .fd-prop: one plain value line under the headline, both
      viewports. A parent skimming at speed gets the whole pitch:
      lots of displays, real addresses, tap and go.
   2) .fd-rail: PHONE ONLY compact snap-rail of real haunt cards
      (Tonight's pick + top Trending, markup in index.html) seated
      BETWEEN the headline and the find block — value before the
      form asks for a town/ZIP. Hidden >=761px: the laptop hero
      stack already leads with Near You + Trending in-panel, and
      its layout does not move except the prop line.
   3) Phone tightening of the panel + find block (padding/margin
      only — no control shrinks, input stays 1rem, action buttons
      keep their 44px min-height): buys back part of the rail's
      height so the VT/TV strip still peeks into the first fold.
   Nothing locked moves: header composition, hook colors, ticker,
   sponsor strip, HauntSocial band, ordering rules all untouched;
   the returning-visitor state stays the full homepage + slimbar
   (the z96 retirement of the hero collapse is preserved). */
.hero-intro .fd-prop {
  margin: 0.1rem 0 0.9rem; padding: 0;
  font-size: 1rem; line-height: 1.35; font-weight: 600;
  color: #f9e5c2; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
@media (min-width: 761px) {
  /* Buy the prop line's height back so the laptop find block keeps
     its pre-preview seat inside the first fold: the pair of trims
     (~14px) offsets most of the line (~22px + margins). */
  .hero-intro .fd-prop { margin-bottom: 0.45rem; }
  .hero-split .hero-intro h1.hero-title { margin-bottom: 0.55rem; }
}
.fd-rail { display: none; }
@media (max-width: 760px) {
  .hero-intro .fd-prop { font-size: 0.86rem; margin-bottom: 0.55rem; }
  .hero-split .hero-intro { padding-top: 1.15rem; padding-bottom: 1rem; }
  .hm-find { padding: 0.6rem 0.75rem; }
  .hm-find-form { margin-bottom: 0.45rem; }
  .fd-rail { display: block; margin: 0 0 0.7rem; text-align: left; }
  .fd-rail-head {
    margin: 0 0 0.35rem; padding: 0;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase; color: #ffd9a0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }
  .fd-rail-track {
    display: flex; gap: 0.5rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
  }
  .fd-rail-track::-webkit-scrollbar { display: none; }
  .fd-card {
    flex: 0 0 126px; scroll-snap-align: start;
    display: block; text-decoration: none;
    background: linear-gradient(160deg, #14222b, #0e1a20);
    border: 1px solid #274860; border-radius: 12px;
    overflow: hidden;
  }
  .fd-card-media { display: block; position: relative; height: 74px; background: #0b0614; }
  .fd-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .fd-card-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 1.4rem;
  }
  .fd-badge {
    position: absolute; left: 5px; bottom: 5px;
    background: rgba(11, 6, 20, 0.82); color: #ffd9a0;
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em;
    padding: 0.14rem 0.38rem; border-radius: 999px;
  }
  .fd-badge-play { color: #8fd8ff; }
  .fd-card-body { display: block; padding: 0.38rem 0.45rem 0.45rem; }
  .fd-card-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.76rem; font-weight: 700; line-height: 1.22; color: #f5f2ec;
  }
  .fd-card-meta {
    display: block; margin-top: 0.14rem;
    font-size: 0.68rem; color: #94a6c0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}


/* ============ z168: SPONSOR STRIP — SEQUENTIAL SWAP, ONE CLOCK (Dan, Oct 26) ============
   Dan's live iPhone screenshot: BOTH rotating lines printed at once,
   overlapping into garbled double-text under Tonight's Display.
   Root cause (rig-verified on the z161 build): the rotation was TWO
   independent CSS animations sharing @keyframes advRotate, kept in
   phase ONLY by a 6s animation-delay on line B — a one-time
   assumption with no mechanism holding it. And even perfectly in
   phase, the designed ~1.2s symmetric crossfade superimposes both
   texts twice per cycle (rig samples at 390: cycle 6.3s a=0.13 /
   b=0.50, 12.3s a=0.50 / b=0.13 — the incoming line at half strength
   over the outgoing ghost already reads as double-text). Dan's
   photo is worse than any in-phase instant — line B at FULL opacity
   over line A at ~0.36 — which the designed timeline never produces
   (when B is 1, A is 0); it is the fingerprint of the two clocks
   out of phase on his phone. Reproduced exactly in the rig by
   re-timing line B's clock: identical garble.
   Fix: kill the two clocks. The lines no longer animate on their
   own — base state parks line A at opacity 1 and line B at 0, and a
   single .adv-show-b class on the strip (toggled every 6s by the
   inline script beside the phone copy in index.html) swaps them.
   One state = the lines cannot disagree about which is showing.
   The fades are choreographed SEQUENTIALLY by transition-delay:
   the outgoing line fades out immediately over .45s; the incoming
   line's fade-in is delayed .4s, starting only once the outgoing
   line is at ~3% — a beat where NEITHER is legible, and the two
   are never simultaneously readable (peak overlap ≈ 0.03 opacity).
   The 12s rhythm is preserved (6s per line). Pause is the script's
   job now (hover / focus / touch-hold stop the one clock; any
   in-flight fade completes to a single clean line). No JS or
   reduced motion = parked on the business line, as before.
   Height: the in-flow .adv-sizer already pinned the strip across
   the cycle (rig: 78.6px and the Daily Fright top constant through
   the whole 12s, before and after); a 78px min-height floor in the
   phone band is added as insurance so the box can never collapse
   mid-rotation. Copy, seats, link and figures untouched. */
.adv-strip .adv-line {
  animation: none;
  transition: opacity 0.45s ease;
}
/* Line A parks visible; its .4s delay applies only when it is the
   ENTERING line (class removed) — leaving is immediate (below). */
.adv-strip .adv-line-a { opacity: 1; transition-delay: 0.4s; }
.adv-strip .adv-line-b { opacity: 0; transition-delay: 0s; }
.adv-strip.adv-show-b .adv-line-a { opacity: 0; transition-delay: 0s; }
.adv-strip.adv-show-b .adv-line-b { opacity: 1; transition-delay: 0.4s; }
@media (max-width: 480px) {
  .adv-strip { min-height: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .adv-strip .adv-line { transition: none; }
  .adv-strip .adv-line-a { opacity: 1; }
  .adv-strip .adv-line-b { opacity: 0; }
}

/* ============ z174: ROUTE ART BEHIND THE WHOLE FIRST HOOK LINE (Dan, Oct 26) ============
   History: z169 put Dan's route-badge scene behind ONLY the words
   "Build Your Night." (the .hook-line.alt span); z170 tightened the
   box snug around those letters and faded the scene to 0.76; z171
   deleted the bubble (field panel + rim + scrim) so only the imagery
   floats on the header's own background.
   z174 (Dan, Oct 26: "run the background image behind 'build your
   night' behind the entire first line — put that map trail image
   behind the entire first line"): the art moves onto .hook-l1
   itself, so the map trail runs behind the WHOLE first hook line —
   "The Halloween map that builds your fright night for you. Build
   Your Night." Two borderless scene variants of the same imagery
   (dashed neon route, amber houses, checkered flag, jack-o'-lantern
   destination, faint topo contours), because the line's rendered
   shape differs by breakpoint: one wide row on desktop, a wrapped
   three-row stack on phone. The wide scene shows by default; the
   tall scene takes over at <=760px. Motifs are spread along the
   line's length; flag + pumpkin stay at the right end, at the
   "Build Your Night." destination.
   Positioning: the SVG is absolutely positioned (no layout impact).
   On desktop the centered nowrap text spans ~82% of the .hook-l1
   block (rig-measured 916px of 1119px at 1440), so the scene is
   inset to the text extent (left 8.8%, width 82.8%) instead of the
   full block; on phone the block already hugs the wrapped text
   (~96%), so the tall scene spans 97.6% from 1.2%. The .hook-l1
   span itself takes NO padding/margin (the z169-z171 phrase span
   needed a padding/negative-margin pair to hold its place inline;
   .hook-l1 is a block, so the art simply overlays it). Hook text,
   sizes, positions, header heights and the Join pill are unchanged;
   the whole scene keeps the z170 fade (opacity 0.76). */
.header-band .header-hook .byn-art {
  position: relative;
  isolation: isolate;
}
.header-band .header-hook .byn-route-art {
  position: absolute;
  z-index: -1;
  top: -0.14em;
  left: 8.8%;
  width: 82.8%;
  height: calc(100% + 0.3em);
  opacity: 0.76;
  overflow: visible;
  pointer-events: none;
}
.header-band .header-hook .byn-route-art-tall {
  display: none;
}
@media (max-width: 760px) {
  .header-band .header-hook .byn-route-art-wide {
    display: none;
  }
  .header-band .header-hook .byn-route-art-tall {
    display: block;
    top: -0.17em;
    left: 1.2%;
    width: 97.6%;
    height: calc(100% + 0.34em);
  }
}
/* ============ z172: LOGO CENTRED ON THE EVENTS COLUMN (Dan, Oct 26) ====
   Dan, from his laptop photo: "Center HauntMap logo on laptop view."
   The ghost + HAUNTMAP lockup was centred in its own 130px flank zone
   (z68), but the left column it sits over — the Events & Parties GIF
   in row two — is wider than the zone, so the lockup's centre fell
   LEFT of the column's axis at every desktop size (rig-measured on
   the z171 tree: 26.66px at >=1200, 18.33px at 1000-1199, 11.66px at
   761-999). The fix shifts the lockup IMAGE right onto the column
   axis by exactly that offset per band: the shift is the GIF's
   half-width minus the zone's half-width (the GIF renders at its
   exact 10:3 aspect — 183.33 / 166.67 / 153.33px wide at its 55 /
   50 / 46px band heights — and the zone half is 65px).
   Deliberately NOT done by widening the zone: z68's twin 130px
   flank zones (logo left, Frankenstein right) are what land the
   hook band's centre on the banner centre, and the hook, Franken-
   stein, the nav rows and the logo's size are all untouched. The
   shifted lockup's right edge lands ~0.3px past the zone into the
   band's 0.9rem gap — no contact with the hook. Phone (<=760) and
   compact landscape (<=500 tall) sit outside these media queries
   and render byte-identical. */
@media (min-width: 761px) and (min-height: 501px) {
  .header-band .brand-logo { transform: translateX(11.66px); }
}
@media (min-width: 1000px) and (min-height: 501px) {
  .header-band .brand-logo { transform: translateX(18.33px); }
}
@media (min-width: 1200px) and (min-height: 501px) {
  .header-band .brand-logo { transform: translateX(26.66px); }
}

/* ============ z173: TRENDING RAIL ON LAPTOP (Dan, Oct 26) ====
   The phone front-door rail (z167) gets a desktop twin
   (.fd-rail-desk, markup in index.html directly under .hero-split)
   and Trending's in-panel hero copy is removed, so on desktop
   Trending appears exactly once — as this rail under the hero,
   where the phone rail already proved itself. Same heading, same
   cards (Tonight's pick + top 5 Trending, same server data/loop as
   the phone copy); only the sizing is desktop: a full hero-width
   row, all six cards visible side by side (flex-grow fills the
   row; below ~1000px the same flex row scrolls cleanly like the
   site's other .rail rows). Nothing here applies at <=760px: the
   block is min-width:761px end to end, the z167 phone show-rule is
   scoped to .hero-intro, and the base .fd-rail display:none keeps
   this copy hidden on phone — phone rendering is untouched.
   Staged as a preview Oct 26, approved by Dan ("Ship it") and
   shipped as z173 (stylesheet bumped z172 -> z173 in base.html). */
@media (min-width: 761px) {
  .fd-rail-desk {
    display: block;
    margin: 0.65rem 0 0.35rem;
    text-align: left;
  }
  .fd-rail-desk .fd-rail-head {
    margin: 0 0 0.45rem; padding: 0;
    font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase; color: #ffd9a0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }
  .fd-rail-desk .fd-rail-track {
    display: flex; gap: 0.7rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }
  .fd-rail-desk .fd-rail-track::-webkit-scrollbar { display: none; }
  .fd-rail-desk .fd-card {
    flex: 1 1 0; min-width: 150px; scroll-snap-align: start;
    display: block; text-decoration: none;
    background: linear-gradient(160deg, #14222b, #0e1a20);
    border: 1px solid #274860; border-radius: 12px;
    overflow: hidden;
  }
  .fd-rail-desk .fd-card-media {
    display: block; position: relative; height: 108px; background: #0b0614;
  }
  .fd-rail-desk .fd-card-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .fd-rail-desk .fd-card-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 1.6rem;
  }
  .fd-rail-desk .fd-badge {
    position: absolute; left: 6px; bottom: 6px;
    background: rgba(11, 6, 20, 0.82); color: #ffd9a0;
    font-size: 0.66rem; font-weight: 800; letter-spacing: 0.03em;
    padding: 0.16rem 0.42rem; border-radius: 999px;
  }
  .fd-rail-desk .fd-badge-play { color: #8fd8ff; }
  .fd-rail-desk .fd-card-body { display: block; padding: 0.5rem 0.6rem 0.6rem; }
  .fd-rail-desk .fd-card-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem; font-weight: 700; line-height: 1.25; color: #f5f2ec;
  }
  .fd-rail-desk .fd-card-meta {
    display: block; margin-top: 0.16rem;
    font-size: 0.74rem; color: #94a6c0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}
@media (min-width: 1000px) {
  /* Same seat as the hero above it: main.wrap is a 720px column, so
     like .hero-split the rail breaks out with the hero's own
     width + left/transform centering (plain margin-auto cannot
     center a 1060px box inside the 688px content column). */
  .fd-rail-desk {
    width: min(1060px, calc(100vw - 2rem));
    position: relative; left: 50%; transform: translateX(-50%);
  }
}

/* ============ z175: FRANKENSTEIN CENTRED TO MIRROR THE LOGO (Dan, Oct 26) ====
   Dan: "Let's center Frankenstein image on the right as well on the
   top right of the banner." Frankenstein was already centred in his
   own 130px flank zone (z68): his box IS the zone (130 x 93) and the
   picture centres in it via object-fit (rig-measured content 99.6 x
   93, centre = zone centre = 65px in from the band's right edge at
   every desktop size). But z172 deliberately moved the LOGO off its
   zone centre onto the Events column axis, so after z172 the banner
   flanks were no longer mirror images: the logo's centre sat 91.66 /
   83.33 / 76.66px in from the band's left edge (>=1200 / 1000-1199 /
   761-999) while Frankenstein's sat 65px in from the right — a
   symmetry delta of exactly the z172 shift (rig-measured on the z172
   tree: +26.66 / +18.33 / +11.66px). The mirror fix shifts Franken-
   stein LEFT by the same per-band amounts, putting his centre the
   same distance in from the right edge as the logo's is from the
   left; symmetry delta 0.00px at 1440x900, 1512x982, 1280x720,
   1920x1080, 1100x800 and 900x700 (rig-verified). His size, the zone
   structure, the hook band's centre, the logo's z172 position and
   all header heights are untouched — a transform moves no layout.
   No contact risk: his picture sits 15.2px inside his box, so after
   the largest shift its left edge still clears the centre column by
   ~2.9px. Vertical needs nothing: both flanks already measure 0.00px
   off the band's vertical centre. Scoped to the same (min-width:
   761px) and (min-height: 501px) bands as z172 — phone (<=760) and
   compact landscape render byte-identical (phone rect dump verified
   identical). */
@media (min-width: 761px) and (min-height: 501px) {
  .header-band .header-frank { transform: translateX(-11.66px); }
}
@media (min-width: 1000px) and (min-height: 501px) {
  .header-band .header-frank { transform: translateX(-18.33px); }
}
@media (min-width: 1200px) and (min-height: 501px) {
  .header-band .header-frank { transform: translateX(-26.66px); }
}

/* ============ z179: POP HAUNT CULTURE (Dan, Oct 27) ============
   New section page /pop-haunt-culture + its bubble in the VT/TV
   strip. The page grid reuses the /movies yt-grid + facade styles;
   new here: (1) the launch-state "more on the way" panel, (2) the
   vertical-Short framing — a Short's still is a vertical frame
   inside a 4:3 image, so contain shows it whole instead of the
   cover crop cutting the subject, (3) the strip bubble itself:
   Pop Haunt Culture sits DIRECTLY after HauntMap TV in all three
   strip copies (homepage top, homepage phone twin, base bottom
   strip), in the same bubble family with its own accent — violet,
   the one hue the strip didn't already carry (Tour/TV azure, Music
   orange, Movies red, Art pink, Markets green, Top 100 gold). */
.pop-more { border: 2px dashed #3a2a5e; border-radius: var(--radius); padding: 1.1rem 1rem; margin-top: 0.9rem; text-align: center; color: var(--muted); background: var(--card); }
.pop-more p { margin: 0; }
.yt-facade--short img { object-fit: contain; }
.vt-tv-strip .pop-btn { background: #160a2e; border: 2px solid #b18cff; color: #efe6ff; }
.vt-tv-strip a.pop-btn::before, .vt-tv-strip a.pop-btn::after {
  background: #b18cff; box-shadow: 0 0 6px 2px rgba(177, 140, 255, 0.50);
}
.vt-tv-strip .makeup-btn { background: #2e0a1e; border: 2px solid #ff8fc7; color: #ffe6f4; }
.vt-tv-strip a.makeup-btn::before, .vt-tv-strip a.makeup-btn::after {
  background: #ff8fc7; box-shadow: 0 0 6px 2px rgba(255, 143, 199, 0.50);
}

/* ============ z182: PROFILE PREVIEW BESIDE THE JOIN BLOCK (Dan, Oct 27) ============
   A real screenshot of the host @frank's profile page sits NEXT TO the
   homepage Join HauntSocial block, so visitors see what their own page
   could look like before they sign up. The block's copy column wraps in
   .social-promo-main (new wrapper, copy untouched); the picture is a
   link to /signup with a slight preview-card tilt + blue glow. Laptop:
   side-by-side. Phone: the picture stacks under the copy, centered.
   The .social-promo section exists only on the homepage, so no other
   page changes. */
.social-promo { flex-direction: row; align-items: stretch; }
.social-promo-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.social-promo-shot { flex: 0 0 248px; display: flex; flex-direction: column; gap: 0.45rem;
  text-decoration: none; align-self: center; }
.social-promo-shot img { width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid rgba(143, 216, 255, 0.55); transform: rotate(1.3deg);
  box-shadow: 0 0 22px rgba(87, 168, 255, 0.35), 0 12px 26px rgba(0, 0, 0, 0.55); }
.social-promo-shot:hover img { filter: brightness(1.07); }
.social-promo-shot-cap { color: #a9cdf5; font-size: 0.82rem; text-align: center; }
@media (max-width: 760px) {
  .social-promo { flex-direction: column; }
  .social-promo-shot { flex: none; width: min(290px, 92%); }
}

/* ============ z183: JOIN BLOCK CLEAN 50/50 SPLIT (Dan, Oct 27) ============
   Dan: "half the block should have the Join HauntSocial text and button,
   the other half should preview the profile page, clean and neat on both
   sides" — and on the tilt: "Can't be crooked." Replaces the z182
   beside-the-block layout (copy flex 1 1 auto + fixed 248px card tilted
   1.3deg) with an even two-half flex: both halves are flex: 1 1 0 inside
   the same block padding, split by a 1.25rem gutter. The copy half
   centers its column vertically; the preview half centers the card and
   its caption. The card sits PERFECTLY STRAIGHT — the rotate is gone
   (transform: none; no ancestor transform either) — in a tidy frame:
   the same 1px azure border and 12px radius, with the blue glow
   softened to a level shadow. On laptop the screenshot is height-
   capped so it sits comfortably in its half; on phone the halves
   stack (copy first, preview below, centered at a matching width).
   Copy, asset, and /signup links untouched; .social-promo exists
   only on the homepage. */
.social-promo { flex-direction: row; align-items: stretch; gap: 1.25rem; }
.social-promo-main { flex: 1 1 0; justify-content: center; }
.social-promo-shot { flex: 1 1 0; align-self: stretch; align-items: center;
  justify-content: center; }
.social-promo-shot img { transform: none;
  box-shadow: 0 0 16px rgba(87, 168, 255, 0.28), 0 8px 20px rgba(0, 0, 0, 0.5); }
@media (min-width: 761px) {
  .social-promo-shot img { width: auto; max-width: 100%; max-height: 430px; }
}
@media (max-width: 760px) {
  .social-promo { flex-direction: column; gap: 1rem; }
  .social-promo-main, .social-promo-shot { flex: none; }
  .social-promo-shot { width: min(340px, 100%); }
}
/* ============ z185: HOMEPAGE POP HAUNT CULTURE FEATURE (Dan, Oct 27) ====
   Dan: a Pop Haunt Culture feature below the top search bar,
   featuring the best-of-Brooklyn video from Pop Haunt Culture (its
   lead, POP_CULTURE_FEATURED — one data source feeds both places).
   Final stack under the search bar (Dan's order update, same day):
   (1) Auto Tour, (2) this Pop Haunt Culture feature, then the hero
   order resumes. The block sits inside .hero-intro directly under
   the Auto Tour panel, so ONE copy serves both viewports (like
   .hm-find itself): on laptop it sits in the hero panel above the
   .hero-stack; on phone it follows the search inside the panel. Panel treatment matches the
   homepage modules (.auto-tour-home family), accent swapped to Pop
   Haunt Culture violet (#b18cff — the strip bubble's hue). The
   .hero-intro generic p rules (white, big margins) are beaten with
   .pop-home-scoped selectors below. The facade + play button reuse
   the shared .yt-facade/.yt-play styles untouched. */
.pop-home {
  margin: 1rem 0 0.4rem; padding: 1rem; text-align: left;
  background: transparent;
  border: 1px solid #b18cff; border-radius: 14px;
  box-shadow: 0 0 18px rgba(177, 140, 255, 0.35);
}
/* HauntMap Plus — homepage membership block (Dan, 2026-11-02):
   bottom of the hero panel. Gold treatment (compass gold #E6B16D,
   the Plus brand color from /plus) to set it apart from the
   violet Pop Haunt Culture block above it. */
.plus-home {
  margin: 1rem 0 0.4rem; padding: 1rem; text-align: left;
  background: linear-gradient(160deg, rgba(28, 20, 8, 0.88), rgba(10, 14, 18, 0.88));
  border: 1px solid #E6B16D; border-radius: 14px;
  box-shadow: 0 0 18px rgba(230, 177, 109, 0.35);
}
.plus-home h2 { font-size: 1.25rem; margin: 0 0 0.5rem; color: #f9e5c2; }
.plus-home-pitch { color: var(--ink); font-size: 0.92rem; margin: 0 0 0.8rem; text-shadow: none; line-height: 1.5; }
.plus-home-tiers { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
@media (min-width: 620px) { .plus-home-tiers { grid-template-columns: repeat(3, 1fr); } }
.plus-home-tier {
  border: 1px solid rgba(230, 177, 109, 0.4); border-radius: 10px;
  padding: 0.6rem 0.7rem; text-align: center;
  background: rgba(0, 0, 0, 0.35);
}
.plus-home-tier--best { border-color: #E6B16D; box-shadow: 0 0 10px rgba(230, 177, 109, 0.35); }
.plus-home-amt { font-size: 1.45rem; font-weight: 800; color: #E6B16D; }
.plus-home-per { font-size: 0.85rem; font-weight: 600; opacity: 0.8; }
.plus-home-note { font-size: 0.8rem; color: var(--ink); opacity: 0.85; margin-top: 0.15rem; }
.plus-home-cta { margin: 0.85rem 0 0; text-align: center; }
.plus-home-btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  background: #E6B16D; color: #1c1408; font-weight: 800; text-decoration: none;
}
.plus-home-btn:hover { filter: brightness(1.1); }

.pop-home h2 { font-size: 1.25rem; margin: 0 0 0.5rem; color: #efe6ff; }
.pop-home p.yt-cap { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; text-shadow: none; line-height: 1.45; }
.pop-home p.pop-home-blurb { color: var(--ink); font-size: 0.92rem; margin: 0.35rem 0 0; text-shadow: none; line-height: 1.5; }
.pop-home p.pop-home-more { margin: 0.6rem 0 0; text-shadow: none; line-height: 1.45; }
.pop-home-more a { font-weight: 700; color: #b18cff; }
.pop-home-more a:hover { color: #d3bcff; }
.pop-home-duo { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 0.85rem; }
@media (min-width: 620px) { .pop-home-duo { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.pop-home-duo .yt-cap { font-size: 0.82rem; }

/* Farm spotlight (Dan, 2026-11-04): the homepage block's first
   card (Carm's Farms) renders as a LARGE feature above the
   uniform grid — "larger than the other ones in its own
   spotlight at the top", with its paragraph running across the
   bottom of the video. A wider facade (430px vs the grid's
   300px), the Pop Haunt Culture violet as border + glow, a
   bigger play button, and the caption + blurb as an overlay
   band across the BOTTOM of the facade (dark gradient so the
   text stays legible over the cover frame). Scoped to
   .pop-home so /pop-haunt-culture never sees any of it; the
   iframe the facade swaps in on tap keeps the spotlight width
   via the .pop-home-feature frame rules. */
.pop-home-feature { max-width: 430px; margin: 0.35rem auto 0; }
.pop-home-feature .yt-facade { max-width: 100%; border-color: #b18cff;
  box-shadow: 0 0 24px rgba(177, 140, 255, 0.55), 0 6px 22px rgba(0, 0, 0, 0.5); }
.pop-home-feature .yt-play { width: 76px; height: 76px; line-height: 76px; font-size: 1.75rem; }
.pop-home-feature .tt-frame, .pop-home-feature .fb-frame,
.pop-home-feature .yt-frame { max-width: 100%; }
.pop-home-feature-band { position: absolute; left: 0; right: 0; bottom: 0;
  display: block; text-align: left; pointer-events: none;
  font-family: inherit; padding: 2.4rem 0.85rem 0.7rem;
  background: linear-gradient(to top, rgba(8, 3, 18, 0.94) 52%, rgba(8, 3, 18, 0)); }
.pop-home-feature-cap { display: block; color: #fff; font-weight: 800;
  font-size: 1.02rem; line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85); }
.pop-home-feature-blurb { display: block; color: #ece5fb; font-size: 0.86rem;
  line-height: 1.45; margin-top: 0.3rem; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.85); }

/* Fall Events — homepage section (Dan, 2026-11-04): the Fall
   Events Batch 1 set featured directly under the Pop Haunt
   Culture block. Same panel shell family as .pop-home (bordered,
   rounded, glow) but in the logo palette's fall tones — pumpkin
   border, cream heading, window-amber link — so the section reads
   as the homepage's fall turn, distinct from Pop Haunt Culture's
   violet above it and Plus's gold below. Cards are the shared
   .card markup (pin_card macro); only the section shell and the
   grid live here, all scoped under .fall-ev-home. */
.fall-ev-home {
  margin: 1rem 0 0.4rem; padding: 1rem; text-align: left;
  background: transparent;
  border: 1px solid #EB7A2C; border-radius: 14px;
  box-shadow: 0 0 18px rgba(235, 122, 44, 0.35);
}
.fall-ev-home h2 { font-size: 1.25rem; margin: 0 0 0.5rem; color: #F9E5C2; }
.fall-ev-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.8rem; line-height: 1.5; }
.fall-ev-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 620px) { .fall-ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fall-ev-grid { grid-template-columns: repeat(3, 1fr); } }
.fall-ev-more { margin: 0.85rem 0 0; }
.fall-ev-more a { font-weight: 700; color: #F19D45; }
.fall-ev-more a:hover { color: #ffc98a; }

/* Auto Tour's move under the search bar (Dan, Oct 27 — order
   update): the panel's single copy now lives inside .hero-intro
   directly under .hm-find, above .pop-home, with no hero-copy
   twin. The z67 one-copy rule above hides .auto-tour-home:not
   (.hero-copy) at >=761px (it was written for the old below-band
   phone twin), so this higher-specificity exception keeps the
   moved panel visible on laptop; below 761px the base styles
   already show it. Its old .hero-split "autotour" grid seat and
   hero-stack seat are removed. */
@media (min-width: 761px) {
  .hero-intro > .auto-tour-home:not(.hero-copy) { display: block; }
}

/* ============ z187: DIY COSTUMES INSTAGRAM REEL FACADE (Dan, Oct 27) ====
   First Instagram entry on /diy-costumes (Danielle @themindfulhaven's DIY
   Groot reel, the new #1 card): a click-to-play facade in the .yt-facade
   pattern but vertical 9/16 — the reel's own cover frame (fetched from
   Instagram's CDN, never the video) shows until tap, then Instagram's
   official embed iframe (.ig-frame, sized like .diy-embed's player)
   swaps in. Scoped to .costume-card so nothing else moves. */
.costume-card .ig-facade { position: relative; display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; margin: 0 auto 0.35rem; padding: 0; border: 1px solid #274860; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.costume-card .ig-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.costume-card .ig-facade:hover .yt-play, .costume-card .ig-facade:focus-visible .yt-play { background: #ff8c42; }
.costume-card .ig-frame { width: 100%; max-width: 340px; height: 600px; margin: 0 auto 0.35rem; border: 0; border-radius: 10px; display: block; background: #000; }
/* (DIY COSTUMES: GROOT REEL AT THE TOP (Dan, Oct 27): Dan sent Danielle | DIY + DESIGN's Instagram reel (Dew32sWMjd8) — 'New diy costumes' + 'Put at the top of page.' The reel: a full Groot built from foam pipe insulation (posted Oct 21, 2026; her caption: the homemade costume that 'broke the internet'). It is the new #1 card in a new 'Just Added' section above For Kids on /diy-costumes; nothing else moved. Pattern: first Instagram entry on the page — a click-to-play facade mirroring the YouTube one (the reel's OWN cover frame, fetched from Instagram's CDN before the signed URL expired, stored as static/img/groot_costume_reel.jpg — the video itself is never re-hosted); on tap it swaps in Instagram's official embed iframe (instagram.com/reel/<id>/embed, allow incl. fullscreen + allowfullscreen). Credit on the card: 'Danielle | DIY + DESIGN (@themindfulhaven)'; the card's tutorial link opens the reel on Instagram. Intro + credits copy now name Instagram among the official-embed sources. CSS: facade/frame rules appended (vertical 9/16 facade, 600px embed frame sized like .diy-embed's player), scoped to .costume-card.) */

/* ============ z189: STRIP SLIM — laptop (Dan, Oct 27) ============
   Dan, on the z184 FILL ship: "The buttons on the laptop view for
   Virtual Tour through Nationwide are TOO LONG — make them slimmer
   and sleeker." FILL type (1.02rem/1.18rem labels, 0.5rem vertical
   padding, 1.25rem icons) made ~78px chunky pills. This block keeps
   the text easy to read (0.88rem >=1340 / 0.98rem wrap band — still
   far above the old 0.63rem sleek-trim) but slims the silhouette:
   line-height 1.18/1.2 -> 1.05/1.06, vertical padding 0.5rem ->
   0.24/0.26rem, icons 1.25/1.45rem -> 1.08/1.18rem, icon-label gap
   0.4rem -> 0.32/0.34rem. The 3-line Flea Markets label sets the
   row height: ~78px -> ~56px single-row, wrap rows 65/88px ->
   ~45/62px. The TOP strip keeps z156's full-page span (Dan's own
   Oct 26 call — untouched); the BOTTOM strip's measure narrows
   from FILL's 1400px to 1240px so its pills slim horizontally too.
   Same selector weight as the FILL block, later in the file, so it
   wins where it applies; laptop >=900px only, phone byte-untouched. */
@media (min-width: 900px) and (max-width: 1339px) {
  .vt-tv-strip.vt-tv-strip-top a,
  .vt-tv-strip.vt-tv-strip-bottom a {
    font-size: 0.98rem; line-height: 1.06;
    gap: 0.34rem; padding: 0.26rem 0.35rem;
  }
  .vt-tv-strip.vt-tv-strip-top a .vt-ic,
  .vt-tv-strip.vt-tv-strip-bottom a .vt-ic { font-size: 1.18rem; }
}
@media (min-width: 1340px) {
  .vt-tv-strip.vt-tv-strip-bottom {
    width: min(1240px, calc(100vw - 2rem));
  }
  .vt-tv-strip.vt-tv-strip-top a,
  .vt-tv-strip.vt-tv-strip-bottom a {
    font-size: 0.88rem; line-height: 1.05;
    gap: 0.32rem; padding: 0.24rem 0.3rem;
  }
  .vt-tv-strip.vt-tv-strip-top a .vt-ic,
  .vt-tv-strip.vt-tv-strip-bottom a .vt-ic { font-size: 1.08rem; }
}

/* ============ z190: JOIN BLOCK — PROMO LINE + COPY FILLS ITS HALF (Dan, Oct 27) ====
   Three Dan notes on the homepage Join HauntSocial block: (1) MORE
   PROMOTION — a new promo line in the copy half ("Post your favorite
   haunts, share your favorite memories, and chat with your friends
   about your favorite Halloween events, parties, music, and
   costumes." — a .social-promo-line under the existing body copy,
   template-only). (2) "Fill the space on the text side and space it
   nicely with less dead space": the copy half was justify-content:
   center (z183), which floated the copy as a cluster mid-half — on
   laptop ~28px dead bands top and bottom while the inter-element
   gaps sat at the 0.65rem minimum. Now space-between: the headline
   row pins to the top of the half, the CTA group to the bottom, and
   the leftover height distributes evenly into the gaps between the
   copy elements, so the text side fills its half with an even rhythm
   against the preview half. The 0.65rem flex gap stays as the
   minimum spacing. On phone the copy half is content height, so
   there is no dead space to distribute — the same even gaps carry
   through the stack. (3) The preview caption now reads "Join before
   Halloween and get access to our HauntSocial Chatroom!" (template).
   Preview card untouched (still perfectly straight). */
.social-promo-main { justify-content: space-between; }

/* ============ z191: CHATROOM CAPTION IN THE WORDMARK FACE (Dan, Oct 27) ============
   Dan: "Make the text under the profile picture 'Join before Halloween
   and get access to our HauntSocial Chatroom!' in the same font as the
   HauntSocial font." The caption under Frank's profile preview now
   carries the block wordmark's exact treatment — Eater, azure #8FD8FF,
   the same blue glow stack as .social-promo-wordmark. Eater is a wide
   drip display face, so the size is tuned (measured) to hold the long
   sentence on ONE line across the preview half on laptop and wrap
   tidily on phone; line-height leaves room for the drips. Card,
   caption text and the 50/50 geometry untouched. */
.social-promo-shot-cap { font-family: "Eater", cursive; font-weight: 400;
  text-transform: none; letter-spacing: 0.01em; line-height: 1.35;
  color: #8fd8ff; width: 100%;
  text-shadow: 0 0 16px rgba(87, 168, 255, 0.55), 0 0 44px rgba(87, 168, 255, 0.30), 0 2px 0 rgba(0, 0, 0, 0.5);
  font-size: 0.72rem; }
/* ============ z192: HAUNT CHAT (Dan, Oct 27) ================
   /chat — the members-only HauntSocial chat room with a public teaser.
   Azure/blue-glow HauntSocial branding on the site's dark cards; the
   room is a self-contained panel (message list scrolls internally,
   composer sits under it in flow) so phone and laptop both keep the
   composer on screen without any fixed positioning. Nothing tilted. */
.chat-wrap { max-width: 880px; margin: 0 auto; padding: 1.2rem 1rem 2.2rem; }
.chat-head { text-align: center; margin-bottom: 1rem; }
.chat-title { margin: 0.15rem 0 0.3rem; font-size: 2rem; line-height: 1.15; }
.chat-sub { color: var(--muted); margin: 0 auto; max-width: 560px; }
.chat-room { background: var(--card); border: 1px solid rgba(143,216,255,.38);
  border-radius: var(--radius); box-shadow: 0 0 26px rgba(87,168,255,.16);
  overflow: hidden; }
.chat-pin { display: flex; gap: 0.7rem; padding: 0.85rem 1rem;
  background: linear-gradient(120deg, rgba(87,168,255,.16), rgba(143,216,255,.05));
  border-bottom: 1px solid rgba(143,216,255,.30); }
.chat-pin-main { min-width: 0; }
.chat-pin-meta { margin: 0 0 0.15rem; font-size: 0.82rem; font-weight: 700;
  color: #8fd8ff; }
.chat-pin-meta a { color: #8fd8ff; text-decoration: none; }
.chat-pin-meta a:hover { text-decoration: underline; }
.chat-pin-text { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.chat-msgs { display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1rem; max-height: 58vh; min-height: 220px; overflow-y: auto; }
.chat-empty { color: var(--muted); text-align: center; margin: auto 0; }
.chat-msg { display: flex; gap: 0.6rem; align-items: flex-start; }
.chat-ava { flex-shrink: 0; line-height: 0; }
.chat-msg-main { min-width: 0; }
.chat-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }
.chat-handle { color: #8fd8ff; font-weight: 700; text-decoration: none; }
.chat-handle:hover { text-decoration: underline; }
.chat-time { color: var(--muted); opacity: 0.75; }
.chat-del { background: none; border: none; color: var(--muted);
  font-size: 0.78rem; line-height: 1; padding: 0.1rem 0.25rem; cursor: pointer;
  opacity: 0.55; vertical-align: baseline; }
.chat-del:hover, .chat-del:focus-visible { color: var(--danger); opacity: 1; }
.chat-text { margin: 0.1rem 0 0; line-height: 1.45; overflow-wrap: anywhere;
  white-space: pre-wrap; }
.chat-gate { border-top: 1px dashed rgba(143,216,255,.4);
  padding: 1.1rem 1rem 1.25rem; text-align: center;
  background: linear-gradient(180deg, rgba(87,168,255,.05), rgba(87,168,255,.13)); }
.chat-gate-title { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 700; }
.chat-gate-sub { margin: 0 0 0.8rem; color: var(--muted); }
.chat-gate-btns { display: flex; gap: 0.6rem; justify-content: center;
  align-items: center; flex-wrap: wrap; }
.chat-gate-login { color: #8fd8ff; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(143,216,255,.55); border-radius: 999px;
  padding: 0.55rem 1.1rem; }
.chat-gate-login:hover { background: rgba(143,216,255,.12); }
.chat-composer { margin-top: 0.9rem; background: var(--card);
  border: 1px solid rgba(143,216,255,.38); border-radius: var(--radius);
  padding: 0.8rem 0.9rem 0.6rem; box-shadow: 0 0 26px rgba(87,168,255,.12); }
.chat-composer-label { display: block; font-size: 0.8rem; color: var(--muted);
  margin-bottom: 0.45rem; }
.chat-composer-row { display: flex; gap: 0.55rem; align-items: flex-end; }
.chat-input { flex: 1 1 auto; min-width: 0; resize: none; max-height: 7.5rem;
  background: var(--bg2); color: var(--ink); border: 1px solid rgba(143,216,255,.35);
  border-radius: 10px; padding: 0.65rem 0.75rem; font: inherit; font-size: 1rem;
  line-height: 1.35; }
.chat-input:focus { outline: 2px solid rgba(143,216,255,.6); outline-offset: 0; }
.chat-send { flex-shrink: 0; background: #8fd8ff; color: #0a1622; font-weight: 800;
  border: none; border-radius: 10px; padding: 0.7rem 1.15rem; cursor: pointer;
  font-size: 1rem; }
.chat-send:hover { background: #b3e5ff; }
.chat-composer-meta { display: flex; justify-content: space-between; gap: 1rem;
  margin: 0.4rem 0 0; font-size: 0.78rem; min-height: 1em; }
.chat-err { color: var(--danger); }
.chat-count { color: var(--muted); margin-left: auto; }
@media (max-width: 520px) {
  .chat-wrap { padding: 0.9rem 0.6rem 1.6rem; }
  .chat-title { font-size: 1.55rem; }
  .chat-msgs { max-height: 54vh; min-height: 190px; padding: 0.8rem; gap: 0.75rem; }
  .chat-pin { padding: 0.75rem 0.8rem; }
  .chat-pin-text { font-size: 0.9rem; }
  .chat-send { padding: 0.7rem 0.9rem; }
}

/* ============ z193: CHATROOM CAPTION FITS THE PROFILE CARD (Dan, Oct 27) ====
   Dan: "shrink 'Join before Halloween and get access to our HauntSocial
   Chatroom!' to fit under the profile block." At z191 the caption ran
   the full preview half on ONE line (~500px) while Frank's card above
   it renders ~408px wide (height-capped at 430px), so the sentence
   stuck out past both edges of the card. The caption is now capped to
   the card's own width — min(407px, 100%) tracks the card exactly:
   when the half is roomy the card sits at its 407.8px cap and so does
   the caption; when the half narrows, the card shrinks to the half and
   the caption's 100% ceiling shrinks with it. The sentence wraps to
   two balanced lines under the card instead of shrinking the font;
   the laptop size even comes UP a touch (0.72rem -> 0.75rem) for
   legibility. Eater / azure / blue-glow treatment, card, and the
   50/50 geometry untouched; the caption stays centered on the card's
   center (both are centered flex items in .social-promo-shot). */
.social-promo-shot-cap { max-width: min(407px, 100%); margin-inline: auto;
  text-wrap: balance; }
@media (min-width: 761px) {
  .social-promo-shot-cap { font-size: 0.75rem; }
}

/* ============ z194: CREEPY PALM WATERMARK IN THE JOIN BLOCK (Dan, Oct 27) ====
   Dan: "add a creepy palm tree somewhere on the text side of the
   HauntSocial block, large in the background, not so dark so the text
   can still be read." An inline SVG silhouette (gnarled curved trunk,
   drooping ragged fronds, a dead-frond skirt under the crown) sits
   behind the COPY half only (.social-promo-main) — never the preview
   half, never behind Frank's card. Soft azure-slate tint at watermark
   opacity so every text element stays crisp over it; the tree anchors
   to the right of the copy half, rises past the top, and its trunk
   runs off the bottom edge (the half clips it — no layout shift, no
   overflow anywhere). pointer-events: none; content rides above it. */
.social-promo-main { position: relative; overflow: hidden; }
.social-promo-palm { position: absolute; right: -16px; bottom: -18px;
  height: 118%; width: auto; aspect-ratio: 400 / 540;
  color: #7fb8e8; opacity: 0.16; z-index: 0; pointer-events: none; }
.social-promo-main > *:not(.social-promo-palm) { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .social-promo-palm { height: 112%; right: -24px; opacity: 0.13; }
}

/* ============ z195: HAUNT CHAT REAL-TIME (Dan, Oct 27) ================
   Presence bar + typing line, treat reactions, the admin mod panel,
   and the word-game strip (challenge form + game cards). Same azure
   HauntSocial treatment as the z192 room; everything level. */
.chat-presence { display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.45rem 0.8rem; background: var(--card);
  border: 1px solid rgba(143,216,255,.30); border-radius: var(--radius);
  padding: 0.5rem 0.8rem; margin-bottom: 0.7rem; font-size: 0.85rem; }
.chat-presence-count { font-weight: 700; color: #8fd8ff; }
.chat-presence-users { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chat-presence-chip { display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--bg2); color: var(--ink); border: 1px solid rgba(143,216,255,.30);
  border-radius: 999px; padding: 0.12rem 0.55rem 0.12rem 0.15rem;
  font-size: 0.78rem; cursor: pointer; }
.chat-presence-chip:hover { border-color: rgba(143,216,255,.7); }
.chat-presence-chip .soc-avatar { width: 20px; height: 20px; font-size: 0.62rem; }
.chat-typing { color: var(--muted); font-style: italic; font-size: 0.8rem;
  min-height: 1em; }
.chat-report { background: none; border: none; color: var(--muted);
  font-size: 0.75rem; padding: 0.1rem 0.2rem; cursor: pointer; opacity: 0.5; }
.chat-report:hover, .chat-report:focus-visible { color: var(--danger); opacity: 1; }
.chat-reacts { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem;
  align-items: center; }
.chat-react-chip { background: var(--bg2); color: var(--ink);
  border: 1px solid rgba(143,216,255,.30); border-radius: 999px;
  padding: 0.08rem 0.5rem; font-size: 0.8rem; cursor: pointer; line-height: 1.5; }
button.chat-react-chip:hover { border-color: rgba(143,216,255,.75); }
.chat-react-chip.mine { background: rgba(143,216,255,.22);
  border-color: #8fd8ff; font-weight: 700; }
span.chat-react-chip { cursor: default; }
.chat-react-add { background: none; border: 1px dashed rgba(143,216,255,.4);
  color: var(--muted); border-radius: 999px; padding: 0.08rem 0.5rem;
  font-size: 0.75rem; cursor: pointer; line-height: 1.5; }
.chat-react-add:hover { color: var(--ink); border-color: rgba(143,216,255,.8); }
.chat-react-picker { display: flex; gap: 0.25rem; margin-top: 0.3rem; }
.chat-react-picker[hidden] { display: none; }
.chat-react-pick { background: var(--bg2); border: 1px solid rgba(143,216,255,.3);
  border-radius: 8px; padding: 0.15rem 0.4rem; font-size: 1rem; cursor: pointer; }
.chat-react-pick:hover { border-color: #8fd8ff; }
.chat-mod { margin-top: 0.9rem; background: var(--card);
  border: 1px solid rgba(255,190,90,.4); border-radius: var(--radius);
  padding: 0.7rem 0.9rem; }
.chat-mod summary { cursor: pointer; font-weight: 700; }
.chat-mod-body { margin-top: 0.6rem; display: flex; flex-direction: column;
  gap: 0.55rem; }
.chat-mod-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  font-size: 0.85rem; margin: 0; }
.chat-mod-row input { background: var(--bg2); color: var(--ink);
  border: 1px solid rgba(143,216,255,.35); border-radius: 8px;
  padding: 0.35rem 0.55rem; font: inherit; font-size: 0.9rem; }
.chat-mod-row button { background: #8fd8ff; color: #0a1622; font-weight: 700;
  border: none; border-radius: 8px; padding: 0.4rem 0.8rem; cursor: pointer; }
.chat-mod-muted { margin: 0; font-size: 0.82rem; color: var(--muted); }
.chat-mod-log { margin: 0; padding-left: 1.1rem; font-size: 0.8rem;
  color: var(--muted); max-height: 180px; overflow-y: auto; }
.chat-games { background: var(--card); border: 1px solid rgba(143,216,255,.30);
  border-radius: var(--radius); padding: 0.7rem 0.9rem; margin-bottom: 0.7rem; }
.chat-games-head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem;
  align-items: center; justify-content: space-between; }
.chat-games-title { font-weight: 800; color: #8fd8ff; }
.chat-challenge-form { display: flex; flex-wrap: wrap; gap: 0.4rem;
  align-items: center; margin: 0; }
.chat-challenge-handle, .chat-challenge-kind { background: var(--bg2);
  color: var(--ink); border: 1px solid rgba(143,216,255,.35);
  border-radius: 8px; padding: 0.42rem 0.55rem; font: inherit;
  font-size: 0.9rem; }
.chat-challenge-handle { width: 9.5rem; }
.chat-challenge-btn { background: #8fd8ff; color: #0a1622; font-weight: 800;
  border: none; border-radius: 8px; padding: 0.48rem 0.85rem; cursor: pointer; }
.chat-challenge-btn:hover { background: #b3e5ff; }
.game-cards { display: flex; flex-direction: column; gap: 0.55rem;
  margin-top: 0.55rem; }
.game-cards:empty { margin-top: 0; }
.game-card { border: 1px solid rgba(143,216,255,.4); border-radius: 10px;
  background: linear-gradient(120deg, rgba(87,168,255,.12), rgba(143,216,255,.03));
  padding: 0.6rem 0.75rem; }
.game-card.game-finished { border-color: rgba(255,209,102,.55); }
.game-head { margin: 0 0 0.25rem; font-weight: 700; font-size: 0.9rem;
  color: #8fd8ff; }
.game-status { margin: 0.15rem 0; font-size: 0.86rem; color: var(--ink);
  overflow-wrap: anywhere; }
.game-masked { margin: 0.25rem 0; font-size: 1.35rem; font-weight: 800;
  letter-spacing: 0.14em; overflow-wrap: anywhere; }
.game-ghost { margin: 0.15rem 0; font-size: 0.9rem; color: var(--muted); }
.game-deadline { color: var(--muted); }
.game-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.game-btn { background: #8fd8ff; color: #0a1622; font-weight: 700; border: none;
  border-radius: 8px; padding: 0.42rem 0.8rem; cursor: pointer;
  font-size: 0.88rem; }
.game-btn:hover { background: #b3e5ff; }
.game-btn.ghost { background: none; color: var(--muted);
  border: 1px solid rgba(143,216,255,.4); }
.game-move { display: flex; gap: 0.4rem; margin-top: 0.45rem; }
.game-input { flex: 1 1 auto; min-width: 0; background: var(--bg2);
  color: var(--ink); border: 1px solid rgba(143,216,255,.35);
  border-radius: 8px; padding: 0.45rem 0.6rem; font: inherit; }
.soc-games-list { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.25rem; }
@media (max-width: 520px) {
  .chat-challenge-handle { width: 7.5rem; }
  .game-masked { font-size: 1.1rem; }
  .chat-presence { font-size: 0.8rem; }
}

/* ============ z196: POP HAUNT CULTURE — FIRST FACEBOOK ENTRY (Dan, Oct 27) ====
   Dude Dad's couples-costume reel (Facebook Reel, public, posted
   Oct 26, 2026) joins the /pop-haunt-culture grid as its first card:
   the page's first non-YouTube entry. Facade mirrors the z187
   Instagram-reel pattern — vertical 9/16, the reel's own cover frame
   (from Facebook's plugin page, stored locally as
   static/img/dude_dad_couples_costumes.jpg; signed CDN URLs expire)
   under the shared .yt-facade chrome, centered in the grid column;
   on tap the template's handler swaps in Facebook's official
   embedded player (.fb-frame, allow incl. fullscreen). Scoped to
   the pop page's classes so nothing else moves. */
.yt-facade--fb { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
.yt-facade--fb img { object-fit: cover; }
.fb-frame { width: 100%; max-width: 340px; aspect-ratio: 9 / 16;
  margin: 0 auto; border: 1px solid #274860; border-radius: var(--radius);
  display: block; background: #000; overflow: hidden; }

/* ============ z197: HAUNT CHAT WAVE 0 — QUICK WINS (Oct 27) ================
   @Mentions (chip + inbox-lite panel + in-text highlight), reply/
   quote (quote chip + jump flash + composer reply bar), room polls
   (tap-to-vote cards, live azure result bars, closed state), the
   pinned-message banner, sticker sends (big treat messages + picker
   row), and Frank's listing-announcement link. All riding the z192/
   z195 azure room treatment. */
.chat-mention-chip { background: rgba(255,209,102,.18); color: #ffd166;
  border: 1px solid rgba(255,209,102,.65); border-radius: 999px;
  padding: 0.15rem 0.6rem; font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; }
.chat-mention-chip:hover { border-color: #ffd166; }
.chat-mention-panel { background: var(--card);
  border: 1px solid rgba(255,209,102,.45); border-radius: var(--radius);
  padding: 0.45rem; margin-bottom: 0.7rem; display: flex;
  flex-direction: column; gap: 0.3rem; }
.chat-mention-panel[hidden] { display: none; }
.chat-mention-item { display: flex; gap: 0.4rem; align-items: baseline;
  text-align: left; background: var(--bg2); color: var(--ink);
  border: 1px solid rgba(143,216,255,.25); border-radius: 8px;
  padding: 0.4rem 0.6rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
.chat-mention-item:hover { border-color: rgba(143,216,255,.7); }
.chat-mention-item.unseen { border-color: rgba(255,209,102,.7); }
.chat-mention-from { font-weight: 700; color: #8fd8ff; white-space: nowrap; }
.chat-mention-snip { overflow-wrap: anywhere; }
.chat-mention-empty { margin: 0.2rem 0.3rem; color: var(--muted);
  font-size: 0.85rem; }
.chat-text .mention { color: #8fd8ff; font-weight: 700; }
.chat-text .mention-me { background: rgba(255,209,102,.25);
  border-radius: 4px; padding: 0 0.2em; color: #ffe9a8; }
.chat-msg.flash { animation: chatFlash 1.5s ease; }
@keyframes chatFlash { 0% { background: rgba(255,209,102,.35); }
  100% { background: transparent; } }
.chat-replybtn, .chat-pinbtn { background: none; border: none;
  color: var(--muted); font-size: 0.75rem; padding: 0.1rem 0.2rem;
  cursor: pointer; opacity: 0.5; }
.chat-replybtn:hover, .chat-replybtn:focus-visible,
.chat-pinbtn:hover, .chat-pinbtn:focus-visible { color: #8fd8ff; opacity: 1; }
.chat-quote { display: flex; gap: 0.35rem; align-items: baseline;
  max-width: 100%; background: var(--bg2); color: var(--muted);
  border: none; border-left: 3px solid #8fd8ff; border-radius: 0 8px 8px 0;
  padding: 0.3rem 0.55rem; margin-bottom: 0.25rem; font: inherit;
  font-size: 0.8rem; text-align: left; cursor: pointer; }
.chat-quote:hover { color: var(--ink); }
.chat-quote-who { font-weight: 700; color: #8fd8ff; white-space: nowrap; }
.chat-quote-snip { overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.chat-quote-gone { font-style: italic; }
.chat-pinned-inner { display: flex; gap: 0.7rem; align-items: flex-start;
  background: linear-gradient(120deg, rgba(255,209,102,.14), rgba(143,216,255,.05));
  border: 1px solid rgba(255,209,102,.55); border-radius: var(--radius);
  padding: 0.6rem 0.8rem; margin-bottom: 0.7rem; }
.chat-pinned-main { flex: 1 1 auto; min-width: 0; }
.chat-pin-meta { margin: 0 0 0.15rem; font-size: 0.78rem; font-weight: 700;
  color: #ffd166; }
.chat-pin-meta a { color: #8fd8ff; }
.chat-pinned-text { background: none; border: none; color: var(--ink);
  font: inherit; font-size: 0.92rem; text-align: left; padding: 0;
  cursor: pointer; overflow-wrap: anywhere; }
.chat-pinned-text:hover { text-decoration: underline; }
.chat-unpin { background: none; border: none; color: var(--muted);
  font-size: 0.85rem; cursor: pointer; padding: 0.1rem 0.3rem; }
.chat-unpin:hover { color: var(--danger); }
.chat-sticker-big { font-size: 3.2rem; line-height: 1.15; margin: 0.1rem 0; }
.chat-sticker-row { display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.45rem; }
.chat-sticker-row[hidden] { display: none; }
.chat-sticker-send { background: var(--bg2);
  border: 1px solid rgba(143,216,255,.35); border-radius: 10px;
  font-size: 1.7rem; padding: 0.25rem 0.55rem; cursor: pointer;
  line-height: 1.2; }
.chat-sticker-send:hover { border-color: #8fd8ff;
  background: rgba(143,216,255,.15); }
.chat-sticker-toggle { background: var(--bg2);
  border: 1px solid rgba(143,216,255,.35); border-radius: 10px;
  font-size: 1.15rem; padding: 0.3rem 0.5rem; cursor: pointer;
  line-height: 1.2; flex: 0 0 auto; }
.chat-sticker-toggle:hover { border-color: #8fd8ff; }
.chat-replybar { display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg2); border-left: 3px solid #8fd8ff;
  border-radius: 0 8px 8px 0; padding: 0.35rem 0.6rem;
  margin-bottom: 0.45rem; font-size: 0.82rem; color: var(--muted); }
.chat-replybar[hidden] { display: none; }
.chat-replybar-text { flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.chat-replybar-x { background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 0.85rem; padding: 0.1rem 0.25rem; }
.chat-replybar-x:hover { color: var(--ink); }
.chat-poll { background: var(--bg2);
  border: 1px solid rgba(143,216,255,.4); border-radius: 10px;
  padding: 0.55rem 0.7rem; margin: 0.15rem 0; max-width: 34rem; }
.chat-poll-q { margin: 0 0 0.45rem; font-weight: 700; }
.chat-poll-opt { position: relative; display: flex; align-items: center;
  gap: 0.5rem; width: 100%; background: none; color: var(--ink);
  border: 1px solid rgba(143,216,255,.35); border-radius: 8px;
  padding: 0.42rem 0.6rem; margin-bottom: 0.35rem; font: inherit;
  font-size: 0.9rem; text-align: left; cursor: pointer; overflow: hidden; }
.chat-poll-opt:hover:not(:disabled) { border-color: #8fd8ff; }
.chat-poll-opt:disabled { cursor: default; opacity: 0.85; }
.chat-poll-opt.mine { border-color: #ffd166; font-weight: 700; }
.chat-poll-bar { position: absolute; inset: 0 auto 0 0;
  background: rgba(143,216,255,.28); z-index: 0; }
.chat-poll-opt-text { position: relative; z-index: 1; flex: 1 1 auto;
  overflow-wrap: anywhere; }
.chat-poll-opt-n { position: relative; z-index: 1; font-weight: 700;
  color: #8fd8ff; }
.chat-poll-meta { margin: 0.15rem 0 0; font-size: 0.78rem;
  color: var(--muted); }
.chat-poll-close { background: none; color: var(--muted);
  border: 1px solid rgba(143,216,255,.35); border-radius: 8px;
  padding: 0.25rem 0.6rem; font-size: 0.78rem; cursor: pointer;
  margin-top: 0.35rem; }
.chat-poll-close:hover { color: var(--ink); border-color: #8fd8ff; }
.chat-poll-teaser { margin: 0.1rem 0 0; font-size: 0.8rem;
  color: #ffd166; }
.chat-poll-form { flex-direction: column; align-items: stretch; }
.chat-poll-form input { width: 100%; box-sizing: border-box; }
.chat-linkrow { margin: 0.25rem 0 0; }
.chat-link { color: #8fd8ff; font-weight: 700; font-size: 0.88rem; }
@media (max-width: 520px) {
  .chat-sticker-big { font-size: 2.6rem; }
  .chat-quote-snip { white-space: normal; }
}

/* ============ z198: HAUNT CHAT WAVE 1 — WEB PUSH + PWA (Oct 27) ============
   The opt-in panel (shared by /chat and /profile/edit), driven by
   static/js/push.js. Azure room treatment to match z192/z195/z197. */
.chat-bell { background: rgba(143,216,255,.12); color: #8fd8ff;
  border: 1px solid rgba(143,216,255,.5); border-radius: 999px;
  padding: 0.15rem 0.6rem; font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; margin-left: auto; }
.chat-bell:hover { border-color: #8fd8ff; }
.push-panel { background: var(--card);
  border: 1px solid rgba(143,216,255,.4); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; margin-bottom: 0.7rem; }
.push-panel-head { display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem; margin-bottom: 0.3rem; }
.push-panel-title { font-weight: 800; font-size: 1rem; color: var(--ink); }
.push-close { background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; padding: 0.15rem 0.35rem; }
.push-close:hover { color: #8fd8ff; }
.push-status { margin: 0.2rem 0 0.5rem; color: var(--muted);
  font-size: 0.88rem; }
.push-ios { margin: 0.2rem 0 0.6rem; padding: 0.55rem 0.7rem;
  background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.45);
  border-radius: 8px; font-size: 0.88rem; color: var(--ink); }
.push-row { display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.45rem 0.3rem; cursor: pointer; border-radius: 8px; }
.push-row:hover { background: rgba(143,216,255,.06); }
.push-row input[type="checkbox"] { width: 1.15rem; height: 1.15rem;
  margin-top: 0.15rem; accent-color: #35a7e8; flex: 0 0 auto; }
.push-row span { display: flex; flex-direction: column; gap: 0.05rem; }
.push-row small { color: var(--muted); font-size: 0.8rem; }
.push-master-row { border: 1px solid rgba(143,216,255,.3);
  border-radius: 8px; padding: 0.55rem 0.6rem; margin-bottom: 0.35rem; }
.push-types { display: flex; flex-direction: column; }
.push-actions { display: flex; align-items: center; gap: 0.7rem;
  margin-top: 0.6rem; flex-wrap: wrap; }
.push-msg { color: #8fd8ff; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 520px) {
  .chat-bell-label { display: none; }
  .chat-bell { padding: 0.15rem 0.45rem; }
}

/* ============ z200: DIY COSTUMES TIKTOK FACADE AT THE TOP (Dan, Oct 27) ====
   Dan sent @eimi.wordt.dutchie's Silent Hill Nurse tutorial (TikTok
   7695321330354359584, posted Oct 11, 2026) — "DIY costumes … at top":
   it is the new #1 card in the Just Added section on /diy-costumes,
   ahead of the Groot reel (now #2; nothing removed). First TikTok
   click-to-play facade on the page, in the .ig-facade pattern: the
   video's OWN cover frame (fetched from TikTok's CDN, stored as
   static/img/silenthill_nurse_costume.jpg — the video itself is never
   re-hosted) shows until tap, then the global hmLoadTikTok() swaps in
   TikTok's official embed.js player (the pin-page construction, not
   embed/v2). Scoped to .costume-card so nothing else moves. */
.costume-card .tt-facade { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; margin: 0 auto 0.35rem; border: 1px solid #274860; border-radius: var(--radius); overflow: hidden; background: #000; }
.costume-card .tt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.costume-card .tt-facade:hover .tt-play, .costume-card .tt-facade:focus-visible .tt-play { background: #ff8c42; }

/* ============ z201: POP HAUNT CULTURE — FIRST TIKTOK ENTRY (Dan, Oct 27) ====
   LoopCuties' "tiny gangster" Nyx clip joins the /pop-haunt-culture
   grid as its first TikTok entry and its new lead card. Facade
   mirrors the z196 Facebook pattern — vertical 9/16, the video's
   own cover frame stored locally as
   static/img/loopcuties_nyx_tiny_gangster.jpg (signed CDN URLs
   expire) under the shared .yt-facade chrome, centered in the grid
   column; on tap the template's handler swaps in TikTok's official
   embed/v2 player (.tt-frame, the fan-art construction — allow
   incl. fullscreen). Scoped to the pop page's classes so nothing
   else moves. */
.yt-facade--tt { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
.yt-facade--tt img { object-fit: cover; }
.tt-frame { width: 100%; max-width: 340px; aspect-ratio: 9 / 16;
  margin: 0 auto; border: 1px solid #274860; border-radius: var(--radius);
  display: block; background: #000; overflow: hidden; }

/* ============ z202: WHAT'S NEW — PUBLIC UPDATE BLOG + HOMEPAGE SLIDE-DOWN BAR (Dan, Oct 27) ====
   Dan: "Update blog public with a slide down bar to keep up with
   every new addition to the site" — /updates is the public logbook
   (Frank announcements from SITE_ANNOUNCEMENTS + new pins straight
   from the entries table, grouped by ET day), and the homepage
   .wn-bar slides that stream's latest slice open under the ticker.
   Azure #8FD8FF + blue glow per the HauntSocial brand treatment;
   body copy stays in the readable house faces. All classes are
   wn-prefixed so nothing else moves. */
.wn-bar { margin: 0 0 0.55rem; background: linear-gradient(90deg, #0b2237, #081826);
  border: 1px solid #274860; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.18); }
.wn-toggle { display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.55rem 0.8rem; background: none; border: 0; color: var(--ink);
  font: inherit; cursor: pointer; text-align: left; }
.wn-toggle-label { font-weight: 800; letter-spacing: 0.02em; color: #8FD8FF;
  text-shadow: 0 0 12px rgba(87, 168, 255, 0.65); white-space: nowrap; }
.wn-toggle-sub { color: var(--muted); font-size: 0.82rem; flex: 1; }
.wn-toggle-chev { color: #8FD8FF; font-size: 1.05rem; line-height: 1;
  transition: transform 0.35s ease; }
.wn-bar.wn-open .wn-toggle-chev { transform: rotate(180deg); }
.wn-panel { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.wn-panel-inner { padding: 0.15rem 0.8rem 0.7rem; border-top: 1px solid #1d3448; }
.wn-mini-list { list-style: none; margin: 0; padding: 0; }
.wn-mini { display: flex; gap: 0.6rem; align-items: center; padding: 0.45rem 0.2rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(39, 72, 96, 0.5); }
.wn-mini-list li:last-child .wn-mini { border-bottom: 0; }
a.wn-mini:hover strong { color: #ffd9a8; }
.wn-mini-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: none; }
.wn-mini-emoji { font-size: 1.5rem; width: 46px; text-align: center; flex: none; }
.wn-mini-main { display: flex; flex-direction: column; min-width: 0; }
.wn-mini-main strong { font-size: 0.92rem; }
.wn-mini-body { color: var(--muted); font-size: 0.8rem; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wn-all { display: inline-block; margin-top: 0.45rem; font-weight: 700; color: #8FD8FF; }
.wn-page { max-width: 760px; margin: 0 auto; }
.wn-kicker { color: #8FD8FF; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.78rem; margin: 0.4rem 0 0;
  text-shadow: 0 0 12px rgba(87, 168, 255, 0.5); }
/* "New" wordmark treatment (Dan, Oct 28, z213): azure #8FD8FF + blue
   glow wherever "New" leads "New on the Map" / the /updates kicker;
   on the kicker it also takes the rail title's Eater display font. */
.wn-new { color: #8FD8FF; text-shadow: 0 0 14px rgba(87, 168, 255, 0.65); }
.wn-kicker-new { font-family: "Eater", cursive; font-weight: 400; font-size: 1.5em; }
.wn-title { margin: 0.2rem 0 0.4rem; font-size: 2rem; }
.wn-title-accent { color: #8FD8FF; text-shadow: 0 0 16px rgba(87, 168, 255, 0.6); }
.wn-intro { color: var(--muted); margin: 0 0 0.6rem; }
.wn-day { margin: 1.4rem 0 0.55rem; font-size: 1.05rem; color: #ffd9a8;
  border-bottom: 1px solid #274860; padding-bottom: 0.3rem; }
.wn-feed { display: flex; flex-direction: column; gap: 0.55rem; }
.wn-card { display: flex; gap: 0.7rem; align-items: center; background: var(--card);
  border: 1px solid #274860; border-radius: var(--radius);
  padding: 0.6rem 0.75rem; color: var(--ink); text-decoration: none; }
a.wn-card:hover { border-color: #57a8ff; box-shadow: 0 0 14px rgba(87, 168, 255, 0.25); }
.wn-card-announce { background: linear-gradient(135deg, #10283e, #16232b); border-color: #3d6a94; }
.wn-card-emoji { font-size: 1.9rem; flex: none; }
.wn-card-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.wn-card-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wn-card-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: #8FD8FF; }
.wn-card-title { font-weight: 800; font-size: 1.02rem; }
.wn-card-body { color: var(--muted); font-size: 0.86rem; }
.wn-card-arrow { color: #8FD8FF; font-size: 1.2rem; flex: none; }
.wn-join { margin: 1.8rem 0 0.6rem; background: linear-gradient(135deg, #0b2237, #101c26);
  border: 1px solid #3d6a94; border-radius: var(--radius); padding: 1rem;
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.15); }
.wn-join-line { margin: 0 0 0.7rem; }
.wn-join-cta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .wn-toggle-sub { display: none; }
  .wn-card-thumb { width: 52px; height: 52px; }
  .wn-card-emoji { font-size: 1.5rem; }
}
/* z205 STRUCTURAL REPAIR (shipped with the What's New rail): the
   z202 block above shipped WITHOUT this closing brace (still
   missing on live z203, verified Oct 28), so the whole z203 chat
   restyle below has been nested inside this max-width:480px query
   and only ever applied at phone widths. This one brace restores
   z203 to all widths. Flagged in the staging report — shipping
   this branch ships the repair too. */

/* ============ z203: HAUNT CHAT — TRADITIONAL CHATROOM RESTYLE (Dan, Oct 27; shipped Oct 28) ====
   Dan: "a real chatroom … where ppl really feel like they're chatting
   not a message board." PRESENTATION ONLY — behavior, data and APIs
   untouched. The room trades forum post-blocks for classic chatroom
   DNA in the HauntSocial azure skin: messages flow as compact lines
   (colored @handle + text on the same line, tiny timestamp, hover
   actions), quick follow-ups from the same haunter group tight with
   no repeated handle/avatar, a WHO'S HERE presence rail sits beside
   the room like an AIM/IRC member list (collapsible strip on phone),
   Frank's pinned welcome becomes the room MOTD bar, and the composer
   pins to the bottom as a one-line input that grows. Handle colors
   are per-haunter (set as --hc from the handle hash by the chat
   scripts; Frank keeps brand azure #8fd8ff). Everything level. */

/* Slimmer page head — the room header band below carries the title. */
.chat-head { margin-bottom: 0.6rem; }
.chat-sub { font-size: 0.92rem; }

/* Room header band: "💬 The Haunt Chat — 🟢 N haunters in the room". */
.chat-roombar { display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 0.7rem; background: var(--card);
  border: 1px solid rgba(143,216,255,.38); border-radius: var(--radius);
  box-shadow: 0 0 26px rgba(87,168,255,.16);
  padding: 0.55rem 0.9rem; margin-bottom: 0.7rem; }
.chat-roombar-title { margin: 0; font-size: 1.45rem; line-height: 1.2;
  color: #8fd8ff; text-shadow: 0 0 14px rgba(87,168,255,.45); }
.chat-roombar .chat-presence-count { font-size: 0.9rem; }
.chat-roombar-actions { margin-left: auto; display: flex;
  align-items: center; gap: 0.5rem; }
.chat-roombar .chat-bell { margin-left: 0; }
.chat-roombar-note { margin-left: auto; color: var(--muted);
  font-size: 0.85rem; }

/* Layout: room column + Who's Here rail (members). */
.chat-wrap:has(> .chat-layout) { max-width: 1140px; }
.chat-layout { display: flex; gap: 0.7rem; align-items: flex-start; }
.chat-main { flex: 1 1 auto; min-width: 0; }
.chat-rail { flex: 0 0 220px; background: var(--card);
  border: 1px solid rgba(143,216,255,.30); border-radius: var(--radius);
  box-shadow: 0 0 26px rgba(87,168,255,.10); padding: 0.6rem 0.55rem;
  position: sticky; top: 0.6rem; }
.chat-rail-head { display: flex; align-items: center; gap: 0.35rem;
  padding: 0 0.3rem 0.45rem; border-bottom: 1px solid rgba(143,216,255,.22);
  margin-bottom: 0.45rem; }
.chat-rail-title { font-weight: 800; color: #8fd8ff; font-size: 0.92rem; }
.chat-rail-n { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.chat-rail-toggle { margin-left: auto; background: none; border: none;
  color: var(--muted); font-size: 0.85rem; cursor: pointer;
  padding: 0.1rem 0.35rem; }
.chat-rail-toggle:hover { color: #8fd8ff; }
.chat-rail-users { display: flex; flex-direction: column; gap: 0.12rem;
  max-height: 46vh; overflow-y: auto; }
.chat-rail .chat-presence-chip { display: flex; width: 100%;
  justify-content: flex-start; background: none;
  border: 1px solid transparent; border-radius: 8px;
  padding: 0.28rem 0.45rem; font-size: 0.86rem; font-weight: 600; }
.chat-rail .chat-presence-chip:hover { background: rgba(143,216,255,.09);
  border-color: rgba(143,216,255,.35); }
.chat-rail .chat-presence-chip .soc-avatar { width: 22px; height: 22px;
  font-size: 0.66rem; }
.chat-rail-dot { margin-left: auto; width: 7px; height: 7px;
  border-radius: 50%; background: #4ade80; flex: 0 0 auto;
  box-shadow: 0 0 6px rgba(74,222,128,.8); }
.chat-rail-hint { margin: 0.5rem 0.3rem 0; font-size: 0.74rem;
  color: var(--muted); line-height: 1.35; }
.chat-rail.collapsed { flex-basis: auto; }
.chat-rail.collapsed .chat-rail-users,
.chat-rail.collapsed .chat-rail-hint { display: none; }
.chat-rail.collapsed .chat-rail-head { border-bottom: none;
  margin-bottom: 0; padding-bottom: 0; }

/* MOTD: Frank's welcome as the room's topic bar, not a post. */
.chat-pin { align-items: center; gap: 0.55rem; padding: 0.5rem 0.85rem; }
.chat-pin .soc-avatar { width: 26px; height: 26px; font-size: 0.8rem;
  border-width: 2px; }
.chat-pin-main { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.05rem 0.45rem; }
.chat-pin .chat-pin-meta { margin: 0; font-size: 0.8rem;
  white-space: nowrap; }
.chat-pin .chat-pin-text { font-size: 0.88rem; line-height: 1.4; }

/* Pinned message: a slim bar across the top of the room. */
.chat-pinned-inner { margin: 0; border: none; border-radius: 0;
  border-bottom: 1px solid rgba(255,209,102,.45);
  padding: 0.45rem 0.85rem; align-items: center; gap: 0.55rem; }
.chat-pinned-inner .soc-avatar { width: 24px; height: 24px;
  font-size: 0.72rem; border-width: 2px; }
.chat-pinned-main { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.05rem 0.45rem; }
.chat-pinned-inner .chat-pin-meta { margin: 0; font-size: 0.78rem;
  white-space: nowrap; }
.chat-pinned-text { font-size: 0.88rem; }

/* Flowing chat lines. */
.chat-msgs { gap: 0; padding: 0.55rem 0.6rem; max-height: 62vh; }
.chat-msg { gap: 0.5rem; padding: 0.16rem 0.35rem; border-radius: 6px; }
.chat-msg:hover { background: rgba(143,216,255,.05); }
.chat-ava { margin-top: 0.12rem; }
.chat-ava .soc-avatar { width: 26px; height: 26px; font-size: 0.8rem;
  border-width: 2px; }
.chat-line { margin: 0; line-height: 1.42; overflow-wrap: anywhere; }
.chat-handle { color: var(--hc, #8fd8ff); }
.chat-time { font-size: 0.68rem; margin-left: 0.15rem; }
.chat-msg { position: relative; }
.chat-actions { position: absolute; top: 0.02rem; right: 0.3rem;
  display: flex; gap: 0.05rem; align-items: center;
  background: var(--card); border: 1px solid rgba(143,216,255,.3);
  border-radius: 999px; padding: 0.05rem 0.35rem;
  opacity: 0; pointer-events: none; }
.chat-msg:hover .chat-actions,
.chat-msg:focus-within .chat-actions { opacity: 1; pointer-events: auto; }
.chat-actions .chat-replybtn, .chat-actions .chat-pinbtn,
.chat-actions .chat-report, .chat-actions .chat-del { opacity: 1; }
.chat-text { margin: 0; white-space: pre-wrap; }
.chat-quote { margin-bottom: 0.15rem; padding: 0.22rem 0.5rem; }
.chat-poll { margin: 0.25rem 0 0.3rem; }
.chat-linkrow { margin: 0.1rem 0 0; }
.chat-reacts { margin-top: 0.12rem; }
.chat-react-add { opacity: 0; }
.chat-msg:hover .chat-react-add,
.chat-msg:focus-within .chat-react-add { opacity: 1; }
.chat-sticker-big { font-size: 2.6rem; }
/* Grouped follow-ups: no repeated handle, time or avatar — the text
   just flows on, IRC-style. */
.chat-msg-cont { padding-top: 0.02rem; }
.chat-msg-cont .chat-ava { visibility: hidden; }
.chat-msg-cont .chat-line .chat-handle,
.chat-msg-cont .chat-line .chat-time { display: none; }

/* Typing line sits right above the composer, like a real chatroom. */
.chat-typingbar { min-height: 1.3rem; padding: 0.3rem 0.25rem 0.05rem; }
.chat-typingbar .chat-typing { min-height: 0; }

/* Composer: pinned under the room, one line that grows. */
.chat-composer { position: sticky; bottom: 0.55rem; z-index: 6;
  margin-top: 0.15rem; padding: 0.6rem 0.7rem 0.5rem; }
.chat-composer-as { color: var(--muted); }
.chat-input { border-radius: 999px; padding: 0.6rem 0.95rem; }
.chat-send { border-radius: 999px; }

@media (hover: none) {
  /* No hover on touch: the action toolbar rides the line inline,
     dimmed, instead of floating. */
  .chat-actions { position: static; opacity: 0.55; pointer-events: auto;
    background: none; border: none; padding: 0; margin-left: 0.25rem; }
  .chat-react-add { opacity: 0.6; }
}
@media (max-width: 900px) {
  /* Rail becomes a collapsible strip above the room. */
  .chat-layout { flex-direction: column; }
  .chat-main { width: 100%; }
  .chat-rail { order: -1; flex: none; width: 100%; position: static;
    box-sizing: border-box; }
  .chat-rail-users { flex-direction: row; flex-wrap: wrap;
    max-height: none; overflow: visible; }
  .chat-rail .chat-presence-chip { width: auto; }
  .chat-rail-dot { display: none; }
}
@media (max-width: 520px) {
  .chat-roombar { padding: 0.5rem 0.7rem; }
  .chat-roombar-title { font-size: 1.2rem; }
  .chat-roombar-note { margin-left: 0; width: 100%; }
  .chat-msgs { max-height: 56vh; padding: 0.5rem 0.4rem; }
  .chat-msg { padding: 0.14rem 0.2rem; }
  .chat-sticker-big { font-size: 2.2rem; }
}

/* ============ z205: WHAT'S NEW LEFT-MARGIN RAIL (Dan, Oct 28) ====
   Dan's seat for the new-listing blog: ON TOP of the @gethauntmap
   TikTok promos in the homepage's left margin column, with its own
   internal scroll through ALL the new adds, organized by kind
   (haunts / events / live / stops / more / site updates — grouping
   in _whatsnew_rail_groups(), app/main.py). Replaces the z202
   slide-down bar on the homepage only; /updates is untouched.
   Seats: >=1200px the rail heads the 252px left column and the
   promos sit directly under it; 1000-1199px (where the promos run
   full-width 3-across) it takes a full-width row above them; in the
   stacked layout it is a full-width block directly under the
   headline. Appended last so its grid-template-areas win over the
   z103/z107-era lists above. */
.hero-split { grid-template-areas: "headline" "whatsnew" "vtstrip" "video" "top10home" "strip" "social" "sponsor" "townreq"; }
/* align-self:start — the rail hugs its content (head + capped scroll
   region + footer) instead of stretching to the headline-spanned
   row height and leaving dead space under the footer. */
.wn-rail { grid-area: whatsnew; align-self: start; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .hero-split { grid-template-areas: "social social social" "whatsnew whatsnew whatsnew" "video video video" "sponsor headline strip" "advstrip headline strip" "townreq headline strip"; }
}
@media (min-width: 1200px) {
  .hero-split { grid-template-areas: "social social social" "whatsnew headline strip" "video headline strip" "sponsor headline strip" "advstrip headline strip" "townreq headline strip"; }
}
.wn-rail { display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, #14222b, #0d0a1a);
  border: 2px solid #402f54; border-radius: 14px;
  box-shadow: 0 0 18px rgba(87, 168, 255, 0.22); }
.wn-rail-head { display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.6rem 0.75rem 0.5rem; text-decoration: none;
  background: linear-gradient(90deg, #0b2237, #081826);
  border-bottom: 1px solid #1d3448; }
.wn-rail-title { font-family: "Eater", cursive; font-weight: 400;
  font-size: 1.3rem; letter-spacing: 0.02em; color: #efe3cc; line-height: 1.15; }
.wn-rail-accent { color: #8FD8FF; text-shadow: 0 0 14px rgba(87, 168, 255, 0.65); }
.wn-rail-sub { color: var(--muted); font-size: 0.74rem; }
.wn-rail-scroll { overflow-y: auto; max-height: 400px; padding: 0 0.55rem 0.4rem;
  scrollbar-width: thin; scrollbar-color: #57a8ff #101c26; }
.wn-rail-scroll::-webkit-scrollbar { width: 8px; }
.wn-rail-scroll::-webkit-scrollbar-thumb { background: #2c5f8f; border-radius: 4px; }
.wn-rail-scroll::-webkit-scrollbar-track { background: #101c26; }
.wn-rail-group { position: sticky; top: 0; z-index: 1; margin: 0 -0.55rem;
  padding: 0.55rem 0.55rem 0.3rem; background: #101c26;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.03em; color: #ffd9a8; }
.wn-rail .wn-mini { padding: 0.4rem 0.1rem; }
.wn-rail .wn-mini-thumb { width: 40px; height: 40px; }
.wn-rail .wn-mini-emoji { width: 40px; font-size: 1.3rem; }
.wn-rail .wn-mini-main strong { font-size: 0.86rem; line-height: 1.25; }
.wn-rail-all { display: block; text-align: center; padding: 0.55rem;
  font-weight: 700; color: #8FD8FF; text-decoration: none;
  background: linear-gradient(90deg, #0b2237, #081826);
  border-top: 1px solid #1d3448; }
.wn-rail-all:hover { color: #ffd9a8; }
@media (max-width: 999px) {
  .wn-rail-scroll { max-height: 320px; }
}

/* ============================================================
   z207 TOP 10 BY STATE MENU (Dan, Oct 28 — shipped): the state
   picker on the
   homepage Top 10 block. Header row (title + pill button), a
   scrollable dropdown panel listing every board in the category,
   and a "↩ Your state" reset row that appears once a different
   state is showing. Panel anchors to the button on laptop; on
   phone it stretches full-width under the block header. Blue
   glow (accent2) like the block's other interactive highlights;
   cards/rows stay straight, no tilt.
   ============================================================ */
.top10-home { position: relative; }
.top10-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.6rem;
}
.top10-head h2 { flex: 1 1 auto; min-width: 0; }
.top10-menu-wrap { position: relative; flex: 0 0 auto; }
.top10-menu-btn {
  appearance: none; cursor: pointer;
  font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink);
  background: rgba(87, 168, 255, 0.12);
  border: 1px solid rgba(87, 168, 255, 0.55); border-radius: 999px;
  padding: 0.4rem 0.7rem; white-space: nowrap;
}
.top10-menu-btn:hover, .top10-menu-btn[aria-expanded="true"] {
  border-color: var(--accent2);
  box-shadow: 0 0 12px rgba(87, 168, 255, 0.35);
}
.top10-menu-caret { color: var(--accent2); font-size: 0.75rem; }
.top10-menu {
  position: absolute; right: 0; top: calc(100% + 0.45rem); z-index: 80;
  width: min(290px, 86vw); max-height: 330px; overflow-y: auto;
  background: linear-gradient(165deg, #16242e, #0d171d);
  border: 1px solid #2b5878; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 18px rgba(87, 168, 255, 0.22);
  padding: 0.35rem;
  scrollbar-width: thin; scrollbar-color: #2b5878 transparent;
}
.top10-menu::-webkit-scrollbar { width: 8px; }
.top10-menu::-webkit-scrollbar-thumb { background: #2b5878; border-radius: 6px; }
.top10-menu::-webkit-scrollbar-track { background: transparent; }
.top10-menu-item, .top10-menu-reset {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  appearance: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  background: transparent; border: 0; border-radius: 8px;
  padding: 0.5rem 0.55rem;
}
.top10-menu-item:hover, .top10-menu-reset:hover { background: rgba(87, 168, 255, 0.13); }
.top10-menu-item.is-active { background: rgba(87, 168, 255, 0.18); }
.top10-menu-item-name { flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top10-menu-you {
  flex: 0 0 auto; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent2);
}
.top10-menu-count { flex: 0 0 auto; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.top10-menu-reset[hidden] { display: none; }
.top10-menu-reset {
  color: var(--accent2); font-weight: 800;
  border-bottom: 1px solid #274860; border-radius: 8px 8px 0 0;
  margin-bottom: 0.3rem;
}
/* Hero-stack (laptop) copy is the compact variant — shrink the
   picker to match its 0.95rem heading scale. */
.hero-stack .top10-menu-btn { font-size: 0.78rem; padding: 0.32rem 0.6rem; }
.hero-stack .top10-menu { max-height: 300px; }
@media (max-width: 760px) {
  /* Phone: the panel stretches full-width under the block header
     instead of anchoring to the right-hand button. */
  .top10-menu-wrap { position: static; }
  .top10-menu { left: 0.6rem; right: 0.6rem; width: auto; max-height: 46vh; }
  .top10-menu-btn { font-size: 0.8rem; padding: 0.38rem 0.6rem; }
}

/* ============ z208: RAIL→PROMOS GAP CLOSE (Dan, Oct 28) ======
   At >=1200px the hero headline spans the whole left column
   (whatsnew..townreq) and is taller than the column's own content,
   so the grid distributes ~136px of its extra height into the
   whatsnew row (measured: row 662px vs the rail's own 526px).
   The rail hugged the row top (align-self:start), leaving ~150px
   of dead space between the rail's bottom edge and the TikTok
   promos below. Fix: at >=1200px the rail stretches to fill its
   row and its scroll region flexes open past the 400px cap (the
   526px min-height floor — the rail's natural capped height —
   keeps its content contribution at full size), so the panel
   shows a few more adds and its bottom edge sits one
   standard row gap (0.9rem, the column's own rhythm) above the
   promos. 1000-1199px measured clean already (14.4px: the
   headline doesn't span those full-width rows); phone stacks
   the VT strip between the two blocks at the same even gap. */
@media (min-width: 1200px) {
  .hero-split .wn-rail { align-self: stretch; min-height: 526px; }
  .hero-split .wn-rail-scroll { flex: 1 1 0; min-height: 0; max-height: none; }
}
/* ============ z209: RAIL NAMING — NEW ON THE MAP (Dan, Oct 28) ==
   Dan picked the blog's names from a 25-option list: the homepage
   rail is titled "New on the Map" with the tagline "Fresh From
   the Crypt" under it, and the /updates page is "The Haunt Log".
   Only new rule here: the tagline takes the rail's azure accent
   (#8FD8FF, same as .wn-rail-accent) so it reads as a tagline
   against the muted helper line it replaced. */
.wn-rail-tagline { color: #8FD8FF; letter-spacing: 0.05em; }
/* ============ z210: MAP BADGE + BLOG IS "FRESH FROM THE CRYPT" (Dan, Oct 28) ==
   Dan's branding tweaks on the z209 naming: the rail header gains
   his map artwork (azure map + pumpkin pin in a glowing ring on
   deep navy, recolored to site colors) as a circular badge centered
   above the title — the art is a ring composition, so a 50% radius
   crop is exact — and the 🆕 glyph leaves the rail title. The blog
   itself is renamed once more: every "The Haunt Log" surface (the
   /updates H1/title/meta, the rail + bar footers, the HauntSocial
   and Join-block blurbs, the admin label) now reads "Fresh From
   the Crypt", and the /updates header carries the same badge
   beside its title so the two surfaces brand as one. */
.wn-rail-head { align-items: center; text-align: center; }
.wn-rail-badge { width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; margin: 0.15rem 0 0.3rem;
  box-shadow: 0 0 16px rgba(87, 168, 255, 0.55), 0 0 3px rgba(87, 168, 255, 0.8); }
.wn-head { display: flex; align-items: center; gap: 0.9rem; }
.wn-head-badge { width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 0 14px rgba(87, 168, 255, 0.5), 0 0 3px rgba(87, 168, 255, 0.75); }
@media (max-width: 999px) {
  .wn-rail-badge { width: 64px; height: 64px; }
}
/* z212 UPDATES FILTERS (Dan, Oct 28, STAGED): the /updates filter
   bar — category pills + a <details> state dropdown + time
   buttons (All Time / Today / Yesterday / This Week), plain links. Pill language follows .town-search-inline / .sort-toggle:
   var(--bg2) fill, #274860 border, 999px radius. The active pill
   takes the What's New azure (#8FD8FF text, #57a8ff border + glow —
   the same treatment as a .wn-card hover), counts ride as chips. */
.wn-filters { margin: 0.9rem 0 0.2rem; }
.wn-frow { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.wn-frow-time { margin-top: 0.45rem; }
.wn-fbtn { display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--bg2); color: var(--ink); text-decoration: none;
  border: 1px solid #274860; border-radius: 999px;
  padding: 0.42rem 0.85rem; font-size: 0.88rem; font-weight: 700;
  white-space: nowrap; cursor: pointer; }
summary.wn-fbtn { list-style: none; }
summary.wn-fbtn::-webkit-details-marker { display: none; }
a.wn-fbtn:hover, summary.wn-fbtn:hover { border-color: #57a8ff; }
.wn-fbtn-on { color: #8FD8FF; border-color: #57a8ff;
  box-shadow: 0 0 12px rgba(87, 168, 255, 0.35); }
.wn-fcount { background: rgba(255, 255, 255, 0.07); color: var(--muted);
  border-radius: 999px; padding: 0.05rem 0.45rem; font-size: 0.72rem;
  font-weight: 800; }
.wn-fbtn-on .wn-fcount { background: rgba(87, 168, 255, 0.16); color: #8FD8FF; }
.wn-sdd { position: relative; }
.wn-sdd-caret { color: #8FD8FF; font-size: 0.75rem; }
.wn-slist { position: absolute; z-index: 30; top: calc(100% + 0.4rem); left: 0;
  min-width: 230px; max-width: 86vw; max-height: 300px; overflow-y: auto;
  background: #101c26; border: 1px solid #3d6a94; border-radius: 12px;
  padding: 0.35rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin; scrollbar-color: #57a8ff #101c26; }
.wn-slist::-webkit-scrollbar { width: 8px; }
.wn-slist::-webkit-scrollbar-thumb { background: #2c5f8f; border-radius: 4px; }
.wn-slist::-webkit-scrollbar-track { background: #101c26; }
.wn-slist a { display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.45rem 0.6rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.wn-slist a:hover { background: rgba(87, 168, 255, 0.12); }
.wn-slist a.wn-son { color: #8FD8FF; background: rgba(87, 168, 255, 0.14); }
.wn-fsummary { color: var(--muted); font-size: 0.88rem; margin: 0.6rem 0 0; }
.wn-fsummary a { color: #8FD8FF; font-weight: 700; text-decoration: none; }
.wn-fsummary a:hover { color: #ffd9a8; }
@media (max-width: 480px) {
  .wn-fbtn { font-size: 0.82rem; padding: 0.38rem 0.7rem; }
  .wn-slist { min-width: 200px; }
}

/* ============ z215: TOP10 PICKER — SCROLL WINDOW + ALL STATES (Dan, Oct 28) ======
   The picker's 46-board state list moves into its own scroll window
   (.top10-menu-list) so the panel itself stays compact: the panel no
   longer scrolls as one tall sheet (the z207 max-height/overflow on
   .top10-menu is lifted — hero-stack and phone overrides included);
   the list scrolls inside a fixed window with the panel's themed
   thin scrollbar. overscroll-behavior: contain keeps an end-of-list
   flick from chaining into page scroll; touch scroll stays native.
   The "🌎 All States" button pins at the panel top (above the
   "↩ Your state" reset), accent-lit like the reset, and loads the
   combined nationwide Top 10 via /api/top10?state=ALL. */
.top10-menu { max-height: none; overflow: visible; }
.hero-stack .top10-menu { max-height: none; }
.top10-menu-list {
  max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #2b5878 transparent;
}
.top10-menu-list::-webkit-scrollbar { width: 8px; }
.top10-menu-list::-webkit-scrollbar-thumb { background: #2b5878; border-radius: 6px; }
.top10-menu-list::-webkit-scrollbar-track { background: transparent; }
.hero-stack .top10-menu-list { max-height: 240px; }
.top10-menu-all {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  appearance: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 0.92rem; font-weight: 800; color: var(--accent2);
  background: rgba(87, 168, 255, 0.10);
  border: 0; border-bottom: 1px solid #274860; border-radius: 8px 8px 0 0;
  padding: 0.5rem 0.55rem; margin-bottom: 0.3rem;
}
.top10-menu-all:hover { background: rgba(87, 168, 255, 0.16); }
.top10-menu-all.is-active { background: rgba(87, 168, 255, 0.22); }
@media (max-width: 760px) {
  .top10-menu { max-height: none; }
  .top10-menu-list { max-height: 38vh; }
}

/* ============ z216: COMBINED COUNTDOWN + PASSPORT BAR & TOUR FUEL SPACING (Dan, Oct 28) ======
   1) The Haunt Passport chip moves INSIDE the Tonight strip (homepage
   .ts-wide variant) at the bar's right end — one combined bar instead
   of the countdown bar plus a standalone Passport line. margin-left:
   auto pins it right at every width; the strip's existing flex-wrap
   lets it drop to its own right-aligned line on phone. At laptop
   widths (>=1200px, where .ts-wide sits at its 1060px breakout) the
   row is locked to a single line: tighter column gap, the (rare)
   town-note is the only shrinkable item. The in-bar chip gets a
   translucent azure tint + brighter border so it still reads as its
   own element against the strip's identical gradient.
   2) Tour Fuel becomes its own headed block: the drip label leaves
   the sub-button row for its own centered line above the buttons,
   and the block gets the longest spacing in the category stack —
   main row -> label 0.4rem -> 0.9rem, buttons -> feed controls
   0.8rem -> 1.5rem (phone: a smaller bump, 0.65rem / 1.1rem). */
.tonight-strip .passport-chip--inbar {
  margin: 0 0 0 auto; flex: 0 0 auto;
  font-size: 0.86rem; padding: 0.36rem 0.75rem;
  background: rgba(87, 168, 255, 0.10); border-color: #5a478a;
}
@media (min-width: 1200px) {
  .tonight-strip.ts-wide { flex-wrap: nowrap; column-gap: 0.75rem; }
  .tonight-strip.ts-wide .ts-note { min-width: 0; }
}
.tour-fuel-label-row { text-align: center; margin-bottom: 0.35rem; }
.cat-tabs-main { margin-bottom: 0.9rem; }
.cat-tabs-sub { margin-bottom: 1.5rem; }
@media (max-width: 480px) {
  .tour-fuel-label-row { margin-bottom: 0.3rem; }
  .cat-tabs-main { margin-bottom: 0.65rem; }
  .cat-tabs-sub { margin-bottom: 1.1rem; }
}

/* ============ z217: /games NAV — SLEEK STRIP BUTTONS (Dan, Oct 28) ======
   The /games category row trades its big oval bubbles (icon + name +
   a paragraph of description) for the homepage VT/TV strip's sleek
   component (.vt-tv-strip a): slim full-round pill, tight padding,
   a circular icon medallion, and the category name split over two
   stacked label lines in the strip's game font — descriptions gone.
   Each category keeps its accent identity as the pill's 2px ring +
   glow and the medallion's ring, via the --gnb custom properties
   (azure base, orange Arcade, Ninjago green, Minecraft green,
   Roblox red — the same colors the bubbles carried). One row of
   seven across at laptop widths (equal flex, nowrap, with a small
   type step-down under 1000px so "THE HALLOWEEN" fits its pill);
   wraps 3-across on small tablets and 2-across on phones. The rules
   lived in games.html's page sheet until now; they move here so the
   component sits next to the strip it mirrors. */
.games-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.25rem 0 1.2rem; }
.games-nav-btn {
  --gnb: var(--accent2); --gnb-glow: rgba(87, 168, 255, 0.35); --gnb-glow-hi: rgba(87, 168, 255, 0.55);
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.3rem 0.25rem; border-radius: 999px;
  background: linear-gradient(180deg, #10222e, #0a161d);
  border: 2px solid var(--gnb); color: var(--ink);
  text-decoration: none; text-align: center;
  box-shadow: 0 0 10px var(--gnb-glow), inset 0 0 8px var(--gnb-glow);
  transition: transform .15s, box-shadow .15s;
}
.games-nav-btn:hover { transform: translateY(-1px); box-shadow: 0 0 16px var(--gnb-glow-hi), inset 0 0 8px var(--gnb-glow); }
.games-nav-btn--arcade { --gnb: var(--accent); --gnb-glow: rgba(255, 123, 28, 0.35); --gnb-glow-hi: rgba(255, 123, 28, 0.55); }
.games-nav-btn--ninjago { --gnb: #57c84c; --gnb-glow: rgba(87, 200, 76, 0.35); --gnb-glow-hi: rgba(87, 200, 76, 0.55); }
.games-nav-btn--minecraft { --gnb: #3ddc3d; --gnb-glow: rgba(61, 220, 61, 0.35); --gnb-glow-hi: rgba(61, 220, 61, 0.55); }
.games-nav-btn--roblox { --gnb: #e2231a; --gnb-glow: rgba(226, 35, 26, 0.35); --gnb-glow-hi: rgba(226, 35, 26, 0.55); }
.games-nav-btn--marvel { --gnb: #e23636; --gnb-glow: rgba(226, 54, 54, 0.35); --gnb-glow-hi: rgba(226, 54, 54, 0.55); }
.games-nav-btn--amongus { --gnb: #38fedc; --gnb-glow: rgba(56, 254, 220, 0.35); --gnb-glow-hi: rgba(56, 254, 220, 0.55); }
.gnb-ic {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); border: 1.5px solid var(--gnb);
  font-size: 0.88rem; line-height: 1;
}
.gnb-label {
  font-family: var(--font-game); text-transform: uppercase; letter-spacing: 0.03em;
  font-weight: 800; font-size: 0.7rem; line-height: 1.18; color: #f9e5c2; min-width: 0;
}
.gnb-l1, .gnb-l2 { display: block; white-space: nowrap; }
@media (min-width: 761px) {
  .games-nav { flex-wrap: nowrap; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .gnb-label { font-size: 0.64rem; }
  .gnb-ic { width: 1.4rem; height: 1.4rem; font-size: 0.8rem; }
}
@media (max-width: 760px) {
  .games-nav-btn { flex: 1 1 30%; }
}
@media (max-width: 520px) {
  .games-nav-btn { flex: 1 1 42%; }
  .gnb-label { font-size: 0.74rem; }
}

/* ============ z219: /games NAV — SPREAD OUT, LONGER + SLEEKER (Dan, Oct 28) ======
   Photo-verified on Dan's laptop: the z217 row rendered cramped in
   the middle of the page — <main class="wrap"> caps the content
   column at 720px, so the seven nowrap pills shared ~688px at ANY
   viewport, gaps were 0.4rem, and "THE HALLOWEEN" (the Arcade
   button's top label line) could not fit its pill. Fix, /games nav
   only (.wrap itself is untouched): at >=761px the row breaks out
   of the 720px column to the hero's breakout width (min(1240px,
   100vw - 2rem), centered), gaps open to 1rem, and the pills get
   taller/longer (padding 0.5rem 0.55rem, medallion 1.6rem, label
   stepped up). One nowrap row only where the longest label truly
   fits (>=1150px, label 0.76rem — measured ~96px of text against
   ~102px of label room at a 1180px viewport); 761-1149px wraps
   4 + 3 at flex 1 1 21% with the label at 0.78rem, where each pill
   is far wider than the one-row share ever was. Phone rules
   (<=760px 3-across, <=520px 2-across, tighter spacing) are the
   z217 ones, unchanged. Hrefs, accent rings, two-line labels and
   the medallion look are all as z217 shipped them. */
@media (min-width: 761px) {
  .games-nav {
    width: min(1240px, calc(100vw - 2rem));
    position: relative; left: 50%; transform: translateX(-50%);
    gap: 1rem;
  }
  .games-nav-btn { padding: 0.5rem 0.55rem; }
  .gnb-ic { width: 1.6rem; height: 1.6rem; font-size: 0.92rem; }
}
@media (min-width: 761px) and (max-width: 1149px) {
  .games-nav { flex-wrap: wrap; }
  .games-nav-btn { flex: 1 1 21%; }
  .gnb-label { font-size: 0.78rem; }
}
@media (min-width: 1150px) {
  .games-nav { flex-wrap: nowrap; }
  .gnb-label { font-size: 0.76rem; }
}

/* ============ z220: TOP10 — HAUNTS SCROLL WINDOW; STATE SIDEBAR REMOVED; SAVED-TOWN HOME STATE (Dan, Oct 28) ======
   Photo correction from Dan: "The scroll down feature was meant
   for the haunts themselves, not the states. The button does that
   just fine." Three parts: (1) the z218 always-visible .top10-side
   state sidebar is GONE — its rules were deleted with this ship
   and _top10_home.html renders no sidebar markup; the board is
   full section width again and the z207/z215 dropdown panel is
   the only state picker. (2) The scroll window moves to the BOARD:
   .top10-home-list now renders ALL TEN haunts (the template's old
   [:5] slice is gone — the server rows and the /api/top10 swaps
   carry the same ten) inside a fixed-height window sized to
   roughly the old five-row footprint, with the panel's themed
   thin scrollbar, overscroll contained and native touch scroll;
   rows keep their full-row <a href="/d/<id>"> in every render
   path. The hero-stack copy's rows are smaller, so its window is
   shorter. (3) No CSS for the saved-town home-state adoption —
   that is JS in _top10_home.html riding the existing load() path. */
.top10-home-list {
  max-height: 12.75rem; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #2b5878 transparent;
  padding-right: 0.3rem;
}
.top10-home-list::-webkit-scrollbar { width: 8px; }
.top10-home-list::-webkit-scrollbar-thumb { background: #2b5878; border-radius: 6px; }
.top10-home-list::-webkit-scrollbar-track { background: transparent; }
.hero-stack .top10-home-list { max-height: 10.9rem; }

/* Halloween Day feature (z222, Dan Oct 31 2026): homepage editorial
   block inside .hero-intro, above the hero stack / HauntSocial. */

/* Nav spacing cleanup (Dan, 2026-11-02 — after the Plus button made
   11 nav buttons): the base row used space-between, which stretched
   unevenly around mixed-width labels, the phone wrap left the last
   button hanging at the left edge, and the scroll mini-bar clipped
   "⭐ Plus / Add Yours" off the right on phones. One rhythm
   everywhere: even spacing, centered wraps, tighter mini-bar. */
.site-header .header-nav { justify-content: space-evenly; gap: 0.55rem 0.7rem; }
@media (max-width: 760px) {
  .site-header .header-nav { justify-content: center; gap: 0.5rem 0.65rem; }
  /* The phone nav is a 6-col grid (events col 120px + 5 button cols).
     Stretch the events col down all three rows so the 11th button
     (About Us) slots in under Watch instead of sitting alone in the
     wide first column on its own row. */
  .site-header.v2 .header-nav .header-events-col { grid-row: 1 / span 3; }
}
@media (max-width: 480px) {
  /* v3 (2026-11-03): Games + Chat join the phone bar (Dan) — nine
     links + wordmark now. Tighten once more (font 0.64 -> 0.58rem,
     gaps down) so all nine fit one line at 360px and 390px. */
  .mini-bar { gap: 0.18rem; padding: 0 0.3rem; }
  .mini-bar .mini-links { gap: 0.16rem; }
  .mini-bar a { font-size: 0.58rem; }
  /* Text-only phone bar (Dan, 2026-11-03): lose the ghost image —
     the "HauntMap" wordmark text carries the brand on its own.
     Per-link icons are already >=1024px-only via .mini-ic. */
  .mini-bar img { display: none; }
}

/* Full mini-bar on wide screens (Dan, 2026-11-03): the scroll bar
   carried only 6 of the 12 header destinations. The extras
   (.mini-x: Events, DIY, DIY Costumes, Top Haunts, About Us)
   join on laptop widths; Games + Chat ride as core links at every
   width (Dan, 2026-11-03) — phones get the tuned nine below. */
.mini-bar .mini-links a.mini-x { display: none; }
/* Events takes Add Yours' end slot on phones (Dan, 2026-11-03):
   Add Yours leaves the mini-bar entirely. The .mini-p Events anchor
   sits after Chat (the bar's last phone slot); on laptop the bar's
   original first-position Events (.mini-x) already shows, so the
   .mini-p copy hides at >=1024px — Events never appears twice. */
@media (min-width: 1024px) {
  .mini-bar .mini-links a.mini-p { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Chat makes 14 laptop items (Dan, 2026-11-03): at 0.8rem the bar
     overflowed 1024px by ~5px and clipped About Us. A small font
     step in the 1024-1279 range restores the even spread; >=1280
     keeps the original size. */
  .mini-bar a { font-size: 0.76rem; }
  .mini-bar { gap: 0.45rem; padding: 0 0.55rem; }
}
@media (min-width: 1024px) {
  .mini-bar .mini-links a.mini-x { display: inline; }
  /* Even spread (Dan, 2026-11-03): on wide screens the links stop
     clustering at the right (margin-left:auto) and distribute
     evenly across the whole bar, from the HauntMap brand to the
     right edge. Phones/tablets keep the tuned right-aligned six. */
  .mini-bar .mini-links { flex: 1; margin-left: 0; justify-content: space-evenly; gap: 0; }
}
/* Per-link icons in the scroll bar (Dan, 2026-11-03): every item gets
   its own symbol like Search and Plus already had. The .mini-ic
   spans render only on wide screens — the phone bar's tuned fit
   (six links, this morning) is deliberately left untouched. */
.mini-bar .mini-ic { display: none; }
@media (min-width: 1024px) {
  .mini-bar .mini-ic { display: inline; }
}
/* Shop in the scroll bar (Dan, 2026-11-03, staged for preview):
   the short "Shop" label (a.mini-shop, no display rules — it rides
   as a core link at every width) fits the 13-item laptop bar
   (31.8px gaps at 1440, 20.4px at 1280, a tight-but-even 2.1px at
   1024, no overflow) and the phone bar at 390px as-is; the <=480px
   compression below is what makes room for it at 360px. Like every
   other bar icon, its .mini-ic cart renders only at >=1024px. */

/* HauntMart homepage banner (Dan, 2026-11-03, staged for preview):
   takes the hero-split "social" grid seat vacated by the demoted
   HauntSocial promo. Glassy dark panel + blue glow, matching the
   re-skinned mini-bar and homepage panels. */
.hero-split > .hm-shop-banner { grid-area: social; margin: 0; min-width: 0; }
.hm-shop-banner { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.4rem 1.5rem; border-radius: 14px; background: linear-gradient(180deg, rgba(10, 30, 36, 0.96), rgba(5, 8, 10, 0.98)); border: 1px solid rgba(143, 216, 255, 0.5); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 12px rgba(87, 168, 255, 0.22); }
.hm-shop-banner-top { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.hm-shop-banner-badge { width: 76px; height: 76px; border-radius: 50%; display: block; }
.hm-shop-banner-copy { flex: 1 1 260px; min-width: 0; }
.hm-shop-banner-title { margin: 0; font-size: 2rem; line-height: 1.12; color: #f9e5c2; }
.hm-shop-banner-sub { margin: 0.35rem 0 0; font-size: 1.05rem; opacity: 0.88; }
.hm-shop-banner-btn { background: #f90; color: #111; font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 0.85rem 1.6rem; border-radius: 999px; white-space: nowrap; }
.hm-shop-banner-btn:hover { filter: brightness(1.1); }
.hm-shop-featured { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.hm-shop-tile { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.6rem; border-radius: 10px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(143, 216, 255, 0.28); text-decoration: none; color: #e8e6e3; min-width: 0; }
.hm-shop-tile:hover { border-color: rgba(255, 153, 0, 0.75); }
.hm-shop-tile img { width: 100%; height: 120px; object-fit: cover; object-position: center top; border-radius: 7px; display: block; }
.hm-shop-tile-name { font-size: 0.86rem; font-weight: 700; line-height: 1.25; }
.hm-shop-tile-price { font-size: 0.92rem; font-weight: 700; color: #f19d45; }
/* HauntMart video tile (Dan, 2026-11-12): the swing jumping lights
   lead the featured row as a tap-to-play TikTok facade — the cover
   frame sits in the tile like a product photo; a tap swaps in
   TikTok's official embed (see the script under the mart block in
   index.html). The /shop gear card reuses .hm-shop-video-frame. */
.hm-shop-tile--video { font: inherit; text-align: left; cursor: pointer; }
.hm-shop-media { position: relative; display: block; }
.hm-shop-tile--video .yt-play { width: 44px; height: 44px; line-height: 44px; font-size: 1.05rem; }
.hm-shop-tile--video:hover .yt-play { background: #ff8c42; }
.hm-shop-tile-watch { font-size: 0.86rem; font-weight: 700; color: #8fd8ff; }
.hm-shop-video-frame { width: 100%; aspect-ratio: 9 / 16; border: 1px solid rgba(143, 216, 255, 0.28); border-radius: 10px; background: #000; display: block; }
@media (max-width: 640px) {
  .hm-shop-banner { padding: 1.05rem 0.95rem; gap: 0.9rem; }
  .hm-shop-banner-top { gap: 0.8rem; }
  .hm-shop-banner-badge { width: 56px; height: 56px; }
  .hm-shop-banner-title { font-size: 1.5rem; }
  .hm-shop-banner-sub { font-size: 0.95rem; }
  .hm-shop-banner-btn { flex: 1 1 100%; text-align: center; }
  .hm-shop-featured { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .hm-shop-tile img { height: 100px; }
  .hm-shop-tile-name { font-size: 0.8rem; }
}

/* Header-nav wrap cleanup (Dan, 2026-11-03): with Shop added, the
   buttons row wraps below ~1240px and space-between pinned the
   short last row's buttons to opposite edges (ADD YOURS far left,
   ABOUT US far right at 1024px; same stretch on phones). In the
   wrap regime only: center the rows and use one even gap. The
   single-row desktop layout (>=1280px, already even) is untouched,
   as is the nowrap small-icon variant (centering a row that fits
   is a no-op there). */
@media (max-width: 1240px) {
  .site-header.v2 .header-nav { justify-content: center; gap: 0.55rem 1.05rem; }
}

/* ============ Phone header buttons: clean 4-across x 3 rows (Dan, 2026-11-03 — STAGED for preview, NOT shipped) ============
   Dan: "clean up the buttons on the iPhone — 4 across and three rows
   down, clean and neat." The phone-portrait nav grid (z64 seat, line
   ~2389) ran auto + repeat(5, 1fr): the 12 buttons flowed 5 / 5 / 2,
   leaving Add Yours + About Us ragged on their own row. Same grid,
   same events column in its left seat (already stretched over all
   three rows by the Nov 2 cleanup), one change: the button tracks
   drop to repeat(4, 1fr) so the twelve buttons land exactly
   4 x 3 — Watch Map Nearby Tours / Plus Shop DIY DIY Costumes /
   Games Top Haunts Add Yours About Us — equal 1fr columns, no
   ragged row. grid-auto-rows: 1fr evens the three row heights
   (two-line labels like DIY COSTUMES no longer make their row
   taller than the others). Scoped to the same phone-portrait query
   as the grid itself: desktop/laptop and landscape are untouched.
   Appended last so it wins the cascade over the z64 template at
   equal specificity. */
@media (max-width: 760px) and (orientation: portrait) {
  .site-header.v2 .header-nav {
    grid-template-columns: auto repeat(4, 1fr);
    grid-auto-rows: 1fr;
  }
}

/* ============ Laptop header buttons: ONE row in the 761-1240 band (Dan, 2026-11-03 — STAGED for preview, NOT shipped) ============
   Dan: "button spacing menu at top bar on laptop view is still messy,"
   then, on the 6+6 two-row staging: "can we fit them all in one row
   at the top?" Measured on production (z241): at >=1241px the v2
   header nav is already a single even row (gaps 33.2px @1440), but
   in the 761-1240px band the wrapping flex row dangles — 11+2 at
   1024px, 12+1 at 1150px. The band's natural content is ~1203px wide
   at a 1024px viewport (events column 166.7px + 12 label-driven
   buttons 834.2px + gaps), ~211px more than the 992px nav, and the
   overflow is almost all label width: the four two-word labels run
   86-122px on one line at the band's 0.91rem.
   Fix, scoped to the band only (and to normal-height windows, so the
   compact-landscape slim row keeps its own rules): the nav stays
   flex but stops wrapping; the 12 buttons take equal flex shares
   (flex: 1 1 0, min-width: 0) behind the events column's natural
   seat, with a uniform 0.3rem gap — equal widths + fixed gap is what
   makes the spacing provably even. Labels drop one step (0.91rem ->
   0.72rem), may wrap, and center, so "DIY Costumes" / "Top Haunts" /
   "Add Yours" / "About Us" stack as two tidy lines under their icon
   instead of forcing the row wide; the widest single word left,
   COSTUMES, measures ~61px against a 64px button at 1024px. Icons
   hold at 34px (band already renders 35px). >=1241px is outside the
   query and pixel-untouched; <=760px (phone 4x3 grid, text-only
   mini-bar) likewise; the scroll mini-bar measured even at laptop
   widths and is deliberately not touched. */
@media (min-width: 761px) and (max-width: 1240px) and (min-height: 501px) {
  .site-header.v2 .header-nav { flex-wrap: nowrap; gap: 0.3rem; }
  .site-header.v2 .header-nav a.navbtn { flex: 1 1 0; min-width: 0; }
  .site-header.v2 .header-nav a.navbtn img { width: 34px; height: 34px; }
  .site-header.v2 .header-nav a.navbtn span {
    white-space: normal; text-align: center;
    font-size: 0.72rem; line-height: 1.15;
  }
}

/* ============ Laptop header buttons: EQUAL COLUMNS at every width >=761px (Dan, 2026-11-03) ============
   Dan's photo of his MacBook Air after the band fix above shipped:
   "Buttons at top still not cleanly spaced." He was right — the band
   fix stopped at 1240px, and above it the nav fell back to natural
   button widths with space-between: the GAPS between buttons were
   even, but the buttons themselves run 42-118px wide (Map/DIY vs
   DIY Costumes), so the icon CENTERS land on an uneven rhythm.
   Measured on the live layout (z242 code): center-to-center deltas
   @1280 run 65.7px (Shop->DIY) to 118.1px (Top Haunts->Add Yours),
   @1440 79.0px to 131.4px — a 52.4px spread at both widths.
   Fix: the band's equal-share rule now covers every laptop width —
   the media query below drops the 1240px cap, so at >=1241px the 12
   buttons also take flex: 1 1 0 behind the events column's natural
   seat with the same uniform 0.3rem gap, and center-to-center
   spacing becomes (column width + gap) everywhere by construction.
   Wide widths keep z151's sizes (36px discs / 0.93rem labels): the
   34px / 0.72rem step-down stays scoped to the 761-1240 band in the
   block above. Labels may wrap and center at wide widths too, so
   "DIY Costumes" / "Top Haunts" / "Add Yours" / "About Us" stack as
   two tidy lines inside their ~84px columns at 1280 instead of
   forcing the row wide. Buttons take align-self: flex-start so a
   two-line label grows DOWNWARD from the shared top edge and every
   icon stays on one horizontal line (with the nav's align-items:
   center, the taller buttons would otherwise ride up and stagger
   the icon row); the events column keeps its own centered seat.
   Scoping unchanged otherwise: normal-height windows only (the
   compact-landscape slim row keeps its own rules) and <=760px
   (phone 4x3 grid, text-only mini-bar) is untouched. */
@media (min-width: 761px) and (min-height: 501px) {
  .site-header.v2 .header-nav { flex-wrap: nowrap; gap: 0.3rem; }
  .site-header.v2 .header-nav a.navbtn { flex: 1 1 0; min-width: 0; align-self: flex-start; }
  .site-header.v2 .header-nav a.navbtn span {
    white-space: normal; text-align: center; line-height: 1.15;
  }
}

/* "Stay near this haunt" — Stay22 hotels map (staged Nov 5, 2026).
   SHIP NOTE: when this ships, the style.css ?v= tag in
   templates/base.html MUST be bumped in the same commit — the service
   worker serves CSS cache-first keyed by the full URL. Card treatment
   mirrors .engage-next / the shared card glow group above. */
.stay-near { margin: 1.4rem 0; padding: 1rem; border-radius: 14px;
  background: linear-gradient(165deg, rgba(64, 47, 84, 0.42), rgba(16, 37, 45, 0.58));
  border: 1px solid rgba(143, 216, 255, 0.50);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(249, 229, 194, 0.10), inset 0 0 18px rgba(87, 168, 255, 0.07), 0 0 22px rgba(87, 168, 255, 0.20); }
.stay-near h2 { margin: 0 0 0.3rem; }
.stay-near-sub { color: #c9bce8; margin: 0 0 0.7rem; font-size: 0.92rem; line-height: 1.4; }
.stay-near-frame { display: block; width: 100%; height: 380px; border: none; border-radius: 10px; background: #0d0a1a; }
.stay-near-note { color: #8f86ad; font-size: 0.78rem; margin: 0.55rem 0 0; }
@media (max-width: 640px) { .stay-near-frame { height: 240px; } }
