
/* DINASTY V72 — METALLIC GRADIENT CTA */

:root {
    --cta-gold: linear-gradient(
        125deg,
        #FFF0C4 0%,
        #EAC478 32%,
        #B98A3E 65%,
        #F2D69C 100%
    );

    --cta-blue: linear-gradient(
        125deg,
        #102E60,
        #285895,
        #00133C
    );
}

/* PRIMARY CTA */

#connect,
.dc-hero-link,
#register,
#packs .royal-pack button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 100px;
    background: var(--cta-gold);
    background-size: 200% 200%;
    color: #00133C;
    border: 1px solid #FFE6AF;
    font-weight: 800;

    box-shadow:
        inset 0 1px 1px #FFFFFF90,
        inset 0 -2px 3px #93682740,
        0 6px 20px #D4B47825;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background-position .5s ease;
}

#connect {
    min-height: 50px;
    padding: 14px 25px;
    font-size: 13px;
    white-space: nowrap;
    animation: dcGoldFlow 7s ease infinite;
}

#connect::before {
    content: "";
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: currentColor;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='15' rx='3'/%3E%3Cpath d='M16 10h5v5h-5a2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ANIMATED LIGHT REFLECTION */

#connect::after,
.dc-hero-link::after,
#register::after,
.dc-leadership-link::after,
#packs .royal-pack button::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
        110deg,
        transparent 20%,
        #FFFFFF55 48%,
        transparent 70%
    );

    transform: translateX(-120%);
}

#connect::after {
    animation: dcCtaShine 6s ease infinite;
}

.dc-hero-link:hover::after,
#register:hover::after,
.dc-leadership-link:hover::after,
#packs .royal-pack button:not(:disabled):hover::after {
    animation: dcCtaShineHover .8s ease;
}

/* SECONDARY CTA */

.dc-leadership-link,
.dc-footer-email,
#disconnect,
body.dc-connected #connect {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: var(--cta-blue);
    background-size: 200% 200%;

    color: #F4DDA8;
    border: 1px solid #D4B47890;
    border-radius: 100px;

    box-shadow:
        inset 0 1px 0 #FFFFFF15,
        0 5px 20px #000D2940;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background-position .5s ease;
}

#connect:hover:not(:disabled),
.dc-hero-link:hover,
#register:hover:not(:disabled),
.dc-leadership-link:hover,
.dc-footer-email:hover,
#disconnect:hover:not(:disabled),
#packs .royal-pack button:hover:not(:disabled) {
    transform: translateY(-3px);
    background-position: 100% 50%;

    box-shadow:
        0 8px 28px #D4B47845,
        inset 0 1px 1px #FFFFFF30;
}

/* ACCESSIBILITY AND DISABLED STATES */

#connect:focus-visible,
button:focus-visible,
.dc-hero-link:focus-visible,
.dc-leadership-link:focus-visible,
.dc-footer-email:focus-visible {
    outline: 2px solid #F5DBA1;
    outline-offset: 4px;
}

#register[hidden],
#disconnect[hidden] {
    display: none !important;
}

#connect:disabled,
#register:disabled,
#packs .royal-pack button:disabled {
    opacity: .55;
    cursor: not-allowed;
    animation: none;
    transform: none;
    box-shadow: none;
}

#connect:disabled::after,
#register:disabled::after,
#packs .royal-pack button:disabled::after {
    animation: none;
}

/* ANIMATIONS */

@keyframes dcGoldFlow {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes dcCtaShine {
    0%,65% {
        transform: translateX(-120%);
    }

    85%,100% {
        transform: translateX(120%);
    }
}

@keyframes dcCtaShineHover {
    to {
        transform: translateX(120%);
    }
}

/* MOBILE */

@media(max-width:540px) {

    #connect {
        padding: 12px 15px;
        min-height: 43px;
        font-size: 11px;
        gap: 7px;
    }

    #connect::before {
        width: 16px;
        height: 16px;
    }

    .dc-hero-link,
    .dc-leadership-link {
        min-height: 46px;
        padding: 13px 17px;
    }

    #packs .royal-pack button {
        min-height: 40px;
        padding: 10px 6px;
        font-size: 10px;
    }
}

@media(prefers-reduced-motion:reduce) {

    #connect,
    #connect::after,
    .dc-hero-link::after,
    #register::after,
    .dc-leadership-link::after,
    #packs .royal-pack button::after {
        animation: none !important;
    }
}

