.wrap--games {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.page-games,
.page-games body {
  min-height: 100%;
  background: #090b0c;
}

.page-games body {
  overflow-x: hidden;
  color: #f4f2ed;
}

.gameHub,
.gameHub * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.gameHub {
  --gh-border: rgba(255, 255, 255, .12);
  --gh-surface: rgba(17, 19, 20, .96);
  --gh-muted: #aaa9a5;
  --gh-scum: #8caf71;
  --gh-deadside: #cf6c50;
  --gh-blue: #75a7be;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  color: #f4f2ed;
  font-family: var(--font, Inter, Arial, sans-serif);
}

body.page-games.has-site-reactive-scene .siteReactiveScene {
  opacity: .12;
  filter: saturate(.45) brightness(.48);
}

.gameHub__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #090b0c;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(140, 175, 113, .025), transparent 40%, rgba(207, 108, 80, .025));
}

.gameHub__shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.gameHubMasthead,
.gameHubMasthead__brand,
.gameHubMasthead__nav,
.gameHubMasthead__nav a {
  display: flex;
  align-items: center;
}

.gameHubMasthead {
  position: sticky;
  top: 12px;
  z-index: 40;
  min-height: 64px;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(117, 167, 190, .26);
  border-radius: 8px;
  background: rgba(10, 12, 13, .96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.gameHubMasthead__brand {
  min-width: 0;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.gameHubMasthead__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(140, 175, 113, .55);
  border-radius: 6px;
  background: #344331;
  color: #f7fff2;
  font-family: "Russo One", sans-serif;
  font-size: .72rem;
}

.gameHubMasthead__brandText {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gameHubMasthead__brandText b {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gameHubMasthead__brandText small {
  color: var(--gh-muted);
  font-size: .76rem;
}

.gameHubMasthead__nav {
  gap: 6px;
}

.gameHubMasthead__nav a {
  min-height: 42px;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d8d6d1;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gameHubMasthead__nav a:hover,
.gameHubMasthead__nav a:focus-visible {
  border-color: var(--gh-border);
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.gameHubMasthead__nav .gameHubMasthead__profile {
  border-color: rgba(117, 167, 190, .34);
  background: rgba(117, 167, 190, .08);
}

.gameHubStage {
  display: grid;
  gap: 46px;
  padding: 64px 24px 20px;
}

.gameHubHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gh-border);
}

.gameHubHero__eyebrow,
.gameHubSectionHead p {
  margin: 0 0 10px;
  color: var(--gh-scum);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gameHubHero h1 {
  margin: 0;
  color: #fff;
  font-family: "Russo One", var(--font, Inter, Arial, sans-serif);
  font-size: 3.5rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.gameHubHero > div > p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: #c2c0ba;
  font-size: 1.08rem;
  line-height: 1.65;
}

.gameHubHero__summary {
  display: grid;
  gap: 8px;
  min-width: 230px;
}

.gameHubHero__summary span {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-left: 2px solid rgba(117, 167, 190, .52);
  background: rgba(255, 255, 255, .035);
  color: #aaa9a5;
  font-size: .86rem;
}

.gameHubHero__summary i {
  width: 18px;
  color: var(--gh-blue);
  text-align: center;
}

.gameHubHero__summary b {
  color: #fff;
}

.gameHubServers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gameServer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: var(--gh-surface);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .23);
}

.gameServer__media {
  position: relative;
  aspect-ratio: 2.14 / 1;
  overflow: hidden;
  background: #111;
}

.gameServer__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 9, .88), rgba(7, 8, 9, .02) 58%);
  content: "";
  pointer-events: none;
}

.gameServer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.gameServer:hover .gameServer__media img {
  transform: scale(1.025);
}

.gameServer__gameName {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 2;
  color: #fff;
  font-family: "Russo One", var(--font, Inter, Arial, sans-serif);
  font-size: 2.15rem;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .78);
}

.gameServer__status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  background: rgba(8, 9, 9, .84);
  color: #ddd;
  font-size: .76rem;
}

.gameServer__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8c8c8c;
}

