/* Bible Games Project — donation page (/donate). Loaded after site.css, only on that page.
   Ported from the supporter page; colours come from the variables in site.css. */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/donate/hero-galilee-dusk.webp") center 62% / cover no-repeat;
  transform-origin: 50% 60%;
  animation: slow-zoom 28s var(--ease) both;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26,11,13,.78) 0%, rgba(26,11,13,.35) 55%, rgba(26,11,13,.2) 100%),
    linear-gradient(180deg, rgba(26,11,13,.5) 0%, rgba(26,11,13,0) 30%, rgba(26,11,13,.25) 70%, var(--ink) 100%);
}

.hero__grid {
  display: grid;
  align-items: center;
  padding: 5rem 0 6.5rem;
}

.hero__content { max-width: 40rem; }

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #ffd9a0;
}

.hero__lead {
  max-width: 34rem;
  margin: 1.6rem 0 2.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}


.scroll-cue {
  position: absolute;
  bottom: max(1.6rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255,255,255,.8);
  animation: scroll-dot 2.2s var(--ease) infinite;
}

/* ---------- Game artwork ---------- */

.game-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-soft);
}
.game-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Title cover for games whose real artwork has not been added yet. */
.game-media--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,165,36,.18) 0%, rgba(245,165,36,0) 60%),
    linear-gradient(160deg, var(--red-700) 0%, var(--red-900) 60%, var(--ink) 100%);
}
.game-media__ornament {
  width: 2.4rem; height: 2.4rem;
  fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round;
  opacity: .85;
}
.game-media__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-wrap: balance;
}
.game-media__rule {
  width: 2.5rem; height: 1px;
  background: rgba(245,165,36,.55);
}

/* ---------- Community statistics ---------- */

.community {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(4.5rem, 9vw, 6.5rem);
  background: var(--ink);
  color: rgba(255,255,255,.8);
  overflow: hidden;
}
.community::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: min(1100px, 140%);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -35%);
  background: radial-gradient(ellipse, rgba(179,20,46,.4) 0%, rgba(179,20,46,0) 65%);
  pointer-events: none;
}
.community .container { position: relative; }
.community .section-head h2 { color: var(--white); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.stat {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2.2rem);
  text-align: center;
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }

.stat__value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 6.4vw, 5.2rem);
  line-height: 1;
  color: rgba(255,255,255,.28);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat.has-value .stat__value { color: var(--white); }
.stat__label {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.stat__desc {
  max-width: 19rem;
  margin: .8rem auto 0;
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(255,255,255,.62);
}
.stat__sources {
  margin-top: .7rem;
  font-size: .74rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.42);
}
.stat__sources:empty { display: none; }

.stats__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}
.stats__updated { font-size: .85rem; color: rgba(255,255,255,.55); }
.stats__stale {
  max-width: 40rem;
  font-size: .8rem;
  line-height: 1.55;
  color: #ffd08a;
}
.stats__stale:empty { display: none; }

