/* ===================================================================================== */
/* GSSW Download Lightbox                                                                */
/* ===================================================================================== */

.gssw-dlNoScroll {
  overflow: hidden;
}


.gssw-dlLightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.gssw-dlBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.gssw-dlDialog {
  position: relative;
  max-width: 1100px;
  width: calc(100% - 24px);
  margin: 8vh auto;
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.65);
}

.gssw-dlClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  cursor: pointer;
}

.gssw-dlClose:hover {
  background: rgba(255,255,255,0.12);
}

.gssw-dlPreview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  margin: 10px 0 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
}

.gssw-dlDownload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--brand-orange, #ff9a31);
  color: #fff;
  font-weight: 600;
}

.gssw-dlDownload:hover {
  filter: brightness(1.05);
}

/* ===================================================================================== */
/* Asset Library (maps/models)                                                           */
/* ===================================================================================== */

.gssw-lib {
  margin: 18px 0;
}

.gssw-libSection {
  margin: 0 0 28px;
}

.gssw-libSectionTitle {
  margin: 0 0 10px;
}

.gssw-libSectionDivider {
  margin: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.gssw-libAlpha,
.gssw-libPager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gssw-libAlpha {
  margin: 10px 0 14px;
}

.gssw-libPager {
  margin: 16px 0 0;
  justify-content: flex-end;
}

.gssw-libAlphaLink,
.gssw-libPage,
.gssw-libDots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: #ff9900;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
}

.gssw-libDots {
  min-width: 0;
  padding: 0 2px;
  opacity: 0.75;
}

.gssw-libAlphaLink:hover,
.gssw-libPage:hover {
  border-color: rgba(255,255,255,0.25);
}

.gssw-libAlphaLink.is-active,
.gssw-libPage.is-active {
  border-color: rgba(255,153,0,0.65);
  background: rgba(255,153,0,0.10);
  color: #ffcc66;
}

.gssw-libPage.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.gssw-libGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.gssw-libItem {
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
}

.gssw-libItem.has-meta {
  background:
    linear-gradient(180deg, rgba(255,154,49,0.08), rgba(0,0,0,0.28) 26%, rgba(0,0,0,0.52) 100%);
}

