/* menu.css — the Main Menu hub (pad #17).
   Same tokens as StandaloneShell.css: midnight plum ground, gold hairlines,
   Pirata One display, one serif for prose. No new dependencies. */

.hub-page {
  padding-bottom: 4rem;
}

.hub-head {
  text-align: center;
  padding: 2.2rem 0 1.4rem;
}

.hub-title {
  font-family: 'Pirata One', 'Liberation Serif', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #f0e2b8;
  margin: 0 0 0.6rem;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.28);
}

.hub-sub {
  color: #b9adcb;
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- the grid ---------- */
.hub-grid {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1.15rem;
}

.hub-tile-item {
  margin: 0;
}

.hub-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(28, 19, 44, 0.95), rgba(14, 9, 24, 0.95));
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.hub-tile:hover,
.hub-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 22px rgba(212, 175, 55, 0.16);
}

.hub-tile:focus-visible {
  outline: 2px solid #f0d489;
  outline-offset: 3px;
}

.hub-tile-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0b0714;
}

/* a tile whose art has not been drawn yet: a pattern, never a broken image */
.hub-tile-pending {
  background-image:
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.10) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 50% 40%, rgba(72, 45, 117, 0.55), #0b0714 70%);
}

.hub-tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem 0.9rem;
}

.hub-tile-name {
  font-family: 'Pirata One', 'Liberation Serif', serif;
  font-size: 1.12rem;
  line-height: 1.15;
  color: #eddfb4;
}

.hub-tile-blurb {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #a99dbd;
}

/* ---------- the reserved history door (W6, #16) ---------- */
.hub-history-slot {
  display: block;
  margin: 2.4rem 0 0;
  padding: 1.1rem 1.3rem;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(20, 14, 34, 0.55);
}

.hub-history-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f83a6;
}

.hub-history-title {
  display: block;
  margin-top: 0.25rem;
  font-family: 'Pirata One', 'Liberation Serif', serif;
  font-size: 1.35rem;
  color: #e8d9a8;
}

.hub-history-blurb {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: #a99dbd;
}

/* ---------- no-JS list ---------- */
.hub-noscript {
  margin: 2rem 0 0;
  padding-left: 1.2rem;
  color: #cfc4de;
}

.hub-noscript a {
  color: #e8d9a8;
}

.hub-foot {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
  font-size: 0.8rem;
  color: #8f83a6;
}

.hub-foot a {
  color: #b9adcb;
}

@media (max-width: 520px) {
  .hub-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
  }
  .hub-tile-name { font-size: 1rem; }
  .hub-tile-blurb { font-size: 0.76rem; }
}
