/* Navigation commune aux cinq pages publiques. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #161917;
  border-bottom: 1px solid #ffffff26;
  font: 600 .875rem/1.25 system-ui, sans-serif;
}
.site-header-inner {
  max-width: 1380px;
  margin-inline: auto;
  padding: 8px clamp(12px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
}
.site-header nav,
.site-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}
.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 9px;
  color: #eeeae0;
  text-decoration: none;
}
.site-header .site-wordmark {
  padding-inline: 0;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.site-wordmark img {
  margin-inline-end: 8px;
  border-radius: 8px;
}

.site-wordmark b {
  color: #ff8c54;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #ffb58e;
  box-shadow: inset 0 -2px #ff8c54;
}
.site-header a:focus-visible,
.site-related a:focus-visible {
  outline: 2px solid #ffb58e;
  outline-offset: -2px;
}
.site-related {
  margin-block: 4px 16px;
  gap: 4px 16px;
  font-size: .875rem;
}
.site-related a {
  color: #6bdfff;
  padding-block: 8px;
}
main :is(section, h1, h2)[id],
main[id] {
  scroll-margin-top: 76px;
}
@media (max-width: 760px) {
  .site-header {
    position: relative;
  }
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-header nav a {
    padding-inline: 8px;
  }
  main :is(section, h1, h2)[id],
  main[id] {
    scroll-margin-top: 12px;
  }
}

.site-header [hidden],
.site-shortcuts[hidden],
.site-shortcuts [hidden],
[data-site-role][hidden] {
  display: none !important;
}
.site-account { position: relative; }
.site-account summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 8px;
  color: #eeeae0;
  max-width: 15rem;
  overflow-wrap: anywhere;
}
.site-account-menu {
  position: absolute;
  z-index: 2;
  inset: 100% 0 auto auto;
  min-width: 13rem;
  padding: 6px;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #161917;
  box-shadow: 0 8px 24px #0007;
}
.site-account-menu a,
.site-account-menu button { width: 100%; }
.site-account-menu button {
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #eeeae0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-account-menu a:hover,
.site-account-menu button:hover { background: #ffffff12; }
.site-account-menu [role="status"] { display: block; color: #ffb58e; }
.site-games {
  margin: 0;
  background: #101314;
  color: #f5f1e8;
  font-family: system-ui, sans-serif;
}
.site-games-main { max-width: 1100px; margin: auto; padding: 48px 20px 100px; }
.site-games-main h1 { font-size: clamp(2rem, 6vw, 4rem); }
.site-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 14px;
}
.site-games-grid a {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid #364144;
  border-radius: 8px;
  background: #171c1e;
  color: inherit;
  text-decoration: none;
}
.site-games-grid strong { color: #ff9b68; }
.site-games-grid a:hover { border-color: #ff9b68; }
@media (max-width: 760px) {
  .site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .site-header nav { grid-area: 2 / 1 / 3 / 3; }
  .site-account { grid-area: 1 / 2 / 2 / 3; justify-self: end; }
  .site-account summary { max-width: 8rem; }
}

@media (max-width: 480px) {
  #top h2 { overflow-wrap: anywhere; }
  #top .community-layout { grid-template-columns: minmax(0, 1fr); }
}
