/* A compact game hub: choose a deck, start a run, or continue one. */
.home-hub { max-width: 1160px; margin: auto; padding: 38px 40px 0; }
.hub-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.hub-heading h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.hub-heading h1 em { color: var(--gold); font-style: normal; }
.hub-heading p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hub-wallet { display: grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: center; text-decoration: none; color: var(--gold); padding: 12px 18px; border: 1px solid #e8c77738; border-radius: 10px; background: #e8c77707; flex-shrink: 0; }
.hub-wallet > span { grid-row: span 2; font-size: 27px; }
.hub-wallet strong { font-size: 22px; line-height: 1; }
.hub-wallet small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.hub-wallet:hover { border-color: var(--gold); }
.hub-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hub-decks h2 { font: 500 14px 'DM Sans', sans-serif; color: #cfc3da; margin: 0 0 15px; }
.hub-deck-list { display: flex; flex-direction: column; gap: 10px; }
.hub-saved-deck { padding: 24px; border: 1px solid #e8c77750; border-radius: 12px; background: linear-gradient(135deg, #302333, #191422); }
.saved-deck-heading { display: flex; align-items: center; gap: 22px; }
.saved-deck-heading img { width: 68px; height: 99px; object-fit: contain; border-radius: 3px; box-shadow: 0 8px 22px #0006; }
.saved-deck-heading h3 { font-size: 21px; font-weight: 500; line-height: 1.4; }
.saved-deck-heading p { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.saved-deck-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; margin-top: 22px; border-top: 1px solid #ffffff12; }
.saved-deck-footer > span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.saved-deck-footer a { text-decoration: none; white-space: nowrap; min-height: 42px; }
.hub-deck { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 94px; padding: 12px 17px; border: 1px solid #b59ac52b; border-radius: 9px; text-align: left; background: linear-gradient(120deg, #241b30, #171320); transition: background .18s, border-color .18s; }
.hub-deck img { width: 44px; height: 64px; object-fit: contain; border-radius: 2px; flex-shrink: 0; box-shadow: 0 3px 10px #0006; }
.hub-deck > span:nth-child(2) { flex: 1; }
.hub-deck strong { display: block; font: 500 17px 'Cinzel', Georgia, serif; line-height: 1.4; color: var(--text); }
.hub-deck small { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.hub-deck:hover { border-color: #e8c77780; background: #302239; }
.hub-deck.selected { border-color: #e8c777b3; background: linear-gradient(120deg, #3a2b2f, #251a30); box-shadow: inset 3px 0 var(--gold); }
.hub-choice { width: 21px; height: 21px; border: 1px solid #c8afd74f; border-radius: 50%; display: grid; place-items: center; font: 700 12px 'DM Sans', sans-serif; color: #21172a; flex-shrink: 0; }
.selected .hub-choice { border-color: var(--gold); background: var(--gold); }
.hub-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; margin-top: 20px; }
.hub-actions .btn { min-height: 48px; font-size: 13px; letter-spacing: 0; }
.hub-showcase { position: relative; min-height: 400px; display: grid; place-items: center; isolation: isolate; }
.hub-seal { position: absolute; inset: 0; background: url('millennium-mark.svg') center / contain no-repeat; opacity: .09; pointer-events: none; }
.hub-showcase::before { content: ''; position: absolute; inset: 10%; border: 1px solid #e8c77725; border-radius: 50%; box-shadow: 0 0 100px #8949bc25; }
.hub-showcase > .art-card.full-face { width: 215px; height: auto; transform: rotate(6deg); box-shadow: 0 22px 55px #0009; }
.hub-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 22px 0; margin-top: 34px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.hub-footer > div { display: flex; gap: 24px; }
.hub-footer > a { color: var(--muted); text-decoration: none; }
.hub-footer > a:hover { color: var(--gold); }
.resume-run { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: #e8c7770a; border: 1px solid #e8c77740; border-radius: 9px; padding: 17px 20px; margin-bottom: 24px; }
.resume-run strong { display: block; font-size: 14px; font-weight: 500; }
.resume-run span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.resume-run .btn { min-height: 44px; }
.profile-summary { display: flex; gap: 24px; margin: 24px 0; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.profile-summary b { display: block; font-size: 24px; color: var(--gold); margin-bottom: 6px; }
.reward-rarity { display: inline-block; font: 600 12px/1.5 'DM Sans', sans-serif; }
.reward-card > .reward-rarity { margin-top: 16px; }
.reward-card .reward-action { gap: 12px; align-items: center; line-height: 1.6; }
.reward-action > span:last-child { flex-shrink: 0; }
.deck-item .reward-rarity { font-size: 11px; }
body:has(.home-hub) .app-shell > header { min-height: 72px; height: 72px; flex-wrap: nowrap; padding: 0 5%; }
body:has(.home-hub) .app-shell > header nav { width: auto; flex-wrap: nowrap; gap: 26px; }
body:has(.home-hub) header .brand { font-size: 15px; }
@media (max-width: 820px) {
  .home-hub { max-width: 680px; padding: 30px 24px 0; }
  .hub-layout { grid-template-columns: 1fr; }
  .hub-showcase { display: none; }
  .hub-heading { margin-bottom: 28px; }
}
@media (max-width: 520px) {
  .home-hub { padding: 26px 20px 0; }
  .hub-heading { align-items: start; gap: 14px; }
  .hub-heading h1 { font-size: 32px; max-width: 240px; }
  .hub-heading p { font-size: 13px; max-width: 235px; margin-top: 10px; }
  .hub-wallet { padding: 10px; gap: 3px 6px; }
  .hub-wallet > span { font-size: 19px; }
  .hub-wallet strong { font-size: 18px; }
  .hub-wallet small { font-size: 8px; }
  .hub-deck { gap: 14px; min-height: 88px; padding: 10px 13px; }
  .hub-deck strong { font-size: 16px; }
  .hub-deck small { font-size: 12px; }
  .hub-deck img { width: 42px; height: 61px; }
  .hub-saved-deck { padding: 18px; }
  .saved-deck-heading { gap: 16px; }
  .saved-deck-heading h3 { font-size: 18px; }
  .saved-deck-heading img { width: 56px; height: 82px; }
  .saved-deck-footer { gap: 10px; margin-top: 18px; padding-top: 16px; }
  .saved-deck-footer > span { font-size: 11px; }
  .hub-actions { gap: 10px; }
  .hub-actions .btn { padding: 12px 10px; font-size: 12px; }
  .hub-footer { flex-wrap: wrap; margin-top: 25px; padding: 15px 0 24px; gap: 12px; }
  .hub-footer > div { gap: 22px; }
  .resume-run { gap: 12px; padding: 14px; }
  .resume-run .btn { padding: 11px; font-size: 11px; }
  body:has(.home-hub) .app-shell > header { padding: 0 16px; gap: 12px; min-height: 66px; height: 66px; }
  body:has(.home-hub) header .brand { font-size: 11px; letter-spacing: .07em; gap: 6px; }
  body:has(.home-hub) header .brand-mark, body:has(.home-hub) header .brand-mark img { width: 29px; height: 29px; }
  body:has(.home-hub) .app-shell > header nav { gap: 16px; }
  body:has(.home-hub) header nav .text-btn { font-size: 11px; }
}
