/* GS - GameScape Online: Saves & resume hub (see saves-hub.js) */
html.gs-sh-open, html.gs-sh-open body { overflow: hidden; }
.gs-sh {
  position: fixed;
  inset: 0;
  z-index: 2450;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 40px);
  background: rgb(3 2 10 / 72%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gs-sh[hidden] { display: none; }
.gs-sh__panel {
  width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(34 228 255 / 45%);
  border-radius: 3px;
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 10%) 0%, rgb(255 255 255 / 3%) 8%, transparent 9%),
    linear-gradient(180deg, rgb(16 12 44 / 97%), rgb(6 5 20 / 98%));
  box-shadow: 0 0 30px rgb(34 228 255 / 18%), 0 30px 80px rgb(0 0 0 / 70%);
  color: #e8ecff;
  font-family: "Exo 2", system-ui, sans-serif;
}
.gs-sh__head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 320px) auto;
  grid-template-areas: "title filter close" "sub filter close";
  align-items: center;
  gap: 4px 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgb(120 140 255 / 20%);
}
.gs-sh__head h2 {
  grid-area: title;
  margin: 0;
  font: 800 20px/1.1 "Orbitron", system-ui, sans-serif;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 0 14px rgb(34 228 255 / 45%);
}
.gs-sh__head p { grid-area: sub; margin: 0; font-size: 14px; color: rgb(215 222 255 / 70%); }
.gs-sh__filter {
  grid-area: filter;
  padding: 10px 12px;
  border: 1px solid rgb(34 228 255 / 40%);
  border-radius: 2px;
  background: rgb(5 4 15 / 80%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.gs-sh__filter:focus { border-color: #22e4ff; box-shadow: 0 0 12px rgb(34 228 255 / 30%); }
.gs-sh__close {
  grid-area: close;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(120 140 255 / 30%);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.gs-sh__close:hover, .gs-sh__close:focus-visible { border-color: #e03cff; box-shadow: 0 0 12px rgb(224 60 255 / 40%); outline: none; }

.gs-sh__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 18px 22px 22px;
  overflow-y: auto;
}
.gs-sh__msg { grid-column: 1 / -1; margin: 30px 0; text-align: center; color: rgb(215 222 255 / 70%); }
.gs-sh__empty { grid-column: 1 / -1; display: grid; gap: 8px; place-items: center; text-align: center; padding: 50px 20px; }
.gs-sh__empty b { font: 700 16px/1 "Orbitron", system-ui, sans-serif; letter-spacing: .08em; color: #fff; }
.gs-sh__empty span { max-width: 36em; color: rgb(215 222 255 / 75%); }
.gs-sh__empty em { font-style: normal; color: #a9f3ff; }

.gs-sh__card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgb(34 228 255 / 35%);
  border-radius: 2px;
  background: rgb(10 8 30 / 70%);
  box-shadow: 0 0 12px rgb(34 228 255 / 10%);
}
.gs-sh__card--alt { border-color: rgb(224 60 255 / 35%); box-shadow: 0 0 12px rgb(224 60 255 / 10%); }
.gs-sh__art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #07061a; }
.gs-sh__art > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-sh__cover {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 30%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 2px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 60%);
}
.gs-sh__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gs-sh__body h3 {
  margin: 0;
  font: 700 15px/1.25 "Exo 2", system-ui, sans-serif;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gs-sh__meta, .gs-sh__counts { margin: 0; font-size: 12.5px; color: rgb(215 222 255 / 65%); }
.gs-sh__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.gs-sh__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(120 140 255 / 30%);
  border-radius: 2px;
  background: rgb(5 4 15 / 70%);
  color: #fff !important;
  font: 600 13px/1 "Exo 2", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.gs-sh__btn:hover, .gs-sh__btn:focus-visible { border-color: #22e4ff; box-shadow: 0 0 12px rgb(34 228 255 / 35%); outline: none; }
.gs-sh__btn--primary {
  border-color: transparent;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 14%) 0%, rgb(255 255 255 / 4%) 48%, transparent 50%), linear-gradient(90deg, #22e4ff, #4f7bff 45%, #e03cff);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgb(0 0 0 / 45%);
}
.gs-sh__list { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.gs-sh__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-left: 2px solid rgb(120 140 255 / 30%);
  background: rgb(5 4 15 / 50%);
  font-size: 12.5px;
}
.gs-sh__kind { font: 700 10px/1.4 "Orbitron", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 1px 5px; border-radius: 2px; }
.gs-sh__kind--state { color: #a9f3ff; border: 1px solid rgb(34 228 255 / 45%); }
.gs-sh__kind--save { color: #f3b3ff; border: 1px solid rgb(224 60 255 / 45%); }
.gs-sh__when { flex: 1; min-width: 0; color: rgb(215 222 255 / 75%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-sh__mini { color: #a9f3ff !important; text-decoration: none; font-weight: 600; }
.gs-sh__mini:hover { text-decoration: underline; }
@media (width < 700px) {
  .gs-sh__head { grid-template-columns: 1fr auto; grid-template-areas: "title close" "sub sub" "filter filter"; }
  .gs-sh__card { grid-template-columns: 110px 1fr; }
  .gs-sh__grid { grid-template-columns: 1fr; }
}
