:root {
    color-scheme: dark;
    font-family: "Trebuchet MS", Arial, sans-serif;
    background: #171717;
    color: #f4f8ff;
    --accent: #72baff;
    --muted: #c3c9d2;
    --display-font: "Arial Black", "Franklin Gothic Heavy", sans-serif;
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --gradient-text: linear-gradient(90deg, #ffffff 0%, #72baff 50%, #ffffff 100%);
    --hero-background:
        linear-gradient(180deg, rgb(5 10 18 / 32%), rgb(5 10 18 / 76%)),
        url("assets/background-s7.png") center / cover no-repeat;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    height: 100%;
    min-width: 320px;
    margin: 0;
    overflow: hidden;
}

.start {
    display: grid;
    height: 100vh;
    height: 100svh;
    place-items: center;
    overflow: hidden;
    background: var(--hero-background), #171717;
}

.stage-content {
    padding: 1.5rem;
    text-align: center;
}

.logo {
    display: block;
    width: clamp(5rem, 11vw, 8rem);
    max-height: 5rem;
    margin: 0 auto 1.25rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgb(0 0 0 / 45%));
}

.stage-content h1,
.stage-content > p:not(.description),
.dono-header h1 {
    background: var(--gradient-text);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stage-content h1,
.dono-header h1 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.stage-content p {
    margin: 0.25rem 0 0;
    font-family: var(--display-font);
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stage-content .description {
    margin: 1rem 0 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
}

.stage-content .error-message {
    margin: 1rem 0 0;
    font-size: 1.5rem;
    line-height: 1.5;
    text-transform: none;
}

.stage-content > p {
    animation: fade-in 1s ease 0.6s backwards;
}

.stage-content > p + p {
    animation-delay: 0.8s;
}

.main-buttons > *,
.download-buttons > * {
    --tilt: rotateX(18deg);
    animation: card-in 1.1s var(--ease-soft) 0.9s backwards;
}

.main-buttons > :nth-child(2),
.download-buttons > :nth-child(2) {
    animation-delay: 1s;
}

.download-buttons > :nth-child(3) {
    animation-delay: 1.1s;
}

.main-buttons,
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.main-buttons {
    column-gap: 2rem;
}

@media (min-width: 640px) {
    .main-buttons {
        translate: -1rem 0;
    }
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 48px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.main-button span {
    font-family: var(--display-font);
    font-weight: 900;
    text-transform: uppercase;
}

.download-button {
    padding: 1rem 1.65rem;
    border: 1px solid rgb(114 186 255 / 65%);
    border-radius: 12px;
    background: rgb(22 136 201 / 18%);
    transition: background-color 180ms ease, border-color 180ms ease;
}

.download-button:hover,
.download-button:focus-visible {
    border-color: var(--accent);
    background: rgb(22 136 201 / 48%);
}

.download-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.download-buttons .main-button {
    gap: 0.65rem;
    padding: 0.9rem 1rem;
}

.safety {
    margin-top: 1rem;
    animation: fade-in 1s ease 1.4s backwards;
}

.circle-button {
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.85rem 2.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: #06182a;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    animation: fade-in 1s ease 0.9s backwards;
    transition: filter 180ms ease;
}

.circle-button:hover,
.circle-button:focus-visible {
    filter: brightness(0.92);
}

.circle-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.discord-button {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 35%);
}

.discord-button:hover > span,
.discord-button:focus-visible > span {
    color: var(--accent);
}

.bottom-bar {
    position: fixed;
    z-index: 11;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: fit-content;
    min-height: 36px;
    gap: 1.5rem;
    margin-inline: auto;
    padding: 0.5rem 1rem;
    --tilt: rotateX(18deg);
    animation: card-in 1.1s var(--ease-soft) 1.2s backwards;
}

.bottom-bar a,
.safety a {
    color: #b7b7ad;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 180ms ease;
}

.bottom-bar a:hover,
.bottom-bar a:focus-visible,
.safety a:hover,
.safety a:focus-visible {
    color: #fff;
}

.bottom-bar a:focus-visible,
.safety a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.platform-icon,
.discord-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    object-fit: contain;
}

@property --sweep {
    syntax: "<angle>";
    inherits: false;
    initial-value: 360deg;
}

@property --beam {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@property --line {
    syntax: "<color>";
    inherits: true;
    initial-value: rgb(255 255 255 / 10%);
}

.donation-layout {
    height: auto;
    min-height: 100%;
    overflow: hidden auto;
    background: var(--hero-background), #171717;
    background-attachment: scroll, fixed;
}

body::after {
    position: fixed;
    inset: -50%;
    z-index: 10;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    content: "";
    opacity: 0.05;
    pointer-events: none;
    animation: grain 1s steps(1) infinite;
}

.donation-page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 44svh 1.5rem 1.5rem;
}

.dono-header {
    position: absolute;
    inset: 0;
    display: grid;
    height: 100vh;
    height: 100svh;
    place-content: center;
    padding: 1.5rem;
    overflow: hidden;
    text-align: center;
    animation: header-lift 1.2s var(--ease-soft) 1.1s both;
}

.dono-header .logo,
.stage-content .logo {
    animation: emblem-in 1.2s var(--ease-soft) 0.1s backwards;
}

.dono-header h1,
.stage-content h1 {
    animation: title-in 1.3s var(--ease-soft) 0.3s backwards;
}

.dono-header p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.5;
    animation: fade-in 1s ease 0.7s backwards;
}

