:root {
    --bg: #f4f7f6; --card-bg: #ffffff; --text: #2d3436;
    --primary: #6c5ce7; --border: #dfe6e9; --accent: #ff7675;
}
[data-theme='dark'] {
    --bg: #1e272e; --card-bg: #2f3542; --text: #ffffff;
    --primary: #a29bfe; --border: #57606f; --accent: #ff6b6b;
}

body { font-family: 'Pretendard', sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 20px; transition: 0.3s; }
.wrapper { max-width: 550px; margin: 0 auto; }

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card { background: var(--card-bg); border-radius: 20px; padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); margin-bottom: 20px; }

/* 메뉴 스타일 */
.menu { display: flex; gap: 10px; margin-bottom: 20px; }
.menu-btn { flex: 1; padding: 10px; border: none; border-radius: 10px; background: var(--card-bg); color: var(--text); font-weight: bold; cursor: pointer; transition: 0.2s; }
.menu-btn.active { background: var(--primary); color: white; }

/* 통계 테이블 스타일 */
.stats-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
.stats-table th, .stats-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: center; }
.hot { color: var(--accent); font-weight: bold; }
.cold { color: #0984e3; font-weight: bold; }

/* 번호 공 디자인 */
.balls { display: flex; gap: 8px; justify-content: center; margin: 15px 0; }
.ball { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; 
        justify-content: center; color: white; font-weight: bold; font-size: 0.9rem; transition: 0.3s; }
.c1 { background: #fbc531; } .c2 { background: #487eb0; } 
.c3 { background: #e84118; } .c4 { background: #7f8c8d; } .c5 { background: #4cd137; }

.btn-group { display: flex; gap: 10px; margin-top: 15px; }
button { flex: 1; padding: 12px; border: none; border-radius: 12px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.primary-btn { background: var(--primary); color: white; }
.theme-btn { background: var(--border); color: var(--text); flex: 0 0 100px; }

.lang-selection button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text);
    padding: 5px;
}

input { width: 100%; padding: 10px; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); margin-top: 10px; }
