:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--el-panel);
}
[hidden] {
  display: none !important;
}
#globe-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 43%,
    var(--el-panel) 0%,
    var(--el-panel) 44%,
    var(--el-panel) 78%
  );
}
#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline: none;
}
#globe-canvas:active {
  cursor: grabbing;
}
#globe-canvas:focus-visible {
  outline: 2px solid var(--el-sun);
  outline-offset: -4px;
}
#globe-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.globe-label {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--el-ink);
  background: #07101dd9;
  border: 1px solid #ffffff24;
  box-shadow: 0 2px 8px #0004;
  will-change: transform;
}
.globe-label.coordinate {
  font-size: 10px;
  padding: 3px 5px;
  color: var(--el-ink);
  background: #07101dcc;
  border-color: #ffffff10;
}
.globe-label.axis {
  color: var(--el-muted);
  border-color: #62d4ad55;
}
.globe-label.equator {
  color: var(--el-sun-soft);
  border-color: #ff878066;
}
.globe-label.selected {
  color: var(--el-sun-soft);
  border-color: #e9b95d88;
  font-size: 12px;
  z-index: 3;
}
.globe-label.tropic {
  color: var(--el-sun-soft);
  border-color: #e9b95d66;
}
.globe-label.polar {
  color: var(--el-ink);
  border-color: #70ccec66;
}
.globe-label.hemisphere {
  font-size: 13px;
  padding: 7px 10px;
  border-color: #ffffff70;
}
.globe-label.zone {
  font-size: 11px;
  border-color: #ffffff50;
}
#globe-instructions {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--el-ink);
  border-radius: 30px;
  border: 1px solid #ffffff10;
  background: #07101dcc;
  pointer-events: none;
}
#globe-instructions span {
  color: var(--el-muted);
}
#globe-status {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--el-ink);
  font-size: 14px;
  background: var(--el-panel);
  z-index: 6;
}
.status-orbit {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c9e5e333;
  border-top-color: var(--el-line);
  animation: orbit 1s linear infinite;
}
#globe-error {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #08111df5;
  color: var(--el-ink);
  z-index: 8;
}
#globe-error h1 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}
#globe-error p {
  max-width: 380px;
  color: var(--el-ink);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}
#globe-error button {
  color: var(--el-ink);
  background: var(--el-raised);
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 500px) {
  .globe-label {
    font-size: 10px;
  }
  .globe-label.coordinate {
    font-size: 9px;
  }
  #globe-instructions {
    font-size: 10px;
    bottom: 12px;
    padding: 6px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .status-orbit {
    animation: none;
  }
}
