/* hub.css — головне меню вибору лабораторій */
:root {
  --bg: #0e1622;
  --panel: #16222f;
  --text: #eaf2f8;
  --muted: #9fb2c2;
  --accent: #33c2b0;
  --accent-2: #4aa3df;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -5%, rgba(51, 194, 176, 0.12), transparent),
              linear-gradient(180deg, #0b1420, #0e1622);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
}
.hub {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.hub-header { text-align: center; margin-bottom: 40px; }
.hub-header h1 { font-size: 40px; margin: 0 0 8px; }
.hub-header p { color: var(--muted); font-size: 18px; margin: 0; }

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

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.game-card.chem::before { background: linear-gradient(90deg, #4aa3df, #33c2b0); }
.game-card.electro::before { background: linear-gradient(90deg, #f5b83d, #ff7a59); }
.game-card.water::before { background: linear-gradient(90deg, #4aa3df, #8fd4ef); }
.game-card:not(.soon):hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.gc-icon { font-size: 52px; margin-bottom: 10px; }
.gc-body { flex: 1; }
.gc-body h2 { margin: 0 0 8px; font-size: 22px; }
.gc-body p { color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.gc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-tags span {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(51, 194, 176, 0.35);
  padding: 2px 10px;
  border-radius: 20px;
}
.gc-go {
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent-2);
}
.gc-go.muted { color: var(--muted); }

.game-card.soon {
  opacity: 0.6;
  border-style: dashed;
  cursor: default;
}
.game-card.soon::before { background: #3a4a5a; }
.game-card.soon .gc-tags span { color: var(--muted); border-color: rgba(159, 178, 194, 0.3); }

.hub-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .hub-header h1 { font-size: 30px; }
}
