/* 布局：地图铺满整个窗口，其余全是浮层 */

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #a9d478;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 0%, #eef3d9 0%, #e0e9c8 45%, #cfdcb0 100%);
  cursor: grab;
  touch-action: none;
}

.viewport.dragging {
  cursor: grabbing;
}

#world {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  background: rgba(243, 234, 216, 0.55);
  backdrop-filter: blur(2px);
}

/* display:grid 会盖掉浏览器对 [hidden] 的默认 display:none */
.loading[hidden] {
  display: none;
}
