/* 사다리 게임 스타일 */

.ladder-section {
    padding: 0;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.ladder-container {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

/* 시작점 */
.ladder-start {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    margin-bottom: 10px;
}

.start-point {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.start-point.active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* 캔버스 */
#ladder-canvas {
    display: block;
    margin: 0 auto;
}

/* 끝점 */
.ladder-end {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    margin-top: 10px;
}

.end-point {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.end-point.left {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.end-point.right {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.end-point.winner {
    animation: pulse-winner 0.5s ease-in-out 3;
}

@keyframes pulse-winner {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 결과 텍스트 */
.result-text {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    min-height: 30px;
    margin-bottom: 15px;
}

.result-text.left { color: var(--accent-red); }
.result-text.right { color: var(--accent-blue); }

/* 선택 버튼 */
.choice-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.choice-btn {
    flex: 1;
    padding: 20px 15px;
    border-radius: 15px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    color: #fff;
}

.choice-btn[data-choice="left"] {
    border-color: var(--accent-red);
}

.choice-btn[data-choice="right"] {
    border-color: var(--accent-blue);
}

.choice-btn.selected[data-choice="left"] {
    background: var(--accent-red);
    color: #fff;
}

.choice-btn.selected[data-choice="right"] {
    background: var(--accent-blue);
    color: #fff;
}

.choice-btn:disabled {
    opacity: 0.5;
}

.choice-label {
    font-size: 1.5rem;
    font-weight: 800;
}

.choice-odds {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 기록 섹션 */
.history-section {
    padding: 0;
    margin-top: 15px;
}

.history-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.history-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.history-item.left {
    background: var(--accent-red);
    color: #fff;
}

.history-item.right {
    background: var(--accent-blue);
    color: #fff;
}
