html, body.globe-door {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #000;
  overflow: hidden;
  color: #c8d4e2;
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

#earth-simple-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  background: #000;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.er-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 16, 0.72), transparent);
}

.er-chrome .brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #e8f2fa;
}

.er-chrome .brand p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(160, 190, 214, 0.85);
}

#phase-badge {
  padding: 6px 10px;
  font: 10px/1 ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ab4d4;
  border: 1px solid rgba(60, 100, 150, 0.35);
  background: rgba(8, 12, 18, 0.75);
  border-radius: 4px;
}

#h-gl, #h-pyr, #h-fps, #h-lod, #h-alt, #h-fc {
  position: fixed;
  left: 12px;
  z-index: 20;
  font: 11px/1.4 ui-monospace, monospace;
  color: rgba(160, 196, 224, 0.9);
  pointer-events: none;
}
#h-gl { top: 64px; }
#h-pyr { top: 80px; }
#h-fps { top: 96px; }
#h-lod { top: 112px; }
#h-alt { top: 128px; }
#h-fc { top: 144px; }

.er-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  width: min(320px, calc(100vw - 28px));
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 140, 180, 0.28);
  background: rgba(8, 14, 22, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.er-panel .hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: rgba(170, 198, 220, 0.85);
  line-height: 1.4;
}

.er-panel .cell {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 8px;
  margin: 0 0 12px;
  font-size: 0.85rem;
}

.er-panel .cell dt {
  margin: 0;
  color: rgba(130, 160, 185, 0.9);
}

.er-panel .cell dd {
  margin: 0;
  color: #e8f2fa;
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.er-panel button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(94, 176, 224, 0.35);
  background: rgba(94, 176, 224, 0.16);
  color: #e8f2fa;
  font-size: 0.9rem;
  cursor: pointer;
}

.er-panel button:hover {
  background: rgba(94, 176, 224, 0.28);
}

.er-panel button.ghost {
  margin-top: 6px;
  background: transparent;
  border-color: rgba(120, 140, 160, 0.35);
  color: rgba(180, 200, 220, 0.85);
}

.status {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(170, 198, 220, 0.9);
}

.status .ok { color: #7dcc9a; }
.status .err { color: #ffb0b0; }
.status p { margin: 0; }

.session {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(90, 140, 180, 0.22);
}

.session.hidden { display: none; }

.session h2 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ec7e4;
}

.session dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 8px;
  margin: 0 0 10px;
  font-size: 0.78rem;
}

.session dt { margin: 0; color: rgba(130, 160, 185, 0.9); }
.session dd { margin: 0; }

.law {
  margin: 10px 0 0;
  font-size: 0.68rem;
  color: rgba(120, 150, 175, 0.7);
}

#boot-status {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  color: #4b6b8a;
  font: 10px/1.6 ui-monospace, monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#boot-error {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 520px;
  padding: 18px 22px;
  background: rgba(20, 6, 6, 0.92);
  border: 1px solid #5a1a1a;
  color: #ffb0b0;
  font: 12px/1.6 ui-monospace, monospace;
  z-index: 60;
  display: none;
}

#boot-error.show { display: block; }