.donation-options {
    display: grid;
    width: min(100%, 72rem);
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    perspective: 1200px;
}

.donation-card {
    --delay: 1.6s;
    --tilt: rotateY(22deg) translateX(-2rem);
    position: relative;
    display: flex;
    min-height: 27.5rem;
    flex-direction: column;
    padding: 2rem;
    border-radius: 18px;
    background: #161618;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    box-shadow: inset 0 1px rgb(255 255 255 / 6%), 0 20px 50px rgb(0 0 0 / 30%);
    animation: card-in 1.1s var(--ease-soft) var(--delay) backwards;
    transition: transform 400ms var(--ease-soft), --line 300ms ease;
}

.donation-card:nth-child(2) {
    --delay: 1.72s;
    --tilt: rotateX(18deg);
}

.donation-card:nth-child(3) {
    --delay: 1.84s;
    --tilt: rotateY(-22deg) translateX(2rem);
}

.donation-card::before,
.donation-card.is-featured::after {
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    content: "";
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.donation-card::before {
    background: conic-gradient(from 200deg, var(--line) var(--sweep), transparent 0);
    animation: outline-draw 1.4s var(--ease-soft) calc(var(--delay) + 0.2s) backwards;
}

.donation-card.is-featured::after {
    padding: 1.5px;
    background: conic-gradient(from var(--beam), transparent 0 55%, rgb(114 186 255 / 60%) 80%, #fff 92%, transparent 96%);
    animation:
        fade-in 1s ease calc(var(--delay) + 1.4s) backwards,
        beam 4s linear infinite;
}

.donation-card > * {
    animation: fade-in 0.8s ease calc(var(--delay) + 0.45s) backwards;
}

.donation-card:hover {
    --line: rgb(255 255 255 / 22%);
    transform: translateY(-4px);
}

.donation-card.is-featured {
    --line: rgb(114 186 255 / 35%);
    box-shadow: inset 0 1px rgb(255 255 255 / 8%), 0 0 60px rgb(37 139 216 / 14%), 0 20px 50px rgb(0 0 0 / 30%);
}

.donation-card.is-featured:hover {
    --line: rgb(114 186 255 / 60%);
    transform: translateY(-4px) scale(1.04);
}

.donation-badge {
    position: absolute;
    z-index: 1;
    top: -0.7rem;
    right: 0;
    left: 0;
    width: fit-content;
    margin-inline: auto;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgb(114 186 255 / 65%);
    border-radius: 999px;
    background: #0f2233;
    color: #fff;
    font-family: var(--display-font);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.donation-card > .donation-badge {
    animation: emblem-in 0.9s var(--ease-soft) calc(var(--delay) + 0.9s) backwards;
}

.donation-card-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
}

.donation-card h2 {
    margin: 0;
    color: #efefef;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
}

.donation-amount {
    margin: 0;
    white-space: nowrap;
}

.donation-amount strong {
    color: #efefef;
    font-size: 1.875rem;
    font-weight: 700;
}

.donation-amount span {
    margin-left: 0.25rem;
    color: #9b96a3;
    font-size: 0.875rem;
}

.donation-card > p {
    margin: 0.9rem 0 0;
    color: #9b96a3;
    font-size: 0.9rem;
    line-height: 1.45;
}

.donation-benefits {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgb(255 255 255 / 7%);
    color: #9b96a3;
    font-size: 0.9rem;
    list-style: none;
}

.donation-card-link {
    width: 100%;
    margin-top: auto;
    -webkit-tap-highlight-color: transparent;
}

.donation-card-link.download-button:is(:hover, :focus-visible, :active) {
    border-color: rgb(114 186 255 / 65%);
    background: rgb(22 136 201 / 18%);
}

@keyframes emblem-in {
    from {
        opacity: 0;
        scale: 1.3;
    }
}

@keyframes title-in {
    from {
        opacity: 0;
        letter-spacing: 0.25em;
        filter: blur(8px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes header-lift {
    to {
        transform: translateY(-24svh);
    }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: var(--tilt) translateY(3rem) scale(0.92);
    }
}

@keyframes outline-draw {
    from {
        --sweep: 0deg;
    }
}

@keyframes beam {
    to {
        --beam: 360deg;
    }
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, 4%); }
    50% { transform: translate(4%, -6%); }
    75% { transform: translate(-3%, -2%); }
}

@media (max-width: 700px) {
    .donation-page {
        padding-top: 50svh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .donation-page {
        padding-top: 2rem;
    }

    .dono-header {
        position: relative;
        height: auto;
    }

    .donation-options {
        margin-top: 2rem;
    }
}
