:root {
    --container-width: 900px;
}

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

body {
    font-family: 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    background-color: #e8eaed;
    overflow-y: scroll;
}

/* ========== 페이지 래퍼 (전체 감싸기) ========== */
.page-wrapper {
    padding: 0 15px 15px 15px;
    min-height: 100vh;
}

/* ========== 왼쪽 상세정보 패널 ========== */
.detail-panel {
    width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    height: calc(100vh - 30px);
    position: fixed;
    top: 15px;
    left: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    font-size: 12px;
}

.detail-panel.open {
    display: flex;
}

.panel-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #0d1f3c;
    color: #fff;
    gap: 10px;
}

.panel-game-number {
    background: #fff;
    color: #0d1f3c;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.panel-teams {
    flex: 1;
    font-weight: bold;
    font-size: 15px;
}

.panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.panel-close:hover {
    color: #e74c3c;
}

.panel-subheader {
    padding: 8px 15px;
    background: #f8f9fa;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* 패널 섹션 */
.panel-section {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 6px 12px;
    background: #f2f2f2;
    color: #0d1f3c;
    font-weight: bold;
    font-size: 13px;
}

/* 최근경기 필터 버튼 */
.recent-filter-btns {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.recent-filter-btn {
    padding: 3px 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
}

.recent-filter-btn:hover {
    background: #f0f0f0;
}

.recent-filter-btn.active {
    background: #0d1f3c;
    color: #fff;
    border-color: #0d1f3c;
}

.section-tabs {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.section-tab {
    padding: 4px 10px;
    border: none;
    background: #666;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}

.section-tab.active {
    background: #e74c3c;
}

.section-content {
    padding: 10px;
    background: #fff;
}

/* 패널 내 테이블 공통 */
.panel-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.panel-section th,
.panel-section td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.panel-section th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.panel-section td.team-name {
    text-align: left;
}

/* 팀순위 패딩 제거 */
.standings-table th,
.standings-table td {
    padding: 6px 0;
}

/* 팀순위 Form 열 왼쪽 정렬 */
.standings-table td:last-child {
    text-align: left;
}

/* 하이라이트 행 */
.panel-section tr.highlight {
    background: #fff3cd !important;
}

.panel-section tr.highlight td {
    font-weight: bold;
}

/* 배당 테이블 */
.odds-table .odds-win { color: #e74c3c; font-weight: bold; }
.odds-table .odds-draw { color: #666; font-weight: bold; }
.odds-table .odds-lose { color: #3498db; font-weight: bold; }

/* 구매율 바 */
.purchase-bar-wrapper {
    padding: 5px 0;
}

.purchase-bar {
    display: flex;
    width: 100%;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-win {
    background: #e74c3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.bar-draw {
    background: #95a5a6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.bar-lose {
    background: #3498db;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* 결과 표시 (최근경기) */
.result-win {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.result-lose {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.result-draw {
    display: inline-block;
    background: #95a5a6;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

/* 다음경기 */
.next-games-wrapper {
    display: flex;
    gap: 15px;
}

.next-games-team {
    flex: 1;
}

.next-team-name {
    font-weight: bold;
    color: #0d1f3c;
    padding: 5px 0;
    border-bottom: 2px solid #e74c3c;
    margin-bottom: 8px;
}

.next-game-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.next-vs {
    color: #e74c3c;
    font-weight: bold;
}

.next-opponent {
    font-weight: 600;
}

.next-date {
    float: right;
    color: #888;
    font-size: 11px;
}

/* 포지션 */
.pos {
    color: #e74c3c;
    font-weight: bold;
}

/* ========== 메인 컨테이너 ========== */
.container {
    width: var(--container-width);
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ========== 상단 헤더 ========== */
.top-header {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #0d1f3c;
    height: 80px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 15px solid #e8eaed;
    border-bottom: 15px solid #e8eaed;
    box-shadow: inset 0 -3px 0 0 #e74c3c;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo span {
    color: #e74c3c;
}

/* 메인 메뉴 (승부식, 승무패) */
.main-menu {
    display: flex;
    gap: 0;
    height: 100%;
}

.main-menu button {
    padding: 0 20px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #8b9cb5;
    transition: all 0.2s;
}

.main-menu button:hover {
    color: #fff;
}

.main-menu button.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom: 3px solid #e74c3c;
}

/* 필터 (경기종목, 경기유형) */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.dropdown {
    padding: 6px 12px;
    border: 1px solid #3d5a80;
    border-radius: 4px;
    font-size: 13px;
    background: #1a3a5c;
    color: #fff;
    cursor: pointer;
}

.dropdown:focus {
    outline: none;
    border-color: #e74c3c;
}

.dropdown option {
    background: #1a3a5c;
    color: #fff;
}

/* ========== 인증 영역 ========== */
.auth-area {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #3d5a80;
}

.user-name {
    color: #fff;
    font-size: 12px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.back-link {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.auth-btn {
    padding: 5px 12px;
    border: 1px solid #3d5a80;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.login-btn {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.login-btn:hover {
    background: #357ae8;
}

.logout-btn {
    background: transparent;
    color: #8b9cb5;
    border-color: #3d5a80;
}

.logout-btn:hover {
    color: #fff;
    border-color: #fff;
}

.mypage-btn {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
    font-weight: bold;
}

.mypage-btn:hover {
    background: #219a52;
}

/* 승무패 저장 버튼 */
.smp-save-btn {
    background: #27ae60 !important;
    color: #fff;
}

.smp-save-btn:hover {
    background: #219a52 !important;
}

/* ========== 마이페이지 ========== */
.mypage-content {
    padding: 20px;
    background: #e8eaed;
    min-height: 80vh;
}

.mypage-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mypage-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #0d1f3c;
}

.mypage-name {
    font-size: 18px;
    font-weight: bold;
    color: #0d1f3c;
}

.mypage-email {
    font-size: 13px;
    color: #888;
}

.withdraw-btn {
    margin-left: auto;
    padding: 6px 14px;
    background: #fff;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.withdraw-btn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.mypage-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.mypage-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #0d1f3c;
}

.mypage-section-header select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.mypage-empty {
    padding: 40px;
    text-align: center;
    color: #888;
    background: #fff;
    border-radius: 8px;
}

.mypage-round-group {
    margin-bottom: 20px;
}

.mypage-round-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #0d1f3c;
    padding: 8px 15px;
    border-radius: 6px 6px 0 0;
}

.mypage-card {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 12px 15px;
}

.mypage-card:last-child {
    border-radius: 0 0 6px 6px;
}

.mypage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mypage-card-name {
    font-weight: bold;
    font-size: 14px;
    color: #0d1f3c;
}

.mypage-card-date {
    font-size: 11px;
    color: #999;
}

.mypage-card-picks {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.mypage-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px;
    background: #f5f5f5;
    border-radius: 4px;
    width: 52px;
}

.pick-num {
    font-size: 10px;
    color: #999;
}

.pick-types {
    font-size: 12px;
    font-weight: bold;
    color: #0d1f3c;
}

.pick-actual {
    font-size: 10px;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 2px;
    margin-top: 2px;
}

.pick-correct {
    background: #d4edda;
    border: 1px solid #28a745;
}

.pick-wrong {
    background: #f8d7da;
    border: 1px solid #dc3545;
}

.mypage-card-result {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: bold;
}

.result-correct {
    color: #28a745;
}

.result-wrong {
    color: #dc3545;
}

.mypage-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.mypage-apply-btn {
    padding: 5px 15px;
    background: #0d1f3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.mypage-apply-btn:hover {
    background: #1a3a5c;
}

.mypage-delete-btn {
    padding: 5px 15px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.mypage-delete-btn:hover {
    background: #c0392b;
}

.menu-link {
    color: #fff;
    text-decoration: none;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
}

.menu-link:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== 경기 테이블 ========== */
.content {
    padding: 4px;
    background-color: #e8eaed;
}

.table-area {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 6px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
}

th {
    background: #0d1f3c;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid #e74c3c;
}

td {
    border-bottom: 1px solid #eee;
    color: #333;
}

.game-row td:first-child {
    background: #f5f5f5;
}

.team-col {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

.team-home {
    text-align: right;
    font-weight: 600;
}

.team-away {
    text-align: left;
    font-weight: 600;
}

/* 행 호버 */
tbody tr.game-row:hover {
    background: #f8f9fa;
}

/* 배당 셀 */
.odds {
    color: #0d1f3c;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 55px;
}

.odds:hover {
    background: #e74c3c;
    color: #fff;
}

.odds.selected {
    background: #e74c3c;
    color: #fff;
}

/* + 버튼 */
.plus-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #0d1f3c;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
}

.plus-btn:hover {
    background: #e74c3c;
}

/* 결과 표시 */
.result {
    display: inline-block;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.result-cell {
    text-align: center;
    vertical-align: middle;
}

.result-pink {
    background-color: #e74c3c;
    color: #fff;
}

.result-sky {
    background-color: #3498db;
    color: #fff;
}

.result-highlight {
    background: #fff3cd;
    color: #856404;
}

.result-gray {
    background-color: #6c757d;
    color: #fff;
}

/* 날짜 구분선 */
.date-separator td {
    background: #0d1f3c;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    text-align: left;
    font-size: 13px;
    border-bottom: none;
    border-top: 15px solid #e8eaed;
}

/* 서브 헤더 (날짜별 컬럼명) */
.sub-header-row th {
    background: #f5f5f5;
    color: #0d1f3c;
    font-weight: 600;
    font-size: 12px;
    padding: 10px 6px;
    border-bottom: 2px solid #e74c3c;
}

.sub-header-row th:first-child {
    background: #f5f5f5;
}

/* ========== 계산기 (사이드바 - 컨테이너 바깥) ========== */
.calculator {
    width: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
    position: fixed;
    top: 15px;
    left: calc(50% + var(--container-width) / 2 + 50px);
}

.calculator h3 {
    margin-bottom: 15px;
    color: #0d1f3c;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.calc-row span:last-child {
    font-weight: bold;
    color: #0d1f3c;
}

#bet-amount {
    width: 120px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}

#bet-amount:focus {
    outline: none;
    border-color: #e74c3c;
}

/* 금액 화살표 제거 */
#bet-amount::-webkit-outer-spin-button,
#bet-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#expected {
    font-weight: bold;
    color: #e74c3c;
    font-size: 18px;
}

#selected-games {
    min-height: 80px;
    padding: 10px;
    background: #f8f9fa;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.selected-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btns button {
    flex: 1;
    padding: 10px;
    border: none;
    background: #0d1f3c;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s;
}

.action-btns button:hover {
    background: #e74c3c;
}

/* ========== 스크롤바 스타일 ========== */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 패널 섹션 자동 번호 */
.panel-content {
    counter-reset: section-counter;
}

.panel-section:not([style*="display: none"]) .section-title::before {
    counter-increment: section-counter;
    content: counter(section-counter) ". ";
}

/* 패널 테이블 컬럼 너비 고정 */
.standings-table,
.h2h-table,
.recent-table,
.lineup-table {
    table-layout: fixed;
}

/* 선수정보 테이블: 선수 열만 왼쪽, 나머지 가운데 */
.lineup-table td {
    text-align: center;
}

.lineup-table td:nth-child(2) {
    text-align: left;
}

/* 긴 텍스트 잘림 처리 */
.h2h-table td,
.recent-table td,
.standings-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 승무패 테이블 ========== */
.smp-table {
    width: 100%;
}

.smp-row td {
    padding: 12px 8px;
}

.smp-teams {
    font-weight: 600;
    text-align: center;
}

.smp-row td.smp-rate {
    text-align: center;
    cursor: pointer;
    padding: 4px 2px;
}

.smp-rate .rate-box {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 5px;
    min-width: 75px;
    transition: border-color 0.15s;
    background: #fff;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}
.smp-rate .rate-box.result-highlight {
    background: #fff3cd;
    border-color: #856404;
}

.smp-rate:hover .rate-box {
    border-color: #e74c3c;
}

.smp-rate.selected .rate-box {
    border: 2px solid #e74c3c;
    background: #fff0f0;
}

.smp-rate.selected .rate-value {
    color: #e74c3c;
}

.smp-rate .rate-value {
    font-weight: bold;
    font-size: 13px;
    color: #555;
}

.smp-rate .rate-count {
    font-size: 10px;
    color: #999;
    margin-top: 3px;
}

/* 승무패 계산기 */
.smp-calc {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-top: 2px solid #0d1f3c;
}

.smp-calc-info {
    font-size: 12px;
    color: #0d1f3c;
    margin-bottom: 10px;
    font-weight: bold;
}

.smp-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.smp-calc-table th,
.smp-calc-table td {
    border: 1px solid #ccc;
    padding: 6px 4px;
    text-align: center;
}

.smp-calc-table th {
    background: #0d1f3c;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
}

.smp-calc-table td {
    background: #fff;
    color: #0d1f3c;
    font-weight: bold;
}

.smp-calc-table td:last-child {
    text-align: left;
    font-size: 11px;
    padding-left: 8px;
    color: #333;
}

.smp-calc-del {
    background: none;
    border: none;
    color: #e74c3c;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}

.smp-calc-del:hover {
    color: #c0392b;
}

.smp-calc-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.smp-calc-buttons button {
    padding: 6px 20px;
    border: none;
    background: #0d1f3c;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}

.smp-calc-buttons button:hover {
    background: #1a3a5c;
}

.smp-prize-result {
    margin-top: 15px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}
.smp-prize-title {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 8px;
    color: #333;
}
.smp-prize-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.smp-prize-table th, .smp-prize-table td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: center;
}
.smp-prize-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #555;
}
.smp-prize-table td:first-child {
    font-weight: bold;
}
.smp-prize-table td:last-child {
    color: #c0392b;
    font-weight: bold;
}

/* Top 버튼 */
.top-btn {
    position: fixed;
    bottom: 30px;
    right: calc(50% - var(--container-width) / 2 - 90px);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #0d1f3c;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 150;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.top-btn:hover {
    background: #1a3a5c;
}

/* PC에서 토글 버튼 숨김 */
.calc-toggle {
    display: none;
}

/* ========== 모바일 반응형 ========== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .page-wrapper {
        padding: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    /* 헤더 */
    .top-header {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 10px;
        gap: 5px;
        min-height: 84px;
    }

    .logo { font-size: 18px; }

    .main-menu button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-bar {
        width: 100%;
        order: 3;
        gap: 5px;
    }

    .dropdown {
        flex: 1;
        padding: 5px 8px;
        font-size: 12px;
    }

    .auth-area {
        margin-left: auto;
        order: 2;
    }

    .user-name {
        display: none;
    }

    .auth-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .mypage-content {
        padding: 10px;
    }

    .mypage-profile {
        padding: 15px;
    }

    .mypage-avatar {
        width: 45px;
        height: 45px;
    }

    .mypage-card-picks {
        gap: 2px;
    }

    .mypage-pick {
        padding: 3px 2px;
        width: auto;
        flex: 1;
        min-width: 0;
    }

    /* 공통 테이블 축소 */
    th, td {
        padding: 6px 3px;
        font-size: 11px;
    }

    /* ── 승부식: 불필요 열 숨김 ── */
    /* 마감(2), 경기일(3), 유형(5), vs/조건(7), 결과(9) */
    #seungbu-content .sub-header-row th:nth-child(2),
    #seungbu-content .sub-header-row th:nth-child(3),
    #seungbu-content .sub-header-row th:nth-child(5),
    #seungbu-content .sub-header-row th:nth-child(7),
    #seungbu-content .sub-header-row th:nth-child(9),
    #seungbu-content .game-row td:nth-child(2),
    #seungbu-content .game-row td:nth-child(3),
    #seungbu-content .game-row td:nth-child(5),
    #seungbu-content .game-row td:nth-child(7),
    #seungbu-content .game-row td:nth-child(9) {
        display: none;
    }

    .team-col {
        width: auto;
        min-width: 55px;
        max-width: 80px;
        font-size: 11px;
    }

    .odds {
        min-width: 38px;
        padding: 4px 2px;
        font-size: 11px;
    }

    /* ── 승무패: 불필요 열 숨김 ── */
    /* 경기(1), 개최시간(2) */
    #smp-content .sub-header-row th:nth-child(1),
    #smp-content .sub-header-row th:nth-child(2),
    #smp-content .smp-row td:nth-child(1),
    #smp-content .smp-row td:nth-child(2) {
        display: none;
    }

    .smp-row td.smp-rate {
        padding: 3px 1px;
    }

    .smp-rate .rate-box {
        padding: 4px 3px;
        min-width: 58px;
    }

    .smp-rate .rate-value { font-size: 11px; }
    .smp-rate .rate-count { font-size: 8px; }

    /* 승무패 계산기 - 모바일 대응 */
    .smp-calc {
        padding: 8px;
    }

    .smp-calc-table {
        font-size: 10px;
        width: 100%;
    }

    .smp-calc-table thead tr {
        display: flex;
    }

    .smp-calc-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #ccc;
    }

    .smp-calc-table th,
    .smp-calc-table td {
        padding: 4px 2px;
        text-align: center;
    }

    /* 헤더: 1~14만 표시 */
    .smp-calc-table thead th:nth-child(-n+14) {
        flex: 0 0 calc(100% / 14);
    }

    /* 헤더: 1등예상, 예상금액 숨김 */
    .smp-calc-table thead th:nth-last-child(1),
    .smp-calc-table thead th:nth-last-child(2) {
        display: none;
    }

    /* 데이터: 1~14 picks 윗줄 */
    .smp-calc-table tbody td:nth-child(-n+14) {
        flex: 0 0 calc(100% / 14);
    }

    /* 데이터: 1등예상, 예상금액 아랫줄 + 라벨 */
    .smp-calc-table tbody td:nth-last-child(2) {
        flex: 0 0 30%;
        text-align: left;
        border-top: 1px solid #eee;
    }

    .smp-calc-table tbody td:nth-last-child(2)::before {
        content: '1등예상: ';
        color: #666;
    }

    .smp-calc-table tbody td:nth-last-child(1) {
        flex: 0 0 70%;
        text-align: left;
        border-top: 1px solid #eee;
    }

    .smp-calc-table tbody td:nth-last-child(1)::before {
        content: '예상금액: ';
        color: #666;
    }

    /* 상세 패널 - 전체화면 */
    .detail-panel {
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        border-radius: 0;
    }

    /* 계산기 사이드바 - 하단 토글 */
    .calculator {
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 0;
        top: auto;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        z-index: 200;
        padding: 0;
        background: #fff;
    }

    /* 토글 버튼만 보이게 (접힌 상태) */
    .calculator h3,
    .calculator .calc-row,
    .calculator #selected-games,
    .calculator .action-btns {
        display: none;
    }

    /* 펼친 상태 */
    .calculator.calc-open h3,
    .calculator.calc-open .calc-row,
    .calculator.calc-open #selected-games,
    .calculator.calc-open .action-btns {
        display: flex;
    }

    .calculator.calc-open #selected-games {
        display: block;
    }

    .calculator.calc-open {
        padding: 0 15px 15px;
        max-height: 50vh;
        overflow-y: auto;
    }

    /* 토글 버튼 */
    .calc-toggle {
        display: block;
        width: 100%;
        padding: 10px;
        border: none;
        background: #0d1f3c;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 8px 8px 0 0;
    }
}