/* ============================================================
   The main menu (index.html, hub.js). The colors, fonts, buttons and the account
   and Friends boxes come from style.css; this file only lays out the menu.
   ============================================================ */
body.hub-page { overflow-y: auto; }
.hub-page #app { height: auto; min-height: 100vh; }

.hub { max-width: 1040px; margin: 0 auto; padding: 40px 16px 48px; text-align: center; }
.hub-head .logo { margin: 0 0 14px; font-family: var(--font-title); font-weight: 400; line-height: 1.2; }
.hub-tag { margin: 0 0 28px; font-size: 22px; opacity: .8; }

/* three games, equal in size */
.hub-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.hub-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 18px 22px;
  color: var(--text); text-decoration: none; background: #1f2430; border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--game), 6px 6px 0 rgba(0,0,0,.6);
  transition: transform .1s steps(2);
}
a.hub-tile { cursor: pointer; }
@media (hover: hover) { a.hub-tile:hover { transform: translateY(-4px); outline: 4px solid #fff; outline-offset: 2px; } }
a.hub-tile:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
.hub-art { width: 96px; height: 96px; image-rendering: crisp-edges; image-rendering: pixelated; margin-bottom: 6px; }
.hub-eyebrow { font-size: 16px; text-transform: uppercase; letter-spacing: .12em; opacity: .6; }
.hub-name { font-family: var(--font-title); font-size: 17px; line-height: 1.4; color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.hub-blurb { flex: 1; font-size: 19px; line-height: 1.15; opacity: .85; }
.hub-play { margin-top: 6px; }
.hub-soon {
  margin-top: 6px; padding: 10px 14px; font-family: var(--font-title); font-size: 10px; color: var(--text);
  background: #2a3040; border: 3px solid var(--ink);
}
.hub-tile.soon .hub-art { filter: grayscale(.6) brightness(.8); }

/* signing in, your name and Friends */
.hub-account {
  display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; padding: 22px 24px 8px;
  background: #1f2430; border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px #4a5570, 6px 6px 0 rgba(0,0,0,.6);
}
.hub-account .signed-in { margin: 0; }
.hub-account .modes { margin: 0; }
.hub-account .account-box { margin: 0 0 14px; }
.hub-account .account-box.compact { margin-top: 0; }

/* patch notes for every game (hub.js, hubNotesHtml; the list styles are the card game's .patch-list) */
.hub-notes {
  max-width: 720px; margin: 28px auto 0; padding: 20px 24px; text-align: left;
  background: #1f2430; border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px #4a5570, 6px 6px 0 rgba(0,0,0,.6);
}
.hub-notes h2 { margin: 0 0 14px; font-family: var(--font-title); font-size: 14px; font-weight: 400; line-height: 1.4; }
.hub-release { width: auto; max-height: none; overflow: visible; margin-bottom: 4px; padding: 0; background: none; border: 0; box-shadow: none; }
.hub-release li { font-size: 19px; line-height: 1.1; }
.hub-release + .hub-release { padding-top: 12px; border-top: 3px solid #2a3040; }
.hub-notes .patch-game { margin-top: 8px; }

@media (max-width: 760px) {
  .hub { padding-top: 28px; }
  .hub-head .logo { font-size: 28px !important; }
  .hub-games { grid-template-columns: 1fr; gap: 16px; }
  .hub-tile { display: grid; grid-template-columns: 72px 1fr; grid-template-areas: 'art eyebrow' 'art name' 'art blurb' 'art play';
    column-gap: 16px; row-gap: 6px; align-items: center; text-align: left; padding: 16px; }
  .hub-art { grid-area: art; width: 72px; height: 72px; margin: 0; }
  .hub-eyebrow { grid-area: eyebrow; }
  .hub-name { grid-area: name; }
  .hub-blurb { grid-area: blurb; }
  .hub-play, .hub-soon { grid-area: play; justify-self: start; margin-top: 2px; }
}
