:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0c29;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: var(--text-color);
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lotto-display {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
    opacity: 0;
}

.ball.show {
    transform: translateY(0);
    opacity: 1;
}

/* Ball Colors by Number Range */
.ball.color-1 { background: radial-gradient(circle at 30% 30%, #fbc2eb, #a6c1ee); box-shadow: 0 0 20px rgba(251, 194, 235, 0.5); }
.ball.color-2 { background: radial-gradient(circle at 30% 30%, #a1c4fd, #c2e9fb); box-shadow: 0 0 20px rgba(161, 196, 253, 0.5); }
.ball.color-3 { background: radial-gradient(circle at 30% 30%, #ff9a9e, #fad0c4); box-shadow: 0 0 20px rgba(255, 154, 158, 0.5); }
.ball.color-4 { background: radial-gradient(circle at 30% 30%, #d4fc79, #96e6a1); box-shadow: 0 0 20px rgba(212, 252, 121, 0.5); }
.ball.color-5 { background: radial-gradient(circle at 30% 30%, #84fab0, #8fd3f4); box-shadow: 0 0 20px rgba(132, 250, 176, 0.5); }

.generate-btn {
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Background Animations */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s infinite alternate;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .ball {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Recommendation Section Styles */
.recommend-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.recommend-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.recommend-btn:hover {
    background: var(--glass-bg);
}

.recommend-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    animation: fadeIn 0.5s ease-out;
}

.ball-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

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