/* Dojo Fighter - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Realistic Mode Colors */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --accent: #c4a35a;
    --accent-dim: #8b7355;
    --health: #4a7c59;
    --stamina: #4a6fa5;
    --danger: #8b4049;
    --success: #4a7c59;

    /* Belt Colors */
    --belt-white: #f5f5f5;
    --belt-yellow: #f4d03f;
    --belt-orange: #e67e22;
    --belt-green: #27ae60;
    --belt-blue: #3498db;
    --belt-brown: #8b4513;
    --belt-black: #1a1a1a;
}

/* Stylized Mode Overrides */
body.stylized {
    --accent: #ffd700;
    --accent-dim: #daa520;
    --health: #2ecc71;
    --stamina: #3498db;
    --danger: #e74c3c;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    background: #000;
    color: var(--text-primary);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ========== CINEMATIC MOVIE STYLE ========== */

/* Cinematic Overlay Container */
#cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Letterbox Bars - Widescreen Movie Effect */
.letterbox-top,
.letterbox-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 8vh;
    background: #000;
    z-index: 100;
}

.letterbox-top {
    top: 0;
}

.letterbox-bottom {
    bottom: 0;
}

/* Film Grain Effect */
.film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(2%, 2%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(-1%, -1%); }
    80% { transform: translate(1%, 1%); }
    90% { transform: translate(-2%, -1%); }
}

/* Vignette Effect */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}

/* Cinematic Color Grading */
#game-container {
    filter: contrast(1.1) saturate(0.9);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loading-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Help Section on Loading Screen */
.help-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    border: 1px solid var(--accent-dim);
    max-width: 900px;
    max-height: 50vh;
    overflow-y: auto;
}

.help-section h2 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.help-columns {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-column {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.help-column h3 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--accent-dim);
    letter-spacing: 0.1em;
}

.help-group {
    margin-bottom: 0.8rem;
}

.help-group h4 {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-group p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.2rem 0;
    line-height: 1.4;
}

.help-group strong {
    color: var(--text-primary);
}

.key {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0 0.1rem;
}

.help-tips {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--accent-dim);
}

.help-tips h3 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.help-tips p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.4rem 0;
    text-align: center;
}

.help-tips strong {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .help-section {
        margin-top: 1rem;
        padding: 1rem;
        max-height: 40vh;
    }

    .help-section h2 {
        font-size: 1.4rem;
    }

    .help-columns {
        flex-direction: column;
        gap: 1rem;
    }

    .help-column {
        min-width: unset;
    }

    .help-column h3 {
        font-size: 1rem;
    }

    .help-group h4 {
        font-size: 0.75rem;
    }

    .help-group p, .help-tips p {
        font-size: 0.7rem;
    }
}

/* Help Popup */
.help-popup-content {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.help-popup-content h2 {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
}

.help-popup-content .menu-btn {
    display: block;
    margin: 1.5rem auto 0;
    min-width: 200px;
}

/* Help Button Styling */
.help-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), transparent);
    border-color: #3498db;
}

.help-btn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), transparent);
    border-color: #5dade2;
}

.loader-content h1 {
    font-size: 3rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.loader-bar {
    width: 300px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s;
}

#loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Game Container */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Menu Screens */
.menu-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile: allow scrolling from top instead of centering */
@media (max-width: 768px) {
    .menu-screen {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 40px;
    }
}

.menu-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

.game-title {
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(196, 163, 90, 0.3);
}

.game-logo {
    width: 280px;
    height: 280px;
    margin-bottom: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(196, 163, 90, 0.3);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(196, 163, 90, 0.2); }
    to { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(196, 163, 90, 0.4); }
}

@media (max-width: 600px) {
    .game-logo {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }
}

