.donation-panel { max-width: 32rem; margin: 1.5rem auto; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--bs-border-color); border-radius: 1rem; color: var(--bs-body-color); background: var(--bs-body-bg); }
.donation-panel h2 { font-size: 1.5rem; margin: 0 0 1.25rem; }
.donation-panel form { display: grid; gap: .85rem; }
.donation-panel fieldset { margin: 0; min-width: 0; }
.donation-panel legend, .donation-amount-label { font-weight: 600; font-size: 1rem; }
.donation-period { display: grid; grid-template-columns: 1fr 1fr; border-radius: 2rem; background: var(--bs-tertiary-bg); }
.donation-period label { position: relative; }
.donation-period input { position: absolute; opacity: 0; }
.donation-period span { display: block; text-align: center; padding: .65rem .3rem; border-radius: 2rem; cursor: pointer; }
.donation-period input:checked + span { background: var(--bs-primary); color: white; }
.donation-period input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 3px; }
.donation-methods label { display: inline-block; margin: 0 .65rem .35rem 0; }
.donation-presets { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .4rem; }
.donation-presets button { border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .5rem .1rem; background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.donation-presets button[aria-pressed=true] { border-color: var(--bs-primary); color: var(--bs-primary); }
.donation-panel [role=status] { margin: 0; color: var(--bs-secondary-color); }
.donation-panel [role=status]:empty { display: none; }
.donation-panel > a, .donation-panel .donation-manage { display: block; margin-top: 1rem; }
.donation-panel [hidden] { display: none !important; }

.donation-board { display: grid; gap: 1rem; color: var(--bs-body-color); }
.donation-board :is(h1,h2,p) { margin: 0; }
.donation-heading,.donation-section { min-width: 0; background: var(--bs-body-bg); border-radius: .75rem; padding: clamp(1rem, 3vw, 1.5rem); }
.donation-back { color: var(--bs-secondary-color); text-decoration: none; font-size: .875rem; }
.donation-back:hover,.donation-table a:hover { color: var(--bs-link-color); text-decoration: underline; }
.donation-heading-title { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; }
.donation-heading-title img { flex: 0 0 auto; }
.donation-heading-title h1 { line-height: 1.15; }
.donation-section h2, .donation-history summary { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.donation-section { scroll-margin-top: 6rem; }
.donation-empty { color: var(--bs-secondary-color); padding-top: .8rem; }
.donation-currencies { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.donation-currencies a { text-decoration: none; padding: .35rem .7rem; border-radius: .45rem; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); font-size: .875rem; font-weight: 500; }
.donation-currencies a[aria-current],.donation-currencies a:hover { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.donation-table-wrap { overflow-x: auto; margin-top: 1rem; }
.donation-table { border-collapse: separate; border-spacing: 0; width: 100%; color: inherit; line-height: 1.4; }
.donation-table th,.donation-table td { text-align: left; padding: .65rem .8rem; }
.donation-table thead th { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); font-size: .8rem; font-weight: 500; }
.donation-table thead th:first-child { border-radius: .45rem 0 0 .45rem; }
.donation-table thead th:last-child { border-radius: 0 .45rem .45rem 0; }
.donation-table tbody tr + tr td { border-top: 1px solid var(--bs-border-color-translucent); }
.donation-table td:nth-child(2) { overflow-wrap: anywhere; }
.donation-table a { color: inherit; text-decoration: none; font-weight: 500; }
.donation-table :is(th,td):last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.donation-table td:last-child { font-weight: 600; }
.donation-table small { display: block; color: var(--bs-secondary-color); font-weight: 400; }
.donation-table .donation-place { width: 4.5rem; text-align: center; }
.donation-date { color: var(--bs-secondary-color); white-space: nowrap; font-variant-numeric: tabular-nums; }
.donation-rank { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.donation-table tr:nth-child(1) .donation-rank { color: #825308; background: #fff0c4; }
.donation-table tr:nth-child(2) .donation-rank { color: #43566a; background: #eaf0f6; }
.donation-table tr:nth-child(3) .donation-rank { color: #864828; background: #f9e7da; }
.donation-history summary { cursor: pointer; }
@media (max-width: 575px) {
    .donation-board { gap: .65rem; }
    .donation-table { font-size: .875rem; }
    .donation-table :is(th,td) { padding: .55rem .35rem; }
    .donation-table .donation-place { width: 3rem; }
    .donation-heading-title img { width: 40px; height: 40px; }
}
