/* Gleiche Farben wie das Quiz (frontend/src/App.css). */
:root {
  --panel: rgba(56, 68, 86, 0.8);
  --panel-2: rgba(72, 86, 108, 0.74);
  --text-main: #e8efff;
  --text-soft: #bcc7db;
  --line: rgba(156, 174, 206, 0.38);
  --accent: #5ea7ff;
  --accent-2: #3c7ef3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text-main);
  background-color: #2f3642;
  background-image:
    repeating-linear-gradient(0deg, rgba(225, 233, 247, 0.08) 0, rgba(225, 233, 247, 0.08) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, rgba(8, 12, 20, 0.3) 0, rgba(8, 12, 20, 0.3) 1px, transparent 1px, transparent 64px),
    linear-gradient(145deg, #3a424f 0%, #2d3541 45%, #242b35 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.hub {
  max-width: 920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hub-head h1 {
  margin: 0 0 6px;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
}

.hub-head p {
  margin: 0;
  color: var(--text-soft);
}

.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.game-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.game-card:hover,
a.game-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--panel-2);
  outline: none;
}

.game-card.soon {
  opacity: 0.55;
  border-style: dashed;
}

.game-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.soon .game-icon {
  background: rgba(255, 255, 255, 0.08);
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.game-desc {
  color: var(--text-soft);
  line-height: 1.4;
}

.hub-foot {
  margin-top: auto;
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
