/* 웹폰트 추가 - Gmarket Sans */
@font-face {
    font-family: 'GmarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* 웹폰트 추가 - tvN 즐거운이야기체 (눈누 제공) */
@font-face {
    font-family: 'JoyfulStory';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/OTEnjoystoriesBA.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

html {
    font-size: 10px;
}

body {
    font-family: 'GmarketSans', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    background-color: #5B2386;
    color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

.strong {
    font-weight: 700;
}

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

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.6rem;
}

.container {
    width: calc(100% - 4rem);
    max-width: 37.5rem;
    margin: 0 auto;
    padding: 2.4rem 0;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.title img:first-child {
    max-width: 26.7rem;
}

.clock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15rem;
    opacity: 0.3;
}

.subtitle {
    font-family: 'JoyfulStory';
    font-size: 1.8rem;
    color: #F5DF4D;
    line-height: 1.4;
}

.intro-section {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-text {
    position: relative;
    font-size: 1.6rem;
    line-height: 1.8;
    padding: 3rem 2rem;
    display: inline-block;
}

.quote-left,
.quote-right {
    width: 2.4rem;
    height: auto;
    position: absolute;
}

.quote-left {
    top: 0;
    left: 0;
}

.quote-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.calculator-section {
    margin-bottom: 4rem;
}

.calculator-form {
    text-align: center;
    margin-bottom: 3.2rem;
}

.input-group {
    margin-bottom: 1.6rem;
    font-size: 1.6rem;
    line-height: 1.8;
}

.input-group label {
    display: block;
}

.input-group input {
    width: 18rem;
    padding: 1.2rem 1.6rem;
    margin: 0 0.4rem;
    border-radius: 0.8rem;
    text-align: center;
    font-size: 1.6rem;
}

.input-group input::placeholder {
    color: #BABABA;
}

.btn-calculate {
    width: 100%;
    max-width: 28rem;
    padding: 1.6rem 2.4rem;
    margin-top: 2.4rem;
    background-color: #FCEE21;
    border-radius: 2.4rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #5B2386;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-calculate:hover {
    transform: translateY(-0.2rem);
}

.btn-calculate img {
    width: 3.2rem;
    height: 3.2rem;
    flex-shrink: 0;
}

.result {
    text-align: center;
    margin-top: 3.2rem;
}

.result-text {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.result-numbers {
    font-size: 2.4rem;
    font-weight: 500;
}

.result .field-result {
    font-size: 7.2rem;
    font-weight: 700;
    color: #FCEE21;
    display: inline-block;
}

.result .days-result {
    font-size: 7.2rem;
    font-weight: 700;
    color: #FCEE21;
    display: inline-block;
}

.action-section {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-start {
    width: auto;
    min-width: 20rem;
    padding: 1.6rem 2.4rem;
    background-color: #FCEE21;
    border-radius: 2.4rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #5B2386;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-start:hover {
    transform: translateY(-0.2rem);
}

.btn-share {
    width: auto;
    min-width: 14rem;
    padding: 1.6rem 2.4rem;
    background-color: #FFFFFF;
    border-radius: 2.4rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #5B2386;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-share:hover {
    transform: translateY(-0.2rem);
}

.footer {
    text-align: center;
    padding: 2.4rem 0;
}

.logo {
    width: 12.5rem;
    margin-bottom: 1.6rem;
}

.copyright {
    font-size: 1.2rem;
    color: #FFFFFF;
    opacity: 0.7;
    line-height: 1.6;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: 2.4rem;
    padding: 4rem 2.4rem;
    max-width: 32rem;
    width: calc(100% - 4rem);
    text-align: center;
    position: relative;
}

.modal-title {
    font-family: 'JoyfulStory';
    font-size: 5.2rem;
    color: #5B2386;
    margin-bottom: 0.2rem;
}

.modal-text {
    font-family: 'JoyfulStory';
    font-size: 3.8rem;
    color: #5B2386;
    margin-bottom: 1.4rem;
}

.modal-image {
    width: 15rem;
    margin-bottom: 2.4rem;
}

.btn-modal-action {
    width: 100%;
    padding: 1.6rem 2.4rem;
    background-color: #FCEE21;
    border-radius: 2.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #5B2386;
    margin-bottom: 1.2rem;
}

.btn-modal-close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 2.4rem;
    color: #5B2386;
}

.btn-modal-close::before {
    content: "×";
}

/* 반응형 디자인 - 태블릿 */
@media screen and (min-width: 576px) {
    .container {
        width: calc(100% - 6rem);
        max-width: 76.8rem;
    }

    .title img:first-child {
        max-width: 35rem;
    }

    .subtitle {
        font-size: 2.4rem;
    }

    .intro-text {
        font-size: 2rem;
    }

    .input-group {
        font-size: 2rem;
    }

    .input-group input {
        width: 22rem;
        padding: 1.4rem 2rem;
        font-size: 2rem;
    }

    .btn-calculate {
        max-width: 36rem;
        font-size: 2.4rem;
    }

    .result-text,
    .result-numbers {
        font-size: 2.4rem;
    }

    .result .field-result,
    .result .days-result {
        font-size: 3.2rem;
    }

    .btn-start,
    .btn-share {
        max-width: 36rem;
        font-size: 2.4rem;
    }
}

/* 반응형 디자인 - 데스크톱 */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 120rem;
    }

    .header {
        margin-bottom: 6rem;
    }

    .title img:first-child {
        max-width: 45rem;
    }

    .subtitle {
        font-size: 3rem;
    }

    .intro-text {
        font-size: 2.4rem;
        padding: 0 4rem;
    }

    .calculator-section {
        margin-bottom: 6rem;
    }

    .input-group {
        font-size: 2.4rem;
    }

    .input-group input {
        width: 26rem;
        font-size: 2.4rem;
    }

    .btn-calculate {
        max-width: 46.5rem;
        padding: 2.4rem 4rem;
        font-size: 2.4rem;
    }

    .action-section {
        gap: 2rem;
        margin-bottom: 6rem;
    }

    .btn-start,
    .btn-share {
        max-width: 46.5rem;
        padding: 2.4rem 4rem;
        font-size: 2.4rem;
    }
}