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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: wheat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

.input-group label {
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.progress-section {
    margin-bottom: 40px;
}

.time-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 80px;
}

.current-time, .remaining-time {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: black;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(240, 147, 251, 0.3);
}

.current-time .label, .remaining-time .label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.current-time .value, .remaining-time .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.progress-container {
    position: relative;
    background: #e1e5e9;
    height: 20px;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 100%;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5bb1fde8 0%, #8fc9ffb0 100%);
    border-radius: 10px;
    width: 0%;
    transition: none; /* JavaScript에서 애니메이션을 제어하므로 CSS transition 비활성화 */
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.runner-icon {
    position: absolute;
    top: -45px; /* 바 위쪽에 표시 */
    left: 0;
    transform: translateX(-50%);
    font-size: 40px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    animation: run-bounce 0.8s infinite ease-in-out;
    pointer-events: none;
}

.beer-icon {
    position: absolute;
    top: -60px; /* 바 위쪽 우측 고정 */
    right: -20px;
    font-size: 50px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    pointer-events: none;
}

@keyframes run-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

.salary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.daily-salary, .hourly-salary {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(168, 237, 234, 0.3);
}

.daily-salary .label {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.hourly-salary .label {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.daily-salary .value, .hourly-salary .value {
    display: block;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.status-message {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(255, 236, 210, 0.3);
    animation: pulse 2s infinite;
    margin-bottom: 20px;
}

.quote-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(168, 237, 234, 0.3);
    margin-top: 20px;
}

.quote-text {
    color: #333;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 1s ease-in;
}

.quote-text.fadeIn {
    animation: fadeIn 1s ease-in;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .time-info, .salary-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .current-time .value, .remaining-time .value {
        font-size: 1.5rem;
    }
    
    .daily-salary .value, .hourly-salary .value {
        font-size: 1.3rem;
    }
}

/* 숫자 카운팅 애니메이션 */
.counting {
}

@keyframes countUp {
    from { transform: scale(1.2); opacity: 0.7; }
    to { transform: scale(1); opacity: 1; }
}
