/* The reel's sound key: the first key of the chapter row. It takes a chapter key's shell (css/home.css: .chap and .sound-cue share it)
   and the header's sound glyph (css/system.css: .snd__*). Two states, written by js/system.js from sound.isOn():
   on (vermilion waves: the sound is audible), off (muted, with the slash: every other time).
   The first-visit hint sits inside the key, so a tap on it is a tap on the key: beside the key on desktop, and on phones a label over the
   video above the reel title. It is shown while off, and folds at the visitor's first press (data-hint, js/system.js). */

.sound-cue {
  color: var(--night-ink);
}
.sound-cue[data-state='off'] {
  color: var(--night-muted);
}
.sound-cue .chap__tab {
  color: inherit;
}
.sound-cue .snd__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}
.sound-cue[data-state='off'] .snd__waves,
.sound-cue[data-state='on'] .snd__mute {
  display: none;
}
.sound-cue[data-state='on'] .snd__waves {
  stroke: var(--vermilion);
}
@media (hover: hover) {
  .sound-cue:hover .chap__tab::before {
    background: var(--night-ink);
  }
}
.sound-cue:focus-visible {
  outline: none;
}
.sound-cue:focus-visible .chap__tab {
  outline: 2px solid var(--night-ink);
  outline-offset: 4px;
}

.sound-cue__hint {
  --hh: 32px;
  position: absolute;
  z-index: 2;
  display: none;
  font-size: 13px;
}
.sound-cue[data-hint='shown'][data-state='off'] .sound-cue__hint {
  display: inline-flex;
}

@media (max-width: 1023.98px) {
  .sound-cue__hint {
    left: 0;
    bottom: calc(100% + 10px);
    pointer-events: auto;
    color: var(--night);
  }
  .sound-cue__hint::before {
    background: var(--night-ink);
    clip-path: polygon(0 0, calc(100% - var(--s)) 0, 100% 100%, 0 100%);
  }
}
@media (min-width: 1024px) {
  .sound-cue {
    position: relative;
  }
  .sound-cue__hint {
    right: calc(100% + 12px);
    top: 50%;
    margin-top: calc(var(--hh) / -2);
  }
}
