/* Battle Arena Specific Styles */

/* Battle Header */
.battle-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.95), 
        rgba(26, 26, 46, 0.95)),
        url('../images/battle-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 2px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}

.battle-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 87, 34, 0.15) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.page-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.page-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.battle-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Battle Modes */
.battle-modes {
    padding: 6rem 0;
    background: var(--dark-purple);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mode-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.2);
}

.mode-card.pvp {
    border-color: rgba(65, 105, 225, 0.5);
}

.mode-card.pvp::before {
    background: var(--royal-blue);
}

.mode-card.tournament {
    border-color: rgba(255, 215, 0, 0.5);
}

.mode-card.tournament::before {
    background: var(--primary-gold);
}

.mode-card.raid {
    border-color: rgba(178, 34, 34, 0.5);
}

.mode-card.raid::before {
    background: var(--royal-red);
}

.mode-card.training {
    border-color: rgba(34, 139, 34, 0.5);
}

.mode-card.training::before {
    background: var(--royal-green);
}

.mode-icon {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.mode-icon i {
    font-size: 4rem;
    color: var(--primary-gold);
}

.mode-card.pvp .mode-icon i {
    color: var(--royal-blue);
}

.mode-card.tournament .mode-icon i {
    color: var(--primary-gold);
}

.mode-card.raid .mode-icon i {
    color: var(--royal-red);
}

.mode-card.training .mode-icon i {
    color: var(--royal-green);
}

.mode-content {
    padding: 2rem;
}

.mode-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.mode-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mode-features {
    list-style: none;
    margin-bottom: 2rem;
}

.mode-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.mode-features i {
    color: var(--primary-gold);
}

.tournament-info,
.raid-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tournament-prize,
.raid-boss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prize-label,
.boss-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.prize-amount,
.boss-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.tournament-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--royal-red);
    font-weight: bold;
}

.raid-health {
    margin-top: 1rem;
}

