/* ===================== DONATION GAME CARDS ===================== */

.dono-game-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

.dono-game-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 575px;
    aspect-ratio: 1.08 / 1;
    background: #020617;
    color: #cffafe;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.22), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.dono-game-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.dono-game-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.86) 82%), linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.dono-game-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #cffafe;
}

    .dono-game-content h2 {
        margin: 0;
        font-size: clamp(1.3rem, 2vw, 2.1rem);
        line-height: 1.08;
        font-weight: 400;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #cffafe;
        text-shadow: 0 0 6px rgba(34, 211, 238, 0.8), 0 0 12px rgba(34, 211, 238, 0.5);
    }

.dono-game-subtitle {
    margin: 0.9rem 0 0;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    line-height: 1;
    letter-spacing: 0.06em;
    color: #67e8f9;
    text-shadow: 0 0 6px rgba(34, 211, 238, 0.45);
}

.dono-game-description {
    max-width: 320px;
    margin: 0.9rem 0 0;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    line-height: 1.5;
    color: #d6d3d1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
}

.dono-game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.4rem;
    min-width: 150px;
    padding: 0.6rem 0.95rem;
    border: 1px solid #22d3ee;
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.35);
    color: #cffafe;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: inset 0 0 8px rgba(34, 211, 238, 0.28), 0 0 9px rgba(34, 211, 238, 0.3);
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .dono-game-button:hover,
    .dono-game-button:focus {
        color: #fcd34d;
        border-color: #fbbf24;
        background: rgba(251, 191, 36, 0.08);
        box-shadow: inset 0 0 10px rgba(251, 191, 36, 0.38), 0 0 16px rgba(251, 191, 36, 0.55);
        transform: translateY(-2px);
        outline: none;
    }

@media (min-width: 1024px) {
    .dono-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .dono-game-card {
        aspect-ratio: 1 / 1.08;
    }

    .dono-game-content {
        padding: 1.5rem 1rem;
    }

        .dono-game-content h2 {
            font-size: 1.25rem;
            letter-spacing: 0.12em;
        }

    .dono-game-subtitle {
        font-size: 0.85rem;
    }

    .dono-game-description {
        font-size: 0.72rem;
    }

    .dono-game-button {
        margin-top: 1.8rem;
        min-width: 140px;
        font-size: 0.7rem;
    }
}

/* ===================== AGS TERMINAL FX - CLEAN MODULAR VERSION ===================== */

/*
	Layer expectation:
	image              z-index: 1
	dono-game-shade    z-index: 2
	ags-fx-* layers    z-index: 3-5
	dono-game-content  z-index: 6+

	Every effect here depends on an HTML tag.
	Removing the tag removes the effect.
	No card/button pseudo-elements are used.
*/

.ags-fx-soft,
.ags-fx-scanlines,
.ags-fx-noise,
.ags-fx-sweep,
.ags-fx-corners,
.ags-fx-ticks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ---------- Minimal soft terminal polish ---------- */

.ags-fx-soft {
    z-index: 3;
    box-shadow: inset 0 1px 0 rgba(207, 250, 254, 0.18), inset 0 -1px 0 rgba(34, 211, 238, 0.08);
}

    .ags-fx-soft::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.22;
        background: radial-gradient( circle at center, rgba(34, 211, 238, 0.08) 0%, rgba(34, 211, 238, 0.025) 36%, rgba(0, 0, 0, 0.12) 74%, rgba(0, 0, 0, 0.35) 100% );
    }

/* ---------- Faint scanlines ---------- */

.ags-fx-scanlines {
    z-index: 4;
    opacity: 0.06;
    background: repeating-linear-gradient( to bottom, rgba(34, 211, 238, 0.18) 0px, rgba(34, 211, 238, 0.18) 1px, transparent 1px, transparent 6px );
}

/* ---------- Subtle static / noise ---------- */

.ags-fx-noise {
    z-index: 4;
    opacity: 0.1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.45px, transparent 0.45px);
    background-size: 4px 4px;
    mix-blend-mode: screen;
}

/* ---------- Fast horizontal tube scan ---------- */

