@import url("./donate-tokens.css");

html:has(.donate-page), body.donate-page { overflow-x: clip; }

:where(.donate-page) {
  --text-style-bold-weight: 750;
  --text-style-shadow: 0 0.12em 0.1em rgb(0 0 0 / 90%), 0 0 0.22em rgb(0 0 0 / 72%);
  margin: 0;
}

:where(.donate-page) a {
  color: #2563eb;
}

:where(.donate-page) button,
:where(.donate-page) .button {
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: white;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

:where(.donate-page) input,
:where(.donate-page) textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  box-sizing: border-box;
  width: 100%;
}

:where(.donate-page) label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

section.donate-page-description {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #eff6ff;
  background: rgba(15, 23, 42, 0.74);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

section.donate-page-description strong {
  color: #dbeafe;
}

.donate-page-description a {
  color: #93c5fd;
}

.donate-page-description a:hover {
  color: #bfdbfe;
}

.donate-page-description a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.donate-page-description a:active {
  color: #dbeafe;
}

.donate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.donate-panel {
  width: min(440px, calc(100vw - 32px));
}

.donate-panel form {
  display: grid;
  gap: 14px;
}

.donate-page {
  min-height: 100vh;
  place-items: start center;
  padding: 36px 16px;
  background: linear-gradient(135deg, #090f1a 0%, #101827 48%, #07120f 100%);
  color: #e6edf7;
}

.donate-shell {
  width: min(980px, 100%);
  min-width: 0;
  display: grid;
  gap: 16px;
}

.donate-shell > * {
  min-width: 0;
}

.donate-error-state .donate-hero,
.donate-error-state .donate-panel {
  display: none;
}

.donate-page.donate-page-loading {
  background: #f5f5f5;
}

.donate-page-loading .donate-shell {
  visibility: hidden;
}

.donate-loading-status {
  display: none;
}

.donate-page-loading .donate-loading-status {
  display: block;
  position: fixed;
  inset: 0;
  margin: 0;
  align-content: center;
  text-align: center;
  color: #525252;
  font-size: 16px;
}

.donate-error-panel {
  width: min(560px, calc(100vw - 32px));
  min-height: 180px;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 32px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.35);
  text-align: center;
}

.donate-error-panel h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1.35;
}

.donate-hero,
.donate-panel {
  border: 1px solid #253249;
  border-radius: 8px;
  background: #0d1422;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.donate-hero {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  padding: 0;
  color: #f8fafc;
}

.donate-hero-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b1220 0%, #132033 56%, #06323c 100%);
}

.donate-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donate-hero.has-custom-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.08), rgba(5, 10, 18, 0.66));
}

.donate-hero.has-custom-banner .donate-hero-art {
  opacity: 0;
}

.donate-hero-art span {
  position: absolute;
  inset-block: 0;
  display: block;
}

.donate-hero-art span:nth-child(1) {
  left: 0;
  width: 42%;
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
  background: rgba(56, 189, 248, 0.2);
}

.donate-hero-art span:nth-child(2) {
  left: 36%;
  width: 28%;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 16% 100%);
  background: rgba(20, 184, 166, 0.18);
}

.donate-hero-art span:nth-child(3) {
  right: 0;
  width: 34%;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  background: rgba(148, 163, 184, 0.12);
}

.donate-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  justify-items: center;
  min-height: 244px;
  padding: 28px 32px;
  text-align: center;
}

.donate-hero h1 {
  align-self: center;
  margin: 0;
  color: var(--donate-title-color, #f8fafc);
  font-family: var(--donate-title-font-family, inherit);
  font-size: var(--donate-title-size, 72px);
  font-weight: var(--donate-title-font-weight, var(--text-style-bold-weight));
  font-style: var(--donate-title-font-style, normal);
  line-height: 1.02;
  white-space: pre-wrap;
  text-shadow: var(--donate-title-shadow, var(--text-style-shadow));
  -webkit-text-stroke: var(--donate-title-outline-width, 0) var(--donate-title-outline-color, #000000);
  /* Keep public output identical to the shared editor and dashboard preview. */
  paint-order: stroke fill;
  text-wrap: balance;
}

.donate-channel-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: end;
  width: auto;
  max-width: min(760px, 100%);
  min-height: 44px;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.68);
  color: #ecfeff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.donate-channel-pill {
  backdrop-filter: blur(12px);
}

