/**
 * Shared Games Lab navigation — back link to the hub.
 */

.labs-back-to-hub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2.5px solid rgba(13, 33, 66, 0.16);
  font-family: var(--lo-font-display, "Fredoka", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.labs-back-to-hub:hover,
.labs-back-to-hub:focus-visible {
  transform: translateY(-2px) scale(1.02);
  outline: 2px solid var(--lo-deep-blue, #17345f);
  outline-offset: 3px;
}

.labs-back-to-hub--block {
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(23, 52, 95, 0.1);
}

.labs-back-to-hub--corner {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 200;
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.labs-back-to-hub--green {
  background: linear-gradient(160deg, #b8eb98 0%, var(--lo-green, #8fd36c) 55%, #6fbf52 100%);
  color: var(--lo-navy, #17345f);
  box-shadow: 0 5px 0 rgba(70, 130, 45, 0.4), 0 8px 16px rgba(17, 52, 89, 0.12);
}

.labs-back-to-hub--green:hover,
.labs-back-to-hub--green:focus-visible {
  box-shadow: 0 7px 0 rgba(70, 130, 45, 0.4), 0 10px 18px rgba(17, 52, 89, 0.14),
    0 0 0 4px rgba(143, 211, 108, 0.35);
}

.labs-local-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(22, 48, 79, 0.62);
  text-align: center;
}

.global-leaderboard-legacy {
  display: none !important;
}
