/* Jump links ported from mp_game_home (src/components/JumpLinks.astro) */

.jump-links {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(79, 86, 104, 0.1));
    animation: fadeInScale 0.6s ease-out;
    margin-top: calc(100vw * -492 / 390);
    margin-bottom: calc(100vw * 143 / 390);
    z-index: 30;
}

@media (min-width: 1200px) {
    .jump-links {
        margin-top: -230.33px;
        margin-bottom: -5.33px;
    }
}

.jump-links__container {
    position: relative;
    padding: calc(100vw * 12 / 390) calc(100vw * 24 / 390);
    width: calc(100vw * 300 / 390);
    height: calc(100vw * 102 / 390);
    transform: scale(0.96);
    transform-origin: top center;
}

@media (min-width: 1200px) {
    .jump-links__container {
        padding: 45px 90px 45px 91px;
        width: 997px;
        height: 339px;
        transform: scale(0.8);
    }
}

.jump-links__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    z-index: 1;
}

.jump-links__content {
    position: relative;
    z-index: 20;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: calc(100vw * 6 / 390);
}

@media (min-width: 1200px) {
    .jump-links__content {
        gap: 20px;
    }
}

.game-icon-wrapper {
    position: relative;
    width: calc(100vw * 77 / 390);
    height: calc(100vw * 75 / 390);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background:
        linear-gradient(#ccc 0 0) padding-box,
        linear-gradient(180deg, #ffffff 0%, #75b5e4 50.96%, #ffffff 100%);
    color: #313149;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-block;
}

@media (min-width: 1200px) {
    .game-icon-wrapper {
        width: 256px;
        height: 248px;
        border: 3px solid transparent;
        border-radius: 18px;
    }
}

.game-icon-wrapper::before {
    content: "";
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #0055ac, #94cde3, #0055ac);
    background-size: 200% 200%;
    border-radius: 18px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
    animation: gradientRotate 3s ease infinite;
    z-index: -1;
}

.game-icon-wrapper:hover::before {
    opacity: 0.7;
}

.game-icon-wrapper:hover {
    transform: scale(1.1) translateY(-4px);
    filter: brightness(1.1) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.game-icon-wrapper img {
    border-radius: 9px;
    transition: all 0.3s ease;
}

@media (min-width: 1200px) {
    .game-icon-wrapper img {
        border-radius: 15px;
    }
}

.game-icon-wrapper .icon-main,
.game-icon-wrapper .icon-shine {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.game-icon-wrapper .icon-shine {
    z-index: 2;
    filter: brightness(1.7);
    animation: 2s linear 1s infinite laluot;
    overflow: hidden;
    -webkit-mask-image: -webkit-linear-gradient(153deg, #fff0 45%, #fff 50%, #fff0 55%);
    mask-image: linear-gradient(-63deg, #fff0 45%, #fff 50%, #fff0 55%);
    -webkit-mask-size: 300% 200%;
    mask-size: 300% 200%;
}

.download-links {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 2 / 390);
}

@media (min-width: 1200px) {
    .download-links {
        gap: 6px;
    }
}

.download-button {
    position: relative;
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    width: calc(100vw * 77 / 390);
    height: calc(100vw * 23.5 / 390);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1200px) {
    .download-button {
        width: 257px;
        height: 78px;
    }
}

.download-button img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.download-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.download-button:hover::before {
    left: 100%;
}

.download-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-button:hover::after {
    opacity: 1;
}

.download-button:hover {
    transform: translateX(8px);
    filter: brightness(1.3) contrast(1.1) saturate(1.3) drop-shadow(0 4px 16px rgba(255, 215, 0, 0.4));
}

.download-button:hover img {
    filter: hue-rotate(5deg) brightness(1.1);
}

.topup-button {
    position: relative;
    width: calc(100vw * 79 / 390);
    height: calc(100vw * 75 / 390);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 1200px) {
    .topup-button {
        width: 263px;
        height: 249px;
    }
}

.topup-button img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.topup-button::after {
    content: "";
    position: absolute;
    inset: -6px;
    background: conic-gradient(from 0deg, transparent 0%, #94cde3 25%, transparent 50%, #94cde3 75%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
    animation: spin 3s linear infinite;
}

.topup-button:hover::after {
    opacity: 0.6;
}

.topup-button:hover {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.2) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.topup-button:hover img {
    animation: bounce 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientRotate {

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

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes laluot {
    0% {
        -webkit-mask-position: 150% 0;
        mask-position: 150% 0;
    }

    to {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}
