/* Games hub home (gamekit.hub): tablet landscape first (1400x750), phone 390x844. Big tap cards, no scripts. */
:root { --ink: #2b2540; --paper: #fdf3e1; --card: #fffaf0; --line: #eadfca; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-image: radial-gradient(circle at 12% 18%, #ffe7b8 0 90px, transparent 91px),
    radial-gradient(circle at 88% 85%, #d9ecff 0 140px, transparent 141px);
  background-attachment: fixed; -webkit-user-select: none; user-select: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 36px 6px; }
.top h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 2.6rem; letter-spacing: .01em; }
.logo { font-size: 2.8rem; display: inline-block; animation: bob 3s ease-in-out infinite; }
.badge { margin-left: 6px; padding: 4px 12px; border-radius: 999px; background: #ffe08a; font-size: .95rem; font-weight: 800; }
.pill { min-height: 56px; display: inline-flex; align-items: center; padding: 0 28px; border-radius: 28px; font-size: 1.25rem;
  font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 rgba(43,37,64,.15); touch-action: manipulation; }
.pill.in { background: #5a8dee; color: #fff; }
.pill.out { background: var(--card); color: var(--ink); }
.oops { margin: 8px 36px 0; padding: 12px 20px; border-radius: 18px; background: #ffe1dc; font-size: 1.2rem; font-weight: 700; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 400px)); justify-content: center;
  gap: 36px; padding: 48px 36px 40px; }
.game { --c: #5a8dee; position: relative; min-height: 380px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 24px; border-radius: 34px; background: var(--card); color: var(--ink);
  text-decoration: none; border: 6px solid var(--c); box-shadow: 0 10px 0 var(--c); touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .12s ease; overflow: hidden; }
.game::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 46%; background: var(--c); opacity: .22; }
.game .icon { position: relative; font-size: 8rem; line-height: 1; filter: drop-shadow(0 6px 0 rgba(43,37,64,.12)); }
.game .name { position: relative; font-size: 2.2rem; font-weight: 900; text-align: center; }
.game:active { transform: translateY(8px); box-shadow: 0 2px 0 var(--c); }
.game:focus-visible { outline: 5px solid var(--ink); outline-offset: 6px; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
@media (max-width: 600px) {
  .top { padding: 16px 16px 4px; }
  .top h1 { font-size: 2rem; }
  .games { grid-template-columns: 1fr; gap: 22px; padding: 18px 16px 32px; }
  .game { min-height: 220px; }
  .game .icon { font-size: 5rem; }
}
@media (prefers-reduced-motion: reduce) { .logo { animation: none; } .game { transition: none; } }
