.bottom-dock {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(720px, calc(100% - 48px));
  padding: 8px;
  border: var(--rule);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}
.bottom-dock a { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 8px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.bottom-dock a + a { border-left: 1px solid var(--ink); }
.bottom-dock a:hover, .bottom-dock a:focus-visible { background: #fff; }
.bottom-dock a span { font: 700 20px/1 var(--mono); }

@media (max-width: 700px) {
  .bottom-dock { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 32px); padding: 4px; box-shadow: 4px 4px 0 var(--ink); }
  .bottom-dock a { flex-direction: column; gap: 4px; min-height: 60px; padding: 6px 2px; }
  .bottom-dock a span { font-size: 18px; }
}
