/* ============================================================
   AKANTHIT Matrix Exit — zářící červená kulička
   ============================================================ */
.ame-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;
}
.ame-orb.ame-left  { left: 22px; flex-direction: row; }
.ame-orb.ame-right { right: 22px; flex-direction: row-reverse; }

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

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

/* Popisek — schovaný, rozbalí se při najetí */
.ame-orb .ame-label {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff2d4d;
  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(255, 0, 51, 0.7);
}
.ame-orb.ame-left .ame-label  { padding-left: 0; }
.ame-orb.ame-right .ame-label { padding-right: 0; }

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

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

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

/* Mobil */
@media (max-width: 600px) {
  .ame-orb { bottom: 16px; }
  .ame-orb.ame-left  { left: 16px; }
  .ame-orb.ame-right { right: 16px; }
  .ame-orb .ame-core { width: 15px; height: 15px; }
  .ame-orb .ame-label { font-size: 11px; }
}

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