/* Sledneckotron 26,000: the commentators' caption (js/sledneck/sound/caption.js).
   A strip along the bottom, the speaker's name in a tag, the words large
   enough to read across a kitchen and never more than two lines. Billie's
   tag is a rounded pill in warm red, Ralphie's a slanted plate in blue:
   different shapes, so colour is never the only difference. */

.sledneck-caption {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(12, 16, 40, 0.82);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  color: #fff;
  pointer-events: none;
  z-index: 40;
  animation: sledneck-caption-in 0.14s ease-out;
}

.sledneck-caption[hidden] {
  display: none;
}

.sledneck-caption-tag {
  flex: none;
  padding: 6px 18px;
  font: 800 26px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.sledneck-caption-tag.is-billie {
  background: #e2384d;
  border-radius: 999px;
}

.sledneck-caption-tag.is-ralphie {
  background: #2a6fdb;
  border-radius: 0;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  padding: 6px 26px;
}

.sledneck-caption-tag.is-other {
  background: #5a5a6e;
  border-radius: 6px;
}

.sledneck-caption-words {
  margin: 0;
  font: 700 34px/1.18 system-ui, sans-serif;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.sledneck-caption-words.is-long {
  font-size: 26px;
}

@keyframes sledneck-caption-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
