/* Mode kiosque / grand ecran — affichage salle sur videoprojecteur.
   Theme sombre haut contraste, typographie agrandie, pas de scroll. */

html.kiosk, html.kiosk body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0A0E14;
    color: #F5F5F5;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    height: 100vh;
    width: 100vw;
}

.kiosk-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: #0A0E14;
    color: #F5F5F5;
    overflow: hidden;
}

.kiosk-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: linear-gradient(180deg, #1B5E20 0%, #0D3B11 100%);
    border-bottom: 3px solid #4CAF50;
}

.kiosk-header-left {
    display: flex;
    align-items: baseline;
    gap: 20px;
    min-width: 0;
}

.kiosk-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-round {
    font-size: 1.6rem;
    font-weight: 500;
    color: #FFE082;
    white-space: nowrap;
}

.kiosk-clock {
    font-size: 2rem;
    font-weight: 600;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.kiosk-content {
    flex: 1 1 auto;
    padding: 24px 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kiosk-view-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Tables kiosque — grand format */
.kiosk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    table-layout: fixed;
}

.kiosk-table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #81C784;
    border-bottom: 2px solid #2A3340;
    background: #141A22;
}

.kiosk-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #1F2833;
    vertical-align: middle;
}

.kiosk-table tbody tr:nth-child(odd) {
    background: #101620;
}

.kiosk-table tbody tr:nth-child(even) {
    background: #141A22;
}

.kiosk-table .num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.kiosk-table .rank {
    font-weight: 700;
    color: #FFE082;
    text-align: center;
    width: 70px;
}

.kiosk-table .player {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-table .score {
    font-weight: 700;
    font-size: 1.6rem;
    color: #FFFFFF;
    text-align: center;
    width: 90px;
}

.kiosk-table .title {
    color: #FFE082;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    width: 60px;
}

.kiosk-table .elo {
    color: #BDBDBD;
    text-align: center;
    width: 90px;
    font-variant-numeric: tabular-nums;
}

.kiosk-table .flag {
    text-align: center;
    width: 70px;
}

.kiosk-flag {
    font-size: 1.8rem;
    border-radius: 3px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Cellules joueur de la vue Appariements : slots a largeur fixe pour que le drapeau
   soit toujours a la meme abscisse, que le joueur ait un titre (GM/FM/...) ou non.
   NB : classes modifieur dediees (kiosk-pair-white / kiosk-pair-black) pour eviter
   tout conflit avec d'eventuelles utilitaires CSS tierces (.white / .black). */
.kiosk-pair-white,
.kiosk-pair-black {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    background: transparent !important;
}

.kiosk-pair-white { justify-content: flex-start; }
.kiosk-pair-black { justify-content: flex-end; }

.kiosk-pair-title {
    flex: 0 0 auto;
    width: 52px;
    color: #FFE082;
    font-weight: 700;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    background: transparent !important;
}

.kiosk-pair-white .kiosk-pair-title { text-align: left; }
.kiosk-pair-black .kiosk-pair-title { text-align: right; }

.kiosk-pair-flag {
    flex: 0 0 auto;
    width: 40px;
    display: inline-flex;
    align-items: center;
    background: transparent !important;
}

.kiosk-pair-white .kiosk-pair-flag { justify-content: flex-start; }
.kiosk-pair-black .kiosk-pair-flag { justify-content: flex-end; }

.kiosk-pair-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #F5F5F5 !important;
    background: transparent !important;
}

.kiosk-pair-black .kiosk-pair-name { text-align: right; }

.kiosk-table .board {
    font-weight: 700;
    color: #FFE082;
    text-align: center;
    width: 70px;
    font-size: 1.6rem;
}

.kiosk-table .result {
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    width: 130px;
}

.kiosk-table .result.pending {
    color: #757575;
    font-weight: 400;
}

.kiosk-table .result.finished {
    color: #FFFFFF;
}

.kiosk-progress {
    flex: 0 0 auto;
    height: 6px;
    background: #1A2029;
    position: relative;
    overflow: hidden;
}

.kiosk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FFE082);
    transition: width 200ms linear;
}

/* Vue Info : grand bloc centre */
.kiosk-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.kiosk-info-name {
    font-size: 4rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    max-width: 90vw;
}

.kiosk-info-meta {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.kiosk-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.kiosk-info-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #81C784;
    font-weight: 600;
}

.kiosk-info-value {
    font-size: 2.4rem;
    font-weight: 600;
    color: #FFFFFF;
}

.kiosk-schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    max-height: 40vh;
    overflow: hidden;
}

.kiosk-schedule-row {
    display: flex;
    gap: 24px;
    font-size: 1.4rem;
    padding: 6px 16px;
    border-radius: 8px;
}

.kiosk-schedule-row.current {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #FFE082;
    font-weight: 600;
}

.kiosk-schedule-row.past {
    opacity: 0.5;
}

.kiosk-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #757575;
    font-style: italic;
}
