/* ============================================================
   HAPPY HOUR ATLAS — Pixel Arcade redesign
   Day / Night theming · full-bleed pixel skylines · mascot
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Neon accent palette (shared) */
  --neon:        #ff4dcb;   /* magenta */
  --neon-2:      #2de2ff;   /* cyan */
  --gold:        #ffcb45;   /* amber */
  --lime:        #9bff5b;

  --radius: 4px;
  --pixel-shadow: 4px 4px 0 0;
  --maxw: 1200px;
}

/* NIGHT (default dark) */
:root,
[data-theme="night"] {
  --bg:        #0c0a1a;
  --bg-2:      #14102a;
  --surface:   #1b1638;
  --surface-2: #241d4a;
  --line:      #3a2f6b;
  --line-soft: #2a2350;
  --text:      #f3eeff;
  --text-mut:  #b3a9d6;
  --text-dim:  #8479ad;
  --accent:    var(--neon);
  --accent-2:  var(--neon-2);
  --hero-text: #ffffff;
  --scrim-top:    rgba(12,10,26,0.20);
  --scrim-bot:    rgba(12,10,26,0.96);
  --card-glow: 0 0 0 1px var(--line), 0 6px 24px -8px rgba(0,0,0,0.7);
  /* sticky header + clean hero copy panel */
  --header-bg:   rgba(12,10,26,0.86);
  --header-line: #3a2f6b;
  --hero-panel-bg: #14102a;
  --hero-title-color: #ffffff;
}

/* DAY (light) */
[data-theme="day"] {
  --bg:        #fbf4e6;
  --bg-2:      #f4e8d2;
  --surface:   #ffffff;
  --surface-2: #fdf6ea;
  --line:      #e2cfa6;
  --line-soft: #efe2c8;
  --text:      #2b2140;
  --text-mut:  #6b5a52;
  --text-dim:  #9a8676;
  --accent:    #b8328a;        /* deep magenta reads on cream */
  --accent-2:  #1593b8;        /* teal */
  --gold:      #c9881a;
  --hero-text: #2b2140;
  --scrim-top:    rgba(8,12,30,0.10);
  --scrim-bot:    rgba(8,8,22,0.70);
  --card-glow: 0 0 0 1px var(--line), 0 8px 22px -12px rgba(120,90,40,0.45);
  /* sticky header + clean hero copy panel */
  --header-bg:   rgba(251,244,230,0.88);
  --header-line: #d8c19a;
  --hero-panel-bg: #fbf4e6;
  --hero-title-color: #2b2140;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background .45s ease, color .45s ease;
  overflow-x: hidden;
}
img { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* Scanline texture overlay for arcade feel (very subtle) */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.035) 2px 3px);
  mix-blend-mode: multiply;
  opacity: .5;
}
[data-theme="day"] body::after { opacity: .25; }

/* ============================================================
   STICKY HEADER (persists while scrolling through cards)
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 2px solid var(--header-line);
  transition: background .45s ease, border-color .45s ease;
}
/* Inner box matches the body content column (maxw + same side padding),
   so the dropdown's left edge and toggle's right edge line up with the
   search box / cards below. */
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 40px);
}
/* LEFT zone: city dropdown aligned to content-column left edge */
.topbar-left  { position: relative; display: flex; align-items: center; justify-self: start; }
/* RIGHT zone: theme toggle aligned to content-column right edge */
.topbar-right { position: relative; display: flex; align-items: center; gap: 12px; justify-self: end; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hero-panel-bg);
  transition: background .45s ease;
}

/* --- Day/night art tiles: shared cross-fade engine --- */
.sky-img { position: relative; overflow: hidden;
  border: 2px solid var(--header-line); box-shadow: 3px 3px 0 0 rgba(0,0,0,.35); }
.sky-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .55s ease; }
.sky-img .lm-day   { opacity: 0; }
.sky-img .lm-night { opacity: 1; }
[data-theme="day"] .sky-img .lm-day   { opacity: 1; }
[data-theme="day"] .sky-img .lm-night { opacity: 0; }

/* --- Edge art: large mascot cityscapes bleeding off the page sides ---
   The art is scaled up BIG (no stretching: tiles keep the source 3:4 ratio)
   and anchored so it overflows the viewport edge. Only a sliver shows at
   normal widths; more reveals as the window widens. */
