:root {
    color-scheme: dark;
    --page-background: #171a3d;
    --art-background: #22254f;
    --gold: #ffdc68;
    --motion-ease: cubic-bezier(.2, .78, .24, 1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page-background);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 8%, rgba(45, 72, 151, .2), transparent 32rem),
        var(--page-background);
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

body.application-sheet-open {
    overflow: hidden;
}

.landing {
    width: min(100%, 1920px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--art-background);
    box-shadow: 0 0 80px rgba(4, 7, 29, .42);
}

.art-slice {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / var(--slice-height);
    overflow: hidden;
    isolation: isolate;
    background: var(--art-background);
}

.slice-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(var(--reveal-x, 0), 22px, 0) scale(.965);
    transform-origin: 50% 50%;
    transition:
        opacity .72s ease-out var(--delay),
        transform .88s var(--motion-ease) var(--delay),
        filter .7s ease-out var(--delay);
    will-change: transform, opacity;
}

.art-slice:nth-of-type(3n + 2) { --reveal-x: -24px; }
.art-slice:nth-of-type(3n) { --reveal-x: 24px; }

.slice-visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.reveal.is-visible .slice-visual {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.download-slice,
.apply-slice {
    overflow: hidden;
}

.application-link {
    position: absolute;
    z-index: 2;
    top: 64.6%;
    width: 27.5%;
    height: 16.2%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: clamp(6px, .7vw, 14px);
    background: linear-gradient(180deg, #5275f0 0%, #3455ce 46%, #1a318f 100%);
    box-shadow: 0 clamp(4px, .55vw, 10px) clamp(8px, 1vw, 20px) rgba(3, 7, 35, .48);
    color: #fff;
    font-size: clamp(20px, 2.35vw, 46px);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(3, 7, 35, .35);
    outline: none;
    transition: transform 55ms ease-out;
}

.application-link::after {
    content: attr(aria-label);
}

.slice-visual picture {
    position: absolute;
    inset: 0;
    display: block;
}

.application-link-first {
    left: 21.2%;
}

.application-link-second {
    left: 51.2%;
}

.application-button-mask {
    position: absolute;
    z-index: 1;
    top: 64.6%;
    width: 27.5%;
    height: 16.2%;
    background: #171a40;
}

.application-button-mask-first {
    left: 21.2%;
}

.application-button-mask-second {
    left: 51.2%;
    background: #14173c;
}

.mobile-application-link {
    display: none;
}

.mobile-store-link {
    display: none;
}

.mobile-quick-apply-slice .mobile-application-link {
    display: flex;
    top: 2.75%;
    width: 27.5%;
    height: 20.5%;
}

.mobile-quick-apply-slice .mobile-application-link-first {
    left: 21.72%;
}

.mobile-quick-apply-slice .mobile-application-link-second {
    left: 50.83%;
}

.mobile-quick-apply-slice .application-button-mask {
    top: 2.75%;
    width: 27.5%;
    height: 20.5%;
    background: #191d45;
}

.mobile-quick-apply-slice .application-button-mask-first {
    left: 21.72%;
}

.mobile-quick-apply-slice .application-button-mask-second {
    left: 50.83%;
}

.application-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.application-link:active,
.application-link.is-pressed {
    transform: translate(4px, 4px);
    transition-duration: 55ms;
}

.application-sheet {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 0 18px;
}

.application-sheet[hidden] {
    display: none;
}

.application-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 8, 27, .68);
    opacity: 0;
    backdrop-filter: blur(7px);
    transition: opacity .32s ease;
}

.application-sheet-panel {
    position: relative;
    display: grid;
    width: min(1040px, 100%);
    height: min(92vh, 960px);
    height: min(92dvh, 960px);
    margin: 0 auto;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background: #f6f5ef;
    box-shadow: 0 -28px 90px rgba(3, 6, 23, .42);
    transform: translateY(102%);
    transition: transform .46s var(--motion-ease);
}

.application-sheet-panel.is-dragging {
    transition: none;
}

