html[data-ludik-theme="stencil"] .stencil-case-prizes .game-item {
  -webkit-tap-highlight-color: transparent;
}

html[data-ludik-theme="stencil"] .stencil-case-game .stencil-case-inspection {
  --sc-inspection-gutter: clamp(12px, 3.25vw, 24px);
  width: min(640px, calc(100% - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  border: 2px solid var(--sc-stitch);
  border-radius: 14px;
  background: var(--sc-panel);
  overscroll-behavior: contain;
  box-shadow: 0 12px 36px #000b;

  &[open], &[open]::backdrop { animation: none; }
  &::backdrop { background: #090806c9; }

  & > .game-dialog-body {
    display: block;
    min-height: 0;
    padding: 0;
  }

  & .game-dialog-body > header {
    position: sticky;
    z-index: 1;
    inset-block-start: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    justify-items: start;
    gap: 10px;
    margin: 0;
    padding: 11px var(--sc-inspection-gutter);
    border-bottom: 1px solid #d6bca053;
    background: var(--sc-panel);
  }

  & header h2 {
    margin: 0;
    color: var(--sc-paper);
    text-align: start;
    overflow-wrap: anywhere;
    font: italic 900 clamp(21px, 4.5vw, 33px)/1.08 var(--sc-type);
  }

  & header button.game-tool {
    position: static;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 7px;
    font-size: 28px;
    line-height: 1;
  }
}

.stencil-case-inspection-content {
  min-width: 0;
  padding: 0 var(--sc-inspection-gutter) var(--sc-inspection-gutter);
}

.stencil-case-inspection-art {
  width: 100%;
  height: clamp(142px, 36vw, 244px);
  background: transparent;
}

.stencil-case-inspection-art > img {
  padding: 9px 3%;
  object-view-box: var(--steam-image-view, none);
  filter: drop-shadow(0 6px 4px #060504ba);
}

.stencil-case-inspection-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 12px 10px;
  padding: 14px 0 0;
  border-top: 1px dashed #d6bca079;
}

.stencil-case-inspection-facts > div {
  flex: 1 1 112px;
  min-width: 0;
}

.stencil-case-inspection-facts > .stencil-case-inspection-range {
  flex: 1 1 160px;
}

.stencil-case-inspection-facts dt {
  margin: 0 0 4px;
  font: 600 .78rem/1.25 var(--font-interface);
}

.stencil-case-inspection-facts dd {
  margin: 0;
  color: var(--sc-paper);
  font: 700 .93rem/1.25 var(--font-interface);
  font-variant-numeric: tabular-nums;
}

.stencil-case-inspection-facts .stencil-case-inspection-odds dd {
  color: var(--sc-amber);
  font: italic 900 1.24rem/1 var(--sc-type);
}

.stencil-case-inspection-wear {
  align-self: center;
}

.stencil-case-inspection-wear dd {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #d6bca05c;
  border-radius: 5px;
  background: #d6bca010;
}

.stencil-case-inspection .stencil-case-variant-table {
  width: 100%;
  margin-top: 11px;
  color: var(--sc-paper);
  text-align: start;
}

.stencil-case-variant-table caption {
  padding-block: 0 4px;
  color: #d6bca0;
  text-align: start;
  font-size: .78rem;
}

.stencil-case-inspection .stencil-case-variant-table :is(th, td) {
  padding: 6px 4px;
  border-color: #d6bca053;
  color: inherit;
  text-align: start;
  white-space: normal;
}

.stencil-case-inspection .stencil-case-variant-table th:nth-child(1) { width: 32%; }
.stencil-case-inspection .stencil-case-variant-table th:nth-child(2) { width: 46%; }
.stencil-case-inspection .stencil-case-variant-table th:nth-child(3) { width: 22%; }
.stencil-case-inspection .stencil-case-variant-table td:last-child { white-space: nowrap; }
.stencil-case-inspection .stencil-case-variant-table abbr { text-decoration: none; }
