@font-face {
    font-family: "TopShowcaseHANDotum";
    src: url("../Font/HANDotum.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

.top-showcase-feature {
    margin: 0;
    position: relative;
    z-index: 105;
}

#header #header-left-side > .top-showcase-feature--header {
    width: 190px;
    height: 152px;
    position: absolute;
    top: 54px;
    left: 15px;
    z-index: 105;
    pointer-events: none;
}

.top-showcase-float {
    width: 190px;
    height: 152px;
    position: relative;
    -webkit-animation: serpent-top-showcase-float 3.2s ease-in-out infinite;
    animation: serpent-top-showcase-float 3.2s ease-in-out infinite;
    will-change: transform;
}

.top-showcase-card {
    width: 190px;
    height: 152px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 5px 7px rgba(35, 10, 5, .30));
    transition:
        opacity 320ms ease,
        transform 440ms cubic-bezier(.22, .72, .24, 1);
    will-change: opacity, transform;
}

.top-showcase-card.is-leaving {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(.965);
}

.top-showcase-card.is-entering {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(.965);
    transition: none;
}

.top-showcase-image {
    width: 190px;
    height: 152px;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.top-showcase-shine {
    width: 190px;
    height: 152px;
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(
            100deg,
            transparent 0%,
            transparent 45.5%,
            rgba(255, 231, 166, .06) 47.2%,
            rgba(255, 247, 214, .20) 48.5%,
            rgba(255, 255, 255, .58) 49.8%,
            rgba(255, 250, 229, .42) 50.8%,
            rgba(255, 230, 164, .12) 52.2%,
            transparent 54.2%,
            transparent 100%
        );
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-mode: alpha;
    -webkit-transform: translate3d(-155px, 0, 0);
    transform: translate3d(-155px, 0, 0);
    mix-blend-mode: screen;
    filter: none;
    will-change: transform, opacity;
}

[data-top-showcase-key="killer"] .top-showcase-shine {
    -webkit-mask-image: url("../Images/Main/top-killer-shine-mask.png");
    mask-image: url("../Images/Main/top-killer-shine-mask.png");
}

[data-top-showcase-key="rich"] .top-showcase-shine {
    -webkit-mask-image: url("../Images/Main/top-rich-shine-mask.png");
    mask-image: url("../Images/Main/top-rich-shine-mask.png");
}

[data-top-showcase-key="voter"] .top-showcase-shine {
    -webkit-mask-image: url("../Images/Main/top-voter-shine-mask.png");
    mask-image: url("../Images/Main/top-voter-shine-mask.png");
}

.top-showcase-card.is-shining .top-showcase-shine {
    -webkit-animation: serpent-top-showcase-shine 1.05s cubic-bezier(.24, .64, .32, 1) 1;
    animation: serpent-top-showcase-shine 1.05s cubic-bezier(.24, .64, .32, 1) 1;
}

.top-showcase-name {
    width: 70%;
    position: absolute;
    left: 50%;
    top: 68%;
    z-index: 3;
    transform: translate(-50%, -50%);
    overflow: hidden;
    color: #fff2c8;
    font-family: "TopShowcaseHANDotum", "Trebuchet MS", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .015em;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
    text-shadow:
        0 1px 0 rgba(65, 19, 8, .95),
        0 0 4px rgba(255, 215, 112, .78),
        0 1px 5px rgba(0, 0, 0, .90);
}

[data-top-showcase-key="killer"] .top-showcase-name {
    top: 67%;
}

[data-top-showcase-key="rich"] .top-showcase-name {
    top: 68.2%;
}

[data-top-showcase-key="voter"] .top-showcase-name {
    top: 68.8%;
}

.top-showcase-card.is-updated .top-showcase-name {
    -webkit-animation: serpent-top-showcase-name-update .7s ease-out;
    animation: serpent-top-showcase-name-update .7s ease-out;
}

.top-showcase-sr-only {
    width: 1px;
    height: 1px;
    position: absolute;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

@-webkit-keyframes serpent-top-showcase-float {
    0%, 100% {
        -webkit-transform: translate3d(0, 3px, 0) rotate(-.3deg);
        transform: translate3d(0, 3px, 0) rotate(-.3deg);
    }
    50% {
        -webkit-transform: translate3d(0, -5px, 0) rotate(.3deg);
        transform: translate3d(0, -5px, 0) rotate(.3deg);
    }
}

@keyframes serpent-top-showcase-float {
    0%, 100% { transform: translate3d(0, 3px, 0) rotate(-.3deg); }
    50% { transform: translate3d(0, -5px, 0) rotate(.3deg); }
}

@-webkit-keyframes serpent-top-showcase-shine {
    0% {
        -webkit-transform: translate3d(-155px, 0, 0);
        transform: translate3d(-155px, 0, 0);
        opacity: 0;
    }
    18% { opacity: .48; }
    74% {
        -webkit-transform: translate3d(155px, 0, 0);
        transform: translate3d(155px, 0, 0);
        opacity: .62;
    }
    100% {
        -webkit-transform: translate3d(155px, 0, 0);
        transform: translate3d(155px, 0, 0);
        opacity: 0;
    }
}

@keyframes serpent-top-showcase-shine {
    0% { transform: translate3d(-155px, 0, 0); opacity: 0; }
    18% { opacity: .48; }
    74% { transform: translate3d(155px, 0, 0); opacity: .62; }
    100% { transform: translate3d(155px, 0, 0); opacity: 0; }
}

@-webkit-keyframes serpent-top-showcase-name-update {
    0% { opacity: .35; }
    45% { opacity: 1; text-shadow: 0 0 10px rgba(255, 224, 131, .95); }
    100% { opacity: 1; }
}

@keyframes serpent-top-showcase-name-update {
    0% { opacity: .35; }
    45% { opacity: 1; text-shadow: 0 0 10px rgba(255, 224, 131, .95); }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .top-showcase-float {
        -webkit-animation-duration: 7s;
        animation-duration: 7s;
    }

    .top-showcase-card {
        transition: opacity 380ms ease;
    }

    .top-showcase-card.is-leaving,
    .top-showcase-card.is-entering {
        transform: none;
    }

    .top-showcase-card.is-shining .top-showcase-shine {
        -webkit-animation-duration: 1.8s;
        animation-duration: 1.8s;
    }
}
