/* ─────────────────────────────────────────────────────────────
   Skyline Guesser — "Wordle for cities"
   NYT-Games / Framed inspired. Dark map, silhouette hero,
   tile-flip share grid, subtle grain, gold-foil moments.
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,800;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --bg:            #07080c;
  --bg-raised:    #11131a;
  --bg-card:      #181b24;
  --bg-elev:      #1f2330;
  --fg:           #f5f0e3;   /* warm cream */
  --fg-dim:       #b6b0a1;
  --fg-muted:     #6f6b5e;

  /* Accents */
  --accent:       #f5b544;
  --accent-2:     #f7d27b;   /* light gold */
  --accent-ink:   #1a1205;
  --accent-deep:  #c17f12;
  --success:      #7ac084;
  --sky:          #5aa7c7;

  --line:         #23283a;
  --line-soft:    #171a25;

  --radius:       12px;
  --radius-lg:    18px;
  --header-h:     56px;
  --footer-h:     84px;

  --serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

/* Subtle grain overlay — sits above the whole UI */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.88  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1000;
}

#app { width: 100vw; height: 100vh; position: relative; }

.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
}
.screen.active { display: flex; }

/* ─── Shared type helpers ─── */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--fg-muted);
}
.gold-foil {
  background: linear-gradient(
    180deg,
    #fff4d6 0%,
    #fae29b 20%,
    #e5b55e 45%,
    #c48a2e 60%,
    #fae29b 78%,
    #fff4d6 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(245, 181, 68, 0.25));
}

/* ═══════════════════════════════════════════════════════════
   START SCREEN
   ═══════════════════════════════════════════════════════════ */
#start {
  align-items: center;
  justify-content: center;
  padding: 32px 24px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(245,181,68,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(90,167,199,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0a0c12 0%, var(--bg) 60%);
}

/* Skyline silhouette hero — two-layer parallax at bottom */
.hero-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-skyline svg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-skyline .far {
  opacity: 0.4;
  transform: translateY(6px);
}
.hero-skyline .near {
  opacity: 0.9;
}

.start-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 180px; /* reserve space above silhouette */
}

.brand {
  margin-bottom: 18px;
  position: relative;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(56px, 16vw, 120px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff8ea 0%, #d8cdb3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 220, 140, 0.1));
}
.brand-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 5vw, 26px);
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-top: -4px;
}
.tagline {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto 28px;
}

.stats {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px -20px rgba(0,0,0,0.6);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 26px;
  border-right: 1px solid var(--line);
  min-width: 90px;
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value.accent {
  background: linear-gradient(180deg, #fae29b 0%, #c48a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  font-weight: 600;
}

.play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 260px;
  min-height: 58px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd77a 0%, var(--accent) 60%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  border: none;
  cursor: pointer;
  box-shadow:
    0 10px 30px -8px rgba(245, 181, 68, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.15);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.play-cta:active { transform: translateY(1px) scale(0.99); }
.play-cta:hover {
  box-shadow:
    0 14px 40px -8px rgba(245, 181, 68, 0.65),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.15);
}

.date-line {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   PLAY SCREEN
   ═══════════════════════════════════════════════════════════ */
.play-header {
  height: var(--header-h);
  min-height: var(--header-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
/* Progress line under header */
.play-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  width: var(--progress, 0%);
  transition: width 500ms var(--ease-out);
  box-shadow: 0 0 12px rgba(245,181,68,0.6);
}
.round-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 500;
}
.round-pill b {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--fg);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.score-chip {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.score-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  font-weight: 600;
  margin-right: 8px;
}

.photo-stage {
  position: relative;
  flex: 0 0 48%;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
/* Top vignette for header blend */
.photo-stage::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,12,0.5) 0%, transparent 15%, transparent 70%, rgba(7,8,12,0.75) 100%);
  pointer-events: none;
  z-index: 2;
}
/* Inner-ring frame */
.photo-stage::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(245,181,68,0.08), inset 0 0 80px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 3;
}
.photo-stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.09);
  filter: saturate(1.05) contrast(1.05);
  transition: opacity 800ms var(--ease-out), transform 5500ms var(--ease-out);
}
.photo-stage img.loaded {
  opacity: 1;
  transform: scale(1.0);
}
.photo-hint {
  position: absolute;
  left: 20px; bottom: 18px;
  z-index: 4;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms 500ms var(--ease-out), transform 600ms 500ms var(--ease-out);
}
.photo-stage.ready .photo-hint {
  opacity: 1;
  transform: translateY(0);
}
.photo-attr {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 4;
  background: rgba(7,8,12,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg-dim);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  max-width: 55%;
  text-align: right;
  line-height: 1.3;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.06);
}
.photo-attr a { color: inherit; text-decoration: none; }
.photo-attr a:hover { color: var(--fg); }

#map, #result-map {
  flex: 1;
  background: #0a0e1a;
  position: relative;
}

