/* The city home page. All classes are prefixed city- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100svh; overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0c1024; color: #fff; line-height: 1.5;
}
.city-scene {
  --night: 0; --sky-top: #2f7fd6; --sky-bot: #a9dcf5;
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-bot) 85%);
}
.city-stars { position: absolute; inset: 0 0 35% 0; opacity: var(--night); pointer-events: none; }
.city-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: city-twinkle 3s ease-in-out infinite; }
@keyframes city-twinkle { 50% { opacity: .25; } }
.city-orb { position: absolute; width: 54px; height: 54px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.city-sun { background: radial-gradient(circle, #fffbe0 30%, #ffd96a 60%, rgba(255,217,106,0) 72%); box-shadow: 0 0 60px 20px rgba(255,214,120,.45); }
.city-moon { background: radial-gradient(circle at 38% 38%, #fffef2, #d8dcf0 70%); box-shadow: 0 0 40px 10px rgba(200,210,255,.3); width: 40px; height: 40px; }
.city-cloud { position: absolute; left: 0; height: 26px; width: 90px; border-radius: 40px; background: rgba(255,255,255,.85);
  filter: brightness(calc(1 - var(--night) * .6)); animation: city-drift linear infinite; will-change: transform; }
.city-cloud::before, .city-cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.city-cloud::before { width: 42px; height: 42px; left: 14px; top: -20px; }
.city-cloud::after { width: 30px; height: 30px; left: 44px; top: -12px; }
@keyframes city-drift { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 160px)); } }
.city-pan { position: absolute; left: 0; right: 0; bottom: 0; top: 96px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.city-pan::-webkit-scrollbar { display: none; }
.city-map { display: block; height: 100%; width: 100%; min-width: 760px; margin: 0 auto; max-width: 1280px; overflow: visible; }
.city-island { filter: brightness(calc(1 - var(--night) * .55)) saturate(calc(1 - var(--night) * .25)); }
.city-glow { opacity: var(--night); pointer-events: none; }
.city-head { position: absolute; z-index: 5; top: 1rem; left: 1.25rem; right: 6rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); pointer-events: none; }
.city-brand { margin: 0; font-size: 1.7rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.city-brand small { font-weight: 400; font-size: .95rem; opacity: .85; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; background: rgba(0,0,0,.28); text-shadow: none; white-space: nowrap; }
.city-tag { margin: .35rem 0 0; max-width: 28rem; font-size: .95rem; opacity: .92; }
.city-nav { position: absolute; z-index: 5; left: 0; right: 0; bottom: 1rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; padding: 0 1rem; }
.city-nav a { color: #fff; text-decoration: none; font-size: .92rem; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(15,20,40,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); transition: background .2s, border-color .2s; }
.city-nav a:hover, .city-nav a:focus-visible { background: rgba(15,20,40,.8); border-color: #e0b46c; outline: none; }
.city-building { cursor: pointer; outline: none; }
.city-building .city-hl { opacity: 0; transition: opacity .25s; }
.city-building:hover .city-hl, .city-building:focus-visible .city-hl { opacity: 1; }
.city-building .city-label { transition: transform .25s; }
.city-label:hover, .city-label.city-hot { transform: translateY(-4px); }
.city-label-bg { fill: rgba(15,20,40,.82); stroke: rgba(255,255,255,.35); }
.city-label text { fill: #fff; font: 600 15px system-ui, sans-serif; }
.city-label .city-sub { font-weight: 400; font-size: 11.5px; fill: #f0d9a8; }
.city-lotmark { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 5 5; }
.city-shimmer { animation: city-shimmer 3.5s ease-in-out infinite; }
@keyframes city-shimmer { 50% { opacity: .1; } }
.city-bob { animation: city-bob 3s ease-in-out infinite; }
@keyframes city-bob { 50% { transform: translateY(-2px); } }
@media (max-width: 700px) {
  .city-brand { font-size: 1.35rem; }
  .city-tag { font-size: .85rem; max-width: 18rem; }
  .city-pan { top: 110px; bottom: 3.5rem; }
  .city-map { min-width: 1000px; }
}
@media (prefers-reduced-motion: reduce) { .city-cloud, .city-star, .city-shimmer, .city-bob { animation: none; } }