.hero-edge-art {
  position: absolute; top: 16px; z-index: 1;
  pointer-events: none;
}
.hero-edge-art.left  { left: 0; }
.hero-edge-art.right { right: 0; }
.hero-edge-art .sky-img {
  height: clamp(560px, 80vh, 1040px);
  aspect-ratio: 3 / 4;          /* matches source images — no distortion */
  width: auto;
}
/* Bleed each tile off the screen edge so its inner edge lands at the
   content-column edge — the art never crosses into the readable copy.
   Only a sliver shows at normal widths; the full image is revealed as the
   window widens past the 1200px content column. Formula: visible width =
   (100vw - maxw)/2 + side-padding, so margin = that - tile width (540). */
.hero-edge-art.left  .sky-img { margin-left:  min(-120px, calc(50vw - 1100px)); }
.hero-edge-art.right .sky-img { margin-right: min(-120px, calc(50vw - 1100px)); }
.hero-edge-art .sky-img img { object-fit: cover; }

/* --- Atlas side art: frames the venue listing, reusing the pure-cityscape
   tiles (pieces 1 & 2) at large scale. Anchored to the TOP of the venue grid
   (the .venue-frame wrapper starts at the first card row) and bleeds off the
   viewport edges exactly like the hero edge art. Does not repeat. --- */
.venue-frame { position: relative; }
/* Each anchor is a viewport-edge "window": it spans from the viewport edge to
   the content-column edge (the side margin) and clips its overflow, so the
   large tile inside bleeds off the page edge WITHOUT creating horizontal
   scroll. The `top` is set by JS (alignAtlasArt) to match the first card row.
   Window width = (100vw - content column)/2 ; min 0 so it vanishes when the
   window is narrower than the content column. */
.atlas-edge-art {
  position: absolute; top: 0; z-index: 0;
  height: clamp(560px, 80vh, 1040px);
  width: max(0px, calc((100vw - var(--maxw)) / 2 + clamp(16px,4vw,40px)));
  overflow: hidden;
  pointer-events: none;
}
.atlas-edge-art.left  { left: 50%;  margin-left: -50vw; }
.atlas-edge-art.right { right: 50%; margin-right: -50vw; }
.atlas-edge-art .sky-img {
  position: absolute; top: 0;
  height: 100%;
  aspect-ratio: 3 / 4;          /* matches source images — no distortion */
  width: auto;
}
/* Anchor the tile to the INNER edge of each window (the content-column side)
   so its inner edge meets the cards; the rest runs off the page edge. */
.atlas-edge-art.left  .sky-img { right: 0; }
.atlas-edge-art.right .sky-img { left: 0; }
.atlas-edge-art .sky-img img { object-fit: cover; }

/* --- Art area: standalone mascot (blue) + stacked cityscapes (purple) --- */
.hero-art {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: stretch; gap: clamp(14px, 2vw, 26px);
  align-self: stretch;
}
/* Purple box: two non-mascot cityscapes stacked vertically (~2:1 portrait) */
.sky-stack {
  display: grid; grid-template-rows: 1fr 1fr; gap: 10px;
  width: clamp(180px, 20vw, 280px);
  height: clamp(300px, 38vw, 480px);
  align-self: center;
}
.brand { display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--hero-title-color); justify-self: center; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--accent); color: #fff;
  box-shadow: var(--pixel-shadow) rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.85);
}
[data-theme="day"] .brand-mark { border-color: rgba(0,0,0,.25); }
.brand-text {
  font-family: var(--font-pixel); font-size: 13px; line-height: 1.4;
  letter-spacing: 1px; color: var(--hero-title-color); white-space: nowrap;
}
.brand-text b { color: var(--gold); }