.ags-fx-tube-scan {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

    .ags-fx-tube-scan::before {
        content: "";
        position: absolute;
        left: 0;
        top: -12%;
        width: 100%;
        height: 6%;
        opacity: 0;
        background: linear-gradient( to bottom, transparent 0%, rgba(34, 211, 238, 0.00) 20%, rgba(34, 211, 238, 0.18) 45%, rgba(207, 250, 254, 0.28) 50%, rgba(34, 211, 238, 0.18) 55%, rgba(34, 211, 238, 0.00) 80%, transparent 100% );
        box-shadow: 0 0 10px rgba(34, 211, 238, 0.22), 0 0 22px rgba(34, 211, 238, 0.12);
        animation: agsFxTubeScan 45s ease-in-out infinite;
        animation-delay: 3.5s;
    }

@keyframes agsFxTubeScan {
    0% {
        top: -12%;
        opacity: 0;
    }

    3% {
        opacity: 0.9;
    }

    8% {
        top: 112%;
        opacity: 0.9;
    }

    9% {
        opacity: 0;
    }

    100% {
        top: 112%;
        opacity: 0;
    }
}

/* ---------- Slow diagnostic sweep ---------- */

.ags-fx-sweep::before {
    z-index: 4;
    content: "";
    position: absolute;
    top: -25%;
    left: -140%;
    width: 95%;
    height: 150%;
    background: linear-gradient( 105deg, transparent 0%, rgba(34, 211, 238, 0) 36%, rgba(34, 211, 238, 0.10) 50%, rgba(34, 211, 238, 0) 64%, transparent 100% );
    transform: skewX(-18deg);
    animation: agsFxSweep 60s ease-in-out infinite;
    animation-delay: 6.2s;
}

@keyframes agsFxSweep {
    0% {
        left: -140%;
        opacity: 0;
    }

    0.8% {
        opacity: 1;
    }

    40% {
        left: 165%;
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        left: 165%;
        opacity: 0;
    }
}

/* ---------- Fast calibration snap scan ---------- */

.ags-fx-calibration-snap {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

    .ags-fx-calibration-snap::before {
        content: "";
        position: absolute;
        left: 0;
        top: -8%;
        width: 100%;
        height: 2px;
        opacity: 0;
        background: rgba(207, 250, 254, 0.65);
        box-shadow: 0 0 6px rgba(207, 250, 254, 0.55), 0 0 14px rgba(34, 211, 238, 0.35), 0 0 28px rgba(34, 211, 238, 0.18);
        animation: agsFxCalibrationSnap 50s ease-in-out infinite;
        animation-delay: 1.8s;
    }

@keyframes agsFxCalibrationSnap {
    0% {
        top: -8%;
        opacity: 0;
    }

    2% {
        opacity: 0.85;
    }

    4% {
        top: 28%;
        opacity: 0.75;
    }

    4.8% {
        top: 31%;
        opacity: 0.25;
    }

    5.4% {
        top: 29%;
        opacity: 0.75;
    }

    8% {
        top: 108%;
        opacity: 0.85;
    }

    9% {
        opacity: 0;
    }

    100% {
        top: 108%;
        opacity: 0;
    }
}

/* ---------- Narrow vertical data wipe ---------- */

.ags-fx-data-wipe {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

    .ags-fx-data-wipe::before {
        content: "";
        position: absolute;
        top: 0;
        left: -12%;
        width: 4%;
        height: 100%;
        opacity: 0;
        background: linear-gradient( to right, transparent 0%, rgba(34, 211, 238, 0.00) 18%, rgba(34, 211, 238, 0.13) 42%, rgba(207, 250, 254, 0.24) 50%, rgba(34, 211, 238, 0.13) 58%, rgba(34, 211, 238, 0.00) 82%, transparent 100% );
        box-shadow: 0 0 12px rgba(34, 211, 238, 0.20), 0 0 26px rgba(34, 211, 238, 0.10);
        animation: agsFxDataWipe 32s ease-in-out infinite;
        animation-delay: 6.2s;
    }

@keyframes agsFxDataWipe {
    0% {
        left: -12%;
        opacity: 0;
    }

    2% {
        opacity: 0.65;
    }

    9% {
        left: 112%;
        opacity: 0.65;
    }

    10% {
        opacity: 0;
    }

    100% {
        left: 112%;
        opacity: 0;
    }
}

/* ---------- Subtle donor ambient drift ---------- */

.ags-fx-ambient-drift {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

    .ags-fx-ambient-drift::before {
        content: "";
        position: absolute;
        inset: -35%;
        opacity: 0.18;
        background: radial-gradient( circle at 20% 30%, rgba(34, 211, 238, 0.10), transparent 28% ), radial-gradient( circle at 75% 65%, rgba(251, 191, 36, 0.055), transparent 24% ), linear-gradient( 115deg, transparent 0%, rgba(34, 211, 238, 0.035) 42%, rgba(207, 250, 254, 0.045) 50%, rgba(34, 211, 238, 0.035) 58%, transparent 100% );
        filter: blur(10px);
        transform: translate3d(-2%, -1%, 0) rotate(0deg);
        animation: agsFxAmbientDrift 28s ease-in-out infinite;
    }

@keyframes agsFxAmbientDrift {
    0% {
        transform: translate3d(-2%, -1%, 0) rotate(0deg);
        opacity: 0.12;
    }

    35% {
        transform: translate3d(2%, 1.5%, 0) rotate(1deg);
        opacity: 0.18;
    }

    70% {
        transform: translate3d(1%, -2%, 0) rotate(-1deg);
        opacity: 0.15;
    }

    100% {
        transform: translate3d(-2%, -1%, 0) rotate(0deg);
        opacity: 0.12;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ags-fx-ambient-drift::before {
        animation: none;
    }
}
/* ---------- HUD corner brackets ---------- */

.ags-fx-corners {
    z-index: 5;
}

.ags-fx-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    opacity: 0.72;
    border-color: rgba(34, 211, 238, 0.72);
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.45));
    margin-top: 2px;
}

.ags-fx-corner-tl {
    top: 14px;
    left: 14px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.ags-fx-corner-tr {
    top: 14px;
    right: 14px;
    border-top: 1px solid;
    border-right: 1px solid;
}

.ags-fx-corner-bl {
    bottom: 14px;
    left: 14px;
    border-bottom: 1px solid;
    border-left: 1px solid;
}

.ags-fx-corner-br {
    right: 14px;
    bottom: 14px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

/* ---------- Side measurement ticks ---------- */

.ags-fx-ticks {
    z-index: 5;
}

.ags-fx-tick {
    position: absolute;
    top: 50%;
    width: 1px;
    height: 56px;
    background: linear-gradient( to bottom, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0) );
    opacity: 0.55;
    transform: translateY(-50%);
}

.ags-fx-tick-left {
    left: 16px;
}

.ags-fx-tick-right {
    right: 16px;
}

/* ---------- Optional button inner line, tag-free but harmless ---------- */
/* Keep this only if you always want the button to have a terminal input feel. */
/*
.dono-game-button {
	position: relative;
	z-index: 7;
	box-shadow:
		inset 0 0 0 1px rgba(34, 211, 238, 0.12),
		inset 0 0 8px rgba(34, 211, 238, 0.28),
		0 0 9px rgba(34, 211, 238, 0.3);
}
*/

/* ---------- Safety: respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .ags-fx-sweep::before {
        animation: none;
        display: none;
    }
}

#headerTerminal {
    position: relative;
    z-index: 20;
}

.dono-screen-body {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dono-screen-content {
    position: relative;
    z-index: 3;
}

/* soft glow can stay behind content */
.dono-screen-body > .ags-fx-soft {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* scanlines go ABOVE content */
.dono-screen-body > .ags-fx-scanlines {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

/* sweep also above content, if you want it visible over cards */
.dono-screen-body > .ags-fx-sweep {
    position: absolute;
    inset: 0;
    z-index: 21;
    pointer-events: none;
}

.op-85 {
    opacity: 0.85
}

.op-95 {
    opacity: 0.95
}

.op-99 {
    opacity: 0.99
}

.discord-bg-shade {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), var(--discord-bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.info-bg-shade {
    background: linear-gradient(rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.80)), var(--info-bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.gallery-console {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(34, 211, 238, 0.45);
    border-bottom: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08), 0 0 18px rgba(0, 0, 0, 0.35);
}

    .gallery-console::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(120deg, transparent 20%, rgba(34, 211, 238, 0.12), transparent 80%), radial-gradient(circle at center, rgba(34, 211, 238, 0.08), transparent 65%);
        opacity: 0.85;
    }

    .gallery-console > * {
        position: relative;
        z-index: 1;
    }

.gallery-console-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: rgba(251, 191, 36, 0.85);
    text-transform: uppercase;
}

.gallery-console-line {
    width: 160px;
    height: 1px;
    margin: 0.5rem auto 0.75rem;
    background: linear-gradient( 90deg, transparent, rgba(34, 211, 238, 0.9), rgba(251, 191, 36, 0.75), transparent );
}

/* ==============================
   AGS Reusable Terminal / Panel Layout
   ============================== */

.ags-terminal-panel {
    width: 100%;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.16), inset 0 0 22px rgba(34, 211, 238, 0.06);
}

.ags-terminal-bar {
    position: relative;
    display: flex;
    align-items: center;
    height: 2rem;
    text-align: center;
}

.ags-window-buttons {
    position: absolute;
    left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .ags-window-buttons span {
        display: block;
    }

.ags-terminal-title {
    width: 100%;
    padding: 0 4rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.ags-panel-section {
    padding: 1.5rem 1rem;
}

.ags-section-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

    .ags-section-inner > * + * {
        margin-top: 0.75rem;
    }

.ags-page-title {
    font-size: 2.0rem;
    line-height: 2.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
}

.ags-section-title {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ags-donate-wrap {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.5rem;
}

#donate-button-container-sm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#donate-button-sm {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ags-copy-block {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.ags-card-section {
    padding: 2rem 1rem;
}

.ags-disclaimer {
    max-width: 1000px;
    font-size: 0.875rem;
    line-height: 1.55;
}

@media (min-width: 768px) {
    .ags-panel-section {
        padding: 2rem 1.5rem;
    }

    .ags-page-title {
        font-size: 3rem;
        line-height: 1;
    }

    .ags-card-section {
        padding: 2.5rem 1.5rem;
    }
}

.ags-card-section.ags-perk-section-tight {
    padding-top: 0.5rem;
}
/* ==============================
   AGS ASE Supporter Perk Cards
   ============================== */

.ags-perk-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.25rem 0.75rem;
}

.ags-perk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    max-width: 1050px;
}

.ags-perk-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 10rem;
    border: 1px solid #22d3ee;
    border-radius: 0.75rem;
    background-image: var(--perk-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 14px rgba(34, 211, 238, 0.12), 0 0 8px rgba(34, 211, 238, 0.16);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

    .ags-perk-card:hover {
        transform: translateY(-2px);
        border-color: #fbbf24;
        box-shadow: inset 0 0 16px rgba(251, 191, 36, 0.12), 0 0 14px rgba(251, 191, 36, 0.28);
    }

.ags-perk-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.78), rgba(0, 0, 0, 0.92)), linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(0, 0, 0, 0.18));
}

