/* The game catalogue is the first home screen; detailed progress has its own tab. */
.hub-library { padding-top: 8px; }
.hub-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.hub-intro h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.hub-intro p { margin: 0; color: #4b5563; font-size: .95rem; }
.hub-join { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; flex-shrink: 0; padding: 10px 18px; border-radius: 12px; background: #13598b; color: #fff; text-decoration: none; font-weight: 750; font-size: .9rem; text-align: center; }
.hub-join:hover { background: #0e466e; }
.hub-resume { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 48px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid #e8ce8d; border-radius: 12px; background: #fbf3df; color: #634b0e; font-weight: 700; text-decoration: none; font-size: .9rem; }
.hub-arrow { flex-shrink: 0; }
.hub-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.hub-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.hub-filters button { min-height: 44px; padding: 8px 13px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: #374151; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.hub-filters button[aria-pressed='true'] { background: #13598b; border-color: #13598b; color: #fff; }
.hub-count { margin: 0; font-size: .8rem; color: #4b5563; }
.hub-practice { margin: 10px 0 16px; color: #4b5563; font-size: .8rem; }
.hub-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hub-game { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid #dfe4ea; border-radius: 16px; background: #fff; color: #1f2937; text-decoration: none; box-shadow: 0 2px 5px rgb(0 0 0 / .04); transition: border-color .15s, box-shadow .15s; }
.hub-game:hover { border-color: #13598b; box-shadow: 0 5px 12px rgb(19 89 139 / .1); }
.hub-game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.hub-game-icon { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--tile, #e7eef3); color: var(--tile-ink, #13598b); font-size: 1rem; font-weight: 800; }
.hub-category { color: #4b5563; font-size: .72rem; font-weight: 650; }
.hub-game h2 { font-family: inherit; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.015em; margin: 0; }
.hub-description { margin: 0; font-size: .82rem; line-height: 1.5; color: #4b5563; }
.hub-example { margin: 2px 0 10px; padding: 8px 10px; border-radius: 8px; background: #f9fafb; color: #13598b; font-size: .8rem; line-height: 1.5; }
.hub-game-play { margin-top: auto; color: #13598b; font-size: .9rem; font-weight: 800; }
.hub-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 24px 0 8px; color: #4b5563; font-size: .78rem; }
.hub-footer p { flex-basis: 100%; margin: 0; }
.hub-footer a { color: #13598b; text-underline-offset: 3px; }
.hub-library :is(a, button):focus-visible { outline: 3px solid #800020; outline-offset: 4px; }
@media (max-width: 800px) {
  .hub-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .hub-intro { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .hub-intro p { font-size: .85rem; }
  .hub-join { align-self: flex-start; min-height: 44px; padding-inline: 14px; font-size: .85rem; }
  .hub-game { padding: 14px; gap: 6px; }
  .hub-game-head { gap: 7px; }
  .hub-game-icon { width: 29px; height: 29px; border-radius: 8px; font-size: .85rem; }
  .hub-category { font-size: .65rem; }
  .hub-game h2 { font-size: .93rem; }
  .hub-description, .hub-example { font-size: .74rem; }
  .hub-games { gap: 10px; }
  .hub-filters { gap: 5px; }
  .hub-filters button { padding-inline: 10px; font-size: .76rem; }
  .hub-resume { font-size: .8rem; margin-bottom: 16px; }
}
@media (max-width: 359px) {
  .hub-games { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-game { transition: none; }
}
