/* New School 99: /donate/. The five rank cards echo the game's Donate window (badge, name, total, perks);
   the steps hand off to the checkout page the game opens. Tokens, the title band and windows come from ns.css. */
.donate { --ptop-img: url("/media/site/mounts.webp"); --ptop-at: 50% 58%; }
.don-jump { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

.don-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; margin-bottom: 20px; }
.don-head h2 { font-size: clamp(32px, 4vw, 48px); }
.don-head p { color: var(--ink-2); max-width: 58ch; }

/* the ranks: one card each, the rank's own colour on top (bronze, silver, gold, pale gold, purple as in the game) */
.don-ranks { margin-top: 10px; }
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rank { --r: #c8803c; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 20px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(24,39,47,.96), rgba(13,23,31,.96)); border: 1px solid var(--frame-hi); border-top: 3px solid var(--r);
  box-shadow: 0 0 0 1px #05090c, 0 24px 50px -24px rgba(0,0,0,.9); }
.rank::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; border-radius: 6px 6px 0 0; pointer-events: none; background: radial-gradient(60% 70% at 50% 0, color-mix(in srgb, var(--r) 30%, transparent), transparent 75%); }
.rank--2 { --r: #c3ccd2; } .rank--3 { --r: #e4b86a; } .rank--4 { --r: #fde8a4; } .rank--5 { --r: #b97cff; }
.rank > img { position: relative; width: auto; height: 64px; max-width: 86px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.rank h3 { margin-top: 12px; font-size: 26px; color: var(--r); }
.rank-usd { margin-top: 4px; color: var(--ink-2); font-size: 17px; }
.rank-usd b { font: 700 40px/1 var(--numeral); color: var(--ink); margin-right: 2px; }
.rank ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--frame); display: grid; gap: 8px; width: 100%; text-align: left; color: var(--ink); font-size: 16.5px; line-height: 1.35; }
.rank li { position: relative; padding-left: 18px; }
.rank li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--r); border-radius: 1px; }
.rank i { color: var(--ink-2); }
.rank--5 { border-color: rgba(185,124,255,.55); box-shadow: 0 0 0 1px #05090c, 0 0 40px -12px rgba(185,124,255,.45), 0 24px 50px -24px rgba(0,0,0,.9); }
.don-note { margin-top: 14px; color: var(--ink-3); font-size: 16px; }

/* how it works: three numbered steps, then the ways to pay */
.don-how { margin-top: clamp(48px, 6vw, 80px); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { counter-increment: step; padding: 20px 22px 22px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; align-content: start; }
.step::before { content: counter(step); grid-row: 1 / 3; font: 700 54px/.9 var(--numeral); color: var(--gold); }
.step h3 { font-size: 23px; align-self: end; }
.step p { color: var(--ink-2); font-size: 17px; }
.step b, .discord-card b { color: var(--ink); }
.donate code { background: #05090c; padding: 1px 6px; border-radius: 3px; font-size: .92em; color: var(--gold-hi); white-space: nowrap; }
.pay { margin-top: 14px; padding: 18px 22px 20px; }
.pay h3 { font-size: 19px; color: var(--ink-2); font-weight: 700; letter-spacing: 0; }
.pay-rows { margin-top: 12px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px 28px; }
.pay-row p { font-weight: 700; margin-bottom: 8px; }
.pay-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-row img { height: 34px; width: auto; border-radius: 4px; }
.pay-row img[width="40"] { width: 34px; }
.pay-more { color: var(--ink-3); font-size: 15px; }

/* the Discord role */
.don-discord { margin-top: 14px; }
.discord-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 22px 24px; border-color: rgba(143,155,255,.45); background: linear-gradient(100deg, rgba(88,101,242,.16), rgba(13,23,31,.95) 55%); }
.discord-mark { width: 50px; height: 50px; color: #aab2ff; }
.discord-card h2 { font-size: clamp(24px, 2.4vw, 30px); }
.discord-card p { margin-top: 6px; color: var(--ink-2); max-width: 72ch; }
.discord-card .btn { white-space: nowrap; }

.don-faq { margin-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.don-faq h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 10px; }
.don-faq .faq-list { columns: 2; column-gap: 48px; }
.don-faq details { border-bottom: 1px solid var(--frame); break-inside: avoid; }
.don-faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.don-faq summary::-webkit-details-marker { display: none; }
.don-faq summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 24px; line-height: 1; }
.don-faq details[open] summary::after { content: "\2212"; }
.don-faq details p { color: var(--ink-2); padding: 0 0 16px; }

@media (max-width: 1100px) {
  .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pay-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rank--5 { grid-column: 1 / -1; }
  .rank { padding: 18px 12px 16px; }
  .rank h3 { font-size: 23px; }
  .rank ul { font-size: 15.5px; }
  .discord-card { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .discord-mark { width: 40px; height: 40px; }
  .discord-card .btn { justify-self: start; }
  .don-faq .faq-list { columns: 1; }
  .step { padding: 16px; grid-template-columns: 38px minmax(0, 1fr); }
  .step::before { font-size: 44px; }
}
@media (max-width: 420px) {
  .ranks { grid-template-columns: minmax(0, 1fr); }
  .rank--5 { grid-column: auto; }
}
@media (max-width: 420px) {
  .rank { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
  .rank > img { grid-row: 1 / 3; height: 50px; justify-self: center; }
  .rank h3 { margin-top: 0; align-self: end; }
  .rank-usd { margin-top: 0; align-self: start; }
  .rank ul { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; }
}
