* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a1428, #1e2a47);
    color: #c8aa6e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: rgba(9, 19, 39, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
    margin-top: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: #f0e6d2;
    text-shadow: 0 0 10px rgba(200, 170, 110, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    color: #cdbe91;
    font-size: 1.2rem;
}

.game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.champion-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background-color: #091327;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #463714;
    position: relative;
}

.champion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.3) grayscale(1);
    transition: all 0s ease;
    border-radius: 8px;
    opacity: 1; /* Aseguramos que esté visible cuando se cargue */
}

.champion-image.revealed img {
    filter: none;
    border: 2px solid #c8aa6e;
}

.hints {
    background-color: #091327;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #463714;
}

.hint {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1e2328;
}

.hint:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hint-title {
    color: #cdbe91;
    font-weight: bold;
    margin-bottom: 5px;
}

.hint-content {
    color: #f0e6d2;
}

.guess-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.input-group {
    display: flex;
    gap: 10px;
    position: relative;
}

input {
    flex: 1;
    padding: 12px 15px;
    background-color: #091327;
    border: 1px solid #463714;
    border-radius: 5px;
    color: #f0e6d2;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #c8aa6e;
    box-shadow: 0 0 5px rgba(200, 170, 110, 0.5);
}

button {
    padding: 12px 25px;
    background-color: #c8aa6e;
    color: #091327;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #f0e6d2;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.feedback {
    text-align: center;
    font-size: 1.2rem;
    min-height: 30px;
    margin-top: 10px;
}

.correct {
    color: #00ff00;
}

.incorrect {
    color: #ff3333;
}

.attempts {
    text-align: center;
    margin-top: 10px;
    color: #cdbe91;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: rgba(205, 190, 145, 0.1);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.new-game {
    background-color: #091327;
    color: #c8aa6e;
    border: 1px solid #463714;
}

.reveal {
    background-color: #5b3a1e;
    color: #f0e6d2;
}

/* Estilos para el autocompletado */
.autocomplete {
    position: relative;
    display: inline-block;
    width: 100%;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #463714;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #091327;
    border-radius: 0 0 5px 5px;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #091327; 
    border-bottom: 1px solid #463714; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-items div:hover {
    background-color: #1e2a47;
}

.autocomplete-item-img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.autocomplete-item-name {
    color: #f0e6d2;
    font-weight: bold;
}

.autocomplete-active {
    background-color: #1e2a47 !important;
}

/* Estilos para el historial de intentos incorrectos */
.incorrect-guesses {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 51, 51, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.incorrect-guesses h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.1rem;
}

.incorrect-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.incorrect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background-color: rgba(255, 51, 51, 0.2);
    border-radius: 5px;
    border: 1px solid rgba(255, 51, 51, 0.4);
    transition: transform 0.2s;
}

.incorrect-item:hover {
    transform: scale(1.05);
}

.incorrect-item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.incorrect-item span {
    color: #ff9999;
    font-size: 0.8rem;
    text-align: center;
    max-width: 80px;
    word-break: break-word;
}

/* Estilos para el feedback con imagen */
.feedback-with-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.feedback-with-image img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

/* Estilos para elementos SEO ocultos */
.seo-breadcrumb,
.seo-hidden-content,
.seo-faq,
.footer-seo-links {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .champion-image {
        width: 120px;
        height: 120px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .incorrect-list {
        justify-content: center;
    }
}