@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Oswald:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background:
        linear-gradient(rgba(15, 20, 12, 0.85), rgba(15, 20, 12, 0.85)),
        url('img/fondo.jpg') center/110% no-repeat fixed;
    background-color: #0f140c;
    min-height: 100vh;
    color: #e8e6d3;
    overflow-x: hidden;
    position: relative;
    transition: background-position 0.2s ease-out;
    padding-bottom: 100px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(232, 230, 211, 0.02) 1px,
            rgba(232, 230, 211, 0.02) 2px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(232, 230, 211, 0.02) 1px,
            rgba(232, 230, 211, 0.02) 2px
        );
    pointer-events: none;
    z-index: 1;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 35px;
    background: rgba(25, 35, 20, 0.95);
    border: 1px solid #4a5c3a;
    border-radius: 0;
    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(232, 230, 211, 0.1);
    backdrop-filter: blur(15px);
    min-height: 120px;
}

h1 {
    font-family: 'Bender', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #9db665;
    text-shadow:
        1px 1px 0px #1a2515,
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(157, 182, 101, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9db665, transparent);
}

/* Imagen del título */
.main-title-image {
    max-height: 70px;
    width: auto;
    margin: 0;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(182, 195, 106, 0.4));
    transition: all 0.3s ease;
}

.main-title-image:hover {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 35px rgba(182, 195, 106, 0.6));
    transform: scale(1.08);
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: #2a2a2a;
    border: 2px solid #1a1a1a;
    color: #e8e6d3;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Bender', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
    width: 80px;
    height: 35px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="camo" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23333"/><circle cx="5" cy="5" r="2" fill="%23444"/><circle cx="15" cy="15" r="1.5" fill="%23222"/></pattern></defs><rect width="100" height="100" fill="url(%23camo)"/></svg>') center/cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.lang-btn span {
    position: relative;
    z-index: 2;
}

.lang-btn:hover::before,
.lang-btn.active::before {
    opacity: 1;
}

.lang-btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.lang-btn.active {
    background: #4a4a4a;
    border-color: #5a5a5a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Main Menu */
.main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Secciones de categorías */
.category-section {
    width: 100%;
    text-align: center;
}

.category-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #b6c36a;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.category-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #d4d4aa;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

/* Grid de modos */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-items: center;
}