.gssw-libLink {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gssw-libLink:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.gssw-libThumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.gssw-libThumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gssw-libNoThumb {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.gssw-libCaption {
  display: block;
  padding: 10px;
  font-size: 13px;
  color: #fff;
  background: rgba(0,0,0,0.65);
  border-top: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.gssw-libCaptionMeta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
}

.gssw-libMetaList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.gssw-libMetaRow {
  min-width: 0;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
}

.gssw-libMetaLabel {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffcc66;
}

.gssw-libMetaLabel::after {
  content: ": ";
}

.gssw-libMetaValue {
  display: inline;
  margin-top: 0;
  font-size: inherit;
  line-height: inherit;
  color: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gssw-libDownloadBtn {
  width: 100%;
  margin-top: auto;
}

.gssw-libItem:hover {
  border-color: #999;
}

@media (max-width: 1100px) {
  .gssw-libGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gssw-libGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gssw-libGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.gssw-libKind-maps .gssw-libGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1400px) {
  .gssw-libKind-maps .gssw-libGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .gssw-libKind-maps .gssw-libGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .gssw-libKind-maps .gssw-libGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gssw-libKind-maps .gssw-libGrid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================================== */
/* MightyXen / WON player model library                                                  */
/* ===================================================================================== */

.gssw-libKind-player-models {
  width: 100%;
}

.gssw-libKind-player-models .gssw-libAlpha {
  gap: 6px;
  margin: 4px 0 28px;
}

.gssw-libKind-player-models .gssw-libAlphaLink {
  min-width: 30px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255,154,49,.22);
  border-radius: 3px;
  background: rgba(0,0,0,.28);
  color: #ff9a31;
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease, text-shadow .16s ease;
}

.gssw-libKind-player-models .gssw-libAlphaLink:hover,
.gssw-libKind-player-models .gssw-libAlphaLink:focus-visible {
  border-color: rgba(255,154,49,.58);
  background: rgba(255,154,49,.055);
  color: #ffb15e;
  text-shadow: 0 0 8px rgba(255,154,49,.24);
}

.gssw-libKind-player-models .gssw-libAlphaLink.is-active {
  border-color: #ff9a31;
  background: rgba(255,154,49,.07);
  color: #ff9a31;
  box-shadow: 0 0 10px rgba(255,154,49,.08);
}

.gssw-libKind-player-models .gssw-libAlpha {
  justify-content: flex-start;
}

.gssw-libKind-player-models .gssw-libPager {
  justify-content: center;
}


.gssw-libKind-player-models .gssw-libGrid {
  grid-template-columns: repeat(5, 150px);
  justify-content: center;
  gap: 18px 20px;
  margin-top: 0;
  align-items: start;
}

.gssw-libKind-player-models .gssw-libPlayerItem {
  width: 150px;
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: visible;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gssw-libKind-player-models .gssw-libPlayerImageLink {
  display: block;
  width: 150px;
  height: 183px;
  overflow: hidden;
  border: 1px solid rgba(125,125,125,.42);
  border-radius: 0;
  background: #040404;
  box-shadow: inset 0 0 18px rgba(0,0,0,.35);
  cursor: zoom-in;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.gssw-libKind-player-models .gssw-libPlayerImageLink:hover,
.gssw-libKind-player-models .gssw-libPlayerImageLink:focus-visible {
  border-color: #ff9a31;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,.26),
    0 0 10px rgba(255,154,49,.10);
}

.gssw-libKind-player-models .gssw-libThumb,
.gssw-libKind-player-models .gssw-libNoThumb {
  display: block;
  width: 150px;
  height: 183px;
  aspect-ratio: auto;
  background: #000;
}

.gssw-libKind-player-models .gssw-libThumb img {
  display: block;
  width: 150px;
  height: 183px;
  object-fit: cover;
  filter: brightness(.90);
  transition: filter .16s ease, transform .16s ease;
}

.gssw-libKind-player-models .gssw-libPlayerImageLink:hover img,
.gssw-libKind-player-models .gssw-libPlayerImageLink:focus-visible img {
  filter: brightness(1.08);
  transform: scale(1.015);
}

.gssw-libKind-player-models .gssw-libPlayerCaption {
  margin: 7px 0 0;
  padding: 0;
  min-width: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.gssw-libKind-player-models .gssw-libPlayerName {
  display: inline;
  padding: 0;
  background: transparent;
  color: #ff9a31;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .16s ease, text-shadow .16s ease;
}

.gssw-libKind-player-models .gssw-libPlayerName:hover,
.gssw-libKind-player-models .gssw-libPlayerName:focus-visible {
  color: #ffb15e;
  text-shadow: 0 0 8px rgba(255,154,49,.18);
}

@media (max-width: 980px) {
  .gssw-libKind-player-models .gssw-libGrid {
    grid-template-columns: repeat(4, 150px);
  }
}

@media (max-width: 760px) {
  .gssw-libKind-player-models .gssw-libGrid {
    grid-template-columns: repeat(3, 150px);
  }
}

@media (max-width: 570px) {
  .gssw-libKind-player-models .gssw-libGrid {
    grid-template-columns: repeat(2, 150px);
    gap: 16px;
  }
}

@media (max-width: 350px) {
  .gssw-libKind-player-models .gssw-libGrid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================================== */
/* Weapon models and sprites                                                             */
/* ===================================================================================== */

.gssw-libKind-weapon-models .gssw-libGrid,
.gssw-libKind-sprites .gssw-libGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gssw-libKind-weapon-models .gssw-libItem,
.gssw-libKind-sprites .gssw-libItem {
  border: 1px solid rgba(255,255,255,0.45);
  background: #000;
}

.gssw-libKind-weapon-models .gssw-libThumb,
.gssw-libKind-sprites .gssw-libThumb {
  aspect-ratio: 4 / 3;
  background: #000;
}

.gssw-libKind-weapon-models .gssw-libCaption,
.gssw-libKind-sprites .gssw-libCaption {
  padding: 6px 8px;
  font-size: 12px;
  background: #050505;
}

@media (max-width: 1100px) {
  .gssw-libKind-weapon-models .gssw-libGrid,
  .gssw-libKind-sprites .gssw-libGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .gssw-libKind-weapon-models .gssw-libGrid,
  .gssw-libKind-sprites .gssw-libGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gssw-libKind-sprites .gssw-libThumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gssw-libKind-sprites .gssw-libThumb img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}



/* ===================================================================================== */
/* MightyXen / WON map library                                                           */
/* ===================================================================================== */

.gssw-libKind-maps {
  width: 100%;
}

.gssw-libKind-maps .gssw-libAlpha {
  gap: 6px;
  margin: 4px 0 28px;
}

.gssw-libKind-maps .gssw-libAlphaLink {
  min-width: 30px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255,154,49,.22);
  border-radius: 3px;
  background: rgba(0,0,0,.28);
  color: #ff9a31;
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease, text-shadow .16s ease;
}

.gssw-libKind-maps .gssw-libAlphaLink:hover,
.gssw-libKind-maps .gssw-libAlphaLink:focus-visible {
  border-color: rgba(255,154,49,.58);
  background: rgba(255,154,49,.055);
  color: #ffb15e;
  text-shadow: 0 0 8px rgba(255,154,49,.24);
}

.gssw-libKind-maps .gssw-libAlphaLink.is-active {
  border-color: #ff9a31;
  background: rgba(255,154,49,.07);
  color: #ff9a31;
  box-shadow: 0 0 10px rgba(255,154,49,.08);
}

.gssw-libKind-maps .gssw-libGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 0;
  align-items: start;
}

.gssw-libKind-maps .gssw-libMapItem {
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: visible;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gssw-libKind-maps .gssw-libMapItem.has-meta {
  background: transparent;
}

.gssw-libKind-maps .gssw-libMapImageLink {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(125,125,125,.38);
  background: #040404;
  box-shadow: inset 0 0 18px rgba(0,0,0,.35);
  transition: border-color .18s ease, filter .18s ease, box-shadow .18s ease;
}

.gssw-libKind-maps .gssw-libMapImageLink:hover,
.gssw-libKind-maps .gssw-libMapImageLink:focus-visible {
  border-color: rgba(255,154,49,.62);
  box-shadow: 0 0 12px rgba(255,154,49,.08), inset 0 0 18px rgba(0,0,0,.28);
}

.gssw-libKind-maps .gssw-libThumb {
  aspect-ratio: 16 / 9;
  background: #020202;
}

.gssw-libKind-maps .gssw-libThumb img {
  filter: brightness(.82) contrast(1.06) saturate(.80);
  transition: filter .18s ease, transform .22s ease;
}

.gssw-libKind-maps .gssw-libMapImageLink:hover .gssw-libThumb img,
.gssw-libKind-maps .gssw-libMapImageLink:focus-visible .gssw-libThumb img {
  filter: brightness(.94) contrast(1.07) saturate(.86);
  transform: scale(1.015);
}

.gssw-libKind-maps .gssw-libMapCaption {
  padding: 9px 2px 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.gssw-libKind-maps .gssw-libMapName {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 3px;
  overflow: hidden;
  background: transparent;
  color: #ff9a31;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: none;
}

.gssw-libKind-maps .gssw-libMapName:hover,
.gssw-libKind-maps .gssw-libMapName:focus-visible {
  color: #ffb15e;
  text-shadow: 0 0 8px rgba(255,154,49,.20);
}

.gssw-libKind-maps .gssw-libMapMeta {
  margin: 0 0 2px !important;
  font-size: 11px;
  line-height: 1.25;
}

.gssw-libKind-maps .gssw-libMapMetaLabel {
  color: #fff;
  font-weight: 400;
}

.gssw-libKind-maps .gssw-libMapMetaValue {
  color: #ff9a31;
  font-weight: 400;
}

.gssw-libKind-maps .gssw-libMapMeta:last-child {
  margin-bottom: 0 !important;
}

.gssw-libKind-maps .gssw-libPager {
  justify-content: center;
  gap: 6px;
  margin: 38px 0 0;
}

.gssw-libKind-maps .gssw-libPage,
.gssw-libKind-maps .gssw-libDots {
  min-width: 30px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255,154,49,.20);
  border-radius: 3px;
  background: rgba(0,0,0,.30);
  color: #ff9a31;
  font-size: 11px;
}

.gssw-libKind-maps .gssw-libPage:hover,
.gssw-libKind-maps .gssw-libPage:focus-visible,
.gssw-libKind-maps .gssw-libPage.is-active {
  border-color: #ff9a31;
  background: rgba(255,154,49,.06);
  color: #ffb15e;
}

.gssw-libKind-maps .gssw-libPage.is-disabled {
  color: #666;
  border-color: rgba(255,255,255,.08);
}

@media (max-width: 900px) {
  .gssw-libKind-maps .gssw-libGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (max-width: 680px) {
  .gssw-libKind-maps .gssw-libGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .gssw-libKind-maps .gssw-libGrid {
    grid-template-columns: 1fr;
  }
}


/* =====================================================================================
   Map author filtering
   ===================================================================================== */

.gssw-libKind-maps .gssw-libMapAuthorLink {
  color: #ff9a31;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,154,49,.34);
  transition: color .16s ease, border-color .16s ease, text-shadow .16s ease;
}

.gssw-libKind-maps .gssw-libMapAuthorLink:hover,
.gssw-libKind-maps .gssw-libMapAuthorLink:focus-visible {
  color: #ffb15e;
  border-bottom-color: rgba(255,177,94,.78);
  text-shadow: 0 0 7px rgba(255,154,49,.22);
  outline: none;
}

.gssw-libKind-maps .gssw-libAuthorFilter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 7px 10px;
  border-left: 2px solid #ff9a31;
  background: linear-gradient(90deg, rgba(255,154,49,.075), rgba(0,0,0,0) 72%);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}

.gssw-libKind-maps .gssw-libAuthorFilterLabel {
  color: rgba(255,255,255,.72);
}

.gssw-libKind-maps .gssw-libAuthorFilterName {
  color: #ff9a31;
  font-weight: 700;
}

.gssw-libKind-maps .gssw-libAuthorFilterClear {
  margin-left: 4px;
  color: #ff9a31;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,154,49,.30);
}

.gssw-libKind-maps .gssw-libAuthorFilterClear:hover,
.gssw-libKind-maps .gssw-libAuthorFilterClear:focus-visible {
  color: #ffb15e;
  border-bottom-color: rgba(255,177,94,.76);
  outline: none;
}


/* ===================================================================================== */
/* Simplified responsive download preview                                                 */
/* ===================================================================================== */

.gssw-dlLightbox {
  display: grid;
  place-items: center;
  padding: 12px;
  box-sizing: border-box;
}

.gssw-dlLightbox[hidden] {
  display: none !important;
}

.gssw-dlBackdrop {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(2px);
}

.gssw-dlDialog {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  margin: 0;
  padding: 10px;
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 18px 70px rgba(0,0,0,.72);
}

.gssw-dlPreviewWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.gssw-dlPreview {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 96px);
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 3px;
  background: #000;
}

.gssw-dlPreview[hidden] {
  display: none !important;
}

.gssw-dlFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding: 9px 3px 1px;
  font-size: 12px;
  line-height: 1.3;
}

.gssw-dlFileSize {
  min-width: 0;
  color: rgba(255,255,255,.72);
}

.gssw-dlFileSizeLabel {
  color: #fff;
}

.gssw-dlFileSizeValue {
  color: rgba(255,255,255,.72);
}

.gssw-dlDownload {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--brand-orange, #ff9a31) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gssw-dlDownload::after {
  content: '  ›';
}

.gssw-dlDownload:hover,
.gssw-dlDownload:focus-visible {
  color: #ffb15e !important;
  filter: none;
  text-shadow: 0 0 7px rgba(255,154,49,.24);
  outline: none;
}

.gssw-dlClose {
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  background: rgba(0,0,0,.68);
  color: #fff;
  font-size: 20px;
  line-height: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.gssw-dlClose:hover,
.gssw-dlClose:focus-visible {
  border-color: rgba(255,154,49,.48);
  background: rgba(0,0,0,.82);
  color: #ff9a31;
  outline: none;
}

/* Previous / next browsing for map and player-model archive previews. */
.gssw-dlNav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-orange, #ff9a31);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 54px;
  font-weight: 300;
  line-height: 58px;
  text-align: center;
  cursor: pointer;
  transform: translateY(-50%);
  text-shadow:
    0 1px 2px rgba(0,0,0,.96),
    0 0 9px rgba(255,154,49,.16);
  opacity: .96;
  transition: color .16s ease, opacity .16s ease, transform .18s ease, text-shadow .18s ease;
}

.gssw-dlNav[hidden] {
  display: none !important;
}

.gssw-dlPrev {
  left: 12px;
}

.gssw-dlNext {
  right: 12px;
}

.gssw-dlNav:hover,
.gssw-dlNav:focus-visible {
  color: #ffb15e;
  opacity: 1;
  outline: none;
  transform: translateY(-50%) scale(1.10);
  text-shadow:
    0 1px 3px rgba(0,0,0,1),
    0 0 13px rgba(255,154,49,.32);
}

/* Compact portrait previews keep the arrows near the dialog edges, outside the artwork. */
.gssw-dlLightbox--player-models .gssw-dlPrev {
  left: 8px;
}

.gssw-dlLightbox--player-models .gssw-dlNext {
  right: 8px;
}

@media (max-width: 700px) {
  .gssw-dlLightbox {
    padding: 8px;
  }

  .gssw-dlDialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 7px;
    border-radius: 5px;
  }

  .gssw-dlPreview {
    max-height: calc(100vh - 86px);
    border-radius: 2px;
  }

  .gssw-dlFooter {
    gap: 10px;
    padding: 8px 2px 1px;
    font-size: 11px;
  }

  .gssw-dlDownload {
    font-size: 11px;
  }

  .gssw-dlClose {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 28px;
  }

  .gssw-dlNav {
    width: 34px;
    height: 54px;
    font-size: 44px;
    line-height: 50px;
  }

  .gssw-dlPrev,
  .gssw-dlLightbox--player-models .gssw-dlPrev {
    left: 4px;
  }

  .gssw-dlNext,
  .gssw-dlLightbox--player-models .gssw-dlNext {
    right: 4px;
  }
}

@media (max-width: 420px) {
  .gssw-dlFooter {
    flex-wrap: wrap;
  }

  .gssw-dlDownload {
    margin-left: auto;
  }
}


/* ===================================================================================== */
/* Dual-mode lightbox: image preview vs compact file download                             */
/* ===================================================================================== */

.gssw-dlFileName {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gssw-dlFileName[hidden] {
  display: none !important;
}

/* Image-backed library items retain the large responsive preview layout. */
.gssw-dlLightbox--preview .gssw-dlFileName {
  display: none !important;
}


/* Player-model artwork is portrait-sized, so its preview dialog should stay compact. */
.gssw-dlLightbox--preview.gssw-dlLightbox--player-models .gssw-dlDialog {
  width: min(360px, calc(100vw - 24px));
  max-width: 360px;
  padding: 10px;
}

.gssw-dlLightbox--preview.gssw-dlLightbox--player-models .gssw-dlPreviewWrap {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  background: #050505;
}

.gssw-dlLightbox--preview.gssw-dlLightbox--player-models .gssw-dlPreview {
  max-width: 260px;
  max-height: calc(100vh - 150px);
}

.gssw-dlLightbox--preview.gssw-dlLightbox--player-models .gssw-dlFooter {
  padding: 9px 3px 1px;
}

@media (max-width: 420px) {
  .gssw-dlLightbox--preview.gssw-dlLightbox--player-models .gssw-dlDialog {
    width: calc(100vw - 16px);
  }

  .gssw-dlLightbox--preview.gssw-dlLightbox--player-models .gssw-dlPreview {
    max-width: min(240px, 100%);
  }
}

/* Files without artwork use a deliberately small, content-sized dialog. */
.gssw-dlLightbox--file .gssw-dlDialog {
  width: min(460px, calc(100vw - 32px));
  max-width: 460px;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,154,49,.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.08)),
    #0b0b0b;
  box-shadow:
    0 18px 54px rgba(0,0,0,.72),
    0 0 18px rgba(255,154,49,.035);
}

.gssw-dlLightbox--file .gssw-dlPreviewWrap {
  display: none !important;
}

.gssw-dlLightbox--file .gssw-dlFooter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name name"
    "size download";
  align-items: end;
  gap: 18px 22px;
  min-height: 0;
  padding: 20px 52px 19px 20px;
  font-size: 12px;
  line-height: 1.35;
}

.gssw-dlLightbox--file .gssw-dlFileName {
  display: block;
  grid-area: name;
  margin: 0;
  padding: 0 10px 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.gssw-dlLightbox--file .gssw-dlFileSize {
  grid-area: size;
  display: grid;
  gap: 3px;
  margin: 0;
  color: #fff;
}

.gssw-dlLightbox--file .gssw-dlFileSizeLabel {
  display: block;
  color: rgba(255,154,49,.90);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gssw-dlLightbox--file .gssw-dlFileSizeValue {
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.gssw-dlLightbox--file .gssw-dlDownload {
  grid-area: download;
  justify-self: end;
  align-self: end;
  white-space: nowrap;
  font-size: 12px;
}

.gssw-dlLightbox--file .gssw-dlClose {
  top: 13px;
  right: 13px;
  width: 28px;
  height: 28px;
  border-color: rgba(255,255,255,.10);
  border-radius: 4px;
  background: rgba(255,255,255,.035);
  font-size: 18px;
  line-height: 26px;
}

@media (max-width: 520px) {
  .gssw-dlLightbox--file .gssw-dlDialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .gssw-dlLightbox--file .gssw-dlFooter {
    gap: 16px 18px;
    padding: 18px 46px 17px 18px;
  }

  .gssw-dlLightbox--file .gssw-dlFileName {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .gssw-dlLightbox--file .gssw-dlFooter {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "size"
      "download";
    align-items: start;
  }

  .gssw-dlLightbox--file .gssw-dlDownload {
    justify-self: start;
  }
}


/* Map previews show their identifying metadata in one left-aligned footer row. */
.gssw-dlMapDetails[hidden],
.gssw-dlFileSize[hidden] {
  display: none !important;
}

.gssw-dlLightbox--maps .gssw-dlDialog {
  text-align: left;
}

.gssw-dlLightbox--maps .gssw-dlFooter {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
}

.gssw-dlLightbox--maps .gssw-dlFileName,
.gssw-dlLightbox--maps .gssw-dlFileSize {
  display: none !important;
}

.gssw-dlLightbox--maps .gssw-dlMapDetails:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.gssw-dlLightbox--maps .gssw-dlMapDetail {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.gssw-dlLightbox--maps .gssw-dlMapDetail dt {
  flex: 0 0 auto;
  margin: 0;
  color: #ff9a31 !important;
  font-weight: 700;
  white-space: nowrap;
}

.gssw-dlLightbox--maps .gssw-dlMapDetail dd {
  min-width: 0;
  margin: 0;
  color: #fff !important;
  overflow-wrap: anywhere;
}

.gssw-dlLightbox--maps .gssw-dlDownload {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

/* A map without usable artwork keeps the same metadata footer in compact mode. */
.gssw-dlLightbox--file.gssw-dlLightbox--maps .gssw-dlDialog {
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
}

@media (max-width: 700px) {
  .gssw-dlLightbox--maps .gssw-dlFooter {
    gap: 12px;
  }

  .gssw-dlLightbox--maps .gssw-dlMapDetails:not([hidden]) {
    gap: 4px 12px;
  }
}

@media (max-width: 420px) {
  .gssw-dlLightbox--maps .gssw-dlFooter {
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .gssw-dlLightbox--maps .gssw-dlMapDetails:not([hidden]) {
    flex: 1 1 100%;
  }

  .gssw-dlLightbox--maps .gssw-dlDownload {
    margin-left: auto;
  }
}


/* ===================================================================================== */
/* MightyXen / WON weapon model library                                                  */
/* Grouped by weapon/category, but visually aligned with the map/player archives.         */
/* ===================================================================================== */

.gssw-libKind-weapon-models {
  width: 100%;
}

.gssw-libKind-weapon-models .gssw-libSection {
  margin: 0 0 30px;
}

.gssw-libKind-weapon-models .gssw-libSectionTitle {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border: 0;
  background: transparent !important;
  color: #ff9a31;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,154,49,.10);
  box-shadow: none !important;
}

.gssw-libKind-weapon-models .gssw-libSectionTitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(390px, 72%);
  height: 1px;
  background: linear-gradient(90deg, rgba(255,154,49,.48), rgba(255,255,255,.08), transparent);
}

.gssw-libKind-weapon-models .gssw-libSectionDivider {
  margin: 12px 0 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10) 18%, rgba(255,255,255,.10) 82%, transparent);
}

.gssw-libKind-weapon-models .gssw-libGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
  align-items: start;
}

.gssw-libKind-weapon-models .gssw-libWeaponItem {
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: visible;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gssw-libKind-weapon-models .gssw-libWeaponImageLink {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(125,125,125,.38);
  border-radius: 0;
  background: #040404;
  box-shadow: inset 0 0 18px rgba(0,0,0,.35);
  cursor: zoom-in;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.gssw-libKind-weapon-models .gssw-libWeaponImageLink:hover,
.gssw-libKind-weapon-models .gssw-libWeaponImageLink:focus-visible {
  border-color: #ff9a31;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,.26),
    0 0 10px rgba(255,154,49,.10);
}

.gssw-libKind-weapon-models .gssw-libThumb,
.gssw-libKind-weapon-models .gssw-libNoThumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #020202;
}

.gssw-libKind-weapon-models .gssw-libThumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.86) contrast(1.05) saturate(.84);
  transition: filter .18s ease, transform .22s ease;
}

.gssw-libKind-weapon-models .gssw-libWeaponImageLink:hover .gssw-libThumb img,
.gssw-libKind-weapon-models .gssw-libWeaponImageLink:focus-visible .gssw-libThumb img {
  filter: brightness(1.02) contrast(1.06) saturate(.90);
  transform: scale(1.015);
}

.gssw-libKind-weapon-models .gssw-libWeaponCaption {
  margin: 7px 0 0;
  padding: 0 2px;
  background: transparent;
  border: 0;
  text-align: left;
}

.gssw-libKind-weapon-models .gssw-libWeaponName {
  display: inline;
  padding: 0;
  background: transparent;
  color: #ff9a31;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: none;
  transition: color .16s ease, text-shadow .16s ease;
}

.gssw-libKind-weapon-models .gssw-libWeaponName:hover,
.gssw-libKind-weapon-models .gssw-libWeaponName:focus-visible {
  color: #ffb15e;
  text-shadow: 0 0 8px rgba(255,154,49,.18);
}

@media (max-width: 900px) {
  .gssw-libKind-weapon-models .gssw-libGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gssw-libKind-weapon-models .gssw-libGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (max-width: 420px) {
  .gssw-libKind-weapon-models .gssw-libGrid {
    grid-template-columns: 1fr;
  }
}


/* ===================================================================================== */
/* MightyXen / WON sprite library                                                        */
/* Small sprite previews retain their native size inside a compact six-column archive.   */
/* ===================================================================================== */

.gssw-libKind-sprites {
  width: 100%;
}

.gssw-libKind-sprites .gssw-libSection {
  margin: 0 0 28px;
}

.gssw-libKind-sprites .gssw-libSectionTitle {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 8px;
  border: 0;
  background: transparent !important;
  color: #ff9a31;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,154,49,.10);
  box-shadow: none !important;
}

.gssw-libKind-sprites .gssw-libSectionTitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(390px, 72%);
  height: 1px;
  background: linear-gradient(90deg, rgba(255,154,49,.48), rgba(255,255,255,.08), transparent);
}

.gssw-libKind-sprites .gssw-libSectionDivider {
  margin: 10px 0 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10) 18%, rgba(255,255,255,.10) 82%, transparent);
}

.gssw-libKind-sprites .gssw-libGrid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 0;
  align-items: start;
}

