/* Reserve the final dimensions before JavaScript or artwork finishes loading.
   Specificity also keeps later legacy/compact styles from restoring old frames. */
html body.is-spilled-game-view .spilled-layout .cast-grid > .cast-card[data-seat-number] {
  grid-template-rows: auto 16px !important;
  gap: 3px !important;
}
html body.is-spilled-game-view .spilled-layout .cast-grid > .cast-card[data-seat-number] > .cast-photo {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 122px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 3px #6d62451c) !important;
}
html body.is-spilled-game-view .spilled-layout .cast-grid > .cast-card[data-seat-number] > .cast-photo::after {
  content: none !important;
}
html body.is-spilled-game-view .spilled-layout .cast-grid > .cast-card[data-seat-number] > .cast-name {
  display: none !important;
}
html body.is-spilled-game-view .spilled-layout .cast-grid > .cast-card[data-seat-number] > .cast-photo:not(.spilled-popup-photo) {
  visibility: hidden;
}
body.is-spilled-game-view .spilled-layout .spilled-popup-photo > .spilled-popup-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
body.is-spilled-game-view .spilled-layout .spilled-popup-photo > .spilled-popup-portrait {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 0 0;
  background: #f4f0e4;
  -webkit-mask: var(--popup-mask) center / 100% 100% no-repeat;
  mask: var(--popup-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}
body.is-spilled-game-view .spilled-layout .spilled-popup-photo > .spilled-popup-portrait > img {
  position: absolute !important;
  display: block !important;
  left: var(--avatar-left) !important;
  top: var(--avatar-top) !important;
  width: var(--avatar-width) !important;
  height: var(--avatar-height) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}
body.is-spilled-game-view .spilled-layout .spilled-popup-photo > .spilled-popup-portrait[data-frame-state=evicted] > img {
  filter: grayscale(1) !important;
  opacity: .78 !important;
}
body.is-spilled-game-view .spilled-layout .spilled-popup-art .popup-name {
  font-family: Kimoru, 'Trebuchet MS', sans-serif;
  font-weight: 400;
  text-rendering: geometricPrecision;
}
body.is-spilled-game-view .spilled-layout .spilled-popup-photo > .cast-seat-number {
  position: absolute !important;
  top: 43% !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1;
  text-align: center;
  color: #7a8d70;
}
