/* ============================================================================
 * File:    fun/menu.css
 * Section: fun/  (menu)
 * Version: 1.1.0
 * Build:   2026-07-07
 *
 * Section landing page. Mirrors the SHARED launcher look (apps/toolbox/charts/
 * health — /shared/css/theme.css): a small uppercase logo label with the
 * control cluster pinned top-right on one line, a muted lede, and the shared
 * card metrics (34px icon · 15px name · 13px desc). Rendered with fun tokens so
 * it stays in the fun palette. New games drop in as more rows. (FUN-26)
 * ========================================================================== */

#menu {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

/* ---- header: small uppercase label left, controls pinned top-right ---- */
.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.menu-head .logo {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
}
.controls-cluster { flex-shrink: 0; }   /* keep the icons pinned top-right, never wrap */

.lede {
  margin: 0 0 1.25rem; padding-left: 2px;
  font-size: 13px; color: var(--text-dim);
}

/* home button in the controls cluster (→ /apps/) — 34px to match the gear */
a.home-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--bg-elev); color: var(--text-dim);
  border: 1px solid var(--line); text-decoration: none;
  font-size: 18px; line-height: 1;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
a.home-btn:hover { color: var(--text); background: var(--btn-bg-hover); border-color: var(--line-strong); }
a.home-btn:focus-visible { outline: 2px solid var(--piece-blue); outline-offset: 2px; }

/* ---- index card list (shared metrics) ---- */
.card-grid {
  display: flex; flex-direction: column; gap: 7px;
}

.card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem 1rem;
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.card:hover { border-color: var(--line-strong); background: var(--btn-bg-hover); }
.card:focus-visible { outline: 2px solid var(--piece-blue); outline-offset: 2px; }

.card-icon {
  flex-shrink: 0; width: 34px; height: 34px;
  border-radius: 8px; background: var(--bg-sunken);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 62%; height: 62%; display: block; }

.card-body { flex: 1; min-width: 0; }
.card-name { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.card-desc { margin: 1px 0 0; color: var(--text-dim); font-size: 13px; line-height: 1.4; }

.card-arrow {
  flex-shrink: 0; color: var(--text-dim); font-size: 18px; line-height: 1;
  transition: transform var(--t-fast);
}
.card:hover .card-arrow { transform: translateX(3px); }
