.support {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-sizing: border-box;
  max-width: calc(100vw - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  padding: 12px;
  border: 1px solid var(--line, #ddd);
  border-radius: 20px;
  background: var(--paper, #fffaf3);
  box-shadow: 0 8px 28px rgb(41 32 21 / 16%);
  text-align: center;
}

.support-intro,
.support-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #f4c76b;
  color: #292015;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.support-button:hover {
  background: #edb54b;
}

.support-button:focus-visible {
  outline: 3px solid var(--ink, #262626);
  outline-offset: 4px;
}

.support-test {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #79510b;
}

/* Let the last page content scroll clear of the floating card. */
body {
  padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 480px) {
  .support {
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 10px;
  }

  .support-button {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .support-test {
    max-width: 220px;
    font-size: 0.72rem;
    line-height: 1.4;
  }
}
