:root {
  --bg: #070b14;
  --panel: #0d1526;
  --panel-2: #0f1a30;
  --line: #1e2b47;
  --text: #eaf0ff;
  --muted: #7f8fb3;
  --accent: #f6821f;
  --accent-2: #fbbf24;
  --blue: #3b82f6;
  --cyan: #22d3ee;
}

* { box-sizing: border-box; }

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

body { min-height: 100vh; overflow-x: hidden; position: relative; }

.aurora {
  position: fixed; inset: -20% -10% auto -10%;
  height: 70vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 20% 10%, rgba(246,130,31,0.22), transparent 70%),
    radial-gradient(45% 60% at 80% 0%, rgba(59,130,246,0.20), transparent 70%),
    radial-gradient(40% 50% at 50% 30%, rgba(34,211,238,0.12), transparent 70%);
  filter: blur(20px);
}

.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }

.masthead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 46px; }
.brand { font-weight: 800; letter-spacing: 0.22em; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.live { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.live.ok { color: var(--cyan); }

.hero { margin-bottom: 30px; }
.kicker { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.kicker strong { color: var(--accent-2); }
.hero h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.02; margin: 0; font-weight: 900; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.passport {
  display: grid; grid-template-columns: 210px 1fr;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.passport.stamped { transform: translateY(-3px); box-shadow: 0 40px 90px -40px rgba(246,130,31,0.5); }

.stub {
  padding: 26px 20px; border-right: 1px dashed var(--line);
  background: linear-gradient(180deg, rgba(246,130,31,0.10), rgba(246,130,31,0.02));
  display: flex; flex-direction: column; justify-content: space-between;
}
.badge { font-size: 10px; letter-spacing: 0.24em; color: var(--accent-2); font-weight: 700; }
.code { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 46px; letter-spacing: 0.02em; margin: 14px 0; color: #fff; }
.route { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }

.body { padding: 22px 26px; }
.rows { margin: 0; display: grid; gap: 2px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(30,43,71,0.55); }
.row:last-child { border-bottom: 0; }
.row dt { color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }
.row dd { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 14px; text-align: right; }
.row dd.accent { color: var(--accent-2); font-weight: 700; font-size: 17px; }

.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 14px; padding: 15px 22px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform .15s, filter .15s; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #1a0f00; flex: 1; min-width: 200px; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn:disabled { opacity: 0.7; cursor: default; }

.counter { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; min-height: 20px; }

/* Live edge pulse ticker */
.pulse {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  overflow: hidden;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulsedot 1.6s ease-in-out infinite; flex: none; }
@keyframes pulsedot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.pulse-feed { display: flex; gap: 16px; overflow: hidden; white-space: nowrap; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pulse-item { font-size: 13px; color: var(--muted); animation: pulsein 0.5s ease; }
.pulse-item b { color: var(--text); font-family: "JetBrains Mono", monospace; }
.pulse-item em { font-style: normal; opacity: 0.6; }
@keyframes pulsein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pulse-count { font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
@media (max-width: 560px) { .pulse-count { display: none; } }

/* Latency speedrun */
.speed { display: grid; gap: 14px; }
.speed-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.speed-box {
  flex: 1 1 90px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
}
.speed-box strong { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.speed-box strong em { font-size: 13px; font-weight: 600; color: var(--muted); font-style: normal; margin-left: 2px; }
.speed-box span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.speed-box.hl { border-color: var(--accent); background: linear-gradient(180deg, rgba(246,130,31,0.12), transparent); }
.speed-box.hl strong { color: var(--accent-2); }
.spark { width: 100%; height: 60px; display: block; }
.spark-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--cyan); }
.spark-floor { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.8; }
.speed-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.speed-verdict { color: var(--muted); font-size: 14px; }

.foot { margin-top: 54px; color: var(--muted); font-size: 13px; text-align: center; }
.foot .tiny { font-size: 11px; opacity: 0.7; }

.confetti { position: fixed; top: -12px; width: 8px; height: 14px; z-index: 5; animation: fall 1.8s linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: 0; } }

/* Edge cities directory */
.cities { margin-top: 54px; }
.cities-head h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; }
.cities-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.search { position: relative; margin-bottom: 16px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search input {
  width: 100%; padding: 15px 16px 15px 44px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(246,130,31,0.12); }
.search input::placeholder { color: #5b6b8f; }

.city-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.city-row {
  display: grid; grid-template-columns: 58px 1fr auto auto; align-items: center; gap: 14px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  transition: border-color .15s, transform .15s;
}
.city-row.discovered { border-color: rgba(246,130,31,0.35); }
.city-row:hover { transform: translateX(2px); border-color: var(--accent); }
.city-row .node { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 15px; color: #fff; }
.city-row .place { font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.city-row .place em { font-style: normal; color: var(--muted); font-size: 12px; }
.city-row .here { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(34,211,238,0.4); border-radius: 20px; padding: 2px 8px; }
.city-row .found { font-size: 12px; color: var(--muted); white-space: nowrap; }
.city-row .found.hot { color: var(--accent-2); font-weight: 700; }
.city-row .dir {
  font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 11px; white-space: nowrap; transition: all .15s;
}
.city-row .dir:hover { color: var(--accent-2); border-color: var(--accent); }
.city-empty { color: var(--muted); font-size: 14px; padding: 14px 4px; }
.city-row .owned { color: var(--accent-2); margin-left: 6px; font-size: 12px; }

/* Panels: collection, map, leaderboard */
.panel { margin-top: 54px; }
.panel-head h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; }
.panel-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-box {
  background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px;
}
.stat-box strong { font-size: 24px; font-weight: 800; }
.stat-box span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.ach {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 5px; opacity: 0.42; filter: grayscale(1); transition: all .2s;
}
.ach.on { opacity: 1; filter: none; border-color: rgba(246,130,31,0.4); box-shadow: 0 0 0 1px rgba(246,130,31,0.12) inset; }
.ach-icon { font-size: 22px; }
.ach-name { font-size: 13px; font-weight: 700; }
.ach-desc { font-size: 11px; color: var(--muted); line-height: 1.35; }

.stamp-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stamp-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-size: 13px;
}
.stamp-chip b { font-family: "JetBrains Mono", monospace; }
.stamp-chip em { font-style: normal; color: var(--muted); font-size: 11px; }
.linkbtn {
  background: none; border: none; color: var(--muted); font-size: 12px; font-family: inherit;
  cursor: pointer; text-decoration: underline; padding: 0; opacity: 0.7;
}
.linkbtn:hover { opacity: 1; color: var(--accent-2); }

.map { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(120% 120% at 30% 20%, #0e1730, #080d18); }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin-halo { fill: rgba(246,130,31,0.25); }
.pin-dot { fill: var(--accent-2); stroke: #0a0f1c; stroke-width: 1; }
.pin.now .pin-halo { fill: rgba(34,211,238,0.3); animation: pulse 1.8s ease-out infinite; }
.pin.now .pin-dot { fill: var(--cyan); }
.pin.nearest .pin-halo { fill: rgba(52,211,153,0.3); animation: pulse 1.8s ease-out infinite; }
.pin.nearest .pin-dot { fill: #34d399; }
.pin-you-halo { fill: rgba(255,255,255,0.18); }
.pin-you-dot { fill: #ffffff; stroke: #0a0f1c; stroke-width: 1.5; }
.near-line { stroke: #34d399; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.85; }
@keyframes pulse { 0% { r: 6; opacity: 0.9; } 100% { r: 16; opacity: 0; } }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-row { display: grid; grid-template-columns: 28px 52px 1fr 120px 48px; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.board-row .rank { font-weight: 800; color: var(--muted); font-size: 14px; }
.board-row .node { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 14px; }
.board-row .place { font-size: 14px; }
.board-row .bar { height: 8px; border-radius: 6px; background: #16203a; overflow: hidden; }
.board-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.board-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--accent-2); font-weight: 700; font-size: 14px; }

/* Daily challenge + streak */
.challenge { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.challenge.done { border-color: rgba(34,211,238,0.45); background: linear-gradient(160deg, rgba(34,211,238,0.08), var(--panel)); }
.challenge-main { display: flex; align-items: center; gap: 16px; }
.challenge-emoji { font-size: 34px; }
.challenge-text { display: flex; flex-direction: column; gap: 3px; }
.challenge-text strong { font-size: 18px; }
.challenge-text span { color: var(--muted); font-size: 14px; }
.challenge-side { display: flex; align-items: center; gap: 18px; }
.streak { display: flex; flex-direction: column; align-items: center; }
.streak-num { font-size: 26px; font-weight: 900; color: var(--accent-2); line-height: 1; }
.streak-lbl { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.progress { width: 160px; height: 10px; border-radius: 6px; background: #16203a; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.challenge-progress { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Anonymous standing */
.standing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stand-box { background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.stand-box strong { font-size: 24px; font-weight: 800; }
.stand-box span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stand-share { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

/* Achievement share button */
.ach { position: relative; }
.ach-share { margin-top: 6px; align-self: flex-start; background: rgba(246,130,31,0.12); border: 1px solid rgba(246,130,31,0.4);
  color: var(--accent-2); font-family: inherit; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.ach-share:hover { background: rgba(246,130,31,0.22); }

/* Badge share page */
.badge-view .badge-img { width: 100%; max-width: 720px; border-radius: 16px; border: 1px solid var(--line); margin: 16px 0; }

@media (max-width: 720px) {
  .standing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .board-row { grid-template-columns: 24px 46px 1fr 64px; }
  .board-row .bar { display: none; }
}

@media (max-width: 560px) {
  .city-row { grid-template-columns: 50px 1fr; row-gap: 8px; }
  .city-row .found { grid-column: 2; }
  .city-row .dir { grid-column: 2; justify-self: start; }
}

/* Shared passport page */
.shared .wrap { max-width: 560px; padding-top: 60px; }
.shared .passport { grid-template-columns: 1fr; }
.shared .stub { border-right: 0; border-bottom: 1px dashed var(--line); }
.shared .stub .code { font-size: 64px; }
.shared .passport h1, .shared .passport p { margin: 0; }
.shared .city { font-size: 26px; font-weight: 700; margin-top: 6px !important; }
.shared .org { color: var(--muted); margin-top: 6px !important; }
.shared .stat { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.shared .stat span { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.shared .stat strong { font-family: "JetBrains Mono", monospace; font-size: 30px; color: var(--accent-2); }
.cta { display: block; text-align: center; margin-top: 24px; color: var(--accent-2); text-decoration: none; font-weight: 700; }
.cta:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .passport { grid-template-columns: 1fr; }
  .stub { border-right: 0; border-bottom: 1px dashed var(--line); }
}


/* ---- Added: location hint, region ranking, legal pages ---- */
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 14px 0 0; }
.hint .approx { opacity: 0.6; font-size: 11px; }
.linkbtn.inline { display: inline; padding: 0; margin-left: 4px; font-size: 12.5px; }
.sub-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 22px 0 10px; }
.board.compact .board-row { grid-template-columns: 28px 1fr 48px; }
.board.compact .board-row .place { display: block; }

body.legal .wrap { max-width: 760px; }
body.legal .masthead { margin-bottom: 28px; }
body.legal .brand { font-family: "JetBrains Mono", monospace; font-weight: 700; letter-spacing: 0.04em; color: var(--fg); text-decoration: none; }
.prose { color: var(--fg); font-size: 15.5px; line-height: 1.7; }
.prose h1 { font-size: 30px; margin: 0 0 6px; }
.prose h2 { font-size: 17px; margin: 28px 0 8px; color: var(--accent-2); }
.prose p, .prose li { color: #c7d2e4; }
.prose a { color: var(--accent-2); }
.prose .meta { color: var(--muted); font-size: 13px; }
.prose .note { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 26px; }
.legal-table { border-collapse: collapse; width: 100%; margin-top: 12px; }
.legal-table th { text-align: left; padding: 8px 14px 8px 0; color: var(--muted); font-weight: 600; vertical-align: top; }
.legal-table td { padding: 8px 0; }

/* ---- Edge geography quiz ---- */
.quiz { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.quiz-head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.quiz-head b { color: var(--accent-2); font-size: 14px; }
.quiz-q { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--accent); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.right { border-color: #22c55e; background: rgba(34,197,94,0.14); }
.quiz-opt.wrong { border-color: #ef4444; background: rgba(239,68,68,0.12); }
.quiz-feedback { min-height: 20px; margin: 14px 0 0; font-size: 14px; color: var(--accent-2); }

/* ---- Edge twin ---- */
.twin-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.twin-actions .btn { flex: 0 0 auto; }
.twin-status { color: var(--muted); font-size: 13px; }
.passport.twin { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
.twin-flag { font-size: 54px; line-height: 1; }
.twin-flag.big { font-size: 72px; margin-bottom: 8px; }
.twin-head { font-size: clamp(24px, 5vw, 34px); margin: 10px 0 6px; font-weight: 900; }
.twin-grid { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0 6px; flex-wrap: wrap; }
.twin-col { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.twin-colo { font-family: "JetBrains Mono", monospace; font-size: 30px; font-weight: 800; color: var(--accent-2); }
.twin-city { font-size: 20px; font-weight: 700; }
.twin-you { color: var(--muted); font-size: 13px; }
.twin-rtt { font-family: "JetBrains Mono", monospace; font-size: 15px; color: var(--cyan); }
.twin-vs { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }

/* ---- Direct share row ---- */
.share-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.share-lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.share-row a, .share-row button { font-family: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--panel); transition: border-color .15s, color .15s; }
.share-row a:hover, .share-row button:hover { border-color: var(--accent); color: var(--accent-2); }
.share-x { color: var(--text); }
.share-wa:hover { border-color: #25d366 !important; color: #25d366 !important; }
.share-tg:hover { border-color: #29b6f6 !important; color: #29b6f6 !important; }

@media (max-width: 720px) {
  .quiz-options { grid-template-columns: 1fr; }
}


/* ---- City directory links ---- */
.place-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.place-link:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* ---- Single edge-city page ---- */
.city-view .badge { margin-bottom: 8px; }
.city-head { display: flex; align-items: center; gap: 18px; text-align: left; margin: 8px 0 6px; }
.city-flag { font-size: 56px; line-height: 1; }
.city-view .colo { font-family: "JetBrains Mono", monospace; font-size: 46px; font-weight: 800; margin: 0; letter-spacing: 0.02em; }
.city-view .city { font-size: 24px; font-weight: 700; margin: 2px 0; }
.city-stats { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin: 20px 0 6px; }
.city-stats .stat { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.city-stats .stat span { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.city-stats .stat strong { font-size: 22px; color: var(--accent-2); }
.city-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 4px; }
.city-actions .btn { text-decoration: none; flex: 0 0 auto; }
.city-view { text-align: center; }

/* ---- Install as an app (PWA) ---- */
.masthead-right { display: flex; align-items: center; gap: 12px; }
.install-btn { font: inherit; font-size: 13px; font-weight: 700; color: var(--accent);
  background: rgba(246,130,31,0.12); border: 1px solid rgba(246,130,31,0.4);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.15s; }
.install-btn:hover { background: rgba(246,130,31,0.2); transform: translateY(-1px); }
@media (max-width: 520px) {
  .install-btn { font-size: 12px; padding: 6px 10px; }
  .masthead-right { gap: 8px; }
}

/* ---- Today at your edge + fun facts ---- */
.today-banner { display: grid; gap: 10px; margin: 14px 0 4px; }
.today-event { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(246,130,31,0.14), rgba(246,130,31,0.04));
  border: 1px solid rgba(246,130,31,0.35); border-radius: 14px; }
.today-emoji { font-size: 26px; line-height: 1.2; flex: 0 0 auto; }
.today-event strong { display: block; font-size: 16px; }
.today-detail { display: block; font-size: 13px; opacity: 0.75; margin-top: 2px; }
.fun-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.fun-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5;
  padding: 10px 12px; background: rgba(255,255,255,0.03); border-radius: 12px; }
.ff-emoji { flex: 0 0 auto; font-size: 17px; }
#today-share { margin-top: 14px; }

/* ---- Region pages ---- */
.region-view .passport { text-align: center; }
.region-title { font-size: clamp(30px, 6vw, 46px); font-weight: 900; margin: 6px 0 4px; letter-spacing: -0.01em; }
.region-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.region-row { display: grid; grid-template-columns: 60px 1fr 56px; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.region-row .node { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 14px; color: #fff; }
.region-row .place-link { font-size: 14px; }
.region-row .found { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.region-row .found.hot { color: var(--accent-2); font-weight: 700; }

/* ---- Compare two edges ---- */
.compare-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.compare-picker select { flex: 1; min-width: 160px; font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; }
.compare-picker select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(246,130,31,0.12); }

@media (max-width: 560px) {
  .region-row { grid-template-columns: 52px 1fr 44px; gap: 8px; }
}


.faq { margin: 0; }
.faq dt { font-weight: 650; color: var(--fg); margin: 16px 0 4px; }
.faq dd { margin: 0 0 4px; color: #c7d2e4; font-size: 15px; line-height: 1.65; }
.faq dd a { color: var(--accent-2); }
