@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;700&display=swap');

:root {
    --bg-color: #1a1c2f;
    --card-bg: #2a2d44;
    --text-color: #e0e0e0;
    --subtext-color: #a0a3c4;
    --primary-btn-bg: linear-gradient(90deg, #3a7cff, #6c5eff);
    --secondary-btn-bg: #414561;
    --font-family: 'Pretendard', sans-serif;

    --color-yellow: #fbc400;
    --color-blue: #69c8f2;
    --color-red: #ff7272;
    --color-gray: #aaa;
    --color-green: #b0d840;
    --color-purple: #ab82ff; /* Bonus color */
}

body {
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 40px 20px;
    margin: 0;
}

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

.app-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.app-header p {
    color: var(--subtext-color);
    font-size: 1rem;
    margin-bottom: 30px;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.controls button {
    font-family: var(--font-family);
    padding: 18px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

#generate-btn {
    background: var(--primary-btn-bg);
    color: white;
    flex-grow: 1;
    max-width: 400px;
}

#copy-btn {
    background: var(--secondary-btn-bg);
    color: var(--text-color);
}

.controls button:hover {
    transform: scale(1.03);
}

.options {
    margin-bottom: 40px;
    text-align: center;
}

.options label {
    color: var(--subtext-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-btn-bg);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    top: -2px;
}

input[type="checkbox"]:checked {
    background-color: #3a7cff;
    border-color: #3a7cff;
}

input[type="checkbox"]:checked::after {
    content: '\2713';
    font-size: 16px;
    color: white;
    position: absolute;
    top: -2px;
    left: 2px;
}

#results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: left;
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--subtext-color);
    font-weight: 700;
}

.game-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lotto-ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.plus-icon {
    font-size: 1.5rem;
    color: var(--subtext-color);
    margin: 0 5px;
}

footer {
    color: var(--subtext-color);
    font-size: 0.9rem;
}