.mode-card {
    background: rgba(25, 35, 20, 0.95);
    border: 1px solid #4a5c3a;
    padding: 35px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 350px;
    min-height: 180px;
    position: relative;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(232, 230, 211, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(157, 182, 101, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: #9db665;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(157, 182, 101, 0.3),
        inset 0 1px 0 rgba(157, 182, 101, 0.2);
}

.mode-card h3 {
    font-family: 'Bender', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #9db665;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.mode-card p {
    color: #a8a882;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

/* Badges de modo */
.mode-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.daily-badge {
    background: linear-gradient(135deg, #b6c36a 0%, #9db665 100%);
    color: #1a1a1a;
    border: 1px solid #d4d4aa;
}

.infinite-badge {
    background: linear-gradient(135deg, #6a9dc3 0%, #5a8db3 100%);
    color: #ffffff;
    border: 1px solid #8ab4d4;
}

/* Variaciones de tarjetas */
.daily-mode {
    border-color: #9db665;
}

.daily-mode:hover {
    border-color: #b6c36a;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(182, 195, 106, 0.4),
        inset 0 1px 0 rgba(182, 195, 106, 0.2);
}

.infinite-mode {
    border-color: #6a9dc3;
}

.infinite-mode:hover {
    border-color: #8ab4d4;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(106, 157, 195, 0.4),
        inset 0 1px 0 rgba(138, 180, 212, 0.2);
}

/* Modos completados */
.mode-completed {
    background: rgba(40, 40, 40, 0.95) !important;
    border-color: #666 !important;
    cursor: not-allowed !important;
}

.mode-completed:hover {
    transform: none !important;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.mode-completed h3 {
    color: #888 !important;
}

.mode-completed p {
    color: #666 !important;
}

.mode-completed .mode-badge {
    background: #555 !important;
    color: #999 !important;
    border-color: #666 !important;
}



/* Game Container */
.game-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(34, 42, 25, 0.95);
    border: 2px solid #545432;
    padding: 30px;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(132, 132, 50, 0.2);
    backdrop-filter: blur(10px);
}

.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #545432;
}

.back-btn {
    background: #2a2a2a;
    border: 2px solid #1a1a1a;
    color: #e8e6d3;
    padding: 12px 24px;
    cursor: pointer;
    font-family: 'Bender', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
    width: 180px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="camo3" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23333"/><circle cx="5" cy="5" r="2" fill="%23444"/><circle cx="15" cy="15" r="1.5" fill="%23222"/></pattern></defs><rect width="100" height="100" fill="url(%23camo3)"/></svg>') center/cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.back-btn span {
    position: relative;
    z-index: 2;
}

.back-btn:hover::before {
    opacity: 1;
}

.back-btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateX(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

#game-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #b6c36a;
    text-align: center;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sound-game-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #b6c36a;
    text-align: center;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Input Container */
.input-container {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.search-box {
    flex: 1;
    position: relative;
}

#weapon-search {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #545432;
    background: rgba(20, 25, 15, 0.8);
    color: #d4d4aa;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 rgba(182, 195, 106, 0);
}

#weapon-search::placeholder {
    color: #8a8a6a;
    font-style: italic;
}

#weapon-search:focus {
    outline: none;
    border-color: #b6c36a;
    background: rgba(20, 25, 15, 0.9);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(182, 195, 106, 0.3);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 25, 15, 0.98);
    border: 2px solid #545432;
    border-top: none;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.suggestion-item {
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 1px solid #3a3a2a;
    transition: all 0.2s ease;
    color: #d4d4aa;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(84, 84, 50, 0.6);
    color: #b6c36a;
    border-left: 4px solid #b6c36a;
    padding-left: 21px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item strong {
    color: #b6c36a;
}

#submit-guess {
    background: #2a2a2a;
    border: 2px solid #1a1a1a;
    color: #e8e6d3;
    padding: 18px 35px;
    cursor: pointer;
    font-family: 'Bender', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
    width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#submit-guess::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="camo2" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23333"/><circle cx="5" cy="5" r="2" fill="%23444"/><circle cx="15" cy="15" r="1.5" fill="%23222"/></pattern></defs><rect width="100" height="100" fill="url(%23camo2)"/></svg>') center/cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

#submit-guess span {
    position: relative;
    z-index: 2;
}

#submit-guess:hover::before {
    opacity: 1;
}

#submit-guess:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

#submit-guess:disabled {
    background: #1a1a1a;
    border-color: #0a0a0a;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

#submit-guess:disabled::before {
    opacity: 0;
}



/* Attempts Table */
.attempts-container {
    margin-top: 35px;
}

#attempts-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 25, 15, 0.8);
    border: 2px solid #545432;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(132, 132, 50, 0.1);
}

#attempts-table th {
    background: linear-gradient(135deg, #545432 0%, #6a6a42 100%);
    color: #d4d4aa;
    padding: 18px 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a3a2a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#attempts-table td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid #3a3a2a;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(34, 42, 25, 0.6);
}

#attempts-table tr:last-child td {
    border-bottom: none;
}

#attempts-table tr:hover td {
    background: rgba(84, 84, 50, 0.3);
}

.correct {
    background: rgba(132, 132, 50, 0.6) !important;
    color: #b6c36a !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 0 10px rgba(182, 195, 106, 0.2);
}

