/* DRAKE three-panel popup v1.0.3 */

body.drake-popup-is-open {
    overflow: hidden !important;
    touch-action: none;
}

.drake-popup,
.drake-popup * {
    box-sizing: border-box;
}

.drake-popup {
    --drake-gold: #e6bd67;
    --drake-gold-light: #ffe5a5;
    --drake-cream: #fff8e9;
    --drake-pink: #ff3f98;
    --drake-wine: #961d50;

    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    color: var(--drake-cream);
    font-family: Inter, Pretendard, "Noto Sans KR", "Noto Sans Thai", "Microsoft YaHei", Arial, sans-serif;
    transition: opacity .35s ease, visibility .35s ease;
}

.drake-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.drake-popup__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 16%, rgba(153, 24, 78, .34), transparent 34%),
        radial-gradient(circle at 86% 80%, rgba(30, 72, 180, .28), transparent 40%),
        rgba(2, 3, 8, .92);
    -webkit-backdrop-filter: blur(13px) saturate(1.15);
    backdrop-filter: blur(13px) saturate(1.15);
}

.drake-popup__dialog {
    position: relative;
    width: min(1500px, calc(100vw - 32px));
    height: min(830px, calc(100vh - 32px));
    overflow: hidden;
    border: 1px solid rgba(242, 204, 120, .62);
    border-radius: 23px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.035), transparent 30%),
        #09080d;
    box-shadow:
        0 40px 120px rgba(0,0,0,.84),
        0 0 0 1px rgba(255,255,255,.035) inset,
        0 0 55px rgba(255,55,144,.2);
    transform: translateY(18px) scale(.975);
    transition: transform .45s cubic-bezier(.2,.82,.2,1);
    isolation: isolate;
}

.drake-popup.is-open .drake-popup__dialog {
    transform: translateY(0) scale(1);
}

.drake-popup__top-line {
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    z-index: 50;
    height: 1px;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, #ffe29a, transparent);
}

.drake-popup__top-line::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 24%;
    background: #fff;
    box-shadow: 0 0 14px 3px #ffe292;
    animation: drake-triple-line 4.5s linear infinite;
}

/* 이전 버전의 내부 마크업은 화면에 출력하지 않습니다. */
.drake-popup__scroll {
    display: none !important;
}

.drake-popup__triple {
    position: absolute;
    inset: 0;
    overflow: hidden;
    padding: 18px 18px 48px;
}

.drake-popup__triple-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(350px, .92fr);
    gap: 14px;
}

.drake-triple-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(243, 204, 119, .34);
    border-radius: 18px;
    background: #090a10;
    box-shadow:
        0 18px 42px rgba(0,0,0,.42),
        0 0 0 1px rgba(255,255,255,.025) inset;
}

/* Panel 1: first image */
.drake-triple-panel--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 42%, rgba(4,4,9,.3) 66%, rgba(3,3,8,.94) 100%),
        radial-gradient(circle at 50% 45%, transparent 42%, rgba(20,6,18,.24) 100%);
}

.drake-triple-panel--photo > img {
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    object-fit: cover;
    object-position: center 25%;
    filter: saturate(1.04) contrast(1.03);
}

.drake-triple-panel--photo figcaption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    text-shadow: 0 5px 22px rgba(0,0,0,.95);
}

.drake-triple-panel--photo figcaption span,
.drake-triple-panel--photo figcaption strong {
    display: block;
}

.drake-triple-panel--photo figcaption span {
    margin-bottom: 6px;
    color: var(--drake-gold-light);
    font-size: .6rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 2.8px;
}

.drake-triple-panel--photo figcaption strong {
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    font-weight: 600;
    line-height: 1.05;
}

