*, :after, :before {
    box-sizing: inherit;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    box-sizing: border-box
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0
}

p {
    margin: 0
}

picture {
    display: block
}

img {
    display: block;
    border: none
}

img, svg {
    vertical-align: middle
}

a {
    background-color: transparent;
    color: inherit;
    text-decoration: none
}

:focus {
    outline: none
}

button {
    all: unset
}

:root {
    --font-main-weight: 900;
    --font-main-color: #fff;
    --font-main-style: normal;
    --font-main: "Noto Sans KR", sans-serif;
    --font-optical-sizing: auto;
    --subtitle-size: clamp(12px, 5vw, 38px);
    --subtitle-item-description-coef: .65;
    --subtitle-item-flag-size-coef: 1.2;
    --title-width: clamp(300px, 50vw, 608px);
}

body {
    line-height: 1;
    text-rendering: optimizeSpeed;
    -webkit-text-decoration-skip: objects;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-main), sans-serif;
    font-weight: var(--font-main-weight);
    color: var(--font-main-color);
    font-style: var(--font-main-style);
    text-transform: uppercase;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    position: relative;
    font-optical-sizing: var(--font-optical-sizing);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    z-index: 1;
    overflow-x: hidden;
}

.content {
    flex: 1;
    position: relative;
    z-index: auto;
    display: flex;
    pointer-events: auto;
    width: 100%;
}

.description {
    position: relative;
    z-index: 8;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 60px;
    background-color: #00BE64;
    color: #fff;
    font-size: 18px;
    text-align: center;
    border: none;
    cursor: pointer;
    z-index: 0;
    line-height: 1.4;
    transition: all 0.3s ease-in-out;
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    filter: drop-shadow(0px 0px 7px rgba(255, 255, 255, 0.85));
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    padding: 3px;
    background:
        linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.5) 0%,
                rgba(153, 153, 153, 0.5) 20%,
                rgba(255, 255, 255, 0.5) 46%,
                rgba(153, 153, 153, 0.5) 65%,
                rgba(255, 255, 255, 0.5) 85%,
                rgba(153, 153, 153, 0.5) 98%
        );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.btn:hover {
    background-color: #01FF73;
}

.btn-pulse {
    -webkit-animation: 1.5s pulse ease-in-out infinite;
    animation: 1.5s pulse ease-in-out infinite;
    transform-origin: center center;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    position: relative;
    z-index: 1;
    aspect-ratio: 355 / 107;
    max-width: 355px;
}

.title {
    position: relative;
    aspect-ratio: 608 / 242;
}

.title-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.subtitle {
    position: relative;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    font-size: var(--subtitle-size);
}

.subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: linear-gradient(
            to right,
            rgba(138, 34, 119, 0) 0%,
            rgba(27, 30, 199, 0.74) 18%,
            rgba(27, 30, 199, 0.74) 75%,
            rgba(138, 34, 119, 0) 93%
    );
    filter: blur(60px);
    z-index: -1;
}