.application-sheet.is-open .application-sheet-backdrop {
    opacity: 1;
}

.application-sheet.is-open .application-sheet-panel {
    transform: translateY(0);
}

.application-sheet-header {
    position: relative;
    display: flex;
    min-height: 86px;
    padding: 20px 26px;
    align-items: center;
    gap: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 0, rgba(255, 220, 104, .15), transparent 18rem),
        linear-gradient(115deg, #171a3d, #252956);
}

.application-sheet-handle {
    display: none;
    touch-action: none;
}

.application-sheet-handle::after {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    content: "";
    transform: translateX(-50%);
}

.application-sheet-header div {
    min-width: 0;
}

.application-sheet-header p {
    margin: 0 0 5px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
}

.application-sheet-header h2 {
    margin: 0;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.application-sheet-actions {
    display: flex;
    margin-left: auto;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.application-switch-user {
    position: relative;
    display: inline-flex;
    width: auto;
    min-width: 68px;
    height: 38px;
    padding: 0 15px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.application-switch-user[hidden] {
    display: none;
}

.application-switch-user:hover,
.application-switch-user:focus-visible {
    border-color: rgba(255, 220, 104, .72);
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}


.application-sheet-close {
    display: grid;
    width: 42px;
    height: 42px;
    margin-left: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 28px;
    font-weight: 200;
    line-height: 1;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.application-sheet-close:hover,
.application-sheet-close:focus-visible {
    border-color: rgba(255, 220, 104, .72);
    background: rgba(255, 255, 255, .14);
    transform: rotate(5deg);
}

.application-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f6f5ef;
}

.application-frame[hidden],
.landing-payment[hidden] {
    display: none;
}

.landing-payment {
    position: relative;
    height: 100%;
    padding: 28px clamp(18px, 4vw, 52px) 40px;
    overflow-y: auto;
    color: #17231d;
    background: #f6f5ef;
}

.landing-payment-heading span,
.landing-payment-result > span {
    color: #97782e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.landing-payment-heading h3,
.landing-payment-result h3 {
    margin: 8px 0 6px;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 600;
}

.landing-payment-heading p,
.landing-payment-result p {
    margin: 0;
    color: #607067;
    line-height: 1.65;
}

.landing-payment-summary {
    display: grid;
    margin: 24px 0 12px;
    padding: 18px 20px;
    gap: 10px;
    border: 1px solid #dfe4dd;
    border-radius: 16px;
    background: #fff;
}

.landing-payment-summary div,
.landing-business-info dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.landing-payment-summary dt,
.landing-business-info dt {
    color: #718078;
}

.landing-payment-summary dd,
.landing-business-info dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.landing-payment-button {
    width: 100%;
    min-height: 54px;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: #1b4332;
    font-size: 16px;
    font-weight: 800;
}

.landing-payment-button:disabled {
    cursor: wait;
    opacity: .48;
}

.landing-payment-error {
    min-height: 24px;
    margin: 12px 0 0;
    color: #b3261e;
    font-size: 14px;
    line-height: 1.5;
}

.landing-payment-result {
    padding: 44px 0 24px;
    text-align: center;
}

.landing-payment-home {
    display: inline-block;
    margin-top: 18px;
    color: #405248;
    font-weight: 700;
}

.landing-business-info {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #d9ded7;
}

.landing-business-info h3 {
    margin: 0 0 14px;
    font-size: 14px;
}

.landing-business-info dl {
    display: grid;
    margin: 0;
    gap: 8px;
    font-size: 12px;
    line-height: 1.55;
}

.landing-business-info a {
    color: inherit;
}

.landing-payment-loading {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    background: rgba(246, 245, 239, .92);
}

.landing-payment-loading[hidden] {
    display: none;
}

.landing-payment-loading span {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(27, 67, 50, .18);
    border-top-color: #1b4332;
    border-radius: 50%;
    animation: landing-payment-spin .8s linear infinite;
}

.landing-payment-loading p {
    margin: 0;
    color: #405248;
    font-weight: 700;
}

@keyframes landing-payment-spin {
    to { transform: rotate(360deg); }
}

.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;
}

@media (max-width: 640px) {
    .art-slice {
        aspect-ratio: 390 / var(--mobile-slice-height);
    }

    .slice-visual {
        transform: translate3d(var(--reveal-x, 0), 14px, 0) scale(.975);
    }

    .art-slice:nth-of-type(3n + 2) { --reveal-x: -12px; }
    .art-slice:nth-of-type(3n) { --reveal-x: 12px; }

    .mobile-store-link {
        position: absolute;
        z-index: 3;
        top: 75.6%;
        display: block;
        width: 44.1%;
        height: 14.5%;
        border-radius: 8px;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-store-link-android { left: 5.13%; }
    .mobile-store-link-iphone { left: 50.77%; }

    .mobile-store-link:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 3px;
    }

    .mobile-store-link:active {
        transform: translate(2px, 2px);
    }

    .application-link {
        top: 54.5%;
        width: 34.7%;
        height: 18%;
        border-radius: 5px;
        font-size: clamp(12px, 3.7vw, 15px);
    }

    .application-link-first {
        left: 13.8%;
    }

    .application-link-second {
        left: 51.3%;
    }

    .mobile-quick-apply-slice .mobile-application-link {
        display: flex;
        top: 1.28%;
        width: 42.3%;
        height: 4%;
    }

    .mobile-quick-apply-slice .mobile-application-link-first {
        left: 6.4%;
    }

    .mobile-quick-apply-slice .mobile-application-link-second {
        left: 51.3%;
    }

    .application-button-mask {
        top: 54.5%;
        width: 34.7%;
        height: 18%;
    }

    .application-button-mask-first {
        left: 13.8%;
    }

    .application-button-mask-second {
        left: 51.3%;
    }

    .mobile-quick-apply-slice .application-button-mask {
        top: 1.28%;
        width: 42.3%;
        height: 4%;
        background: #191d45;
    }

    .mobile-quick-apply-slice .application-button-mask-first {
        left: 6.4%;
    }

    .mobile-quick-apply-slice .application-button-mask-second {
        left: 51.3%;
    }

    .application-sheet {
        padding: 0;
    }

    .application-sheet-panel {
        width: 100%;
        height: 95vh;
        height: 95dvh;
        border-right: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .application-sheet-header {
        min-height: 78px;
        padding: 23px 18px 15px;
    }

    .application-sheet-handle {
        position: absolute;
        z-index: 2;
        top: 0;
        left: 50%;
        display: block;
        width: 72px;
        height: 24px;
        background: transparent;
        cursor: grab;
        transform: translateX(-50%);
    }

    .application-sheet-handle:active {
        cursor: grabbing;
    }

    .application-sheet-header h2 {
        font-size: 19px;
    }

    .application-sheet-close {
        width: 38px;
        height: 38px;
    }

    .application-switch-user {
        width: auto;
        min-width: 64px;
        height: 38px;
        padding: 0 12px;
        border-color: rgba(255, 220, 104, .82);
        color: #ffdc68;
        background: rgba(255, 220, 104, .16);
        box-shadow: 0 0 0 2px rgba(255, 220, 104, .08);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slice-visual {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

    .application-link {
        transition: none;
    }

    .application-sheet-backdrop,
    .application-sheet-panel {
        transition: none;
    }
}
.ksnet-payment-method { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; padding: 16px; border: 1px solid rgba(34, 37, 79, .14); border-radius: 12px; background: #f8f9fc; }
.ksnet-payment-method strong { color: #22254f; }
.ksnet-payment-method span, .ksnet-payment-agreement { color: #62667a; font-size: 13px; line-height: 1.6; }

.draw-notice { padding: 22px 20px; background: #22254f; color: #fff; text-align: center; font-family: sans-serif; }
.draw-notice strong, .draw-notice span, .draw-notice small { display: block; margin: 6px 0; line-height: 1.6; }
.draw-notice strong { font-size: 22px; }