/* Panel 2: poster image */
.drake-triple-panel--poster {
    display: block;
    text-decoration: none !important;
    background:
        radial-gradient(circle at 50% 45%, rgba(13,68,159,.28), transparent 50%),
        #020d2b;
    box-shadow:
        0 18px 42px rgba(0,0,0,.48),
        0 0 14px rgba(35,130,255,.19),
        0 0 0 1px rgba(255,63,152,.09) inset;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.drake-triple-panel--poster:hover,
.drake-triple-panel--poster:focus-visible {
    outline: none;
    border-color: rgba(255,218,124,.82);
    box-shadow:
        0 22px 52px rgba(0,0,0,.55),
        0 0 22px rgba(255,52,150,.38),
        0 0 30px rgba(35,130,255,.23);
    transform: translateY(-2px);
}

.drake-triple-panel--poster > img {
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Panel 3: code-built payment guide */
.drake-triple-panel--info {
    overflow-y: auto;
    padding: 22px 18px 18px;
    background:
        radial-gradient(circle at 50% 10%, rgba(160,30,86,.17), transparent 38%),
        linear-gradient(160deg, #151017, #09080c 72%);
    scrollbar-width: thin;
    scrollbar-color: #956c31 rgba(255,255,255,.04);
}

.drake-triple-panel--info::-webkit-scrollbar {
    width: 5px;
}

.drake-triple-panel--info::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #956c31;
}

.drake-info-head {
    padding-right: 34px;
}

.drake-info-head > span {
    display: block;
    margin-bottom: 7px;
    color: var(--drake-gold);
    font-size: .54rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 2.2px;
}

.drake-info-head h3 {
    margin: 0 !important;
    padding: 0;
    color: #fff;
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: clamp(1.45rem, 1.8vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.7px;
}

.drake-info-head p {
    margin: 6px 0 15px !important;
    color: rgba(255,255,255,.48);
    font-size: .58rem;
    line-height: 1.3;
    letter-spacing: 1.2px;
}

.drake-info-list {
    display: grid;
    gap: 9px;
}

.drake-info-item {
    position: relative;
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid rgba(255,67,151,.38);
    border-radius: 13px;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    align-items: center;
    gap: 11px;
    background:
        linear-gradient(125deg, rgba(255,255,255,.035), transparent 58%),
        rgba(9,7,10,.72);
    box-shadow:
        0 8px 22px rgba(0,0,0,.3),
        0 0 10px rgba(255,50,145,.1);
}

.drake-info-item--primary {
    border-color: rgba(255,215,119,.78);
    background:
        linear-gradient(125deg, rgba(236,195,101,.12), rgba(140,25,75,.08) 64%),
        rgba(9,7,10,.8);
    box-shadow:
        0 10px 25px rgba(0,0,0,.35),
        0 0 13px rgba(255,211,105,.22),
        0 0 18px rgba(255,50,145,.1);
}

.drake-info-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,218,131,.32);
    border-radius: 12px;
    color: var(--drake-gold-light);
    background: rgba(222,180,86,.08);
    filter: drop-shadow(0 0 7px rgba(239,188,73,.28));
}

.drake-info-icon svg {
    width: 27px;
    height: 27px;
}

.drake-info-icon--talk {
    border-radius: 50%;
    font-size: .6rem;
    font-weight: 950;
    letter-spacing: -.3px;
}

.drake-info-item b,
.drake-info-item span {
    display: block;
}

.drake-info-item b {
    color: #fff;
    font-size: .83rem;
    font-weight: 900;
    line-height: 1.28;
    word-break: keep-all;
}

.drake-info-item--primary b {
    color: var(--drake-gold-light);
}

.drake-info-item b em {
    color: #fff;
    font-size: .64rem;
    font-style: normal;
}

.drake-info-item span {
    margin: 4px 0 3px;
    color: var(--drake-gold);
    font-size: .5rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .65px;
}

.drake-info-item small {
    color: rgba(255,255,255,.5);
    font-size: .47rem;
    line-height: 1.35;
}

.drake-info-languages {
    margin-top: 11px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 5px;
}

.drake-info-languages span {
    padding: 7px 3px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.025);
    font-size: .48rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.drake-info-actions {
    margin-top: 11px;
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    gap: 7px;
}

.drake-info-actions a {
    min-height: 45px;
    padding: 8px 10px;
    border: 1px solid rgba(232,194,109,.34);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--drake-gold-light) !important;
    background: rgba(255,255,255,.035);
    font-size: .61rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
}

