/* Keep every section within reach on phones without clipping a horizontal menu. */
:root { --site-header-height: 0px; }
html { scroll-padding-top: calc(var(--site-header-height) + 24px); }
.menu-toggle, .nav-extra { display: none; }
header nav a { min-height: 30px; display: inline-flex; align-items: center; }
header nav a.is-current { opacity: 1; color: #c2efd8; }
.album-dock { top: var(--site-header-height); }
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.artist-hero .artist-portrait { contain: layout; }
@media (max-width: 900px) {
  header { position: sticky; top: 0; z-index: 30; padding: 10px 18px; gap: 8px; flex-wrap: nowrap; background: #0b1111f5; backdrop-filter: blur(16px); }
  header .wordmark { font-size: 23px; margin-right: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; order: 5; border: 1px solid #88b5a34d; border-radius: 24px; padding: 0 13px; min-height: 44px; font-size: 11px; white-space: nowrap; }
  header .language-toggle { margin: 0; padding: 3px; gap: 1px; }
  header .language-toggle button { min-width: 37px; padding: 8px 6px; font-size: 10px; }
  header #motion { padding: 0 10px; font-size: 9px; }
  header nav { display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; max-width: none; width: auto; padding: 14px; background: #10201efc; border: 1px solid #9dceb04d; border-radius: 16px; box-shadow: 0 24px 60px #0008; overflow: auto; max-height: 70dvh; white-space: normal; }
  header.menu-open nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  header nav a, header nav .nav-extra { display: flex; min-height: 48px; padding: 10px 12px; border: 1px solid #ffffff0d; border-radius: 9px; font-size: 12px; line-height: 1.4; opacity: .9; }
  header nav a.is-current { border-color: #a4d6b780; background: #a4d6b70c; }
  header nav .nav-follow { grid-column: 1 / -1; }
  .artist-hero { padding-top: 28px; }
  .artist-hero .artist-portrait { grid-row: 1; }
  .artist-hero .artist-introduction { grid-row: 2; }
  .artist-hero .artist-portrait > img { aspect-ratio: 5 / 4; }
  .page-jumps { right: 9px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .album-dock { padding: 10px 18px; }
  .album-dock a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 350px) { header { gap: 5px; padding-inline: 10px; } header .wordmark { font-size: 20px; } header #motion { padding-inline: 7px; } .menu-toggle { padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { .artist-hero .artist-portrait, .artist-hero .artist-introduction { animation: none; } }
/* Page shortcuts must not cover the number pad or game touch controls. */
@media (max-width: 900px) {
  body:has(.runner:not([hidden]) .runner-screen.is-running) .page-jumps { display: none; }
}