.donate-channel-card span {
  color: #d1fae5;
}

.donate-channel-card img {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(125, 211, 252, 0.28);
  border-radius: 50%;
  background: #0f172a;
  object-fit: cover;
}

.donate-channel-card a {
  color: #ffffff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.donate-channel-card a:hover,
.donate-channel-card a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.donate-social-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

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

.donate-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.donate-social-link:hover,
.donate-social-link:focus-visible {
  border-color: rgba(125, 211, 252, 0.72);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.donate-social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.donate-social-link svg[stroke],
.donate-social-link svg [stroke] {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.donate-social-link svg:not(.social-icon-preserve-fill)[fill]:not([fill="none"]),
.donate-social-link svg:not(.social-icon-preserve-fill) [fill]:not([fill="none"]) {
  fill: currentColor;
}

.donate-panel {
  width: auto;
  padding: 26px 32px 30px;
}

.donate-footer {
  display: flex;
  justify-content: center;
  min-height: 28px;
  color: #8da0b8;
  font-size: 12px;
  font-weight: 650;
}

.donate-footer p {
  margin: 0;
}

.donate-panel form {
  gap: 22px;
}

.donate-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 18px;
}

.donate-form-grid > .donate-field {
  align-content: start;
  align-self: start;
  width: 100%;
}

.donate-field {
  color: #e2e8f0;
  font-weight: 800;
}

.donate-field span {
  font-size: 16px;
}

.donate-field input,
.donate-field textarea {
  min-height: 54px;
  border: 1px solid #2b384d;
  border-radius: 8px;
  background: #070d17;
  color: #f8fafc;
  padding: 14px 16px;
  font-size: 16px;
}

.donate-field textarea {
  min-height: 170px;
  resize: vertical;
}

.donate-field input:focus,
.donate-field textarea:focus {
  border-color: #38bdf8;
  outline: 3px solid rgba(56, 189, 248, 0.18);
}

.donate-field small {
  min-height: 18px;
  color: #90a7c4;
  font-size: 13px;
  font-weight: 700;
}

.quick-donation-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  container-type: inline-size;
  gap: 8px;
}

.quick-donation-amounts[hidden] {
  display: none;
}

.quick-donation-amount {
  min-width: 0;
  min-height: 40px;
  padding: 8px 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: rgba(14, 116, 144, 0.12);
  color: #bae6fd;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.quick-donation-amount:hover,
.quick-donation-amount:focus-visible {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.24);
  color: #f0f9ff;
  outline: none;
  transform: translateY(-1px);
}

#gateway-chooser,
#progress-target-chooser {
  border: 1px solid #2b384d;
  border-radius: 8px;
  padding: 14px 16px;
}

#gateway-chooser legend,
#progress-target-chooser legend {
  font-size: 16px;
  font-weight: 800;
  padding: 0 6px;
}

#gateway-chooser-options,
#progress-target-chooser-options {
  display: grid;
  gap: 10px;
}

.donate-vip-reward-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #2b384d;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  padding: 14px 16px;
  color: #e2e8f0;
}

.donate-vip-reward-panel[hidden] {
  display: none;
}

.donate-vip-reward-panel strong {
  font-size: 16px;
  font-weight: 900;
}

.donate-vip-reward-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donate-vip-reward-panel li {
  color: #c4d3e7;
  font-size: 14px;
  font-weight: 750;
}

.donate-gateway-option,
.donate-progress-target-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.donate-gateway-option input,
.donate-progress-target-option input {
  min-height: 0;
  width: auto;
  cursor: pointer;
}

