:root {
  --teal: #1fb3a1; --teal-deep: #0f7a6b; --red: #e2323f; --ink: #2b3538;
  --yellow: #ffd83a; --sand: #e8d9b5; --paper: #ffffff; --muted: #6b7478;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink);
  font: 15px/1.5 "Segoe UI", Tahoma, Arial, sans-serif; }
.bar { position: fixed; inset: 0 0 auto 0; height: 52px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; z-index: 5; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-end { display: flex; gap: 8px; }
.brand { margin: 0; font-size: 18px; color: var(--teal-deep); letter-spacing: .3px; }
.btn { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ink); color: #fff;
  font: inherit; cursor: pointer; min-height: 40px; }
.btn:focus-visible, .land:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
main, #map-view, #world-view { position: fixed; inset: 0; }
#map-view { display: grid; place-items: center; padding: 60px 16px 16px; }
#map-view svg { width: 100%; height: 100%; max-height: calc(100dvh - 76px); }
#stage { width: 100%; height: 100%; display: block; image-rendering: pixelated; outline: none; }
.land { cursor: pointer; transition: filter .15s; }
.land:hover, .land:focus { filter: brightness(1.08) drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.land.planned { cursor: default; }
.pin { cursor: pointer; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.panel { position: fixed; z-index: 6; inset: auto 16px 16px 16px; max-width: 380px; margin-inline-start: auto;
  background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 6px 28px rgba(0,0,0,.14); }
.panel .logo { display: block; max-width: 96px; max-height: 64px; object-fit: contain; margin-bottom: 8px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; }
.panel .tag { display: inline-block; background: var(--yellow); border-radius: 6px; padding: 0 8px; font-size: 12px; }
.panel .note { color: var(--muted); font-size: 13px; }
.panel .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
#fallback { position: fixed; inset: 0; display: grid; place-items: center; background: #fff; }
#fallback[hidden], [hidden] { display: none !important; }
