/* Game hub pages (one template for every game). Loaded after styles.css and articles.css. */
.hub {
  --g: var(--accent);
}

.hub-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 3px solid var(--g);
  box-shadow: 0 10px 40px -18px var(--g);
}

.hub-hero picture,
.hub-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub-hero-art {
  object-fit: cover;
  object-position: 60% 25%;
}

.hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 20, 32, 0.94) 0%, rgba(13, 20, 32, 0.7) 42%, rgba(13, 20, 32, 0.1) 75%),
    linear-gradient(0deg, rgba(13, 20, 32, 0.9) 0%, rgba(13, 20, 32, 0) 45%);
}

.hub-hero-text {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.75rem;
}

.hub-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  max-width: 14ch;
}

.hub-hero .lead {
  max-width: 34rem;
}

.hub-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: var(--g);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hub-badge {
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--g);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
}

.hub .button {
  background: var(--g);
}

.hub .button.hub-ghost {
  background: rgba(13, 20, 32, 0.6);
  color: var(--text);
  border: 1px solid rgba(237, 239, 242, 0.45);
  box-shadow: none;
}

.hub .button.hub-ghost:hover {
  color: var(--text);
  border-color: var(--g);
}

.hub a:not(.button):not(.hub-also-link):not(.social) {
  color: var(--g);
}

.hub-intro {
  padding-top: 2.25rem;
}

.hub .prose h2 {
  max-width: none;
}

.hub-section h2 {
  max-width: 24ch;
}

.hub-section {
  padding: 3.25rem 0;
}

.hub-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}

.hub-step {
  display: grid;
  gap: 1rem 2.5rem;
  align-items: center;
}

.hub-step h3 {
  font-size: 1.45rem;
}

.hub-step .shot {
  width: 100%;
  justify-self: center;
}

.hub-step .shot img {
  max-height: 460px;
  width: auto;
  margin-inline: auto;
}

.hub-ticker:empty {
  display: none;
}

.hub-prose h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
  max-width: none;
}

.hub-prose ul,
.hub-prose ol {
  padding-left: 1.3rem;
}

.hub-prose li + li {
  margin-top: 0.55rem;
}

.hub-prose li::marker {
  color: var(--g);
}

.hub-play {
  margin: 1.75rem 0;
}

.hub-play img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--g);
}

.hub-play-tall {
  max-width: 360px;
}

.hub-play figcaption,
.hub-sources {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hub-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hub-card {
  position: relative;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem 1.35rem;
  border-left: 3px solid var(--g);
}

.hub-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: none;
}

.hub-card p {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

.hub-who p strong {
  color: var(--g);
}

.hub-group {
  margin: 2rem 0 0.25rem;
  font-size: 1.15rem;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-guides {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.hub-guide a {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text) !important;
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.hub-guide a:hover,
.hub-guide a:focus-visible {
  border-color: var(--g);
  transform: translateY(-2px);
}

.hub-guide strong {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
}

.hub-guide span {
  color: var(--muted);
  font-size: 0.93rem;
}

.hub-also {
  display: grid;
  gap: 0.75rem;
}

.hub-also-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0;
  transition: border-color var(--speed) var(--ease);
}

.hub-also-link:hover,
.hub-also-link:focus-visible {
  border-color: var(--g);
  color: var(--g);
}

.hub-also-link img {
  border-radius: 4px;
}

.hub-also-link small {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.82rem;
}

@media (min-width: 720px) {
  .hub-cards,
  .hub-guides {
    grid-template-columns: 1fr 1fr;
  }

  .hub-also {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hub-step {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .hub-step:nth-child(even) .hub-step-text {
    order: 2;
  }

  .hub-cards,
  .hub-guides {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 719px) {
  .hub-hero-art {
    object-position: 70% 30%;
  }

  .hub-hero::after {
    background: linear-gradient(0deg, rgba(13, 20, 32, 0.96) 0%, rgba(13, 20, 32, 0.75) 50%, rgba(13, 20, 32, 0.2) 100%);
  }

  .hub .actions .button {
    width: 100%;
  }
}
