.games-menu-button, .games-close {
  display: grid; place-items: center; flex: 0 0 44px;
  width: 44px; height: 44px; padding: 10px;
  border: 1px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.games-menu-button svg { width: 22px; height: 22px; }
.games-menu-button:hover, .games-close:hover { background: var(--mint); }
.site-header__inner { gap: 14px; }
.site-header__inner .brand { margin-right: auto; }
html.games-navigation-open { overflow: hidden; }
.games-drawer {
  position: fixed; inset: 0 auto 0 0;
  width: min(400px, 100%); max-width: 100%; height: 100%; height: 100dvh;
  max-height: none; margin: 0;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  border: 0; border-right: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 8px 0 40px #26233233;
}
.games-drawer::backdrop { background: #26233280; }
.games-drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.games-drawer h2, .games-footer h2 { font-size: 22px; line-height: 1.3; }
.games-close { padding: 0; font-size: 28px; }
.games-groups { display: grid; gap: 28px; }
.games-groups h3 { margin: 0 0 12px; color: var(--muted); font: 700 12px/1.5 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.games-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.games-link { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; min-height: 52px; padding: 6px 0; color: var(--ink); text-decoration: none; border-radius: 4px; }
.games-icon {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: 9px; background: var(--game-color); color: #292331;
  font: 800 29px/1 system-ui, sans-serif; transform: rotate(-8deg);
}
.games-icon img { display: block; width: 42px; height: 42px; }
/* Match the badges in Hunchy and Clue Glue's shared game navigation. */
.games-link-text { min-width: 0; }
.games-link-name { font-size: 17px; font-weight: 750; }
.games-link:hover .games-link-name, .games-link:focus-visible .games-link-name { text-decoration: underline; text-decoration-color: #487f56; text-underline-offset: 4px; }
/* Reserve description space so revealing it never moves another link. */
.games-description { display: block; visibility: hidden; color: var(--muted); font-size: 13px; line-height: 1.5; }
.games-link:hover .games-description, .games-link:focus .games-description { visibility: visible; }
.games-footer { padding: 32px 24px; border-top: 1px solid #d8d5cc; background: #edf3e9; }
.games-footer-inner { max-width: 1040px; margin: auto; }
.games-footer h2 { margin-bottom: 24px; }
.games-footer .games-groups { grid-template-columns: 1fr; }
.games-footer .games-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
@media (hover: none) {
  .games-description { visibility: visible; }
}
@media (max-width: 560px) {
  .games-footer .games-groups { grid-template-columns: 1fr; }
  .site-header__inner .header-actions { flex-direction: column; align-items: flex-end; gap: 0; }
  .site-header__inner .sound-toggle { min-height: 32px; font-size: 11px; padding: 3px 8px; }
  .site-header__inner .help-link { font-size: 11px; gap: 5px; }
}
@media (max-width: 480px) {
  .site-header__inner { width: calc(100% - 24px); gap: 8px; }
  .site-header__inner .brand { gap: 6px; }
  .site-header__inner .brand__name { font-size: 19px; }
  .site-header__inner .brand__mark { display: none; }
  .games-drawer { padding-left: 16px; padding-right: 16px; }
}