.ags-perk-content {
    position: relative;
    z-index: 2;
    min-height: 10rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    padding: 0.75rem 0.55rem;
    text-align: center;
    color: #a5f3fc;
}

    .ags-perk-content h2 {
        margin: 0 auto;
        font-family: Iceland, cursive;
        font-size: 1.35rem;
        line-height: 1.05;
        color: #cffafe;
        text-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
    }

.ags-perk-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-height: 4.25rem;
    padding: 0.35rem 0;
    font-family: Gruppo, cursive;
    font-size: 0.93rem;
    line-height: 1.05;
    color: #e5f9ff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

    .ags-perk-list p {
        margin: 0;
    }

.ags-perk-price {
    margin: 0;
    font-family: Iceland, cursive;
    font-size: 1.75rem;
    line-height: 1;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
}

@media (min-width: 768px) {
    .ags-perk-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .ags-perk-card,
    .ags-perk-content {
        min-height: 14rem;
    }

    .ags-perk-content {
        padding: 1rem 0.75rem;
    }

        .ags-perk-content h2 {
            font-size: 1.85rem;
        }

    .ags-perk-list {
        min-height: 6rem;
        font-size: 1.2rem;
    }

    .ags-perk-price {
        font-size: 2rem;
    }
}

@media (min-width: 1280px) {
    .ags-perk-grid {
        gap: 1.25rem;
    }

    .ags-perk-card,
    .ags-perk-content {
        min-height: 16rem;
    }

        .ags-perk-content h2 {
            font-size: 2.05rem;
        }

    .ags-perk-list {
        font-size: 1.3rem;
    }
}