/* City button — large, eye-catching, conveys clickability */
.city-btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 24px; font-weight: 500;
  color: var(--hero-title-color); background: var(--surface-2);
  border: 2px solid var(--line);
  padding: 11px 18px; cursor: pointer;
  box-shadow: var(--pixel-shadow) rgba(0,0,0,.3);
  transition: transform .1s, background .2s, color .2s;
}
.city-btn:hover { background: var(--accent); color: #fff; transform: translate(-1px,-1px); }
.city-btn #city-switcher-label { letter-spacing: .5px; }
.city-btn .pin  { flex: 0 0 auto; }
.city-btn .chev { opacity: .8; flex: 0 0 auto; }

.city-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: 248px; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 2px solid var(--line);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,.4);
}
.city-dropdown-head {
  font-family: var(--font-pixel); font-size: 9px; color: var(--text-dim);
  padding: 14px 14px 10px; letter-spacing: 1px;
}
.city-list { list-style: none; margin: 0; padding: 0 8px 10px; }
.city-list button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; color: var(--text);
  background: none; border: none; padding: 9px 8px; cursor: pointer;
}
.city-list button:hover { background: var(--surface-2); color: var(--accent); }
.city-list button.active { color: var(--accent); font-weight: 500; }
.city-active-dot { width: 8px; height: 8px; background: var(--line);
  box-shadow: inset 0 0 0 2px var(--surface); flex: 0 0 8px; }
.city-list button.active .city-active-dot { background: var(--accent); }

/* Theme toggle (day/night) */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 2px solid var(--line);
  padding: 8px 11px; cursor: pointer;
  font-family: var(--font-pixel); font-size: 8px; color: var(--hero-title-color);
  box-shadow: var(--pixel-shadow) rgba(0,0,0,.3);
  transition: transform .1s;
}
.theme-toggle:hover { transform: translate(-1px,-1px); }
.tt-track { position: relative; width: 34px; height: 16px; background: var(--bg);
  border: 2px solid var(--line); display: inline-block; }
.tt-knob { position: absolute; top: 0; left: 0; width: 14px; height: 12px;
  background: var(--gold); transition: left .2s steps(3); }
[data-theme="day"] .tt-knob { left: 16px; background: var(--neon-2); }
.tt-day  { color: var(--gold); opacity: .4; }
.tt-night{ color: var(--neon-2); opacity: 1; }
[data-theme="day"] .tt-day  { opacity: 1; }
[data-theme="day"] .tt-night{ opacity: .4; }

/* --- Hero inner: copy (clean panel) + art area ---
   Constrained to the same content column (maxw + side padding) as the
   leaderboard / search box / cards, so the hero copy's LEFT edge lines up
   with everything below it. The edge art lives outside this column and
   bleeds off-screen behind it. */
.hero-inner {
  position: relative; z-index: 3;
  flex: 1; display: flex; align-items: stretch; justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px,5vw,60px) clamp(16px, 4vw, 40px) clamp(20px,3vw,40px);
}
.hero-copy { flex: 1 1 auto; max-width: 560px; align-self: center;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--pixel-shadow) rgba(0,0,0,.3);
  padding: 22px 24px; }
.kicker {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 2px;
  color: var(--gold); margin: 0 0 16px;
}
.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(26px, 5vw, 56px);
  line-height: 1.18; margin: 0; color: var(--hero-title-color);
}
.hero-title span { color: var(--neon); display: inline-block; margin-top: .35em;
  text-shadow: 0 0 18px rgba(255,77,203,.35); }
[data-theme="day"] .hero-title span { color: var(--accent); text-shadow: none; }
.hero-sub {
  font-family: var(--font-mono); font-size: clamp(15px,1.7vw,19px);
  color: var(--text-mut); margin: 22px 0 26px; max-width: 480px;
}

.hero-stats { display: flex; gap: clamp(16px,3vw,40px); margin-bottom: 30px; }
.hstat { display: flex; flex-direction: column; gap: 6px; }
.hstat-num { font-family: var(--font-pixel); font-size: clamp(18px,2.6vw,28px); color: var(--hero-title-color); }
.hstat-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--accent-2); }

.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel); font-size: 11px; color: #14102a;
  background: var(--gold); padding: 16px 22px;
  border: 2px solid #000; box-shadow: 5px 5px 0 0 rgba(0,0,0,.4);
  transition: transform .1s, box-shadow .1s;
}
.hero-cta:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 0 rgba(0,0,0,.4); }
.hero-cta:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 0 rgba(0,0,0,.4); }

/* Blue box: large standalone mascot only, clean background */
.hero-mascot { position: relative; align-self: flex-end; z-index: 3;
  width: clamp(170px, 19vw, 260px); pointer-events: none; }
