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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

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

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

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

#round-info {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
}

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.menu-btn {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.menu-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.menu-btn:active {
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.btn-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.btn-desc {
    font-size: 0.85rem;
    color: #666;
}

.content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: 200px;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.lottery-set {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lottery-set-header {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.lottery-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lottery-number {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

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

.frequency-list {
    max-height: 500px;
    overflow-y: auto;
}

.frequency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.frequency-item:hover {
    background: #f8f9ff;
}

.frequency-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.frequency-count {
    font-size: 1rem;
    color: #666;
}

.note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.2rem;
}

/* 역대 당첨번호 조회 스타일 */
.winning-info {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-top: 20px;
}

.winning-round {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.winning-numbers-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bonus-separator {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 5px;
}

.bonus-number {
    border: 3px solid white;
}

.bonus-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-top: 15px;
}

.winning-info .lottery-number {
    color: white;
    font-weight: 700;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .lottery-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .winning-round {
        font-size: 1.1rem;
    }

    .bonus-separator {
        font-size: 1.2rem;
    }
}
