/* The game card — ONE anatomy for every place a game is listed: Analytics
   portfolio, Growth picker, LiveOps picker, Hub. Loaded by both stylesheets'
   pages (layout() and the Growth head), so it only uses tokens both define:
   --card --border --border-strong --text --text-2 --accent --radius --green.

     .gtile                 the surface (a or button)
       .gtile-head          36px icon · status dot · name · optional tag
       .gtile-body          section-specific middle (KPI + sparkline, key meter…)
       .gtile-foot          one muted 13px line, optional › chevron

   Sections add what they know (Analytics: DAU; Hub: keys filled; LiveOps: the
   Firebase project) INSIDE this frame, so the cards read as the same object. */
.gtile-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.gtile {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 16px 18px; text-align: left; text-decoration: none;
  color: var(--text); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.gtile:hover { border-color: var(--border-strong); background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
.gtile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Waiting on data: present but quieter. */
.gtile.is-awaiting { border-style: dashed; }
.gtile.is-awaiting .gtile-name { color: var(--text-2); }

.gtile-head { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 0; }
.gtile-ico { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; display: block; }
.gtile-fb {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; line-height: 1;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.gtile-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); }
.gtile-dot.is-live { background: var(--green); }
.gtile-name {
  font-size: 16px; font-weight: 600; margin: 0; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gtile-tag {
  flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: var(--text-2); background: color-mix(in srgb, var(--text-2) 14%, transparent); white-space: nowrap;
}

.gtile-body { min-width: 0; }
.gtile-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums;
}
.gtile-go { display: inline-flex; color: var(--text-2); }
.gtile-go::after { content: '›'; font-size: 18px; line-height: 1; }