.mascot { width: 100%; height: auto; filter: drop-shadow(6px 8px 0 rgba(0,0,0,.35));
  animation: bob 4.5s ease-in-out infinite; }
.mascot-day { display: none; }
.mascot-night { display: block; }
[data-theme="day"] .mascot-day { display: block; }
[data-theme="day"] .mascot-night { display: none; }
.mascot-plinth { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 70%; height: 14px; background: radial-gradient(ellipse at center, rgba(0,0,0,.45), transparent 70%);
  z-index: -1; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }

/* --- Leaderboard --- */
.leaderboard {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px) clamp(24px,4vw,44px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.lb-col {
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--pixel-shadow) rgba(0,0,0,.3);
  padding: 14px 16px;
}
/* City's BEST deals — large, forward header */
.lb-head { font-family: var(--font-pixel); font-size: 15px; letter-spacing: .5px;
  line-height: 1.5; color: var(--text); margin-bottom: 16px;
  display: flex; align-items: center; gap: 9px; }
.lb-ico { font-size: 22px; }
.lb-list { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.lb-list li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0;
  font-family: var(--font-mono); font-size: 15px; color: var(--text-mut); }
.lb-list li::before { counter-increment: lb; content: counter(lb);
  font-family: var(--font-pixel); font-size: 11px; color: var(--accent);
  flex: 0 0 18px; }
/* Price = the star of the show: biggest, boldest, glowing gold — “look how low!” */
.lb-price { color: var(--gold); font-weight: 700; flex: 0 0 auto;
  font-size: 19px; line-height: 1; letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(255,203,69,.35); }
.lb-venue { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-empty { color: var(--text-dim); font-style: italic; }

/* ============================================================
   ATLAS
   ============================================================ */
.atlas { max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px,6vw,72px) clamp(16px,4vw,40px) 90px; }

/* Filter console */
.console {
  background: var(--surface); border: 2px solid var(--line);
  box-shadow: var(--pixel-shadow) rgba(0,0,0,.3);
  padding: 18px clamp(14px,2.5vw,22px); margin-bottom: 26px;
}
.console-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.console-row + .console-row { margin-top: 14px; padding-top: 14px;
  border-top: 2px dashed var(--line-soft); }
.row-label { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 1px;
  color: var(--text-dim); flex: 0 0 auto; }

.console-search { gap: 12px; }
.search-wrap { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.search-ico { position: absolute; left: 12px; color: var(--text-dim); }
#search-input {
  width: 100%; font-family: var(--font-body); font-size: 17px; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--line);
  padding: 13px 38px 13px 38px;
}
#search-input::placeholder { color: var(--text-dim); }
#search-input:focus { outline: none; border-color: var(--accent); }
.search-clear { position: absolute; right: 8px; display: none; cursor: pointer;
  background: none; border: none; color: var(--text-dim); font-size: 22px; line-height: 1; padding: 4px; }
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--accent); }

.hh-select {
  font-family: var(--font-mono); font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--line);
  padding: 12px 15px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 36px;
}
.hh-select:focus { outline: none; border-color: var(--accent); }
.when-group { flex: 0 0 auto; }

/* Day pills */
.day-row { gap: 7px; }
.day-pill {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .5px;
  color: var(--text-mut); background: var(--surface-2);
  border: 2px solid var(--line); padding: 10px 12px; cursor: pointer;
  transition: transform .08s, background .15s, color .15s;
}
.day-pill:hover { color: var(--text); transform: translateY(-1px); }
.day-pill.active { color: #14102a; background: var(--gold); border-color: #000;
  box-shadow: 3px 3px 0 0 rgba(0,0,0,.35); }

/* Chips */
.chip-row { gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1 1 auto; }
.chip {
  font-family: var(--font-mono); font-size: 15px;
  color: var(--text-mut); background: var(--surface-2);
  border: 2px solid var(--line); padding: 8px 13px; cursor: pointer;
  transition: transform .08s, background .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent-2); transform: translateY(-1px); }
