body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    font-family: 'Courier New', monospace;
    color: white;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

/* Top Container */
#top-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
}

/* Stats Panel */
#stats-panel {
    background: rgba(20, 20, 40, 0.8);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-header {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

#fight-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-label {
    font-size: 11px;
    color: #aaa;
}

#history-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.history-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #333;
}

.history-dot.champion {
    background-color: #cb9924;
}

.history-dot.challenger {
    background-color: #ff4444;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

.stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

#fighter-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 2px solid #444;
    padding-top: 15px;
}

.fighter-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.fighter-stat-name {
    font-size: 12px;
    font-weight: bold;
}

.champion-stat .fighter-stat-name {
    color: #cb9924;
}

.challenger-stat .fighter-stat-name {
    color: #ff4444;
}

.fighter-stat-record {
    font-size: 11px;
    color: #ccc;
}

/* Game Area */
#game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#money-display-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(20, 40, 20, 0.6);
    padding: 12px 30px;
    border-radius: 8px;
    border: 2px solid #4CAF50;
}

.money-label {
    font-size: 12px;
    color: #aaa;
}

#money-display {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
}

#gameCanvas {
    border: 3px solid #444;
    border-radius: 4px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#health-container {
    display: flex;
    gap: 40px;
}

.health-display {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.health-label {
    font-size: 12px;
    font-weight: bold;
}

.champion-color {
    color: #cb9924;
}

.challenger-color {
    color: #ff4444;
}

.health-value {
    font-size: 16px;
    color: #fff;
}

/* Betting Container */
#betting-container {
    background: rgba(20, 20, 40, 0.8);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 25px;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#bet-display-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bet-label {
    font-size: 14px;
    color: #aaa;
}

#bet-display {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    min-width: 150px;
    text-align: center;
}

#fighter-selection {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selection-label {
    font-size: 12px;
    color: #aaa;
}

.fighter-btn {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border: 2px solid #555;
    border-radius: 6px;
    background: rgba(40, 40, 60, 0.8);
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
}

.fighter-btn:hover {
    border-color: #888;
    background: rgba(60, 60, 80, 0.8);
}

.fighter-btn.active {
    border-color: #ffd700;
    background: rgba(80, 80, 100, 1);
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

#betting-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.bet-btn {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border: 2px solid #666;
    border-radius: 6px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.bet-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.bet-btn:active:not(:disabled) {
    transform: translateY(0);
}

.bet-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.max-bet {
    background: linear-gradient(145deg, #4a2a2a, #3a1a1a);
    color: #ff6666;
}

.clear-bet {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    color: #ccc;
}

#start-fight-btn {
    padding: 18px 60px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border: 3px solid #ffd700;
    border-radius: 8px;
    background: linear-gradient(145deg, #3a4a2a, #2a3a1a);
    color: #ffd700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

#start-fight-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(145deg, #4a5a3a, #3a4a2a);
}

#start-fight-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #555;
    color: #555;
}

#status-display {
    font-size: 14px;
    color: #ffd700;
    text-align: center;
    min-height: 20px;
}