/* The game center page; shared chrome is in shared/base.css. */
body { background: #04050b; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.top { position: sticky; top: 0; z-index: 2; backdrop-filter: blur(6px); }
.hub { max-width: 1120px; margin: 0 auto; padding: 32px 16px 48px; display: grid; gap: 28px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.01em; }
.hero h1 span { background: linear-gradient(90deg, var(--me), var(--pink)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; max-width: 560px; line-height: 1.6; }
.commander { padding: 18px; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.game { position: relative; display: grid; grid-template-rows: 180px auto; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.game:hover { transform: translateY(-3px); border-color: var(--accent, var(--me));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px color-mix(in srgb, var(--accent, var(--me)) 25%, transparent); }
.game canvas { width: 100%; height: 180px; display: block; background: #05060d; }
.game .body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.game h2 { margin: 0; font-size: 20px; }
.game .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent, var(--me)); }
.game p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.game .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.game .play { background: var(--accent, var(--me)); color: #04050b; font-weight: 700; padding: 7px 14px;
  border-radius: 10px; font-size: 13px; }
.game.soon { grid-template-rows: auto; place-items: center; text-align: center; padding: 28px; border-style: dashed;
  color: var(--muted); }
.game.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.game.soon b { color: var(--text); font-size: 16px; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.how .step { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(10, 13, 28, 0.6); font-size: 13px; }
.how .step span { color: var(--muted); line-height: 1.5; }
.how code { color: var(--text); }
