:root {
  --announcer-bg: rgba(9, 11, 28, .84);
  --announcer-border: rgba(76, 238, 255, .7);
  --announcer-accent: #ff4fe3;
  --announcer-text: #ffffff;
  --announcer-muted: rgba(255,255,255,.75);
}

.announcerDock {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  width: min(390px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--announcer-border);
  border-radius: 24px;
  color: var(--announcer-text);
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.03)), var(--announcer-bg);
  box-shadow: 0 0 26px rgba(34, 231, 255, .25), 0 0 44px rgba(255, 79, 227, .18);
  backdrop-filter: blur(16px);
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: transform .34s ease, opacity .34s ease;
}

.announcerDock.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.announcerDock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url('../assets/ui/scanlines_overlay.svg');
  background-size: 72px 72px;
  opacity: .18;
  pointer-events: none;
}

.announcerAvatar {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 0 16px rgba(255,79,227,.36);
}

.announcerContent {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.announcerKicker {
  font: 800 11px/1.1 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--announcer-muted);
  margin-bottom: 4px;
}

.announcerText {
  font: 900 clamp(15px, 2.2vw, 20px)/1.14 system-ui, sans-serif;
  text-shadow: 0 2px 0 rgba(0,0,0,.38);
}

.announcerDock[data-priority="epic"] {
  animation: announcerEpicPulse .72s ease both;
}

@keyframes announcerEpicPulse {
  0% { transform: translateY(0) scale(.98); filter: saturate(1); }
  45% { transform: translateY(0) scale(1.035); filter: saturate(1.28); }
  100% { transform: translateY(0) scale(1); filter: saturate(1); }
}

@media (max-width: 720px) {
  .announcerDock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: 64px 1fr;
    border-radius: 20px;
  }

  .announcerAvatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcerDock,
  .announcerDock[data-priority="epic"] {
    transition: opacity .1s linear;
    animation: none;
  }
}