.ags-terminal-panel {
    height: auto;
    min-height: 0;
}

/* ==============================
   AGS Perk Grid Small Screen Safety
   ============================== */

@media (max-width: 700px) {
    .ags-perk-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        gap: 0.9rem;
    }

    .ags-perk-wrap {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ==============================
   AGS Perk Grid Mid-Width Safety
   Fixes awkward 764px - 1054px range
   ============================== */

@media (min-width: 764px) and (max-width: 1054px) {
    .ags-perk-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        max-width: 720px;
        gap: 1rem;
    }

    .ags-perk-card,
    .ags-perk-content {
        min-height: 15rem;
    }

        .ags-perk-content h2 {
            font-size: 1.75rem;
        }

    .ags-perk-list {
        font-size: 1.15rem;
        line-height: 1.12;
    }

    .ags-perk-price {
        font-size: 2rem;
    }
}
/* ==============================
   AGS Perk Card Click Details
   ============================== */

.ags-perk-card-info {
    cursor: pointer;
    isolation: isolate;
}

.ags-perk-face {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 220ms ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.ags-perk-front {
    opacity: 1;
    pointer-events: auto;
}

.ags-perk-back {
    opacity: 0;
    pointer-events: none;
}

.ags-perk-card-info.is-showing-info .ags-perk-front {
    opacity: 0;
    pointer-events: none;
}

.ags-perk-card-info.is-showing-info .ags-perk-back {
    opacity: 1;
    pointer-events: auto;
}

.ags-perk-card-info.is-flipped .ags-perk-front {
    opacity: 0;
    pointer-events: none;
}

.ags-perk-card-info.is-flipped .ags-perk-back {
    opacity: 1;
    pointer-events: auto;
}

.ags-perk-detail-text {
    max-width: 92%;
    margin: 0 auto;
    font-size: 0.82rem;
    line-height: 1.25;
}

.ags-perk-tap-note {
    margin-top: 0.45rem;
    color: #67e8f9;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .ags-perk-detail-text {
        font-size: 1rem;
        line-height: 1.35;
    }
}

