:root {
    /* Light Theme */
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --text-color: #1a1a1b;
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-text: #65676b;
    --border-color: #dddfe2;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* Ball Colors */
    --ball-y: #fbc400; /* 1-10 */
    --ball-b: #69c8f2; /* 11-20 */
    --ball-r: #ff7272; /* 21-30 */
    --ball-g: #aaa;    /* 31-40 */
    --ball-v: #b1e285; /* 41-45 */
}

[data-theme="dark"] {
    --bg-color: #18191a;
    --container-bg: #242526;
    --text-color: #e4e6eb;
    --primary-color: #2d88ff;
    --primary-hover: #3d94ff;
    --secondary-text: #b0b3b8;
    --border-color: #3e4042;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

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

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

h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.lotto-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    animation: pop 0.4s ease-out forwards;
}

.ball-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-text);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

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

.partnership-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.partnership-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-text);
}

.form-group input, 
.form-group textarea {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

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

footer {
    margin-top: 2rem;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

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