/* Scope this sheet to the opening component, never body or the global card class. */
.case-curtain {
  --curtain-width: min(70.3vw, 1018px);
  position: relative;
  width: var(--curtain-width);
  height: clamp(152px, 12.707vw, 184px);
  margin-inline: auto;
  isolation: isolate;
  visibility: hidden;
}
.case-curtain[data-visible="true"] { visibility: visible; }
.case-curtain__window {
  position: absolute;
  inset: 21.74% 3.144% 19.57%;
  overflow: hidden;
  background: rgba(12, 17, 23, .93);
  clip-path: inset(0 50% 0 50%);
}
.case-curtain__track {
  display: flex;
  height: 100%;
  width: max-content;
  gap: 8px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.case-curtain__card {
  flex: 0 0 136px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #343941;
  border-bottom: 2px solid var(--rarity-color, #ac50d0);
  border-radius: 5px;
  background: linear-gradient(150deg, #1b222a, #12151b);
}
.case-curtain__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.case-curtain__marker {
  position: absolute;
  inset-block: 18.48% 16.85%;
  left: 50%;
  width: 1px;
  background: #ff8308;
  box-shadow: 0 0 10px #ff830880;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.case-curtain__marker::before, .case-curtain__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-inline: 7px solid transparent;
}
.case-curtain__marker::before { top: -8px; border-top: 11px solid #ff8308; }
.case-curtain__marker::after { bottom: -8px; border-bottom: 11px solid #ff8308; }
@media(max-width: 600px) {
  .case-curtain { --curtain-width: 100%; height: 168px; }
  .case-curtain__window { inset: 37px 27px 33px; }
  .case-curtain__card { flex-basis: 116px; }
  .case-curtain__marker { inset-block: 31px 28px; }
}
