/* Importar si quieres, o cargar ambos en el PHP */
/* @import 'game-commons.css'; */

.container-fruit {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 5;
}

.fruit-name {
    font-family: 'Pirata One', cursive;
    font-size: 2.5rem;
    color: #3e2723;
    text-align: center;
    min-height: 50px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(62, 39, 35, 0.1);
    padding-bottom: 10px;
}

/* =========================================
   TABLA ESPECÍFICA DE FRUTA
   ========================================= */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-table thead th {
    background: #3e2723;
    color: #ffca28;
    font-family: 'Pirata One', cursive;
    font-size: 1.4rem;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid #5d4037;
    text-align: center;
    border-right: 1px solid rgba(255, 202, 40, 0.2);
}
.results-table thead th:last-child { border-right: none; }

.results-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #d7ccc8;
    border-right: 1px solid rgba(93, 64, 55, 0.15); 
    vertical-align: middle;
    color: #3e2723;
    font-weight: 500;
}
.results-table tbody td:last-child { border-right: none; }

/* Clases de estado (Coloring) */
.results-table td.correct { color: #2e7d32; background-color: rgba(46, 125, 50, 0.1); font-weight: bold; }
.results-table td.incorrect { color: #c62828; }

/* Columnas */
.col-img { width: 20%; text-align: center; }
.col-name { width: 50%; text-align: center; font-size: 1.2rem; }
.col-result { width: 30%; text-align: center; }
.col-result.correct, .col-result.incorrect { font-family: 'Pirata One', cursive; font-size: 1.4rem; }

.results-table img {
    width: 60px; height: 60px; object-fit: cover; object-position: top center;
    border-radius: 4px; border: 2px solid #a1887f; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* RESPONSIVE ESPECÍFICO FRUTA (Tabla apilada en fila) */
@media (max-width: 600px) {
    /* Mostrar headers */
    .results-table thead { display: table-header-group; }
    .results-table thead th { font-size: 1rem; padding: 8px 4px; white-space: nowrap; }
    
    /* Filas normales */
    .results-table tbody tr { display: table-row; border-bottom: 1px solid #d7ccc8; }
    .results-table tbody td {
        display: table-cell; vertical-align: middle; padding: 8px 4px;
        border-right: 1px solid rgba(93, 64, 55, 0.15); border-bottom: 1px solid rgba(93, 64, 55, 0.15);
    }
    .results-table tbody td:last-child { border-right: none; }

    /* Anchos Móvil */
    .results-table td.col-img, .results-table th:nth-child(1) { width: 20%; min-width: 60px; }
    .results-table td.col-name, .results-table th:nth-child(2) { width: 60%; text-align: center; font-size: 1rem; line-height: 1.2; word-break: break-word; }
    .results-table td.col-result, .results-table th:nth-child(3) { width: 20%; }
    
    .results-table img { width: 45px; height: 45px; margin: 0 auto; }
}