@charset "UTF-8";
/* ==========================================================================
   [020100 0201_서브_대회안내 피그마 공식 시안 엄격 준수 전용 스타일시트]
   - 시안 코드: 020100 (0201_서브_대회안내)
   - 피그마 URL: https://www.figma.com/design/ATXvqDjolDOLwUEiT5Yumo/%ED%95%99%EA%B5%90%EC%B2%B4%EC%9C%A1%EC%A7%84%ED%9D%A5%ED%9A%8C_1%EC%B0%A8-%EC%8B%9C%EC%95%88_%EC%9E%91%EC%97%85%EC%9A%A9?node-id=305-3876&t=vO887bv2S4hKWZzj-1
   - 파일 위치: /page_006/style.css
   - 원칙: 피그마 시안 020100 원본 디자인, 컬러, 폰트 규격, 여백, 아이콘 형태 1:1 완벽 고정 (임의 변경 절대 금지)
   ========================================================================== */

/* ==========================================================================
   1. 디자인 시스템 토큰 및 변수 설정 (Design System Tokens & CSS Variables)
   ========================================================================== */
:root {
    /* 브랜딩 테마 컬러 */
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --dark-header: #ffffff;
    --lnb-bg: #414e5b;
    --body-bg: #f3f4f6;
    --card-bg: #ffffff;

    /* 텍스트 컬러 시스템 */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;

    /* 하단 패밀리바 및 푸터 컬러 */
    --family-bg: #1a202c;
    --footer-bg: #2d3748;
    --footer-text: #a0aec0;
    --footer-accent: #f59e0b;

    /* 폰트 및 트랜지션 */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --transition-smooth: all 0.25s ease-in-out;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 기본 리셋 및 전역 스타일 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   2. 최상단 유틸리티 링크 바 (Top Utility Links Bar)
   ========================================================================== */
/* ==========================================================================
   2. 최상단 헤더 레이아웃 스타일 (두 번째 정상 캡처 시안 100% 동일)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* 상단 로고 & 우측 2줄 링크 헤더 탑 라인 (캡처 이미지 여백 1:1 완벽 정합) */
.header-top-row {
    padding: 24px 0 20px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* 우측 2줄 영역 (1줄 포털 링크, 2줄 로그인/회원가입) */
.header-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.top-portal-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-portal-links .portal-item {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.top-portal-links .portal-item:hover {
    color: var(--primary-blue);
}

.top-portal-links .ext-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.top-auth-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-auth-links .auth-item {
    font-size: 0.92rem;
    color: #1e293b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.top-auth-links .auth-item:hover {
    color: var(--primary-blue);
}

.top-auth-links .auth-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* GNB 메뉴 & 전체메뉴 라인 (로고와 메뉴 사이 구분선 색상 #D1D1D1 적용) */
.gnb-bar-row {
    border-top: 1px solid #D1D1D1;
    padding: 0;
}

.gnb-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
}

.gnb-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.gnb-item a {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 0;
    transition: var(--transition-smooth);
}

.gnb-item.active a {
    color: #1e293b;
    font-weight: 800;
}

.gnb-item a:hover {
    color: var(--primary-blue);
}

.gnb-item .arrow-down {
    width: 14px;
    height: 14px;
    fill: #64748b;
}

.btn-all-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-all-menu:hover {
    background-color: #f1f5f9;
}

/* ==========================================================================
   4. LNB 브레드크럼 배너 (순차적 스티키 고정 position: sticky 적용)
   ========================================================================== */
.lnb-banner {
    background-color: #586370;
    height: 48px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lnb-container {
    height: 100%;
}

.lnb-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 1) 짙은 사각형 홈 아이콘 박스 */
.lnb-home-box {
    width: 54px;
    height: 100%;
    background-color: #404a55;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.lnb-home-box:hover {
    background-color: #353e48;
}

.lnb-home-svg {
    width: 22px;
    height: 22px;
}

/* 2) 대회안내 텍스트 & 우측 꺾쇠 드롭다운 버튼 */
.lnb-dropdown-wrap {
    height: 100%;
}

.lnb-dropdown-btn {
    background: transparent;
    border: none;
    height: 100%;
    width: 240px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lnb-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.lnb-text {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.lnb-arrow-svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   5. 서브 헤더 타이틀 영역 (Sub Header Title Section)
   ========================================================================== */
.sub-header-title {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.page-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.page-sub-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   메인 컨텐츠 영역 (사용자 요청에 따라 padding 0 전역 완전 고정 적용)
   ========================================================================== */
.main-content {
    padding: 0;
}

/* ==========================================================================
   4. 상단 대회 검색 바 스타일 (020100 & 020101-01 시안 분리 구현)
   ========================================================================== */
/* 020100 초기 접속 시 및 검색 후 상단 바 카드 (순차적 스티키 고정 top: 0) */
.search-bar-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    /* position: sticky;
    top: 0;
    z-index: 99; 스티키 시 상단에 고정되도록 */
}

.search-bar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.btn-blue-select {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-blue-select:hover {
    background-color: var(--primary-hover);
}

/* 020101-01 조건 검색 후 대회 검색 조건 요약 바 */
.search-bar-card.active-search-bar {
    padding: 14px 20px;
    justify-content: flex-start;
    gap: 16px;
}

.search-bar-card.active-search-bar .search-bar-title {
    font-size: 1.15rem;
    white-space: nowrap;
}

/* 중앙 연푸른색 소프트 박스 (선택 칩 중앙 정렬) */
.soft-blue-summary-bar {
    background-color: #edf4fe;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

/* 🔘 선택된 요약 칩 스타일 (줄바꿈 시 좌측 정렬) */
.summary-pill-chip {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-align: left;
}

/* 우측 대회정보 변경 파란색 버튼 */
.btn-change-condition {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-change-condition:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* 메인 빈 상태/안내 카드 박스 (Empty State Main Card) */
.empty-info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.empty-icon-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border-radius: 50%;
    color: #94a3b8;
}

.empty-icon-wrap svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.empty-card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.btn-dark-select {
    background-color: #475569;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-dark-select:hover {
    background-color: #334155;
    transform: translateY(-1px);
}

/* ==========================================================================
   5. [020101-01 시안] 데이터 검색 후 하단 결과 영역 스타일 (첨부 캡처 시안 100% 동일)
   ========================================================================== */
.result-view-wrap {
    margin-top: 24px;
    animation: fadeInUp 0.35s ease-out;
}

/* 상단 4개 결과 네비게이션 탭 (참가팀, 대진표, 일정 및 결과, 팀순위) */
.result-tab-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.result-tab-item {
    background-color: transparent;
    color: #475569;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.result-tab-item:hover {
    color: #1e293b;
}

/* 다크 둥근 활성 탭 (선택된 탭 글자색 흰색 #ffffff) */
.result-tab-item.active {
    background-color: #475569;
    color: #ffffff !important;
}

/* 메인 결과 흰색 라운드 카드 컨테이너 */
.result-card-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 44px 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* 대회 헤더 & ── 종목 ── 디바이더 헤더 */
.comp-detail-header {
    text-align: center;
    margin-bottom: 28px;
}

.comp-title-large {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

/* ─── 농구 ─── 중앙 라인 디바이더 */
.sport-divider-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 260px;
}

.sport-divider-line .line-left,
.sport-divider-line .line-right {
    flex: 1;
    height: 1px;
    background-color: #cbd5e1;
}

.sport-name-text {
    font-size: 1.12rem;
    font-weight: 700;
    color: #334155;
}

/* 서브 종별 탭 바 (전체 | 남초부 | 여초부 | 남중부 | 여중부 | 남고부 | 여고부) */
.sub-category-tab-bar {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 32px;
    gap: 8px;
}

.sub-cat-btn {
    background: transparent;
    border: none;
    padding: 12px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-smooth);
    margin-bottom: -1px;
}

.sub-cat-btn:hover {
    color: #1e293b;
}

/* 활성화된 서브 탭 (파란색 언더라인 - 첨부 캡처 100% 동일!) */
.sub-cat-btn.active {
    color: #2563eb;
    font-weight: 800;
    border-bottom-color: #2563eb;
}

/* 데이터 테이블 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.data-table th {
    background-color: #f8fafc;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ==========================================================================
   active-col 외곽선 전용 테두리 강조 (배경색 변경 없음)
   ========================================================================== */

#targetTeamArea table {
    border-collapse: collapse !important;
}

/* 브라우저 줌 축소 시 collapsed border가 겹쳐 사라지지 않도록 강조선은 셀 내부에 그린다. */
#targetTeamArea table th.active-col,
#targetTeamArea table td.active-col {
    position: relative;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: 1px solid #e2e8f0 !important;
}

#targetTeamArea table th.active-col::before,
#targetTeamArea table th.active-col::after,
#targetTeamArea table td.active-col::before,
#targetTeamArea table td.active-col::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: -1px;
    bottom: -1px;
    width: 2px;
    background: #2563eb;
    pointer-events: none;
}

#targetTeamArea table th.active-col::before,
#targetTeamArea table td.active-col::before {
    left: -1px;
}

#targetTeamArea table th.active-col::after,
#targetTeamArea table td.active-col::after {
    right: -1px;
}

/* 1. 선택된 헤더(th) : 상단/좌/우 파란선, 하단은 내부 회색선 유지 */
#targetTeamArea table th.active-col {
    border-top: 2px solid #2563eb !important;
}

