/* Colours come from the site-wide theme (platform/site.css). */
:root {
  --bg: var(--ph-bg);
  --card: var(--ph-surface);
  --ink: var(--ph-ink);
  --muted: var(--ph-muted);
  --accent: var(--ph-accent);
  --line: var(--ph-line);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font: 16px/1.45 var(--ph-font);
  background: var(--bg);
  color: var(--ink);
}
header, main { max-width: 860px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 40px; padding-bottom: 8px; }
h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 2rem; }
header p { margin: 6px 0 0; color: var(--muted); }
.games { list-style: none; margin: 24px 0 48px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.games a {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 14px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.games a:hover, .games a:focus-visible { border-color: var(--accent); outline: none; }
.games img { grid-row: 1 / 4; width: 64px; height: 64px; border-radius: 14px; }
.name { font-weight: 700; font-size: 1.15rem; }
.what { color: var(--muted); }
.note { margin-top: 6px; font-size: 0.85rem; color: var(--accent); }
.friends { margin: -24px 0 48px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.friends h2 { margin: 0 0 8px; font-size: 1.15rem; }
.friends .count { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.friends ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.friends li { display: flex; align-items: center; gap: 10px; }
.friends .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.friends li.on .dot { background: var(--accent); }
.account { margin: 0 0 48px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.account h2 { margin: 0 0 8px; font-size: 1.15rem; }
.account p { margin: 0 0 12px; color: var(--muted); }
.account .error { color: #b3261e; margin: 12px 0 0; }
.friends li.off .who { color: var(--muted); }
.friends .where { font-size: 0.9rem; color: var(--muted); }
.friends .hint { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }
.invite {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(420px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 6px 24px rgb(0 0 0 / 0.18);
}
.invite p { margin: 0; flex: 1 1 100%; }
.invite .join { padding: 8px 16px; border-radius: 10px; background: var(--accent); color: var(--card); font-weight: 700; text-decoration: none; }
.invite button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#themeSlot { font: 14px/1.3 var(--ph-font); }
