/* ============================================================
   AKANTHIT Matrix Switch — zářící zelená kulička
   ============================================================ */
.ams-orb {
  position: fixed;
  bottom: 22px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ams-orb.ams-left  { left: 22px; flex-direction: row; }
.ams-orb.ams-right { right: 22px; flex-direction: row-reverse; }

/* Jádro — svítící koule */
.ams-orb .ams-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow:
    0 0 6px #00ff41,
    0 0 14px rgba(0, 255, 65, 0.85),
    0 0 26px rgba(0, 255, 65, 0.55),
    0 0 42px rgba(0, 255, 65, 0.3);
  flex: 0 0 auto;
  animation: ams-pulse 2.2s ease-in-out infinite;
  position: relative;
}
/* Vnitřní jasné jádro */
.ams-orb .ams-core::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #d8ffe0;
  opacity: 0.9;
}

/* Pulzace záře */
@keyframes ams-pulse {
  0%, 100% {
    box-shadow:
      0 0 6px #00ff41,
      0 0 14px rgba(0, 255, 65, 0.85),
      0 0 26px rgba(0, 255, 65, 0.55),
      0 0 42px rgba(0, 255, 65, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 9px #00ff41,
      0 0 22px rgba(0, 255, 65, 1),
      0 0 40px rgba(0, 255, 65, 0.7),
      0 0 64px rgba(0, 255, 65, 0.45);
    transform: scale(1.12);
  }
}

/* Popisek — schovaný, rozbalí se při najetí */
.ams-orb .ams-label {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00ff41;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
}
.ams-orb.ams-left .ams-label  { padding-left: 0; }
.ams-orb.ams-right .ams-label { padding-right: 0; }

.ams-orb:hover .ams-label,
.ams-orb:focus-visible .ams-label {
  max-width: 260px;
  opacity: 1;
}
.ams-orb.ams-left:hover .ams-label,
.ams-orb.ams-left:focus-visible .ams-label   { padding-left: 12px; }
.ams-orb.ams-right:hover .ams-label,
.ams-orb.ams-right:focus-visible .ams-label  { padding-right: 12px; }

/* Zvýraznění jádra při najetí */
.ams-orb:hover .ams-core {
  animation-duration: 1s;
}

/* Přístupnost: viditelný focus */
.ams-orb:focus-visible {
  outline: 2px solid #00ff41;
  outline-offset: 6px;
  border-radius: 50px;
}

/* Mobil — menší a blíž k rohu */
@media (max-width: 600px) {
  .ams-orb { bottom: 16px; }
  .ams-orb.ams-left  { left: 16px; }
  .ams-orb.ams-right { right: 16px; }
  .ams-orb .ams-core { width: 15px; height: 15px; }
  .ams-orb .ams-label { font-size: 11px; }
}

/* Respekt k omezení pohybu */
@media (prefers-reduced-motion: reduce) {
  .ams-orb .ams-core { animation: none; }
}
