html { scrollbar-gutter: stable; }
html[data-dottei-loading] { overflow: hidden; }
#dfh-loading {
  position: fixed;
  inset: 0;
  width: 100vw;
  z-index: 1000;
  display: none;
  place-items: center;
  overflow: hidden;
  background: transparent;
  color-scheme: light;
  touch-action: none;
}
html[data-dottei-loading] #dfh-loading:not([hidden]) { display: grid; }
#dfh-loading-paper {
  position: absolute; inset: 0; display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr); background: #fff;
}
#dfh-loading [hidden] { display: none !important; }
#dfh-loading-poster, #dfh-loading-art {
  width: min(calc(100vw - 32px), 1120px, calc((100dvh - 32px) * 1.5));
  height: auto;
  aspect-ratio: 3 / 2;
  max-width: none;
}
#dfh-loading-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dfh-loading-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
#dfh-loading-review {
  position: fixed; right: 18px; bottom: 18px; z-index: 1100;
  display: flex; gap: 8px; padding: 8px;
  background: #ffffffed; border: 1px solid #dbe3e9; border-radius: 12px;
  box-shadow: 0 3px 18px #20354a12;
  font: 13px/1.4 'Segoe UI', sans-serif;
}
#dfh-loading-review button {
  cursor: pointer; color: #20354a; background: #f4f9fc; border: 1px solid #cbdce7;
  border-radius: 7px; padding: 8px 12px; font: inherit;
}
#dfh-loading-review button:focus-visible { outline: 2px solid #397fb9; outline-offset: 3px; }
@media (max-width: 600px) {
  #dfh-loading-poster, #dfh-loading-art { width: min(132vw, calc((100dvh - 32px) * 1.5)); }
  #dfh-loading-review { right: 8px; bottom: 8px; left: 8px; justify-content: center; }
}
