:root {
  --bg: #0c0818;
  --panel: rgba(36, 24, 80, 0.55);
  --edge: rgba(150, 110, 255, 0.35);
  --ink: #ece6ff;
  --dim: rgba(236, 230, 255, 0.62);
  --accent: #c44dff;
  --neon: #5ae1ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% 0%, #2a1050 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  padding: 48px 20px 64px;
}

.hub {
  width: 100%;
  max-width: 900px;
}

.hub__header {
  text-align: center;
  margin-bottom: 40px;
}

.hub__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon);
}

.hub__header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 7vw, 56px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(196, 77, 255, 0.55);
}

.hub__lead {
  margin: 0 auto;
  max-width: 460px;
  color: var(--dim);
}

.hub__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.game-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 77, 255, 0.75);
  box-shadow: 0 14px 40px rgba(120, 40, 200, 0.35);
}

.game-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(196, 77, 255, 0.22);
  color: #f4e6ff;
}

.game-card h2 {
  margin: 16px 0 6px;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.game-card p {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
}

/* Превью — тот же коридор, что и в игре: пол, арка, два пилона. */
.game-card__preview {
  position: relative;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #14081f 0%, #2a1050 52%, #3d1866 100%);
}

.preview-floor {
  position: absolute;
  inset: 52% 0 0;
  background:
    repeating-linear-gradient(180deg, rgba(235, 215, 255, 0.16) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #3d1866, #140824);
}

.preview-arch {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 78px;
  height: 30px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 150, 255, 0.85);
  border-bottom: none;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 0 18px rgba(255, 150, 255, 0.5);
}

.preview-pylon {
  position: absolute;
  bottom: 14%;
  width: 12px;
  height: 46px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #ff4070, rgba(255, 64, 112, 0.35));
  box-shadow: 0 0 16px rgba(255, 64, 112, 0.7);
}

.preview-pylon--l {
  left: 22%;
}

.preview-pylon--r {
  right: 22%;
  height: 34px;
  bottom: 22%;
}

.hub__note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 2px solid var(--neon);
  color: var(--dim);
  font-size: 14px;
}

.hub__note p {
  margin: 0;
}

.hub__footer {
  margin-top: 36px;
  text-align: center;
  font-size: 13px;
}

.hub__footer a {
  color: var(--neon);
  text-decoration: none;
}

.hub__footer a:hover {
  text-decoration: underline;
}
