:root {
  --bg: #1b2735;
  --bg-elevated: #232f42;
  --card: #2a3750;
  --text: #eef2f8;
  --text-dim: #93a2bb;
  --accent: #ffb238;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef1f7;
    --bg-elevated: #ffffff;
    --card: #ffffff;
    --text: #1c2536;
    --text-dim: #5b6780;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#hub {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(40px, env(safe-area-inset-top)) 20px 40px;
}

.hub-header {
  text-align: center;
  margin-bottom: 32px;
}
.hub-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.byline {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}

.game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.03) inset;
  border-left: 4px solid var(--accent, var(--text-dim));
  transition: transform 0.12s ease;
}
.game-card:active { transform: scale(0.98); }

.game-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.game-info h2 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
}
.game-version {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}
.game-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.35;
}
