.footer-bottom {
  gap: 20px 32px;
  flex-wrap: wrap;
  padding-bottom: 0;
  line-height: 1.7;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  color: var(--charcoal);
  font-weight: 650;
  text-underline-offset: 5px;
  transition: color 0.2s;
}
.footer-credit:hover {
  color: var(--ink);
  text-decoration: underline;
}
.back-to-top {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #e7c900;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 5px 18px #1a1a1a18;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--ease),
    visibility 0.3s,
    background 0.2s,
    box-shadow 0.2s,
    bottom 0.18s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top.is-visible:hover {
  transform: translateY(-3px);
  background: #f2d300;
  box-shadow: 0 8px 22px #1a1a1a24;
}
.back-to-top:active {
  transform: translateY(0);
}
@media (max-width: 650px) {
  .footer-bottom {
    align-items: start;
    gap: 12px;
    padding-bottom: 0;
  }
  .footer-credit {
    margin-left: auto;
  }
  .back-to-top {
    right: max(16px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }
}
@media (max-width: 430px) {
  .footer-bottom {
    flex-direction: column;
    gap: 9px;
  }
  .footer-credit {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .footer-credit {
    transition: none;
  }
}
@media print {
  .back-to-top {
    display: none;
  }
}