body.stylized .game-title {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-btn {
    background: transparent;
    border: 1px solid var(--accent-dim);
    color: var(--text-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

body.stylized .menu-btn:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.back-btn {
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.version-text {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Settings */
.settings-content {
    text-align: left;
}

.settings-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.settings-group {
    margin-bottom: 1.5rem;
}

.settings-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.toggle-switch {
    display: flex;
    gap: 0;
    border: 1px solid var(--accent-dim);
}

.toggle-btn {
    flex: 1;
    padding: 0.8rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: var(--bg-secondary);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Dojo Hub */
.hub-overlay {
    text-align: center;
    padding: 2rem;
}

.hub-overlay h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hub-instruction {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hub-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hub-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-dim);
    color: var(--text-primary);
    padding: 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.hub-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.hub-btn small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

.sparring-btn {
    grid-column: span 2;
    background: rgba(196, 163, 90, 0.1);
}

/* Dojo Hub Mobile Fix - ensure Back to Menu button is visible */
#dojo-hub-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hub-overlay {
    max-height: 100%;
    padding-bottom: 80px;
}

.hub-overlay .back-btn {
    margin-top: 1.5rem;
    width: auto;
    min-width: 200px;
}

/* Fixed Main Menu Button - always visible on mobile */
.fixed-main-menu-btn {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .fixed-main-menu-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--accent);
        color: var(--bg-primary);
        border: 2px solid var(--accent);
        padding: 15px 40px;
        font-size: 1.1rem;
        font-weight: bold;
        z-index: 200;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        border-radius: 8px;
    }

    .fixed-main-menu-btn:active {
        background: #fff;
        transform: translateX(-50%) scale(0.95);
    }

    /* Hide the inline back button on mobile since we have fixed one */
    .hub-overlay .back-btn {
        display: none;
    }

    .hub-overlay {
        padding: 1rem;
        padding-bottom: 100px;
    }

    .hub-buttons {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .sparring-btn {
        grid-column: span 1;
    }

    .hub-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Training UI */
.game-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
}

.game-ui button, .game-ui input, .game-ui select {
    pointer-events: auto;
}

.training-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 4px;
}

.training-timer {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.training-score {
    font-size: 1.5rem;
    color: var(--text-primary);
    align-self: center;
}

.training-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

body.stylized .training-prompt {
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1.05); }
}

.accuracy-meter {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.accuracy-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--danger), var(--stamina), var(--success));
    transform-origin: left;
    transition: transform 0.2s;
}

.exit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(139, 64, 73, 0.8);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    pointer-events: auto;
}

/* Pause Button */
.pause-btn {
    position: absolute;
    top: 20px;
    right: 80px;
    background: rgba(100, 100, 120, 0.8);
    border: 2px solid var(--accent-dim);
    color: white;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Pause Menu */
.pause-content {
    text-align: center;
    min-width: 280px;
}

.pause-content h2 {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(196, 163, 90, 0.3);
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pause-buttons .primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    font-size: 1.1rem;
}

/* Sparring HUD */
#sparring-hud {
    padding: 20px;
    z-index: 150;
}

