:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-main: #1e293b;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 2.5rem;
    box-shadow: var(--shadow);
    width: 95%;
    max-width: 550px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    color: var(--text-main);
    margin-bottom: 2.5rem;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lotto-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.lotto-set {
    background: #f1f5f9;
    padding: 1.8rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.lotto-set:hover {
    transform: scale(1.02);
}

.set-title {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    /* 화려한 등장 애니메이션 */
    animation: spectacularPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes spectacularPop {
    0% { 
        transform: scale(0) rotate(-270deg) translateY(50px);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        opacity: 1;
        filter: blur(0px);
    }
    100% { 
        transform: scale(1) rotate(0) translateY(0);
        opacity: 1;
    }
}

/* 색상별 글로우 효과 추가 */
.ball.glow-yellow { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
.ball.glow-blue { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
.ball.glow-red { box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
.ball.glow-gray { box-shadow: 0 0 20px rgba(107, 114, 128, 0.5); }
.ball.glow-green { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }

#generateBtn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#generateBtn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

#generateBtn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 제휴 문의 섹션 스타일 추가 */
.contact-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed #e2e8f0;
    text-align: left;
}

.contact-section h2 {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box; /* 패딩이 너비를 넘지 않도록 설정 */
    font-family: inherit;
}

.input-group textarea {
    height: 100px;
    resize: none;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #475569;
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.submit-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}
