* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.lotto-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.controls label {
    font-weight: 600;
    font-size: 1.1rem;
}

.controls input {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 200px;
    text-align: center;
}

.controls input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#generateBtn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.results {
    display: grid;
    gap: 20px;
}

.lotto-set {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #667eea;
}

.lotto-set h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.lotto-numbers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.lotto-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.lotto-number.bonus {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
}

.privacy-link, .back-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-block;
    margin: 10px;
    transition: background 0.3s;
}

.privacy-link:hover, .back-link:hover {
    background: rgba(255,255,255,0.3);
}

/* 개인정보 처리방침 페이지 스타일 */
.privacy-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.privacy-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.effective-date {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .lotto-section, .privacy-content {
        padding: 20px;
    }
    
    .controls {
        align-items: stretch;
    }
    
    .controls input {
        width: 100%;
    }
    
    .lotto-numbers {
        gap: 8px;
    }
    
    .lotto-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
