:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: #0e1421;
  --line: #293448;
  --text: #edf3ff;
  --muted: #a6b3c9;
  --blue: #8ac8ff;
  --orange: #ff9e32;
  --purple: #b4a0ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 84% 18%, #54407718, transparent 40%); }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: white; }
button, input { font: inherit; }
button, a, input, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 4px;
}
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 5; background: var(--blue); color: var(--bg); padding: 12px; }
.skip:focus { top: 12px; }
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-size: 26px; font-weight: 750; letter-spacing: -1px; text-decoration: none; }
.brand span { color: var(--blue); }
.back-link { font-size: 12px; text-decoration: none; color: var(--muted); }
.back-link span { margin-left: 8px; color: var(--blue); }
.preview-note { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 8px 12px; border: 1px dashed #54456d; border-radius: 5px; color: #c4b8e1; font-size: 11px; background: #19142480; }
.preview-label { flex: none; font: 600 9px ui-monospace, monospace; letter-spacing: 1px; color: var(--purple); }
.support-hero { padding: 28px 0 32px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 24px; }
.eyebrow { color: var(--blue); font: 10px/1.6 ui-monospace, monospace; letter-spacing: 1.3px; margin: 0 0 10px; }
h1 { font-size: clamp(38px, 4vw, 54px); font-weight: 650; line-height: 1.08; letter-spacing: -2px; margin: 0; text-wrap: balance; }
h1 > span { color: var(--orange); }
.intro { font-size: 16px; line-height: 1.5; margin: 12px 0 0; }
.hero-description { font-size: 13px; color: var(--muted); margin: 0; }
.hero-footnote { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.pixel-river { height: 30px; display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--orange); }
.pixel-river > svg { flex: none; width: 25px; height: 25px; }
.pixel-river i { flex: none; width: 4px; height: 4px; background: var(--orange); box-shadow: 0 0 14px #ff9e3260; }
.pixel-river i:nth-of-type(2) { transform: translateY(-6px); opacity: .5; }
.pixel-river i:nth-of-type(3) { transform: translateY(6px); opacity: .8; }
.pixel-river i:nth-of-type(4) { transform: translateY(-4px); background: var(--purple); }
.pixel-river i:nth-of-type(5) { transform: translateY(4px); opacity: .5; }
.pixel-river i:nth-of-type(6) { background: var(--blue); }
.pixel-river > .river-end { color: var(--blue); }
.contribution-card { position: relative; padding: 22px; border: 1px solid #4b405b; border-radius: 10px; background: linear-gradient(145deg, #181525, #0e1421 60%); box-shadow: 0 14px 70px #0003; }
.contribution-card::before { position: absolute; content: ""; height: 2px; left: 22px; right: 22px; top: -1px; background: linear-gradient(90deg, var(--orange), var(--purple), var(--blue)); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h2 { font-size: 20px; line-height: 1.3; margin: 0; }
.draft-tag { color: var(--purple); border: 1px solid #53496e; padding: 3px 7px; border-radius: 3px; font: 9px/1.5 ui-monospace, monospace; letter-spacing: 1px; }
.card-intro { font-size: 12px; color: var(--muted); margin: 6px 0 20px; }
.contribution-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.7fr); gap: 28px; }
.contribution-options, .receiving-panel, .receiver-copy { min-width: 0; }
.receiving-panel { border-left: 1px solid var(--line); padding-left: 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
legend, .custom-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.rail-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rail-options label { position: relative; cursor: pointer; }
.rail-options input { position: absolute; top: 14px; left: 10px; accent-color: var(--purple); margin: 0; }
.rail-options span { display: block; border: 1px solid var(--line); padding: 8px 8px 8px 30px; border-radius: 5px; font-size: 13px; font-weight: 600; }
.rail-options small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.rail-options input:checked + span { border-color: #9a83d4; background: #b4a0ff0b; }
.rail-options input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.amount-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.amount-picker button { min-height: 44px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: #0b101b; font-size: 13px; cursor: pointer; }
.amount-picker button small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
.amount-picker button[aria-pressed=true] { border-color: #ca813c; background: #f7931a0b; color: #ffc07b; }
.amount-picker button:hover { border-color: var(--blue); }
.custom-label { display: block; }
.custom-amount { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: #0b101b; padding-right: 12px; }
.custom-amount input { width: 100%; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--text); padding: 8px 12px; border-radius: 5px; font-size: 16px; }
.custom-amount > span { font-size: 12px; color: var(--muted); }
.amount-error { font-size: 11px; line-height: 1.5; color: #ffc69e; margin: 6px 0 0; }
.amount-error:empty { margin: 0; }
.contribution-summary { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 14px; }
.contribution-summary > span { display: block; margin-bottom: 4px; font: 9px ui-monospace, monospace; color: var(--muted); letter-spacing: 1px; }
.contribution-summary p { display: inline; margin: 0; line-height: 1.3; }
.contribution-summary strong { font-size: 26px; font-weight: 620; letter-spacing: -.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contribution-summary p > span { color: var(--orange); font-size: 13px; }
.contribution-summary small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.receiver { min-width: 0; }
.receiver + .receiver { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.receiver[hidden] + .receiver { margin-top: 0; border-top: 0; padding-top: 0; }
.receiver h3 { font-size: 15px; margin: 0 0 6px; }
.receiver-hint { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.receiver-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 20px; align-items: start; }
.receiver-qr { display: block; width: 196px; max-width: 100%; height: auto; aspect-ratio: 1; background: #fff; border-radius: 4px; }
.address-label { display: block; font: 9px/1.6 ui-monospace, monospace; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.receiver-address { display: block; padding: 10px; background: #080d17; border: 1px solid var(--line); border-radius: 5px; overflow-wrap: anywhere; word-break: break-all; font: 12px/1.65 ui-monospace, monospace; user-select: all; }
.copy-address { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #bd792f; border-radius: 5px; background: #f7931a14; color: #ffc07b; font-size: 12px; cursor: pointer; margin-top: 10px; }
.copy-address:hover { background: #f7931a24; border-color: var(--orange); }
.copy-address:disabled { opacity: .6; cursor: wait; }
.copy-status { font-size: 11px; line-height: 1.5; min-height: 3em; color: var(--muted); margin: 6px 0 0; }
.payment-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.purpose-section { border-top: 1px solid var(--line); padding: 26px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 18px; }
h2 { font-size: 23px; line-height: 1.3; font-weight: 620; letter-spacing: -.6px; margin: 0; }
.section-heading > p { font-size: 12px; color: var(--muted); max-width: 300px; margin: 0; }
.purpose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.purpose-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #0e142199; }
.tile-number { font: 10px/1.6 ui-monospace, monospace; letter-spacing: 1px; color: var(--blue); }
.purpose-grid article:nth-child(2) .tile-number { color: var(--purple); }
.purpose-grid article:nth-child(3) .tile-number { color: var(--orange); }
h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 10px 0 8px; }
.purpose-grid p { font-size: 12px; color: var(--muted); margin: 0; }
.support-details { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 18px 0 28px; }
.support-details > div > p:last-child { font-size: 13px; color: var(--muted); max-width: 280px; }
.faq-list details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { font-size: 13px; min-height: 24px; cursor: pointer; color: var(--text); }
.faq-list p { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.closing-note { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px; margin-bottom: 24px; border: 1px solid #4e3823; border-radius: 7px; background: linear-gradient(100deg, #ff9e3206, transparent); }
.closing-note > svg { flex: none; color: var(--orange); }
.closing-note p { margin: 0; color: var(--muted); font-size: 12px; }
.closing-note strong { font-weight: 500; color: var(--text); }
footer.shell { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-block: 20px; font-size: 12px; color: var(--muted); }
footer p { margin: 0; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }

@media (max-width: 1000px) {
  .hero-copy { grid-template-columns: 1.2fr 1fr; gap: 24px; }
  .contribution-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contribution-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .75fr); gap: 24px; align-items: center; }
  .contribution-summary { margin: 0; border: 0; border-left: 1px solid var(--line); padding: 12px 0 12px 24px; }
  .receiving-panel { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .receiver-layout { grid-template-columns: 196px minmax(0, 1fr); }
  .support-details { gap: 28px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 64px; gap: 12px; }
  .brand { font-size: 23px; }
  .back-link { font-size: 11px; }
  .preview-note { align-items: start; gap: 10px; font-size: 10px; }
  .preview-label { font-size: 8px; line-height: 1.9; }
  .support-hero { padding: 22px 0 24px; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
  h1 { font-size: clamp(34px, 9vw, 46px); letter-spacing: -1.3px; text-wrap: initial; }
  .intro { font-size: 14px; margin-top: 8px; }
  .hero-description { font-size: 12px; }
  .pixel-river { display: none; }
  .hero-footnote { font-size: 10px; }
  .contribution-card { padding: 18px; }
  .card-heading h2 { font-size: 18px; }
  .draft-tag { font-size: 8px; }
  .card-intro { margin-bottom: 16px; }
  .contribution-options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contribution-summary { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .contribution-summary > span { display: inline; margin-right: 10px; }
  .contribution-summary strong { font-size: 23px; }
  .receiver-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .receiver-qr { width: 220px; margin-inline: auto; }
  .copy-status { min-height: 1.5em; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; margin-top: 10px; }
  h2 { font-size: 21px; }
  .purpose-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .purpose-grid article { padding: 16px; }
  .support-details { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px 0 24px; }
  .support-details > div > p:last-child { max-width: none; }
  .faq-list summary { min-height: 32px; }
  footer.shell { display: block; }
  footer nav { margin-top: 12px; gap: 12px 18px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .back-link { font-size: 10px; }
  .contribution-card { padding: 14px; }
  .card-heading { gap: 8px; }
  .card-heading h2 { font-size: 16px; }
  .contribution-summary > span { display: block; margin-bottom: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
