body.donate-portal-page {
  overflow-x: hidden;
}

.donate-page-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1rem, 2vh, 1.6rem) 5vw clamp(1.4rem, 3vh, 2rem);
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: clamp(1.8rem, 4vh, 2.8rem);
}

.donate-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-title {
  font-family: var(--font-display);
  letter-spacing: .18em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-align: center;
  margin: 0;
  line-height: 1;
  color: var(--text);
  text-shadow: -1px -1px 0 var(--relief), 0 0 12px var(--green-1);
}

.donate-stage {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.6vh, 1.8rem);
}

.donate-statement {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin: 0 auto;
  line-height: 1.5;
}

.donate-context {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-readable-muted, rgba(232, 248, 238, 0.62));
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  line-height: 1.6;
}

.donate-surface {
  width: min(720px, 88vw);
  display: grid;
  gap: .8rem;
  z-index: 2;
  padding: 0.85rem;
  border-radius: 24px;
  border: 1px solid rgba(42, 255, 138, 0.16);
  background:
    linear-gradient(180deg, rgba(42, 255, 138, 0.035), rgba(0, 0, 0, 0) 44%),
    rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px) saturate(1.02);
}

.donate-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}

.donate-preset,
.donate-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(42,255,138,0.26);
  background: rgba(0,0,0,0.5);
  color: var(--text);
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: .88rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  transition: opacity 150ms ease, filter 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.donate-preset:hover,
.donate-preset:focus-visible,
.donate-submit:hover,
.donate-submit:focus-visible {
  border-color: rgba(42,255,138,0.55);
  box-shadow: 0 0 14px rgba(42,255,138,0.16);
  filter: brightness(1.25) contrast(1.1);
}

.donate-preset[data-selected="true"] {
  border-color: rgba(42,255,138,0.7);
  box-shadow: 0 0 18px rgba(42,255,138,0.28);
  filter: brightness(1.3) contrast(1.1);
  animation: preset-seal 240ms ease-out both;
}

@keyframes preset-seal {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.donate-surface .cf-turnstile:not(:empty) {
  justify-self: center;
  min-height: 65px;
}

.donate-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
}

.donate-input {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(42,255,138,0.26);
  background: rgba(0,0,0,0.72);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-align: center;
  outline: none;
  box-shadow: 0 0 0 1px rgba(42,255,138,0.08);
}

.donate-input::placeholder {
  color: rgba(42,255,138,0.6);
}

.donate-input:focus-visible {
  border-color: rgba(42,255,138,0.55);
  box-shadow: 0 0 0 2px rgba(42,255,138,0.16);
}

.donate-status {
  min-height: 1.2rem;
  text-align: center;
  font-size: .95rem;
  letter-spacing: .05em;
  opacity: .9;
  margin-top: -0.15rem;
}

.donate-feedback {
  min-height: 1.2em;
  margin: -0.1rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 200ms ease;
}

.donate-assurance {
  margin: -0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
}

.donate-status[hidden] {
  display: none;
}

.splash {
  position: relative;
  text-align: center;
  z-index: 5;
  width: 100%;
}

.splash__eyebrow {
  font-size: 1.1rem;
  letter-spacing: .15em;
  text-shadow:
    -1px -1px 0 var(--relief),
     0 0 8px var(--green-1),
     0 0 18px var(--green-2),
     0 0 28px var(--green-3);
}

.lede {
  font-size: 1.45rem;
  max-width: 520px;
  margin: 0.3rem auto;
  opacity: .92;
  text-shadow: 0 0 9px var(--green-1);
}

.divider {
  margin-top: .4rem;
  font-family: var(--font-display);
  opacity: .7;
  text-shadow: 0 0 9px var(--green-2);
}

.splash__foot {
  font-size: 1rem;
  opacity: .9;
  letter-spacing: .12em;
}

.splash__foot a {
  color: var(--text);
  margin: 0 .6rem;
  text-decoration: none;
  text-shadow: 0 0 8px var(--green-1);
}

.splash__foot a:hover,
.splash__foot a:focus-visible {
  filter: brightness(1.25) contrast(1.1);
}

@media (max-width: 900px) {
  body.donate-portal-page {
    overflow-y: auto;
  }

  .donate-page-shell {
    min-height: 100svh;
    padding: calc(var(--hero-bar-height, 58px) + 1.4rem) 5vw 2rem;
    gap: 1rem;
  }

  .header-title {
    font-size: clamp(1.6rem, 3.2vw, 3rem);
  }

  .donate-surface {
    width: min(520px, 100%);
  }

  .donate-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donate-console {
    grid-template-columns: 1fr;
  }

  .donate-submit {
    width: 100%;
  }

  .splash {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: .2rem;
  }

  .splash__eyebrow {
    font-size: 0.95rem;
  }

  .lede {
    font-size: 1.05rem;
    margin: 0.2rem auto;
  }

  .divider {
    margin-top: .25rem;
    font-size: .9rem;
  }

  .splash__foot {
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-title {
    animation: none !important;
  }
}
