@font-face {
    font-family: "Jalnan2";
    src: url("../font/Jalnan2.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DXMetalGothic";
    src: url("../font/DXmetalgothic-Heavy-KSCpc-EUC-H.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GmarketSans";
    src: url("../font/GmarketSansTTFMedium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GmarketSans";
    src: url("../font/GmarketSansTTFBold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #000;
    font-family: "GmarketSans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

img {
    display: block;
    width: 100%;
    height: auto;
}


/* Adobe Fonts: 210 OmniGothic */
.wf-active body,
.wf-active .keyword-button {
    font-family: "GmarketSans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.page {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background: #000;
}

.event-view {
    width: 100%;
    max-width: 428px;
    min-height: 100dvh;
}

.event-view.event-view--hidden {
    display: none;
}

/* intro */

.intro {
    background: url("../img/background_01.webp") no-repeat center / cover;
}

.intro__inner {
    width: 100%;
    min-height: 100dvh;
    padding: min(32px, 7.4vw) min(24px, 5.6vw) min(24px, 5.6vw);
}

.intro__content {
    width: 100%;
    min-height: calc(100dvh - min(56px, 13vw));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.intro__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(28px, 6.5vw);
    flex-shrink: 0;
}

.intro__logo {
    width: min(52px, 12.1vw);
}

.intro__title {
    width: min(262px, 61.2vw);
}

.intro__product {
    width: min(328px, 76.6vw);
    flex-shrink: 0;
}

.intro__button {
    width: min(332px, 77.5vw);
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.intro__button:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* quiz */

.quiz {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px;
    background: url("../img/background_01.webp") no-repeat center top / cover;
}

.quiz__logo {
    width: min(54px, 12.62vw);
    margin-top: min(50px, 11.68vw);
}

.quiz__title {
    margin-top: 32px;
    font-family: "Jalnan2", sans-serif;
    font-size: min(34px, 7.47vw);
    line-height: 1.35;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #000;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.keyword-group {
    width: 100%;
    margin-top: min(70px, 15.89vw);
}

.keyword-group--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.keyword-group--list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keyword-button {
    width: 100%;
    min-height: 78px;
    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 2px solid #000;
    background: #fff;

    font-family: "GmarketSans", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    text-align: center;
    color: #000;

    transition: background 0.2s ease, transform 0.2s ease;
}

.keyword-button:active {
    background: #f2f2f2;
    transform: scale(0.98);
}

/* progress */

.progress {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 90px;
    margin: auto auto 0;
}

.progress__track {
    position: absolute;
    left: 0;
    top: 36px;

    width: 100%;
    height: 26px;

    background: #fff;
    border: 2px solid #000;
    border-radius: 999px;

    overflow: hidden;
    z-index: 1;
}

.progress__fill {
    width: 20%;
    height: 100%;
    background: #ef34ff;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress__product {
    position: absolute;
    top: 9px;
    z-index: 2;
    pointer-events: none;
}

.progress__product--start {
    left: 0;
    width: 35px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.progress__product--end {
    right: -4px;
    width: 46px;
}

/* loading */

.loading {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: url("../img/background_01.webp") no-repeat center top / cover;
}

.loading__card {
    position: relative;
    width: 100%;
    aspect-ratio: 356 / 235;
    margin: auto 0;
    background: url("../img/loading-alert-card.webp") no-repeat center / contain;
}

/* result */

.result {
    padding: 28px 24px;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.result__card {
    position: relative;
    width: 100%;
    aspect-ratio: 356 / 696;
    background: url("../img/result-card.webp") no-repeat center / contain;
}

.result__content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 16px;
}

.result__screen,
.result__button {
    width: min(302px, 70.56vw);
}

/* coupon */

.coupon {
    position: relative;
    padding: 28px 24px;
    background: url("../img/background_01.webp") no-repeat center top / cover;
}

.coupon__confetti {
    position: absolute;
    width: min(380px, 87.1vw);
    z-index: 9;
    top: min(80px, 19.63vw);
}

.coupon__card {
    margin-top: min(128px, 30.84vw);

    position: relative;
    width: 100%;

    aspect-ratio: 356 / 468;

    background: url("../img/coupon-card.webp") no-repeat center / contain;
}

.coupon__content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 16px;
}

.coupon__screen,
.coupon__button {
    width: min(300px, 70.56vw);
}

/* alert */

.alert {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    background: url("../img/background_01.webp") no-repeat center top / cover;
}

.alert__inner {
    width: 100%;
    min-height: calc(100dvh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert__card {
    width: 100%;
    max-width: 356px;
    padding: 40px 24px 32px;
    border-radius: 24px;
    border: 2px solid #000;
    background: #fff;
    box-shadow: 0 8px 0 #000;
    text-align: center;
}

.alert__image-button {
    display: block;
    width: 100%;
    max-width: 356px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.alert__image-button:active {
    transform: scale(0.98);
    opacity: 0.92;
}

.alert__status {
    font-family: "Jalnan2", sans-serif;
    font-size: 28px;
    line-height: 1.3;
    color: #000;
}

.alert__message {
    margin-top: 16px;
    font-family: "GmarketSans", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    color: #111;
    white-space: pre-line;
}

.alert__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    min-width: 220px;
    min-height: 60px;
    padding: 0 24px;
    border-radius: 999px;
    border: 2px solid #000;
    background: #ef34ff;
    color: #fff;
    font-family: "Jalnan2", sans-serif;
    font-size: 18px;
    line-height: 1;
}

.alert__button[hidden] {
    display: none;
}