.cobra-games-library-body {
  color: #f7fbff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(125, 247, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 62%, rgba(170, 27, 32, 0.36), transparent 36%),
    linear-gradient(135deg, rgba(255, 216, 107, 0.08), transparent 36%) !important;
  background-color: #05070b !important;
  background-attachment: fixed;
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
}

.cobra-games-library-body #page,
.cobra-games-library-body #content,
.cobra-games-library-body .site-footer,
.cobra-games-library-body .footer {
  background: transparent !important;
}

.cobra-games-library-body .footer img {
  display: none;
}

.game-library-page {
  --game-library-top-card-height: 532px;
  position: relative;
  min-height: 100vh;
  padding: clamp(78px, 8vw, 118px) 20px clamp(48px, 7vw, 86px);
  color: #f7fbff;
  overflow: visible;
}

.game-library-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 92%);
}

.game-library-shell {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.game-library-rail {
  position: sticky;
  top: 88px;
  z-index: 6;
  align-self: start;
  height: min(var(--game-library-top-card-height), calc(100vh - 116px));
  max-height: min(var(--game-library-top-card-height), calc(100vh - 116px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.78);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  overflow: auto;
}

.game-library-rail__title {
  display: block;
  padding: 5px 7px 10px;
  color: rgba(247, 251, 255, 0.64);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-library-rail__items {
  display: grid;
  gap: 7px;
}

.game-library-rail a {
  --library-accent: #ffd86b;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-color: color-mix(in srgb, var(--library-accent) 62%, transparent);
  border-radius: 7px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.game-library-rail a:hover,
.game-library-rail a:focus {
  border-color: color-mix(in srgb, var(--library-accent) 60%, rgba(255, 255, 255, 0.16));
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.game-library-rail span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-library-rail small {
  overflow: hidden;
  color: rgba(247, 251, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-library-main {
  min-width: 0;
}

.game-library-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 18px;
  align-items: stretch;
}

.game-library-hero__copy,
.game-library-spotlight,
.game-library-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.86), rgba(9, 12, 19, 0.72));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.game-library-hero__copy {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--game-library-top-card-height);
  padding: clamp(22px, 3vw, 34px);
}

.game-library-eyebrow {
  margin: 0 0 10px;
  color: #7df7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-library-hero h1 {
  margin: 0;
  color: #fffaf6;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-library-lede {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(247, 251, 255, 0.82);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.42;
}

.game-library-stats {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(128px, 1.2fr) minmax(0, 0.9fr);
  gap: 9px;
  margin-top: 28px;
}

.game-library-stats div {
  container-type: inline-size;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.game-library-stat-value {
  display: block;
  max-width: 100%;
  color: #ffd86b;
  font-size: clamp(22px, 2vw, 31px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
  word-break: normal;
}

.game-library-stat-value--score {
  font-size: clamp(22px, 17cqi, 34px);
}

.game-library-stats span {
  display: block;
  margin-top: 7px;
  color: rgba(247, 251, 255, 0.66);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-library-spotlight {
  --library-accent: #7df7ff;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  overflow: hidden;
}

.game-library-spotlight-carousel {
  display: grid;
  gap: 10px;
  align-self: stretch;
  min-width: 0;
}

.game-library-spotlight-viewport {
  min-width: 0;
  border-radius: 8px;
  overflow-x: auto;
  outline-offset: 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.game-library-spotlight-viewport::-webkit-scrollbar,
.game-library-spotlight-dots::-webkit-scrollbar {
  display: none;
}

.game-library-spotlight-track {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.game-library-spotlight-track .game-library-spotlight {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.game-library-spotlight-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.game-library-spotlight-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(125, 247, 255, 0.24);
  border-radius: 8px;
  color: #f7fbff;
  background: rgba(9, 14, 24, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.game-library-spotlight-arrow:hover,
.game-library-spotlight-arrow:focus {
  border-color: rgba(125, 247, 255, 0.58);
  background: rgba(125, 247, 255, 0.12);
  transform: translateY(-1px);
}

.game-library-spotlight-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.game-library-spotlight-dot {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.22);
  cursor: pointer;
  scroll-snap-align: center;
  transition: background 0.18s ease, box-shadow 0.18s ease, width 0.18s ease;
}

.game-library-spotlight-dot.is-active,
.game-library-spotlight-dot[aria-current="true"] {
  width: 36px;
  background: #7df7ff;
  box-shadow: 0 0 20px rgba(125, 247, 255, 0.34);
}

.game-library-spotlight-dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.game-library-spotlight__art,
.game-library-card__art {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f7fbff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--library-accent) 26%, transparent), transparent 58%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
    #080d16;
  text-decoration: none;
}

.game-library-spotlight__art {
  box-sizing: border-box;
  min-height: var(--game-library-top-card-height);
}

.game-library-card__art {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-library-spotlight__art img,
.game-library-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-library-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.52));
  background-size: 28px 28px, 28px 28px, auto;
}

.game-library-placeholder::before {
  position: absolute;
  inset: 16% 12% 26%;
  border: 1px solid color-mix(in srgb, var(--library-accent) 62%, transparent);
  border-radius: 8px;
  content: "";
  opacity: 0.64;
}

.game-library-placeholder span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(20px, 3vw, 44px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.game-library-card .game-library-placeholder span {
  font-size: clamp(19px, 1.8vw, 28px);
}

.game-library-placeholder b {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--library-accent) 44%, transparent);
  border-radius: 6px;
  color: color-mix(in srgb, var(--library-accent) 80%, #fff);
  background: rgba(0, 0, 0, 0.34);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-library-spotlight__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  padding: clamp(18px, 2.4vw, 28px);
}

.game-library-spotlight__tag,
.game-library-card__meta span,
.game-library-board__head span {
  color: rgba(247, 251, 255, 0.64);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-library-spotlight h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-library-spotlight p,
.game-library-card__body p,
.game-library-row__head p {
  color: rgba(247, 251, 255, 0.76);
  line-height: 1.52;
}

.game-library-spotlight p {
  margin: 12px 0 0;
  font-size: 16px;
}

.game-library-spotlight__scores {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-library-spotlight__scores > span {
  display: block;
  color: var(--library-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-library-spotlight__scores ol,
.game-library-board__list {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.game-library-spotlight__scores li,
.game-library-board__list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #f7fbff;
}

.game-library-spotlight__scores li:first-child,
.game-library-board__list li:first-child {
  border-top: 0;
}

.game-library-spotlight__scores b,
.game-library-rank {
  color: var(--library-accent);
  font-weight: 900;
}

.game-library-spotlight__scores span,
.game-library-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-library-spotlight__scores strong,
.game-library-score {
  font-weight: 850;
}

.game-library-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--library-accent) 44%, rgba(255, 255, 255, 0.18));
  border-radius: 8px;
  color: #061018;
  background: var(--library-accent);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--library-accent) 16%, transparent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-library-play:hover,
.game-library-play:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--library-accent) 22%, transparent);
}

.game-library-row {
  margin-top: clamp(28px, 4vw, 52px);
}

.game-library-row__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.game-library-row__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-library-row__head p {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  text-align: right;
}

.game-library-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.game-library-card {
  --library-accent: #ffd86b;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.game-library-card.is-featured,
.game-library-spotlight.is-featured,
.game-library-rail a.is-featured {
  --library-accent: #ffd7a9;
}

.game-library-card.is-red,
.game-library-spotlight.is-red,
.game-library-rail a.is-red {
  --library-accent: #ff948d;
}

.game-library-card.is-blue,
.game-library-spotlight.is-blue,
.game-library-rail a.is-blue {
  --library-accent: #8bd6ff;
}

.game-library-card.is-purple,
.game-library-spotlight.is-purple,
.game-library-rail a.is-purple {
  --library-accent: #d79cff;
}

.game-library-card.is-green,
.game-library-spotlight.is-green,
.game-library-rail a.is-green {
  --library-accent: #96efaf;
}

.game-library-card.is-cyan,
.game-library-spotlight.is-cyan,
.game-library-rail a.is-cyan {
  --library-accent: #7de9ff;
}

.game-library-card.is-gold,
.game-library-spotlight.is-gold,
.game-library-rail a.is-gold {
  --library-accent: #ffe087;
}

.game-library-card.is-rose,
.game-library-spotlight.is-rose,
.game-library-rail a.is-rose {
  --library-accent: #ff9ac0;
}

.game-library-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}

.game-library-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.game-library-card__meta span:last-child {
  color: var(--library-accent);
}

.game-library-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-library-card h3 a {
  color: #fff;
  text-decoration: none;
}

.game-library-card h3 a:hover,
.game-library-card h3 a:focus {
  color: var(--library-accent);
}

.game-library-card__body p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
}

.game-library-card__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.game-library-card__traits span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  color: rgba(247, 251, 255, 0.74);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.game-library-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-library-card__categories span {
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--library-accent) 32%, rgba(255, 255, 255, 0.1));
  border-radius: 7px;
  color: var(--library-accent);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.game-library-card .game-library-play {
  width: 100%;
  margin-top: 2px;
}

.game-library-board {
  margin-top: auto;
  padding: 13px 15px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.game-library-board__head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.game-library-board__head strong,
.game-library-details summary {
  color: var(--library-accent);
  font-size: 13px;
  font-weight: 900;
}

.game-library-board__list li {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  font-size: 13px;
}

.game-library-empty {
  margin: 9px 0 0;
  color: rgba(247, 251, 255, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

.game-library-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-library-details summary {
  cursor: pointer;
  list-style: none;
}

.game-library-details summary::-webkit-details-marker {
  display: none;
}

.game-library-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  color: #f7fbff;
  font-size: 13px;
}

.game-library-table th,
.game-library-table td {
  padding: 8px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.game-library-table th {
  color: rgba(247, 251, 255, 0.6);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@supports not (color: color-mix(in srgb, white, black)) {
  .game-library-rail a,
  .game-library-play,
  .game-library-placeholder::before,
  .game-library-placeholder b,
  .game-library-card__categories span {
    border-color: rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 1240px) {
  .game-library-shell {
    grid-template-columns: 1fr;
  }

  .game-library-rail {
    position: relative;
    top: auto;
    z-index: 5;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .game-library-rail__items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .game-library-rail a {
    flex: 0 0 172px;
    scroll-snap-align: start;
  }

  .game-library-rail a:hover,
  .game-library-rail a:focus {
    transform: translateY(-1px);
  }
}

@media (max-width: 1120px) {
  .game-library-hero {
    grid-template-columns: 1fr;
  }

  .game-library-hero__copy {
    min-height: auto;
  }

  .game-library-spotlight {
    grid-template-columns: 1fr;
  }

  .game-library-spotlight__art {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .game-library-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .game-library-page {
    padding: 74px 12px 42px;
  }

  .game-library-shell {
    gap: 16px;
  }

  .game-library-hero h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .game-library-stats,
  .game-library-shelf {
    grid-template-columns: 1fr;
  }

  .game-library-row__head {
    display: block;
  }

  .game-library-row__head p {
    max-width: none;
    margin-top: 9px;
    text-align: left;
  }

  .game-library-spotlight__scores li,
  .game-library-board__list li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .game-library-spotlight__scores strong,
  .game-library-score {
    grid-column: 2;
  }
}
