:root {
  --explore-bg: #07080b;
  --explore-panel: rgba(11, 12, 16, .78);
  --explore-line: rgba(255, 255, 255, .14);
  --explore-line-strong: rgba(255, 255, 255, .28);
  --explore-text: #f2f1ed;
  --explore-muted: #8d9099;
  --explore-nebula: #8f78c8;
  --explore-ice: #69b7d4;
  --explore-aurora: #69b49a;
  --explore-gold: #c9a568;
  --explore-radius: 18px;
  --explore-ease: cubic-bezier(.22, 1, .36, 1);
}

html:has(.explore-body),
.explore-body {
  overflow: hidden;
  background: var(--explore-bg);
}

.explore-body {
  width: 100%;
  height: 100vh;
  overscroll-behavior: none;
}

.explore-body button,
.explore-body a {
  -webkit-tap-highlight-color: transparent;
}

.explore-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: var(--explore-text);
  background:
    radial-gradient(circle at 18% 28%, rgba(143, 120, 200, .11), transparent 30%),
    radial-gradient(circle at 82% 62%, rgba(105, 180, 154, .08), transparent 32%),
    radial-gradient(circle at 50% 42%, rgba(105, 183, 212, .06), transparent 38%),
    var(--explore-bg);
  isolation: isolate;
}

.explore-canvas,
.explore-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.explore-beacon-indicators {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.explore-beacon-indicators button {
  position: absolute;
  top: clamp(52px, var(--beacon-y, 50%), calc(100% - 52px));
  left: clamp(76px, var(--beacon-x, 50%), calc(100% - 76px));
  display: grid;
  grid-template-columns: 28px auto auto;
  gap: 8px;
  align-items: center;
  min-width: 132px;
  min-height: 42px;
  padding: 6px 10px 6px 7px;
  border: 1px solid color-mix(in srgb, var(--beacon-color, #fff), transparent 38%);
  border-radius: 999px;
  background: rgba(5, 7, 11, .78);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--beacon-color, #fff), transparent 72%),
    inset 0 0 18px rgba(255, 255, 255, .035);
  color: var(--explore-text);
  font: inherit;
  opacity: .88;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.explore-beacon-indicators button[hidden],
.explore-app:not(.is-running) .explore-beacon-indicators button {
  display: none;
}

.explore-beacon-indicators button:hover,
.explore-beacon-indicators button.is-active {
  border-color: var(--beacon-color, #fff);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

.explore-beacon-indicator-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--beacon-color, #fff), transparent 35%);
  border-radius: 50%;
  color: var(--beacon-color, #fff);
  font-size: 15px;
  text-shadow: 0 0 10px var(--beacon-color, #fff);
  transform: rotate(var(--beacon-angle, 0deg));
}

.explore-beacon-indicator-label {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.explore-beacon-indicator-label strong {
  font-size: 9px;
  letter-spacing: .12em;
}

.explore-beacon-indicator-label small,
.explore-beacon-indicator-distance {
  color: var(--explore-muted);
  font-size: 8px;
}

.explore-beacon-indicator-distance {
  font-style: normal;
  letter-spacing: .04em;
}

@media (max-width: 767px) {
  .explore-beacon-indicators button {
    left: clamp(56px, var(--beacon-x, 50%), calc(100% - 56px));
    grid-template-columns: 26px auto;
    min-width: 104px;
    min-height: 38px;
    padding-right: 8px;
  }

  .explore-beacon-indicator-distance {
    display: none;
  }
}

.explore-canvas {
  z-index: 0;
  display: block;
  outline: none;
  touch-action: none;
}

.explore-atmosphere {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 8, .05), transparent 32%, rgba(4, 5, 8, .38)),
    radial-gradient(ellipse at 22% 55%, rgba(153, 121, 205, .07), transparent 38%),
    radial-gradient(ellipse at 76% 35%, rgba(84, 173, 176, .055), transparent 34%),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, .38) 100%);
}

.explore-atmosphere::after {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  content: "";
}

.explore-header {
  z-index: 5;
}

.explore-app[data-quality="MEDIUM"] :is(
  .explore-header,
  .explore-landing,
  .explore-device-advisory,
  .explore-map-panel,
  .explore-controls,
  .explore-legend,
  .explore-topic-panel,
  .explore-topic-toggle,
  .explore-prompt,
  .explore-node-label,
  .explore-touch button
),
.explore-app[data-quality="LOW"] :is(
  .explore-header,
  .explore-landing,
  .explore-device-advisory,
  .explore-map-panel,
  .explore-controls,
  .explore-legend,
  .explore-topic-panel,
  .explore-topic-toggle,
  .explore-prompt,
  .explore-node-label,
  .explore-touch button
) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.explore-app[data-quality="LOW"] {
  background: var(--explore-bg);
}

.explore-app[data-quality="LOW"] .explore-atmosphere {
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .34));
}

.explore-app[data-quality="LOW"] .explore-atmosphere::after {
  display: none;
}
