.page-switcher {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 0 24px max(16px, env(safe-area-inset-bottom));
}

.page-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: inherit;
  background: none;
  box-shadow: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.page-switcher-link svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
  transform: scale(1);
  transform-origin: center;
  transition: transform 160ms ease, stroke-width 160ms ease;
}

.page-switcher-link:hover svg {
  stroke-width: 1.9;
  transform: scale(1.12);
}

.page-switcher-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.page-switcher--castle {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 65;
  pointer-events: none;
}

.page-switcher--castle .page-switcher-link {
  color: #fff;
  pointer-events: auto;
}

.home-intro {
  display: none;
}

/* Match the castle courtyard's white, name-centred entrance. */
.from-castle .home-intro {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: #fff;
  color: rgba(0, 0, 0, .42);
  font-weight: 700;
  pointer-events: none;
  animation: home-intro-hide 1500ms ease 850ms forwards;
}

.from-castle .home-intro span {
  animation: home-intro-word 900ms ease forwards;
}

@keyframes home-intro-word {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes home-intro-hide {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .page-switcher-link svg {
    transition: none;
  }

  .from-castle .home-intro {
    display: none;
    animation: none;
  }
}
