.tesseract-menu-shell.hero-overlay {
  top: 56%;
  height: min(520px, calc(100% - 82px));
  min-height: 340px;
  padding: 0;
  line-height: 1;
  text-shadow: none;
  user-select: none;
  isolation: isolate;
}

.tesseract-menu-stage,
.tesseract-menu-labels {
  display: none;
}

.tesseract-menu-shell.is-enhanced .tesseract-menu-stage,
.tesseract-menu-shell.is-enhanced .tesseract-menu-labels {
  display: block;
}

.tesseract-menu-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.tesseract-menu-stage.is-dragging {
  cursor: grabbing;
}

.tesseract-menu-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.tesseract-menu-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.tesseract-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  max-width: 168px;
  min-height: 32px;
  padding: 7px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(83, 186, 226, 0.72);
  border-radius: 8px;
  background: rgba(18, 7, 34, 0.62);
  color: rgba(237, 250, 255, 0.96);
  box-shadow:
    0 0 14px rgba(83, 186, 226, 0.32),
    inset 0 0 16px rgba(240, 4, 248, 0.12);
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 800;
  line-height: 1.14;
  text-align: center;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.tesseract-label:hover,
.tesseract-label.is-active {
  visibility: visible;
  pointer-events: auto;
  border-color: rgba(255, 44, 143, 0.95);
  background: rgba(45, 13, 75, 0.78);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 0 18px rgba(255, 44, 143, 0.5),
    0 0 34px rgba(83, 186, 226, 0.28),
    inset 0 0 20px rgba(83, 186, 226, 0.14);
}

.tesseract-menu-fallback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: absolute;
  inset: 0;
  align-content: center;
  padding: 14px;
  box-sizing: border-box;
}

.tesseract-menu-shell.is-enhanced .tesseract-menu-fallback {
  display: none;
}

.tesseract-menu-fallback a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(83, 186, 226, 0.72);
  border-radius: 8px;
  background: rgba(18, 7, 34, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
  text-decoration: none;
}

.tesseract-menu-fallback a:hover {
  border-color: rgba(255, 44, 143, 0.95);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 992px) {
  .tesseract-menu-shell.hero-overlay {
    top: 58%;
    height: min(460px, calc(100% - 92px));
  }
}

@media (max-width: 576px) {
  .tesseract-menu-shell.hero-overlay {
    top: 62%;
    height: min(410px, calc(100% - 118px));
    min-height: 320px;
  }

  .tesseract-label {
    min-width: 78px;
    max-width: 142px;
    min-height: 30px;
    padding: 6px 8px;
    font-size: clamp(10px, 3vw, 12px);
  }

  .tesseract-menu-fallback {
    grid-template-columns: 1fr;
  }
}
