:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --container-bg: #fff;
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --ball-size: 50px;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --container-bg: #1e1e1e;
    --primary-color: #bb86fc;
    --primary-hover: #9965f4;
    --shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}

.btn-icon:hover {
    background-color: rgba(0,0,0,0.1);
}

body.dark-mode .btn-icon:hover {
    background-color: rgba(255,255,255,0.1);
}

.lotto-balls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
    min-height: 60px;
    align-items: center;
}

.ball {
    width: var(--ball-size);
    height: var(--ball-size);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Lotto Ball Colors */
.ball-1-10 { background-color: #fbc400; }
.ball-11-20 { background-color: #69c8f2; }
.ball-21-30 { background-color: #ff7272; }
.ball-31-40 { background-color: #aaa; }
.ball-41-45 { background-color: #b0d840; }

.actions {
    margin: 2rem 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

footer {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
}

.placeholder {
    color: #888;
    font-style: italic;
}
