/* 파워사다리 게임 스타일 - 베픽파워사다리 스타일 */

.ladder-game-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: 100vh;
}

.ladder-main {
    width: 100%;
    background: #fff;
}

/* 헤더 */
.ladder-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.ladder-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.ladder-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
}

.ladder-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.round-badge {
    padding: 0.375rem 0.875rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 600;
    color: #111827;
}

.round-badge strong {
    color: #3b82f6;
    font-size: 1rem;
}

.update-info {
    color: #6b7280;
}

.update-info strong {
    color: #ef4444;
    font-weight: 700;
}

/* 게임 설명 섹션 */
.game-description-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.2s;
}

.description-header:hover {
    background: #f9fafb;
}

.description-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.toggle-description {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: transform 0.3s;
}

.toggle-description .iconify {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.description-content {
    padding: 1.5rem;
    background: #fff;
}

.description-item {
    margin-bottom: 1.5rem;
}

.description-item:last-child {
    margin-bottom: 0;
}

.description-item h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.description-item ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.description-item li {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.description-item li strong {
    color: #111827;
    font-weight: 600;
}

/* 현재 라운드 카드 */
.current-round-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.current-round-card::before {
    display: none;
}

.round-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.round-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.round-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.round-no {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.round-timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.timer-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
}

/* 사다리 중계 및 베팅 메인 섹션 */
.ladder-main-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 사다리 중계 화면 (와이드) */
.ladder-broadcast-section {
    width: 100%;
    background: #000;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 0;
    overflow: hidden;
    min-width: 0;
}

.ladder-broadcast-header {
    margin-bottom: 1.5rem;
}

.broadcast-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
}

.ladder-broadcast-content {
    position: relative;
}

.ladder-board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ladder-start-point {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ladder-start-left {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.ladder-start-right {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.ladder-path-area {
    position: relative;
    background: #000000;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    border: 2px solid #333;
}

.ladder-path-area canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.ladder-ball-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.ladder-ball {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.6);
    position: absolute;
    transition: all 0.1s linear;
    border: 3px solid #fff;
}

/* 대기 애니메이션 */
.waiting-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    color: #fff;
}

.waiting-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.waiting-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ladder-result-area {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 1.5rem;
}

.result-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.result-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.result-point-left .result-label {
    color: #60a5fa;
}

.result-point-right .result-label {
    color: #f87171;
}

.result-odds {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: #fff;
    min-width: 100px;
    text-align: center;
}

.result-point-left .result-odds {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.result-point-right .result-odds {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 베팅 선택 영역 (하단) */
.betting-options-section {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

/* 첫 번째 줄: 홀/짝, 좌/우, 3줄/4줄 수평 정렬 */
.betting-options-row-first {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.betting-option-group-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.betting-options-buttons {
    display: flex;
    gap: 0.5rem;
}

.betting-options-buttons .bet-option-btn {
    flex: 1;
}

/* 두 번째 줄: 조합 베팅 */
.betting-option-group-combo {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.betting-options-combo-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.betting-options-combo-buttons .bet-option-btn {
    flex: 1;
}

.betting-group-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    text-align: left;
}

.bet-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #111827;
    flex: 1;
}

.bet-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 홀: 파란색 */
.bet-option-btn[data-bet-type="odd"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #fff;
}

.bet-option-btn[data-bet-type="odd"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bet-option-btn[data-bet-type="odd"] .bet-option-label,
.bet-option-btn[data-bet-type="odd"] .bet-option-odds {
    color: #fff;
}

/* 짝: 빨간색 */
.bet-option-btn[data-bet-type="even"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
}

.bet-option-btn[data-bet-type="even"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.bet-option-btn[data-bet-type="even"] .bet-option-label,
.bet-option-btn[data-bet-type="even"] .bet-option-odds {
    color: #fff;
}

/* 좌: 파란색 */
.bet-option-btn[data-bet-type="left"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #fff;
}

.bet-option-btn[data-bet-type="left"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bet-option-btn[data-bet-type="left"] .bet-option-label,
.bet-option-btn[data-bet-type="left"] .bet-option-odds {
    color: #fff;
}

/* 우: 빨간색 */
.bet-option-btn[data-bet-type="right"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
}

.bet-option-btn[data-bet-type="right"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.bet-option-btn[data-bet-type="right"] .bet-option-label,
.bet-option-btn[data-bet-type="right"] .bet-option-odds {
    color: #fff;
}

/* 3줄: 빨간색 */
.bet-option-btn[data-bet-type="line3"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
}

.bet-option-btn[data-bet-type="line3"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.bet-option-btn[data-bet-type="line3"] .bet-option-label,
.bet-option-btn[data-bet-type="line3"] .bet-option-odds {
    color: #fff;
}

/* 4줄: 파란색 */
.bet-option-btn[data-bet-type="line4"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #fff;
}

.bet-option-btn[data-bet-type="line4"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bet-option-btn[data-bet-type="line4"] .bet-option-label,
.bet-option-btn[data-bet-type="line4"] .bet-option-odds {
    color: #fff;
}

/* 조합 베팅: 좌3짝 - 빨간색 */
.bet-option-btn[data-bet-type="left3even"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
}

.bet-option-btn[data-bet-type="left3even"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.bet-option-btn[data-bet-type="left3even"] .bet-option-label,
.bet-option-btn[data-bet-type="left3even"] .bet-option-odds {
    color: #fff;
}

/* 조합 베팅: 우3홀 - 파란색 */
.bet-option-btn[data-bet-type="right3odd"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #fff;
}

.bet-option-btn[data-bet-type="right3odd"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bet-option-btn[data-bet-type="right3odd"] .bet-option-label,
.bet-option-btn[data-bet-type="right3odd"] .bet-option-odds {
    color: #fff;
}

/* 조합 베팅: 좌4홀 - 파란색 */
.bet-option-btn[data-bet-type="left4odd"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #fff;
}

.bet-option-btn[data-bet-type="left4odd"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bet-option-btn[data-bet-type="left4odd"] .bet-option-label,
.bet-option-btn[data-bet-type="left4odd"] .bet-option-odds {
    color: #fff;
}

/* 조합 베팅: 우4짝 - 빨간색 */
.bet-option-btn[data-bet-type="right4even"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
}

.bet-option-btn[data-bet-type="right4even"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.bet-option-btn[data-bet-type="right4even"] .bet-option-label,
.bet-option-btn[data-bet-type="right4even"] .bet-option-odds {
    color: #fff;
}

.bet-option-label {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.bet-option-odds {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.bet-option-amount {
    font-size: 0.75rem;
    color: #6b7280;
}

/* 베팅 금액 입력 그룹 */
.betting-amount-group {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.betting-amount-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.betting-amount-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.betting-amount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.betting-amount-input::placeholder {
    color: #9ca3af;
}

.betting-amount-quick {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.amount-quick-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-quick-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}

.betting-amount-quick-modal {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.amount-quick-btn-modal {
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-quick-btn-modal:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

/* 베팅 섹션 */
.betting-section {
    margin-top: 2rem;
}

.betting-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bet-btn {
    padding: 1.5rem;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.bet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.bet-btn-left::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.bet-btn-right::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bet-btn:hover::before {
    opacity: 1;
}

.bet-btn-left:hover {
    border-color: #3b82f6;
}

.bet-btn-right:hover {
    border-color: #ef4444;
}

.bet-btn-content {
    position: relative;
    z-index: 1;
}

.bet-btn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-line-label {
    font-size: 1.125rem;
    font-weight: 700;
}

.bet-btn-left .bet-line-label {
    color: #3b82f6;
}

.bet-btn-right .bet-line-label {
    color: #ef4444;
}

.bet-odds {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #fff;
}

.bet-btn-left .bet-odds {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.bet-btn-right .bet-odds {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bet-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bet-amount-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.bet-amount-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

/* 빈 상태 */
.no-round-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-icon {
    margin-bottom: 1rem;
}

.empty-text {
    font-size: 1.125rem;
    color: #9ca3af;
    font-weight: 500;
    margin: 0;
}

.next-round-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* 최근 결과 섹션 */
.recent-results-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 2rem;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem 0;
}

.recent-results-table {
    overflow-x: auto;
}

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

.results-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.results-table th {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
}

.results-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.results-table tbody tr:hover {
    background: #f9fafb;
}

.results-table tbody tr.result-left:hover {
    background: rgba(59, 130, 246, 0.05);
}

.results-table tbody tr.result-right:hover {
    background: rgba(239, 68, 68, 0.05);
}

.results-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: #111827;
}

.round-link {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.round-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.round-link strong {
    color: #3b82f6;
    font-weight: 700;
}

.start-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.start-left {
    background: #3b82f6;
}

.start-right {
    background: #ef4444;
}

.line-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.line-count-badge.line-3 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.line-count-badge.line-4 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    min-width: 60px;
}

.badge-left {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.badge-right {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.badge-odd {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.badge-even {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.combo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    min-width: 70px;
}

.pattern-combo-left3,
.combo-badge.pattern-combo-left3 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); /* 좌3짝: 빨간색 */
}

.pattern-combo-left4,
.combo-badge.pattern-combo-left4 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* 좌4홀: 파란색 */
}

.pattern-combo-right3,
.combo-badge.pattern-combo-right3 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* 우3홀: 파란색 */
}

.pattern-combo-right4,
.combo-badge.pattern-combo-right4 {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); /* 우4짝: 빨간색 */
}

/* 패턴 표시 섹션 */
.pattern-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 2rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.pattern-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.pattern-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pattern-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.pattern-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pattern-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    min-width: 40px;
    text-align: center;
}

.pattern-odd {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.pattern-even {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pattern-left {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.pattern-right {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.pattern-line {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.pattern-combo-left3 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); /* 좌3짝: 빨간색 */
}

.pattern-combo-left4 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* 좌4홀: 파란색 */
}

.pattern-combo-right3 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* 우3홀: 파란색 */
}

.pattern-combo-right4 {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); /* 우4짝: 빨간색 */
}

/* 모달 스타일 */
.selected-line-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.line-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
}

.selected-line-display .line-badge.badge-left {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.selected-line-display .line-badge.badge-right {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 반응형 */
@media (max-width: 1200px) {
    .betting-options-row-first {
        flex-wrap: wrap;
    }
    
    .betting-option-group-inline {
        flex: 1 1 calc(50% - 0.75rem);
    }
    
    .betting-options-combo-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .betting-options-combo-buttons .bet-option-btn {
        flex: 1 1 calc(50% - 0.25rem);
    }
}

@media (max-width: 768px) {
    .ladder-header {
        padding: 1rem 1.5rem;
    }

    .ladder-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .current-round-card {
        padding: 1.5rem;
    }

    .round-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .round-timer {
        align-items: flex-start;
    }

    .ladder-board-container {
        flex-direction: column;
        gap: 1rem;
    }

    .ladder-path-area {
        min-height: 400px;
        padding: 0.5rem;
    }

    .ladder-result-area {
        flex-direction: column;
        gap: 1rem;
    }

    .betting-buttons {
        grid-template-columns: 1fr;
    }

    .results-table {
        font-size: 0.875rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.75rem 0.5rem;
    }
}