/* Hide extra back-card text on medium and smaller screens */
@media (max-width: 1150px) {
    .ags-perk-back .ags-perk-back-title,
    .ags-perk-back .ags-perk-tap-note {
        display: none;
    }

    .ags-perk-back .ags-perk-content {
        grid-template-rows: 1fr auto;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .ags-perk-back .ags-perk-list {
        min-height: 0;
        padding: 0.25rem 0;
        font-size: 1rem;
        line-height: 1.12;
    }
}

/* ==============================
   Featured / Standalone Perk Card
   ============================== */

.ags-featured-perk-row {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.25rem 0.75rem 0;
}

.ags-perk-card-featured {
    width: 100%;
    max-width: 520px;
    min-height: 18rem;
}

    .ags-perk-card-featured .ags-perk-content {
        min-height: 18rem;
        padding: 1.25rem 1rem;
    }

        .ags-perk-card-featured .ags-perk-content h2 {
            font-size: 2.25rem;
        }

    .ags-perk-card-featured .ags-perk-list {
        max-width: 420px;
        margin: 0 auto;
        font-size: 1.15rem;
        line-height: 1.15;
    }

    .ags-perk-card-featured .ags-perk-price {
        font-size: 2.4rem;
    }

@media (max-width: 640px) {
    .ags-perk-card-featured {
        max-width: 100%;
        min-height: 17rem;
    }

        .ags-perk-card-featured .ags-perk-content {
            min-height: 17rem;
        }

            .ags-perk-card-featured .ags-perk-content h2 {
                font-size: 1.75rem;
            }

        .ags-perk-card-featured .ags-perk-list {
            font-size: 0.95rem;
        }

        .ags-perk-card-featured .ags-perk-price {
            font-size: 2rem;
        }
}

/* ==============================
   AGS Natural Footer Floor Layout
   ============================== */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.ags-site-shell {
    min-height: calc(100vh - 3rem);
    min-height: calc(100dvh - 3rem);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ags-page-main {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 4rem;
}

.footerimg {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    
}

.footer-donate {
    position: absolute;
    left: 50%;
    top: -6.5rem;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}
/* ==============================
   Homepage Hero
   ============================== */

.ags-home-hero {
    position: relative;
    height: calc(100vh - 3rem - 150px);
    height: calc(100dvh - 3rem - 150px);
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

/*.ags-home-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}*/

.ags-home-copy {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(90%, 36rem);
    text-align: center;
    transform: translate(-50%, -50%);
}

body.home .ags-page-main {
    padding-bottom: 0;
}


/* ===================== DONATION INTRO CONSOLE ===================== */

.donation-console {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(34, 211, 238, 0.45);
    border-bottom: 1px solid rgba(34, 211, 238, 0.25);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(0, 0, 0, 0.18)), rgba(34, 211, 238, 0.04);
    box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08), 0 0 18px rgba(0, 0, 0, 0.35);
}

    .donation-console::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(120deg, transparent 18%, rgba(34, 211, 238, 0.11), transparent 82%), radial-gradient(circle at center, rgba(34, 211, 238, 0.09), transparent 66%);
        opacity: 0.85;
    }

    .donation-console::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0.045;
        background: repeating-linear-gradient( to bottom, rgba(34, 211, 238, 0.6) 0px, rgba(34, 211, 238, 0.6) 1px, transparent 1px, transparent 7px );
    }

    .donation-console > * {
        position: relative;
        z-index: 1;
    }

