/* Donate page: Newgrounds-inspired support layout */
.donate-page {
  min-height: 100vh;
  background: #050303;
}

.primary-nav a.active {
  color: #fff;
  background: rgba(246, 162, 26, 0.1);
  box-shadow: inset 0 -3px 0 var(--orange);
}

.donate-scene {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  padding: 1.6rem 0 2.4rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.14) 22%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 2, 2, 0.25) 0%, rgba(4, 2, 2, 0.72) 100%),
    url("assets/donate-bg.jpg") center top / cover no-repeat;
  border-bottom: 3px solid #000;
}

.donate-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 8%, rgba(255, 116, 28, 0.08), transparent 28rem);
  mix-blend-mode: screen;
  pointer-events: none;
}

.donate-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 0.75rem;
  align-items: start;
}

.donate-copy-panel,
.donate-widget {
  background: rgba(11, 6, 7, 0.94);
  border: 2px solid #050303;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    5px 5px 0 rgba(0, 0, 0, 0.55);
}

.donate-copy-panel {
  min-height: 720px;
  padding: 1.2rem 1.25rem 1.5rem;
  overflow: hidden;
}

.donate-intro {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.2rem;
}

.donate-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--orange);
  font-weight: 900;
  font-size: 0.85rem;
}

.donate-intro h1 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.05;
  font-family: "Anton", Impact, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000;
}

.donate-intro p,
.perk-item p,
.donate-option p,
.payment-note {
  color: #ead9cf;
  line-height: 1.45;
}

.donate-intro p {
  max-width: 760px;
  margin: 0;
  font-size: 1rem;
}

.perk-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.perk-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.perk-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.perk-heart { background: #ff5278; }
.perk-star { background: #f6a21a; color: #211108; }
.perk-badge { background: #9e66ff; }
.perk-box { background: #ff5b2e; }

.perk-item h2,
.supporter-badges h2 {
  margin: 0 0 0.45rem;
  color: #e5d1c7;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}

.perk-item p {
  margin: 0;
  font-size: 0.95rem;
}

.supporter-badges {
  margin-top: 1.6rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.badge-row span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #fff;
  font-weight: 900;
  border: 3px solid #1a1111;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    #392022;
  clip-path: polygon(50% 0, 95% 25%, 85% 82%, 50% 100%, 15% 82%, 5% 25%);
  text-shadow: 2px 2px 0 #000;
}

.badge-row span:nth-child(2) { background-color: #772c3d; }
.badge-row span:nth-child(3) { background-color: #3a527f; }
.badge-row span:nth-child(4) { background-color: #64408d; }
.badge-row span:nth-child(5) { background-color: #a84d24; }

.donate-widget {
  position: sticky;
  top: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.donate-widget-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(#333, #151819);
  border-bottom: 2px solid #000;
}

.donate-currency {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: #ff7b22;
  color: #180b05;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 2px 2px 0 #000;
}

.donate-widget-title h2 {
  margin: 0;
  color: #fff;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 #000;
}

.donate-form {
  padding: 0.9rem 1rem 1rem;
  background: rgba(13, 7, 8, 0.98);
}

.form-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  color: #f3dfd5;
}

.form-row input,
.custom-amount input {
  width: 100%;
  min-width: 0;
  border: 1px solid #25313a;
  background: linear-gradient(#d7e7ea, #8da1a8);
  color: #101010;
  padding: 0.35rem 0.45rem;
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.45);
}

.form-divider {
  height: 1px;
  margin: 0.9rem 0;
  background: rgba(255, 255, 255, 0.08);
}

.donate-option {
  margin: 0 0 0.8rem;
  padding: 0.85rem 0.8rem;
  border: 1px solid #3e3333;
  background: rgba(255, 255, 255, 0.03);
}

.donate-option-active {
  border-color: #bdb0ac;
  background: rgba(255, 255, 255, 0.08);
}

.donate-option legend {
  padding: 0 0.25rem;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}

.donate-option p {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.amount-btn,
.wide-choice,
.donate-submit {
  min-height: 32px;
  border: none;
  border-radius: 999px;
  background: #ff5b20;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, background 0.12s, color 0.12s;
}

.amount-btn:hover,
.wide-choice:hover,
.donate-submit:hover {
  transform: translateY(-1px);
  background: var(--orange);
  color: #130806;
}

.amount-btn.active {
  background: #fff;
  color: #ff5b20;
}

.custom-amount {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #ead9cf;
}

.pay-line {
  margin: 0.3rem 0 0.85rem;
  padding-left: 1.2rem;
  color: #ead9cf;
  font-weight: 900;
}

.pay-line strong {
  color: #42d83c;
  margin-left: 0.55rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0 1.2rem;
  color: #ead9cf;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: #b8c5c7;
}

.wide-choice,
.donate-submit {
  width: 100%;
  border-radius: 4px;
  text-transform: uppercase;
}

.flat-label {
  margin: 0.2rem 0 0.7rem;
  color: #ead9cf;
}

.payment-note {
  border: 1px solid #3e3333;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.7rem;
  font-size: 0.82rem;
}

:root.light .donate-scene {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 24%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(33, 18, 12, 0.15) 0%, rgba(33, 18, 12, 0.45) 100%),
    url("assets/donate-bg.jpg") center top / cover no-repeat;
}

@media (max-width: 980px) {
  .donate-shell {
    grid-template-columns: 1fr;
  }

  .donate-copy-panel {
    min-height: auto;
  }

  .donate-widget {
    position: static;
  }
}

@media (max-width: 620px) {
  .donate-scene {
    padding: 1rem 0 1.4rem;
  }

  .donate-shell {
    width: min(100% - 1rem, 1220px);
  }

  .donate-copy-panel,
  .donate-form {
    padding: 0.85rem;
  }

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

  .form-row,
  .custom-amount {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .badge-row span {
    width: 58px;
    height: 58px;
  }
}

