/* The profile page, on top of hub/style.css and history/history.css (the day cells .wk-c, the
   achievements list and the section titles are History's). */
.pro-sub { margin: 12px 0 0; color: var(--muted); font-size: 1.02rem; }

.pro-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 4px; }
.pro-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.pro-stat b { font: 500 1.9rem/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.pro-stat b small { font-size: 0.55em; color: var(--muted); }
.pro-stat span { font-size: 0.8rem; color: var(--muted); }
.pro-stat > small { font-size: 0.78rem; color: var(--muted); }
.pro-sync { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }
.pro-sync a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }

.pro-games-wrap { padding: 28px 0 0; }
.pro-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.pro-g { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.pro-g-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 800; font-size: 1.05rem; }
.pro-g-head a { text-decoration: none; }
.pro-g-head a:hover { text-decoration: underline; }
.pro-today { margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pro-today.pro-play { color: var(--brand); text-decoration: none; }
.pro-today.pro-play:hover { text-decoration: underline; }
.pro-g dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.pro-g dt { font-size: 0.72rem; color: var(--muted); }
.pro-g dd { margin: 2px 0 0; font: 500 1.2rem var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pro-g-own { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line); }
.pro-g-own dd { font-size: 1rem; }
.pro-strip { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; margin-top: 12px; }
.pro-strip .wk-c { height: 16px; border-radius: 3px; }
.pro-strip .wk-c.done::before { content: none; } /* too small for a tick: the colour and the title say it */
.pro-strip .wk-c.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.pro-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 0.8rem; color: var(--muted); --accent: var(--muted); }
.pro-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pro-legend .wk-c { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.pro-legend .wk-c.done::before { content: none; }
.pro-untried { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }
.pro-untried a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.pro-empty { color: var(--muted); }
.pro-empty a { color: var(--brand); font-weight: 700; }

@media (max-width: 520px) {
  .pro-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pro-stat { padding: 10px 12px; }
  .pro-stat b { font-size: 1.5rem; }
  .pro-games { grid-template-columns: 1fr; }
  .pro-g { padding: 12px; }
  .pro-strip .wk-c { height: 14px; }
}
