.leveltest-sticker-overlay {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(12, 18, 28, 0.46);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

.leveltest-sticker-overlay[hidden] {
    display: none;
}

body.leveltest-sticker-open {
    overflow: hidden;
}

.leveltest-sticker-dialog {
    position: relative;
    width: min(100%, 860px);
    margin: auto;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 12px 12px 0 #ff9d00, 0 28px 70px rgba(8, 15, 28, 0.3);
    color: #182033;
}

.leveltest-sticker-header {
    display: contents;
}

.leveltest-sticker-tab {
    position: absolute;
    top: -12px;
    left: 32px;
    min-width: 154px;
    padding: 7px 14px;
    border-radius: 4px;
    background: #e52528;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: center;
}

.leveltest-sticker-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4a5364;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: none;
}

.leveltest-sticker-close:hover {
    background: transparent;
    color: #111827;
}

.leveltest-sticker-heading {
    max-width: none;
    margin: 4px 48px 30px;
    font-family: 'GmarketSansBold', 'Noto Sans KR', sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.45rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.leveltest-sticker-title-emphasis {
    color: #e52528;
}

.leveltest-sticker-content {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(30px, 5vw, 56px);
    align-items: center;
}

.leveltest-sticker-steps {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leveltest-sticker-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 20px;
    width: 2px;
    background: #d8dde6;
}

.leveltest-sticker-steps li {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-height: 64px;
}

.leveltest-sticker-step-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid #e52528;
    border-radius: 50%;
    background: #ffffff;
    color: #e52528;
    font-size: 0.88rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.leveltest-sticker-steps li:last-child .leveltest-sticker-step-number {
    border-color: #172f52;
    background: #172f52;
    color: #ffffff;
}

.leveltest-sticker-step-copy {
    color: #343d4e;
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.45;
    word-break: keep-all;
}

.leveltest-radar-wrap {
    min-width: 0;
    padding-left: clamp(20px, 3vw, 36px);
    border-left: 1px solid #e0e5ec;
    text-align: center;
}

.leveltest-radar-chart {
    display: block;
    width: 100%;
    max-width: 310px;
    aspect-ratio: 13 / 10;
    margin: 0 auto;
    overflow: visible;
}

.leveltest-coffee-event-image {
    display: block;
    width: 100%;
    max-width: 310px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-fit: contain;
}

.leveltest-radar-grid {
    fill: none;
    stroke: #cad3df;
    stroke-width: 1;
}

.leveltest-radar-axis {
    stroke: #dbe1e9;
    stroke-width: 1;
}

.leveltest-radar-result {
    fill: rgba(23, 168, 188, 0.24);
    stroke: #0e8ea2;
    stroke-width: 3;
    stroke-linejoin: round;
}

.leveltest-radar-point {
    fill: #e52528;
    stroke: #ffffff;
    stroke-width: 2;
}

.leveltest-radar-chart text {
    fill: #515d70;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.leveltest-sticker-action {
    margin-top: 34px;
}

.leveltest-sticker-continue {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 22px;
    border: 0;
    border-radius: 8px;
    background: #e52528;
    color: #ffffff;
    font-size: 1.03rem;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(229, 37, 40, 0.24);
}

.leveltest-sticker-continue:hover {
    background: #c91b1f;
}

.leveltest-sticker-continue:disabled {
    cursor: wait;
    opacity: 0.7;
}

.leveltest-sticker-continue.is-loading::before {
    content: '';
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: leveltest-sticker-spin 700ms linear infinite;
}

.leveltest-sticker-close:focus-visible,
.leveltest-sticker-continue:focus-visible {
    outline: 3px solid rgba(23, 168, 188, 0.42);
    outline-offset: 3px;
}

@keyframes leveltest-sticker-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .leveltest-sticker-overlay {
        display: block;
        padding: 0;
        overflow: hidden;
        background: #ffffff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .leveltest-sticker-dialog {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: 100dvh;
        min-height: 100dvh;
        margin: 0;
        padding: 0 20px calc(104px + env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
    }

    .leveltest-sticker-header {
        position: sticky;
        z-index: 10;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        margin: 0 -20px;
        padding: env(safe-area-inset-top) 8px 0 20px;
        border-bottom: 1px solid #e4e8ee;
        background: #ffffff;
    }

    .leveltest-sticker-tab {
        position: static;
        min-width: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: #182033;
        font-size: 1.05rem;
        text-align: left;
    }

    .leveltest-sticker-close {
        position: static;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        background: transparent;
        color: #343d4e;
        font-size: 1.2rem;
    }

    .leveltest-sticker-heading {
        width: 100%;
        max-width: 350px;
        margin: 24px auto 20px;
        padding: 0;
        font-size: 1.18rem;
        line-height: 1.38;
        text-wrap: balance;
    }

    html[lang="en"] .leveltest-sticker-heading {
        font-size: 1rem;
    }

    .leveltest-sticker-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .leveltest-sticker-steps li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        min-height: 57px;
    }

    .leveltest-sticker-steps::before {
        left: 18px;
    }

    .leveltest-sticker-step-number {
        width: 38px;
        height: 38px;
    }

    .leveltest-sticker-step-copy {
        font-size: 0.88rem;
    }

    .leveltest-radar-wrap {
        padding: 20px 0 0;
        border-top: 1px solid #e0e5ec;
        border-left: 0;
    }

    .leveltest-radar-chart {
        max-width: 285px;
    }

    .leveltest-coffee-event-image {
        max-width: 285px;
    }

    .leveltest-sticker-action {
        position: fixed;
        z-index: 12;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 18px 20px max(16px, env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 18px, #ffffff 100%);
    }

    .leveltest-sticker-continue {
        width: min(100%, 480px);
        margin: 0 auto;
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leveltest-sticker-continue.is-loading::before {
        animation-duration: 1.5s;
    }
}
