:root {
    --bg-color: #1a1c1e;
    --container-bg: #2d2f31;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --ball-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--container-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

p.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

button:active {
    transform: translateY(0);
}

.lotto-set {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 순차적 애니메이션 지연 */
.lotto-set:nth-child(1) { animation-delay: 0.1s; }
.lotto-set:nth-child(2) { animation-delay: 0.2s; }
.lotto-set:nth-child(3) { animation-delay: 0.3s; }
.lotto-set:nth-child(4) { animation-delay: 0.4s; }
.lotto-set:nth-child(5) { animation-delay: 0.5s; }

.ball {
    width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--ball-shadow);
    position: relative;
    overflow: hidden;
}

.ball::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* 로또 번호 대역별 색상 - 다크모드에 맞춰 채도 조정 */
.ball-1 { background: radial-gradient(circle at 30% 30%, #facc15, #a16207); }
.ball-11 { background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8); }
.ball-21 { background: radial-gradient(circle at 30% 30%, #f87171, #b91c1c); }
.ball-31 { background: radial-gradient(circle at 30% 30%, #9ca3af, #374151); }
.ball-41 { background: radial-gradient(circle at 30% 30%, #a3e635, #4d7c0f); }

/*    Ÿ */
.contact-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

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

.contact-section .subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-bottom: 0;
    padding: 12px;
    font-size: 1rem;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: none;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    color: white;
}
