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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #1e3a5f 50%, #0a1929 100%);
    min-height: 100vh;
    color: #fff;
    padding: 2rem;
}

.title-font {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.2);
}

.btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
}

.btn-primary {
    background: #ff6b35;
    border-color: #ff6b35;
}

.btn-primary:hover {
    background: #ff8555;
}

.btn small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.legend-container {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
}

.game-table {
    border-collapse: separate;
    border-spacing: 0.5rem;
    margin: 0 auto;
    table-layout: fixed;
}

.game-table th,
.game-table td {
    width: 110px;
    height: 80px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    line-height: 1.3;
    overflow: hidden;
}

.game-table th {
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.game-table th.imagen,
.game-table td.imagen {
    width: 90px;
}

.game-table th.nombre,
.game-table td.nombre {
    width: 140px;
}

.game-table th.recompensa,
.game-table td.recompensa {
    width: 170px;
}

.game-table td.correct {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.game-table td.partial {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.game-table td.incorrect {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.game-table img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.arrow {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 0.25rem;
}

.legend-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 0 0.5rem;
    font-size: 1rem;
    cursor: help;
    position: relative;
    font-weight: 600;
}

.legend-badge:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.input-field {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: white;
    color: black;
    font-size: 1.1rem;
}

.suggestions {
    position: absolute;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 0.5rem;
}

.suggestion-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    color: black;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f3f4f6;
}

.result-image {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #ff6b35;
    margin-bottom: 1rem;
}

.result-box-win {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 3px solid #10b981;
}

.result-box-lose {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 3px solid #ef4444;
}
