/* 경마 게임 스타일 */

.track-section {
    padding: 0;
    margin-bottom: 15px;
    position: relative;
}

.track {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.finish-line {
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(
        0deg,
        #fff 0px,
        #fff 8px,
        #000 8px,
        #000 16px
    );
    z-index: 10;
}

/* 말 레인 */
.horse-lane {
    display: flex;
    align-items: center;
    height: 45px;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
}

.horse-lane:last-child {
    border-bottom: none;
}

.lane-number {
    width: 25px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.horse {
    position: absolute;
    left: 25px;
    font-size: 1.5rem;
    transition: left 0.1s linear;
}

.horse.winner {
    animation: bounce 0.3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 말 선택 */
.horse-select-section {
    padding: 0;
    margin-bottom: 15px;
}

.section-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.horse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.horse-btn {
    padding: 12px 8px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    transition: all 0.2s;
}

.horse-btn.selected {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: #000;
}

.horse-btn:disabled {
    opacity: 0.5;
}

.horse-btn-icon {
    font-size: 1.3rem;
}

.horse-btn-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.horse-btn-odds {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 말 색상 */
.horse-1 { color: #e74c3c; }
.horse-2 { color: #3498db; }
.horse-3 { color: #2ecc71; }
.horse-4 { color: #f39c12; }
.horse-5 { color: #9b59b6; }
.horse-6 { color: #1abc9c; }

/* 기록 섹션 */
.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: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 2px solid;
}

.history-item.h1 { border-color: #e74c3c; color: #e74c3c; }
.history-item.h2 { border-color: #3498db; color: #3498db; }
.history-item.h3 { border-color: #2ecc71; color: #2ecc71; }
.history-item.h4 { border-color: #f39c12; color: #f39c12; }
.history-item.h5 { border-color: #9b59b6; color: #9b59b6; }
.history-item.h6 { border-color: #1abc9c; color: #1abc9c; }
