:root {
  --bg: #0a0a0b;
  --bg-2: #131316;
  --surface: #1a1a1f;
  --border: #2a2a31;
  --text: #ededee;
  --muted: #8a8a93;
  --accent: #ff2e93;
  --accent-2: #ff6fb5;
  --accent-dim: rgba(255, 46, 147, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 46, 147, 0.15), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 120%, rgba(255, 46, 147, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

.serif {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.italic-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.nav-links {
  display: flex; gap: 4px;
  font-size: 14px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-links a.active {
  color: var(--text);
  background: var(--accent-dim);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 100px 24px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero .tag .pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 10vw, 128px);
  line-height: 0.95;
  margin: 0 0 20px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
}
.hero p.sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero-cta {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--muted);
}

/* Stats strip */
.stats {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.stat .num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat .lbl {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Section */
section.block { padding: 60px 24px; }
section.block h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 8px;
  font-weight: 400;
}
section.block h2 .accent { color: var(--accent); font-style: italic; }
section.block .lede {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* Location cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(255, 46, 147, 0.4);
}
.card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--grad-a, #ff2e93), var(--grad-b, #6a00ff));
  opacity: 0.5;
}
.card .dim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 2;
}
.card .city {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.card .name {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 10px;
}
.card .meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.card .badge {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.15);
}
.card .badge .n { color: var(--accent-2); font-weight: 600; }

/* Location page */
.loc-hero {
  padding: 80px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.back-link {
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--text); }
.loc-title {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.loc-title h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 12vw, 140px);
  margin: 0; line-height: 0.9;
  font-weight: 400;
}
.loc-title .count-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 14px;
}
.loc-meta {
  display: flex; gap: 20px; color: var(--muted); font-size: 15px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.loc-blurb {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  max-width: 640px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
}

.gallery {
  max-width: 1100px;
  margin: 40px auto 120px;
  padding: 0 24px;
}
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 540px) { .gallery-grid { columns: 1; } }
.photo {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
}
.photo img, .photo video {
  width: 100%; display: block;
}
.photo.placeholder {
  aspect-ratio: var(--ar, 4/5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  background:
    linear-gradient(135deg, var(--grad-a, #2a2a31), var(--grad-b, #1a1a1f));
}

/* Map */
.map-wrap {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 500px;
}
#map {
  width: 100%; height: 100%;
  background: #0a0a0b;
}
.map-panel {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 400;
  background: rgba(19, 19, 22, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  max-width: 320px;
  color: var(--text);
}
.map-panel h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  margin: 0 0 4px;
  font-weight: 400;
}
.map-panel .city { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.map-panel .count {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 13px;
  margin-bottom: 14px;
}
.map-panel p { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.map-panel .view-more {
  color: var(--accent);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
}
.map-panel .close-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: none; border: none;
  color: var(--muted);
  cursor: pointer; font-size: 18px;
}

/* Custom map marker */
.custom-pin {
  background: var(--accent);
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 0 4px rgba(255, 46, 147, 0.25), 0 4px 12px rgba(0,0,0,0.4);
  border: 2px solid #fff;
}
.custom-pin span { transform: rotate(45deg); }
.custom-pin.bar-pin {
  width: 30px; height: 30px;
  background: var(--accent-2);
  font-size: 11px;
  box-shadow: 0 0 0 3px rgba(255, 111, 181, 0.25), 0 2px 8px rgba(0,0,0,0.4);
}

.map-panel .panel-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.map-panel .panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-2);
  transition: all 0.15s;
}
.map-panel .panel-bar:hover {
  background: var(--accent-dim);
}
.map-panel .panel-bar .n {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 12px;
}

.map-legend {
  position: absolute;
  bottom: 20px; right: 20px;
  z-index: 400;
  background: rgba(19, 19, 22, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
}
.map-legend .row { display: flex; align-items: center; gap: 8px; }
.map-legend .swatch {
  width: 40px; height: 8px; border-radius: 4px;
  background: linear-gradient(to right, rgba(255,46,147,0.15), rgba(255,46,147,1));
}

/* Wheel */
.wheel-page {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 30px;
}
.wheel-wrap {
  position: relative;
  width: min(500px, 90vw);
  aspect-ratio: 1;
}
.wheel-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 20px 40px rgba(255, 46, 147, 0.3));
  transition: transform 5s cubic-bezier(0.12, 0.72, 0.12, 1);
}
.wheel-pointer {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 30px solid var(--accent);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  z-index: 10;
}
.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--accent);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  z-index: 5;
  transition: all 0.15s;
}
.wheel-center:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}
.wheel-center:disabled { opacity: 0.5; cursor: wait; }

.wheel-result {
  max-width: 420px;
  width: 100%;
  text-align: center;
  min-height: 60px;
}
.wheel-result.show .msg {
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.wheel-result .msg {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.wheel-result .msg .accent { color: var(--accent); font-style: italic; }

/* Trivia */
.trivia {
  max-width: 640px;
  margin: 60px auto;
  padding: 0 24px;
}
.trivia-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  color: var(--muted); font-size: 13px;
}
.trivia-score { color: var(--text); font-weight: 600; }
.trivia-streak { color: var(--accent); }
.trivia-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
}
.trivia-clue {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.trivia-clue .count { color: var(--accent); }
.trivia-quote {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 32px;
  font-size: 15px;
}
.trivia-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.trivia-option {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.trivia-option:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.trivia-option.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}
.trivia-option.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
.trivia-option:disabled { cursor: default; }
.trivia-feedback {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
}
.trivia-feedback .correct-text { color: #4ade80; }
.trivia-feedback .wrong-text { color: #f87171; }
.trivia-next {
  margin-top: 16px;
}

/* Breadcrumbs + section titles used on city/bar pages */
.crumbs {
  display: flex; gap: 8px; align-items: center;
  color: var(--muted); font-size: 14px;
  margin-bottom: 32px;
}
.crumbs .back-link { margin: 0; }
.crumbs span { color: var(--border); }
.bars-section, .stray-section {
  margin-bottom: 60px;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 6px;
  font-weight: 400;
}
.section-title .accent { color: var(--accent); font-style: italic; }
.section-lede {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 80px;
}
footer .small { font-size: 11px; opacity: 0.6; margin-top: 6px; }
