/* MerryQuest "Midnight" skin — Railway-feel variant (Dan, Nov 18,
   2026: fifth reference pick, railway.app — "really love the
   design"). Loaded INSTEAD of merryquest.css when the preview asks
   for ?vibe=rail; scoped to body.brand-merryquest.

   The Railway translation: a near-black world with a green tint,
   GLASS panels (white at 3-4% over the dark, 1px borders at 8%),
   tight Inter typography with letterspaced micro-labels, one
   gradient accent (compass gold #FFC82C running to ember) in the
   primary seat — Railway's purple gradient, re-cast in brand
   colors — and glow used sparingly, like a status light. Sleek
   and premium where Quest Mode is chunky and playful. */

/* Russo One, self-hosted (Dan, Nov 19, 2026): the Google Fonts route
   proved unreliable for this family; the woff2 is the latin subset,
   same pattern as the splash's self-hosted Luckiest Guy. */
@font-face {
  font-family: "Russo One";
  src: url("/static/fonts/russo-one-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("/static/fonts/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

body.brand-merryquest {
  --bg: #090d0b;
  --bg2: #070a08;
  --card: rgba(255, 255, 255, 0.03);
  --ink: #edecea;
  --muted: #9ba79d;
  --accent: #ffc82c;
  --accent2: #ffc82c;
  --danger: #ff6b5e;
  --mq-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mq-line: rgba(255, 255, 255, 0.08);
  --mq-grad: linear-gradient(92deg, #ffc82c 0%, #ff9a3d 55%, #ff6b5e 100%);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(255, 154, 61, 0.10) 0%, rgba(9, 13, 11, 0) 55%),
    radial-gradient(1000px 560px at 8% -12%, rgba(255, 200, 44, 0.09) 0%, rgba(9, 13, 11, 0) 58%),
    #090d0b;
  color: var(--ink);
  font-family: var(--mq-sans);
}
body.brand-merryquest::before { display: none; }
body.brand-merryquest .spooky-side { display: none; }
body.brand-merryquest .tt-follow-vert { display: none; }

/* ---------- Header: glass bar ---------- */
body.brand-merryquest .site-header {
  background: rgba(9, 13, 11, 0.82);
  border-bottom: 1px solid var(--mq-line);
  box-shadow: none;
  backdrop-filter: blur(14px);
}
body.brand-merryquest .mini-bar {
  background: rgba(9, 13, 11, 0.9);
  border-bottom: 1px solid var(--mq-line);
  box-shadow: none;
}
body.brand-merryquest .mini-bar a { color: var(--ink); }
body.brand-merryquest .header-frank { display: none; }
body.brand-merryquest .brand-pip {
  height: 38px; width: 38px; flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 200, 44, 0.55));
}
body.brand-merryquest .brand-wordmark {
  font-family: var(--mq-sans);
  font-weight: 700; font-size: 24px; letter-spacing: -0.02em;
  color: #ffffff; margin-left: 8px; white-space: nowrap;
}
body.brand-merryquest .brand-wordmark .bw-alt {
  background: var(--mq-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (max-width: 760px) {
  body.brand-merryquest .brand-pip { height: 32px; width: 32px; }
  body.brand-merryquest .brand-wordmark { font-size: 20px; }
  body.brand-merryquest .header-hook { display: none; }
}

/* Hook line: colors live on .hook-line itself (AGENTS.md rule) */
body.brand-merryquest .header-hook {
  font-family: var(--mq-sans); font-size: 13px; text-shadow: none;
}
body.brand-merryquest .hook-line { color: var(--muted); }
body.brand-merryquest .hook-line .hook-dot { color: #ffc82c; }
body.brand-merryquest .header-hook .tag-c { color: #edecea; font-weight: 600; }
body.brand-merryquest .header-hook .tag-d { color: #edecea; font-weight: 600; }
body.brand-merryquest .header-hook .hook-l2 { font-size: inherit; }

body.brand-merryquest .header-nav .navbtn img { display: none; }
body.brand-merryquest .header-nav .navbtn {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: #c8d2c9;
}
body.brand-merryquest .site-header.v2 .header-nav a.events-link img.events-gif,
body.brand-merryquest .site-header.v2 .header-nav a.navbtn-events img.events-gif { display: none; }
body.brand-merryquest .events-daily,
body.brand-merryquest .events-closer { font-family: var(--mq-sans); text-shadow: none; }
body.brand-merryquest .nh-red { color: #ffc82c; }
body.brand-merryquest .nh-daily { color: #edecea; }
body.brand-merryquest .ec-a { color: #edecea; }
body.brand-merryquest .ec-b { color: #ffc82c; }

/* Join: the one gradient button */
body.brand-merryquest .nav-join {
  background: var(--mq-grad); border: none; border-radius: 999px;
  box-shadow: 0 4px 20px rgba(255, 154, 61, 0.35);
}
body.brand-merryquest .nav-join-label,
body.brand-merryquest .nav-join .hs-brand {
  color: #1a1206; font-weight: 700; text-shadow: none; letter-spacing: 0.02em;
}
body.brand-merryquest .nav-join-tag { display: none; }

/* Module pills: glass chips */
body.brand-merryquest .vt-tv-strip { background: transparent; box-shadow: none; }
body.brand-merryquest .vt-tv-strip .vt-btn,
body.brand-merryquest .vt-tv-strip .tv-btn,
body.brand-merryquest .vt-tv-strip .music-btn,
body.brand-merryquest .vt-tv-strip .movies-btn,
body.brand-merryquest .vt-tv-strip .art-btn,
body.brand-merryquest .vt-tv-strip .pop-btn,
body.brand-merryquest .vt-tv-strip .makeup-btn,
body.brand-merryquest .vt-tv-strip .markets-btn,
body.brand-merryquest .vt-tv-strip .top100-btn {
  background: rgba(255, 255, 255, 0.04); background-image: none;
  border: 1px solid var(--mq-line); border-radius: 10px;
  box-shadow: none; color: #edecea;
}
body.brand-merryquest .vt-tv-strip .vt-btn {
  background: rgba(255, 200, 44, 0.13); border-color: rgba(255, 200, 44, 0.45);
}
body.brand-merryquest .vt-tv-strip .vt-l1,
body.brand-merryquest .vt-tv-strip .vt-l2 {
  color: inherit; text-shadow: none;
  font-family: var(--mq-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.05em;
}

/* Ticker: glass feed strip */
body.brand-merryquest .daily-band {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--mq-line);
  border-radius: 12px; box-shadow: none;
}
body.brand-merryquest .daily-band-head,
body.brand-merryquest .daily-band-title,
body.brand-merryquest .daily-band-links,
body.brand-merryquest .daily-mini {
  background: transparent; color: #c8d2c9; text-shadow: none;
}
body.brand-merryquest .daily-band a { color: #ffc82c; }

/* ---------- Hero: tight, bright, gradient accent ---------- */
body.brand-merryquest .hero-intro {
  background: transparent; border: none; box-shadow: none;
  padding: 52px 8px 8px;
}
body.brand-merryquest .hero-intro h1.hero-title {
  font-family: var(--mq-sans);
  font-weight: 650;
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.06; letter-spacing: -0.025em;
  color: #ffffff; text-shadow: none; max-width: 12em;
}
body.brand-merryquest .hero-title-alt {
  background: var(--mq-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
body.brand-merryquest .hero-intro p { color: var(--muted); text-shadow: none; }
body.brand-merryquest .fd-prop { font-size: 15px; color: #c8d2c9; margin-top: 16px; }

/* Front-door rail: glass cards */
body.brand-merryquest .fd-rail-head {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
body.brand-merryquest .fd-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--mq-line);
  border-radius: 12px; box-shadow: none; overflow: hidden;
}
body.brand-merryquest .fd-card-title { font-weight: 600; font-size: 15.5px; color: #ffffff; }
body.brand-merryquest .fd-card-meta { font-size: 12.5px; color: var(--muted); }
body.brand-merryquest .fd-badge {
  background: rgba(9, 13, 11, 0.85); color: #ffc82c;
  border: 1px solid rgba(255, 200, 44, 0.5); border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; box-shadow: none; text-shadow: none;
}

/* Find block: glass panel, gradient search */
body.brand-merryquest .hm-find {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--mq-line);
  border-radius: 14px; box-shadow: none;
}
body.brand-merryquest .hm-find-text { color: #c8d2c9; }
body.brand-merryquest .hm-find-form input {
  background: rgba(255, 255, 255, 0.05); color: #ffffff;
  border: 1px solid var(--mq-line); border-radius: 10px;
  font-family: var(--mq-sans); font-size: 14px;
}
body.brand-merryquest .hm-find-form input::placeholder { color: #77857a; }
body.brand-merryquest .btn {
  background: var(--mq-grad); color: #1a1206; border: none; border-radius: 10px;
  font-weight: 700; font-size: 14px; box-shadow: 0 4px 18px rgba(255, 154, 61, 0.30);
  text-shadow: none;
}
body.brand-merryquest .hm-find-btn {
  background: rgba(255, 255, 255, 0.05); color: #edecea;
  border: 1px solid var(--mq-line); border-radius: 10px;
  font-weight: 600; font-size: 13.5px; box-shadow: none; text-shadow: none;
}

/* ---------- Sections + cards ---------- */
body.brand-merryquest h2 {
  font-family: var(--mq-sans); font-weight: 650;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em;
  color: #ffffff; text-shadow: none; text-transform: none;
}
body.brand-merryquest .card,
body.brand-merryquest .tonight-card,
body.brand-merryquest .bk-home-card,
body.brand-merryquest .sponsor-card,
body.brand-merryquest .hm-prompt,
body.brand-merryquest .engage-next,
body.brand-merryquest .hon-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--mq-line);
  border-radius: 12px; box-shadow: none;
}
body.brand-merryquest .card-body h3,
body.brand-merryquest .bk-home-title { font-weight: 600; color: #ffffff; }
body.brand-merryquest .filter-chip {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--mq-line);
  color: #c8d2c9; border-radius: 999px; box-shadow: none; font-weight: 600;
}
body.brand-merryquest .filter-chip.active {
  background: rgba(255, 200, 44, 0.15); color: #ffc82c; border-color: rgba(255, 200, 44, 0.5);
}
body.brand-merryquest .cat-tabs a {
  background: transparent; border: none; box-shadow: none;
  color: var(--muted); border-radius: 999px; font-weight: 600;
}
body.brand-merryquest .cat-tabs a.active {
  background: rgba(255, 200, 44, 0.15); color: #ffc82c;
  box-shadow: none; font-weight: 700;
}

/* What's-new rail: glass list */
body.brand-merryquest .wn-rail {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--mq-line);
  border-radius: 12px; box-shadow: none;
}
body.brand-merryquest .wn-rail-head {
  background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--mq-line);
}
body.brand-merryquest .wn-rail-badge { display: none; }
body.brand-merryquest .wn-rail-title { font-family: var(--mq-sans); font-weight: 650; color: #ffffff; }
body.brand-merryquest .wn-rail-accent {
  background: var(--mq-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none;
}
body.brand-merryquest .wn-rail-sub { color: var(--muted); }
body.brand-merryquest .wn-rail-group {
  background: rgba(255, 255, 255, 0.03); color: #ffc82c;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
body.brand-merryquest .wn-rail a { color: #edecea; }
body.brand-merryquest .wn-rail-scroll { scrollbar-color: rgba(255, 200, 44, 0.5) transparent; }

/* Shop + tour: glass panels, gradient title on the shop */
body.brand-merryquest .hm-shop-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 200, 44, 0.28);
  box-shadow: none; border-radius: 14px;
}
body.brand-merryquest .hm-shop-banner-title {
  font-weight: 700; letter-spacing: -0.01em;
  background: var(--mq-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
body.brand-merryquest .hm-shop-banner-copy p,
body.brand-merryquest .hm-shop-banner-sub { color: #c8d2c9; }
body.brand-merryquest .hm-shop-banner-btn {
  background: var(--mq-grad); color: #1a1206; border: none; border-radius: 10px;
  font-weight: 700; box-shadow: 0 4px 18px rgba(255, 154, 61, 0.30);
}
body.brand-merryquest .hm-shop-tile {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--mq-line);
  border-radius: 10px; box-shadow: none;
}
body.brand-merryquest .hm-shop-tile-name { color: #ffffff; font-weight: 600; }
body.brand-merryquest .hm-shop-tile-price { color: #ffc82c; font-weight: 700; }
body.brand-merryquest .hm-shop-tile-watch { color: #c8d2c9; }
body.brand-merryquest .auto-tour-home {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 200, 44, 0.28);
  box-shadow: none; border-radius: 14px;
}
body.brand-merryquest .auto-tour-home h2 { color: #ffffff; }
body.brand-merryquest .auto-tour-sub { color: #c8d2c9; }
body.brand-merryquest .auto-tour-btn {
  background: rgba(255, 200, 44, 0.12);
  border: 1px solid rgba(255, 200, 44, 0.5); color: #ffffff; border-radius: 10px;
}
body.brand-merryquest .auto-tour-btn-sub { color: #9ba79d; }
body.brand-merryquest .hero-intro .auto-tour-home p { color: #c8d2c9; }
body.brand-merryquest .hero-intro .auto-tour-home .auto-tour-btn-title { color: #ffffff; }

/* Radio chip: glass with a gold status dot feel */
body.brand-merryquest .hmr-chip {
  background: rgba(16, 22, 18, 0.92); border: 1px solid rgba(255, 200, 44, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
body.brand-merryquest .hmr-name { color: #ffffff; font-weight: 600; }

/* ---------- Santa's Sack: a sleek collection dashboard ---------- */
body.brand-merryquest .sack-wrap { max-width: 960px; margin: 0 auto; padding: 44px 16px 64px; }
body.brand-merryquest .sack-title {
  font-family: var(--mq-sans); font-weight: 700; letter-spacing: -0.02em;
  color: #ffffff; font-size: clamp(32px, 4.6vw, 46px); margin: 0 0 6px;
}
body.brand-merryquest .sack-sub { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
body.brand-merryquest .sack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
body.brand-merryquest .sack-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--mq-line);
  border-radius: 12px; padding: 18px 10px 14px; text-align: center;
  box-shadow: none;
}
body.brand-merryquest .sack-card-star {
  font-size: 1.5rem; line-height: 1; color: #ffc82c;
  text-shadow: 0 0 12px rgba(255, 200, 44, 0.65);
}
body.brand-merryquest .sack-card-name { font-weight: 600; font-size: 15.5px; color: #ffffff; margin-top: 8px; }
body.brand-merryquest .sack-card-tier {
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-size: 0.66rem; font-weight: 700;
}
body.brand-merryquest .sack-card-count {
  display: inline-block; margin-top: 7px;
  background: rgba(255, 200, 44, 0.15); color: #ffc82c;
  border: 1px solid rgba(255, 200, 44, 0.45);
  border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: 0.82rem;
}
body.brand-merryquest .sack-card.sack-tier-legendary {
  border-color: rgba(255, 200, 44, 0.65);
  box-shadow: 0 0 22px rgba(255, 170, 50, 0.25);
}
body.brand-merryquest .sack-card.sack-tier-epic { border-color: rgba(255, 107, 94, 0.55); }
body.brand-merryquest .sack-card.sack-tier-rare { border-color: rgba(255, 200, 44, 0.35); }
body.brand-merryquest .sack-empty {
  background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 200, 44, 0.4);
  border-radius: 14px; padding: 34px 20px; text-align: center;
}
body.brand-merryquest .sack-empty-big { font-size: 1.4rem; font-weight: 650; color: #ffffff; margin: 0 0 8px; }
body.brand-merryquest .sack-empty p { color: var(--muted); }
body.brand-merryquest .sack-empty-btn {
  display: inline-block; margin-top: 12px; background: var(--mq-grad);
  color: #1a1206; border: none; font-weight: 700;
  text-decoration: none; border-radius: 10px; padding: 11px 24px; font-size: 14.5px;
}
body.brand-merryquest .sack-cast-title { font-weight: 650; color: #ffffff; margin: 40px 0 4px; }
body.brand-merryquest .sack-cast-note { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
body.brand-merryquest .sack-cast { display: flex; flex-wrap: wrap; gap: 8px; }
body.brand-merryquest .sack-cast-chip {
  border: 1px solid var(--mq-line); color: #77857a;
  border-radius: 999px; padding: 4px 13px; font-weight: 600; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
}
body.brand-merryquest .sack-cast-chip.got {
  border-color: rgba(255, 200, 44, 0.55); color: #ffffff;
  background: rgba(255, 200, 44, 0.12);
}

/* =====================================================================
   MQX — the new MerryQuest layout (Dan, Nov 18, 2026): Railway's
   skeleton, a GTA-launch-campaign hero, Pokémon GO's elements,
   Airbnb's card discipline, futuristic gaming execution. This layer
   styles templates/index_merryquest.html + the slim MQ header in
   base.html. It does not touch HauntMap's classes.
   ===================================================================== */
body.brand-merryquest .mini-bar,
body.brand-merryquest .mini-links { display: none; }
body.brand-merryquest {
  --mqx-grad: linear-gradient(92deg, #ffc82c, #eb7a2c 55%, #d32f2f);
  --mqx-glass: rgba(255, 255, 255, 0.04);
  --mqx-line: rgba(255, 255, 255, 0.10);
  --mqx-display: "Anton", "Inter", system-ui, sans-serif;
}

/* ---------- Slim header (Railway nav) ---------- */
/* Luckiest Guy is self-hosted (Nov 18, 2026): the poster display
   font must not depend on a Google Fonts round-trip. */
@font-face {
  font-family: "Luckiest Guy";
  src: url("/static/fonts/luckiest-guy-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
.mqx-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 10, 8, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mqx-line);
}
.mqx-header-in {
  max-width: none; margin: 0; padding: 12px 28px;
  display: flex; align-items: center; gap: 28px;
}
/* Epic Glow lockup in the header (Dan, Nov 25, 2026): the full
   poster art replaces the wide chrome wordmark, so the slot runs
   taller than the old 34px strip to keep the lockup legible. */
.mqx-brand-logo { height: 52px; width: auto; display: block; }
/* Header wordmark alone (Dan, Nov 25, 2026): the neon MERRYQUEST
   wordmark keyed from Dan's render replaces the full lockup in the
   top-left — the lockup turned to mush at bar height; the wordmark
   reads. Bar height held by the .mqx-brand min-height (52/40px,
   the old lockup's heights) with the wordmark centered inside. */
/* Header wordmark sizing (Dan, 2026-11-26): the header now uses
   merryquest-wordmark-header.webp — the same art cropped to its
   alpha bounds (851x243 of the 1001x559 original; letterforms
   untouched, only transparent padding removed). The old file's
   letters filled just 243/559 of its height, so the old 34px slot
   rendered ~52x15px letters. With the tight crop the slot height
   IS the letter height, and Dan asked for the logo bigger on the
   website view too, not just the phone: 30px here renders
   ~105x30px letters, about 2x the old desktop size, still inside
   the 52px brand min-height so the bar keeps its height. */
/* Header wordmark +40% (Dan, 2026-11-26): 30px -> 42px slot
   (~105px -> ~147px wide). Still inside the 52px brand min-height,
   so the desktop bar keeps its height. Companion guard: at
   1024-~1070px the wider wordmark squeezes the actions row and the
   Log in / Join free labels wrap to two lines (bar grows ~10px);
   nowrap keeps them at their designed one-line size — no element
   changes size, and Santa's Sack stays one line at every width. */
/* Header wordmark +40% on laptop/desktop (Dan, 2026-11-29):
   42px -> 58.8px slot (~124px wide). LAPTOP ONLY — the phone
   rule in the max-width:760px block below still sets 42px, so
   the phone header is unchanged. The desktop bar grows ~17px:
   the 52px brand min-height no longer caps it. */
.mqx-brand-wordmark { height: 58.8px; width: auto; display: block; }
.mqx-header .mqx-login, .mqx-header .mqx-join { white-space: nowrap; }
.mqx-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-height: 52px; }
.mqx-brand .brand-pip { height: 34px; width: 34px; }
.mqx-wordmark {
  font-family: var(--mq-sans, "Inter", system-ui, sans-serif);
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: #f2f5f1;
}
.mqx-wordmark b { color: #ffc82c; font-weight: 800; }
.mqx-nav { display: flex; flex: 1; justify-content: center; align-items: center; gap: clamp(38px, 5vw, 76px); margin-left: 6px; }
@media (min-width: 1080px) {
  .mqx-header-in { position: relative; }
  .mqx-nav { position: absolute; left: 50%; transform: translateX(-50%); flex: none; margin-left: 0; }
}
.mqx-nav a {
  color: #a9b8ac; text-decoration: none; font-size: 12.6px; font-weight: 600;
}
.mqx-nav a:hover { color: #ffffff; }
.mqx-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* Log in / Join free -20% (Dan, 2026-11-29): font and padding
   scaled 0.8x — 14px -> 11.2px, 9px 18px -> 7.2px 14.4px. */
.mqx-login {
  color: #ffffff; text-decoration: none; font-size: 11.2px; font-weight: 700;
  padding: 7.2px 14.4px; border-radius: 999px; border: 1px solid rgba(223, 231, 222, 0.38);
}
.mqx-join {
  background: var(--mqx-grad); color: #131313; text-decoration: none;
  font-size: 11.2px; font-weight: 800; padding: 7.2px 14.4px; border-radius: 999px;
  box-shadow: 0 4px 22px rgba(235, 122, 44, 0.35);
}
@media (max-width: 760px) {
  .mqx-header-in { gap: 14px; padding: 10px 14px; flex-wrap: wrap; }
  /* Phone: Join free first, Log in to its right, same size. */
  .mqx-actions { gap: 8px; }
  .mqx-join { order: 1; }
  .mqx-login { order: 2; }
  .mqx-nav { order: 3; width: 100%; flex: none; gap: 8px; justify-content: space-between; overflow-x: visible; padding: 2px 2px; margin-left: 0; }
  .mqx-nav a { white-space: nowrap; font-size: 12.15px; }
  .mqx-wordmark { font-size: 19px; }
  .mqx-brand-logo { height: 40px; }
  /* Phone logo (Dan, 2026-11-26): with the tight-cropped header
     wordmark the letters take the full slot — 30px letters here vs
     ~12px before (28px slot x 243/559 art fill). Still inside the
     40px brand min-height, so the header keeps its height and the
     nav row below is untouched. */
  /* Phone wordmark +40% too (Dan, 2026-11-26): 42px slot; it passes
     the 40px brand min-height, so the phone brand row grows ~2px. */
  .mqx-brand-wordmark { height: 42px; }
  .mqx-brand { min-height: 40px; }
}

/* ---------- Page frame ---------- */
.mqx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 72px; }
@media (max-width: 760px) { .mqx-wrap { padding: 0 14px 56px; } }
body.brand-merryquest { overflow-x: clip; }
/* Full-bleed cinematic sections (Nov 18, 2026): big pictures edge to
   edge, section to section, UNKJD-style. */
.mqx-bleed {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  border-radius: 0; border-left: 0; border-right: 0;
}
/* Zoom-through intro (Nov 18, 2026): the logo rushes at the viewer,
   dives through its focal point and disappears; the hero logo then
   sits static and the background video starts. Once per session, tap
   to skip. Artwork swapped Nov 25, 2026 to Dan's purple/gold
   MERRYQUEST wordmark banner (baked starfield, wordmark only) —
   transform-origin 58% 48% is the measured center of the Q in QUEST
   (bowl spans x 53.5–63.5%, y-center 47.5% of the 1170×653 art). */
.mqx-intro {
  position: fixed; inset: 0; z-index: 80; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 40%, #24104d 0%, #0a0518 72%);
  animation: mqx-intro-out 0.55s ease 2.4s both;
}
.mqx-intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}
.mqx-loadbtn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: "Luckiest Guy", var(--mq-sans, sans-serif);
  font-size: clamp(17px, 2.6vw, 23px); letter-spacing: 0.1em; color: #ffffff;
  padding: 14px 32px 11px; border-radius: 999px; white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.9); background: rgba(24, 8, 52, 0.55);
  box-shadow: 0 0 26px rgba(140, 90, 255, 0.45), inset 0 0 18px rgba(140, 90, 255, 0.25);
  animation: mqx-blink 0.55s steps(2, start) infinite, mqx-loadbtn-out 0.3s ease 0.95s both;
}
@keyframes mqx-blink { 50% { opacity: 0.15; } }
@keyframes mqx-loadbtn-out { to { opacity: 0; visibility: hidden; } }
.mqx-intro-logo {
  position: absolute; left: 50%; top: 50%;
  width: min(880px, 94vw); height: auto;
  transform-origin: 58% 48%;
  animation: mqx-intro-zoom 1.6s cubic-bezier(0.55, 0, 0.9, 0.4) 0.95s both;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(120, 220, 255, 0.25));
}
@keyframes mqx-intro-zoom {
  0% { transform: translate(-50%, -50%) scale(0.55); opacity: 0; filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55)); }
  16% { opacity: 1; }
  52% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(120, 220, 255, 0.25)); }
  100% { transform: translate(-50%, -50%) scale(15); opacity: 0; filter: blur(7px); }
}
@keyframes mqx-intro-out {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .mqx-intro { display: none; }
}
/* Page-exit zoom (Nov 18, 2026): clicking a nav link from the
   homepage zooms the logo at the viewer before the next page.
   Artwork: same purple/gold wordmark banner as the intro zoom
   (Nov 25, 2026), diving through the Q at 58% 48%. */
.mqx-zoomout {
  position: fixed; inset: 0; z-index: 90; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  pointer-events: none; opacity: 0;
  background: radial-gradient(120% 120% at 50% 40%, rgba(27, 15, 51, 0.93) 0%, rgba(7, 4, 15, 0.97) 72%);
}
.mqx-zoomout.on { opacity: 1; transition: opacity 0.18s ease; pointer-events: all; }
.mqx-zoomout img {
  width: min(820px, 92vw); height: auto; transform-origin: 58% 48%;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(120, 220, 255, 0.25));
}
.mqx-zoomout.on img { animation: mqx-zoomout-fly 0.68s cubic-bezier(0.55, 0, 0.9, 0.4) both; }
@keyframes mqx-zoomout-fly {
  0% { transform: scale(0.9); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: scale(13); opacity: 0; filter: blur(6px); }
}

/* Scroll spirits (Nov 19, 2026): the seven revealed cast portraits
   haunt the homepage background — each one blooms to life as it
   scrolls into view and fades away as it leaves, after the
   immersive-g.com flower fields Dan referenced. */
.mqx-haunted { position: relative; }
.mqx-haunted > :not(.mqx-spirit-field) { position: relative; z-index: 1; }
/* Faded Aurora crest watermark behind the quest section (Dan, Nov 28, 2026). */
.mqx-haunted::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("/static/img/aurorabitfrost-icon.webp") right 4% center / auto 118% no-repeat; opacity: 0.13; pointer-events: none; }
.mqx-spirit-field { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.mqx-spirit {
  position: absolute; width: min(44vmin, 400px); aspect-ratio: 1 / 1;
  object-fit: cover; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 66% 66% at 50% 50%, #000 52%, transparent 76%);
  mask-image: radial-gradient(ellipse 66% 66% at 50% 50%, #000 52%, transparent 76%);
  opacity: 0; filter: saturate(0.8) brightness(0.9) blur(3px);
  transform: translateY(52px) scale(0.84) rotate(var(--tilt, 0deg));
  transition: opacity 1.15s ease, transform 1.5s cubic-bezier(0.22, 0.61, 0.21, 1), filter 1.5s ease;
}
.mqx-spirit.s-left { left: -3.5%; }
.mqx-spirit.s-right { right: -3.5%; }
.mqx-spirit.alive {
  opacity: 0.5; filter: saturate(1.06) brightness(1.03) blur(0);
  transform: translateY(0) scale(1) rotate(var(--tilt, 0deg));
  animation: mqx-spirit-drift 7.5s ease-in-out 1.5s infinite alternate;
}
@keyframes mqx-spirit-drift { from { translate: 0 0; } to { translate: 0 -14px; } }
@media (max-width: 760px) {
  .mqx-spirit { width: 66vmin; }
  .mqx-spirit.s-left { left: -16%; }
  .mqx-spirit.s-right { right: -16%; }
  .mqx-spirit.alive { opacity: 0.34; }
}
@media (prefers-reduced-motion: reduce) {
  .mqx-spirit { transition: none; animation: none; }
  .mqx-spirit.alive { opacity: 0.32; transform: none; filter: none; }
}

/* Comic strip trio (Nov 19, 2026): Check in / Capture / Collect
   told as three comic panels — caption boxes, speech bubbles, a
   starburst, halftone dots and hard offset shadows. */
.mqx-panel {
  position: relative; transform: translateY(var(--lift, 0px)) rotate(var(--rot, 0deg));
  background: linear-gradient(165deg, #171238 0%, #0a0d22 58%, #0c1a14 100%);
  border: 2px solid #e6b16d; border-radius: 14px;
  box-shadow: 0 0 0 4px #07081a, 0 0 24px rgba(64, 200, 255, 0.28), 8px 8px 0 rgba(0, 0, 0, 0.5);
  padding: 14px 14px 16px; overflow: hidden;
}
.mqx-panel::after {
  content: ""; position: absolute; top: 0; right: 0; width: 92px; height: 92px;
  background-image: radial-gradient(rgba(120, 220, 255, 0.4) 1.6px, transparent 1.7px);
  background-size: 11px 11px; pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 78%);
  mask-image: linear-gradient(225deg, #000 30%, transparent 78%);
}
.mqx-panel-cap {
  display: inline-block; background: #1b1440; color: #ffc82c;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 900; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 10px; border: 1.5px solid #e6b16d; border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 200, 44, 0.25); margin: 0 0 12px;
}
.mqx-panel-art {
  position: relative; border: 2px solid rgba(120, 220, 255, 0.55); border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(64, 200, 255, 0.25), 0 0 10px rgba(64, 200, 255, 0.18);
  overflow: hidden; aspect-ratio: 1 / 1; background: #0a140d; margin-bottom: 13px;
}
.mqx-panel-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mqx-bubble {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: rgba(8, 12, 28, 0.88); color: #aee6ff; font-weight: 800; font-size: 10px;
  padding: 4px 7px; border-radius: 999px; border: 1.5px solid rgba(120, 220, 255, 0.8);
  box-shadow: 0 0 10px rgba(64, 200, 255, 0.35);
}
.mqx-burst {
  position: absolute; right: 8px; top: 8px; z-index: 2; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 42%, #e0483e, #8e1f1f 78%); color: #ffe9b0; font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 10.5px;
  filter: drop-shadow(0 0 6px rgba(255, 200, 44, 0.65));
  clip-path: polygon(50% 0%, 61% 12%, 76% 6%, 82% 20%, 97% 22%, 93% 37%, 100% 50%, 90% 61%, 95% 76%, 81% 79%, 78% 94%, 64% 88%, 50% 100%, 36% 88%, 22% 94%, 19% 79%, 5% 76%, 10% 61%, 0% 50%, 7% 37%, 3% 22%, 18% 20%, 24% 6%, 39% 12%);
  transform: rotate(10deg); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.mqx-panel h3 {
  color: #ffc82c; font-family: 'Cinzel', Georgia, serif;
  font-size: 21px; font-weight: 900; margin: 0 0 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(255, 200, 44, 0.35);
}
.mqx-panel-txt { color: #c3cede; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 15px; line-height: 1.55; margin: 0; }
.mqx-sack-faces { display: grid; grid-template-columns: repeat(3, 1fr); height: 100%; }
.mqx-sack-faces img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .mqx-panel { transform: none; }
  .mqx-burst { width: 48px; height: 48px; font-size: 10px; }
}

/* Golden Nights band (Nov 19, 2026): the marquee has name-dropped
   Golden Nights since launch with no explanation anywhere — this
   band is the explanation. */
.mqx-golden {
  margin-top: 56px; text-align: center; zoom: 0.75;
  border: 1px solid rgba(255, 200, 44, 0.45); border-radius: 22px;
  padding: 30px 26px 26px;
  background: radial-gradient(120% 160% at 50% 0%, rgba(255, 200, 44, 0.14), rgba(255, 200, 44, 0.03) 55%, transparent);
}
.mqx-golden .mqx-p { max-width: 640px; margin-left: auto; margin-right: auto; }
.mqx-golden-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 16px; }
.mqx-golden-chips span {
  border: 1px solid rgba(255, 200, 44, 0.55); color: #ffd968; border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-weight: 700; background: rgba(7, 11, 8, 0.55);
}

/* Homepage FAQ (Nov 20, 2026): the objection-killers, right after
   the loop pitch — native details, no JS, tap to open. */
.mqx-faq { max-width: 760px; margin: 0 auto; padding: 54px 20px 8px; text-align: center; }
.mqx-faq-item {
  text-align: left; border: 1px solid rgba(160, 140, 255, 0.28); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); margin: 10px 0; padding: 4px 18px;
}
.mqx-faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--mq-ink, #f2ecff);
  padding: 12px 0; list-style: none;
}
.mqx-faq-item summary::-webkit-details-marker { display: none; }
.mqx-faq-item summary::after { content: "+"; float: right; color: #c9a7ff; font-weight: 800; }
.mqx-faq-item[open ] summary::after { content: "–"; }
.mqx-faq-item p { margin: 0 0 14px; color: #cfc6ea; line-height: 1.55; font-size: 15.5px; }
.mqx-faq-item a { color: #ffd968; }

/* Try-it demo (Nov 20, 2026): the three-beat loop as a playable
   taste of Dec 1 — chapter picker, sample-town route, email-only
   join. Pure front-end; nothing is posted or saved. */
.mqx-try { max-width: 900px; margin: 0 auto; padding: 54px 20px 10px; text-align: center; }
.mqx-try-intro { margin-top: 2px; }
.mqx-try-lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.mqx-try-h { margin: 30px 0 12px; font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: 0.05em; color: #ffe9b0; text-align: left; }
.mqx-chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mqx-chapter {
  border: 1px solid rgba(160, 140, 255, 0.30); border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.03); color: var(--mq-ink, #f2ecff); cursor: pointer;
  padding: 0 0 10px; display: flex; flex-direction: column; gap: 3px; font: inherit;
}
.mqx-chapter img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; display: block; }
.mqx-chapter.is-on { border-color: #ffc82c; box-shadow: 0 0 0 1px #ffc82c, 0 10px 26px rgba(0, 0, 0, 0.45); }
.mqx-chapter-t { font-weight: 800; font-size: 14.5px; padding: 8px 8px 0; }
.mqx-chapter-sub { font-size: 12.5px; color: #bdb2d9; padding: 0 8px; }
.mqx-chapter-locked { align-items: center; justify-content: center; cursor: default; min-height: 150px; }
.mqx-chapter-lock { font-size: 30px; padding-top: 16px; }
.mqx-try-line { color: #cfc6ea; font-size: 15.5px; margin: 14px 0 0; }
.mqx-try-line b { color: #ffe9b0; }
.mqx-try-towns { display: flex; flex-wrap: wrap; gap: 8px; }
.mqx-try-town {
  border: 1px solid rgba(160, 140, 255, 0.35); background: rgba(255, 255, 255, 0.03);
  color: var(--mq-ink, #f2ecff); border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 14.5px;
}
.mqx-try-town.is-on { border-color: #ffc82c; color: #ffe9b0; }
.mqx-try-route { text-align: left; margin: 14px 0 0; padding-left: 1.4rem; color: #cfc6ea; line-height: 1.6; font-size: 15.5px; }
.mqx-try-final { color: #ffe9b0; }
.mqx-try-join { display: flex; gap: 8px; max-width: 460px; }
.mqx-try-join input {
  flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(160, 140, 255, 0.4);
  background: rgba(7, 11, 8, 0.55); color: var(--mq-ink, #f2ecff); padding: 11px 16px; font: inherit;
}
.mqx-try-join button {
  border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 800;
  background: linear-gradient(90deg, #ffc82c, #ff7847); color: #231303; cursor: pointer;
}
@media (max-width: 700px) {
  .mqx-chapters { grid-template-columns: repeat(2, 1fr); }
}

/* Finale (Nov 20, 2026): the closing card — "Be there when chapter
   one drops." Real /subscribe form (interest=Christmas); the story's
   last page is an invitation, not a footer. */
.mqx-finale { max-width: 760px; margin: 0 auto; padding: 64px 20px 30px; }
.mqx-finale-card {
  border: 1px solid rgba(255, 200, 44, 0.45); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 200, 44, 0.07), rgba(255, 255, 255, 0.02));
  padding: 38px 30px 28px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mqx-finale-h { margin: 0 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; color: #fff7e0; }
.mqx-finale-p { margin: 0 auto 22px; max-width: 520px; color: #cfc6ea; font-size: 16.5px; line-height: 1.55; }
.mqx-finale-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.mqx-finale-form input {
  flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(160, 140, 255, 0.4);
  background: rgba(7, 11, 8, 0.55); color: var(--mq-ink, #f2ecff); padding: 13px 18px; font: inherit;
}
.mqx-finale-form button {
  border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 800;
  background: linear-gradient(90deg, #ffc82c, #ff7847); color: #231303; cursor: pointer; white-space: nowrap;
}
.mqx-finale-note { margin: 16px auto 0; max-width: 520px; color: #9d92c4; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 560px) {
  .mqx-finale-form { flex-direction: column; }
}

/* Bold photo mosaics (Nov 19, 2026): Trending, Newest and the
   Displays page run as large photos edge to edge — no gaps, no
   cards; the photo IS the tile, title and town ride on it. */
.mqx-mosaic-head { max-width: 1180px; margin: 0 auto; padding: 0 20px 18px; }
.mqx-mosaic-more { max-width: 1180px; margin: 18px auto 0; padding: 0 20px; }
.mqx-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; zoom: 0.72; }
.mqx-tile {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: #0d1f14; text-decoration: none;
}
.mqx-tile > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.21, 1), filter 0.7s ease;
}
.mqx-tile:hover > img { transform: scale(1.06); filter: brightness(1.09); }
.mqx-tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 36px 16px 13px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 6, 0.85));
}
.mqx-tile-title {
  color: #ffffff; font-weight: 800; font-size: 17px; line-height: 1.25;
  letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.mqx-tile-meta {
  color: #ffc82c; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mqx-tile .mqx-card-badge { left: 10px; top: 10px; bottom: auto; z-index: 3; }
.mqx-tile .mqx-card-badge-new { left: auto; right: 10px; }
.mqx-tile-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 46px; background: #122b1e;
}
.mqx-tile .tour-add-btn { position: absolute; top: 10px; right: 10px; z-index: 3; }
@media (max-width: 900px) {
  .mqx-mosaic { grid-template-columns: repeat(2, 1fr); }
  .mqx-tile { aspect-ratio: 1 / 1; }
  .mqx-tile-title { font-size: 15px; }
}

/* Display card facelift — MQ skin (Dan, Nov 26, 2026): the shared
   .dcard component (style.css / templates/_display_card.html) in
   MerryQuest purple/neon. Same layout and hierarchy as HauntMap;
   deep-purple card, violet border, gold caps meta (the colour the
   old .mqx-tile-meta used). The homepage Trending / Fresh sections
   and /nearby now render .dcard grids instead of .mqx-tile mosaics;
   the mosaic rules above stay for any surface still using them. */
body.brand-merryquest .dcard {
  background: #17122b; border-color: #372b5e;
  box-shadow: 0 6px 18px rgba(2, 0, 12, 0.55);
}
body.brand-merryquest .dcard:hover, body.brand-merryquest .dcard:focus-visible {
  border-color: #b78cff; box-shadow: 0 14px 30px rgba(64, 32, 140, 0.5);
}
body.brand-merryquest .dcard-meta { color: #ffc82c; }
body.brand-merryquest .dcard-pill-new { background: rgba(183, 140, 255, 0.88); }
body.brand-merryquest .dcard-media-empty {
  background: radial-gradient(600px 300px at 50% 0%, #2a1650 0%, #0d0a1a 70%);
}
body.brand-merryquest .detail-head .entry-address { color: #ffc82c; }
body.brand-merryquest .detail-media { border-color: #372b5e; }

/* Trending Displays: ONE row on laptop/desktop (Dan, 2026-11-29):
   "Fit them all in one row." The Trending grid carries
   .mqx-trending-row (index_merryquest.html); above the phone
   breakpoint it becomes a single no-wrap flex row — every card the
   section renders (up to 8) shrinks equally (flex 1 1 0,
   min-width 0) to fit the container instead of wrapping onto a
   second row. Scoped to this one grid: the shared .dgrid keeps its
   wrapping grid on every other surface, and phone widths keep the
   two-column grid exactly as before. */
@media (min-width: 761px) {
  body.brand-merryquest .mqx-trending-row { display: flex; flex-wrap: nowrap; gap: 1rem; }
  body.brand-merryquest .mqx-trending-row > .dcard { flex: 1 1 0; min-width: 0; }
}

/* ---------- Hero: full-bleed campaign shot (GTA) ---------- */
.mqx-hero {
  /* Top-anchored stack (Dan, Nov 25, 2026 — "move logo higher,
     clean spaced layout"): no more vertical centering — the stack
     starts near the top of the hero under the slim nav, and the
     hero stack below follows one spacing rhythm (see .mqx-epic-art,
     .mqx-h1, .mqx-begins, .mqx-bigcd, .mqx-santacd, .mqx-sub,
     .mqx-hero-ctas margins). */
  position: relative; padding: 11px 24px 48px;
  overflow: hidden; text-align: center;
  border: 1px solid var(--mqx-line);
  background: radial-gradient(120% 130% at 50% 0%, #14301f 0%, #08130c 58%, #050807 100%);
  min-height: 94vh; display: flex; flex-direction: column; justify-content: flex-start;
}
@media (max-width: 760px) { .mqx-hero { padding: 11px 16px 36px; min-height: 92vh; } }
.mqx-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.5;
}
.mqx-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.55) 0%, rgba(5, 8, 7, 0.25) 40%, rgba(5, 8, 7, 0.92) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}
.mqx-hero-in { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; zoom: 0.8; }
.mqx-chip {
  display: inline-block; margin: 0 0 22px; padding: 7px 16px;
  background: rgba(10, 18, 12, 0.66); border: 1px solid rgba(255, 200, 44, 0.45);
  border-radius: 999px; color: #ffd968; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mqx-chip span { color: #ffffff; font-variant-numeric: tabular-nums; }
.mqx-h1 {
  font-family: "Luckiest Guy", var(--mqx-display); font-weight: 400;
  font-size: clamp(26px, 4.2vw, 50px); line-height: 1.04;
  letter-spacing: 0.012em; text-transform: uppercase;
  color: #aef4ff; margin: 0 0 16px;
  transform: skewX(-4deg);
  filter: drop-shadow(0 5px 0 rgba(18, 43, 30, 0.55)) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5));
}
.mqx-h1 .mqx-w { display: inline-block; white-space: nowrap; }
.mqx-h1.mqx-letters .mqx-l {
  display: inline-block;
  animation: mqx-letter-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes mqx-letter-pop {
  from { opacity: 0; transform: translateY(30px) scale(0.45) rotate(-9deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
.mqx-grad {
  /* Solid gold, not gradient-clipped text: background-clip:text drops out
     on iOS Safari when the hero video starts compositing (Dan, Nov 18). */
  color: #ffc82c; -webkit-text-fill-color: #ffc82c;
}
/* Electric headline (Dan, Nov 19, 2026): the H1 carries a live charge —
   a steady cyan halo, a loose-bulb double flicker, and a periodic surge;
   the gold line chases Christmas-light colors (text-shadow only, so the
   iOS solid-fill rule above is untouched). */
.mqx-h1 {
  /* Tron neon (Dan, Nov 19, 2026): the line burns cyan full-time —
     electric-blue tube glow, deep blue halo. Counter blue (Dan,
     Nov 25, 2026): the fill and core now burn the Santa counter's
     #aef4ff, so headline and counter read as one color story.
     Glow REMOVED (Dan, Nov 25, 2026): "take away glow for best
     Christmas displays" — the text-shadow stack and the
     charge animation that drove it are off, so the headline
     renders flat and clean in its counter-blue fill (#aef4ff,
     first .mqx-h1 rule) with only that rule's poster drop-shadow
     filter. The mqx-charge keyframes below stay in the file,
     unused by the headline. */
  text-shadow: none;
  animation: none;
}
/* Christmas-light flashes (Dan, Nov 19, 2026): inside the white lightning,
   the surge beats now flash Christmas colors at uneven intervals — red,
   green, gold, blue, pink — so the charge feels like Christmas lights
   popping inside the bolt. The core stays white-hot; the color rides the
   outer glow layers. */
@keyframes mqx-charge {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); }
  4% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.4), 0 0 10px rgba(120, 230, 255, 0.45), 0 0 24px rgba(0, 180, 255, 0.3); opacity: 0.82; }
  6% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); opacity: 1; }
  7% { text-shadow: 0 0 4px rgba(255, 255, 255, 0.45), 0 0 12px rgba(120, 230, 255, 0.5), 0 0 28px rgba(0, 180, 255, 0.32); opacity: 0.88; }
  9%, 19% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); opacity: 1; }
  22% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 26px rgba(255, 120, 120, 0.95), 0 0 60px rgba(255, 60, 60, 0.8), 0 0 120px rgba(211, 47, 47, 0.55), 0 0 160px rgba(255, 90, 90, 0.35); }
  25% { text-shadow: 0 0 7px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 150, 150, 0.9), 0 0 50px rgba(255, 70, 70, 0.6), 0 0 100px rgba(211, 47, 47, 0.4); }
  28%, 37% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); }
  41% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 26px rgba(140, 255, 190, 0.95), 0 0 60px rgba(46, 204, 113, 0.8), 0 0 120px rgba(30, 160, 90, 0.55), 0 0 160px rgba(119, 223, 184, 0.35); }
  44% { text-shadow: 0 0 7px rgba(255, 255, 255, 0.8), 0 0 22px rgba(170, 255, 205, 0.9), 0 0 50px rgba(46, 204, 113, 0.6), 0 0 100px rgba(30, 160, 90, 0.4); }
  47%, 54% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); opacity: 1; }
  58% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 26px rgba(255, 225, 140, 0.95), 0 0 60px rgba(255, 200, 44, 0.85), 0 0 120px rgba(255, 170, 0, 0.55), 0 0 160px rgba(255, 200, 44, 0.4); }
  61% { text-shadow: 0 0 7px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 235, 170, 0.9), 0 0 50px rgba(255, 200, 44, 0.65), 0 0 100px rgba(255, 170, 0, 0.45); }
  64%, 70% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); }
  74% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 26px rgba(150, 205, 255, 0.95), 0 0 60px rgba(84, 185, 255, 0.85), 0 0 120px rgba(40, 120, 255, 0.55), 0 0 160px rgba(84, 185, 255, 0.4); }
  77% { text-shadow: 0 0 7px rgba(255, 255, 255, 0.8), 0 0 22px rgba(180, 220, 255, 0.9), 0 0 50px rgba(84, 185, 255, 0.65), 0 0 100px rgba(40, 120, 255, 0.45); }
  80%, 85% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); }
  88% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 26px rgba(255, 170, 235, 0.95), 0 0 60px rgba(255, 110, 220, 0.8), 0 0 120px rgba(200, 60, 180, 0.5), 0 0 160px rgba(255, 110, 220, 0.35); }
  91% { text-shadow: 0 0 7px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 200, 245, 0.9), 0 0 50px rgba(255, 110, 220, 0.6), 0 0 100px rgba(200, 60, 180, 0.4); }
  94% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35); }
}
.mqx-h1 .mqx-grad {
  /* Chase glow off (Dan, Nov 25, 2026): mqx-chase animated a
     text-shadow glow on the gold span — removed with the rest of
     the headline's glow so the whole H1 renders flat. */
  animation: none;
}


@keyframes mqx-chase {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 200, 44, 0.55), 0 0 46px rgba(255, 200, 44, 0.25); }
  25% { text-shadow: 0 0 18px rgba(255, 90, 90, 0.6), 0 0 46px rgba(211, 47, 47, 0.3); }
  50% { text-shadow: 0 0 18px rgba(119, 223, 184, 0.6), 0 0 46px rgba(119, 223, 184, 0.3); }
  75% { text-shadow: 0 0 18px rgba(84, 185, 255, 0.6), 0 0 46px rgba(84, 185, 255, 0.3); }
}
@media (prefers-reduced-motion: reduce) {
  .mqx-h1, .mqx-h1 .mqx-grad { animation: none; }
}
.mqx-begins {
  /* Bebas Neue like the splash's begins line (Dan, Nov 19, 2026):
     no snowflakes, a step larger, flanking lines reaching outward. */
  font-family: "Bebas Neue", sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0; color: #ffd968; font-weight: 400;
  font-size: clamp(16px, 3.4vw, 24px); letter-spacing: clamp(0.08em, 0.6vw, 0.22em);
  text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.mqx-begins::before, .mqx-begins::after {
  content: ""; height: 1px; flex: 1 1 10px; max-width: 230px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 44, 0.75));
}
.mqx-begins::after { background: linear-gradient(90deg, rgba(255, 200, 44, 0.75), transparent); }
.mqx-sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 12, 20, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 20px; line-height: 1; cursor: pointer; color: #fff;
}
.mqx-sub {
  color: #cfdccf; font-size: 17px; line-height: 1.5;
  max-width: 56ch; margin: 22px auto 24px;
}
.mqx-search {
  display: flex; gap: 8px; max-width: 560px; margin: 0 auto;
  background: rgba(8, 13, 10, 0.72); border: 1px solid var(--mqx-line);
  border-radius: 999px; padding: 6px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mqx-search input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: #ffffff; font-size: 16px; padding: 10px 16px;
  font-family: inherit;
}
.mqx-search input::placeholder { color: #8fa294; }
.mqx-search button {
  background: var(--mqx-grad); border: none; cursor: pointer;
  color: #131313; font-weight: 800; font-size: 15px;
  border-radius: 999px; padding: 11px 26px;
  box-shadow: 0 4px 22px rgba(235, 122, 44, 0.4);
}
.mqx-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  align-items: center; margin-top: 18px;
}
.mqx-ghost-btn {
  display: inline-block; color: #eef3ee; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  background: rgba(8, 13, 10, 0.4);
}
.mqx-ghost-btn:hover { border-color: rgba(255, 200, 44, 0.7); color: #ffffff; }
.mqx-app-badges { display: inline-flex; gap: 8px; }
.mqx-app-badges span {
  border: 1px dashed rgba(255, 255, 255, 0.3); color: #b9c8ba;
  border-radius: 999px; padding: 9px 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em;
}
.mqx-quest-card {
  display: block; max-width: 560px; margin: 30px auto 0; text-align: left;
  background: rgba(9, 15, 11, 0.78); border: 1px solid rgba(255, 200, 44, 0.4);
  border-radius: 16px; padding: 15px 18px; text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.mqx-quest-kicker {
  display: block; color: #ffc82c; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px;
}
.mqx-quest-title { display: block; color: #ffffff; font-size: 18px; font-weight: 700; }
.mqx-quest-meta { display: block; color: #a9b8ac; font-size: 13.5px; margin-top: 3px; }

/* ---------- Stats ---------- */
.mqx-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; zoom: 0.75;
  max-width: 900px; margin: 34px auto 0; text-align: center;
}
.mqx-stats div { border-left: 1px solid var(--mqx-line); padding: 4px 6px; }
.mqx-stats div:first-child { border-left: none; }
.mqx-stats b {
  display: block; font-family: var(--mqx-display); font-weight: 400;
  font-size: 30px; color: #ffffff; letter-spacing: 0.01em;
}
.mqx-stats span {
  display: block; color: #8fa294; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px;
}
@media (max-width: 760px) { .mqx-stats { grid-template-columns: repeat(2, 1fr); } .mqx-stats div:nth-child(3) { border-left: none; } }

/* ---------- GO-style trio ---------- */
.mqx-trio {
  /* Breakout like the guide/split blocks: the wrap is only ~690px,
     far too narrow to deal five real cards across. Fit fix (Nov 23,
     2026): the fan's outer cards rotate ±8deg on a 5:7 card, so their
     top corners swing ~45px past the layout box on each side — at a
     1300px measure with 6px side padding that dealt the edge cards
     off-screen on laptop windows. The row now measures 1180px (the
     wrap's own width) with 40px side padding, and the cards flex to
     equal shares below, so the whole fan — rotation and shadow
     included — stays on screen at laptop widths. */
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100vw - 2rem));
  display: flex; justify-content: center; align-items: flex-start; margin-top: 52px; zoom: 1;
  padding: 22px 40px 26px;
}
/* The chapters as a fanned hand of cards (Nov 19, 2026). */
/* Actual playing cards (Dan, Nov 19, 2026): true 5:7 card
   proportion, dealt wider with a deeper fan overlap. */
.mqx-trio .mqx-panel {
  flex: 1 1 0; min-width: 0; margin-left: -16px; transform-origin: 50% 100%;
  aspect-ratio: 5 / 7; display: flex; flex-direction: column; border-radius: 17px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.mqx-trio .mqx-panel-art { flex: 1 1 auto; aspect-ratio: auto; min-height: 90px; }
.mqx-trio .mqx-panel:first-child { margin-left: 0; z-index: 1; }
.mqx-trio .mqx-panel:nth-child(2) { z-index: 3; }
.mqx-trio .mqx-panel:nth-child(3) { z-index: 2; }
.mqx-trio .mqx-panel:hover {
  transform: translateY(calc(var(--lift, 0px) - 14px)) rotate(var(--rot, 0deg)) scale(1.02);
  z-index: 6;
}
@media (max-width: 760px) {
  /* Phones: the hand stacks into a deck — full-width cards, slight overlap. */
  .mqx-trio { flex-direction: column; align-items: stretch; margin-top: 32px; padding: 4px 0 8px; }
  .mqx-trio { zoom: 0.82; }
  .mqx-trio .mqx-panel { flex: none; margin-left: 0; margin-top: -12px; aspect-ratio: auto; }
  .mqx-trio .mqx-panel:first-child { margin-top: 0; }
  .mqx-trio-card {
    display: grid; grid-template-columns: 38px 1fr; column-gap: 13px;
    grid-template-areas: "icon title" "icon text";
    align-items: center; padding: 13px 15px; border-radius: 14px;
  }
  .mqx-trio-icon { grid-area: icon; width: 38px; height: 38px; font-size: 17px; align-self: start; margin-top: 1px; }
  .mqx-trio-card h3 { grid-area: title; font-size: 15.5px; margin: 0 0 2px; }
  .mqx-trio-card p { grid-area: text; font-size: 13px; line-height: 1.4; }
}
/* Face-down card backs in the fan (Nov 19, 2026): two backs dealt
   between the chapter cards — a playing-card back carrying the
   game's chrome title over a lattice of cyan and gold. */
.mqx-panel-back { display: flex; }
.mqx-back-frame {
  flex: 1; border: 1.5px solid rgba(230, 177, 109, 0.85); border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(64, 200, 255, 0.16), transparent 62%),
    repeating-linear-gradient(45deg, rgba(120, 220, 255, 0.10) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 200, 44, 0.08) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #141038, #0a0d22 60%, #0c1a14);
  box-shadow: inset 0 0 0 4px rgba(7, 8, 26, 0.9), inset 0 0 26px rgba(64, 200, 255, 0.18);
}
.mqx-back-frame img { width: 88%; height: auto; filter: drop-shadow(0 0 10px rgba(64, 200, 255, 0.35)); }
.mqx-back-star { color: #ffc82c; font-size: 15px; line-height: 1; text-shadow: 0 0 10px rgba(255, 200, 44, 0.6); }
.mqx-back-tag {
  font-family: 'Cinzel', Georgia, serif; letter-spacing: 0.34em; text-indent: 0.34em;
  font-size: 10.5px; color: #aee6ff; text-transform: uppercase; text-align: center;
}
@media (max-width: 760px) {
  /* The backs fill laptop dead space; the phone deck stays three chapters. */
  .mqx-panel-back { display: none; }
}
/* Pip guide block (Nov 19, 2026): introduces the Star Pin as the
   journey's guide, directly under the chapter cards she stars in. */
.mqx-guide {
  position: relative; left: 50%; transform: translateX(-50%);
  margin-top: 44px; zoom: 0.8;
  width: min(1100px, calc(100vw - 2rem));
  display: flex; align-items: center; gap: 34px;
  background:
    radial-gradient(560px 300px at 12% 40%, rgba(255, 200, 44, 0.10), transparent 65%),
    linear-gradient(165deg, rgba(23, 18, 56, 0.96), rgba(9, 14, 10, 0.97));
  border: 1px solid rgba(230, 177, 109, 0.5); border-radius: 22px;
  padding: 30px 38px;
  box-shadow: 0 0 24px rgba(64, 200, 255, 0.12);
}
.mqx-guide-medal { flex: 0 0 auto; }
.mqx-guide-medal img {
  width: 178px; height: 178px; object-fit: cover; border-radius: 50%; display: block;
  border: 3px solid #e6b16d; object-position: 50% 20%;
  box-shadow: 0 0 0 5px rgba(7, 8, 26, 0.9), 0 0 26px rgba(255, 200, 44, 0.4), 0 0 44px rgba(64, 200, 255, 0.25);
}
.mqx-guide-copy { text-align: left; }
.mqx-guide-steps { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.mqx-guide-steps span {
  background: rgba(27, 20, 64, 0.85); color: #aee6ff; border: 1px solid rgba(120, 220, 255, 0.45);
  border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 700;
}
@media (max-width: 760px) {
  .mqx-guide { flex-direction: column; text-align: center; gap: 9px; padding: 12px 14px 14px; zoom: 1; width: calc(100vw - 12px); margin-top: 30px; }
  .mqx-guide-copy { text-align: center; }
  .mqx-guide-steps { justify-content: center; margin-top: 8px; gap: 6px; }
  .mqx-guide-medal img { width: 56px; height: 56px; }
  /* Compact pass (Dan, Nov 25, 2026): phone density mirrored from the
     Build My Tour band, which renders at zoom .75 — heading at that
     scale, tighter copy and chips. Scoped to this block only.
     Second pass (Dan, Nov 25, 2026, later): tightened further to match
     the Build My Tour block's phone footprint — smaller medal, denser
     copy and chips. No content or copy changed. */
  body.brand-merryquest .mqx-guide .mqx-h2 { font-size: 16px; margin-bottom: 6px; }
  .mqx-guide .mqx-eyebrow { margin-bottom: 4px; }
  .mqx-guide .mqx-p { font-size: 12.5px; line-height: 1.4; margin-bottom: 0; }
  .mqx-guide-steps span { padding: 4px 9px; font-size: 11.5px; }
}
.mqx-trio-card {
  background: var(--mqx-glass); border: 1px solid var(--mqx-line);
  border-radius: 18px; padding: 22px 20px;
}
.mqx-trio-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; font-size: 21px;
  background: rgba(255, 200, 44, 0.12);
  border: 1px solid rgba(255, 200, 44, 0.4);
  box-shadow: 0 0 22px rgba(255, 200, 44, 0.22);
}
.mqx-trio-card h3 { color: #ffffff; font-size: 18px; margin: 13px 0 6px; font-weight: 700; }
.mqx-trio-card p { color: #a9b8ac; font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ---------- Sections + Airbnb grid ---------- */
.mqx-section { margin-top: 56px; }
.mqx-eyebrow {
  color: #eb7a2c; font-size: 12px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 8px;
}
body.brand-merryquest .mqx-h2 {
  font-family: "Russo One", "Luckiest Guy", var(--mqx-display);
  font-size: clamp(23px, 3.1vw, 33px); font-weight: 400; letter-spacing: 0.015em;
  color: #ffffff; margin: 0 0 20px; text-transform: uppercase; text-shadow: none;
  transform: skewX(-3deg);
}
.mqx-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1000px) { .mqx-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .mqx-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.mqx-card {
  display: block; text-decoration: none; background: var(--mqx-glass);
  border: 1px solid var(--mqx-line); border-radius: 16px; overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mqx-card:hover {
  transform: translateY(-3px); border-color: rgba(255, 200, 44, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.mqx-card-media { display: block; position: relative; aspect-ratio: 4 / 3; background: #0d1710; }
.mqx-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mqx-card-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 34px;
}
.mqx-card-badge {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(7, 11, 8, 0.82); color: #ffd968;
  border: 1px solid rgba(255, 200, 44, 0.4);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 999px;
}
.mqx-card-badge-new { left: auto; right: 10px; color: #ffffff; border-color: rgba(255, 255, 255, 0.35); }
.mqx-card-body { display: block; padding: 13px 15px 15px; }
.mqx-card-title {
  display: block; color: #f2f5f1; font-size: 15.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mqx-card-meta { display: block; color: #8fa294; font-size: 13px; margin-top: 3px; }
.mqx-more { margin-top: 22px; text-align: center; }

/* ---------- Quest split + cast (Pokédex panel) ---------- */
.mqx-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; zoom: 0.8;
  margin-top: 56px; align-items: stretch;
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100vw - 2rem));
  border: 1px solid var(--mqx-line); border-radius: 22px;
  padding: 34px 38px;
  background:
    radial-gradient(120% 150% at 85% 0%, rgba(255, 200, 44, 0.10), transparent 55%),
    linear-gradient(165deg, rgba(16, 24, 18, 0.97), rgba(9, 14, 10, 0.97));
}
.mqx-h2-magic {
  background: linear-gradient(100deg, #fff6d8 0%, #ffd968 30%, #ff9d5c 50%, #ffd968 70%, #fff6d8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: mqx-shine 5s linear infinite;
  filter: drop-shadow(0 2px 16px rgba(255, 200, 44, 0.28));
}
@keyframes mqx-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .mqx-h2-magic { animation: none; } }
.mqx-split-copy {
  background: none; border: none;
  border-radius: 0; padding: 0;
}
.mqx-p { color: #b9c8ba; font-size: 15.5px; line-height: 1.55; margin: 0 0 18px; }
.mqx-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.mqx-steps li { color: #e6ede6; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.mqx-steps b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  background: var(--mqx-grad); color: #131313; font-size: 14px; font-weight: 800;
}
.mqx-cta {
  display: inline-block; background: var(--mqx-grad); color: #131313;
  text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  box-shadow: 0 6px 26px rgba(235, 122, 44, 0.38);
}
.mqx-split .mqx-cta-join-small { grid-column: 1 / -1; justify-self: center;
  font-size: 12.5px; font-weight: 700; padding: 8px 18px; margin-top: 6px;
  box-shadow: 0 3px 14px rgba(235, 122, 44, 0.25); }
.mqx-cast-panel {
  border-radius: 0; padding: 0 0 0 30px;
  background: none;
  border: none; border-left: 1px solid rgba(255, 255, 255, 0.09);
  align-self: center;
}
.mqx-cast-head {
  font-family: "Russo One", "Inter", sans-serif;
  color: #ffffff; font-weight: 400; font-size: 16px;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px;
}
.mqx-cast { display: flex; flex-wrap: wrap; gap: 8px; }
.mqx-cast span {
  border: 1px solid var(--mqx-line); background: rgba(7, 11, 8, 0.5);
  color: #c4d2c4; border-radius: 999px; padding: 6px 13px;
  font-size: 13.5px; font-weight: 600;
}
.mqx-cast span.mqx-tier-legendary { border-color: rgba(255, 200, 44, 0.65); color: #ffd968; box-shadow: 0 0 14px rgba(255, 200, 44, 0.18); }
.mqx-cast span.mqx-tier-epic { border-color: rgba(235, 122, 44, 0.55); color: #ffb37a; }
.mqx-cast span.mqx-cast-more { border-style: dashed; color: #8fa294; }
.mqx-cast span.mqx-cast-mystery { border-style: dashed; color: #8fa294; min-width: 36px; text-align: center; }

@media (max-width: 760px) {
  /* Phone cleanup (Dan, Nov 19, 2026): the merged block floated narrow
     with black margins (zoom + breakout math), and the cast panel kept
     its desktop left border and 30px indent because the old phone block
     sat before the base rules and lost on order. Full-bleed block, no
     zoom, panel stacked under a top divider. */
  .mqx-split { grid-template-columns: 1fr; zoom: 1; width: calc(100vw - 12px);
    padding: 13px 14px 15px; margin-top: 30px; gap: 0; }
  .mqx-cast-panel { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 10px 0 0; margin-top: 12px; align-self: stretch; }
  .mqx-p { font-size: 15px; }
  /* Compact pass (Dan, Nov 25, 2026): phone density mirrored from the
     Build My Tour band (zoom .75 scale) — smaller heading, tighter
     step rows and cast chips. Scoped so other sections keep theirs.
     Second pass (Dan, Nov 25, 2026, later): tightened further to match
     the Build My Tour block's phone footprint — denser steps, chips
     and "?" grid. No content or copy changed. */
  /* One line on phone (Dan, Nov 29, 2026): "Assemble the Guardians
     of the Glow" measured 346.3px wide at 16px in Russo One against
     the split's 350px phone content box — borderline enough to wrap
     on real phones. 15px measures 324.7px (fits 375px phones too);
     nowrap pins it to the single line. This heading only. */
  body.brand-merryquest .mqx-split .mqx-h2 { font-size: 15px; margin-bottom: 6px; white-space: nowrap; }
  .mqx-split .mqx-eyebrow { margin-bottom: 4px; }
  .mqx-split .mqx-p { font-size: 13px; line-height: 1.42; margin-bottom: 9px; }
  .mqx-steps { gap: 6px; margin-bottom: 10px; }
  .mqx-steps li { font-size: 13px; gap: 9px; }
  .mqx-steps b { width: 20px; height: 20px; font-size: 11.5px; }
  .mqx-cast-head { font-size: 13px; margin-bottom: 7px; }
  .mqx-cast { gap: 5px; }
  .mqx-cast span { padding: 4px 9px; font-size: 11.5px; line-height: 1.3; }
  .mqx-cast span.mqx-cast-mystery { min-width: 24px; padding: 4px 7px; }
  .mqx-split .mqx-cta-join-small { margin-top: 2px; padding: 7px 16px; font-size: 12px; }
}

/* ---------- Tour band ---------- */
.mqx-tour {
  margin-top: 56px; text-align: center; padding: 42px 24px; zoom: 0.75;
  width: calc(113.37vw - 2.67px); margin-left: calc(50% - 42.5vw - 203px); margin-right: 0;
  border-radius: 22px; border: 1px solid rgba(255, 200, 44, 0.3);
  background:
    radial-gradient(90% 160% at 50% 0%, rgba(255, 200, 44, 0.13), transparent 60%),
    linear-gradient(180deg, #0c1a10, #060d08);
}
@media (max-width: 760px) { .mqx-tour { margin-left: calc(50% - 42.5vw - 54px); } }
.mqx-tour .mqx-h2 { margin-bottom: 10px; }
.mqx-tour .mqx-p { max-width: 52ch; margin: 0 auto 22px; }

/* Search input: beat the base form-input styling outright */
body.brand-merryquest .mqx-search input[type="text"] {
  border: none; box-shadow: none; background: transparent; border-radius: 999px;
}

/* ==== MQX Phase 1 rollout (Nov 18, 2026): quest panel, hunt, town, footer */
.quest-panel { position:relative; margin:22px 0; padding:22px 22px 18px; border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border:1px solid var(--line); overflow:hidden; }
.quest-panel::before { content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(70% 90% at 15% 0%, var(--qglow), transparent 65%); opacity:.28; }
.quest-tier-legendary { --qglow:#FFC82C; --qtc:#FFC82C; }
.quest-tier-epic { --qglow:#EB7A2C; --qtc:#EB7A2C; }
.quest-tier-rare { --qglow:#77DFB8; --qtc:#77DFB8; }
.quest-tier-common { --qglow:#9FB4A4; --qtc:#C4D2C4; }
.quest-tier-original { --qglow:#FFC82C; --qtc:#FFC82C; }
.quest-panel-eyebrow { position:relative; font-size:12px; font-weight:800; letter-spacing:.26em;
  text-transform:uppercase; color:var(--qtc); margin:0 0 10px; }
.quest-panel-name { position:relative; font-family:'Anton',sans-serif; font-size:30px; line-height:1.08;
  text-transform:uppercase; margin:0 0 8px; }
.quest-panel-name b { color:var(--qtc); }
.quest-mystery { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:12px;
  border:2px solid var(--qtc); color:var(--qtc); font-size:28px; vertical-align:-8px; margin-right:8px;
  box-shadow:0 0 22px var(--qglow); }
.quest-panel-sub { position:relative; color:var(--mut); margin:0 0 14px; }
.quest-checkin-btn { position:relative; display:inline-block; border:0; cursor:pointer;
  font:inherit; font-weight:800; font-size:16px; color:#122B1E; text-decoration:none;
  background:linear-gradient(92deg,#FFC82C,#EB7A2C); padding:13px 26px; border-radius:999px;
  box-shadow:0 10px 28px rgba(235,122,44,.35); }
.quest-checkin-btn[disabled] { opacity:.65; }
.quest-panel-msg { position:relative; color:#FFD9A8; margin:10px 0 0; min-height:1.2em; }
.quest-panel-sack { position:relative; display:inline-block; margin-top:12px; color:var(--gold);
  font-weight:700; text-decoration:none; }
.hunt-box { margin:20px 0 26px; padding:20px 22px; border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border:1px solid var(--line); }
.hunt-title { font-family:'Anton',sans-serif; text-transform:uppercase; letter-spacing:.02em;
  font-size:24px; margin:0 0 8px; }
.hunt-sub { color:var(--mut); margin:0 0 14px; }
.hunt-sub b { color:var(--ink); }
.hunt-town { width:100%; max-width:430px; padding:12px 16px; border-radius:12px; font:inherit;
  background:rgba(255,255,255,.06); border:1px solid var(--line); color:var(--ink); }
.hint-card { margin-top:16px; padding:16px 18px; border-radius:14px;
  background:rgba(255,200,44,.07); border:1px solid rgba(255,200,44,.35); }
.hint-card-title { font-family:'Anton',sans-serif; text-transform:uppercase; font-size:19px; margin:0 0 8px; }
.hint-line { margin:0 0 6px; color:var(--ink); }
.hint-line b { color:var(--gold); }
.hint-unlock { margin:8px 0 0; color:var(--mut); font-size:14px; }
button.sack-cast-chip { font:inherit; cursor:pointer; background:none; }
button.sack-cast-chip:hover { border-color:var(--gold); color:var(--gold); }
.mq-footer-brand { text-align:center; color:var(--mut); letter-spacing:.14em; font-weight:700; }
.mq-map .leaflet-tile-pane { filter: saturate(0.85) contrast(1.05) brightness(1.06); }
.mq-footer-brand a { color:#ffc82c; text-decoration:none; }
.mq-footer-brand a:hover { text-decoration:underline; }
main > h1 { font-family:'Anton',sans-serif; text-transform:uppercase; letter-spacing:.01em;
  font-size:clamp(30px, 5.4vw, 46px); line-height:1.02; }

/* ==== MQX Motion (Nov 18, 2026) — the immersive layer, after
   immersive-g.com: scroll reveals, parallax drift, living glow.
   Transform/opacity only, and everything stops for
   prefers-reduced-motion. */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity .8s cubic-bezier(.22,.8,.3,1), transform .8s cubic-bezier(.22,.8,.3,1);
  transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
.mqx-hero-bg { animation: mqxKenburns 26s ease-in-out infinite alternate; }
@keyframes mqxKenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.09) translateY(-1.5%); } }
.mqx-hero::before, .mqx-hero::after { content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none; z-index: 0; }
.mqx-hero::before { width: 420px; height: 420px; right: -110px; top: -130px;
  background: radial-gradient(circle, rgba(255,200,44,.34), transparent 70%);
  animation: mqxDrift 15s ease-in-out infinite alternate; }
.mqx-hero::after { width: 380px; height: 380px; left: -120px; bottom: -150px;
  background: radial-gradient(circle, rgba(211,47,47,.30), transparent 70%);
  animation: mqxDrift 19s ease-in-out infinite alternate-reverse; }
@keyframes mqxDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(-36px, 30px) scale(1.13); } }
.mqx-hero-in { position: relative; z-index: 1; }
.mqx-grad { background-size: 200% 100%; animation: mqxShimmer 7s linear infinite; }
@keyframes mqxShimmer { to { background-position: 200% 0; } }
.mqx-count { animation: mqxPulse 2.6s ease-in-out infinite; }
@keyframes mqxPulse { 0%,100% { box-shadow: 0 0 0 rgba(255,200,44,0); } 50% { box-shadow: 0 0 22px rgba(255,200,44,.45); } }
.mqx-marquee { overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(43,2,10,.88), rgba(18,1,5,.92)); padding: 13px 0; }
.mqx-marquee-track { display: flex; width: max-content; white-space: nowrap;
  animation: mqxMarquee 32s linear infinite; }
.mqx-marquee-track span { font-family: 'Anton', sans-serif; text-transform: uppercase;
  letter-spacing: .14em; font-size: 15px; color: #ff2d2d; padding-right: .6em;
  text-shadow: 0 0 6px rgba(255, 150, 150, 0.9), 0 0 18px rgba(255, 45, 45, 0.9), 0 0 42px rgba(255, 0, 60, 0.6), 0 0 84px rgba(255, 0, 60, 0.35);
  animation: mqx-vegas 9s linear infinite; }
@keyframes mqx-vegas {
  /* Las Vegas neon (Dan, Nov 20, 2026): steady red tube glow with
     the classic sign flicker dips and one hot surge per cycle. */
  0%, 100% { text-shadow: 0 0 6px rgba(255, 150, 150, 0.9), 0 0 18px rgba(255, 45, 45, 0.9), 0 0 42px rgba(255, 0, 60, 0.6), 0 0 84px rgba(255, 0, 60, 0.35); opacity: 1; }
  3% { text-shadow: 0 0 3px rgba(255, 150, 150, 0.5), 0 0 8px rgba(255, 45, 45, 0.45), 0 0 18px rgba(255, 0, 60, 0.3); opacity: 0.8; }
  5% { text-shadow: 0 0 6px rgba(255, 150, 150, 0.9), 0 0 18px rgba(255, 45, 45, 0.9), 0 0 42px rgba(255, 0, 60, 0.6), 0 0 84px rgba(255, 0, 60, 0.35); opacity: 1; }
  6.5% { text-shadow: 0 0 4px rgba(255, 150, 150, 0.55), 0 0 10px rgba(255, 45, 45, 0.5), 0 0 22px rgba(255, 0, 60, 0.32); opacity: 0.88; }
  8%, 52% { text-shadow: 0 0 6px rgba(255, 150, 150, 0.9), 0 0 18px rgba(255, 45, 45, 0.9), 0 0 42px rgba(255, 0, 60, 0.6), 0 0 84px rgba(255, 0, 60, 0.35); opacity: 1; }
  55% { text-shadow: 0 0 8px rgba(255, 190, 190, 0.95), 0 0 26px rgba(255, 70, 70, 0.95), 0 0 60px rgba(255, 0, 60, 0.8), 0 0 120px rgba(255, 0, 60, 0.5); opacity: 1; }
  58% { text-shadow: 0 0 6px rgba(255, 150, 150, 0.9), 0 0 18px rgba(255, 45, 45, 0.9), 0 0 42px rgba(255, 0, 60, 0.6), 0 0 84px rgba(255, 0, 60, 0.35); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .mqx-marquee-track span { animation: none; } }
.mqx-marquee-track b { color: var(--gold); font-weight: 400;
  text-shadow: 0 0 10px rgba(255, 200, 44, 0.85), 0 0 26px rgba(255, 170, 0, 0.45); }
@keyframes mqxMarquee { to { transform: translateX(-50%); } }
.quest-mystery { animation: mqxBreathe 2.8s ease-in-out infinite; }
@keyframes mqxBreathe { 0%,100% { box-shadow: 0 0 12px var(--qglow); } 50% { box-shadow: 0 0 36px var(--qglow); } }
.mqx-card { position: relative; }
.mqx-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  transform: translateX(-130%); transition: transform .9s ease; }
.mqx-card:hover::after { transform: translateX(130%); }
.sack-card { animation: mqxPop .55s cubic-bezier(.22,.8,.3,1) both; }
.sack-card:nth-child(2) { animation-delay: .06s; } .sack-card:nth-child(3) { animation-delay: .12s; }
.sack-card:nth-child(4) { animation-delay: .18s; } .sack-card:nth-child(5) { animation-delay: .24s; }
.sack-card:nth-child(6) { animation-delay: .30s; } .sack-card:nth-child(7) { animation-delay: .36s; }
.sack-card:nth-child(8) { animation-delay: .42s; }
@keyframes mqxPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Character of the Day (roadmap #1, Nov 18) */
.mqx-cotd{display:grid;grid-template-columns:250px 1fr;gap:26px;align-items:center;zoom:0.75;
  max-width:1060px;margin:8px auto 30px;padding:24px;border-radius:22px;
  background:linear-gradient(180deg,#10231A,#0A1710);border:1px solid #22392B}
.mqx-cotd-art img{width:100%;border-radius:16px;display:block;
  box-shadow:0 18px 44px rgba(0,0,0,.5)}
.mqx-cotd-name{font-family:'Anton',sans-serif;font-size:42px;letter-spacing:.02em;
  text-transform:uppercase;color:#fff;line-height:1.05;margin:4px 0 10px}
.mqx-tier-pill{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.16em;
  padding:5px 12px;border-radius:999px;border:1px solid currentColor}
.mqx-tier-legendary{color:#FFC82C}.mqx-tier-epic{color:#EB7A2C}
.mqx-tier-rare{color:#77DFB8}.mqx-tier-common{color:#9FB4A4}
.mqx-tier-original{color:#FFC82C}
@media (max-width:700px){
  .mqx-cotd{grid-template-columns:1fr;gap:16px;padding:18px}
  .mqx-cotd-art{max-width:230px;margin:0 auto}
  .mqx-cotd-name{font-size:32px}
}

/* Display of the Day (Dan, Nov 26, 2026): the COTD panel language
   with a wide art column — the featured pin's real (landscape)
   thumbnail sits large instead of a portrait.
   Wide pass (Dan, Nov 26, later): "Above pip and make it wide like
   pips block" — the panel now takes the Meet Pip block's exact seat:
   the .mqx-guide viewport breakout (left 50% / translateX(-50%),
   width min(1100px, 100vw - 2rem), zoom .8, same gold border, glow
   background, padding and phone switch at 760px), so Display of the
   Day stacks edge-to-edge with Meet Pip directly beneath it.
   MQ-only: this stylesheet never loads on HauntMap, whose .dotd-card
   keeps the narrower card Dan previewed. */
.mqx-dotd{position:relative;left:50%;transform:translateX(-50%);
  width:min(1100px,calc(100vw - 2rem));zoom:0.8;margin-top:32px;
  display:grid;grid-template-columns:1fr 1.1fr;gap:34px;align-items:center;
  padding:30px 38px;border-radius:22px;
  background:
    radial-gradient(560px 300px at 12% 40%, rgba(255, 200, 44, 0.10), transparent 65%),
    linear-gradient(165deg, rgba(23, 18, 56, 0.96), rgba(9, 14, 10, 0.97));
  border:1px solid rgba(230, 177, 109, 0.5);
  box-shadow:0 0 24px rgba(64, 200, 255, 0.12)}
.mqx-dotd-art img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:16px;display:block;
  box-shadow:0 18px 44px rgba(0,0,0,.5)}
.mqx-dotd-name{font-family:'Anton',sans-serif;font-size:32px;letter-spacing:.02em;
  text-transform:uppercase;color:#fff;line-height:1.08;margin:4px 0 8px}
.mqx-dotd-town{color:#FFC82C;font-weight:700;margin:0 0 10px}
.mqx-dotd-ctas{margin:16px 0 0;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
@media (max-width:760px){
  .mqx-dotd{width:calc(100vw - 12px);zoom:1;margin-top:30px;
    grid-template-columns:1fr;gap:16px;padding:18px}
  .mqx-dotd-name{font-size:30px}
}

/* Hero logo plaque (Dan's emblem, Nov 18) */
.mqx-hero-logo{display:block;width:min(470px,88vw);height:auto;margin:0 auto 16px;
  border-radius:18px;border:1px solid rgba(230,177,109,.45);
  box-shadow:0 24px 60px rgba(0,0,0,.5),0 0 44px rgba(255,200,44,.10)}
.mqx-hero-bg-art{opacity:.62}
/* Clouds hero (Nov 18, 2026): Santa's sleigh loop above a cloud
   sea, the brand word written across the sky, Cartier-style. */
.mqx-hero-clouds { opacity: 0.94; animation: none; }
.mqx-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mqx-hero-word { margin: 0 0 10px; text-align: center; line-height: 0; }
.mqx-hero-word img {
  width: min(560px, 88%); height: auto;
  filter: drop-shadow(0 6px 22px rgba(6, 10, 30, 0.4)) drop-shadow(0 0 24px rgba(120, 220, 255, 0.2));
}
/* Splash lockup (Dan, Nov 19, 2026): the merryquest.app splash's Tron
   rule + CAPTURE THE MAGIC in Russo One, seated under the hero wordmark
   and above the headline — same treatment as the app door. */
.mqx-hero-rule {
  /* One continuous line (Dan, Nov 19, 2026): the center break is gone —
     a single Tron rule under the wordmark, fading at both ends. */
  height: 3px;
  margin: 2px auto 10px; width: min(560px, 88%);
  background: linear-gradient(90deg, transparent, rgba(120, 230, 255, 0.85) 18%, rgba(120, 230, 255, 0.85) 82%, transparent);
  box-shadow: 0 0 10px rgba(64, 200, 255, 0.6);
}
.mqx-hero-follow {
  /* Campaign line, first half (Dan, Nov 20, 2026): "Follow the
     lights" in front of Capture the Magic on BOTH sites — Russo One
     to match the lockup, gold with the same light-sweep + glow the
     splash carries. */
  font-family: "Russo One", sans-serif; font-weight: 400;
  font-size: clamp(16px, 2.7vw, 29px); letter-spacing: 0.14em; text-indent: 0.14em;
  text-transform: uppercase; text-align: center;
  margin: 0 0 4px;
  background: linear-gradient(100deg, #d9920d 0%, #ffc82c 38%, #fff3b0 50%, #ffc82c 62%, #d9920d 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 200, 44, 0.55)) drop-shadow(0 0 30px rgba(235, 122, 44, 0.30));
  animation: mqxFollowSweep 4.5s linear infinite;
}
@keyframes mqxFollowSweep { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@media (prefers-reduced-motion: reduce) { .mqx-hero-follow { animation: none; } }
.mqx-hero-magic {
  font-family: "Russo One", sans-serif; font-weight: 400;
  font-size: clamp(19px, 3.2vw, 34px); letter-spacing: 0.14em; text-indent: 0.14em;
  text-transform: uppercase; color: #ffffff; text-align: center;
  margin: 0 0 16px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55), 0 0 84px rgba(0, 120, 255, 0.35);
}
/* Epic Glow logo artwork (Dan, Nov 25, 2026 — "Put it everywhere"):
   Dan's finished lockup art is now the hero title, replacing the
   live-text .mqx-epic block above (those rules stay in the file,
   unreferenced). The art's baked near-black navy ground (#030d16)
   melts into the hero video via an elliptical mask feather on all
   four edges — opaque through the type, dissolving at the rim. */
/* Hero logo +15% and higher (Dan, Nov 25, 2026, from his live
   screenshot): the lockup renders 15% larger — width 115% of the
   hero column, capped at 920px (= the old 800px max-width × 1.15),
   centered on the column via left/transform since it now outgrows
   its container. On phones the lockup already spans nearly the
   full hero width, so 115% would breach the screen edges: the
   ≤760px rule below caps it at 104.5% of the column, which keeps
   ~8px+ of breathing room per side (≈+4.5% rendered at 390px).
   The hero's top padding also dropped to 11px above, putting the
   logo ~12px below the hero top at both viewports. */
.mqx-epic-art { position: relative; width: 115%; max-width: 920px; left: 50%; transform: translateX(-50%); margin: 0 auto 22px; line-height: 0; }
@media (max-width: 760px) { .mqx-epic-art { width: 104.5%; } }
/* Transparent Epic Glow lockup (Dan, Nov 25, 2026): the -clear
   WebP is luma-keyed from the original art — no baked ground, so
   no navy halo and no mask feather; the lockup floats directly
   on the hero video. */
.mqx-epic-art img {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
}

/* Big countdown (Nov 18, 2026): poster numerals under the hero
   CTAs, mirrored on the merryquest.app splash. */
.mqx-bigcd { display: flex; justify-content: center; gap: clamp(16px, 4vw, 40px); margin: 20px 0 4px; }
.mqx-bigcd-cell { text-align: center; min-width: 74px; }
.mqx-bigcd-cell span {
  display: block; font-family: "Luckiest Guy", var(--mqx-display); font-weight: 400;
  font-size: clamp(46px, 8.5vw, 88px); line-height: 1; color: #ffc82c;
  /* Paint robustness (Dan, Nov 26, 2026): no transform, no filter on
     the numerals. The old skewX + double drop-shadow filter put every
     digit on its own filtered composited layer, invalidated every
     second by the tick and stacked over the hero video — and one
     cell's repaint intermittently never landed on Dan's MacBook
     (blank HOURS one day, blank DAYS the next, with the correct
     digits sitting in the DOM the whole time: no script ever wrote
     an empty cell). The depth now comes from plain text-shadow,
     which paints with the glyphs themselves and cannot drop a cell.
     The mini countdown's cyan glow below overrides this shadow. */
  text-shadow: 0 4px 0 rgba(18, 43, 30, 0.55), 0 12px 24px rgba(0, 0, 0, 0.5);
}
.mqx-bigcd-cell label {
  display: block; margin-top: 8px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.32em; text-indent: 0.32em; text-transform: uppercase; color: #e6efe6;
}
/* Countdown zero state (Dan, Nov 25, 2026): once the launch moment
   passes, the JS hides the whole countdown box (cells + labels) and
   unhides this headline in the same slot — same Luckiest Guy gold
   display style as the numerals, sized down so the longer phrase
   fits the hero. The [hidden] rule below is needed because
   .mqx-bigcd's display:flex would otherwise beat the UA's
   [hidden] display:none. */
.mqx-bigcd[hidden] { display: none; }
.mqx-bigcd-done {
  font-family: "Luckiest Guy", var(--mqx-display); font-weight: 400;
  font-size: clamp(30px, 6.2vw, 64px); line-height: 1.05; color: #ffc82c;
  text-transform: uppercase; text-align: center;
  transform: skewX(-3deg);
  filter: drop-shadow(0 4px 0 rgba(18, 43, 30, 0.55)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  margin: 20px 0 4px;
}
/* Chapter 1 premiere countdown (Dan, Nov 25, 2026; the label
   read "Santa's chapter premieres in" until later that day, when
   Dan changed the wording to "Chapter 1 premieres in"): a
   secondary countdown under the "THE QUEST HAS BEGUN!" headline.
   Same .mqx-bigcd structure and labels at roughly half scale, with
   cyan glowing numerals (the splash countdown's treatment) so it
   reads as a sub-beat under the gold headline instead of competing
   with it. At zero the JS hides the numerals + label and unhides
   the "is here" line. */
.mqx-santacd { text-align: center; margin: 16px 0 2px; }
.mqx-santacd-label {
  /* Cinzel serif (Dan, Nov 25, 2026): the same font separation
     as the splash — the label must not sit in the begun
     headline's display face (Luckiest Guy here; Russo One on
     the splash), and Cinzel ties it to the logo family's serif. */
  font-family: "Cinzel", "Times New Roman", serif; font-weight: 700;
  font-size: clamp(13px, 2vw, 18px); letter-spacing: 0.14em; text-indent: 0.14em;
  text-transform: uppercase; color: #ffffff; margin: 0;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 18px rgba(120, 230, 255, 0.85), 0 0 42px rgba(0, 180, 255, 0.55);
}
.mqx-bigcd-mini { gap: clamp(10px, 2.6vw, 26px); margin: 8px 0 2px; }
.mqx-bigcd-mini .mqx-bigcd-cell { min-width: 52px; }
.mqx-bigcd-mini .mqx-bigcd-cell span {
  font-size: clamp(26px, 4.6vw, 44px); color: #aef4ff;
  text-shadow: 0 0 8px rgba(160, 240, 255, 0.8), 0 0 22px rgba(0, 180, 255, 0.6), 0 0 48px rgba(0, 120, 255, 0.4);
}
.mqx-bigcd-mini .mqx-bigcd-cell label { margin-top: 6px; font-size: 10px; }
.mqx-santacd-done {
  font-family: "Luckiest Guy", var(--mqx-display); font-weight: 400;
  font-size: clamp(20px, 3.6vw, 34px); line-height: 1.05; color: #aef4ff;
  text-transform: uppercase; text-align: center;
  transform: skewX(-3deg);
  text-shadow: 0 0 8px rgba(160, 240, 255, 0.8), 0 0 22px rgba(0, 180, 255, 0.6), 0 0 48px rgba(0, 120, 255, 0.4);
  filter: drop-shadow(0 3px 0 rgba(18, 43, 30, 0.55)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
  margin: 8px 0 2px;
}
/* Driving loop banner (Nov 18, 2026). */
.mqx-drive { margin-top: 0; position: relative; overflow: hidden; border: 1px solid var(--mqx-line); background: #04070d; }
.mqx-drive-video {
  /* 15% smaller and uncropped (Dan, Nov 19, 2026): 85% width at the
     video's natural ratio, so the hologram pop-ups at the frame edges
     are no longer cut off by cover-cropping. */
  width: 85%; margin: 0 auto; display: block; height: auto; aspect-ratio: 1100 / 586; object-fit: cover;
}
.mqx-drive-cap {
  position: absolute; left: 0; right: 0; text-align: center; bottom: 16px; margin: 0;
  font-family: "Luckiest Guy", var(--mqx-display); font-size: clamp(18px, 2.6vw, 28px);
  color: #ffffff; text-transform: uppercase; transform: skewX(-3deg);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75); white-space: nowrap;
}
.mqx-drive-cap span { color: #ffc82c; }
@media (max-width: 760px) {
  /* Phone: the caption was running edge to edge and wrapping over the
     car — smaller, inset to the video's frame, capped width. */
  .mqx-drive-cap { font-size: clamp(10px, 2.9vw, 14px); left: 0; right: 0; bottom: 10px; max-width: none; }
}
/* Universe reveal lineup (Nov 18, 2026): the neon cast on a dark
   stage, UNKJD-style, ahead of the Nov 24 reveal drip. */
.mqx-universe {
  margin-top: 0; text-align: center; padding: 72px 18px 60px; zoom: 0.8;
  overflow: hidden; min-height: 88vh; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(1100px 480px at 50% -8%, rgba(88, 40, 140, 0.38), transparent 62%), linear-gradient(180deg, #0d0716, #060310);
  border: 1px solid rgba(150, 110, 220, 0.22);
}
/* Reveal eyebrow +80% (Dan, Nov 26, 2026): ONLY the purple
   "The reveal begins Nov 30" line scales — 12px -> 21.6px (x1.8);
   tracking is em-based so it grows in proportion; headline,
   portraits, labels and the lines below are untouched. */
.mqx-universe .mqx-eyebrow { color: #c9a7ff; font-size: 21.6px; }
.mqx-lineup {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 10px;
  padding: 22px 12px 6px; position: relative; z-index: 3;
  background: radial-gradient(60% 90px at 50% 100%, rgba(255, 170, 60, 0.14), transparent 70%);
}
.mqx-fig { margin: 0; flex: 1 1 0; min-width: 0; position: relative; display: block; text-decoration: none;
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.25); transform-origin: 50% 100%; }
.mqx-fig img { height: auto; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: top center; border-radius: 16px; display: block;
  transition: box-shadow 0.38s ease, filter 0.38s ease; }
/* Minority-Report hover (Dan, Nov 19, 2026): the card surges toward
   the viewer — pop + holo ring + scanlines + HUD caption. */
.mqx-fig::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 4 / 5;
  border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(140, 230, 255, 0.07) 0 2px, transparent 2px 5px); }

.mqx-fig:hover { transform: translateY(-16px) scale(1.17); z-index: 5; }
.mqx-fig:hover::before { opacity: 1; }
.mqx-fig:hover img { filter: saturate(1.15) brightness(1.1) drop-shadow(0 0 20px rgba(255, 200, 44, 0.45));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(255, 200, 44, 0.8), 0 0 46px rgba(64, 200, 255, 0.6); }
.mqx-fig-name { transition: color 0.3s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease; }
.mqx-fig:hover .mqx-fig-name { color: #aee6ff; letter-spacing: 0.14em; text-shadow: 0 0 14px rgba(64, 200, 255, 0.65); }
@media (prefers-reduced-motion: reduce) { .mqx-fig, .mqx-fig img { transition: none; } .mqx-fig:hover { transform: none; } }
.mqx-fig-center { flex-grow: 1.18; }

.mqx-fig-name { display: block; text-align: center;
  margin-top: 10px; font-family: "Luckiest Guy", var(--mqx-display); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #efeaff;
}
.mqx-universe-note { color: #bdb2d9; margin: 20px 0 0; font-size: 15px; }
.mqx-universe-next { color: #ffd98a; margin: 8px 0 0; font-size: 15.5px; }
.mqx-universe-next b { color: #ffe9b0; }
@media (max-width: 760px) {
  /* Phone Universe (Dan, Nov 19, 2026): the scroll strip clipped the
     outer figures mid-portrait. The block goes nearly full-bleed at
     full size, and the lineup becomes a poster grid — Santa large on
     top, the other four in pairs — so every character is big and
     nothing is cut off. */
  /* Centering fix (Dan, Nov 28, 2026): the bleed margins + left:50% /
     translateX(-50%) + 100vw stack shifted the block off-center on
     iPhone Safari — headings clipped on both sides, portraits running
     off the right edge. One mechanism only: widen past the wrap's
     14px side padding by exact percentages, no vw, no transform. */
  .mqx-universe { zoom: 1; position: relative; left: auto; transform: none;
    width: calc(100% + 16px); margin-left: -8px; margin-right: -8px;
    padding: 44px 14px 40px; min-height: 0; }
  .mqx-lineup { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px;
    align-items: start; overflow: visible; padding-bottom: 0; }
  .mqx-fig { width: auto; }
  .mqx-fig-center { grid-column: 1 / -1; order: -1; }
  .mqx-fig img { height: auto; width: 100%; aspect-ratio: 1; }
  .mqx-fig-center img { height: auto; width: 100%; aspect-ratio: 1; }
  .mqx-fig::before { height: auto; aspect-ratio: 1; }
  .mqx-fig-center::before { height: auto; aspect-ratio: 1; }
}

/* Character story pages (Nov 19, 2026): /characters/<slug> */
.mqx-char { max-width: 980px; margin: 0 auto; padding: 28px 18px 72px; }
.mqx-char-back { color: #aee6ff; font-weight: 700; font-size: 14.5px; text-decoration: none; letter-spacing: 0.04em; }
.mqx-char-back:hover { color: #ffc82c; }
.mqx-char-hero { display: flex; gap: 32px; align-items: center; margin-top: 22px; }
.mqx-char-portrait { width: 290px; height: 290px; object-fit: cover; object-position: top center; border-radius: 20px; flex: 0 0 auto;
  border: 2px solid #e6b16d; box-shadow: 0 0 0 4px rgba(7, 8, 26, 0.9), 0 0 30px rgba(255, 200, 44, 0.3), 0 0 52px rgba(64, 200, 255, 0.22); }
.mqx-char-tier { display: inline-block; font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 12px;
  letter-spacing: 0.22em; padding: 6px 13px; border-radius: 999px; border: 1.5px solid; margin-bottom: 14px; }
.mqx-char-tier.mqx-tier-legendary { color: #ffc82c; border-color: rgba(255, 200, 44, 0.75); box-shadow: 0 0 14px rgba(255, 200, 44, 0.3); }
.mqx-char-tier.mqx-tier-epic { color: #ff9a5c; border-color: rgba(255, 140, 60, 0.75); box-shadow: 0 0 14px rgba(255, 140, 60, 0.3); }
.mqx-char-tier.mqx-tier-rare { color: #7ce7ff; border-color: rgba(120, 220, 255, 0.75); box-shadow: 0 0 14px rgba(64, 200, 255, 0.3); }
.mqx-char-tier.mqx-tier-original { color: #ffd7f0; border-color: rgba(255, 160, 220, 0.75); box-shadow: 0 0 14px rgba(255, 160, 220, 0.3); }
.mqx-char-name { font-family: 'Russo One', sans-serif; font-size: clamp(36px, 6vw, 60px); line-height: 1.04; margin: 0 0 12px; color: #f4feff;
  text-shadow: 0 0 18px rgba(64, 200, 255, 0.45), 0 0 46px rgba(64, 200, 255, 0.22); }
.mqx-char-flavor { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 19.5px; line-height: 1.5; color: #c3cede; margin: 0; }
.mqx-char-media { width: 100%; display: block; border-radius: 18px; margin-top: 34px;
  border: 1px solid rgba(120, 220, 255, 0.4); box-shadow: 0 0 26px rgba(64, 200, 255, 0.22); }
.mqx-char-story-h { margin-top: 38px; }
.mqx-char-story { font-size: 18.5px; line-height: 1.78; color: #dbe4f5; max-width: 730px; margin: 0; }
.mqx-char-ctas { margin-top: 32px; }
.mqx-char-others { margin-top: 46px; border-top: 1px solid rgba(120, 220, 255, 0.18); padding-top: 24px; }
.mqx-char-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.mqx-char-chips a { background: rgba(27, 20, 64, 0.85); color: #aee6ff; border: 1px solid rgba(120, 220, 255, 0.45);
  border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 700; text-decoration: none; }
.mqx-char-chips a:hover { color: #ffc82c; border-color: rgba(255, 200, 44, 0.7); }
@media (max-width: 760px) {
  .mqx-char-hero { flex-direction: column; text-align: center; gap: 20px; }
  .mqx-char-portrait { width: 218px; height: 218px; }
  .mqx-char-story { font-size: 17px; }
  .mqx-char-chips { justify-content: center; }
}

/* Just Added ticker chip recolor (Dan, Nov 26, 2026): "make the just
   added button not yellow but something blueish like the logo color."
   The shared .nt-chip rule in style.css paints the chip with
   var(--accent) (gold on MQ, orange on HauntMap). This MQ-only
   override swaps in the logo lockup's icy azure — sampled median hue
   ~199° from merryquest-logo-v3-clear.webp — with white text.
   HauntMap's chip is untouched. */
body.brand-merryquest .mq-ticker .nt-chip { background: #0E7EC2; color: #fff; }

/* ---------- Header nav: BIGGER + SPREAD (Dan, Nov 26, 2026) ----------
   Dan's screenshot: the nav links read small and clustered, and
   "Santa's Sack" wrapped onto two lines. Fix, desktop first: links go
   14px -> 19px with real button padding, the nav gives up its
   centered cluster and distributes space-evenly across the full bar
   between the wordmark and the Log in / Join buttons, and every label
   is nowrap — NO label ever wraps, at any width (the Sack guarantee).
   Steps down at narrower laptop widths only as far as the one-line
   guarantee allows. Phone keeps its own full-width nav row, at a
   larger 16px with comfortable gaps and horizontal scroll instead of
   today's off-screen clip (Games currently runs past the edge).
   SHIP NOTE: bump the merryquest-rail.css ?v= tag in base.html in the
   same commit (service worker serves CSS cache-first by full URL).
   Nav links -10% + Log in / Join free -20% (Dan, 2026-11-29): every
   .mqx-nav a font-size/padding below is 0.9x the Nov 26 sizing
   (desktop 19px -> 17.1px, 11px 14px -> 9.9px 12.6px; phone 16px ->
   14.4px), and the 761-1023px login/join rule is 0.8x like the base
   .mqx-login/.mqx-join rules above. */
.mqx-header .mqx-nav { flex-wrap: nowrap; }
.mqx-header .mqx-nav a { white-space: nowrap; }
@media (min-width: 761px) {
  .mqx-header .mqx-nav {
    position: static; transform: none; flex: 1 1 auto; max-width: none;
    justify-content: space-evenly; gap: 8px; margin: 0;
  }
  .mqx-header .mqx-nav a { font-size: 17.1px; font-weight: 700; padding: 9.9px 12.6px; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .mqx-header .mqx-nav a { font-size: 15.75px; padding: 9px 8.1px; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .mqx-header-in { gap: 14px; }
  .mqx-header .mqx-nav a { font-size: 13.5px; padding: 8.1px 4.5px; }
  .mqx-header .mqx-actions { gap: 8px; }
  .mqx-header .mqx-login, .mqx-header .mqx-join { font-size: 10.4px; padding: 6.4px 9.6px; }
}
@media (max-width: 760px) {
  .mqx-header .mqx-nav {
    justify-content: flex-start; gap: 20px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    padding: 4px 2px;
  }
  .mqx-header .mqx-nav::-webkit-scrollbar { display: none; }
  .mqx-header .mqx-nav a { font-size: 14.4px; font-weight: 700; padding: 7.2px 1.8px; }
}


/* ---------- Build My Tour band + New on the Map rail (Nov 26) ----------
   The band directly under the hero originally paired the rail
   with the tour section; Dan (Nov 26, later) moved the rail down
   beside Meet Pip (.mqx-piprow at the end of this file), so the
   band now carries the restored tour section alone, full width.
   The rail reuses the .wn-rail family; the overrides below give
   it the MQ purple/gold cast and restore the circular badge the
   generic MQ rail skin hides (the badge here is MQ art — Pip's
   portrait (mq-pip-badge.jpg, Dan, Nov 26) — not HauntMap's map
   badge). */
.mqx-railband { margin-top: 2.4rem;
  /* The .mqx-wrap column is narrow (~648px); wide MQ sections
     escape it with the .mqx-bleed trick. The band bleeds the same
     way but caps its grid at the 1180px content measure, centered. */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: 0 max(20px, calc((100vw - 1180px) / 2)); box-sizing: border-box; }
@media (min-width: 1000px) {
  /* Rail relocated beside Meet Pip (Dan, Nov 26, later): the band
     now holds only the restored tour section, full width. */
  .mqx-railband { display: grid; grid-template-columns: 1fr;
    gap: 1.1rem; align-items: start; }
}
.mqx-railband .wn-rail { grid-area: auto; }
.mqx-railband .auto-tour-home { margin: 0; }
/* The shared stylesheet's one-copy rule hides .auto-tour-home at
   >=761px unless it is a hero-stack copy — HauntMap renders its
   panel inside .hero-stack, MerryQuest has no hero stack, so the
   band's panel opts back in explicitly. */
@media (min-width: 761px) {
  body.brand-merryquest .mqx-railband .auto-tour-home { display: block; }
}
@media (max-width: 999px) {
  .mqx-piprow .mqx-newmap { margin-bottom: 0; }
}
body.brand-merryquest .mqx-newmap {
  background: linear-gradient(165deg, rgba(58, 28, 110, 0.38), rgba(14, 7, 30, 0.55));
  border: 1px solid rgba(255, 200, 44, 0.30);
  box-shadow: 0 0 18px rgba(120, 70, 220, 0.25);
}
body.brand-merryquest .mqx-newmap .wn-rail-badge {
  display: block;
  box-shadow: 0 0 16px rgba(255, 200, 44, 0.55), 0 0 3px rgba(255, 200, 44, 0.8);
}
body.brand-merryquest .mqx-newmap .wn-rail-tagline { color: #ffc82c; letter-spacing: 0.05em; }
/* Rail display type = the "Follow the Lights" font (Dan, Nov 26):
   the campaign lockup's .follow/.magic lines are set in Russo One
   (countdown_merryquest.html), self-hosted at the top of this file —
   NOT Cinzel, which the splash reserves for the premiere label.
   Display text only (title, group header, tagline), echoing the
   lockup's uppercase on the two small lines; the row text stays in
   the body sans, matching the site-wide convention that Russo One
   is a display face. */
body.brand-merryquest .mqx-newmap .wn-rail-title {
  font-family: "Russo One", "Inter", sans-serif; letter-spacing: 0.03em;
}
body.brand-merryquest .mqx-newmap .wn-rail-group {
  font-family: "Russo One", "Inter", sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.06em;
}
body.brand-merryquest .mqx-newmap .wn-rail-tagline {
  font-family: "Russo One", "Inter", sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
}
body.brand-merryquest .mqx-newmap .wn-rail-all {
  background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--mq-line);
  color: #ffc82c;
}
.mqx-tourpanel-own { margin: 0.7rem 0 0; font-size: 0.88rem; }
.mqx-tourpanel-own a { color: #ffc82c; text-decoration: none; font-weight: 600; }
.mqx-tourpanel-own a:hover { text-decoration: underline; }

/* ---------- Restored .mqx-tour inside the rail band (Dan restore, Nov 26) ----------
   The original section's own geometry (width: calc(113.37vw - 2.67px);
   margin-left: calc(50% - 42.5vw - 203px); margin-top: 56px) escaped
   the narrow .mqx-wrap column it used to sit in. Inside the band the
   section is centered in the band's cell instead; every other rule —
   card background, gold border, padding, zoom, centered type,
   spirit field — is the section's own, untouched.
   Width (Dan, Nov 26, later): "Build my [tour] has to be the same
   width as the display drive video below it." The drive video
   (.mqx-drive-video) renders at 85% of its full-bleed section's
   content box, (100vw - 2px) * 0.85; the tour renders at zoom
   0.75, so its layout width divides that measure by 0.75 —
   calc(113.3333vw - 2.2667px) — and the two blocks land on the
   same rendered width, centered, edges aligned (DOM-verified:
   1086.3px each at a 1280px viewport). */
.mqx-railband .mqx-tour {
  width: calc(113.3333vw - 2.2667px); margin: 0; justify-self: center;
}

/* ---------- Rail slim + long + scroll (Dan, Nov 26) ----------
   Dan: match HauntMap's What's New rail — "very thin", long and
   scrollable. DOM-measured on the live sites (1280px viewport):
   HM's .wn-rail element renders exactly 252px wide, and the MQ
   rail must render at that same 252px — Dan, on the piprow
   screenshot: "new on the map has to thinner like on the
   HauntMap site." The rail's seat (.mqx-piprow, below) renders
   at zoom 0.8 (the Capture the Magic seat), so the rail's
   layout width is 252 / 0.8 = 315px and its layout min-height
   526 / 0.8 = 657.5px, rendering at 252 x 526 with its rows
   scrolling internally under the fixed head (Pip badge + title
   + tagline stay put) with an MQ purple/gold scrollbar. Phone
   keeps the stacked full-width rail and the shared 320px
   scroll cap. */
@media (min-width: 1000px) {
  .mqx-piprow .mqx-newmap { width: 315px; justify-self: start; min-height: 657.5px; }
  .mqx-piprow .mqx-newmap .wn-rail-scroll { flex: 1 1 0; min-height: 0; max-height: none; }
}
body.brand-merryquest .mqx-newmap .wn-rail-scroll {
  scrollbar-width: thin; scrollbar-color: #ffc82c #1b0f33;
}
body.brand-merryquest .mqx-newmap .wn-rail-scroll::-webkit-scrollbar { width: 8px; }
body.brand-merryquest .mqx-newmap .wn-rail-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffc82c, #c9920e); border-radius: 4px;
}
body.brand-merryquest .mqx-newmap .wn-rail-scroll::-webkit-scrollbar-track { background: #1b0f33; }

/* ---------- Meet Pip + rail row (Dan, Nov 26, later) ----------
   Dan: "the new on the map block goes down by the pip intro
   block" — then, on seeing it seated right: "Left side of pip
   the start block" — and the row itself takes the Capture the
   Magic block's width ("make Pip the Star block the same width
   as Capture the Magic block"). So the row wears the .mqx-split
   seat verbatim: width min(1100px, 100vw - 2rem) at zoom 0.8,
   centered by the left-50% / translateX recipe, phone at zoom 1
   and calc(100vw - 12px) — the two blocks render at the same
   width with their edges aligned (DOM-verified: 880px each at a
   1280px viewport, 378px each at 390px). Desktop: the rail
   takes the left column (315px layout = HauntMap's 252px
   rendered at this seat's zoom), Pip's block the flexible
   remainder; her block is REFLOWED ONLY — the breakout
   centering it used as a standalone section (left 50% /
   translateX / fixed width / the 0.8 shrink that fitted it to
   the old measure) is neutralized in this seat, and the row's
   own zoom gives it back its standalone 0.8 scale. Medal,
   copy, chips, colors — untouched. DOM order stays Pip first
   so that under 1000px the row stacks Pip first, rail under
   her; the desktop swap is done with explicit grid placement
   below. */
.mqx-piprow {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100vw - 2rem)); zoom: 0.8;
  margin-top: 44px;
  display: grid; grid-template-columns: 1fr; gap: 1.1rem; align-items: start;
}
@media (min-width: 1000px) {
  .mqx-piprow { grid-template-columns: 315px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mqx-piprow { zoom: 1; width: calc(100vw - 12px); margin-top: 30px; }
}
.mqx-piprow .wn-rail { grid-area: auto; }
.mqx-piprow .mqx-guide {
  position: static; left: auto; transform: none;
  width: auto; margin-top: 0; zoom: 1;
}
/* Desktop placement: rail in the left column (315px layout,
   HauntMap's 252px at this seat's zoom), Pip's block in the
   flexible right column, same row — the DOM keeps Pip first
   for the stacked phone layout. */
@media (min-width: 1000px) {
  .mqx-piprow .mqx-newmap { grid-column: 1; grid-row: 1; }
  .mqx-piprow .mqx-guide { grid-column: 2; grid-row: 1; }
}

/* ---------- Tour-card spirits: visible by default (Dan fix, Nov 26) ----------
   Root cause of the "empty block": the four cast portraits in the
   restored Build My Tour card are .mqx-spirit images, whose base
   state is opacity: 0 — they only appear when the scroll
   IntersectionObserver adds .alive. Any render where the observer
   hasn't fired yet (screenshots, first paint, a missed threshold)
   shows a bare card, which is exactly what Dan caught. The tour
   card's four now render in their bloomed end-state by default —
   same opacity, filter, settle transform and drift as .alive —
   so the card is never empty; the observer's toggle can no longer
   hide them (equal specificity, these rules come later), and the
   bloom transition still plays for the other haunted sections,
   whose design is unchanged. */
.mqx-tour .mqx-spirit {
  opacity: 0.5;
  filter: saturate(1.06) brightness(1.03) blur(0);
  transform: translateY(0) scale(1) rotate(var(--tilt, 0deg));
  animation: mqx-spirit-drift 7.5s ease-in-out 1.5s infinite alternate;
}
@media (max-width: 760px) {
  .mqx-tour .mqx-spirit { opacity: 0.34; }
}
@media (prefers-reduced-motion: reduce) {
  .mqx-tour .mqx-spirit {
    opacity: 0.32; transform: none; filter: none; animation: none;
  }
}
