/* Container principal du jeu */
.game-container {
    margin-top: 35px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    padding: 2rem;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.score-value {
    font-weight: 800;
    color: red;
    font-size: 1.3rem;
}

/* Zone d'ombre */
.shadow-zone {
    background: linear-gradient(135deg, red 0%, #ff6b6b 100%);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.shadow-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.pokemon-shadow-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.pokemon-shadow {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: brightness(0) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.pokemon-shadow.revealed {
    filter: none;
    animation: revealPokemon 0.8s ease-out forwards;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes revealPokemon {
    0% {
        filter: brightness(0) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
        transform: scale(0.8) rotateY(0deg);
    }
    50% {
        transform: scale(1.1) rotateY(180deg);
    }
    100% {
        filter: none;
        transform: scale(1) rotateY(360deg);
    }
}

.shadow-hint {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Zone de réponse */
.answer-zone {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

#pokemonGuess {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

#pokemonGuess:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, red 0%, #ff6b6b 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.submit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.submit-btn:active {
    transform: scale(0.95);
}

.submit-btn svg {
    width: 24px;
    height: 24px;
}

.feedback-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 30px;
    padding: 0.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feedback-message.correct {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.feedback-message.incorrect {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Bouton suivant */
.next-btn {
    display: block;
    margin: 2rem auto;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, red 0%, #ff6b6b 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.next-btn:active {
    transform: translateY(-1px);
}

.next-btn.hidden {
    display: none;
}

/* Carte résultat */
.result-card {
    max-width: 900px;
    margin: 1.5rem auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card.show {
    opacity: 1;
    transform: translateY(0);
}

.result-card.hidden {
    display: none;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, red 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles de carte Pokémon - Style FUT Champions */
.pokemon-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.pokemon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 25%, 
        transparent 50%, 
        rgba(255, 215, 0, 0.1) 75%, 
        transparent 100%);
    background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.pokemon-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 2rem 0 2rem;
    margin-bottom: 0;
}

.pokemon-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
}

.pokemon-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.pokemon-id {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.pokemon-info {
    width: 100%;
    text-align: center;
    padding: 0 2rem;
}

.pokemon-name {
    font-size: 2rem;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5),
                 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

.pokemon-types {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.type-badge {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pokemon-description {
    display: none;
}

/* Statistiques - Style FUT */
.pokemon-stats {
    padding: 0 1.8rem 1.8rem 1.8rem;
    margin-top: 0;
}

.pokemon-stats h3 {
    display: none;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border-left: 3px solid #FFD700;
}

.stat-name {
    min-width: 85px;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.stat-value {
    min-width: 45px;
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.stat-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.stat-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    position: relative;
}

.stat-bar::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%);
    border-radius: 10px 10px 0 0;
}

/* Types de Pokémon couleurs */
.type-normal { background: #A8A878; }
.type-fire { background: #F08030; }
.type-water { background: #6890F0; }
.type-electric { background: #F8D030; }
.type-grass { background: #78C850; }
.type-ice { background: #98D8D8; }
.type-fighting { background: #C03028; }
.type-poison { background: #A040A0; }
.type-ground { background: #E0C068; }
.type-flying { background: #A890F0; }
.type-psychic { background: #F85888; }
.type-bug { background: #A8B820; }
.type-rock { background: #B8A038; }
.type-ghost { background: #705898; }
.type-dragon { background: #7038F8; }
.type-dark { background: #705848; }
.type-steel { background: #B8B8D0; }
.type-fairy { background: #EE99AC; }

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        margin-top: 80px;
        padding: 1rem;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .score-board {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .shadow-zone {
        padding: 2rem 1rem;
    }

    .pokemon-shadow {
        width: 150px;
        height: 150px;
    }

    .input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .submit-btn {
        width: 100%;
        height: 50px;
        border-radius: 20px;
    }

    .pokemon-card {
        max-width: 320px;
    }

    .pokemon-image-container {
        height: 220px;
    }

    .pokemon-image {
        width: 180px;
        height: 180px;
    }

    .pokemon-name {
        font-size: 1.8rem;
    }

    .stat-row {
        padding: 0.5rem 0.8rem;
        gap: 0.6rem;
    }

    .stat-name {
        min-width: 70px;
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1.1rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.8rem;
    }

    .score-item {
        padding: 0.6rem 1rem;
    }

    .score-label {
        font-size: 0.9rem;
    }

    .score-value {
        font-size: 1.1rem;
    }

    .pokemon-card {
        max-width: 280px;
    }

    .pokemon-name {
        font-size: 1.6rem;
    }

    .pokemon-image-container {
        height: 200px;
    }

    .pokemon-image {
        width: 160px;
        height: 160px;
    }

    .result-title {
        font-size: 2rem;
    }

    .stat-name {
        min-width: 60px;
    }
}