/* Dreamy space style with subtle animated dots */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(1200px 800px at 15% 10%, #1a2133 0%, rgba(26, 33, 51, 0) 55%),
        radial-gradient(900px 700px at 85% 15%, #1d1830 0%, rgba(29, 24, 48, 0) 58%),
        #090b12;
    color: #dde5ff;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
}

.panel {
    width: 100%;
    max-width: 32rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image: radial-gradient(circle at center, rgba(206, 220, 255, 0.1) 0.75px, transparent 1.05px);
    background-size: 24px 24px;
    background-position: 0 0;
    opacity: 0.42;
}

#sparkLayer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mix-blend-mode: screen;
}

.spark-dot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    transform: translate(-50%, -50%) scale(0.6);
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(235, 245, 255, 0.8) 0%, rgba(235, 245, 255, 0.22) 36%, rgba(235, 245, 255, 0) 75%);
    opacity: 0;
    filter: blur(0.25px);
    animation: sparkle var(--dur) ease-in-out forwards;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.45);
    }
    35% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(0.82);
    }
    70% {
        opacity: 0.22;
        transform: translate(-50%, -50%) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.55);
    }
}

.site-header {
    margin-bottom: 1.75rem;
}

.site-domain {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8f98bc;
}

h1 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f2f5ff;
    letter-spacing: -0.02em;
}

.lede {
    margin: 0;
    color: #b4bdd8;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.lede-first {
    margin-bottom: 1rem;
}

.counter-block {
    margin-bottom: 1.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid #2e3758;
    border-radius: 10px;
    background: rgba(16, 20, 35, 0.66);
    backdrop-filter: blur(2px);
}

.counter {
    margin: 0;
    font-size: 0.95rem;
    color: #b9c8ff;
    font-variant-numeric: tabular-nums;
}

.donation-block {
    margin-bottom: 0;
}

.donation-block .label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8f98bc;
}

.address-box {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: rgba(12, 16, 28, 0.8);
    border: 1px solid #2a3250;
    color: #e9eeff;
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
    text-align: center;
}

.copy-btn {
    padding: 0.5rem 1.125rem;
    border: 1px solid #58608a;
    border-radius: 10px;
    background: #2f3f72;
    color: #edf2ff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
    background: #3a4c86;
    border-color: #6772a3;
    color: #ffffff;
}

.copy-btn:focus {
    outline: 2px solid #8da0e6;
    outline-offset: 2px;
}

.copy-btn:focus:not(:focus-visible) {
    outline: none;
}

.copy-btn:focus-visible {
    outline: 2px solid #8da0e6;
    outline-offset: 2px;
}

.copy-btn.is-copied {
    background: #1f2a4b;
    border-color: #5d6db0;
    color: #cdd8ff;
}

@media (prefers-reduced-motion: reduce) {
    #sparkLayer {
        display: none;
    }
}
