/* 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;
    margin-top: 50px;
    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: 1200px;
    margin: 0 auto;
    margin-top: -300px;   
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 0;
    position: relative;
    z-index: 1;
}

.result-card.show {
    opacity: 1;
    transform: translateY(0) scale(0.55);
    min-height: auto;
}

.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;
}

/* CARTE RETOURNABLE - 3D FLIP */
.card-flip-container {
    perspective: 1500px;
    margin: 2rem 0;
    position: relative;
}

.card-flip {
    position: relative;
    width: 100%;
    min-height: 800px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-flip.flipped {
    transform: rotateY(180deg);
}

.card-face {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front {
    position: relative;
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}

.flip-hint {
    position: absolute;
    top: 260px;
    right: 120px;
    color: rgba(255, 215, 0, 0.95);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    z-index: 10;
    transform: rotate(-30deg);
    transition: opacity 0.5s ease, display 0.5s ease;
}

.flip-hint::before {
    content: '👆';
    font-size: 2.8rem;
    display: inline-block;
    animation: clickAnimation 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

@keyframes clickAnimation {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.15);
    }
    50% {
        transform: translateY(0) scale(0.95);
    }
    75% {
        transform: translateY(-5px) scale(1.08);
    }
}

/* Styles de carte Pokémon - Format Horizontal */
.pokemon-card {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 40px 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%; }
}

/* Header avec image et infos côte à côte */
.pokemon-header {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    padding: 1.2rem;
    align-items: start;
}

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

.pokemon-image {
    width: 280px;
    height: 280px;
    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: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
    z-index: 10;
}

.pokemon-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pokemon-name {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    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.8rem;
    flex-wrap: wrap;
}

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

.pokemon-description {
    color: #ccc;
    font-size: 1.7rem;
    line-height: 1.8;
}

/* Statistiques - BARRES (RECTO) */
.pokemon-stats {
    padding: 0 3rem 1.5rem 3rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 1.2rem;
}

.pokemon-stats h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pokemon-stats h3::before {
    content: '📊';
    font-size: 1.6rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 120px 60px 1fr;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #FFD700;
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.stat-name {
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.stat-value {
    font-weight: 900;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-align: right;
}

.stat-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    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, #FF6B6B 0%, #FFA500 50%, #FFD700 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 107, 107, 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.4) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
}

/* Bouton de comparaison sous les stats */
.compare-random-btn {
    display: block;
    margin: 2rem auto 3rem auto;
    padding: 1rem 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.compare-random-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

.compare-random-btn.hidden {
    display: none;
}

/* Section de comparaison */
.comparison-section {
    padding: 0 3rem 2rem 3rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-section.show {
    opacity: 1;
    max-height: 3000px;
    padding-top: 2rem;
    margin-bottom: 1rem;
}

.comparison-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-section h3::before {
    content: '⚔️';
    font-size: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.comparison-pokemon {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.comparison-pokemon:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.comparison-pokemon.current {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.comparison-pokemon.opponent {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comparison-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.comparison-info h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.comparison-info .pokemon-id {
    position: static;
    display: inline-block;
    font-size: 0.85rem;
    padding: 4px 10px;
}

.comparison-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.comparison-stat-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-radius: 10px;
}

.comparison-stat-name {
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.comparison-stat-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.comparison-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B 0%, #FFA500 50%, #FFD700 100%);
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-stat-value {
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
    text-align: right;
}

.winner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* STATISTIQUES - HEXAGONE (VERSO) */
.stats-hexagon-container {
    padding: 0 3rem 3rem 3rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: -1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-hexagon-container h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compare-btn {
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.compare-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
}

.hexagon-wrapper {
    position: relative;
    width: 550px;
    height: 550px;
    margin: 0.5rem 0 1.5rem 0;
}

.hexagon-svg {
    width: 105%;
    height: 105%;
}

.hex-grid {
    fill: none;
    stroke: rgba(255, 215, 0, 0.15);
    stroke-width: 1;
}

.hex-stat-path {
    fill: rgba(255, 107, 107, 0.3);
    stroke: #FFD700;
    stroke-width: 3;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.hex-avg-path {
    fill: rgba(102, 126, 234, 0.2);
    stroke: #667eea;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.stat-label {
    fill: #FFD700;
    font-size: 15px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.stat-value-hex {
    fill: #fff;
    font-size: 18px;
    font-weight: 900;
    text-anchor: middle;
    dominant-baseline: middle;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.stats-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.legend-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    text-align: center;
    border-left: 3px solid #FFD700;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.legend-name {
    color: #aaa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.legend-value {
    color: #FFD700;
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.legend-diff-positive {
    color: #4ade80;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.legend-diff-negative {
    color: #f87171;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.legend-diff-neutral {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* 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: 1200px) {
    .pokemon-header {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
    
    .hexagon-wrapper {
        width: 480px;
        height: 480px;
    }
    
    .stats-legend {
        max-width: 550px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@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: 100%;
    }

    .pokemon-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

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

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

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

    .pokemon-stats, .stats-hexagon-container {
        padding: 2rem;
    }

    .stat-row {
        grid-template-columns: 100px 50px 1fr;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }

    .stat-name {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
    
    .hexagon-wrapper {
        width: 380px;
        height: 380px;
    }
    
    .stats-legend {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .legend-item {
        padding: 0.6rem 0.8rem;
    }
    
    .legend-name {
        font-size: 0.7rem;
    }
    
    .legend-value {
        font-size: 1.2rem;
    }
    
    .flip-hint {
        top: 180px;
        right: 60px;
        font-size: 5rem;
        padding: 0.6rem 1rem;
    }
    
    .flip-hint::before {
        font-size: 3.2rem;
    }
    
    .compare-random-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .comparison-section {
        padding: 0 2rem 2rem 2rem;
    }
    
    .comparison-section h3 {
        font-size: 1.5rem;
    }
    
    .comparison-header {
        flex-direction: column;
        text-align: center;
    }
    
    .comparison-image {
        width: 80px;
        height: 80px;
    }
    
    .comparison-stat-row {
        grid-template-columns: 80px 1fr 50px;
        gap: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .comparison-stat-name {
        font-size: 0.75rem;
    }
    
    .comparison-stat-value {
        font-size: 1.1rem;
    }
}

@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-name {
        font-size: 1.8rem;
    }

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

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

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

    .stat-row {
        grid-template-columns: 80px 45px 1fr;
        gap: 0.8rem;
    }

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

    .stat-value {
        font-size: 1.1rem;
    }
    
    .hexagon-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-value-hex {
        font-size: 13px;
    }
    
    .legend-item {
        padding: 0.5rem 0.7rem;
    }
    
    .legend-name {
        font-size: 0.65rem;
    }
    
    .legend-value {
        font-size: 1.1rem;
    }
    
    .flip-hint {
        top: 160px;
        right: 40px;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .flip-hint::before {
        font-size: 1.8rem;
    }
    
    .compare-random-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .comparison-section {
        padding: 0 1.5rem 2rem 1.5rem;
    }
    
    .comparison-section h3 {
        font-size: 1.3rem;
    }
    
    .comparison-image {
        width: 70px;
        height: 70px;
    }
    
    .comparison-info h4 {
        font-size: 1.2rem;
    }
    
    .comparison-stat-row {
        grid-template-columns: 70px 1fr 45px;
        gap: 0.6rem;
        padding: 0.5rem 0.6rem;
    }
    
    .comparison-stat-name {
        font-size: 0.7rem;
    }
    
    .comparison-stat-value {
        font-size: 1rem;
    }
    
    .winner-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}