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

body {
    font-family: 'Noto Sans KR', sans-serif;
    /* 예쁜 그라데이션 배경 (모던하고 몽환적인 느낌) */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.container {
    /* 글래스모피즘 효과 (유리처럼 투명하고 흐린 배경) */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 650px;
    width: 90%;
    animation: fadeIn 1s ease-out;
}

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

h1 {
    font-family: 'Jua', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.lotto-balls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    min-height: 70px;
}

.ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Noto Sans KR', sans-serif;
    background: white;
    /* 입체적인 공 모양 만들기 */
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3), 3px 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 통통 튀는 애니메이션 */
}

/* 애니메이션에 의한 등장 효과 */
.ball.show {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* 추첨 전 ? 표시 용 */
.ball.placeholder {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

/* 실제 한국 로또 색상 기준 */
.color-yellow { background: radial-gradient(circle at 30% 30%, #ffee80, #fbc400); color: #333; text-shadow: none; }
.color-blue { background: radial-gradient(circle at 30% 30%, #b2e8ff, #69c8f2); color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.color-red { background: radial-gradient(circle at 30% 30%, #ffb3b3, #ff7272); color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.color-gray { background: radial-gradient(circle at 30% 30%, #dddddd, #aaaaaa); color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.color-green { background: radial-gradient(circle at 30% 30%, #def2a0, #b0d840); color: #333; text-shadow: none; }

.draw-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8b);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.5rem;
    font-family: 'Jua', sans-serif;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.draw-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.draw-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

.draw-btn:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