.method { width: 100%; max-width: 46rem; }
.method summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  list-style: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(245,165,36,.4);
  padding-bottom: 2px;
}
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: "+"; font-weight: 400; }
.method[open] summary::after { content: "−"; }
.method summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.method__body {
  margin-top: 1.3rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  text-align: left;
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
}
.method__body p + p, .method__body ul + p { margin-top: .8rem; }
.method__body h3 {
  margin: 1.5rem 0 .5rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.method__body h3:first-child { margin-top: 0; }
.method__body ul { margin: .7rem 0 0; padding-left: 1.1rem; }
.method__body li + li { margin-top: .45rem; }
.method__body em { font-style: normal; color: rgba(255,255,255,.88); }
.method__body strong { color: var(--white); }

/* ---------- Our games ---------- */

.games {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background: var(--paper);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #ece4dc;
  border-radius: 18px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.game:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -28px rgba(90, 20, 26, .45);
}
.game__media { position: relative; }
.game__media .game-media img { transition: transform 1.2s var(--ease); }
.game:hover .game__media img { transform: scale(1.04); }

.game__status {
  position: absolute;
  top: .9rem; left: .9rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(26,11,13,.78);
  color: var(--white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.game__status::before {
  content: "";
  display: inline-block;
  width: .45rem; height: .45rem;
  margin-right: .45rem;
  border-radius: 50%;
  vertical-align: .05em;
  background: var(--gold);
}
.status--released::before { background: #7fd49a; }
.status--dev::before { background: var(--gold); }
.status--soon::before { background: #c9b8ff; }

.game__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
}
.game__title { font-size: 1.65rem; color: var(--ink); }
.game__desc { margin-top: .5rem; font-size: .95rem; line-height: 1.6; color: var(--text-muted); }
.game__links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  margin-top: auto;
  padding-top: 1rem;
}
.game__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--red-700);
  text-decoration: none;
}
.game__link svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.game__link:hover svg { transform: translate(2px, -2px); }
.game__link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Why support us ---------- */

.why {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background: var(--sand);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.section-head h2 { color: var(--ink); }
.section-lead {
  margin-top: 1.3rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: reason;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.reasons > .reason { grid-column: span 2; counter-increment: reason; }
.reasons > .reason:nth-child(4) { grid-column: 2 / span 2; }
.reason {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.8rem;
  background: var(--white);
  border: 1px solid #e8ddd3;
  border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.reason:hover {
  transform: translateY(-4px);
  border-color: #e0cfc3;
  box-shadow: 0 22px 40px -24px rgba(90, 20, 26, .35);
}
.reason__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}
.reason__icon {
  width: 2.6rem; height: 2.6rem;
  padding: .55rem;
  border-radius: 12px;
  background: #f6eceb;
  fill: none; stroke: var(--red-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.reason__num::before { content: counter(reason, decimal-leading-zero); }
.reason__num {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.35rem;
  color: #c9b3a8;
}
.reason h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.reason p { color: var(--text-muted); font-size: .93rem; line-height: 1.6; }

/* Where your support goes */
.goes {
  max-width: 52rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  background: var(--white);
  border: 1px solid #e8ddd3;
  border-radius: var(--radius);
}
.goes summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}
.goes summary::-webkit-details-marker { display: none; }
.goes summary svg {
  width: 1.2rem; height: 1.2rem;
  fill: none; stroke: var(--red-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--ease);
}
.goes[open] summary svg { transform: rotate(180deg); }
.goes summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }
.goes__body {
  padding: 0 clamp(1.3rem, 4vw, 2.4rem) clamp(1.5rem, 4vw, 2.1rem);
  text-align: center;
}
.goes__body > p { color: var(--text-muted); font-size: .95rem; }
.goes__list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  text-align: left;
}
.goes__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #f6eceb;
  font-size: .9rem;
  font-weight: 600;
  color: var(--red-800);
}
.goes__list li::before {
  content: "";
  flex: none;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--red-600);
}

/* ---------- Mission ---------- */

.mission {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background: var(--ink);
  color: rgba(255,255,255,.82);
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(179,20,46,.35) 0%, rgba(179,20,46,0) 65%);
  pointer-events: none;
}

.mission__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.mission__art {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
}
.mission__art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 50%;
  transition: transform 1.6s var(--ease);
}
.mission__art:hover img { transform: scale(1.04); }

.mission__text h2 { color: var(--white); margin-bottom: 1.6rem; }
.mission__text p + p { margin-top: 1.1rem; }
.mission__text strong { color: var(--white); font-weight: 600; }
.signature {
  margin-top: 2rem !important;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--gold);
}

/* ---------- Support our mission ---------- */

.support {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background: var(--sand);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.6rem, 3.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid #e8ddd3;
  border-radius: 20px;
}
.plan .btn { margin-top: auto; align-self: flex-start; }

.plan--featured {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(165deg, var(--red-600) 0%, var(--red-800) 70%, var(--red-900) 100%);
  box-shadow: 0 30px 60px -30px rgba(90, 20, 26, .75);
}

.plan__kicker {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: .9rem;
}
.plan--featured .plan__kicker { color: var(--gold); }

.plan h3 { font-size: clamp(1.8rem, 3vw, 2.2rem); color: var(--ink); margin-bottom: .8rem; }
.plan--featured h3 { color: var(--white); }

.plan__text { color: var(--text-muted); margin-bottom: 1.8rem; }
.plan--featured .plan__text { color: rgba(255,255,255,.8); }

.tiers {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.tiers__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  width: 100%;
  padding: .8rem 1.1rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--white);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.tiers__row:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.32); transform: translateX(3px); }
