* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
}

@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

body {
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    font-size: 12px;
    line-height: 1.5;
}

* {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: #000;
    border: 4px solid #FF8C00;
    padding: 20px;
    text-align: center;
    box-shadow: 4px 4px 0px #FF8C00;
    margin: 10px;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%), 
        linear-gradient(-45deg, #000 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #000 75%), 
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.game-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #000;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-weight: normal;
    letter-spacing: 1px;
    color: #FF8C00;
}

.tournament-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.8rem;
    font-weight: normal;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    color: #FF8C00;
}

.main-arena {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 0px;
}

.ring-container {
    flex: 2;
    position: relative;
    background: #000;
    border: 4px solid #FF8C00;
    padding: 10px;
    box-shadow: 4px 4px 0px #FF8C00;
    margin: 10px;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    background: #000;
    border: 2px solid #FF8C00;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.ring-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.spectator-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.commentary-box, .stats-panel, .betting-panel, .ai-thoughts-panel {
    background: #000;
    padding: 16px;
    border: 2px solid #FF8C00;
    box-shadow: 2px 2px 0px #FF8C00;
    margin: 5px;
}

.commentary-box h3, .stats-panel h3, .betting-panel h3, .ai-thoughts-panel h3 {
    color: #FF8C00;
    margin-bottom: 15px;
    font-size: 0.8rem;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-weight: normal;
}

.commentary-text {
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.8;
    font-family: 'Pixelify Sans', monospace;
    font-size: 0.6rem;
    color: #00FF00;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #111;
    border: 2px solid #FF8C00;
    border-radius: 4px;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-size: 0.6rem;
    gap: 8px;
}

.rank {
    color: #FFD700;
    font-weight: bold;
    min-width: 30px;
}

.leaderboard-item .fighter-name {
    color: #00FF00;
    flex: 1;
    margin-left: 10px;
}

.wins {
    color: #FF8C00;
    font-weight: bold;
    min-width: 20px;
    text-align: right;
}

.sol-earnings {
    color: #00FF00;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
    font-size: 0.5rem;
}

.betting-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bet-button {
    flex: 1;
    padding: 8px;
    background: #000;
    border: 2px solid #FF0000;
    color: #FF0000;
    font-family: 'Pixelify Sans', monospace;
    font-size: 0.6rem;
    font-weight: normal;
    cursor: pointer;
    box-shadow: 2px 2px 0px #FF0000;
    image-rendering: pixelated;
}

.bet-button:hover {
    background: #FF0000;
    color: #000;
}

.odds-display {
    text-align: center;
    font-size: 0.8rem;
    font-weight: normal;
    color: #FF8C00;
    font-family: 'Pixelify Sans', monospace;
}

/* AI Thought Process Styling */
.fighter-thoughts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fighter-thought {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 4px;
}

.fighter-thought .fighter-name {
    color: #FF8C00;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.thought-content {
    color: #00FF00 !important;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
    height: 60px !important;
    width: 100% !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    max-height: 60px !important;
    max-width: 100% !important;
    padding: 0px !important;
    margin: 0px !important;
    box-sizing: border-box !important;
}

.confidence-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confidence-fill {
    height: 8px;
    background: #00FF00;
    border-radius: 2px;
    transition: width 0.3s ease;
    min-width: 0;
}

.confidence-text {
    color: #00FF00;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-size: 0.9rem;
    min-width: 30px;
}

/* More specific targeting for thought content */
.fighter-thought .thought-content,
#thought1, #thought2, #thought3, #thought4,
div.thought-content {
    color: #00FF00 !important;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
    height: 60px !important;
    width: 100% !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    max-height: 60px !important;
    max-width: 100% !important;
    padding: 0px !important;
    margin: 0px !important;
    box-sizing: border-box !important;
}

/* Even more aggressive targeting */
div[id^="thought"] {
    color: #00FF00 !important;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
    height: 60px !important;
    width: 100% !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    max-height: 60px !important;
    max-width: 100% !important;
    padding: 0px !important;
    margin: 0px !important;
    box-sizing: border-box !important;
}

.control-panel {
    background: #000;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border: 4px solid #FF8C00;
    margin: 10px;
    box-shadow: 4px 4px 0px #FF8C00;
    font-family: 'Pixelify Sans', 'Courier New', monospace;
}

.control-btn {
    padding: 12px 24px;
    border: 2px solid #FF8C00;
    font-size: 0.8rem;
    font-weight: normal;
    cursor: pointer;
    background: #000;
    color: #FF8C00;
    font-family: 'Pixelify Sans', 'Courier New', monospace !important;
    box-shadow: 2px 2px 0px #FF8C00;
    image-rendering: pixelated;
}

.control-btn.primary {
    background: #000;
    border-color: #00FF00;
    color: #00FF00;
    box-shadow: 2px 2px 0px #00FF00;
}

.control-btn:hover {
    background: #FF8C00;
    color: #000;
}

.control-btn.primary:hover {
    background: #00FF00;
    color: #000;
}

.control-btn {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.control-btn:hover {
    text-decoration: none;
}

.fighter-selection {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    border: 4px solid #FF8C00;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 4px 4px 0px #FF8C00;
    margin: 10px;
}

.fighter-selection.active {
    display: flex;
}

.fighter-selection h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #FF8C00;
    font-family: 'Pixelify Sans', monospace;
    font-weight: normal;
}

.fighter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin-bottom: 30px;
}

.fighter-card {
    background: #000;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 2px solid #FF8C00;
    font-family: 'Pixelify Sans', monospace;
    box-shadow: 4px 4px 0px #FF8C00;
    image-rendering: pixelated;
}

.fighter-card:hover {
    background: #FF8C00;
    color: #000;
}

.fighter-card.selected {
    border-color: #00FF00;
    background: #00FF00;
    color: #000;
}

.fighter-avatar {
    font-size: 3rem;
    margin-bottom: 10px;
}

.fighter-card h4 {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #FF8C00;
    font-family: 'Pixelify Sans', monospace;
    font-weight: normal;
}

.fighter-card p {
    color: #00FF00;
    margin-bottom: 15px;
    font-family: 'Pixelify Sans', monospace;
    font-size: 0.6rem;
    font-weight: normal;
}

.fighter-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.5rem;
    color: #FF8C00;
    font-family: 'Pixelify Sans', monospace;
}

.selection-controls {
    display: flex;
    gap: 15px;
}

/* Animation classes */
.punch-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #ff6b6b, transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: punchExplosion 0.5s ease-out forwards;
}

@keyframes punchExplosion {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.damage-text {
    position: absolute;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.5rem;
    pointer-events: none;
    animation: damageFloat 1s ease-out forwards;
}

@keyframes damageFloat {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-arena {
        flex-direction: column;
    }
    
    .spectator-panel {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .commentary-box, .stats-panel, .betting-panel {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2rem;
    }
    
    .tournament-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .fighter-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