.health-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.health-text {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.btn-mode {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-mode:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.mode-card.pvp .btn-mode {
    background: linear-gradient(45deg, var(--royal-blue), #4169E1);
    color: white;
}

.mode-card.tournament .btn-mode {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
}

.mode-card.raid .btn-mode {
    background: linear-gradient(45deg, var(--royal-red), #B22222);
    color: white;
}

.mode-card.training .btn-mode {
    background: linear-gradient(45deg, var(--royal-green), #228B22);
    color: white;
}

/* Live Battles */
.live-battles {
    padding: 6rem 0;
    background: var(--medium-purple);
    border-top: 2px solid var(--border-gold);
    border-bottom: 2px solid var(--border-gold);
}

.battles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.battle-live {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.battle-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 87, 34, 0.1), 
        rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.battle-live:hover::before {
    opacity: 1;
}

.battle-live:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.battle-players {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.player:hover {
    background: rgba(255, 255, 255, 0.1);
}

.player img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
}

.player-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-gold);
}

.player-power {
    font-size: 0.9rem;
    color: var(--text-gray);
    background: rgba(255, 215, 0, 0.1);
    padding: 3px 10px;
    border-radius: 15px;
}

.vs-badge {
    background: var(--royal-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(178, 34, 34, 0);
    }
}

.player1 {
    text-align: center;
}

.player2 {
    text-align: center;
}

.battle-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.battle-type {
    background: rgba(65, 105, 225, 0.2);
    color: var(--royal-blue);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.battle-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.btn-spectate {
    background: linear-gradient(45deg, var(--royal-red), #B22222);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-spectate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(178, 34, 34, 0.3);
}

/* Battle Team */
.battle-team {
    padding: 6rem 0;
    background: var(--dark-purple);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border-gold);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.team-slot.leader {
    border-style: solid;
    border-color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.05);
}

.team-slot:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.slot-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gold);
    color: #000;
    padding: 5px 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nft-character {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.nft-character img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
    transition: transform 0.3s ease;
}

.team-slot:hover .nft-character img {
    transform: scale(1.05);
}

.character-info {
    text-align: center;
    width: 100%;
}

.character-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.character-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.character-stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.character-stats i {
    color: var(--primary-gold);
    font-size: 1rem;
}

.btn-edit-team {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-edit-team:hover {
    background: var(--primary-gold);
    color: #000;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--border-gold);
}

.total-power,
.win-rate,
.battle-count {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
}

.win-rate .stat-value {
    color: var(--royal-green);
}

.battle-count .stat-value {
    color: var(--royal-blue);
}

/* Battle History */
.battle-history {
    padding: 6rem 0;
    background: var(--medium-purple);
    border-top: 2px solid var(--border-gold);
}

.history-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 3rem;
    border: 1px solid var(--border-gold);
}

.history-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr;
    background: rgba(255, 215, 0, 0.1);
    padding: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid var(--border-gold);
}

.header-cell {
    text-align: center;
    color: var(--primary-gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.history-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    align-items: center;
}

.history-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.history-row.victory {
    border-left: 4px solid var(--royal-green);
}

.history-row.defeat {
    border-left: 4px solid var(--royal-red);
}

.row-cell {
    text-align: center;
    padding: 0.5rem;
}

.opponent {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.opponent img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

.result-badge {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.result-badge.win {
    background: rgba(34, 139, 34, 0.2);
    color: var(--royal-green);
}

.result-badge.loss {
    background: rgba(178, 34, 34, 0.2);
    color: var(--royal-red);
}

.reward-amount {
    font-weight: bold;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.reward-amount i {
    font-size: 1.2rem;
}

/* Battle Countdown */
.battle-countdown {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--royal-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.btn-enter-battle {
    background: white;
    color: var(--royal-red);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enter-battle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Battle Animation */
@keyframes swordSwing {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(-15deg) translateX(-10px); }
    75% { transform: rotate(15deg) translateX(10px); }
    100% { transform: rotate(0deg) translateX(0); }
}

@keyframes shieldBlock {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

@keyframes magicCast {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.battle-animation {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(45deg, 
        rgba(10, 10, 26, 0.8), 
        rgba(26, 26, 46, 0.8));
}

.animation-player {
    position: absolute;
    width: 100px;
    height: 100px;
    transition: all 0.3s ease;
}

.animation-player.player-1 {
    left: 20%;
    bottom: 50px;
}

.animation-player.player-2 {
    right: 20%;
    bottom: 50px;
}

.animation-player.attacking {
    animation: swordSwing 0.5s ease;
}

.animation-player.blocking {
    animation: shieldBlock 0.3s ease;
}

.animation-player.casting {
    animation: magicCast 0.6s ease;
}

/* Battle Sound Controls */
.battle-sound-controls {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.sound-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    transform: scale(1.1);
}

/* Battle Log */
.battle-log {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 2rem;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.battle-log::-webkit-scrollbar {
    width: 8px;
}

.battle-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.battle-log::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.log-entry.victory {
    color: var(--royal-green);
}

.log-entry.defeat {
    color: var(--royal-red);
}

.log-entry.damage {
    color: #ff6b6b;
}

.log-entry.heal {
    color: #51cf66;
}

/* Tournament Bracket */
.tournament-bracket {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.bracket-round {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.round-title {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.round-matches {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bracket-match {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-player.winner {
    color: var(--primary-gold);
    font-weight: bold;
}

.match-score {
    background: rgba(255, 215, 0, 0.1);
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
}

/* Battle Loading Screen */
.battle-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-title {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.loading-progress {
    width: 300px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 5px;
    transition: width 0.3s ease;
}

.loading-percentage {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.loading-tip {
    position: absolute;
    bottom: 2rem;
    color: var(--text-gray);
    font-style: italic;
    text-align: center;
    padding: 0 2rem;
}

/* Responsive Battle Arena */
@media (max-width: 1200px) {
    .history-header,
    .history-row {
        grid-template-columns: 60px 1fr 1fr 1fr;
        font-size: 0.85rem;
    }
    
    .header-cell:nth-child(4),
    .row-cell:nth-child(4),
    .header-cell:nth-child(5),
    .row-cell:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .battle-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battle-players {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vs-badge {
        order: -1;
        margin: 0 auto;
    }
    
    .battle-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .history-header,
    .history-row {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1rem;
    }
    
    .header-cell,
    .row-cell {
        padding: 0.5rem 0;
    }
    
    .battle-countdown {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .battle-stats {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}