/* Hématome - styles partagés : sélecteur d'époque. Volontairement neutre
   pour rester lisible par-dessus les 5 univers rétro. */

.epoch-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.epoch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: #111111;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}

.epoch-toggle:hover { background: #2b2b2b; transform: translateY(-1px); }
.epoch-toggle:focus-visible,
.epoch-link:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }

.epoch-dot {
  width: 9px;
  height: 9px;
  background: #3fff6c;
  border-radius: 50%;
  animation: epoch-blink 1.6s steps(1) infinite;
}

@keyframes epoch-blink { 50% { opacity: 0.25; } }

.epoch-panel {
  background: #111111;
  border: 2px solid #ffffff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  min-width: 230px;
}

.epoch-list { list-style: none; margin: 0; padding: 6px; }

.epoch-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 10px 12px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.epoch-link:hover { background: #333333; }
.epoch-link.is-current { background: #ffffff; color: #111111; pointer-events: none; }
.epoch-year { opacity: 0.65; font-size: 12px; }
.epoch-random .epoch-name { font-style: italic; }

@media (max-width: 480px) {
  .epoch-switcher { right: 10px; bottom: 10px; }
  .epoch-panel { min-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .epoch-dot { animation: none; }
  .epoch-toggle { transition: none; }
}
