:root {
    --primary-color: #ff9f43;
    --primary-hover: #ff8c21;
    --bg-gradient: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #2d3436;
    --text-muted: #636e72;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    overflow-x: hidden;
    padding: 20px;
}

#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10;
}

.header {
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="number"] {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    border: 2px solid #eee;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    background: white;
}

input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.1);
}

.unit {
    position: absolute;
    right: 16px;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.price-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.price-btn {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.price-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.custom-price-input {
    grid-column: span 3;
    padding: 10px !important;
    font-size: 0.9rem !important;
}

.main-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 6px 0 #e67e22;
    margin-bottom: 6px;
}

.main-btn:hover {
    background: var(--primary-hover);
}

.main-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #e67e22;
}

.result-area {
    margin-top: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    text-align: center;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.hidden {
    display: none;
}

.result-content {
    animation: fadeIn 0.4s ease-out;
}

.result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.unit-text {
    font-size: 1.2rem;
    color: var(--text-main);
}

.result-detail {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.small-text {
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Chicken Rain Animation CSS */
.chicken-particle {
    position: absolute;
    font-size: 2rem;
    user-select: none;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