/* ========== CINEMATIC FIGHTER HUD ========== */
.fighter-stats {
    position: absolute;
    top: calc(8vh + 20px);
    width: 320px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-left: 3px solid var(--accent);
    backdrop-filter: blur(5px);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.player-stats {
    left: 20px;
}

.ai-stats {
    right: 20px;
    text-align: right;
    border-left: none;
    border-right: 3px solid var(--accent);
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
}

.fighter-name {
    font-size: 1.4rem;
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    color: #fff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Cinematic style - both fighters equal, same colors */
.ai-stats .fighter-name {
    color: #fff;
}

.health-bar, .stamina-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin-bottom: 0.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.health-bar {
    height: 14px;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
    transition: width 0.3s ease-out;
    width: 100%;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    position: relative;
}

.health-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

/* Cinematic movie style - both fighters have matching health bar colors */
.ai-stats .health-fill {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.stamina-fill {
    height: 100%;
    background: linear-gradient(90deg, #2980b9 0%, #3498db 50%, #2980b9 100%);
    transition: width 0.2s ease-out;
    width: 100%;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.stance-indicator {
    font-size: 0.8rem;
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.3rem;
}

.round-info {
    position: absolute;
    top: calc(8vh + 15px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 0.8rem 2rem;
    border-radius: 0;
    border: 1px solid var(--accent-dim);
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    min-width: 140px;
}

.round-number {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.3rem;
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
}

.round-timer {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.special-cooldowns {
    position: absolute;
    bottom: 100px;
    left: 20px;
    display: flex;
    gap: 0.5rem;
}

.cooldown-slot {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cooldown-slot .key {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: bold;
}

.cooldown-slot .name {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.cooldown-slot.on-cooldown {
    opacity: 0.5;
}

.cooldown-slot.locked {
    opacity: 0.3;
}

.combo-popup {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    animation: comboFade 1s ease-out forwards;
}

body.stylized .combo-popup {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes comboFade {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(1.2); }
}

/* Partner Mode Selection */
.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-dim);
    color: var(--text-primary);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.mode-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.mode-name {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
}

.mode-desc {
    font-size: 0.85rem;
    opacity: 0.7;
}

.difficulty-select {
    margin-bottom: 2rem;
}

.difficulty-select label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.difficulty-select select {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-dim);
    color: var(--text-primary);
    font-size: 1rem;
}

/* Progression Screen */
.progression-content {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.progression-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--accent-dim);
}

.progression-header h2 {
    color: var(--accent);
}

.belt-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.belt-icon {
    width: 40px;
    height: 8px;
    background: var(--belt-white);
    border-radius: 2px;
}

.belt-icon.yellow { background: var(--belt-yellow); }
.belt-icon.orange { background: var(--belt-orange); }
.belt-icon.green { background: var(--belt-green); }
.belt-icon.blue { background: var(--belt-blue); }
.belt-icon.brown { background: var(--belt-brown); }
.belt-icon.black { background: var(--belt-black); border: 1px solid #333; }

.stats-panel, .techniques-panel, .gear-panel {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.stats-panel h3, .techniques-panel h3, .gear-panel h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-row > span:first-child {
    width: 100px;
    color: var(--text-secondary);
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s;
}

.stat-value {
    width: 30px;
    text-align: right;
}

.techniques-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.technique-item {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.technique-item.locked {
    opacity: 0.5;
}

.technique-item.unlocked {
    border-left: 3px solid var(--success);
}

.unlock-req {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dojo-points {
    font-size: 0.9rem;
    color: var(--accent);
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.gear-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-dim);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
    padding: 0.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gear-item:hover {
    background: rgba(196, 163, 90, 0.2);
}

.gear-item.owned {
    border-color: var(--success);
}

.gear-item.equipped {
    background: rgba(74, 124, 89, 0.3);
}

.gear-item.locked {
    opacity: 0.4;
}

/* Training/Sparring End Screens */
.training-results, .sparring-results {
    margin: 2rem 0;
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-gains {
    text-align: left;
    margin-bottom: 1rem;
}

.stat-gain-item {
    color: var(--success);
    font-size: 0.9rem;
}

/* Mobile Controls */
#mobile-controls {
    position: fixed;
    bottom: 8vh; /* Above letterbox bar */
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

#joystick-zone {
    position: absolute;
    left: 20px;
    bottom: 15px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: auto;
}

.joystick-thumb {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(196, 163, 90, 0.6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.action-buttons {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

.attack-row {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.attack-row.defense {
    justify-content: center;
    margin-top: 4px;
}

.action-btn {
    width: 65px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    background: rgba(20, 20, 40, 0.9);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.1s ease;
    user-select: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.action-btn .key-hint {
    font-size: 0.5rem;
    opacity: 0.6;
    margin-top: 2px;
}

.punches .action-btn {
    border-color: #e74c3c;
}

.kicks .action-btn {
    border-color: #3498db;
}

.defense .action-btn {
    border-color: #2ecc71;
    width: 80px;
}

.action-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.action-btn:active {
    background: var(--accent);
    color: var(--bg-primary);
    transform: scale(0.95);
}

/* Debug Overlay */
#debug-overlay {
    position: fixed;
    top: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: #0f0;
    z-index: 200;
    border-radius: 4px;
}

#debug-overlay div {
    margin-bottom: 0.3rem;
}

/* Responsive */
@media (max-width: 600px) {
    .game-title {
        font-size: 2rem;
    }

    .menu-content {
        padding: 1rem;
    }

    .hub-buttons {
        grid-template-columns: 1fr;
    }

    .sparring-btn {
        grid-column: span 1;
    }

    .fighter-stats {
        width: 150px;
        padding: 0.5rem;
    }

    .fighter-name {
        font-size: 0.75rem;
    }

    .health-bar, .stamina-bar {
        height: 8px;
    }

    .special-cooldowns {
        bottom: 220px;
    }

    .progression-content {
        padding: 1rem;
    }

    .gear-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Stylized Mode UI Enhancements */
body.stylized .menu-btn {
    border-width: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

body.stylized .hub-btn {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

body.stylized .health-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

body.stylized .stamina-fill {
    background: linear-gradient(90deg, #2980b9, #3498db);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

body.stylized .action-btn {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Hit Flash Effect */
.hit-flash {
    animation: hitFlash 0.1s ease-out;
}

@keyframes hitFlash {
    0% { filter: brightness(2); }
    100% { filter: brightness(1); }
}

/* Screen Shake Container */
#game-container.shake-light {
    animation: shakeLightAnim 0.1s ease-out;
}

#game-container.shake-heavy {
    animation: shakeHeavyAnim 0.15s ease-out;
}

@keyframes shakeLightAnim {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, 2px); }
}

@keyframes shakeHeavyAnim {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-4px, 2px); }
    40% { transform: translate(4px, -2px); }
    60% { transform: translate(-3px, 3px); }
    80% { transform: translate(3px, -1px); }
}

/* Knockout Overlay */
#knockout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.6) 100%);
}

#knockout-overlay.hidden {
    display: none;
}

.knockout-content {
    text-align: center;
    transform: scale(0);
    opacity: 0;
}

#knockout-overlay.animate .knockout-content {
    animation: knockoutAppear 0.8s ease-out forwards;
}

.knockout-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.knockout-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Victory colors */
#knockout-overlay.victory .knockout-title {
    color: #ffd700;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.8);
}

#knockout-overlay.victory .knockout-subtitle {
    color: #90EE90;
}

/* Defeat colors */
#knockout-overlay.defeat .knockout-title {
    color: #ff4444;
    text-shadow:
        0 0 20px rgba(255, 68, 68, 0.8),
        0 0 40px rgba(255, 68, 68, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.8);
}

#knockout-overlay.defeat .knockout-subtitle {
    color: #aaa;
}

@keyframes knockoutAppear {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(2deg);
        opacity: 1;
    }
    70% {
        transform: scale(0.95) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* End buttons container */
.end-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.end-buttons .primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.end-buttons .primary-btn:hover {
    background: linear-gradient(135deg, #d4b36a, var(--accent));
    transform: scale(1.05);
}

/* Mobile responsiveness for knockout */
@media (max-width: 768px) {
    .knockout-title {
        font-size: 3rem;
    }

    .knockout-subtitle {
        font-size: 1.5rem;
    }
}

/* Customization Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

.popup-overlay.hidden {
    display: none;
}

.popup-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-content h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Customize popup specific styling */
.customize-content {
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Fighter Tabs */
.fighter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.fighter-tab {
    background: var(--bg-primary);
    border: 2px solid var(--accent-dim);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fighter-tab:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.fighter-tab.active {
    border-color: var(--accent);
    background: rgba(196, 163, 90, 0.2);
    color: var(--accent);
}

/* Customize Panels */
.customize-panel {
    transition: opacity 0.2s ease;
}

.customize-panel.hidden {
    display: none;
}

.customize-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#preview-canvas {
    background: linear-gradient(180deg, #2a2a4a 0%, #1a1a2e 100%);
    border-radius: 8px;
    border: 1px solid var(--accent-dim);
}

.customize-section {
    margin-bottom: 1.5rem;
}

.customize-section h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.color-btn.selected {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Style Options */
.style-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.style-btn {
    background: var(--bg-primary);
    border: 2px solid var(--accent-dim);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.style-btn:hover {
    border-color: var(--accent);
    background: rgba(196, 163, 90, 0.1);
}

.style-btn.selected {
    border-color: var(--accent);
    background: rgba(196, 163, 90, 0.2);
}

.style-name {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.style-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Popup Buttons */
.popup-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.popup-buttons .menu-btn {
    flex: 1;
}

/* Mobile responsiveness for popup */
@media (max-width: 500px) {
    .popup-content {
        padding: 1.5rem;
    }

    .style-options {
        grid-template-columns: 1fr;
    }

    .color-btn {
        width: 36px;
        height: 36px;
    }
}

/* ========== CAMPAIGN MODE STYLES ========== */

/* Campaign Button Highlight */
.campaign-btn {
    background: linear-gradient(135deg, rgba(196, 163, 90, 0.2), transparent);
    border-color: var(--accent);
    position: relative;
    overflow: hidden;
}

.campaign-btn::before {
    content: '⚔️';
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
}

.campaign-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
}

/* Campaign Intro Screen */
.campaign-intro-content {
    text-align: center;
}

.campaign-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.campaign-desc {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.campaign-stats {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--accent-dim);
}

.campaign-stats .stat-item {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.campaign-stats .stat-label {
    color: var(--text-secondary);
}

.campaign-stats #best-run {
    color: var(--accent);
    font-weight: bold;
}

.campaign-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Campaign HUD */
#campaign-hud {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 60;
    pointer-events: none;
}

.fight-counter {
    background: linear-gradient(135deg, rgba(196, 163, 90, 0.3), rgba(139, 115, 85, 0.3));
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.power-ups-display {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 300px;
}

.powerup-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.powerup-icon .stack-count {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--bg-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
}

/* Power-Up Selection Popup */
.powerup-content {
    max-width: 600px;
    text-align: center;
}

.powerup-content h2 {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    margin-bottom: 0.5rem;
}

.fight-progress {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.powerup-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.powerup-card {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--accent-dim);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.powerup-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.powerup-card .powerup-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.powerup-card .powerup-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1rem;
}

.powerup-card .powerup-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Power-up card color theming */
.powerup-card[data-powerup="iron_fists"] { border-color: #ff6b35; }
.powerup-card[data-powerup="iron_fists"]:hover { box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3); }

.powerup-card[data-powerup="thunder_kicks"] { border-color: #ffd93d; }
.powerup-card[data-powerup="thunder_kicks"]:hover { box-shadow: 0 10px 30px rgba(255, 217, 61, 0.3); }

.powerup-card[data-powerup="lightning_speed"] { border-color: #4ecdc4; }
.powerup-card[data-powerup="lightning_speed"]:hover { box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3); }

.powerup-card[data-powerup="steel_body"] { border-color: #95a5a6; }
.powerup-card[data-powerup="steel_body"]:hover { box-shadow: 0 10px 30px rgba(149, 165, 166, 0.3); }

.powerup-card[data-powerup="endless_stamina"] { border-color: #2ecc71; }
.powerup-card[data-powerup="endless_stamina"]:hover { box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3); }

.powerup-card[data-powerup="precision_strike"] { border-color: #e74c3c; }
.powerup-card[data-powerup="precision_strike"]:hover { box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3); }

.powerup-card[data-powerup="vampiric_touch"] { border-color: #8e44ad; }
.powerup-card[data-powerup="vampiric_touch"]:hover { box-shadow: 0 10px 30px rgba(142, 68, 173, 0.3); }

.powerup-card[data-powerup="berserker_rage"] { border-color: #e74c3c; }
.powerup-card[data-powerup="berserker_rage"]:hover { box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3); }

/* Campaign Victory Screen */
.victory-title {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: victoryPulse 1.5s ease-in-out infinite;
}

@keyframes victoryPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.victory-subtitle {
    color: #4ade80;
    font-size: 1.3rem;
    margin: 1rem 0 2rem;
}

.victory-stats {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.victory-stats .stat-item {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

/* Campaign Defeat Screen */
.defeat-title {
    font-size: 3rem;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.defeat-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
}

.defeat-stats {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.defeat-stats .stat-item {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.defeat-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Power-Up Visual Effects on Fighter */
.powerup-glow-fists {
    box-shadow: 0 0 15px #ff6b35, 0 0 30px rgba(255, 107, 53, 0.5);
}

.powerup-glow-kicks {
    box-shadow: 0 0 15px #ffd93d, 0 0 30px rgba(255, 217, 61, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .powerup-choices {
        flex-direction: column;
        align-items: center;
    }

    .powerup-card {
        width: 90%;
        max-width: 200px;
    }

    .fight-counter {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .victory-title, .defeat-title {
        font-size: 2rem;
    }
}