.play-footer {
  height: var(--footer-h);
  min-height: var(--footer-h);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.guess-hint {
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.01em;
  flex: 1;
}
.guess-hint.ready { color: var(--success); font-weight: 500; }

/* ─── Buttons ─── */
.primary {
  background: linear-gradient(180deg, #ffd77a 0%, var(--accent) 60%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), filter 140ms var(--ease-out);
  font-family: var(--sans);
  min-height: 52px;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 22px -8px rgba(245, 181, 68, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.15);
}
.primary:active { transform: translateY(1px) scale(0.99); }
.primary:disabled {
  background: var(--bg-card);
  color: var(--fg-muted);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid var(--line);
  filter: none;
}
.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--sans);
  min-height: 46px;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.secondary:hover { border-color: var(--fg-dim); background: var(--bg-raised); }

/* ═══════════════════════════════════════════════════════════
   ROUND-RESULT SCREEN
   ═══════════════════════════════════════════════════════════ */
.result-card {
  padding: 22px 20px 26px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  position: relative;
}
.result-card::before {
  content: "";
  position: absolute;
  left: 50%; top: -1px;
  width: 100px; height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.result-city {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(30px, 8vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 4px;
  animation: rise 500ms var(--ease-out);
}
.result-country {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  align-items: baseline;
}
.result-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.result-stat .v {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.result-stat .v.accent {
  background: linear-gradient(180deg, #fae29b 0%, #c48a2e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.result-stat .l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FINAL SCREEN
   ═══════════════════════════════════════════════════════════ */
#final {
  align-items: center;
  justify-content: flex-start;
  padding: 36px 20px 40px;
  overflow-y: auto;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(245,181,68,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(90,167,199,0.05) 0%, transparent 60%),
    var(--bg);
}
.final-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.final-puzzle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--fg-dim);
  margin-bottom: 24px;
}

.final-score-wrap {
  margin-bottom: 10px;
  animation: rise 700ms 100ms both var(--ease-out);
  position: relative;
}
.final-score {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(96px, 24vw, 168px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(
    180deg,
    #fff4d6 0%,
    #fae29b 18%,
    #e5b55e 42%,
    #b87d1f 58%,
    #fae29b 80%,
    #fff4d6 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(245, 181, 68, 0.22));
  position: relative;
}
.final-max {
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 30px;
}

/* The share card — HERO */
.share-card {
  width: 100%;
  max-width: 360px;
  padding: 22px 22px 22px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-raised) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  position: relative;
  animation: rise 700ms 250ms both var(--ease-out);
  box-shadow:
    0 32px 80px -32px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
.share-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.share-card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.share-card-score {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ─── Tile share grid ─── */
.share-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 6px 0 2px;
}
.tile {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  position: relative;
  opacity: 0;
  transform: rotateX(-90deg) scale(0.9);
  transform-origin: center;
  transform-style: preserve-3d;
  animation: tile-flip 520ms var(--ease-spring) forwards;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 14px -4px rgba(0,0,0,0.5);
}
.tile::after {
  /* subtle top-left gloss */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 40%);
  pointer-events: none;
}
.tile-green  { background: linear-gradient(165deg, #88d69a 0%, #4f9f67 100%); }
.tile-yellow { background: linear-gradient(165deg, #f5cc62 0%, #c99a24 100%); }
.tile-orange { background: linear-gradient(165deg, #f2a360 0%, #c16a1f 100%); }
.tile-red    { background: linear-gradient(165deg, #e5775a 0%, #a63f25 100%); }
.tile-black  { background: linear-gradient(165deg, #2f333f 0%, #16181f 100%); }

.tile:nth-child(1) { animation-delay: 60ms; }
.tile:nth-child(2) { animation-delay: 180ms; }
.tile:nth-child(3) { animation-delay: 300ms; }
.tile:nth-child(4) { animation-delay: 420ms; }
.tile:nth-child(5) { animation-delay: 540ms; }

@keyframes tile-flip {
  0%   { opacity: 0; transform: rotateX(-90deg) scale(0.9); }
  60%  { opacity: 1; transform: rotateX(10deg) scale(1.02); }
  100% { opacity: 1; transform: rotateX(0deg) scale(1); }
}

.share-card-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

.streak-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 24px;
  font-size: 13px;
  color: var(--fg-dim);
}
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}
.streak-badge b {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.final-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.final-hint {
  color: var(--fg-muted);
  font-size: 13px;
  margin-bottom: 32px;
  max-width: 320px;
  line-height: 1.5;
}
.countdown {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.attributions {
  width: 100%;
  max-width: 500px;
  text-align: left;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.attributions h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  color: var(--fg-dim);
  font-weight: 600;
}
.attributions ul { list-style: none; }
.attributions li { margin-bottom: 6px; }
.attributions a { color: var(--fg-dim); text-decoration: underline; text-decoration-color: var(--line); }
.attributions a:hover { color: var(--fg); }
.attribution-footer { margin-top: 14px; font-size: 11px; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: calc(var(--footer-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  z-index: 1100;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Map markers ─── */
.guess-pin, .truth-pin {
  width: 22px; height: 22px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 0 2px rgba(0,0,0,0.5);
}
.guess-pin {
  background: var(--accent);
  border: 3px solid var(--accent-ink);
}
.truth-pin {
  background: var(--success);
  border: 3px solid #0d1f12;
  position: relative;
}
.truth-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: 0;
  animation: pulse 1600ms ease-out infinite;
}

/* ─── Animations ─── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%   { opacity: 0.8; transform: scale(0.8); }
  80%  { opacity: 0;   transform: scale(1.5); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* MapLibre attribution — tidy, dark-friendly */
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left {
  opacity: 0.75;
}
.maplibregl-ctrl-attrib {
  font-size: 10px !important;
  background: rgba(7,8,12,0.65) !important;
  color: var(--fg-muted) !important;
}
.maplibregl-ctrl-attrib a { color: var(--fg-dim) !important; }
.maplibregl-ctrl-group {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.6) !important;
}
.maplibregl-ctrl-group button {
  filter: invert(0.9) hue-rotate(180deg) brightness(1.1);
}

/* ─── Responsive tweaks ─── */
@media (min-width: 768px) {
  .photo-stage { flex: 0 0 44%; }
  .share-card { max-width: 420px; }
}
@media (max-height: 700px) {
  .photo-stage { flex: 0 0 42%; }
  .brand { margin-bottom: 14px; }
  .stats { margin-bottom: 22px; }
  .start-content { padding-bottom: 140px; }
  .hero-skyline { height: 160px; }
}