.gssw-libKind-sprites .gssw-libSpriteItem {
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: visible;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gssw-libKind-sprites .gssw-libSpriteImageLink {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(125,125,125,.30);
  border-radius: 0;
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 0 16px rgba(0,0,0,.28);
  cursor: zoom-in;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gssw-libKind-sprites .gssw-libSpriteImageLink:hover,
.gssw-libKind-sprites .gssw-libSpriteImageLink:focus-visible {
  border-color: #ff9a31;
  background: rgba(8,8,8,.56);
  box-shadow:
    inset 0 0 16px rgba(0,0,0,.22),
    0 0 10px rgba(255,154,49,.10);
}

.gssw-libKind-sprites .gssw-libThumb,
.gssw-libKind-sprites .gssw-libNoThumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 104px;
  aspect-ratio: auto;
  background: transparent;
}

.gssw-libKind-sprites .gssw-libThumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 12px);
  max-height: 92px;
  object-fit: contain;
  margin: 0 auto;
  filter: brightness(.88) contrast(1.04) saturate(.92);
  transition: filter .18s ease;
}

.gssw-libKind-sprites .gssw-libSpriteImageLink:hover .gssw-libThumb img,
.gssw-libKind-sprites .gssw-libSpriteImageLink:focus-visible .gssw-libThumb img {
  filter: brightness(1.08) contrast(1.05) saturate(1);
}