.incorrect {
    background: rgba(84, 84, 50, 0.3) !important;
    color: #a8a882 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Imágenes de armas */
.weapon-image {
    padding: 8px !important;
    text-align: center !important;
    background: rgba(20, 25, 15, 0.8) !important;
}

.weapon-image img {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #545432;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    transition: all 0.3s ease;
}

.weapon-image img:hover {
    transform: scale(1.2);
    border-color: #b6c36a;
    box-shadow: 0 0 10px rgba(182, 195, 106, 0.3);
}



/* Contador de intentos */
.attempts-counter {
    margin-top: 10px;
    text-align: center;
}

.attempts-counter span {
    color: #b6c36a;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.attempts-counter strong {
    color: #ffffff;
    font-size: 1.3rem;
}

/* Flechas direccionales */
.arrow-up::after {
    content: " ↑";
    color: #f44336;
    font-weight: bold;
    font-size: 1.2em;
}

.arrow-down::after {
    content: " ↓";
    color: #f44336;
    font-weight: bold;
    font-size: 1.2em;
}

/* Estados de las celdas */
.incorrect {
    background: rgba(244, 67, 54, 0.3) !important;
    color: #ffcdd2 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.partial {
    background: rgba(255, 193, 7, 0.3) !important;
    color: #fff3c4 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 193, 7, 0.5);
}

/* Victory Message */
.victory-message {
    text-align: center;
    background: rgba(84, 84, 50, 0.4);
    border: 3px solid #b6c36a;
    padding: 40px;
    margin-top: 35px;
    box-shadow:
        0 0 40px rgba(182, 195, 106, 0.3),
        inset 0 1px 0 rgba(182, 195, 106, 0.2);
    backdrop-filter: blur(10px);
}

.victory-message h3 {
    font-family: 'Oswald', sans-serif;
    color: #b6c36a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.victory-message p {
    color: #d4d4aa;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.stats {
    margin-top: 25px;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #b6c36a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botones de victoria */
.victory-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Botones de victoria */
.play-again-btn, .back-to-menu-btn {
    background: #2a2a2a;
    border: 2px solid #1a1a1a;
    color: #e8e6d3;
    padding: 12px 24px;
    cursor: pointer;
    font-family: 'Bender', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-again-btn {
    background: linear-gradient(135deg, #6a9dc3 0%, #5a8db3 100%);
    border-color: #8ab4d4;
}

.play-again-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="camo4" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23333"/><circle cx="5" cy="5" r="2" fill="%23444"/><circle cx="15" cy="15" r="1.5" fill="%23222"/></pattern></defs><rect width="100" height="100" fill="url(%23camo4)"/></svg>') center/cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.play-again-btn span {
    position: relative;
    z-index: 2;
}

.play-again-btn:hover::before {
    opacity: 1;
}

.play-again-btn:hover {
    background: linear-gradient(135deg, #8ab4d4 0%, #7aa3c3 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.back-to-menu-btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Scrollbar personalizado */
.suggestions::-webkit-scrollbar {
    width: 8px;
}

.suggestions::-webkit-scrollbar-track {
    background: rgba(20, 25, 15, 0.8);
}

.suggestions::-webkit-scrollbar-thumb {
    background: #545432;
    border-radius: 4px;
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background: #6a6a42;
}

/* Header right container */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Botón de ayuda */
.help-btn {
    background: #2a2a2a;
    border: 2px solid #b6c36a;
    color: #b6c36a;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Bender', sans-serif;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(182, 195, 106, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(182, 195, 106, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-btn:hover::before {
    opacity: 1;
}

.help-btn:hover {
    background: #3a3a3a;
    border-color: #d4d4aa;
    color: #d4d4aa;
    transform: scale(1.1);
    box-shadow:
        inset 0 1px 0 rgba(212, 212, 170, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(182, 195, 106, 0.3);
}

/* Modal de ayuda */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.help-modal-content {
    background: rgba(20, 25, 15, 0.95);
    border: 3px solid #b6c36a;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow:
        0 0 40px rgba(182, 195, 106, 0.3),
        inset 0 1px 0 rgba(182, 195, 106, 0.2);
    backdrop-filter: blur(10px);
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #545432;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.help-modal-header h3 {
    font-family: 'Oswald', sans-serif;
    color: #b6c36a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.help-close-btn {
    background: none;
    border: none;
    color: #b6c36a;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.help-close-btn:hover {
    background: rgba(182, 195, 106, 0.2);
    transform: scale(1.1);
}

.help-modal-body {
    padding: 25px;
}

.help-section {
    margin-bottom: 20px;
}

.help-section h4 {
    font-family: 'Oswald', sans-serif;
    color: #b6c36a;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.help-section p {
    color: #d4d4aa;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.help-section ul {
    color: #d4d4aa;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 10px 0;
    padding-left: 20px;
}

.help-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #d4d4aa;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #545432;
}

.legend-color.correct {
    background: rgba(132, 132, 50, 0.6);
}

.legend-color.partial {
    background: rgba(255, 193, 7, 0.3);
}

.legend-color.incorrect {
    background: rgba(244, 67, 54, 0.3);
}

.arrow-example {
    font-size: 18px;
    font-weight: bold;
    color: #f44336;
    width: 20px;
    text-align: center;
}

.help-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.help-warning p {
    color: #fff3c4 !important;
    margin: 0;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    /* Contenedores principales */
    .container {
        padding: 10px;
    }

    /* Header principal */
    header {
        padding: 20px 15px;
        flex-direction: column;
        gap: 15px;
        min-height: 100px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .main-title-image {
        max-height: 80px;
    }

    /* Menú principal */
    .main-menu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        padding: 0 10px;
    }

    .mode-card {
        width: 100%;
        max-width: 350px;
        padding: 30px 20px;
        min-height: 140px;
    }

    .mode-card h3 {
        font-size: 1.3rem;
    }

    .mode-card p {
        font-size: 0.9rem;
    }

    /* Contenedores de juego */
    .game-container {
        padding: 15px 10px;
    }

    .game-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 0 10px;
    }

    .header-right {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    #game-title, #sound-game-title {
        font-size: 1.6rem;
        line-height: 1.2;
        margin: 0;
    }

    .attempts-counter {
        font-size: 0.9rem;
    }

    .help-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    /* Inputs y botones */
    .input-container {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }

    #weapon-search, #sound-weapon-search {
        font-size: 16px; /* Evita zoom en iOS */
        padding: 12px 15px;
    }

    #submit-guess, #sound-submit-guess {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Tabla de intentos */
    .attempts-table {
        font-size: 0.75rem;
        margin: 0 -5px;
    }

    #attempts-table th,
    #attempts-table td {
        padding: 6px 3px;
        font-size: 0.75rem;
    }

    .weapon-image img {
        max-width: 50px;
        max-height: 25px;
    }

    /* Modo sonido específico */
    .sound-game-content {
        padding: 15px 10px;
    }

    .sound-buttons-container,
    .guess-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .sound-hint-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-bottom: 15px;
    }

    .hint-label {
        min-width: auto;
        font-size: 14px;
        text-align: center;
    }

    .sound-play-btn {
        min-width: auto;
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
        justify-content: center;
    }

    .volume-control {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .volume-slider {
        width: 120px;
    }

    /* Mensajes de victoria */
    .victory-message, #sound-victory-message {
        padding: 20px 15px;
        margin: 20px 10px;
    }

    .victory-message h3 {
        font-size: 1.6rem;
    }

    /* Sugerencias */
    #suggestions, #sound-suggestions {
        font-size: 14px;
    }

    .suggestion-item {
        padding: 10px 12px;
    }

    /* Banner de atención */
    .beta-footer {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 0 15px;
    }

    .attention-dialog {
        padding: 6px 10px;
        gap: 8px;
    }

    .attention-icon {
        width: 18px;
        height: 18px;
    }

    .attention-title {
        font-size: 12px;
    }

    .attention-text {
        font-size: 12px;
    }

    /* Footer principal */
    .main-footer {
        margin-top: 40px;
        padding: 10px 15px;
    }

    .footer-content {
        gap: 15px;
    }

    #footer-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-link {
        width: 34px;
        height: 34px;
    }

    .footer-link svg {
        width: 16px;
        height: 16px;
    }

    /* Modales de ayuda */
    .help-modal-content {
        width: 95%;
        max-width: 400px;
        max-height: 85vh;
        margin: 20px auto;
    }

    .help-modal-header {
        padding: 15px 18px;
    }

    .help-modal-header h3 {
        font-size: 1.1rem;
    }

    .help-close-btn {
        font-size: 20px;
        width: 26px;
        height: 26px;
    }

    .help-modal-body {
        padding: 18px;
    }

    .help-section {
        margin-bottom: 16px;
    }

    .help-section h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .help-section p,
    .help-section ul {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .help-section ul {
        padding-left: 16px;
    }

    .legend-item {
        gap: 8px;
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .legend-color {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .arrow-example {
        font-size: 16px;
        width: 16px;
        flex-shrink: 0;
    }

    .help-warning {
        padding: 12px;
        margin-top: 12px;
    }

    .help-warning p {
        font-size: 0.8rem !important;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    /* Ajustes adicionales para móviles pequeños */
    .container {
        padding: 8px;
    }

    header {
        padding: 15px 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .main-title-image {
        max-height: 70px;
    }

    .mode-card {
        max-width: 320px;
        padding: 25px 15px;
        min-height: 120px;
    }

    .mode-card h3 {
        font-size: 1.2rem;
    }

    .mode-card p {
        font-size: 0.85rem;
    }

    #game-title, #sound-game-title {
        font-size: 1.4rem;
    }

    .game-container {
        padding: 10px 8px;
    }

    .sound-buttons-container,
    .guess-section {
        padding: 15px 12px;
    }

    .attempts-table {
        font-size: 0.7rem;
    }

    #attempts-table th,
    #attempts-table td {
        padding: 4px 2px;
        font-size: 0.7rem;
    }

    .weapon-image img {
        max-width: 40px;
        max-height: 20px;
    }

    .help-modal-content {
        width: 98%;
        margin: 10px auto;
    }

    .help-modal-header {
        padding: 12px 15px;
    }

    .help-modal-body {
        padding: 15px;
    }

    .help-section h4 {
        font-size: 0.9rem;
    }

    .help-section p,
    .help-section ul {
        font-size: 0.8rem;
    }
}

/* Banner de atención debajo del header */
.beta-footer {
    position: relative;
    margin: -20px auto 20px auto;
    max-width: 800px;
    padding: 0 20px;
    z-index: 100;
}

.attention-dialog {
    background: #d4722a;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: none;
    border-radius: 4px;
}

.attention-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: none;
}

.attention-content {
    flex: 1;
    color: #000000;
}

.attention-title {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 1px;
    text-shadow: none;
    letter-spacing: normal;
    line-height: 1.1;
}

.attention-text {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.1;
    text-shadow: none;
    margin: 0;
}



/* Estilos para el modo sonido */
.sound-game-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.sound-buttons-container {
    background: rgba(25, 35, 20, 0.4);
    border: 1px solid rgba(157, 182, 101, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    overflow: visible;
}



.sound-hint-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.sound-hint-row:last-child {
    margin-bottom: 0;
}

.hint-label {
    font-weight: bold;
    color: #9db665;
    min-width: 80px;
    font-size: 16px;
}

.sound-play-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2d4a1e, #3d5a2e);
    border: 2px solid #9db665;
    border-radius: 8px;
    padding: 12px 20px;
    color: #e8e6d3;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.sound-play-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3d5a2e, #4d6a3e);
    border-color: #b8d478;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 182, 101, 0.3);
}

.sound-play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(45, 74, 30, 0.3);
    border-color: rgba(157, 182, 101, 0.3);
}

