/* The suspended sign sits below the last frame, outside the picture and controls. */
.works-dialog[data-reel-ended][open] {
  display: flex;
  flex-direction: column;
}
.works-dialog[data-reel-ended] .works-bar,
.works-dialog[data-reel-ended] .works-help { flex: none; }
.works-dialog[data-reel-ended] video { flex: 0 1 auto; min-height: 0; }
.works-end[hidden] { display: none; }
.works-end {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1rem;
  border-top: 2px solid #646962;
  padding: 1.15rem .75rem .6rem;
  background: #1b1e1a;
  color: #f6f5ef;
}
.works-end__board {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1.35rem;
  border: 1px solid #ffab59;
  border-bottom: 3px solid #a8561b;
  color: #191b18;
  background: var(--orange, #ff8e35);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transform-origin: 35% -1.15rem;
}
.works-end__board::before,
.works-end__board::after {
  content: '';
  position: absolute;
  top: -1.15rem;
  width: 3px;
  height: 1.45rem;
  border: 1px solid #686e66;
  background: #bec1ba;
  pointer-events: none;
}
.works-end__board::before { left: 12px; }
.works-end__board::after { right: 12px; }
.works-end__board:hover { background: #ffab59; }
.works-end__replay {
  min-height: 44px;
  padding: .6rem .65rem;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: .94rem;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.works-end :is(a,button):focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .works-end__board { animation: works-sign-settle .45s ease-out both; }
  @keyframes works-sign-settle {
    0% { transform: translateY(-6px) rotate(-1.1deg); }
    72% { transform: rotate(.5deg); }
    100% { transform: none; }
  }
}
.works-portrait .works-end { gap: .1rem .65rem; }
