html {
  scrollbar-gutter: stable;
}

html:has(.case-modal[open]) {
  overflow: hidden;
  overscroll-behavior: none;
  overflow-anchor: none;
}

.case-modal {
  position: fixed;
  box-sizing: border-box;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #19092d;
  color: white;
  overflow: hidden;
}

.case-modal::backdrop {
  background: rgb(25 9 45 / 45%);
}

.case-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #19092d;
}

.case-modal iframe[hidden] {
  display: none;
}

.case-modal-loading {
  position: absolute;
  inset: 24px 32px auto auto;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 8px 16px;
  color: #c6ff77;
  background: #19092d;
  font: inherit;
  cursor: pointer;
}
