:root {
    --primary: #3b82f6;
    --secondary: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    perspective: 1000px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    width: 420px;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.header { text-align: center; margin-bottom: 30px; }

.name-container h1 {
    margin: 0;
    font-size: 2.2rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 10px;
}

.section-title {
    font-size: 1rem;
    color: var(--dark);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin: 25px 0 15px;
    font-weight: bold;
}

/* style.css 하단에 추가 또는 수정 */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative; /* 상대적 위치 부여 */
    z-index: 10; /* 다른 요소보다 앞으로 나오게 설정 */
}

.tech-item {
    position: relative;
    z-index: 11; /* 버튼이 확실히 위로 오도록 함 */
    padding: 8px 15px;
    background: var(--light);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 클릭을 방해할 수 있는 요소 방지 */
    pointer-events: auto !important; 
}



.tech-item:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
}

#msg-box {
    margin-top: 20px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #475569;
    min-height: 40px;
    display: none;
    /* msg-box가 버튼을 덮지 않도록 명시 */
    clear: both; 
}

/* 로또 버튼 전용 스타일 */
.nav-section {
    margin-top: 30px;
}

.nav-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: var(--dark);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #334155;
}