.showcase-artwork {
  display: block;
  position: relative;
  container-type: inline-size;
  aspect-ratio: var(--showcase-ratio);
  overflow: hidden;
  border-radius: inherit;
}

.showcase-artwork > img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-label {
  position: absolute;
  display: flex;
  align-items: center;
  color: #302016;
  background: #fff;
  font: 500 var(--showcase-size)/1.12 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.showcase-label:is(.profile-heading, .team-heading, .chef-heading) {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
}

.showcase-label:is(.profile-button, .chef-button, .team-eyebrow, .team-heading, [class*="tutor-"], .work-button, .work-blue-center, .work-muted-center, .game-side, .game-side-hot, .game-play) {
  justify-content: center;
  text-align: center;
}

.profile-copy { background: #fefefe; }
html:is([lang="ja"], [lang="ko"]) .profile-copy { text-wrap: balance; }
.profile-button {
  padding-inline: 1cqw;
  color: #6142c8;
  background: #fefefe;
  font-weight: 700;
}
.profile-button::before {
  content: "";
  position: absolute;
  inset: .4cqw;
  border: .15cqw solid currentColor;
  border-radius: 999px;
}
.team-eyebrow { color: #d84831; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.team-heading { color: #171b21; background: #fdfdfc; }
.chef-heading, .chef-copy, .chef-button { background: #fdfdfc; }
.chef-button { color: #d84931; font-weight: 700; }

.tutor-top { background: #fef4ed; }
.tutor-tab, .tutor-tab-active { background: #fdf5ef; }
.tutor-top, .tutor-card, .tutor-chip, .tutor-button { font-weight: 700; }
.tutor-card { background: #fcf8f3; }
.tutor-chip { background: #fdddc7; border-radius: 25%; }
.tutor-button { background: linear-gradient(#ff7f65, #fe7659); }
.tutor-tab-active { color: #c84716; }

.work-heading { color: #151c21; font-weight: 700; }
.work-muted, .work-muted-center, .work-input, .work-comment-muted { color: #45566a; }
.work-blue, .work-blue-center { color: #0878a4; }
.work-button { color: #fff; background: #1b93c8; }
.work-comment, .work-comment-muted { color: #242c34; background: #f5f7f9; }

.showcase-label[class*="game-"] {
  isolation: isolate;
  color: #f4f8ff;
  background: transparent;
}
.showcase-label[class*="game-"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.43cqw;
  background: var(--game-paint);
  mask-image: linear-gradient(90deg, transparent, #000 .43cqw, #000 calc(100% - .43cqw), transparent),
    linear-gradient(transparent, #000 .43cqw, #000 calc(100% - .43cqw), transparent);
  mask-composite: intersect;
}
.game-header { --game-paint: linear-gradient(100deg, #1c3f63, #1d456a); }
.game-side { --game-paint: linear-gradient(100deg, #346b84, #3c729a); }
.game-side-hot { --game-paint: linear-gradient(100deg, #e77566, #a2707a); }
.game-side-middle { --game-paint: linear-gradient(100deg, #58788a, #3a769f); }
.game-side-bottom { --game-paint: linear-gradient(100deg, #4d778f, #43759f); }
.game-card { --game-paint: linear-gradient(100deg, #234f73, #245c7c); }
.game-card-strong { --game-paint: linear-gradient(100deg, #396a8e, #3b698f); }
.game-status { --game-paint: linear-gradient(100deg, #376a8d, #356b94); }
.game-invite { --game-paint: linear-gradient(100deg, #35688c, #32688f); }
.game-adventure { --game-paint: linear-gradient(100deg, #42799b, #396d90); }
.game-saved { --game-paint: linear-gradient(110deg, #4c7c9a, #396a8d); }
.game-card-strong, .game-saved, .game-play { font-weight: 700; }
.showcase-label.game-status { color: #b2f363; }
.showcase-label.game-play {
  --game-paint: linear-gradient(#fd8876, #fd7564);
  color: #321912;
  font-weight: 800;
  text-transform: uppercase;
}

.media-lightbox[data-showcase] {
  --showcase-lightbox-image-height: calc(94dvh - 54px);
  box-shadow: none;
}

.media-lightbox[data-showcase] > img {
  max-height: var(--showcase-lightbox-image-height);
}

.media-lightbox > .showcase-artwork {
  width: min(var(--showcase-max), 96vw, calc(var(--showcase-lightbox-image-height) * var(--showcase-ratio)));
  border-radius: 8px;
  box-shadow: 0 20px 80px #0005;
}

.media-lightbox > .showcase-artwork[hidden],
.media-lightbox > img[hidden] {
  display: none;
}

.media-lightbox[data-showcase] [data-close] {
  position: relative;
  inset: auto;
  margin: 0 0 10px auto;
}
