@font-face {
    font-family: "YeogiOttaeJalnanGothic";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_231029@1.1/JalnanGothic.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SpoqaHanSansCountdown";
    src: url("../../../theme/basic/fonts/SpoqaHanSans/Spoqa Han Sans Bold.woff2") format("woff2"),
         url("../../../theme/basic/fonts/SpoqaHanSans/Spoqa Han Sans Bold.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

.capital-renewal-v2 {
    position: relative;
    width: 100%;
    height: 460px;
    margin-top: 72px;
    overflow: hidden;
    box-sizing: border-box;
    color: #fff;
    background:
        radial-gradient(ellipse 78% 88% at 50% -8%, rgba(151, 5, 13, .88) 0%, rgba(86, 6, 11, .72) 30%, rgba(35, 8, 10, .34) 58%, transparent 76%),
        linear-gradient(180deg, #3f070a 0%, #24090c 46%, #111112 100%);
}

.capital-renewal-v2::before,
.capital-renewal-v2::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url("../images/capital-renewal-embers-v1.png") center / 100% 100% no-repeat;
    content: "";
    opacity: .92;
    filter: brightness(1.35) saturate(1.25);
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform;
}

.capital-renewal-v2::before {
    animation: capital-renewal-embers-rise-a 12s linear infinite;
}

.capital-renewal-v2::after {
    animation: capital-renewal-embers-rise-b 12s linear infinite;
}

@keyframes capital-renewal-embers-rise-a {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -100%, 0); }
}

@keyframes capital-renewal-embers-rise-b {
    from { transform: translate3d(0, 100%, 0); }
    to { transform: translate3d(0, 0, 0); }
}

.capital-renewal-v2__fire {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    mix-blend-mode: screen;
    pointer-events: none;
}

.capital-renewal-v2__fire span {
    position: absolute;
    bottom: 8px;
    left: var(--x);
    width: 4px;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff2a0 0%, #ff8a00 38%, #f01800 100%);
    box-shadow: 0 0 5px #ff3c00, 0 0 12px rgba(255, 32, 0, .85);
    opacity: 0;
    transform: rotate(12deg);
    animation: capital-renewal-spark-rise var(--duration) linear var(--delay) infinite;
}

@keyframes capital-renewal-spark-rise {
    0% { opacity: 0; transform: translate3d(0, 15px, 0) rotate(10deg) scale(.55); }
    12% { opacity: .95; }
    68% { opacity: .68; }
    100% { opacity: 0; transform: translate3d(var(--drift), -410px, 0) rotate(210deg) scale(.15); }
}

@media (prefers-reduced-motion: reduce) {
    .capital-renewal-v2::before {
        animation: none;
    }

    .capital-renewal-v2::after {
        display: none;
    }

    .capital-renewal-v2__fire span {
        animation: none;
    }

    .capital-renewal-v2__fire span {
        display: none;
    }
}

.capital-renewal-v2__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 42px 20px 34px;
    box-sizing: border-box;
}

.capital-renewal-v2__content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.capital-renewal-v2__title {
    margin: 0;
    color: #fff;
    font-family: "YeogiOttaeJalnanGothic", "Pretendard", sans-serif;
    font-size: 66px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: -.025em;
    text-shadow: 0 8px 30px rgba(99, 8, 17, .22);
}

.capital-renewal-v2__message {
    margin: 20px 0 22px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(92, 35, 40, .56);
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.capital-renewal-v2__countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.capital-renewal-v2__unit {
    width: 118px;
}

.capital-renewal-v2__card {
    position: relative;
    display: flex;
    height: 116px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #393940;
    border-radius: 16px;
    background: #28282d;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
}

.capital-renewal-v2__card::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(5, 5, 8, .72);
    content: "";
    pointer-events: none;
    transform: translateY(-1px);
}

.capital-renewal-v2__day,
.capital-renewal-v2__digits {
    position: relative;
    z-index: 1;
    display: flex;
    color: #fff;
    font-family: "SpoqaHanSansCountdown", "Spoqa Han Sans", sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: .9;
    letter-spacing: 0;
    -webkit-text-stroke: .5px currentColor;
    transform: translateY(-3px);
}

.capital-renewal-v2__digits {
    gap: .04em;
}

.capital-renewal-v2__day {
    letter-spacing: .08em;
    text-indent: .08em;
}