.donate-submit-row {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.donate-submit-row p {
  margin: 2px 0 0;
  color: #f8fafc;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.donate-submit-row button {
  width: min(520px, 100%);
  min-height: 58px;
  border: 1px solid #5eead4;
  border-radius: 8px;
  background: #14b8a6;
  color: #03120d;
  font-size: 18px;
}

.donate-submit-row button:hover,
.donate-submit-row button:focus-visible {
  background: #2dd4bf;
  outline: none;
}

@media (max-width: 720px) {
  .donate-page {
    padding: 16px 10px;
  }

  .donate-hero,
  .donate-hero-content {
    min-height: 230px;
  }

  .donate-hero.has-custom-banner {
    aspect-ratio: 1400 / 430;
    min-height: 168px;
  }

  .donate-hero.has-custom-banner .donate-banner-image {
    object-fit: contain;
  }

  .donate-hero.has-custom-banner .donate-hero-content {
    height: 100%;
    min-height: 0;
    padding: 12px;
  }

  .donate-hero h1 {
    margin: 0;
    font-size: min(var(--donate-title-size, 72px), 42px);
  }

  .donate-hero.has-custom-banner h1 {
    font-size: min(var(--donate-title-size, 72px), clamp(22px, 7vw, 34px));
  }

  .donate-channel-card {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
  }

  .donate-channel-card img {
    width: 28px;
    height: 28px;
  }

  .donate-social-link {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }

  .donate-social-link svg {
    width: 14px;
    height: 14px;
  }

  .donate-panel {
    padding: 20px 16px 22px;
  }

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

  .donate-submit-row p {
    font-size: 22px;
  }
}

.donate-supporter-identity { grid-column: 1 / -1; display: grid; gap: 10px; padding: 18px; border: 1px solid rgba(148, 163, 184, .25); border-radius: 16px; }
.donate-supporter-identity p { margin: 6px 0 10px; }
.donate-supporter-identity { overflow: hidden; background: linear-gradient(145deg, rgb(13 27 38 / 82%), rgb(9 19 28 / 72%)); box-shadow: inset 0 1px rgb(255 255 255 / 3%); }
.donate-supporter-logged-in { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; }
.donate-supporter-logged-in #donate-supporter-avatar { width: 52px; height: 52px; border: 2px solid rgb(145 70 255 / 45%); border-radius: 14px; box-shadow: 0 0 0 4px rgb(145 70 255 / 8%); object-fit: cover; }

.donate-supporter-profile { display: grid; min-width: 0; gap: 2px; }
.donate-supporter-profile .donate-supporter-status { color: #9b83cf; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.donate-supporter-profile strong { overflow: hidden; color: var(--text); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.donate-supporter-profile #donate-supporter-login-name { color: var(--muted); font-size: 12px; }
.donate-supporter-logged-in #donate-supporter-logout { min-height: 38px; padding-inline: 14px; }
.donate-field input[readonly] { cursor: not-allowed; color: #c4b5fd; background: rgb(145 70 255 / 8%); border-color: rgb(145 70 255 / 32%); }
.donate-supporter-logged-out { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.donate-supporter-copy { min-width: 0; }
.donate-supporter-copy strong { color: var(--text); font-size: 15px; }
.donate-supporter-copy p { max-width: 620px; margin-bottom: 0; color: var(--muted); line-height: 1.65; text-wrap: pretty; }
.donate-twitch-login { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 17px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 10px; color: #fff; background: #9146ff; box-shadow: 0 8px 22px rgb(72 24 132 / 20%); font-size: 14px; font-weight: 850; line-height: 1; text-decoration: none; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.donate-twitch-login img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.donate-twitch-login:hover { color: #fff; background: #772ce8; box-shadow: 0 11px 26px rgb(72 24 132 / 30%); transform: translateY(-1px); }
.donate-twitch-login:focus-visible { outline: 3px solid rgb(169 112 255 / 35%); outline-offset: 3px; }
.donate-twitch-login:active { transform: translateY(0); }
.donate-identity-mode { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.donate-identity-mode legend { width: 100%; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.donate-identity-mode label { position: relative; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 12px; border: 1px solid rgb(148 163 184 / 20%); border-radius: 9px; color: #c9d7df; background: rgb(15 29 40 / 68%); font-size: 13px; font-weight: 750; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.donate-identity-mode label:has(input:checked) { border-color: rgb(145 70 255 / 42%); color: #eee7ff; background: rgb(145 70 255 / 12%); }
.donate-identity-mode input { width: 16px; height: 16px; margin: 0; accent-color: #9146ff; }
.donate-vip-identity-warning { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 0 !important; padding: 11px 13px; border: 1px solid rgb(251 191 36 / 34%); border-radius: 10px; color: #fde68a; background: rgb(120 53 15 / 22%); font-size: 12px; font-weight: 750; line-height: 1.55; }
.donate-vip-identity-warning::before { flex: 0 0 auto; content: "!"; display: inline-grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgb(251 191 36 / 48%); border-radius: 50%; color: #fbbf24; font-size: 11px; font-weight: 900; line-height: 1; }
.donate-vip-identity-warning[hidden] { display: none; }
.donate-supporter-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid rgb(148 163 184 / 13%); }
.donate-supporter-footer a { color: #b89aea; font-size: 13px; font-weight: 800; text-underline-offset: 3px; }
.donate-supporter-footer small { color: var(--muted); font-size: 11px; text-align: right; }
@media (max-width: 640px) { .donate-supporter-logged-out { align-items: stretch; flex-direction: column; } .donate-twitch-login { width: 100%; } }
@media (max-width: 480px) { .donate-identity-mode { grid-template-columns: 1fr; } .donate-supporter-footer { align-items: flex-start; flex-direction: column; } .donate-supporter-footer small { text-align: left; } }

@media (prefers-reduced-motion: reduce) { .donate-twitch-login { transition: none; } }

.video-preview-status { margin: 8px 0 0; color: #90a7c4; font-size: 13px; font-weight: 500; line-height: 1.6; }
.donate-page .donate-panel .video-preview-status.video-preview-error { padding: 12px; border: 1px solid var(--donate-warning); border-radius: 8px; background: var(--donate-warning-surface); color: var(--donate-warning-ink); font-weight: 700; }
.video-selection { margin-top: 14px; padding: 16px; border: 1px solid #2b384d; border-radius: 12px; background: #0b1422; }
.video-preview-heading { display: flex; align-items: center; gap: 12px; }
.video-preview-heading img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.video-preview-heading > div { min-width: 0; }
.video-preview-heading strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.video-preview-heading small { display: block; margin-top: 4px; }
.video-preview-toggle { margin-top: 12px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.video-preview-player { margin-top: 12px; }
.video-preview-player iframe { display: block; width: 100%; max-width: 360px; height: 480px; margin: 0 auto; border: 0; border-radius: 6px; }
.video-selection-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 14px; }
.video-selection-summary output { color: #7dd3fc; }
.video-timeline { position: relative; height: 44px; margin: 4px 0; }
.video-timeline-track { position: absolute; inset: 19px 8px; height: 6px; background: #26374e; border-radius: 6px; overflow: hidden; }
.video-timeline-track span { position: absolute; height: 100%; background: #38bdf8; border-radius: 6px; }
.donate-field .video-timeline input { position: relative; width: 100%; height: 44px; min-height: 0; padding: 0; margin: 0; appearance: none; background: transparent; border: 0; cursor: grab; }
.video-timeline input::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.video-timeline input::-moz-range-track { height: 6px; background: transparent; }
.video-timeline input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; border: 3px solid #e0f2fe; background: #0284c7; }
.video-timeline input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 3px solid #e0f2fe; background: #0284c7; }
.video-timeline input:disabled { opacity: 0.4; cursor: default; }
.video-selection-times { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; }
.video-selection-times label, .video-selection-times > div { display: grid; gap: 6px; font-size: 13px; color: #90a7c4; }
.video-selection-times > div > span { font-size: 13px; }
.video-selection-times input, .video-selection-times output { min-height: 44px; padding: 10px 12px; font-size: 16px; font-variant-numeric: tabular-nums; }
.video-selection-times output { color: #e2e8f0; }
@media (max-width: 480px) {
  .video-selection { padding: 12px; }
  .video-preview-heading img { width: 88px; }
}
/* Public donation redesign. Banner geometry above is intentionally retained. */
.donate-page {
  background: var(--donate-background);
  color: var(--donate-ink);
  font-family: var(--donate-font);
}
.donate-hero, .donate-panel, section.donate-page-description, .donate-error-panel {
  border-color: var(--donate-rule);
  background: var(--donate-surface);
  box-shadow: none;
}
.donate-panel { border-radius: 12px; padding: 30px 32px; }
.donate-panel form { gap: 28px; }
.donate-field, .donate-vip-reward-panel, .donate-error-panel h1 { color: var(--donate-ink); }
.donate-field { font-weight: 650; }
.donate-field input, .donate-field textarea {
  color: var(--donate-ink);
  background: var(--donate-input);
  border-color: var(--donate-rule);
  font-weight: 400;
}
.donate-field input::placeholder, .donate-field textarea::placeholder { color: var(--donate-muted); opacity: 1; }
.donate-field small, .video-preview-status, .video-selection-times label,
.video-selection-times > div, .donate-vip-reward-panel li { color: var(--donate-muted); font-weight: 400; }
.donate-field input:focus, .donate-field textarea:focus {
  border-color: var(--donate-ink);
  outline: 2px solid var(--donate-ink);
  outline-offset: 2px;
}
.donate-field textarea { min-height: 116px; }
.donate-form-grid { gap: 24px; }
.donate-supporter-identity {
  padding: 0 0 22px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--donate-rule);
  border-radius: 0;
  box-shadow: none;
}
.donate-supporter-footer { border-color: var(--donate-rule); }
.donate-supporter-footer a { color: var(--donate-link); font-weight: 500; }
.donate-supporter-profile .donate-supporter-status { color: var(--donate-muted); }
.donate-supporter-logged-in #donate-supporter-avatar { border-color: var(--donate-rule); box-shadow: none; }
.donate-twitch-login, .donate-twitch-login:hover {
  background: var(--donate-ink);
  color: var(--donate-surface);
  box-shadow: none;
  transform: none;
  border-radius: 7px;
  font-weight: 650;
  white-space: nowrap;
}
.donate-twitch-login img { display: none; }
.donate-twitch-login::before {
  content: "";
  width: 18px;
  height: 20px;
  background: currentColor;
  mask: url('/landing-assets/social-twitch.svg') center / contain no-repeat;
}
.donate-twitch-login:hover { opacity: .85; }
.donate-identity-mode label, .donate-identity-mode label:has(input:checked), .donate-field input[readonly] {
  color: var(--donate-ink);
  background: var(--donate-soft);
  border-color: var(--donate-rule);
}
.donate-identity-mode label:has(input:checked) { border-color: var(--donate-ink); }
.donate-identity-mode input, .donate-gateway-option input, .donate-progress-target-option input { accent-color: var(--donate-ink); }
.donate-page button.secondary { color: var(--donate-ink); background: var(--donate-soft); border: 1px solid var(--donate-rule); }
.quick-donation-amount, .quick-donation-amount:hover, .quick-donation-amount:focus-visible {
  border: 1px solid var(--donate-rule);
  color: var(--donate-ink);
  background: var(--donate-soft);
  font-weight: 650;
  transform: none;
}
.quick-donation-amount:hover { border-color: var(--donate-ink); }
.donate-page a:focus-visible, .donate-page button:focus-visible,
.donate-page input[type=radio]:focus-visible {
  outline: 2px solid var(--donate-ink);
  outline-offset: 3px;
}
.donate-page button:active { transform: translateY(1px); }
.donate-page button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#gateway-chooser, #progress-target-chooser, .donate-vip-reward-panel, .video-selection {
  border-color: var(--donate-rule);
  background: var(--donate-soft);
  border-radius: 8px;
}
#gateway-chooser, #progress-target-chooser { margin: 0; min-width: 0; }
.donate-vip-reward-panel { padding: 18px 20px; border-left: 3px solid var(--donate-accent); }
.donate-vip-reward-panel strong { font-weight: 650; }
.video-selection-summary output, .video-selection-times output { color: var(--donate-ink); }
.video-timeline-track { background: var(--donate-rule); }
.video-timeline-track span { background: var(--donate-ink); }
.video-timeline input::-webkit-slider-thumb { border-color: var(--donate-ink); background: var(--donate-surface); }
.video-timeline input::-moz-range-thumb { border-color: var(--donate-ink); background: var(--donate-surface); }
.donate-submit-row { border-top: 1px solid var(--donate-rule); padding-top: 24px; gap: 16px; }
.donate-submit-row p { color: var(--donate-muted); font-size: 14px; font-weight: 400; line-height: 1.6; }
.donate-submit-row button, .donate-submit-row button:hover, .donate-submit-row button:focus-visible {
  width: 100%;
  border: 1px solid var(--donate-accent);
  background: var(--donate-accent);
  color: var(--donate-on-accent);
  font-weight: 700;
  white-space: nowrap;
}
.donate-submit-row button:hover:not(:disabled) { filter: brightness(.94); }
section.donate-page-description { color: var(--donate-ink); }
section.donate-page-description strong, .donate-page-description a,
.donate-page-description a:hover, .donate-page-description a:active { color: var(--donate-ink); }
.donate-footer { color: var(--donate-page-muted); flex-wrap: wrap; gap: 8px 20px; font-weight: 400; padding: 8px 0; }
.donate-footer a { color: inherit; white-space: nowrap; }
.donate-footer p:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.donate-footer a:focus-visible { outline-color: var(--donate-page-ink); }
/* Quiet concentric linework replaces the angular default art; custom images retain their own layer. */
.donate-hero-art { background: var(--donate-hero-base); }
.donate-hero-art span { inset: auto; border: 1px solid var(--donate-hero-line); border-radius: 50%; clip-path: none !important; background: none !important; }
.donate-hero-art span:nth-child(1) { width: 740px; height: 740px; left: auto; right: -220px; top: -210px; opacity: .45; }
.donate-hero-art span:nth-child(2) { width: 620px; height: 620px; left: auto; right: -160px; top: -150px; opacity: .35; }
.donate-hero-art span:nth-child(3) { width: 500px; height: 500px; right: -100px; top: -90px; opacity: .25; }
.donate-hero:not(.has-custom-banner) { border-color: var(--donate-hero-line); }
.donate-hero h1 { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .donate-panel { padding: 24px 18px; }
  /* A preferred aspect ratio must not widen the grid item beyond its phone container. */
  .donate-hero.has-custom-banner { width: 100%; box-sizing: border-box; }
  .donate-panel form { gap: 24px; }
  .donate-form-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .donate-submit-row p { font-size: 13px; }
  .donate-supporter-logged-in { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; }
  .donate-supporter-logged-in #donate-supporter-avatar { width: 42px; height: 42px; }
  .donate-twitch-login { box-sizing: border-box; }
  .video-selection-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .donate-page *, .donate-page *::before { transition: none !important; }
}
/* Text styles share the same resolver as the dashboard's TextStyleControl. */
.donate-page .donate-panel,
.donate-page section.donate-page-description {
  font-family: var(--donate-body-font-family, var(--donate-font));
  font-size: var(--donate-body-size, 16px);
  font-weight: var(--donate-body-weight, 400);
  font-style: var(--donate-body-style, normal);
  text-shadow: var(--donate-body-shadow, none);
  -webkit-text-stroke: var(--donate-body-outline, 0);
  paint-order: stroke fill;
}
.donate-page .donate-panel :is(.donate-field, label, legend, strong, li, p, output, .donate-field span, input:not([type=range]), textarea, .quick-donation-amount) {
  font-family: inherit;
  font-size: var(--donate-body-size, 16px);
  font-weight: var(--donate-body-weight, 400);
  font-style: var(--donate-body-style, normal);
  text-shadow: var(--donate-body-shadow, none);
  -webkit-text-stroke: var(--donate-body-outline, 0);
  paint-order: stroke fill;
}
.donate-page .donate-panel :is(small, .video-preview-status, .donate-supporter-status, #donate-supporter-login-name, #message-counter) {
  font-family: inherit;
  font-size: calc(var(--donate-body-size, 16px) * .8125);
  font-weight: var(--donate-body-weight, 400);
  font-style: var(--donate-body-style, normal);
  text-shadow: var(--donate-body-shadow, none);
  -webkit-text-stroke: var(--donate-body-outline, 0);
  paint-order: stroke fill;
}
.donate-page .donate-submit-row button {
  font-family: var(--donate-button-font-family, var(--donate-font));
  font-size: min(var(--donate-button-size, 18px), clamp(16px, 5vw, 32px));
  font-weight: var(--donate-button-weight, 750);
  font-style: var(--donate-button-style, normal);
  text-shadow: var(--donate-button-shadow, none);
  -webkit-text-stroke: var(--donate-button-outline, 0);
  paint-order: stroke fill;
}
.donate-page .donate-field input::placeholder,
.donate-page .donate-field textarea::placeholder { font: inherit; }

/* Keep all four amounts visible on one row, including narrow screens and large text presets. */
.donate-page .donate-panel button.quick-donation-amount {
  padding-inline: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: min(var(--donate-body-size, 16px), clamp(12px, 3.2cqw, 32px));
}