.drake-info-actions a:first-child {
    border: 0;
    color: #1a1106 !important;
    background: linear-gradient(110deg,#bd8b3d,#ffe6a6 48%,#c79343);
    box-shadow: 0 10px 25px rgba(219,177,85,.2);
}

.drake-info-actions a:hover,
.drake-info-actions a:focus-visible {
    outline: none;
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.drake-popup__close {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 60;
    width: 41px;
    height: 41px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,225,151,.72);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff3cc;
    background: rgba(5,5,10,.86);
    box-shadow: 0 0 16px rgba(255,52,146,.32);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: transform .25s ease, background .25s ease;
}

.drake-popup__close:hover,
.drake-popup__close:focus-visible {
    outline: none;
    color: #fff;
    background: rgba(157,27,81,.94);
    transform: rotate(90deg);
}

.drake-popup__close svg {
    width: 18px;
    height: 18px;
}

.drake-popup__triple-hide {
    position: absolute;
    left: 50%;
    bottom: 11px;
    z-index: 50;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(255,223,148,.24);
    border-radius: 999px;
    color: rgba(255,245,215,.7);
    background: rgba(5,5,10,.64);
    box-shadow: none;
    font: inherit;
    font-size: .55rem;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transform: translateX(-50%);
    -webkit-appearance: none;
    appearance: none;
}

.drake-popup__triple-hide:hover,
.drake-popup__triple-hide:focus-visible {
    outline: none;
    border-color: var(--drake-gold);
    color: #fff0c5;
    background: rgba(114,18,59,.74);
}

.drake-popup__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes drake-triple-line {
    from { transform: translateX(-130%); }
    to { transform: translateX(530%); }
}

/* Tablet: images remain separate, info panel moves below them. */
@media (max-width: 1100px) {
    .drake-popup__triple {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .drake-popup__triple-grid {
        height: auto;
        grid-template-columns: repeat(2,minmax(0,1fr));
        align-items: stretch;
    }

    .drake-triple-panel--photo,
    .drake-triple-panel--poster {
        min-height: 680px;
    }

    .drake-triple-panel--info {
        grid-column: 1 / -1;
        overflow: visible;
        min-height: auto;
    }

    .drake-info-list {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .drake-info-item {
        grid-template-columns: 42px minmax(0,1fr);
        padding: 12px 10px;
    }

    .drake-info-icon {
        width: 42px;
        height: 42px;
    }
}

/* Mobile: three independent cards stack vertically with no overlap. */
@media (max-width: 700px) {
    .drake-popup {
        padding: 6px;
    }

    .drake-popup__dialog {
        width: calc(100vw - 12px);
        height: calc(100dvh - 12px);
        border-radius: 15px;
    }

    .drake-popup__triple {
        padding: 13px 12px 50px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #956c31 rgba(255,255,255,.04);
    }

    .drake-popup__triple-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .drake-triple-panel--photo {
        min-height: min(68dvh, 620px);
    }

    .drake-triple-panel--poster {
        min-height: 0;
        aspect-ratio: 3 / 4;
    }

    .drake-triple-panel--info {
        grid-column: auto;
        overflow: visible;
        padding: 20px 14px 16px;
    }

    .drake-info-head {
        padding-right: 34px;
    }

    .drake-info-list {
        grid-template-columns: 1fr;
    }

    .drake-info-item {
        grid-template-columns: 47px minmax(0,1fr);
        padding: 13px 11px;
    }

    .drake-info-icon {
        width: 47px;
        height: 47px;
    }

    .drake-popup__close {
        top: 10px;
        right: 10px;
        width: 39px;
        height: 39px;
    }

    .drake-popup__triple-hide {
        bottom: 9px;
        font-size: .52rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drake-popup__top-line::after {
        animation: none !important;
    }

    .drake-popup,
    .drake-popup__dialog,
    .drake-triple-panel--poster,
    .drake-popup__close {
        transition-duration: .01ms !important;
    }
}

