/* 전체 배경 및 폰트 설정 */
body {
    font-family: 'Outfit', 'Nanum Gothic', sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFEFD5 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* 중앙 컨테이너 카드 */
.container {
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    /* 유리 질감 추가 */
    padding: 50px 30px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.15);
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    color: #E67E22;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    color: #8E8E93;
    margin-bottom: 40px;
    font-weight: 400;
}

/* 설정 영역 (마리당 가격) */
.settings {
    margin-bottom: 25px;
    padding: 15px;
    background: #FFF5E6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.settings label {
    font-size: 16px;
    font-weight: 700;
    color: #D35400;
}

.settings input {
    width: 120px;
    padding: 8px 10px;
    font-size: 18px;
    border: 2px solid #FFEDCC;
    border-radius: 10px;
    margin-bottom: 0;
}

/* 입력 그룹 */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

input {
    width: 100%;
    padding: 18px 20px;
    font-size: 24px;
    font-weight: 700;
    border: 3px solid #FFEDCC;
    border-radius: 18px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    color: #333;
    outline: none;
}

input:focus {
    border-color: #FF9800;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
}

input::placeholder {
    color: #D1D1D6;
    font-size: 18px;
}

/* 결과 카드 섹션 */
.result-card {
    background: #FFF9F0;
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed #FF9800;
}

.result {
    font-size: 36px;
    font-weight: 800;
    color: #E67E22;
    margin-bottom: 5px;
}

.balance {
    font-size: 20px;
    font-weight: 600;
    color: #7F8C8D;
    margin-bottom: 15px;
}

.sub-text {
    font-size: 14px;
    color: #A0A0A0;
}

/* 떨어지는 치킨 애니메이션 */
.chicken-emoji {
    position: fixed;
    top: -60px;
    font-size: 50px;
    animation-name: fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    z-index: 1;
    pointer-events: none;
    /* 클릭 방해 금지 */
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    input {
        font-size: 20px;
    }

    .result {
        font-size: 28px;
    }
}