* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: rgba(233,238,238,0);
    height: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Battle Container */
.battle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* Header Section */
.battle-header {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a1add 0%, #2d2d2def 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 0 rgba(255,255,255,0.1);
}

.battle-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.round-info {
    font-size: 18px;
    color: #87ceeb;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Battle Content */
.battle-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Players Row */
.players-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: flex-start;
}

/* Player Card */
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: flex-start;
    padding: 0;
    width: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1add 0%, #2d2d2def 100%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
    gap: 0;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Slot Image Container */
.slot-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.slot-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(31, 41, 55, 0) 40%,
        rgba(31, 41, 55, 0.05) 55%,
        rgba(31, 41, 55, 0.12) 65%,
        rgba(31, 41, 55, 0.22) 73%,
        rgba(31, 41, 55, 0.35) 80%,
        rgba(31, 41, 55, 0.5) 87%,
        rgba(31, 41, 55, 0.7) 94%,
        rgba(31, 41, 55, 0.9) 98%,
        rgba(31, 41, 55, 1) 100%
    );
    pointer-events: none;
}

/* Bet Amount Container */
.bet-amount {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.8));
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-width: 80px;
    height: 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* Player Column */
.player-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Win Tooltip */
.win-tooltip {
    position: relative;
    padding: 10px 5px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(220, 53, 69, 0.9));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
    text-align: center;
    max-width: 300px;
    margin-top: 8px;
    width: 100%;
}

/* Arrow pointing up */
.win-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(220, 53, 69, 0.9);
    filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.2));
}

.tooltip-content {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 0px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    }
}

/* Player Info Container */
.player-info {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(31, 41, 55, 0.2);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    margin: 0;
    z-index: 3;
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    max-height: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.player-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
    word-break: break-word;
    margin-bottom: 2px;
}

.game-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #87ceeb;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3) !important;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
    opacity: 1;
}

/* Stats Container */
.stats {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    border-radius: 0 0 12px 12px;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.8));
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 4px auto;
    width: 90%;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
}

.stat-label {
    font-size: 16px;
    color: #b0b0b0;
    font-weight: 700;
}

.stat-value {
    font-size: 19px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* VS Section */
.vs-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.vs-text {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* No Battle State */
.no-battle {
    width: 600px;
    text-align: center;
    padding: 20px 40px;
    background: linear-gradient(135deg, #181c2b 0%, #23243a 50%, #10121a 100%);
    border-radius: 12px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.no-battle-content h3 {
    font-size: 22px;
    color: #ff6b6b;
    margin-bottom: 15px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.no-battle-content p {
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    margin-bottom: 10px;
    font-weight: 700;
}

.no-battle-content a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 900;
    transition: color 0.2s;
}

.no-battle-content a:hover {
    color: #ffed4e;
}

.command {
    width: fit-content;
    margin: 0 auto;
    font-family: 'Rubik', sans-serif;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px 50px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 1px 0 rgba(255,255,255,0.07);
    font-weight: 900;
    font-size: 25px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.code {
    color: #ffd700;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0,0,0,0.3);
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .players-row {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .player-card {
        width: 90%;
        max-width: 300px;
    }
    
    .vs-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .battle-header h2 {
        font-size: 24px;
    }
    
    .round-info {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .battle-container {
        padding: 5px;
    }
    
    .player-card {
        width: 95%;
    }
    
    .stat-row {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .vs-text {
        font-size: 28px;
        width: 60px;
        height: 60px;
    }
    
    .battle-header h2 {
        font-size: 20px;
    }
    
    .round-info {
        font-size: 14px;
    }
    
    .player-name {
        font-size: 16px;
    }
    
    .game-name {
        font-size: 12px;
    }
}

/* Animation for new content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.battle-container {
    animation: fadeInUp 0.5s ease-out;
} 