.donation-console-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: rgba(251, 191, 36, 0.9);
    text-transform: uppercase;
}

.donation-console-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0.08em;
    color: #cffafe;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.85), 0 0 18px rgba(34, 211, 238, 0.45);
}

.donation-console-line {
    width: min(260px, 70%);
    height: 1px;
    margin: 0.75rem auto 1rem;
    background: linear-gradient( 90deg, transparent, rgba(34, 211, 238, 0.9), rgba(251, 191, 36, 0.8), transparent );
}

.donation-console-lead {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: #d6d3d1;
}

.donation-console-sub {
    max-width: 720px;
    margin: 0.45rem auto 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(214, 211, 209, 0.88);
}

.donation-button-wrap {
    display: flex;
    justify-content: center;
    margin: 1.1rem 0 0.9rem;
}

.donation-console-note {
    max-width: 820px;
    margin: 0 auto;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.05);
}

    .donation-console-note p {
        margin: 0;
        line-height: 1.55;
    }

        .donation-console-note p + p {
            margin-top: 0.45rem;
        }

@media (max-width: 640px) {
    .donation-console {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .donation-console-title {
        letter-spacing: 0.05em;
    }

    .donation-console-note {
        padding: 0.8rem;
    }
}

/* =====================
   ASA WELCOME SECTION
   ===================== */

.asa-feature-chip {
    position: relative;
    overflow: hidden;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.55);
    color: #cffafe;
    box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.08), 0 0 8px rgba(34, 211, 238, 0.08);
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

    .asa-feature-chip::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 120deg, transparent, rgba(34, 211, 238, 0.12), transparent );
        opacity: 0.45;
    }

    .asa-feature-chip:hover {
        transform: translateY(-2px);
        border-color: #fbbf24;
        color: #fcd34d;
        background: rgba(251, 191, 36, 0.08);
        box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.12), 0 0 12px rgba(251, 191, 36, 0.24);
    }

/* =====================
SERVER LIST IMAGE
   ===================== */

.ase-serverlist-card-wrap {
    width: 80%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.asa-serverlist-card-wrap {
    width: 92%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================
   ASA WELCOME PAGE LAYOUT FIX
   ===================== */

.asa-welcome-section {
    height: auto;
    min-height: 90vh;
    overflow: visible;
    padding-bottom: 4rem;
    padding-top: 4rem;
}

/* ==============================
   AGS Perk Grid Full-Width Text Break
   ============================== */

.ags-perk-grid-break {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 820px;
    margin: 0.35rem auto;
    padding: 0.85rem 1rem;
    text-align: center;
    font-family: Gruppo, cursive;
    font-size: 1.05rem;
    line-height: 1.45;
    
}

    .ags-perk-grid-break strong {
        font-family: Iceland, cursive;
        font-size: 1.35rem;
        font-weight: 400;
        color: #67e8f9;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }


.ags-scroll-anchor {
    scroll-margin-top: 15rem;
}

section[id] {
    scroll-margin-top: 4rem;
}

.fx-container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