.subtitle__item {
    &:nth-child(2) {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
}

.subtitle__item-flag-wrapper {
    display: flex;
    align-items: center;
}

.subtitle__item-description {
    opacity: .45;
    font-size: calc(var(--subtitle-size) * var(--subtitle-item-description-coef));
}

.subtitle__item-flag {
    aspect-ratio: 1 / 1;
    width: calc(var(--subtitle-size) * var(--subtitle-item-flag-size-coef));
    margin: 0 calc(var(--subtitle-size) / 2);
}

.girl-wrapper {
    position:  relative;
    z-index: 2;
    aspect-ratio: 628 / 1089;
    will-change: transform;
    pointer-events: none;
    overflow-y: clip;
}

.girl {
    position: absolute;
    z-index: 2;
    width: 100%;
    max-width: 628px;
    height: auto;
    display: block;
    pointer-events: none;
}

@media (orientation: portrait) and (min-width: 0px) {
    :root {
        --subtitle-size: clamp(12px, 3.67vw, 24px);
    }

    .main {
        justify-content: flex-start;
        background-image: image-set(
                url('../img/bg/bg_landscape_mobile@1x.webp') 1x,
                url('../img/bg/bg_landscape_mobile@2x.webp') 2x
        );
        background-size: cover;
        background-repeat: no-repeat;
        background-position-x: 20%;
        overflow: hidden;
    }

    .content {
        width: 100%;
        max-width: 644px;
        padding: clamp(24px, 5vw, 32px) clamp(24px, 5vw, 32px) 0;
        flex-direction: column;
        justify-content: space-between;
    }

    .description {
        display: flex;
        flex-direction: column;
        width: min-content;
        margin: 0 auto;
    }

    .header {
        width: 100%;
        gap: clamp(10px, 5vw, 30px);
        margin-bottom: clamp(10px, 5vw, 30px);
    }

    .logo {
        width: 40%;
        margin: 0 auto;
    }

    .btn {
        position: fixed;
        margin: 0 auto;
        max-width: 580px;
        left: clamp(24px, 5vw, 32px);
        right: clamp(24px, 5vw, 32px);
        bottom: clamp(24px, 5vw, 32px);
        font-size: clamp(20px, 5vw, 52px);
    }

    .title {
        width: 100%;
    }

    .subtitle {
        gap: 8px;
        margin-bottom: clamp(24px, 2vw, 50px);
    }

    .girl-wrapper {
        position: relative;
        width: 65%;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .girl {
        bottom: 0;
    }
}

@media (orientation: portrait) and (min-width: 375px) and (min-height: 800px) {
    .girl-wrapper {
        width: 80%;
    }
}

@media (orientation: portrait) and (min-width: 768px) and (min-height: 1024px) {
    .main {
        background-image: image-set(
                url('../img/bg/bg_landscape_tablet@1x.webp') 1x,
                url('../img/bg/bg_landscape_tablet@2x.webp') 2x
        );
        background-position-x: 25%;
    }

    .girl-wrapper {
        width: clamp(300px, 45vw, 500px);
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    :root {
        --title-width: clamp(100px, 35vw, 300px);
        --subtitle-size: clamp(12px, 2vw, 38px);
    }

    .main {
        justify-content: flex-start;
        background-image: image-set(
                url('../img/bg/bg_landscape_mobile@1x.webp') 1x,
                url('../img/bg/bg_landscape_mobile@2x.webp') 2x
        );
    }

    .content {
        width: 100%;
        max-width: 1600px;
        flex-direction: row;
        justify-content: center;
    }

    .header {
        width: min-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(12px, 2vw, 28px);
        margin-bottom: clamp(12px, 2vw, 30px);
    }

    .logo {
        width: 50%;
    }

    .title {
        width: var(--title-width);
        margin-right: auto;
    }

    .subtitle {
        gap: 10px;
        margin-bottom: clamp(14px, 1vw, 50px);
    }

    .description {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: clamp(12px, 2vw, 80px);
        padding-bottom: clamp(12px, 2vw, 80px);
        width: auto;
    }

    .btn {
        width: 100%;
        max-width: var(--title-width);
        font-size: clamp(16px, 3vw, 52px);
        padding-left: 20px;
        padding-right: 20px;
    }

    .girl-wrapper {
        width: clamp(180px, 25vw, 608px);
    }

    .girl,
    .girl-mask {
        width: 100%;
        bottom: 0;
    }
}

@media (orientation: landscape) and (min-width: 1024px) {
    :root {
        --title-width: clamp(100px, 35vw, 608px);
        --subtitle-size: clamp(12px, 2vw, 38px);
    }

    .main {
        background-image: image-set(
                url('../img/bg/bg_landscape_tablet@1x.webp') 1x,
                url('../img/bg/bg_landscape_tablet@2x.webp') 2x
        );
    }

    .description {
        justify-content: flex-start;
        padding-top: 10%;
        padding-bottom: clamp(50px, 6vw, 100px);
    }

    .subtitle {
        gap: 20px;
        margin-bottom: clamp(14px, 2.5vw, 50px);
    }

    .girl-wrapper {
        width: clamp(180px, 30vw, 430px);
    }
}

@media (orientation: landscape) and (min-width: 1440px) {
    .main {
        justify-content: flex-start;
        background-image: image-set(
                url('../img/bg/bg_landscape_desktop@1x.webp') 1x,
                url('../img/bg/bg_landscape_desktop@2x.webp') 2x
        );
    }
}

@media (orientation: landscape) and (min-width: 1360px) and (max-height: 1280px) {
    .description {
        justify-content: center;
        padding-top: clamp(50px, 3vw, 100px);
        padding-bottom: clamp(50px, 3vw, 100px);
    }
}

@media (orientation: landscape) and (min-width: 1440px) and (max-height: 600px) {
    .content {
        width: 100%;
        max-width: 1600px;
        padding-top: clamp(12px, 4vw, 20px);
        flex-direction: row;
        justify-content: center;
    }
}

@media (orientation: landscape) and (min-width: 1920px) and (max-height: 600px) {
    .content {
        width: 100%;
        max-width: 1600px;
        padding-top: clamp(12px, 4vw, 20px);
        flex-direction: row;
        justify-content: center;
    }
}

@media (orientation: landscape) and (min-width: 1600px) and (min-height: 1250px) {
    .btn {
        max-width: 580px;
    }

    .girl-wrapper {
        width: clamp(180px, 30vw, 608px);
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
