/* One fixed 1440 x 860 design, uniformly scaled with the game's 1920 x 1080 viewport. */
.save-slots-dialog { overflow: hidden; }
.save-slots-dialog[open] { display: flex; flex-direction: column; gap: 20px; }
.save-slots-dialog header, .save-slots-dialog footer, .save-slots-pages { display: flex; align-items: center; }
.save-slots-dialog header, .save-slots-dialog footer { justify-content: space-between; }
.save-slots-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); align-content: start; gap: 16px; }
.save-slot { position: relative; min-width: 0; min-height: 0; aspect-ratio: 16 / 9; }
.save-slots-dialog .save-slot-select {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  padding: 40px 10px 20px;
  background: #1a2029;
  border-style: dashed;
}
.save-slots-dialog .occupied .save-slot-select { background: #2a3544; border-style: solid; }
.save-slot-number { position: absolute; top: 16px; left: 16px; color: #b9c3d0; font-size: 16px; }
.save-slot time { display: grid; gap: 8px; text-align: center; font-size: 24px; }
.save-slot time span:first-child { color: #c6cad1; }
.save-slot-empty { color: #808d9c; font-size: 18px; }
.save-slots-dialog .save-slot-delete { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-color: #73515b; background: #412d34; }
.save-slots-dialog .save-slot-delete:hover:not(:disabled) { background: #753b47; }
.save-slots-status { min-height: 24px; margin: 0; color: #b9c3d0; }
.save-slots-error { margin: 0; max-height: 80px; overflow: auto; color: #ffabb5; white-space: pre-wrap; }
.save-slots-dialog footer { color: #b9c3d0; font-size: 17px; }
.save-slots-pages { gap: 8px; }
.save-slots-pages button { width: 44px; height: 44px; padding: 0; }
.save-slots-pages button[aria-current="page"] { background: #4b422a; border-color: #edbc33; color: #fff1bb; }

.save-slot-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: #0d0f12; }
.save-slot.has-thumbnail .save-slot-select { padding: 0; }
.save-slot.has-thumbnail time {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: block; padding: 10px 8px; background: rgb(0 0 0 / 68%);
  color: #f3f4f6; font-size: 18px; line-height: 1.35; white-space: nowrap;
}
.save-slot.has-thumbnail .save-slot-number { z-index: 1; padding: 3px 6px; border-radius: 4px; background: rgb(0 0 0 / 55%); color: #e1e7ee; }
.save-slot-delete { z-index: 2; }

.save-slots-dialog .save-slot-select:hover:not(:disabled) { border-color: #edbc33; }
.save-slot.has-thumbnail .save-slot-select::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgb(255 255 255 / 12%); border-radius: inherit; opacity: 0;
}
.save-slot.has-thumbnail .save-slot-select:hover:not(:disabled)::after { opacity: 1; }
