html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #000;
  overflow: hidden;
}

body {
  font-family: Marcellus, "Times New Roman", serif;
}

.civilization-immersive {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 78% 68%, rgba(188, 129, 35, 0.14), transparent 24%),
    radial-gradient(circle at 18% 36%, rgba(18, 91, 138, 0.2), transparent 32%),
    radial-gradient(circle at 52% 52%, rgba(72, 49, 120, 0.1), transparent 34%),
    #02030a;
  cursor: default;
}

.civilization-immersive.is-grabbing {
  cursor: grabbing;
}

.civilization-immersive::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 48%, rgba(2, 3, 10, 0.52) 100%),
    linear-gradient(180deg, rgba(2, 3, 10, 0.12), transparent 30%, rgba(2, 3, 10, 0.24));
}

[data-civilization-canvas] {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.civilization-immersive.is-grabbing [data-civilization-canvas] {
  cursor: grabbing;
}

.node-tooltip {
  position: fixed;
  z-index: 3;
  width: min(310px, calc(100vw - 32px));
  padding: 14px 15px 15px;
  border: 1px solid rgba(235, 199, 104, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(17, 24, 42, 0.86), rgba(5, 8, 17, 0.78)),
    rgba(5, 8, 17, 0.82);
  color: rgba(246, 231, 191, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, calc(-100% - 18px), 0) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.node-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(-50%, calc(-100% - 18px), 0) scale(1);
}

.node-tooltip [hidden] {
  display: none !important;
}

.node-tooltip span {
  display: block;
  margin-bottom: 7px;
  color: rgba(115, 209, 255, 0.82);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.node-tooltip strong {
  display: block;
  color: rgba(255, 243, 211, 0.98);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.08em;
}

.node-tooltip p {
  margin: 9px 0 0;
  color: rgba(218, 229, 235, 0.76);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .node-tooltip {
    width: min(280px, calc(100vw - 28px));
    padding: 12px 13px 13px;
  }

  .node-tooltip strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .node-tooltip {
    transition: none;
  }
}