.capital-renewal-v2__card--accent {
    border-color: #c9081e;
    background: #c9081e;
}

.capital-renewal-v2__name {
    display: block;
    margin-top: 12px;
    margin-bottom: 10px;
    color: #bdbdc4;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.capital-renewal-v2__colon {
    margin-top: 36px;
    color: #ef001b;
    font-size: 42px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.capital-renewal-v2 .capital-renewal-flip-digit {
    display: inline-block;
    width: .7em;
    height: 1em;
    overflow: hidden;
    color: #fff;
    font: inherit;
    line-height: 1;
    text-align: center;
}

.capital-renewal-v2 .capital-renewal-flip-digit .ctnr {
    background: transparent;
}

.capital-renewal-v2 .capital-renewal-flip-digit .digit {
    box-sizing: border-box;
    width: .7em;
    height: 1em;
    padding: 0;
    color: #fff;
    font: inherit;
    line-height: 1;
    text-align: center;
}

.capital-renewal-v2__terms {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 24px;
    padding: 0 26px;
    border: 1px solid rgba(255, 104, 115, .34);
    border-radius: 999px;
    background: rgba(72, 22, 27, .78);
    color: #d8b9bc;
    font-size: 14px;
    line-height: 1;
    box-sizing: border-box;
}

.capital-renewal-v2__terms strong {
    margin-left: 7px;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
}

@media (max-width: 768px) {
    .capital-renewal-v2 {
        height: auto;
        min-height: 0;
        margin-top: 60px;
    }

    .capital-renewal-v2__inner {
        height: auto;
        padding: 48px 14px;
    }

    .capital-renewal-v2__content {
        height: auto;
    }

    .capital-renewal-v2__title {
        font-size: clamp(38px, 11vw, 58px);
    }

    .capital-renewal-v2__message {
        margin: 17px 0 22px;
        font-size: 14px;
    }

    .capital-renewal-v2__countdown {
        width: 100%;
        gap: 6px;
    }

    .capital-renewal-v2__unit {
        width: min(20vw, 100px);
    }

    .capital-renewal-v2__card {
        height: 94px;
        border-radius: 12px;
    }

    .capital-renewal-v2__day,
    .capital-renewal-v2__digits {
        font-size: clamp(32px, 9vw, 46px);
    }

    .capital-renewal-v2__colon {
        margin-top: 30px;
        font-size: 28px;
    }

    .capital-renewal-v2__terms {
        min-height: 44px;
        gap: 18px;
        margin-top: 15px;
        padding: 0 20px;
        font-size: 13px;
    }

    .capital-renewal-v2__terms strong {
        margin-left: 4px;
        font-size: 15px;
    }
}

@media (max-width: 500px) {
    .capital-renewal-v2__title {
        font-size: clamp(24px, 7.6vw, 38px);
        letter-spacing: -0.035em;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .capital-renewal-v2__countdown {
        gap: 4px;
    }

    .capital-renewal-v2__unit {
        width: 21vw;
    }

    .capital-renewal-v2__card {
        height: 82px;
    }

    .capital-renewal-v2__name {
        margin-top: 7px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .capital-renewal-v2__colon {
        font-size: 22px;
    }

    .capital-renewal-v2__terms {
        width: 100%;
        gap: 8px;
        padding: 0 12px;
        font-size: 11px;
    }

    .capital-renewal-v2__terms strong {
        font-size: 13px;
    }
}

/* 첫 번째 그랜저 카드 — 리뷰 쇼룸 배경의 리뉴얼 레드 무드 파일럿 */
.capital-renewal-content .fast-list-wrap[data-form-type="캐피탈 특판차량"] .car.car--renewal-showroom .thumb {
    height: 240px;
    padding: 0;
    overflow: hidden;
    background-color: #090a0c;
}

.capital-renewal-content .fast-list-wrap[data-form-type="캐피탈 특판차량"] .car.car--renewal-showroom .thumb > img.car-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: none;
}

@media (max-width: 768px) {
    .capital-renewal-content .fast-list-wrap[data-form-type="캐피탈 특판차량"] .car.car--renewal-showroom .thumb {
        height: auto;
        min-height: 168px;
        overflow: hidden;
    }

    .capital-renewal-content .fast-list-wrap[data-form-type="캐피탈 특판차량"] .car.car--renewal-showroom .thumb > img.car-thumb-img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center;
        transform: none;
    }
}
