* {
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
    color: #f1f2f6;
}

#app {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 650px;
    width: 90%;
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.dark-mode #app {
    background-color: #1e272e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

h1 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2rem;
    transition: color 0.3s;
}

body.dark-mode h1 {
    color: #f1f2f6;
}

.theme-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background-color: #fdfbfb;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

body.dark-mode .theme-btn {
    background-color: #2c3e50;
    color: #f1f2f6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

body.dark-mode .theme-btn:hover {
    background-color: #34495e;
}

.result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.numbers {
    display: flex;
    gap: 12px;
}

.ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.5);
}

.plus-sign {
    font-size: 2rem;
    font-weight: bold;
    color: #95a5a6;
    margin: 0 10px;
}

#bonus-container {
    display: flex;
    align-items: center;
}

/* 로또 볼 색상 (동행복권 기준) */
.color-yellow { background-color: #fbc400; }  /* 1~10 */
.color-blue { background-color: #69c8f2; }    /* 11~20 */
.color-red { background-color: #ff7272; }     /* 21~30 */
.color-gray { background-color: #aaa; }       /* 31~40 */
.color-green { background-color: #b0d840; }   /* 41~45 */

button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

button:hover {
    background-color: #1557b0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.6);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.4);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 제휴 문의 폼 스타일 */
.contact-form {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

body.dark-mode .contact-form {
    border-top-color: #333;
}

.contact-form h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

body.dark-mode .contact-form h2 {
    color: #f1f2f6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fdfdfd;
    color: #333;
}

.contact-form textarea {
    resize: vertical;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #2c3e50;
    border-color: #4a6278;
    color: #f1f2f6;
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
    color: #95a5a6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.contact-form button {
    width: 100%;
    margin-top: 5px;
}
