@charset "utf-8";

.test-gift-notice {
    z-index: 12500;
    padding: 20px;
    background: rgba(11, 16, 38, 0.62);
    backdrop-filter: blur(4px);
}

.test-gift-notice__box {
    width: min(calc(100% - 8px), 340px);
    max-width: 340px;
    max-height: min(88dvh, 620px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 24px 22px 22px;
    border: 2px solid #15273f;
    background:
        radial-gradient(circle at 50% 3%, rgba(247, 218, 152, 0.28), transparent 35%),
        var(--paper-color);
    box-shadow: 0 22px 60px rgba(11, 16, 38, 0.3);
    outline: none;
    scrollbar-width: none;
}

.test-gift-notice__box::-webkit-scrollbar {
    display: none;
}

.test-gift-notice__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 142px;
    margin: 0 0 8px;
}

.test-gift-notice__glow {
    position: absolute;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 214, 132, 0.75) 0%, rgba(247, 214, 132, 0.18) 56%, transparent 72%);
}

.test-gift-notice__friend {
    position: relative;
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    animation: test-gift-friend-float 2.8s ease-in-out infinite;
    filter: drop-shadow(0 10px 12px rgba(92, 72, 46, 0.2));
}

.test-gift-notice__friend img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.test-gift-notice__spark {
    position: absolute;
    z-index: 2;
    color: #c99735;
    font-weight: 900;
    animation: test-gift-spark 1.8s ease-in-out infinite;
}

.test-gift-notice__spark--one {
    top: 21px;
    left: calc(50% - 90px);
    font-size: 18px;
}

.test-gift-notice__spark--two {
    top: 12px;
    right: calc(50% - 85px);
    font-size: 23px;
    animation-delay: 0.45s;
}

.test-gift-notice__spark--three {
    right: calc(50% - 96px);
    bottom: 24px;
    font-size: 14px;
    animation-delay: 0.85s;
}

.test-gift-notice__title {
    margin: 0 0 12px;
    color: #15273f;
    font-size: 19px;
    line-height: 1.35;
    text-align: center;
    word-break: keep-all;
}

.test-gift-notice__message {
    display: block !important;
    margin: 0 0 18px !important;
    color: #5f574f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    text-align: center !important;
    word-break: keep-all;
}

.test-gift-notice__currency {
    font-weight: 900;
}

.test-gift-notice__currency--fragment {
    color: #b57c18;
}

.test-gift-notice__currency--crystal {
    color: #5f6fb8;
}

.test-gift-notice__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.test-gift-notice__actions .modal-btn {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 11px 8px;
    font-size: 12px;
}

.test-gift-notice__shop {
    min-width: 0;
}

.test-gift-notice__hide-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 11px auto 0;
    color: #756d64;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.test-gift-notice__hide-checkbox {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #15273f;
    cursor: pointer;
}

@keyframes test-gift-friend-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes test-gift-spark {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (max-height: 600px) {
    .test-gift-notice__box {
        padding-top: 18px;
    }

    .test-gift-notice__visual {
        min-height: 108px;
    }

    .test-gift-notice__friend {
        width: 102px;
        height: 102px;
        flex-basis: 102px;
    }

    .test-gift-notice__glow {
        width: 106px;
        height: 106px;
    }
}
