:root {
  --bg: #26232f;
  --surface: #332f3f;
  --surface-2: #3d3850;
  --text: #f3effa;
  --muted: #b8b0c8;
  --accent: #f28fb5;
  --accent-2: #9bbc0f;
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  max-width: 760px;
  margin: 0 auto;
}

.hub-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0 20px;
}
.hub-header img { border-radius: 12px; image-rendering: pixelated; }
.hub-header h1 { margin: 0; font-size: 1.6rem; letter-spacing: .02em; }
.hub-header p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.install {
  margin-left: auto;
  background: var(--accent);
  color: #2a1020;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
}

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

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
a.card:hover, a.card:focus-visible { transform: translateY(-3px); background: var(--surface-2); }
a.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.card-art {
  height: 130px;
  display: grid;
  place-items: center;
  background: #4a4560;
  font-size: 3rem;
  font-weight: 800;
  color: var(--muted);
}

.card-art.blocks {
  background: var(--accent-2);
  grid-template-columns: repeat(3, 26px);
  grid-template-rows: repeat(2, 26px);
  place-content: center;
  gap: 0;
}
.card-art.blocks i {
  width: 26px; height: 26px;
  background: #306230;
  border: 3px solid #0f380f;
}
.card-art.blocks i:nth-child(1) { grid-column: 2; grid-row: 1; }
.card-art.blocks i:nth-child(2) { grid-column: 1; grid-row: 2; }
.card-art.blocks i:nth-child(3) { grid-column: 2; grid-row: 2; }
.card-art.blocks i:nth-child(4) { grid-column: 3; grid-row: 2; }

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.card-body strong { font-size: 1.1rem; }
.card-body span { color: var(--muted); font-size: .9rem; line-height: 1.4; }

.card.soon { opacity: .6; }

.hub-footer { color: var(--muted); font-size: .8rem; text-align: center; padding: 32px 0; }