.play-icon {
    font-size: 18px;
    color: #9db665;
}

.sound-label {
    flex: 1;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.volume-icon {
    font-size: 16px;
    color: #9db665;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(157, 182, 101, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #9db665;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #b8d478;
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #9db665;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #b8d478;
    transform: scale(1.1);
}

.volume-value {
    font-size: 12px;
    color: #9db665;
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.guess-section {
    background: rgba(25, 35, 20, 0.4);
    border: 1px solid rgba(157, 182, 101, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    overflow: visible;
    position: relative;
}

/* Estilos específicos para el modo sonido */
#sound-weapon-search {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 20, 12, 0.8);
    border: 2px solid rgba(157, 182, 101, 0.3);
    border-radius: 8px;
    color: #e8e6d3;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

#sound-weapon-search:focus {
    border-color: #9db665;
    box-shadow: 0 0 0 3px rgba(157, 182, 101, 0.2);
}

#sound-weapon-search::placeholder {
    color: rgba(232, 230, 211, 0.6);
}

#sound-submit-guess {
    background: linear-gradient(135deg, #2d4a1e, #3d5a2e);
    border: 2px solid #9db665;
    border-radius: 8px;
    padding: 15px 30px;
    color: #e8e6d3;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

#sound-submit-guess:hover {
    background: linear-gradient(135deg, #3d5a2e, #4d6a3e);
    border-color: #b8d478;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 182, 101, 0.3);
}

#sound-submit-guess:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contenedor del input para posicionamiento relativo */
.guess-section .input-container {
    position: relative;
    margin-bottom: 15px;
}

#sound-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 20, 12, 0.98);
    border: 2px solid rgba(157, 182, 101, 0.5);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#sound-suggestions .suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #e8e6d3;
    border-bottom: 1px solid rgba(157, 182, 101, 0.2);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

#sound-suggestions .suggestion-item:hover,
#sound-suggestions .suggestion-item.selected {
    background: rgba(84, 84, 50, 0.6);
    color: #b6c36a;
    border-left: 4px solid #b6c36a;
    padding-left: 21px;
}

#sound-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

#sound-suggestions .suggestion-item strong {
    color: #b6c36a;
    font-weight: 600;
}

/* Footer principal estilo Bloonsdle */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    text-align: center;
    background: rgba(25, 35, 20, 0.95);
    border-top: 1px solid rgba(157, 182, 101, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#footer-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #c4c2a8;
    margin: 0;
    line-height: 1.4;
}

#footer-text strong {
    color: #9db665;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(157, 182, 101, 0.1);
    border: 1px solid rgba(157, 182, 101, 0.3);
    border-radius: 8px;
    color: #9db665;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(157, 182, 101, 0.2);
    border-color: #9db665;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 182, 101, 0.2);
}

.footer-link svg {
    width: 20px;
    height: 20px;
}


