* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #080b0f;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

canvas {
  display: block;
}

#tooltip {
  position: fixed;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(74, 158, 255, 0.3);
  color: #c8d8e8;
  font-family: monospace;
  font-size: 12px;
  padding: 8px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

#tooltip.visible {
  opacity: 1;
}

#panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  background: #0e1318;
  border-left: 1px solid rgba(74, 158, 255, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#panel.open {
  transform: translateX(0);
}

#panel-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#panel-name {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: normal;
  color: #c8d8e8;
  line-height: 1.2;
}

#panel-coords {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(200, 216, 232, 0.4);
  margin-top: 4px;
  font-family: monospace;
}

#close-btn {
  background: none;
  border: 1px solid rgba(74, 158, 255, 0.2);
  color: rgba(200, 216, 232, 0.5);
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

#close-btn:hover {
  border-color: #4a9eff;
  color: #4a9eff;
}

#panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

#panel-img {
  width: 100%;
  display: none;
  border: 1px solid rgba(74, 158, 255, 0.15);
  margin-bottom: 16px;
}

#panel-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(200, 216, 232, 0.6);
  border-left: 2px solid rgba(74, 158, 255, 0.2);
  padding-left: 12px;
  font-family: Georgia, serif;
  font-style: italic;
}

#logo {
  position: fixed;
  top: 24px;
  left: 28px;
  height: 72px;
  width: auto;
  z-index: 100;
  opacity: 0.9;
}

#logo:hover {
  opacity: 1;
}

#panel-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}

#panel-grid.visible {
  display: grid;
}

#panel-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid rgba(74,158,255,0.15);
  cursor: pointer;
}

#panel-grid img:hover {
  border-color: #4a9eff;
}

#clock {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #FFD700;
    font-family: monospace;
    font-size: 18px;
    z-index: 10;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

#globe-webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

#globe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
}