.world-switcher {
  position: fixed;
  z-index: 20;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  border: 1px solid var(--line, var(--panel-line));
  border-radius: 999px;
  background: var(--glass, var(--panel));
  box-shadow: 0 8px 28px rgba(30, 20, 40, .14);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.world-switcher a {
  min-width: 0;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font: 500 14px/1.4 system-ui, sans-serif;
  transition: background .2s, color .2s;
}
.world-switcher a:hover { background: rgba(127, 127, 127, .12); }
.world-switcher a[aria-current="page"] { background: var(--ink); color: var(--world-contrast, #fff); }
.world-switcher a:focus-visible { outline: 2px solid var(--accent, #d4658f); outline-offset: 3px; }
body.dark, body.dusk { --world-contrast: #1b1830; }
body .title { top: 90px; }
body .hint { top: auto; bottom: 100px; }
@media (max-width: 700px) {
  body .title { top: 84px; }
  .world-switcher a { padding: 10px 12px; }
}
