.comic-vote-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(6rem, 19vw, 11rem);
  overflow: hidden;
  margin-bottom: 0.25rem;
  border: 5px solid #650f47;
  border-radius: 10px;
  background: #322733 url('../../../../themes/custom/oculama/dist/images/banner-default.png') center / cover;
}

.comic-vote-banner__artwork {
  --artwork-slant: clamp(0.75rem, 3vw, 2rem);
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
}

.comic-vote-banner__artwork img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

/* Overlap clipped artwork to create a continuous backslash seam between
   teammates, keeping the outside edges of the banner square. */
.comic-vote-banner__artwork img:not(:only-child) {
  clip-path: polygon(0 0, calc(100% - var(--artwork-slant)) 0, 100% 100%, var(--artwork-slant) 100%);
}

.comic-vote-banner__artwork img:not(:first-child) {
  margin-left: calc(-1 * var(--artwork-slant));
}

.comic-vote-banner__artwork img:first-child:not(:only-child) {
  clip-path: polygon(0 0, calc(100% - var(--artwork-slant)) 0, 100% 100%, 0 100%);
}

.comic-vote-banner__artwork img:last-child:not(:only-child) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--artwork-slant) 100%);
}

.comic-vote-banner::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  content: '';
}

.comic-voting-form .vote-group .comic-vote-banner__caption {
  padding: 0.75rem;
  color: #ffeecc;
  text-shadow: 0 -2px #000, 0 2px #000, -2px 0 #000, 2px 0 #000;
  overflow-wrap: anywhere;
}

.comic-voting-form .vote-group .comic-vote-banner__caption h3 {
  margin: 0;
}

.comic-vote-banner__credits {
  display: grid;
  gap: 3px;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.1;
}

.comic-vote-banner__name,
.comic-vote-banner__artist {
  font-weight: bold;
  font-style: italic;
}

.comic-vote-banner__name {
  font-size: clamp(0.75rem, 1.6vw, 1.25rem);
  text-transform: uppercase;
}

.comic-voting-form .vote-group .votes {
  /* Keep the star layers and disabled overlay below the fixed navigation. */
  isolation: isolate;
}

.comic-voting-form .vote-group .stars-background {
  background-color: #4a4a4a;
}

.comic-voting-form .vote-group .stars-background::before {
  position: absolute;
  inset: 0;
  background: #242424 url('../../../../themes/custom/oculama/images/voting-stars-empty.png') left center / contain no-repeat;
  mask: url('../../../../themes/custom/oculama/images/voting-stars-full.png') left center / contain no-repeat;
  pointer-events: none;
  content: '';
}

.comic-voting-form .vote-group .stars-background ul {
  position: relative;
}
