body {
    background-color: #0a0a0a;
    color: #00ffdd;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#game-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #111;
    border: 1px solid #00ffdd;
    box-shadow: 0 0 20px #00ffdd;
}

#race-track {
    position: relative;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, #000, #1a1a1a);
    overflow: hidden;
}

.horse-container {
    position: absolute;
    width: 100%;
    transition: left 5s linear;
    left: 0;
}

#horse-container-0 { top: 20%; }
#horse-container-1 { top: 45%; }
#horse-container-2 { top: 70%; }

.horse {
    width: 50px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px #00ffdd);
}

#horse-0 { background-image: url('https://via.placeholder.com/50x30/ff00ff/000000?text=V'); }
#horse-1 { background-image: url('https://via.placeholder.com/50x30/00ffff/000000?text=MK9'); }
#horse-2 { background-image: url('https://via.placeholder.com/50x30/ffff00/000000?text=Neo'); }

.horse-name {
    font-size: 12px;
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    text-shadow: 0 0 5px #fff;
}

#finish-line {
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: repeating-linear-gradient(
        #00ffdd,
        #00ffdd 10px,
        #000 10px,
        #000 20px
    );
    box-shadow: 0 0 10px #00ffdd;
}

#management-panel {
    height: 30%;
    background: #1a1a1a;
    padding: 20px;
    border-top: 1px solid #00ffdd;
    border-bottom: 1px solid #00ffdd;
}

#management-panel h2 {
    text-align: center;
    margin-top: 0;
}

#horse-selection {
    display: flex;
    justify-content: space-around;
}

.horse-stat {
    text-align: center;
}

.horse-stat button {
    background: #00ffdd;
    color: #0a0a0a;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 10px;
}

#betting-panel {
    height: 30%;
    background: #1a1a1a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#player-balance {
    text-align: center;
    font-size: 24px;
    text-shadow: 0 0 10px #00ffdd;
}

.betting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.bet-input {
    width: 80px;
    background: #0a0a0a;
    border: 1px solid #00ffdd;
    color: #00ffdd;
    padding: 5px;
    text-align: center;
}

#start-race-btn, #next-race-btn {
    width: 100%;
    padding: 15px;
    background: #00ffdd;
    color: #0a0a0a;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #00ffdd;
}

#start-race-btn:hover, #next-race-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #111;
    padding: 30px;
    border: 1px solid #00ffdd;
    box-shadow: 0 0 20px #00ffdd;
    text-align: center;
    width: 80%;
    max-width: 300px;
}

#result-message {
    font-family: 'Megrim', cursive; /* A glitchy/futuristic font */
    font-size: 28px;
}
