/* =========================
   СТОРІНКА ДОНАТУ
========================= */

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 540px));
    gap: 25px;
    justify-content: center;
}

/* банер зверху, трохи нижчий за саму картинку */
.mod-banner.full {
    aspect-ratio: 6 / 5;
    object-fit: cover;
    object-position: center 35%;
}

/* переливний колір префікса */
.prefix-shimmer {
    display: inline-block;
    font-weight: bold;

    background: linear-gradient(
        90deg,
        #FFEE00,
        #DD903A,
        #FFEE00
    );
    background-size: 200% 100%;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    animation: prefix-shimmer 3s linear infinite;
}

@keyframes prefix-shimmer {
    from { background-position: 0% 0; }
    to   { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .prefix-shimmer {
        animation: none;
    }
}

/* приклад префікса */
.prefix-demo {
    padding: 12px 14px;
    text-align: center;
    font-size: 17px;

    background: rgba(255, 238, 0, 0.04);
    border: 1px solid rgba(221, 144, 58, 0.25);
    border-radius: 10px;
}

.prefix-demo .nick {
    color: #b8c2ba;
}

/* пронумеровані правила: 1, 1.1, 1.2 (у два стовпці) */
.donate-rules {
    list-style: none;
    counter-reset: rule;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;

    padding: 0;
    margin: 0;
}

@media (max-width: 520px) {
    .donate-rules {
        grid-template-columns: minmax(0, 1fr);
    }
}

.donate-rules > li {
    counter-increment: rule;
    color: #e8eee9;
    font-size: 14px;
    font-weight: bold;
}

.donate-rules > li::before {
    content: counter(rule) ". ";
    color: #7cff9b;
}

.donate-rules ol {
    list-style: none;
    counter-reset: sub;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    margin: 6px 0 0;
}

.donate-rules ol li {
    counter-increment: sub;
    position: relative;
    padding-left: 32px;

    color: #aeb8b0;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
}

.donate-rules ol li::before {
    content: counter(rule) "." counter(sub);
    position: absolute;
    left: 0;
    color: #68736b;
}

.donate-rules code {
    color: #7cff9b;
    font-family: monospace;
}
/* ширша сторінка, щоб дві картки стали поруч */
.rules-section.donate-main {
    max-width: 1200px;
}

/* банер з розмитим фоном: напис видно повністю */
.banner-fit {
    position: relative;
    overflow: hidden;
    aspect-ratio: 6 / 5;

    display: flex;
    align-items: center;

    background: #080c09;
    border-bottom: 1px solid rgba(124, 255, 155, 0.12);
}

.banner-fit::before {
    content: "";
    position: absolute;
    inset: -30px;

    background-image: var(--img);
    background-size: cover;
    background-position: center;

    filter: blur(16px) brightness(0.6);
}

.banner-fit img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

/* фраза з переливом (кольори задаються в style) */
.phrase-shimmer {
    display: inline-block;
    font-weight: bold;

    background: linear-gradient(
        90deg,
        var(--c1, #FFEE00),
        var(--c2, #DD903A),
        var(--c1, #FFEE00)
    );
    background-size: 200% 100%;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    animation: prefix-shimmer 3s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .phrase-shimmer {
        animation: none;
    }
}

/* [+] перед ніком */
.join-plus {
    color: #8a948c;
}

.join-plus b {
    color: #7cff9b;
}
.bracket {
    color: white;
}