.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Wrap only when the logo and navigation really no longer fit. */
@media (min-width: 700px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .site-header .brand { margin-right: auto; }
}
.share-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
}
.share-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .share-button:hover { background: #e4edf7; border-color: #b7cbe1; }
}
@media (max-width: 699.98px) {
  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 0 10px;
    margin-bottom: 0;
  }
  .site-header::after { display: none; }
  .site-header .brand { min-width: 0; }
  .header-actions { gap: 8px; }
  .site-header .brand__mark--full {
    width: min(235px,100%) !important;
    max-width: 100% !important;
    height: auto;
  }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23,45,77,.08);
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 !important;
    flex: 0 0 2px;
    border-radius: 2px;
    background: var(--primary-dark);
  }
  .header-nav { display: none; }
  body.mobile-menu-open .header-nav {
    display: grid;
    grid-template-columns: 1fr;
    position: fixed;
    top: 70px;
    right: 10px;
    left: auto;
    z-index: 42;
    width: min(286px,calc(100vw - 34px));
    gap: 6px;
    padding: 12px;
    border: 1px solid #c7d8ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7,20,38,.18);
  }
  .header-nav .nav-link,
  .header-nav .button--other-games { width: 100%; text-align: left; min-height: 44px; }
  .share-button {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    box-shadow: 0 8px 18px rgba(23,45,77,.08);
  }
}