.gameServer__status--online i { background: #81be7b; box-shadow: 0 0 0 4px rgba(129, 190, 123, .15); }
.gameServer__status--online b { color: #c9efc5; }
.gameServer__status--offline i { background: #d16a5c; box-shadow: 0 0 0 4px rgba(209, 106, 92, .14); }
.gameServer__status--offline b { color: #f0b0a8; }
.gameServer__status--stale i { background: #d7aa54; box-shadow: 0 0 0 4px rgba(215, 170, 84, .14); }
.gameServer__status--stale b { color: #efd297; }

.gameServer__body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.gameServer__description,
.gameServer__note {
  margin: 0;
  color: #b6b4ae;
  line-height: 1.55;
}

.gameServer__description {
  min-height: 3.1em;
  font-size: .96rem;
}

.gameServer__metrics {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 12px;
}

.gameServer__metrics > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
}

.gameServer__metrics span {
  color: #8f8e89;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gameServer__metrics strong {
  overflow: hidden;
  color: #f7f5f0;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gameServer__metrics small {
  color: #777671;
  font-size: .78rem;
}

.gameServer__bar {
  height: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .07);
}

.gameServer__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gh-scum);
  transition: width .35s ease;
}

.gameServer--deadside .gameServer__bar i { background: var(--gh-deadside); }

.gameServer__address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(117, 167, 190, .22);
  border-radius: 6px;
  background: #0c0e0f;
}

.gameServer__address[hidden] { display: none; }

.gameServer__address code {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  color: #d5e6ed;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.gameServer__address button {
  border: 0;
  border-left: 1px solid rgba(117, 167, 190, .2);
  background: rgba(117, 167, 190, .07);
  color: var(--gh-blue);
  cursor: pointer;
}

.gameServer__address button:hover,
.gameServer__address button:focus-visible { background: rgba(117, 167, 190, .16); color: #fff; }

.gameServer__note {
  min-height: 1.5em;
  font-size: .82rem;
}

.gameServer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gameHubButton {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(140, 175, 113, .48);
  border-radius: 6px;
  background: #465e3e;
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.gameServer--deadside .gameHubButton:not(.gameHubButton--quiet) {
  border-color: rgba(207, 108, 80, .5);
  background: #754033;
}

.gameHubButton--quiet {
  border-color: var(--gh-border);
  background: rgba(255, 255, 255, .04);
  color: #d3d1cc;
}

.gameHubButton:disabled { opacity: .55; cursor: wait; }

.gameHubNews {
  display: grid;
  gap: 20px;
}

.gameHubSectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gh-border);
}

.gameHubSectionHead h2 {
  margin: 0;
  color: #fff;
  font-family: "Russo One", var(--font, Inter, Arial, sans-serif);
  font-size: 2rem;
}

.gameHubSectionHead > span {
  color: var(--gh-muted);
  font-size: .84rem;
}

.gameHubNews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gameNewsCard {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: rgba(17, 19, 20, .94);
}

.gameNewsCard > img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.gameNewsCard__body {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.gameNewsCard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #85847f;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gameNewsCard__meta span { color: var(--gh-blue); }
.gameNewsCard h3 { margin: 0; color: #fff; font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.gameNewsCard p { margin: 0; color: #aaa9a5; font-size: .9rem; line-height: 1.58; white-space: pre-line; }

.gameHubEmpty {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 260px;
  place-content: center;
  padding: 32px;
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: #aaa9a5;
  text-align: center;
}

.gameHubEmpty i { color: var(--gh-blue); font-size: 1.6rem; }
.gameHubEmpty strong { color: #f1efea; font-size: 1.1rem; }
.gameHubEmpty span { max-width: 560px; line-height: 1.55; }
.gameHubEmpty--news { grid-column: 1 / -1; min-height: 180px; }

.gameHubToast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid rgba(117, 167, 190, .36);
  border-radius: 6px;
  background: #15191b;
  color: #eff7fa;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  font-size: .88rem;
}

.gameHubToast[hidden] { display: none; }

@media (max-width: 980px) {
  .gameHubStage { padding: 48px 8px 16px; }
  .gameHubHero { grid-template-columns: 1fr; align-items: start; }
  .gameHubHero__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .gameHubServers { grid-template-columns: 1fr; }
  .gameHubNews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .gameHub__shell { width: calc(100% - 16px); padding-top: 8px; }
  .gameHubMasthead { top: 6px; align-items: flex-start; padding: 9px; }
  .gameHubMasthead__brandText { display: none; }
  .gameHubMasthead__nav { flex: 1 1 auto; justify-content: flex-end; }
  .gameHubMasthead__nav a { min-width: 42px; justify-content: center; padding: 0 10px; }
  .gameHubMasthead__nav a span { display: none; }
  .gameHubStage { gap: 34px; padding-top: 38px; }
  .gameHubHero h1 { font-size: 2.35rem; }
  .gameHubHero > div > p:last-child { font-size: 1rem; }
  .gameHubHero__summary { grid-template-columns: 1fr; }
  .gameServer__gameName { font-size: 1.75rem; }
  .gameServer__body { padding: 17px; }
  .gameServer__metrics { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .gameHubSectionHead { display: grid; align-items: start; }
  .gameHubSectionHead h2 { font-size: 1.65rem; }
  .gameHubNews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .gameHubHero h1 { font-size: 2rem; }
  .gameServer__metrics { grid-template-columns: 1fr; }
  .gameServer__description { min-height: 0; }
  .gameServer__actions { display: grid; grid-template-columns: 1fr; }
  .gameHubButton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gameServer__media img,
  .gameServer__bar i { transition: none; }
}