.tiers__row:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.is-recommended .tiers__row {
  background: rgba(255,255,255,.11);
  border-color: rgba(245,165,36,.75);
  box-shadow: inset 0 0 0 1px rgba(245,165,36,.3);
}
.tiers__amount { flex: none; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1; }
.tiers__amount small {
  margin-left: 3px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  color: rgba(255,255,255,.65);
}
.tiers__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem .6rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.tiers__badge {
  padding: .22rem .55rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--red-900);
  font-size: .6rem;
  letter-spacing: .1em;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
  margin-bottom: 1.8rem;
}
.quick-amount {
  padding: .95rem .4rem;
  border: 1.5px solid #e6dcd3;
  border-radius: 12px;
  background: var(--paper);
  font: 600 1.12rem var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.quick-amount:hover { border-color: var(--red-600); color: var(--red-700); background: var(--white); transform: translateY(-2px); }
.quick-amount:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.quick-amount--custom { grid-column: 1 / -1; font-size: .95rem; padding: .8rem; }

.plan__fine { margin-top: .9rem; font-size: .82rem; color: var(--text-muted); }
.plan--featured .plan__fine { color: rgba(255,255,255,.65); }

.support__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 2.4rem;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}
.support__secure svg {
  flex: none;
  width: 1.15rem; height: 1.15rem;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.support__secure a { color: var(--red-700); font-weight: 600; }

/* ---------- Donation dialog ---------- */

html.dialog-open { overflow: hidden; }

.donate {
  width: min(480px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.55);
  overflow: auto;
  overscroll-behavior: contain;
}
.donate[open] { animation: dialog-in .45s var(--ease); }
.donate::backdrop {
  background: rgba(20, 8, 10, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.donate__step { padding: 2.4rem 2rem 2rem; }
.donate h2 { font-size: 2.1rem; color: var(--ink); margin-bottom: 1.4rem; }
.donate h2:focus { outline: none; }
.donate .eyebrow { margin-bottom: .55rem; }

.donate__close {
  position: absolute;
  top: .9rem; right: .9rem;
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 0; border-radius: 50%;
  background: var(--sand);
  color: var(--text);
  cursor: pointer;
  transition: background-color .25s var(--ease);
}
.donate__close:hover { background: #e9e0d7; }
.donate__close svg,
.donate__back svg {
  width: 1.1rem; height: 1.1rem;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 1.3rem;
  border-radius: 999px;
  background: var(--sand);
}
.toggle button {
  padding: .7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 .95rem var(--sans);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.toggle button[aria-selected="true"] {
  background: var(--white);
  color: var(--red-700);
  box-shadow: 0 2px 10px rgba(60, 20, 20, .1);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.amount,
.tier-option {
  border: 1.5px solid #e6dcd3;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.amount { padding: .95rem .5rem; font: 600 1.12rem var(--sans); }
.amount:hover, .tier-option:hover { border-color: #d6c3b6; }
.amount[aria-checked="true"],
.tier-option[aria-checked="true"] {
  border-color: var(--red-600);
  background: #fbf1f0;
  color: var(--red-700);
  box-shadow: inset 0 0 0 1px var(--red-600);
}
.amount:focus-visible, .tier-option:focus-visible, .toggle button:focus-visible,
.donate__close:focus-visible, .donate__back:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.custom {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .8rem;
  padding: 0 1rem;
  border: 1.5px solid var(--red-600);
  border-radius: 12px;
}
.custom[hidden] { display: none; }
.custom span { font-weight: 600; font-size: 1.2rem; color: var(--red-700); }
.custom input {
  flex: 1;
  min-width: 0;
  padding: .95rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 600 1.12rem var(--sans);
  color: var(--ink);
}

.tier-options { display: grid; gap: .6rem; }
.tier-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1rem;
  padding: .85rem 1.1rem;
  text-align: left;
  font-family: var(--sans);
}
.tier-options__amount { min-width: 5.6rem; font-weight: 600; font-size: 1.15rem; }
.tier-options__amount small { margin-left: 2px; font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.tier-options__name { flex: 1; font-size: .9rem; color: var(--text-muted); }
.tier-options__badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #f6e7cf;
  color: var(--red-800);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: .1em;
}
.tier-options__soon {
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone);
}

.donate__error {
  margin-top: 1rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: #fbeeee;
  color: var(--red-500);
  font-size: .9rem;
  line-height: 1.5;
}
.donate__error[hidden] { display: none; }

.donate__fine { margin-top: .8rem; font-size: .82rem; line-height: 1.5; color: var(--text-muted); }
.donate__fine--center { text-align: center; }

.btn--block { width: 100%; justify-content: center; margin-top: 1.4rem; }
.btn--ghost {
  margin-top: 1rem;
  background: transparent;
  color: var(--red-700);
  border: 1.5px solid var(--red-600);
  padding: .8rem 1.3rem;
  font-size: .92rem;
}
.btn--paypal { background: #ffc439; color: #111; }
.btn--paypal:hover { background: #f2b52d; }

.donate__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.3rem;
  padding: 0;
  border: 0;
  background: none;
  font: 500 .9rem var(--sans);
  color: var(--text-muted);
  cursor: pointer;
}
.donate__back:hover { color: var(--red-700); }
.donate .donate__summary { font-size: 1.85rem; margin-bottom: 0; }
.donate__paypal { margin-top: 1.4rem; min-height: 110px; }
.donate__loading { padding: 2.4rem 0; text-align: center; font-size: .9rem; color: var(--text-muted); }
.donate__notice { padding: 1.3rem 1.4rem; border-radius: 14px; background: var(--sand); }
.donate__notice p + p { margin-top: .5rem; color: var(--text-muted); font-size: .95rem; }

.donate__thanks { padding-top: 3.2rem; text-align: center; }
.donate__thanks h2 { margin-bottom: .9rem; }
.donate__thanks p { color: var(--text-muted); }
.donate__thanks .btn { margin-top: 1.8rem; }
.donate__check {
  display: grid;
  place-items: center;
  width: 4.2rem; height: 4.2rem;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: #fbf1f0;
}
.donate__check svg {
  width: 2rem; height: 2rem;
  fill: none; stroke: var(--red-600); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
}
.donate__thanks:not([hidden]) .donate__check svg { animation: draw-check .6s .15s var(--ease) forwards; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }


.hero__content .reveal:nth-child(2) { animation-delay: .12s; }
.hero__content .reveal:nth-child(3) { animation-delay: .26s; }
.hero__content .reveal:nth-child(4) { animation-delay: .4s; }
.stat.reveal:nth-child(2) { animation-delay: .1s; }
.stat.reveal:nth-child(3) { animation-delay: .2s; }
.game.reveal:nth-child(3n+2) { animation-delay: .08s; }
.game.reveal:nth-child(3n) { animation-delay: .16s; }
.reason.reveal:nth-child(2) { animation-delay: .06s; }
.reason.reveal:nth-child(3) { animation-delay: .12s; }
.reason.reveal:nth-child(4) { animation-delay: .18s; }
.reason.reveal:nth-child(5) { animation-delay: .24s; }
.mission__text.reveal { animation-delay: .12s; }
.plan.reveal:nth-child(2) { animation-delay: .12s; }

@keyframes scroll-dot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@keyframes sheet-in {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .reasons > .reason:nth-child(4) { grid-column: span 2; }
  .reasons > .reason:nth-child(5) { grid-column: 2 / span 2; }
}

@media (max-width: 960px) {
  .hero__grid { padding: 4.5rem 0 4.5rem; }
  .hero__content { max-width: 38rem; margin: 0 auto; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(26,11,13,.6) 0%, rgba(26,11,13,.3) 30%, rgba(26,11,13,.55) 65%, var(--ink) 100%);
  }
  .scroll-cue { display: none; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .mission__grid { grid-template-columns: 1fr; }
  .mission__art { max-width: 520px; }
  .mission__art img { aspect-ratio: 16 / 11; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 760px) {
  .goes__list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; border-bottom: 0; }
  .stat { border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat + .stat { border-left: 0; }
  .stat.reveal:nth-child(n) { animation-delay: 0s; }
}

@media (max-width: 600px) {
  .hero__bg { background-position: 62% 60%; }
  .hero__grid { padding: 3.5rem 0 3.5rem; }
  .page-donate main .btn { width: 100%; justify-content: center; padding: 1.1rem 1.5rem; }
  .game-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .game.reveal:nth-child(n), .reason.reveal:nth-child(n) { animation-delay: 0s; }
  .reasons { grid-template-columns: 1fr; gap: .8rem; }
  .reasons > .reason:nth-child(n) { grid-column: auto; }
  .reason { padding: 1.4rem 1.3rem 1.5rem; }
  .plan .btn { align-self: stretch; }
  .plan.reveal:nth-child(n) { animation-delay: 0s; }
  .quick-amount { font-size: 1rem; }
  .goes__list { grid-template-columns: 1fr; }
  .goes summary { font-size: 1.2rem; }
  .donate {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .donate[open] { animation-name: sheet-in; }
  .donate__step { padding: 2.2rem 1.4rem max(1.6rem, env(safe-area-inset-bottom)); }
  .donate h2 { font-size: 1.9rem; }
  .amount { font-size: 1.05rem; }
}

