:root {
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --background-color: #1e293b;
    --text-color: #f8fafc;
    --card-bg: #334155;
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --border-color: #475569;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    background: var(--card-bg);
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.ad-container {
    /* 기존 스타일 제거 */
}

.generator-section {
    /* 기존 스타일 제거 */
}

.generator-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-color); /* Use existing text color variable */
}

.button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.results {
    margin-top: 30px;
}

.result-item {
    background: var(--background-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.game-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.numbers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.number-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.number-ball.color-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.number-ball.color-2 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.number-ball.color-3 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.number-ball.color-4 { background: linear-gradient(135deg, #64748b, #475569); }
.number-ball.color-5 { background: linear-gradient(135deg, #10b981, #059669); }

@media (max-width: 480px) {
    .number-ball {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .generator-section {
        padding: 30px;
    }
}