/* Shared navigation for Games, Leaderboard and Updates. */
.hub-navigation {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  width: max-content;
  padding: 2px;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  background: #14161b;
}
.hub-navigation a,
.nav nav.hub-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  background: transparent;
  color: #d5d8de;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hub-navigation a[aria-current='page'],
.nav nav.hub-navigation a[aria-current='page'] {
  background: var(--lime);
  color: #111;
}
.hub-navigation a:hover:not([aria-current]) { color: var(--lime); }
.nav nav.hub-navigation { gap: 2px; flex-wrap: nowrap; }

.updates-page { padding-bottom: 32px; }
.updates-page h1 {
  margin: 8px 0 2px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.updates-intro { margin: 0 0 20px; color: #b7bac0; font-size: 14px; }
.update-day + .update-day { margin-top: 24px; }
.update-day h2 {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: #c6c9cf;
  font-size: 13px;
  font-weight: 700;
}
.update-list { margin: 0; padding: 0; list-style: none; }
.update-list li + li { border-top: 1px solid var(--line); }
.update-entry {
  display: grid;
  grid-template-columns: clamp(96px, 8vw, 136px) minmax(max-content, 21%) minmax(0, 1fr);
  grid-template-areas: "cover title summary";
  align-items: center;
  column-gap: clamp(16px, 1.8vw, 28px);
  padding-block: 8px;
}
.update-entry:hover { background: #ffffff06; }
.update-entry:focus-visible { outline-offset: -2px; }
.update-cover {
  grid-area: cover;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 6px;
  background: #15171b;
}
.update-title {
  grid-area: title;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  min-width: 0;
  margin: 0;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.25;
}
.update-name { overflow-wrap: anywhere; }
.update-entry:is(:hover, :focus-visible) .update-name {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.update-kind {
  padding: 2px 6px;
  border-radius: 4px;
  background: #cbff7317;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.update-list p {
  grid-area: summary;
  margin: 0;
  color: #c1c5cb;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.4;
}

@media (max-width: 920px) {
  .update-entry {
    grid-template-columns: clamp(56px, 13vw, 112px) minmax(0, 1fr);
    grid-template-areas: "cover title" "cover summary";
    align-content: center;
    align-items: start;
    gap: 3px clamp(10px, 2vw, 18px);
  }
  .update-cover { align-self: center; }
  .update-title { align-self: end; }
}
@media (max-width: 760px) {
  .topbar:has(.hub-navigation):has(#cynnx-account-controls) { gap: 6px 10px; }
}
@media (max-width: 400px) {
  .hub-navigation a,
  .nav nav.hub-navigation a { padding-inline: 8px; }
}
@media (max-width: 360px) {
  .hub-navigation a,
  .nav nav.hub-navigation a { padding-inline: 5px; font-size: 11px; }
}