.chip.active { color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: 3px 3px 0 0 rgba(0,0,0,.3); }
[data-theme="day"] .chip.active { color: #fff; }

.reset-btn {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 1px;
  color: var(--text-dim); background: none; border: 2px solid var(--line);
  padding: 10px 13px; cursor: pointer; flex: 0 0 auto; margin-left: auto;
}
.reset-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Results header */
.results-header { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.results-count { font-family: var(--font-mono); font-size: 16px; color: var(--text-mut); margin: 0; }
.sort-wrap { display: flex; align-items: center; gap: 9px; }
.sort-wrap .hh-select { padding: 9px 32px 9px 13px; font-size: 15px;
  background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px; }

/* Region group label */
.region-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  margin: 30px 0 6px; }
.region-label:first-child { margin-top: 0; }
.region-label h2 { font-family: var(--font-pixel); font-size: 13px; letter-spacing: .5px;
  color: var(--accent); margin: 0; display: flex; align-items: baseline; gap: 10px; }
.region-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  letter-spacing: 0; }
.region-line { flex: 1; height: 2px; background: repeating-linear-gradient(to right,
  var(--line) 0 6px, transparent 6px 10px); }

/* ---------- Venue grid (cards) ---------- */
.venue-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

.venue-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 2px solid var(--line);
  box-shadow: var(--card-glow); cursor: pointer; padding: 0;
  transition: transform .12s, box-shadow .12s, border-color .12s;
  overflow: hidden;
}
.venue-card:hover { transform: translate(-2px,-3px);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 6px 9px 0 -2px rgba(0,0,0,.35); }
.venue-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.card-accent { height: 5px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.venue-card.is-michelin-star .card-accent { background: linear-gradient(90deg, var(--gold), #ff8a3d); }
.venue-card.is-rooftop .card-accent { background: linear-gradient(90deg, var(--neon-2), var(--lime)); }

.card-pad { padding: 16px 17px 17px; display: flex; flex-direction: column; flex: 1; gap: 10px; }

.card-head { display: flex; align-items: flex-start; gap: 8px; }
.card-name { font-family: var(--font-body); font-weight: 700; font-size: 20px;
  line-height: 1.25; color: var(--text); margin: 0; flex: 1; }
.card-badges { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; align-items: flex-end; }

.badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3px;
  padding: 3px 8px; border: 1.5px solid var(--line); color: var(--text-mut);
  white-space: nowrap; }
.badge-michelin-star { color: var(--gold); border-color: var(--gold); }
.badge-michelin-rec { color: var(--accent-2); border-color: var(--accent-2); }
.badge-rooftop { color: var(--lime); border-color: var(--lime); }
[data-theme="day"] .badge-rooftop { color: #4a8c1f; border-color: #4a8c1f; }
.badge-chef, .badge-jb-winner { color: var(--accent); border-color: var(--accent); }

.card-meta { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-dim);
  display: flex; flex-wrap: wrap; gap: 4px 8px; }
.card-meta .dot { opacity: .5; }

.card-timing { display: flex; flex-direction: column; gap: 3px;
  padding: 9px 11px; background: var(--surface-2); border-left: 3px solid var(--accent); }
.timing-hh-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
  letter-spacing: .3px; text-transform: uppercase; }
.timing-days { font-family: var(--font-body); font-weight: 700; font-size: 14.5px; color: var(--text); }
.timing-hours { font-family: var(--font-mono); font-size: 14.5px; color: var(--text-mut); }

.card-highlights { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.card-highlight-item { font-family: var(--font-body); font-size: 14.5px; color: var(--text-mut);
  line-height: 1.45; padding-left: 17px; position: relative; }
.card-highlight-item::before { content: "▸"; position: absolute; left: 0; color: var(--accent-2);
  font-size: 12px; top: 1px; }
.card-more { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 1px;
  color: var(--accent); margin-top: 4px; }

/* No results */
.no-results { text-align: center; padding: 70px 20px; }
.no-results-text { font-family: var(--font-mono); font-size: 16px; color: var(--text-mut); margin: 0 0 18px; }
.inline-reset { font-family: var(--font-pixel); font-size: 9px; color: #14102a; background: var(--gold);
  border: 2px solid #000; padding: 12px 18px; cursor: pointer; box-shadow: 3px 3px 0 0 rgba(0,0,0,.4); }

/* ============================================================
   COMING SOON
   ============================================================ */
.coming-soon-overlay { position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; background: rgba(12,10,26,.92); backdrop-filter: blur(8px); }
[data-theme="day"] .coming-soon-overlay { background: rgba(20,12,30,.85); }
.coming-soon-inner { text-align: center; max-width: 420px; padding: 30px;
  background: var(--surface); border: 2px solid var(--line); box-shadow: 8px 8px 0 0 rgba(0,0,0,.5); }
.coming-soon-title { font-family: var(--font-pixel); font-size: 26px; line-height: 1.3;
  color: var(--accent); margin: 0 0 18px; }
.coming-soon-sub { font-family: var(--font-mono); font-size: 15px; color: var(--text-mut); margin: 0 0 24px; line-height: 1.5; }
.coming-soon-back { font-family: var(--font-pixel); font-size: 9px; color: #14102a; background: var(--gold);
  border: 2px solid #000; padding: 13px 18px; cursor: pointer; box-shadow: 3px 3px 0 0 rgba(0,0,0,.4); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(8,6,18,.84); backdrop-filter: blur(6px); padding: 20px; }
.modal { position: relative; width: min(640px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 2px solid var(--line);
  box-shadow: 10px 10px 0 0 rgba(0,0,0,.55); }
.modal-close { position: sticky; top: 0; float: right; margin: 12px 14px -10px 0; z-index: 4;
  width: 34px; height: 34px; font-size: 16px; color: #fff; background: var(--accent);
  border: 2px solid #000; cursor: pointer; box-shadow: 2px 2px 0 0 rgba(0,0,0,.5); }
.modal-close:hover { background: var(--neon-2); color: #14102a; }
.modal-body { padding: 22px clamp(18px,3vw,30px) 30px; }

.modal-header { margin-bottom: 18px; }
.modal-hh-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.modal-name { font-family: var(--font-pixel); font-size: clamp(15px,2.4vw,20px); line-height: 1.4;
  color: var(--text); margin: 0 0 12px; }
.modal-meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  display: flex; flex-wrap: wrap; gap: 6px; }
.modal-meta-divider { opacity: .5; }
.modal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.modal-timing-block { display: flex; gap: 12px; margin: 18px 0;
  padding: 14px 16px; background: var(--surface-2); border-left: 4px solid var(--accent); }
.modal-timing-item { flex: 1; }
.modal-timing-item label { font-family: var(--font-pixel); font-size: 7px; letter-spacing: 1px;
  color: var(--text-dim); display: block; margin-bottom: 6px; }
.modal-timing-item p { font-family: var(--font-body); font-size: 14px; color: var(--text); margin: 0; line-height: 1.45; }

.modal-creative-block, .modal-vibe-block, .modal-location-block { margin: 16px 0; }
.modal-creative-label, .modal-vibe-label { font-family: var(--font-pixel); font-size: 8px; letter-spacing: 1px;
  color: var(--accent-2); margin-bottom: 8px; }
.modal-creative-lines { font-family: var(--font-mono); font-size: 13px; color: var(--text); margin-bottom: 6px; }
.creative-role { color: var(--text-dim); }
.creative-name { color: var(--text); font-weight: 500; }
.creative-sep { color: var(--text-dim); }
.creative-bg { font-family: var(--font-body); font-size: 13.5px; color: var(--text-mut); line-height: 1.55; margin: 6px 0 0; }
.modal-vibe { font-family: var(--font-body); font-size: 14.5px; color: var(--text-mut); line-height: 1.6; margin: 0; }

.modal-address { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-mut); margin-bottom: 10px; }
.modal-links { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-link { font-family: var(--font-mono); font-size: 13px; color: var(--text); background: var(--surface-2);
  border: 2px solid var(--line); padding: 9px 14px; transition: transform .1s, background .15s; }
.modal-link:hover { transform: translateY(-1px); border-color: var(--accent-2); }
.modal-link.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-link.primary:hover { background: var(--neon-2); color: #14102a; }

.modal-section { margin: 20px 0 0; }
.modal-section-title { font-family: var(--font-pixel); font-size: 10px; letter-spacing: .5px;
  color: var(--accent); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px dashed var(--line-soft); }
.modal-item-list { list-style: none; margin: 0; padding: 0; }
.modal-item { font-family: var(--font-body); font-size: 14px; color: var(--text); line-height: 1.5;
  padding: 6px 0 6px 18px; position: relative; border-bottom: 1px solid var(--line-soft); }
.modal-item::before { content: "•"; position: absolute; left: 2px; color: var(--accent-2); }
.modal-item.sub-item { padding-left: 30px; color: var(--text-mut); font-size: 13px; border-bottom: none; }
.modal-item.sub-item::before { content: "›"; left: 16px; }
.modal-item.section-break { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim); border-bottom: none; padding-left: 0; margin-top: 8px; }
.modal-item.section-break::before { content: ""; }
.modal-item.special-note { color: var(--gold); border-bottom: none; }
.modal-item.special-note::before { content: "✦"; color: var(--gold); }
.modal-verified { font-family: var(--font-mono); font-size: 12px; color: var(--lime);
  margin-top: 20px; }
[data-theme="day"] .modal-verified { color: #4a8c1f; }
.modal-verified-fp { color: var(--gold); margin-top: 4px; font-weight: 600; }
[data-theme="day"] .modal-verified-fp { color: #9a7b1a; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 2px solid var(--line); background: var(--bg-2); padding: 44px 20px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; position: relative; }
.footer-brand { font-family: var(--font-pixel); font-size: 16px; color: var(--text); letter-spacing: 1px; }
.footer-brand b { color: var(--accent); }
.footer-tagline { font-family: var(--font-mono); font-size: 13px; color: var(--text-mut);
  letter-spacing: 1px; margin: 14px 0 18px; }
.footer-note { font-family: var(--font-body); font-size: 12.5px; color: var(--text-dim);
  max-width: 560px; margin: 0 auto; line-height: 1.6; }
.dev-mode-link { display: inline-block; margin-top: 14px; font-family: var(--font-body);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--text-dim); opacity: .55; transition: opacity .15s ease, color .15s ease; }
.dev-mode-link:hover { opacity: 1; color: var(--neon-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* Edge-art margins don't fit on narrow screens — hide and reclaim padding */
  .hero-edge-art,
  .atlas-edge-art { display: none; }
  /* Stack hero: copy on top (clean panel), art area (mascot + cityscapes) below */
  .hero-inner { flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: clamp(18px,4vw,32px);
    padding: clamp(24px,5vw,48px) clamp(16px, 4vw, 40px) clamp(20px,3vw,40px); }
  .hero-copy { max-width: 100%; align-self: stretch; }
  .hero-art { width: 100%; align-self: stretch; justify-content: center;
    align-items: flex-end; gap: clamp(16px,4vw,32px); }
  .hero-mascot { align-self: flex-end; width: clamp(140px, 30vw, 210px); }
  .sky-stack { width: clamp(150px, 36vw, 240px); height: clamp(220px, 48vw, 320px); align-self: flex-end; }
  .leaderboard { grid-template-columns: 1fr; gap: 10px; }
  .brand-text { font-size: 11px; }
  .city-btn { font-size: 19px; }
}
@media (max-width: 560px) {
  .hero-art { flex-direction: column; align-items: center; }
  .hero-mascot { width: clamp(150px, 50vw, 200px); align-self: center; }
  .sky-stack { width: 100%; max-width: 320px; height: clamp(200px, 60vw, 300px); align-self: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px 24px; }
  .topbar-inner { grid-template-columns: 1fr auto 1fr; padding: 10px 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-text { font-size: 8px; letter-spacing: .5px; }
  .brand-mark { width: 28px; height: 28px; flex: 0 0 28px; }
  .city-btn { font-size: 15px; padding: 7px 10px; gap: 7px; }
  .city-btn .pin { width: 14px; height: 14px; }
  .city-btn .chev { width: 12px; height: 12px; }
  /* Compact toggle: drop the DAY/NIGHT words, keep the switch */
  .theme-toggle { padding: 7px 9px; gap: 0; }
  .tt-day, .tt-night { display: none; }
  .venue-grid { grid-template-columns: 1fr; }
  .row-label { width: 100%; }
  .reset-btn { margin-left: 0; }
  .city-dropdown { width: calc(100vw - 32px); left: -8px; }
}
