/* =====================================
 *
 * @package phpBB Extension - keno
 * @copyright (c) 2026 Scotty - http://www.arcade-scotty.fr
 * @license Proprietary - All rights reserved.
 * Unauthorized copying, modification, redistribution or commercial use
 * of this software is strictly prohibited without the author's permission.
 *
 * ===================================== */

.keno-container {
    max-width: 1350px;
    margin: 20px auto;
    padding: 15px;
}

.keno-panel {
    background: var(--content-background, #ffffff);
    border: 1px solid var(--border-color, #d9d9d9);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

.keno-title {
     text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.keno-intro {
    text-align: center;
    padding: 20px 12px 10px;
}

.keno-intro h2 {
    margin-bottom: 10px;
}

.keno-intro p {
    margin-bottom: 12px;
}

/* Grille des numéros */

.keno-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
    padding: 15px;
}

.keno-number {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 1px solid #c9d2dc;
    border-radius: 8px;
    background: #f1f4f8;
    color: #263746;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

.keno-number:hover {
    background: #286090;
    color: #ffffff;
    border-color: #286090;
    transform: translateY(-2px);
}

/* Résultats */

.keno-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 15px;
}

.keno-result {
    text-align: center;
    padding: 18px 10px;
    background: #f1f4f8;
    border-radius: 10px;
    border: 1px solid #dce2e8;
}

.keno-result strong {
    display: block;
    margin-top: 8px;
    font-size: 21px;
    color: #286090;
}

/* Sélection */

.keno-selection {
    text-align: center;
    padding: 20px 15px;
}

.keno-inputs {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    max-width: 650px;
    margin: 15px auto;
}

.keno-inputs input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 42px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #bdc8d3;
    border-radius: 7px;
}

.keno-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.keno-actions input {
    padding: 9px 20px;
    border-radius: 7px;
    cursor: pointer;
}

/* Statistiques */

.keno-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 15px;
}

.keno-stats-label,
.keno-stats-values {
    padding: 10px;
    line-height: 2;
}

.keno-stats-label {
    text-align: right;
    font-weight: bold;
}

.keno-stats-values {
    text-align: left;
}

/* Tableau des scores */

.keno-score-table {
    width: 100%;
}

.keno-score-table th,
.keno-score-table td {
    padding: 12px 8px;
    text-align: center;
}

.keno-score-table th {
    font-weight: bold;
}

/* Responsive */

@media (max-width: 700px) {
    .keno-container {
        padding: 8px;
    }

    .keno-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 5px;
        padding: 10px;
    }

    .keno-number {
        height: 42px;
        font-size: 14px;
    }

    .keno-inputs {
        gap: 5px;
    }

    .keno-inputs input {
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .keno-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .keno-number {
        height: 42px;
    }

    .keno-results {
        gap: 8px;
        padding: 8px;
    }

    .keno-result {
        padding: 12px 5px;
    }

    .keno-stats {
        padding: 8px;
        font-size: 12px;
    }
}