:root {
    color-scheme: dark;
    --bg: #0e0e0e;
    --bg-elevated: #141414;
    --panel: #181818;
    --panel-2: #1f1f1f;
    --panel-hover: #262626;
    --stage-bg: radial-gradient(circle at center, #262626 0%, #121212 85%);
    --line: #2e2e2e;
    --line-strong: #3f3f3f;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --accent: #ffd16b;
    --accent-hover: #ffe4a8;
    --accent-blue: #53dff1;
    --violet: #53dff1;
    --mint: #10b981;
}
html[data-startup="arena"] .site-shell:not(.router-ready)>:not(#startup-shield):not(noscript) { visibility: hidden; }
.site-shell .page { animation: none; min-width: 0; }
.site-shell #main:focus { outline: none; }
.site-shell #page-name { color: var(--text); }
.site-shell .mode-toggle { min-height: 34px; background: var(--panel-2); border-color: var(--line-strong); color: var(--text); }
.site-shell .mode-toggle:hover { background: var(--panel-hover); border-color: var(--line-strong); color: var(--text); }
.site-shell .state-pill { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.site-shell .state-pill[data-state=running] { color: #8be1ba; border-color: #3d7662; background: #172e29; }
.site-shell .state-pill[data-state=paused] { color: #ffd16b; border-color: #83643b; background: #2e241b; }
.site-planned { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.site-shell .page-heading { align-items: center; gap: 24px; margin: 0 0 32px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); position: relative; }
.site-shell .page-heading::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 64px; height: 3px; background: var(--accent); }
.site-shell .page-heading h1 { font: 800 clamp(28px, 3.3vw, 44px)/1.17 var(--font-heading); letter-spacing: -1.4px; color: var(--text); margin: 0; }
.site-shell .page-heading p:not(.eyebrow) { max-width: 520px; margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.site-shell .eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 2px; margin: 0 0 12px; }
.site-shell .page-heading.compact { padding-top: 8px; margin-bottom: 24px; }
.site-shell .panel, .site-shell .controls-card, .site-shell .play-session-card { background: var(--panel); border-color: var(--line); border-radius: 6px; box-shadow: 0 9px 30px rgba(0,0,0,0.3); }
.site-shell .panel { padding: clamp(20px, 2.4vw, 32px); }
.site-shell .panel h2 { color: var(--text); font: 700 19px/1.4 var(--font-heading); margin-top: 0; }
.site-shell .panel p { color: var(--muted); line-height: 1.85; }
.site-shell .panel a:not(.button), .site-shell .edit-link, .site-shell .hud-config-link { color: var(--accent); }
.site-shell .button { min-height: 44px; border-radius: 6px; font-size: 12px; padding: 12px 20px; transition: background .16s, border-color .16s, color .16s; white-space: normal; text-align: center; }
.site-shell .button.primary { color: #17110a; background: var(--accent); border-color: var(--accent); box-shadow: 0 3px 0 #9a6b37; }
.site-shell .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.site-shell .button.secondary, .site-shell .button.ghost { color: var(--text); background: var(--panel-2); border-color: var(--line-strong); }
.site-shell .button.secondary:hover, .site-shell .button.ghost:hover { background: var(--panel-hover); border-color: var(--accent-blue); color: var(--text); }
.site-shell input[type=search]:not(:where(.app-search input)), .site-shell select { color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 6px; min-height: 44px; }
.site-shell input[type=checkbox], .site-shell input[type=range] { accent-color: var(--accent); }
.site-shell .panel-heading { gap: 16px; flex-wrap: wrap; }
.site-shell .inline-actions { flex-wrap: wrap; gap: 10px; }
.site-shell .two-columns { align-items: start; }
.site-shell .two-columns > *, .site-shell .bindings-grid > *, .site-shell .settings-layout > * { min-width: 0; }
.site-shell .binding-player h3 { color: var(--accent); }
.site-shell .binding-player:nth-child(2) h3 { color: #53dff1; }
.site-shell .binding-row { color: var(--text); border-color: var(--line); min-height: 54px; gap: 16px; }
.site-shell .binding-button { background: var(--panel-2); color: var(--text); border-color: var(--line-strong); min-height: 40px; min-width: 74px; }
.site-shell .binding-button.capturing { color: #17110a; background: var(--accent); border-color: var(--accent); }
.site-shell kbd { color: var(--text); background: var(--panel-2); border-color: var(--line-strong); }
.site-shell .shortcut-list > div { border-color: var(--line); gap: 16px; }
.site-shell .shortcut-list dt { color: var(--text); }
.site-shell .shortcut-list dd { color: var(--muted); overflow-wrap: anywhere; }
.site-shell .settings-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: none; gap: 24px; align-items: start; }
.site-shell .setting-row { gap: 24px; border-color: var(--line); }
.site-shell .setting-row > div:first-child { min-width: 0; }
.site-shell .setting-row p { font-size: 12px; color: var(--muted); }
.site-shell .setting-row input[type=checkbox] { min-width: 44px; width: 44px; height: 28px; flex: 0 0 auto; background: var(--panel-2); border-color: var(--line-strong); }
.site-shell .setting-row input[type=checkbox]::before { width: 18px; height: 18px; top: 4px; left: 4px; background: var(--muted); }
.site-shell .setting-row input[type=checkbox]:checked { background: #604723; border-color: var(--accent); }
.site-shell .setting-row input[type=checkbox]:checked::before { transform: translateX(16px); background: var(--accent); }
.site-shell .range-control { max-width: 100%; width: 160px; }
.site-shell .range-control input { min-width: 0; min-height: 44px; }
.site-shell .roster-tools { margin-bottom: 28px; }
.site-shell .roster-tools label { color: var(--muted); }
.site-shell .directory-sidebar { position: sticky; top: 24px; background: var(--panel); border-color: var(--line); border-radius: 6px; padding: 20px 12px; }
.site-shell .directory-sidebar h2 { color: var(--muted); font-size: 11px; }
.site-shell .series-filter { color: var(--text); min-height: 44px; }
.site-shell .series-filter:hover { color: var(--accent); background: var(--panel-hover); }
.site-shell .series-filter[aria-pressed=true] { color: var(--accent); border-color: #88623c; background: rgba(255,159,67,.15); }
.site-shell .directory-card { background: var(--panel); border-color: var(--line); border-radius: 6px; box-shadow: none; }
.site-shell .directory-portrait { background: var(--stage-bg); border-color: var(--line); }
.site-shell .directory-series { color: var(--accent); }
.site-shell .directory-card h3 { color: var(--text); }
.site-shell .directory-result-heading p, .site-shell .directory-pagination, .site-shell .directory-empty { color: var(--muted); }
.site-shell .directory-forms summary, .site-shell .roster-guide summary { color: var(--accent); }
.site-shell .directory-card > .directory-note { background: var(--panel-2); border-color: #83643b; color: #ffdc93; }
.site-shell .game-surface { border-color: var(--line-strong); border-radius: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.6); background: #0c0c0c; }
.site-shell .game-toolbar { background: var(--bg-elevated); border-color: var(--line); color: var(--text); }
.site-shell .icon-button { color: var(--text); background: var(--panel-2); border-color: var(--line-strong); }
.site-shell .icon-button:hover:not(:disabled) { background: var(--panel-hover); border-color: var(--accent); color: var(--text); }
.site-shell .game-action-btn { color: var(--text); background: var(--panel-2); border-color: var(--line-strong); border-radius: 6px; min-height: 44px; }
.site-shell .game-action-btn:hover:not(:disabled) { color: var(--text); background: var(--panel-hover); border-color: var(--line-strong); box-shadow: none; }
.site-shell .game-action-btn.stop-btn { color: #ffb5be; border-color: #7c424d; }
.site-shell .game-action-btn.stop-btn:hover:not(:disabled) { color: #ffdae0; background: #3f2027; border-color: #d2899c; }
.site-shell .game-action-btn.muted { color: var(--muted); }
.site-shell .card-title, .site-shell .hud-heading h3 { color: var(--accent); }
.site-shell .keybind-row { background: var(--panel-2); }
.site-shell .key-caps kbd, .site-shell .hud-key { background: var(--panel-2); color: var(--text); border-color: var(--line-strong); }
.site-shell .key-caps.ulti kbd { background: #49351f; color: #ffe0a1; border-color: #88623c; }
.site-shell .input-hud, .site-shell .virtual-panel, .site-shell .log-panel { background: var(--panel); border-color: var(--line); border-radius: 6px; }
.site-shell .hud-player { color: var(--accent); }
.site-shell .hud-player.p2 { color: #53dff1; }
.site-shell .hud-key.pressed { background: var(--accent); color: #141414; border-color: #ffe7ab; }
.site-shell .hud-key.p2.pressed { background: #53dff1; color: #141414; border-color: #a5f3fc; }
.site-shell .hud-toggle-btn { color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }
.site-shell .hud-toggle-btn:hover { background: var(--panel-hover); border-color: var(--line-strong); }
.site-shell .footer-ver { color: #ffdb8f; background: #2b2219; border-color: #775236; border-radius: 3px; }
.site-shell .online-panel { max-width: 1000px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); text-align: center; background: radial-gradient(ellipse at top, rgba(255,159,67,.12), transparent 75%), var(--panel); }
.site-shell .online-panel > p { max-width: 620px; margin-inline: auto; color: var(--muted); }
.site-shell .online-access-loading { margin-top: 24px; }
.site-shell .online-access-loading[hidden] { display: none; }
.site-shell .online-access-progress { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; color: var(--text); }
.site-shell .online-access-progress .online-quick-spinner { flex: none; }
.site-shell .online-access-skeleton { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; text-align: left; }
.site-shell .online-access-skeleton > div { display: grid; justify-items: start; gap: 10px; padding: 22px; min-width: 0; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 6px; }
.site-shell .online-access-skeleton > div:first-child { grid-column: 1 / -1; border-color: rgba(255,159,67,.45); border-radius: 16px; }
.site-shell .online-access-skeleton span { width: min(42%, 200px); height: .9rem; border-radius: 4px; background: var(--panel-hover); animation: online-access-pulse 1.5s ease-in-out infinite alternate; }
.site-shell .online-access-skeleton span:nth-child(2) { width: min(86%, 360px); height: .7rem; }
.site-shell .online-access-skeleton span:last-child { width: min(38%, 140px); height: 32px; margin-top: 4px; }
@keyframes online-access-pulse { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .site-shell .online-access-skeleton span, .site-shell .online-access-progress .online-quick-spinner { animation: none; }
}
.site-shell .online-room-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; text-align: left; }
.site-shell .online-room-actions[hidden] { display: none; }
.site-shell .online-room-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 6px; }
.site-shell .online-room-choice h3 { margin: 0; font-size: 1.15rem; }
.site-shell .online-room-choice p { margin: 0; color: var(--muted); }
.site-shell .online-room-choice .button { margin-top: auto; }
.site-shell #online-join-code { box-sizing: border-box; width: min(100%, 14rem); padding: 10px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; font: 700 1.5rem/1.2 ui-monospace, monospace; letter-spacing: .35em; text-align: center; }
.site-shell #online-join-error { color: #ffb4a8; }
.site-shell .roadmap-steps { justify-content: center; margin-block: 28px; }
.site-shell .roadmap-step { border-radius: 3px; color: var(--text); background: var(--panel-2); border-color: var(--line-strong); line-height: 1.6; }
.site-shell .roadmap-step.done { color: #b1dfc7; background: #192b26; border-color: #3d6557; }
.site-shell .roadmap-step.active { color: #ffdb8f; background: #2e2319; border-color: #80603a; }
.site-shell .site-footer { position: relative; z-index: 21; background: var(--bg-elevated); border-top: 1px solid var(--line); padding: 6px clamp(20px, 4vw, 64px); gap: 12px; flex-wrap: wrap; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-shell .footer-brand { color: var(--text); }
.site-shell .footer-center, .site-shell .footer-status { display: none; }
.site-shell .footer-right, .site-shell .footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-shell .footer-link { color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; }
.site-shell .footer-link:hover, .site-shell .footer-link.active { color: var(--accent); }
.site-shell .toast { background: var(--panel); color: var(--text); border-color: #ff9f43; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

@media (min-width: 1201px) { .site-shell.clean-ui .play-layout { grid-template-columns: minmax(0, 1fr); } .site-shell.clean-ui .play-aside { display: none; } }
@media (max-width: 900px) {
    .site-shell .settings-layout { grid-template-columns: 1fr; }
    .site-shell .settings-layout .panel { margin-bottom: 0; }
}
@media (max-width: 700px) {
    .site-shell .page-heading { align-items: flex-start; flex-direction: column; padding: 20px 0 24px; gap: 16px; }
    .site-shell .page-heading h1 { font-size: 30px; letter-spacing: -1px; }
    .site-shell .directory-sidebar { position: static; padding: 16px 12px; }
    .site-shell .mode-toggle { font-size: 10px; padding: 6px 8px; }
    .site-shell .state-pill { font-size: 10px; }
    .site-shell .panel-heading { align-items: flex-start; }
    .site-shell .shortcut-list > div { flex-wrap: wrap; }
    .site-shell .shortcut-list dd { flex: 1 1 180px; margin: 0; }
}
@media (max-width: 480px) {
    .site-shell .setting-row { flex-wrap: wrap; gap: 12px; }
    .site-shell .setting-row > div:first-child { flex: 1 1 190px; }
    .site-shell .range-control { width: 100%; }
    .site-shell .directory-grid { gap: 12px; }
    .site-shell .directory-portrait { height: 140px; padding: 18px; }
    .site-shell .roster-tools > div { flex: 1 1 100%; }
    .site-shell .roster-tools .roster-availability { line-height: 1.7; }
    .site-shell .panel { padding: 20px 16px; }
    .site-shell .site-footer { padding: 5px 16px; gap: 4px; }
    .site-shell .footer-left { flex-wrap: wrap; }
    .site-shell .footer-right, .site-shell .footer-nav { gap: 18px; }
    .site-shell .p2-note { white-space: normal; }
    .site-shell .under-game { gap: 8px; }
    .site-shell .hud-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .site-shell .hud-heading-actions { width: 100%; justify-content: space-between; }
    .site-shell .hud-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
    .site-shell .hud-player { grid-column: 1 / -1; }
    .site-shell .hud-key { min-width: 0; }
    .site-shell .hud-key:nth-of-type(5) { margin-left: 0; }
    .site-shell .game-action-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .site-shell *, .site-shell *::before, .site-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root .published-announcements { color:var(--text,#f2f2f2); background:var(--panel,#181818); border:1px solid var(--line,#2e2e2e); border-radius:8px; padding:20px; width:min(680px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; }
.published-announcements::backdrop { background:rgba(0,0,0,.75); }
.published-announcements header { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.published-announcements h2 { font-size:24px; margin:0; }
.published-announcements article { border-top:1px solid var(--line,#2e2e2e); padding:16px 0; }
.published-announcements h3 { font-size:18px; }
.published-announcements .announcement-meta { color:var(--muted,#a3a3a3); font-size:13px; }
.published-announcements .announcement-body { white-space:pre-wrap; overflow-wrap:anywhere; }
.published-announcements button { color:inherit; background:var(--panel-2,#1f1f1f); border:1px solid var(--line,#2e2e2e); border-radius:6px; padding:8px 12px; }
.footer-nav button.footer-link { background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; }
.sidebar-announcements { display:block; margin:12px 16px; padding:12px; background:var(--panel-2,#1f1f1f); color:var(--text,#f2f2f2); border:1px solid var(--line,#2e2e2e); border-radius:6px; text-align:left; cursor:pointer; }
.site-shell .online-access-note { max-width: 620px; margin: 24px auto 0; padding: 14px 18px; border: 1px solid rgba(255,159,67,.45); border-radius: 12px; background: rgba(255,159,67,.1); color: var(--text, inherit); }
.site-shell .online-access-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.site-shell .online-access-actions:has(:not([hidden])) { margin-top: 12px; }
.site-shell #online-quick-slot { margin-top: 24px; text-align: left; }
.site-shell .online-quick { padding: 20px; border-radius: 16px; border: 1px solid rgba(255,159,67,.45); background: linear-gradient(135deg, rgba(255,159,67,.14), rgba(255,159,67,.03)); }
.site-shell .online-quick-head { display: flex; align-items: center; gap: 10px; }
.site-shell .online-quick-head h3 { margin: 0; }
.site-shell .online-beta { padding: 2px 8px; border-radius: 999px; background: #ff9f43; color: #1b1208; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.site-shell .online-quick-hint { margin: 6px 0 0; color: var(--muted, #b9b9c6); }
.site-shell .online-quick-counts { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 800; color: #ffd08a; }
.site-shell .online-quick-counts[hidden] { display: none; }
.site-shell .online-quick-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: online-quick-pulse 2s ease-out infinite; }
@keyframes online-quick-pulse { 70% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .site-shell .online-quick-dot { animation: none; } }
.site-shell .online-quick-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.site-shell .online-quick-spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,159,67,.25); border-top-color: #ff9f43; animation: online-quick-spin .8s linear infinite; }
@keyframes online-quick-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .site-shell .online-quick-spinner { animation-duration: 3s; } }
.site-shell .online-quick-timer { font: 800 15px/1 'JetBrains Mono', Consolas, monospace; color: #ffd08a; }
.site-shell .online-quick-note { flex-basis: 100%; color: var(--muted, #b9b9c6); }
.site-shell .online-quick-actions { display: flex; gap: 10px; margin-top: 14px; }
.site-shell .online-quick[data-quick-match="matched"] { border-color: rgba(74,222,128,.6); background: linear-gradient(135deg, rgba(74,222,128,.16), rgba(74,222,128,.03)); }
.site-shell .online-quick[data-quick-match="matched"] .online-quick-spinner { border-top-color: #4ade80; }

/* Donate page */
.site-shell .donate-page .page-heading { margin-bottom: 24px; }
.site-shell .donate-page [data-donate-subtitle] { max-width: 680px; white-space: pre-line; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.site-shell .donate-layout { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(300px, .92fr); gap: 20px; align-items: stretch; }
.site-shell .donate-hero-card,
.site-shell .donate-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #141518 0%, #101114 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
}
.site-shell .donate-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 520px;
    padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 209, 107, .12) 0%, rgba(255, 209, 107, .03) 34%, transparent 64%),
        radial-gradient(circle at 18% 92%, rgba(255, 196, 84, .1) 0%, transparent 45%),
        radial-gradient(circle at 86% 90%, rgba(255, 196, 84, .09) 0%, transparent 46%),
        linear-gradient(180deg, #131417 0%, #0f1013 100%);
}
.site-shell .donate-hero-card::before,
.site-shell .donate-hero-card::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 209, 107, .08);
}
.site-shell .donate-hero-card::before {
    width: 440px;
    height: 440px;
    left: -130px;
    bottom: -190px;
}
.site-shell .donate-hero-card::after {
    width: 390px;
    height: 390px;
    right: -130px;
    bottom: -170px;
}
.site-shell .donate-qr-showcase {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}
.site-shell .donate-qr-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.site-shell .donate-qr-tab {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s, border-color .16s, color .16s;
}
.site-shell .donate-qr-tab:hover { color: var(--text); border-color: rgba(255, 209, 107, .35); }
.site-shell .donate-qr-tab.is-active {
    background: rgba(255, 209, 107, .14);
    border-color: rgba(255, 209, 107, .55);
    color: var(--accent);
}
.site-shell .donate-qr-frame {
    padding: 16px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    cursor: zoom-in;
    box-shadow: 0 0 46px rgba(255, 209, 107, .24), 0 18px 40px rgba(0, 0, 0, .55);
    transition: transform .18s ease, box-shadow .18s ease;
}
.site-shell .donate-qr-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 56px rgba(255, 209, 107, .34), 0 22px 46px rgba(0, 0, 0, .6);
}
.site-shell .donate-qr-frame img {
    display: block;
    width: min(296px, 68vw);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
}
.site-shell .donate-scan-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 107, .48);
    background: linear-gradient(180deg, rgba(255, 209, 107, .12), rgba(255, 209, 107, .04));
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255, 209, 107, .12);
    transition: background .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.site-shell .donate-scan-pill:hover {
    background: linear-gradient(180deg, rgba(255, 209, 107, .2), rgba(255, 209, 107, .08));
    border-color: rgba(255, 209, 107, .75);
    box-shadow: 0 0 28px rgba(255, 209, 107, .22);
    transform: translateY(-1px);
}
.site-shell .donate-scan-icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.site-shell .donate-accounts-strip,
.site-shell .donate-links-strip {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-shell .donate-section-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.site-shell .donate-account-list { display: flex; flex-direction: column; gap: 10px; }
.site-shell .donate-account {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
}
.site-shell .donate-bank { display: block; color: var(--accent); font-size: 13px; }
.site-shell .donate-number-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.site-shell .donate-number { font: 800 1.08rem/1.25 'JetBrains Mono', Consolas, monospace; letter-spacing: .04em; user-select: all; color: var(--text); }
.site-shell .donate-copy { padding: 5px 12px; min-height: 32px; font-size: 12px; border-radius: 8px; }
.site-shell .donate-holder,
.site-shell .donate-note { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.site-shell .donate-link-list { display: flex; flex-wrap: wrap; gap: 10px; }
.site-shell .donate-empty-note { position: relative; z-index: 1; margin: 0; color: var(--muted); }

.site-shell .donate-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.site-shell .donate-card { padding: 18px 20px; }
.site-shell .donate-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    background: rgba(255, 209, 107, .09);
    border: 1px solid rgba(255, 209, 107, .22);
}
.site-shell .donate-icon-box svg { width: 22px; height: 22px; }
.site-shell .donate-icon-box.small { width: 34px; height: 34px; border-radius: 10px; }
.site-shell .donate-icon-box.small svg { width: 17px; height: 17px; }

.site-shell .donate-total-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background:
        radial-gradient(circle at 92% 95%, rgba(255, 209, 107, .18) 0%, transparent 52%),
        linear-gradient(180deg, #15161a 0%, #101114 100%);
}
.site-shell .donate-total-body { min-width: 0; }
.site-shell .donate-card-label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.site-shell .donate-total-value {
    margin: 4px 0 0;
    font: 800 clamp(22px, 2.2vw, 28px)/1.15 var(--font-heading);
    letter-spacing: -.02em;
    color: var(--accent);
}
.site-shell .donate-vnd { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }

.site-shell .donate-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.site-shell .donate-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.site-shell .donate-card-title {
    margin: 0;
    font: 700 15px/1.3 var(--font-heading);
    color: var(--text);
}
.site-shell .donate-goal-pct {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
}
.site-shell .donate-goal-amounts {
    margin: 14px 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: 15px;
}
.site-shell .donate-goal-current { font-weight: 800; font-size: 16px; color: var(--accent); }
.site-shell .donate-goal-sep,
.site-shell .donate-goal-target { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.site-shell .donate-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #23252b;
    overflow: hidden;
}
.site-shell .donate-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e5a938 0%, #ffd875 100%);
    transition: width .35s ease;
}

.site-shell .donate-supporters-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.site-shell .donate-supporters-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.site-shell .donate-supporter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.site-shell .donate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1.5px solid rgba(255, 255, 255, .18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.site-shell .donate-supporter-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.site-shell .donate-supporter-name {
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-shell .donate-supporter-amount {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.3;
}
.site-shell .donate-supporter-money { color: var(--accent); font-weight: 700; }
.site-shell .donate-supporter-note {
    font-size: 11.5px;
    color: #8b8f99;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-shell .donate-supporter-time {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
    font-size: 11.5px;
    color: #7e838e;
    white-space: nowrap;
}
.site-shell .donate-supporters-empty {
    margin: 18px 0 4px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    padding: 18px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    border: 1px dashed rgba(255, 255, 255, .08);
}
.site-shell .donate-more-btn {
    margin-top: 16px;
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s, border-color .16s;
}
.site-shell .donate-more-btn:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 209, 107, .3);
}
.site-shell .donate-more-icon { width: 15px; height: 15px; color: var(--muted); }

.site-shell .donate-zoom {
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    max-width: min(92vw, 480px);
    max-height: 92dvh;
    overflow: visible;
}
.site-shell .donate-zoom::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); }
.site-shell .donate-zoom-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: #16171b;
    border: 1px solid rgba(255, 209, 107, .28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .75);
}
.site-shell .donate-zoom-box img {
    display: block;
    width: min(76vw, 400px);
    max-height: min(68dvh, 420px);
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
}
.site-shell .donate-zoom-label { margin: 0; font-weight: 700; color: var(--accent); font-size: 14px; }
.site-shell .donate-zoom-close { min-height: 36px; padding: 6px 18px; }

@media (max-width: 960px) {
    .site-shell .donate-layout { grid-template-columns: 1fr; }
    .site-shell .donate-hero-card { min-height: 0; padding: 28px 20px; }
}
@media (max-width: 480px) {
    .site-shell .donate-card { padding: 16px; }
    .site-shell .donate-qr-frame { padding: 12px; border-radius: 16px; }
    .site-shell .donate-qr-frame img { width: min(240px, 74vw); }
    .site-shell .donate-scan-pill { width: 100%; }
}
.online-update-dialog {
    width: min(30rem, calc(100% - 2rem));
    padding: 24px;
    color: var(--text, #f2f2f2);
    background: #181818;
    border: 1px solid #383838;
    border-radius: 10px;
}
.online-update-dialog::backdrop { background: #000b; }
.online-update-dialog h2 { margin: 0; font-size: 1.25rem; }
.online-update-dialog p { margin: 12px 0 20px; color: var(--muted, #a3a3a3); }