#targetTeamArea table th.active-col::before,
#targetTeamArea table th.active-col::after {
    top: 0;
}

/* 3. 맨 마지막 행 셀(td) : 하단 파란선으로 박스 닫기 */
#targetTeamArea table tbody tr:last-child td.active-col {
    border-bottom: 2px solid #2563eb !important;
}

#targetTeamArea table tbody tr:last-child td.active-col::before,
#targetTeamArea table tbody tr:last-child td.active-col::after {
    bottom: 0;
}

/* ==========================================================================
   8. 대회 조건 선택 모달 팝업 (단계별 누적 선택 UX - 피그마 시안 100% 동일)
   ========================================================================== */
/* ==========================================================================
   모바일 크롬 & 사파리 특성 전용 모달 배경 짤림 방지 (Safari Elastic Bounce & Chrome URL Bar Resize)
   ========================================================================== */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    height: 100% !important;
    height: 100dvh !important;
    touch-action: none;
}

/* 모달 백드롭 (iOS Safari/Chrome 하단 배경 가득 안차는 현상 100% 차단 오버플로우 마스크 지정) */
.modal-backdrop {
    display: none;
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    bottom: -300px;
    width: 100vw;
    width: 100%;
    min-height: 150vh;
    min-height: 150dvh;
    min-height: -webkit-fill-available;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: max(calc(env(safe-area-inset-top, 0px) + 112px), 116px) 12px max(calc(env(safe-area-inset-bottom, 0px) + 312px), 316px) 12px;
    box-sizing: border-box;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* 하단 검은 배경 가득 차도록 2중 하단 오버플로우 보장 가상 레이어 */
.modal-backdrop::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -500px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

/* 모달 컨테이너 (사파리 가시 뷰포트 내 수직 중앙 및 최대 높이 자동 제한) */
.modal-container {
    background-color: #ffffff;
    border-radius: 24px;
    width: 640px;
    max-width: calc(100% - 24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-height: 90dvh;
    max-height: 90svh;
}

@keyframes modalPopIn {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 모달 헤더 (iOS Safari 고정 영역 축소 방지) */
.modal-header {
    padding: 24px 32px 14px 32px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.03em;
}

.btn-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: var(--transition-smooth);
}

.btn-modal-close:hover {
    color: #1e293b;
}

.btn-modal-close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* 스탭 프로그레스 바 (라인 영역 축소 방지) */
.step-progress-line-wrap {
    padding: 0 32px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.progress-track {
    width: 100%;
    height: 3px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill-bar {
    height: 100%;
    width: 20%;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: width 0.35s ease;
}

/* 모달 본문 영역 (크롬/사파리 소형 휴대폰 높이 가변 반응형 및 터치 스크롤 최적화) */
.modal-body {
    padding: 0 32px 10px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

/* 각각의 Step 블록 컨테이너 */
.step-section-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 타이틀 라벨 */
.step-title-line {
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-num-text {
    color: #94a3b8;
    font-weight: 600;
}

.step-main-highlight {
    color: var(--primary-blue);
    font-weight: 800;
}

.step-sub-text {
    color: #334155;
    font-weight: 600;
}

/* 연푸른색 소프트 영역 (Light Blue Container Box) */
.soft-blue-box {
    background-color: #edf4fe;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.soft-blue-box.vertical-layout {
    flex-direction: column;
    align-items: flex-start;
}

/* 라디오 캡슐 카드 버튼 (줄바꿈 시 텍스트 좌측 정렬 고정) */
.radio-pill-item {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 7px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.radio-pill-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   라디오 원형 아이콘 정중앙(Center Alignment) 정밀 정렬 개선
   - position: relative 및 absolute absolute-center(top: 50%, left: 50%, transform: translate(-50%, -50%)) 기법으로
     디바이스 해상도, 글꼴 크기, 서브픽셀 렌더링에 상관없이 원 내부 파란점이 무조건 정중앙에 고정되도록 구현
   ========================================================================== */
.radio-circle-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background-color: #ffffff;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

/* 파란색 선택된 원형 아이콘 */
.radio-pill-item.selected .radio-circle-icon,
.radio-circle-icon.active-blue {
    border-color: var(--primary-blue);
    background-color: #ffffff;
}

/* 내부 파란 점 완벽 정중앙(Center) 절대 위치 고정 */
.radio-pill-item.selected .radio-circle-icon::after,
.radio-circle-icon.active-blue::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 라디오 캡슐 텍스트 (줄바꿈 시 좌측 정렬) */
.pill-text {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
}

/* 진행중 파란색 뱃지 (줄바꿈 금지 및 크기 축소 방지) */
.badge-status-ongoing {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    margin-left: 2px;
    background-color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

/* ==========================================================================
   대회 조건 선택 - 비활성화(Disabled) 및 선택완료(Completed) 스타일
   ========================================================================== */

/* 1) 라디오 알약(Pill) 비활성화 상태 */
.radio-pill-item.disabled,
.radio-pill-item:disabled,
.radio-pill-item[disabled] {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6;
    box-shadow: none !important;
}

.radio-pill-item.disabled .pill-text,
.radio-pill-item:disabled .pill-text {
    color: #94a3b8 !important;
}

.radio-pill-item.disabled .radio-circle-icon,
.radio-pill-item:disabled .radio-circle-icon {
    border-color: #cbd5e1 !important;
    background-color: #e2e8f0 !important;
}

.radio-pill-item.disabled .badge-status-ongoing,
.radio-pill-item:disabled .badge-status-ongoing {
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    background-color: #f8fafc !important;
}

/* 2) 선택완료(Completed) 항목 스타일 */
.radio-pill-item.completed {
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    cursor: pointer;
}

.radio-pill-item.completed .pill-text {
    color: #475569;
}

/* 3) 조건 선택 관련 버튼 비활성화 상태 */
.btn-blue-select:disabled,
.btn-blue-select.disabled,
.btn-dark-select:disabled,
.btn-dark-select.disabled,
.btn-change-condition:disabled,
.btn-change-condition.disabled {
    background-color: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.75;
}

/* 4) 스텝 영역 비활성화 처리 */
.step-section-block.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.step-section-block.disabled .step-main-highlight {
    color: #94a3b8;
}

/* 5) 이미 선택 완료된 이전 스탭(completed-step) 비활성화 표기 스타일 */
.completed-step {
    opacity: 0.8;
}

.completed-step .step-num-text {
    color: #cbd5e1;
}

.completed-step .step-sub-text {
    color: #64748b;
}

.radio-pill-item.selected.disabled {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.75;
    box-shadow: none !important;
}

.radio-pill-item.selected.disabled .pill-text {
    color: #64748b !important;
}

.radio-pill-item.selected.disabled .radio-circle-icon.active-blue {
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
}

.radio-pill-item.selected.disabled .radio-circle-icon.active-blue::after {
    background-color: #94a3b8 !important;
}

.radio-pill-item.selected.disabled .badge-status-ongoing {
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    background-color: #f8fafc !important;
}

/* 모달 하단 푸터 버튼 바 (iOS Safari 고정 푸터 축소/짤림 방지) */
.modal-footer {
    padding: 16px 32px 20px 32px;
    background-color: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

/* 닫기 및 초기화 라운드 버튼 */
.btn-footer-cancel,
.btn-footer-reset {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-footer-cancel:hover,
.btn-footer-reset:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* 조건 검색 활성화/비활성화 버튼 */
.btn-footer-submit {
    background-color: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: not-allowed;
    pointer-events: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-footer-submit.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-footer-submit.active:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ==========================================================================
   9. 하단 패밀리 사이트 바 (Family Site Selector Bar)
   ========================================================================== */
.family-site-bar {
    background-color: var(--family-bg);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.family-bar-inner {
    display: flex;
    gap: 16px;
}

.family-select-btn {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.family-select-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ==========================================================================
   10. 하단 푸터 영역 (Footer Section)
   ========================================================================== */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 0 36px;
    font-size: 0.88rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

/* 좌측 조직 및 대표 정보 */
.footer-info-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 750px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.phone-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px;
}

.phone-label {
    color: var(--footer-accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.main-phone-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.cs-info-text {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.cs-phones {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #cbd5e1;
}

.meta-label {
    color: var(--footer-accent);
    font-weight: 700;
    margin-right: 6px;
}

/* 우측 소셜 및 웹접근성 인증 마크 */
.footer-right-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.social-icons-group {
    display: flex;
    gap: 10px;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.wa-badge-box {
    background-color: #ffffff;
    padding: 8px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    font-weight: 800;
    font-size: 0.8rem;
    border: 2px solid #10b981;
}

.wa-badge-icon {
    width: 24px;
    height: 24px;
    background-color: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.7rem;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a.privacy-link {
    color: var(--footer-accent);
    font-weight: 800;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   11. 반응형 미디어 쿼리 (Responsive Layout Standards)
   ========================================================================== */
/* ==========================================================================
   11. 반응형 미디어 쿼리 (Responsive Layout Standards & Mobile Density Optimization)
   ========================================================================== */

/* 태블릿 해상도 (최대 992px) */
@media (max-width: 992px) {

    /* GNB 메뉴 숨김 및 모바일 메뉴 전환 준비 */
    .gnb-menu {
        display: none;
    }

    /* 푸터 및 패밀리 바 레이아웃 세로 정렬 */
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }

    .footer-right-block {
        align-items: flex-start;
    }

    .family-bar-inner {
        flex-direction: column;
        gap: 8px;
    }

    /* 컨테이너 좌우 여백 축소 */
    .container {
        padding: 0;
    }
}

/* 스마트폰 및 중소형 모바일 해상도 (최대 640px) - 정보 밀도 극대화 */
@media (max-width: 640px) {

    /* [1] 메인 컨텐츠 상하 여백 대폭 축소하여 화면 노출 정보량 증가 */
    .main-content {
        padding: 0;
    }

    /* [2] 상단 검색 카드 여백 및 패딩 최적화 */
    .search-bar-card {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        text-align: center;
        padding: 12px 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .search-bar-card.active-search-bar {
        align-items: stretch;
        padding: 10px 12px;
        gap: 10px;
    }

    .search-bar-card.active-search-bar .search-bar-title {
        font-size: 1.05rem;
    }

    /* 선택된 칩 요약 바 가로 스크롤/줄바꿈 여백 컴팩트화 */
    .soft-blue-summary-bar {
        justify-content: flex-start;
        padding: 6px 10px;
        gap: 6px;
        border-radius: 8px;
    }

    .summary-pill-chip {
        font-size: 0.8rem;
        padding: 3px 10px;
        border-radius: 14px;
    }

    .btn-change-condition,
    .btn-blue-select {
        width: 100%;
        padding: 9px 16px;
        font-size: 0.9rem;
    }

    /* [3] 빈 상태 카드 박스 여백 압축 */
    .empty-info-card {
        padding: 32px 16px;
        border-radius: 12px;
    }

    .empty-icon-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .empty-icon-wrap svg {
        width: 40px;
        height: 40px;
    }

    .empty-card-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .empty-card-desc {
        font-size: 0.88rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    /* [4] 메인 결과 카드 영역 여백 극대화 축소 (더 많은 데이터 한눈에 보기) */
    .result-view-wrap {
        margin-top: 14px;
    }

    /* 결과 탭 네비게이션 가로 터치 스크롤 (글자 짤림 방지 및 컴팩트화) */
    .result-tab-nav {
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-bottom: 10px;
    }

    /* 터치 스크롤바 숨김 처리 */
    .result-tab-nav::-webkit-scrollbar,
    .sub-category-tab-bar::-webkit-scrollbar,
    .modal-body::-webkit-scrollbar {
        display: none;
    }

    .result-tab-item {
        font-size: 0.88rem;
        padding: 8px 14px;
        flex: 0 0 auto;
        border-radius: 8px;
    }

    .result-card-container {
        padding: 20px 14px;
        border-radius: 14px;
    }

    .comp-detail-header {
        margin-bottom: 16px;
    }

    .comp-title-large {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .sport-divider-line {
        width: 200px;
        gap: 10px;
    }

    .sport-name-text {
        font-size: 1rem;
    }

    /* 서브 종별 탭 바 (가로 터치 스크롤 지원 및 마진 컴팩트화) */
    .sub-category-tab-bar {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        margin-bottom: 20px;
        padding-bottom: 2px;
    }

    .sub-cat-btn {
        padding: 8px 12px;
        font-size: 0.88rem;
        flex: 0 0 auto;
    }

    /* [5] 모달 팝업 반응형 및 모바일 세로 화면 최적화 (Safari/Chrome 상하단 컨트롤러 가림 방지) */
    .modal-backdrop {
        top: -100px;
        bottom: -300px;
        width: 100vw;
        width: 100%;
        min-height: 150vh;
        min-height: 150dvh;
        padding-top: max(calc(env(safe-area-inset-top, 0px) + 112px), 116px);
        padding-bottom: max(calc(env(safe-area-inset-bottom, 0px) + 316px), 320px);
        padding-left: 10px;
        padding-right: 10px;
        align-items: center;
        justify-content: center;
    }

    .modal-container {
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
        max-height: 90vh;
        max-height: 90dvh;
        max-height: 90svh;
        max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
    }

    .modal-header {
        padding: 12px 16px 6px 16px;
        flex-shrink: 0;
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .step-progress-line-wrap {
        padding: 0 16px;
        margin-bottom: 6px;
        flex-shrink: 0;
    }

    .modal-body {
        padding: 0 16px 8px 16px;
        gap: 8px;
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .step-title-line {
        font-size: 0.95rem;
        gap: 6px;
    }

    .soft-blue-box {
        padding: 6px 10px;
        gap: 6px;
        border-radius: 10px;
    }

    /* 모바일에서 라디오 캡슐 카드 높이 및 패딩을 축소하여 한 번에 많은 스탭 표시 */
    .radio-pill-item {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .pill-text {
        font-size: 0.85rem;
    }

    .radio-circle-icon {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
    }

    .modal-footer {
        padding: 8px 16px max(calc(10px + env(safe-area-inset-bottom, 0px)), 16px) 16px;
        gap: 6px;
        flex-shrink: 0;
    }

    .btn-footer-cancel,
    .btn-footer-reset,
    .btn-footer-submit {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
    }

    /* 푸터 및 하단 정보 축소 */
    .footer {
        padding: 32px 0 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .main-phone-num {
        font-size: 1.35rem;
    }
}

/* 초소형 모바일 디바이스 (최대 375px) - 극단적 여백 압축 */
@media (max-width: 375px) {
    .container {
        padding: 0;
    }

    .result-card-container {
        padding: 14px 10px;
    }

    .comp-title-large {
        font-size: 1.15rem;
    }

    .modal-header {
        padding: 12px 12px 6px 12px;
    }

    .modal-body {
        padding: 0 12px 6px 12px;
    }

    .btn-footer-cancel,
    .btn-footer-reset,
    .btn-footer-submit {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   12. 모바일 크롬 & 사파리 뷰포트 높이(Height) 축소 및 브라우저 컨트롤러 바 가림 방지 대응
   - iPhone 12 미만(SE, 8, 11 등) 소형 디바이스, 하단 툴바/주소창 노출 상태 완벽 지원
   ========================================================================== */

/* [1] 높이가 다소 작거나 주소창/하단 컨트롤러 바가 확장된 환경 (높이 670px 이하, iPhone 8/SE/11 미만 공통) */
@media (max-height: 670px) {
    .modal-backdrop {
        padding-top: max(env(safe-area-inset-top, 8px), 8px);
        padding-bottom: max(env(safe-area-inset-bottom, 12px), 12px);
    }

    .modal-container {
        max-height: 90vh;
        max-height: 90dvh;
        max-height: 90svh;
        border-radius: 14px;
    }

    .modal-header {
        padding: 12px 16px 6px 16px;
    }

    .modal-title {
        font-size: 1.08rem;
    }

    .step-progress-line-wrap {
        padding: 0 16px;
        margin-bottom: 6px;
    }

    .modal-body {
        padding: 0 16px 6px 16px;
        gap: 6px;
    }

    .step-title-line {
        font-size: 0.95rem;
    }

    .soft-blue-box {
        padding: 6px 10px;
        gap: 6px;
    }

    .radio-pill-item {
        padding: 5px 10px;
        font-size: 0.84rem;
    }

    .pill-text {
        font-size: 0.84rem;
    }

    .radio-circle-icon {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
    }

    /* iPhone 8/SE 등 non-notch 디바이스에서 브라우저 하단 컨트롤러 바에 가려지지 않도록 최소 14px 하단 패딩 강제 지정 */
    .modal-footer {
        padding: 8px 16px max(calc(8px + env(safe-area-inset-bottom, 0px)), 14px) 16px;
    }

    .btn-footer-cancel,
    .btn-footer-reset,
    .btn-footer-submit {
        padding: 7px 12px;
        font-size: 0.84rem;
    }

    /* 메인 빈상태 카드 컴팩트 패딩 */
    .empty-info-card {
        padding: 24px 16px;
    }
}

/* [2] iPhone SE 1세대/8 등 너비가 385px 미만 또는 높이가 580px 이하인 초소형 디바이스 전용 */
@media (max-width: 385px),
(max-height: 580px) {
    .modal-container {
        max-height: 90vh;
        max-height: 90dvh;
        max-height: 90svh;
        border-radius: 10px;
    }

    .modal-header {
        padding: 8px 12px 4px 12px;
    }

    .modal-title {
        font-size: 1rem;
    }

    .btn-modal-close svg {
        width: 20px;
        height: 20px;
    }

    .step-progress-line-wrap {
        padding: 0 12px;
        margin-bottom: 4px;
    }

    .modal-body {
        padding: 0 12px 4px 12px;
        gap: 4px;
    }

    .step-section-block {
        gap: 4px;
    }

    .soft-blue-box {
        padding: 5px 8px;
        gap: 4px;
    }

    .radio-pill-item {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .pill-text {
        font-size: 0.8rem;
    }

    /* 브라우저 하단 툴바 바운스 및 가림 현상 방지 패딩 */
    .modal-footer {
        padding: 6px 12px max(calc(6px + env(safe-area-inset-bottom, 0px)), 14px) 12px;
    }

    .btn-footer-cancel,
    .btn-footer-reset,
    .btn-footer-submit {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}