.gssw-libKind-sprites .gssw-libSpriteCaption {
  margin: 6px 0 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  text-align: left;
}

.gssw-libKind-sprites .gssw-libSpriteName {
  display: inline;
  padding: 0;
  background: transparent;
  color: #ff9a31;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: none;
  transition: color .16s ease, text-shadow .16s ease;
}

.gssw-libKind-sprites .gssw-libSpriteName:hover,
.gssw-libKind-sprites .gssw-libSpriteName:focus-visible {
  color: #ffb15e;
  text-shadow: 0 0 8px rgba(255,154,49,.18);
}

/* Sprite artwork is generally much smaller than maps/models; keep its preview compact. */
.gssw-dlLightbox--preview.gssw-dlLightbox--sprites .gssw-dlDialog {
  width: min(520px, calc(100vw - 24px));
  max-width: 520px;
  padding: 10px;
}

.gssw-dlLightbox--preview.gssw-dlLightbox--sprites .gssw-dlPreviewWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 18px;
  box-sizing: border-box;
  background: #050505;
}

.gssw-dlLightbox--preview.gssw-dlLightbox--sprites .gssw-dlPreview {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(360px, calc(100vh - 150px));
  object-fit: contain;
}

.gssw-dlLightbox--sprites .gssw-dlPrev { left: 8px; }
.gssw-dlLightbox--sprites .gssw-dlNext { right: 8px; }

@media (max-width: 980px) {
  .gssw-libKind-sprites .gssw-libGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .gssw-libKind-sprites .gssw-libGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gssw-libKind-sprites .gssw-libGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

@media (max-width: 440px) {
  .gssw-libKind-sprites .gssw-libGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gssw-dlLightbox--preview.gssw-dlLightbox--sprites .gssw-dlDialog {
    width: calc(100vw - 16px);
  }
}
