/* ATLAS hub — сетка игр */
:root {
  --hub-bg: #030712;
  --hub-panel: rgba(6, 18, 32, 0.72);
  --hub-cyan: #3de7ff;
  --hub-mist: #9eb6c9;
  --hub-sand: #e8eef4;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Exo 2", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--hub-bg);
  color: var(--hub-sand);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hub-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hub-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(3, 7, 18, 0.88);
  border-bottom: 1px solid rgba(61, 231, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.hub-brand strong {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.hub-lang {
  display: inline-flex;
  gap: 0.35rem;
}

.hub-lang button {
  border: 1px solid rgba(61, 231, 255, 0.28);
  background: transparent;
  color: var(--hub-mist);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

.hub-lang button.active {
  color: #041018;
  background: var(--hub-cyan);
  border-color: var(--hub-cyan);
}

.hub-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.hub-head {
  margin-bottom: 2rem;
}

.hub-head h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
}

.hub-head p {
  margin: 0;
  color: var(--hub-mist);
  max-width: 36rem;
  line-height: 1.5;
}

.hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--hub-panel);
  border: 1px solid rgba(61, 231, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(61, 231, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.hub-card.is-soon {
  pointer-events: none;
  opacity: 0.55;
}

.hub-card-cover {
  aspect-ratio: 3 / 4;
  background: #0a1624 center / cover no-repeat;
  position: relative;
}

.hub-card-badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(61, 231, 255, 0.9);
  color: #041018;
  font-size: 0.68rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-card-body {
  padding: 0.9rem 0.95rem 1.05rem;
  display: grid;
  gap: 0.35rem;
}

.hub-card-body h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hub-card-meta {
  margin: 0;
  color: var(--hub-mist);
  font-size: 0.82rem;
}

.hub-card-blurb {
  margin: 0.15rem 0 0;
  color: rgba(232, 238, 244, 0.78);
  font-size: 0.88rem;
  line-height: 1.4;
}

.hub-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 6vw 2.25rem;
  border-top: 1px solid rgba(158, 182, 201, 0.12);
  color: rgba(158, 182, 201, 0.65);
  font-size: 0.8rem;
}

.hub-footer .build-version {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(61, 231, 255, 0.55);
}

.hub-footer p {
  margin: 0;
}

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

@media (max-width: 560px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-card-cover {
    aspect-ratio: 16 / 10;
  }
}
