/* Floating app icons — icon only, hover name tip.
   Positions are inset so icons stay inside the stage (no clip/overlap). */

.vl-hero__visual {
  --float-stage: min(100%, 36rem);
  position: relative !important;
  width: var(--float-stage);
  height: var(--float-stage);
  min-height: var(--float-stage);
  margin: 0 auto;
  display: block !important;
  overflow: visible !important;
}

/* Landing: give the ring a bit more room in the right column */
.viture-land .vl-hero__visual {
  --float-stage: min(100%, 38rem);
  max-width: 100%;
}

/* Apps wiki stage — stay inside the right column, never cover the title */
body[data-page=wiki] .vl-hero__visual {
  --float-stage: min(100%, 28rem);
  max-width: 100%;
}

.vl-hero__logo-wrap {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 2;
  width: 10.5rem;
  height: 10.5rem;
  display: grid;
  place-items: center;
  border-radius: 28%;
  overflow: hidden;
  background: transparent;
  transform: translate(-50%, -50%);
}
.viture-land .vl-hero__logo-wrap {
  width: 11.25rem;
  height: 11.25rem;
}
body[data-page=wiki] .vl-hero__logo-wrap {
  width: 10.25rem;
  height: 10.25rem;
}

.vl-hero__logo-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.5) 0%,
    rgba(34, 211, 238, 0.22) 42%,
    transparent 70%
  );
  filter: blur(16px);
  animation: vl-pulse 4.5s ease-in-out infinite;
}
.vl-hero__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: contain;
  border-radius: 28% !important;
  background: transparent !important;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}
@keyframes vl-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* 12 seats — inset from edges so nothing clips */
.vl-float {
  position: absolute !important;
  z-index: 3 !important;
  margin: 0 !important;
  text-decoration: none !important;
  color: inherit;
  transform: translate(-50%, -50%) !important;
  right: auto !important;
  bottom: auto !important;
  animation: none !important;
  width: 2.85rem;
  height: 2.85rem;
}
.vl-float--1  { top: 11% !important; left: 50% !important; }
.vl-float--2  { top: 18% !important; left: 70% !important; }
.vl-float--3  { top: 32% !important; left: 84% !important; }
.vl-float--4  { top: 50% !important; left: 89% !important; }
.vl-float--5  { top: 68% !important; left: 84% !important; }
.vl-float--6  { top: 82% !important; left: 70% !important; }
.vl-float--7  { top: 89% !important; left: 50% !important; }
.vl-float--8  { top: 82% !important; left: 30% !important; }
.vl-float--9  { top: 68% !important; left: 16% !important; }
.vl-float--10 { top: 50% !important; left: 11% !important; }
.vl-float--11 { top: 32% !important; left: 16% !important; }
.vl-float--12 { top: 18% !important; left: 30% !important; }

.vl-float:hover,
.vl-float:focus-visible { z-index: 8 !important; }

/* Icon-only chip — never expand with min-width text cards */
.vl-float__card {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 2.85rem !important;
  height: 2.85rem !important;
  min-width: 0 !important;
  max-width: 2.85rem !important;
  padding: 0.3rem !important;
  gap: 0 !important;
  border-radius: 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: linear-gradient(165deg, rgba(14, 24, 42, 0.96), rgba(8, 14, 26, 0.98));
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(34, 211, 238, 0.12);
  box-sizing: border-box;
  animation: vl-float-bob 5.5s ease-in-out infinite;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vl-float:hover .vl-float__card,
.vl-float:focus-visible .vl-float__card {
  transform: scale(1.08);
  border-color: rgba(103, 232, 249, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 14px 32px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(34, 211, 238, 0.28);
}
.vl-float--1 .vl-float__card { animation-delay: 0s; }
.vl-float--2 .vl-float__card { animation-delay: -0.45s; }
.vl-float--3 .vl-float__card { animation-delay: -0.9s; }
.vl-float--4 .vl-float__card { animation-delay: -1.35s; }
.vl-float--5 .vl-float__card { animation-delay: -1.8s; }
.vl-float--6 .vl-float__card { animation-delay: -2.25s; }
.vl-float--7 .vl-float__card { animation-delay: -2.7s; }
.vl-float--8 .vl-float__card { animation-delay: -3.15s; }
.vl-float--9 .vl-float__card { animation-delay: -3.6s; }
.vl-float--10 .vl-float__card { animation-delay: -4.05s; }
.vl-float--11 .vl-float__card { animation-delay: -4.5s; }
.vl-float--12 .vl-float__card { animation-delay: -4.95s; }

@keyframes vl-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.vl-float__card img {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.45rem;
  max-width: none !important;
  display: block;
}
.vl-float__ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: rgba(34, 211, 238, 0.12);
  font-size: 1rem;
  line-height: 1;
}

/* Hide any leftover text labels if present in HTML */
.vl-float__card strong,
.vl-float__card em,
.vl-float__card > span:not(.vl-float__tip):not(.vl-float__ico) {
  display: none !important;
}

/* Hover name tip */
.vl-float__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%) translateY(4px);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(8, 14, 26, 0.95);
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 9;
  display: block !important;
}
.vl-float:hover .vl-float__tip,
.vl-float:focus-visible .vl-float__tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.vl-float--1 .vl-float__tip,
.vl-float--2 .vl-float__tip,
.vl-float--12 .vl-float__tip {
  bottom: auto;
  top: calc(100% + 0.4rem);
}

@media (max-width: 960px) {
  .vl-hero__visual,
  .viture-land .vl-hero__visual,
  body[data-page=wiki] .vl-hero__visual {
    --float-stage: min(92vw, 22rem);
  }
  .vl-hero__logo-wrap,
  .viture-land .vl-hero__logo-wrap,
  body[data-page=wiki] .vl-hero__logo-wrap {
    width: 8.5rem;
    height: 8.5rem;
  }
  .vl-float,
  .vl-float__card {
    width: 2.55rem !important;
    height: 2.55rem !important;
    max-width: 2.55rem !important;
  }
  .vl-float__card img,
  .vl-float__ico {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  .vl-hero__visual,
  .viture-land .vl-hero__visual,
  body[data-page=wiki] .vl-hero__visual {
    --float-stage: min(94vw, 19rem);
  }
  .vl-hero__logo-wrap {
    width: 7.25rem;
    height: 7.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vl-float__card,
  .vl-hero__logo-glow {
    animation: none !important;
  }
}
