/* /Components/Apprendre/Lecon.razor.rz.scp.css */
/* Un défi d'Apprendre. Au téléphone : la tête (consigne ou bravo), le plateau, puis la suite (statut,
   écus, actions, pierres du chemin). Au bureau et au téléphone couché : le plateau à gauche, la tête
   et la suite dans la colonne de droite, comme une partie. */

.lecon[b-8htb55bauf] {
    display: grid;
    gap: 0.8rem;
    padding: 0.6rem 0 2rem;
}

.tete[b-8htb55bauf],
.suite[b-8htb55bauf] {
    width: min(100%, 46rem);
    min-width: 0;
    margin: 0 auto;
    padding: 0 max(0.75rem, env(safe-area-inset-right)) 0 max(0.75rem, env(safe-area-inset-left));
}

.tete[b-8htb55bauf] {
    display: grid;
    gap: 0.35rem;
}

.suite[b-8htb55bauf] {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.zone-plateau[b-8htb55bauf] {
    width: min(100%, max(20rem, calc(100dvh - var(--barre) - 14rem)));
    margin: 0 auto;
}

/* ------------------------------------------------------------------ la tête */

.nom-chemin[b-8htb55bauf] {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--laiton-300);
}

.titre-defi[b-8htb55bauf] {
    font-family: var(--police-gravee);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
    color: var(--laiton-200);
}

.titre-defi:focus[b-8htb55bauf] {
    outline: none;
}

.consigne[b-8htb55bauf] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.3rem;
    padding: 0.7rem 0.9rem 0.7rem 0.6rem;
    background: rgb(8 24 16 / 0.5);
    border: 1px solid rgb(224 193 116 / 0.26);
    border-radius: var(--rayon);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 6px 18px rgb(0 0 0 / 0.25);
}

.consigne p[b-8htb55bauf] {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ivoire);
}

/* La pièce du défi, couchée dans un logement rond comme celles du menu. */
.logement-rond[b-8htb55bauf] {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(0 0 0 / 0.3);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.06);
}

.logement-rond .jeton[b-8htb55bauf] {
    width: 38px;
    height: 38px;
}

/* ------------------------------------------------------------------ le bravo */

.panneau-reussi[b-8htb55bauf] {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.3rem;
    padding: 1rem 1.05rem 1.1rem;
    background: rgb(8 24 16 / 0.5);
    border: 1px solid var(--laiton-400);
    border-radius: var(--rayon);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 6px 18px rgb(0 0 0 / 0.25);
    animation: s-panneau-b-8htb55bauf 260ms var(--courbe-pose) both;
}

.titre-reussi[b-8htb55bauf] {
    justify-self: start;
    font-size: 1.45rem;
    padding: 0.3em 1.3em 0.24em;
    animation: s-plaque-b-8htb55bauf 520ms var(--courbe-pose) 120ms both;
}

.couronne-gagnee[b-8htb55bauf] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--laiton-100);
}

.couronne-gagnee[b-8htb55bauf]  .couronne {
    width: 2rem;
    height: 2rem;
    color: var(--laiton-200);
    filter: drop-shadow(0 0 8px rgb(239 217 152 / 0.55));
    animation: s-couronne-b-8htb55bauf 700ms var(--courbe-pose) 380ms both;
}

.explication[b-8htb55bauf] {
    font-size: 1rem;
    color: var(--ivoire);
}

.rangee-boutons[b-8htb55bauf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rangee-boutons > .bouton[b-8htb55bauf] {
    flex: 1 1 10rem;
}

@keyframes s-panneau-b-8htb55bauf {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@keyframes s-plaque-b-8htb55bauf {
    from {
        opacity: 0;
        transform: translateY(-14px) rotate(-3deg) scale(1.06);
    }
}

/* La couronne tombe sur le panneau, rebondit à peine et se pose. */
@keyframes s-couronne-b-8htb55bauf {
    from {
        opacity: 0;
        transform: translateY(-22px) rotate(-18deg) scale(1.4);
    }

    60% {
        opacity: 1;
        transform: translateY(2px) rotate(4deg) scale(0.95);
    }
}

/* ------------------------------------------------------------------ la suite */

.statut[b-8htb55bauf] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.6rem;
    font-weight: 600;
    color: var(--laiton-100);
}

.statut.a-toi[b-8htb55bauf] {
    color: var(--ivoire-doux);
}

.statut.a-toi[b-8htb55bauf]::before {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--laiton-100), var(--laiton-400));
    box-shadow: 0 0 10px rgb(239 217 152 / 0.8);
}

.compte[b-8htb55bauf] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rayon-petit);
    background: linear-gradient(rgb(0 0 0 / 0.36), rgb(0 0 0 / 0.26)), url("matieres/feutrine.webp") var(--feutrine-800);
    box-shadow: inset 0 3px 7px rgb(0 0 0 / 0.62), inset 0 -1px 0 rgb(255 255 255 / 0.05), 0 1px 0 rgb(255 255 255 / 0.06);
}

/* La bourse : un écu par case à ramasser, frappé quand il est ramassé, en creux sinon. */
.bourse[b-8htb55bauf] {
    display: flex;
    gap: 0.3rem;
}

.piece-de-bourse[b-8htb55bauf] {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(224 193 116 / 0.28);
}

.piece-de-bourse.pleine[b-8htb55bauf] {
    background:
        radial-gradient(circle at 33% 28%, rgb(255 248 220 / 0.7) 0 7%, transparent 24%),
        radial-gradient(circle at 50% 42%, var(--laiton-300), var(--laiton-400) 45%, var(--laiton-500) 78%, var(--laiton-700));
    box-shadow: inset 0 0 0 1px var(--laiton-700), 0 1px 2px rgb(0 0 0 / 0.5);
    animation: s-bourse-b-8htb55bauf 360ms var(--courbe-pose);
}

@keyframes s-bourse-b-8htb55bauf {
    from {
        transform: translateY(-8px) scale(1.25);
    }
}

.coups[b-8htb55bauf] {
    color: var(--ivoire-pale);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.actions[b-8htb55bauf] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
    gap: 0.45rem;
}

.bouton-action[b-8htb55bauf] {
    flex-direction: column;
    gap: 0.2rem;
    min-height: 58px;
    padding: 0.45rem 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.bouton-action svg[b-8htb55bauf] {
    width: 1.4rem;
    height: 1.4rem;
}

/* ------------------------------------------------------------------ les pierres du chemin

   Un logement rond par défi : creusé et numéroté tant qu'il reste à faire, cerclé de laiton une fois
   réussi, une couronne quand il l'est sans faute. Le défi courant est éclairé. */

.pierres ol[b-8htb55bauf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pierre[b-8htb55bauf] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ivoire-pale);
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    background: rgb(0 0 0 / 0.3);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.06);
    transition: box-shadow 140ms, color 140ms;
}

.pierre:hover[b-8htb55bauf] {
    color: var(--ivoire);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(224 193 116 / 0.5);
}

.pierre.reussie[b-8htb55bauf] {
    color: var(--laiton-200);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6), inset 0 0 0 2px var(--laiton-500);
}

.pierre[b-8htb55bauf]  .couronne {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--laiton-200);
}

.pierre.courante[b-8htb55bauf] {
    color: var(--laiton-100);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6), 0 0 0 2px var(--laiton-200), 0 0 14px rgb(239 217 152 / 0.45);
}

/* ------------------------------------------------------------------ grand écran et téléphone couché */

@media (min-width: 60rem), (orientation: landscape) and (max-height: 32rem) {
    .lecon[b-8htb55bauf] {
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "plateau tete"
            "plateau suite";
        justify-content: center;
        height: calc(var(--cote) + 2 * var(--marge-haut));
        padding: var(--marge-haut) max(var(--marge-cote), env(safe-area-inset-right)) var(--marge-haut) max(var(--marge-cote), env(safe-area-inset-left));
    }

    .zone-plateau[b-8htb55bauf] {
        grid-area: plateau;
        width: var(--cote);
        margin: 0;
    }

    .tete[b-8htb55bauf],
    .suite[b-8htb55bauf] {
        width: auto;
        margin: 0;
        padding: 0;
    }

    .tete[b-8htb55bauf] {
        grid-area: tete;
    }

    .suite[b-8htb55bauf] {
        grid-area: suite;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
}

@media (min-width: 60rem) {
    .lecon[b-8htb55bauf] {
        --cote: clamp(22rem, calc(100dvh - var(--barre) - 2.5rem), calc(100vw - 24rem - 6rem));
        --marge-haut: 1.25rem;
        --marge-cote: 1.5rem;
        grid-template-columns: var(--cote) minmax(19rem, 24rem);
        column-gap: 2.25rem;
        row-gap: 1rem;
    }
}

@media (orientation: landscape) and (max-height: 32rem) and (max-width: 59.99rem) {
    .lecon[b-8htb55bauf] {
        --cote: max(13rem, calc(100dvh - var(--barre) - 1rem));
        --marge-haut: 0.5rem;
        --marge-cote: 0.75rem;
        grid-template-columns: var(--cote) minmax(13rem, 1fr);
        column-gap: 1rem;
        row-gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panneau-reussi[b-8htb55bauf],
    .titre-reussi[b-8htb55bauf],
    .couronne-gagnee[b-8htb55bauf]  .couronne,
    .piece-de-bourse.pleine[b-8htb55bauf] {
        animation: none;
    }
}
/* /Components/Jeu/Siege.razor.rz.scp.css */
.siege[b-89byyz03td] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.9rem;
    padding: 0 max(0.5rem, env(safe-area-inset-right)) 0 max(0.5rem, env(safe-area-inset-left));
}

.siege-plaque[b-89byyz03td] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: none;
}

.plaque-laiton[b-89byyz03td] {
    font-size: 0.98rem;
    transition: box-shadow 300ms, filter 300ms;
}

/* Au trait, la plaque s'allume. */
.au-trait .plaque-laiton[b-89byyz03td] {
    box-shadow:
        0 1px 2px rgb(0 0 0 / 0.55),
        0 0 0 1.5px rgb(248 236 196 / 0.6),
        0 0 16px rgb(239 217 152 / 0.55);
}

.vainqueur .plaque-laiton[b-89byyz03td] {
    animation: s-eclat-b-89byyz03td 1.4s ease-in-out 300ms 2;
}

@keyframes s-eclat-b-89byyz03td {
    50% {
        filter: brightness(1.25);
        box-shadow:
            0 1px 2px rgb(0 0 0 / 0.55),
            0 0 0 2px rgb(248 236 196 / 0.7),
            0 0 26px rgb(239 217 152 / 0.8);
    }
}

.siege-qui[b-89byyz03td] {
    display: grid;
    line-height: 1.15;
    font-size: 0.82rem;
    min-width: 0;
}

.siege-nom[b-89byyz03td] {
    font-weight: 700;
    color: var(--ivoire);
}

.siege-presence[b-89byyz03td] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ivoire-pale);
    white-space: nowrap;
}

.siege-presence[b-89byyz03td]::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    border: 1.5px solid currentColor;
}

.siege-presence.en-ligne[b-89byyz03td] {
    color: var(--ivoire-doux);
}

.siege-presence.en-ligne[b-89byyz03td]::before {
    border-color: var(--laiton-100);
    background: var(--laiton-100);
    box-shadow: 0 0 6px rgb(248 236 196 / 0.7);
}

/* L'ordinateur : une pastille de laiton, qui bat doucement pendant qu'il réfléchit. */
.siege-presence.ordinateur[b-89byyz03td] {
    color: var(--laiton-200);
}

.siege-presence.ordinateur[b-89byyz03td]::before {
    border-color: var(--laiton-300);
    background: var(--laiton-300);
}

.siege-presence.reflechit[b-89byyz03td]::before {
    animation: s-reflechit-b-89byyz03td 1.1s ease-in-out infinite;
}

@keyframes s-reflechit-b-89byyz03td {
    50% {
        opacity: 0.35;
        transform: scale(0.7);
    }
}

/* Le logement de feutrine : les pièces prises y sont couchées, regroupées par sorte. */
.logement[b-89byyz03td] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    height: 2.5rem;
    padding: 0 0.45rem;
    overflow: hidden;
}

.groupe-prises[b-89byyz03td] {
    display: flex;
    flex: none;
}

.jeton.couche[b-89byyz03td] {
    width: 2rem;
    height: 2rem;
    transform: rotate(-90deg);
    filter: drop-shadow(1.5px 0 1px rgb(0 0 0 / 0.45));
    animation: s-couche-b-89byyz03td 420ms var(--courbe-pose) both;
}

/* L'ébène couché reçoit un liseré de lumière, sans quoi il se fond dans la feutrine. */
.jeton.couche.noir[b-89byyz03td] {
    filter: drop-shadow(0 0 0.6px rgb(255 236 200 / 0.9)) drop-shadow(1.5px 0 1px rgb(0 0 0 / 0.45));
}

.groupe-prises .jeton + .jeton[b-89byyz03td] {
    margin-left: -1.15rem;
}

@keyframes s-couche-b-89byyz03td {
    from {
        opacity: 0;
        transform: rotate(0deg) translateY(-30%);
    }
}

.avance[b-89byyz03td] {
    margin-left: auto;
    padding-left: 0.3rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--laiton-200);
}

@media (prefers-reduced-motion: reduce) {
    .jeton.couche[b-89byyz03td],
    .vainqueur .plaque-laiton[b-89byyz03td],
    .siege-presence.reflechit[b-89byyz03td]::before {
        animation: none;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.lien-evitement[b-k2n9mx6o6q] {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    color: var(--noyer-900);
    background: var(--laiton-200);
    border-radius: var(--rayon-petit);
    font-weight: 700;
}

.lien-evitement:focus[b-k2n9mx6o6q] {
    top: 0.5rem;
}

/* Le couvercle du coffret : une barre de noyer verni, bordée d'un filet de laiton. */
.barre-noyer[b-k2n9mx6o6q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--barre);
    padding: 0.35rem max(0.75rem, env(safe-area-inset-right)) 0.35rem max(0.75rem, env(safe-area-inset-left));
    padding-top: max(0.35rem, env(safe-area-inset-top));
    background:
        var(--veinage-noyer),
        linear-gradient(180deg, var(--noyer-600), var(--noyer-800) 70%, var(--noyer-900));
    box-shadow:
        inset 0 1px 0 rgb(255 220 170 / 0.16),
        0 1px 0 var(--laiton-500),
        0 2px 0 rgb(0 0 0 / 0.5),
        0 6px 16px rgb(0 0 0 / 0.35);
    position: relative;
    z-index: 2;
}

.marque[b-k2n9mx6o6q] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding-right: 0.5rem;
    color: var(--laiton-200);
    text-decoration: none;
    font-family: var(--police-gravee);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 0 rgb(0 0 0 / 0.6);
}

.marque:hover[b-k2n9mx6o6q] {
    color: var(--laiton-100);
}

.marque-roi[b-k2n9mx6o6q] {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5));
}

.bouton-barre[b-k2n9mx6o6q] {
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    color: var(--erable-100);
    background: rgb(0 0 0 / 0.18);
    border-color: rgb(239 217 152 / 0.3);
    font-weight: 600;
}

.bouton-barre:hover[b-k2n9mx6o6q] {
    color: var(--laiton-100);
    border-color: var(--laiton-300);
    background: rgb(0 0 0 / 0.26);
}

main[b-k2n9mx6o6q] {
    display: block;
    outline: none;
}

/* ------------------------------------------------------------------ le décor */

.feuille-reglages[b-k2n9mx6o6q] {
    width: min(34rem, calc(100vw - 1.5rem));
    max-height: min(42rem, calc(100dvh - 2rem));
    padding: 0;
    color: var(--ivoire);
    background: url("matieres/feutrine.webp") var(--feutrine-700);
    border: 1px solid var(--laiton-500);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.feuille-reglages[open][b-k2n9mx6o6q] {
    animation: s-feuille-b-k2n9mx6o6q 220ms var(--courbe-pose) both;
}

.feuille-reglages[b-k2n9mx6o6q]::backdrop {
    background: rgb(8 14 10 / 0.55);
}

@keyframes s-feuille-b-k2n9mx6o6q {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* Au téléphone, une feuille qui monte du bas : le plateau reste visible au-dessus. */
@media (max-width: 600px) {
    .feuille-reglages[b-k2n9mx6o6q] {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .feuille-reglages[b-k2n9mx6o6q]::backdrop {
        background: rgb(8 14 10 / 0.25);
    }

    @keyframes s-feuille-b-k2n9mx6o6q {
        from {
            transform: translateY(100%);
        }
    }
}

.reglages[b-k2n9mx6o6q] {
    display: grid;
    gap: 1.1rem;
    padding: 1rem 1.1rem 1.2rem;
}

.reglages-tete[b-k2n9mx6o6q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reglages-tete h2[b-k2n9mx6o6q] {
    font-family: var(--police-gravee);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    color: var(--laiton-200);
}

fieldset[b-k2n9mx6o6q] {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

legend[b-k2n9mx6o6q] {
    margin-bottom: 0.5rem;
    padding: 0;
    font-weight: 700;
    color: var(--ivoire-doux);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.choix-decor[b-k2n9mx6o6q] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
    gap: 0.5rem;
}

.option-decor[b-k2n9mx6o6q] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.4rem 0.5rem;
    border: 1px solid rgb(224 193 116 / 0.2);
    border-radius: var(--rayon);
    background: rgb(0 0 0 / 0.14);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: border-color 140ms, background-color 140ms;
}

.option-decor:hover[b-k2n9mx6o6q] {
    border-color: rgb(224 193 116 / 0.5);
}

.option-decor input[b-k2n9mx6o6q] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-decor:has(input:checked)[b-k2n9mx6o6q] {
    border-color: var(--laiton-300);
    background: rgb(224 193 116 / 0.12);
    box-shadow: inset 0 0 0 1px var(--laiton-300);
}

.option-decor:has(input:focus-visible)[b-k2n9mx6o6q] {
    outline: 3px solid var(--laiton-200);
    outline-offset: 2px;
}

/* Deux cases du plateau, pour reconnaître le décor. */
.pastille-plateau[b-k2n9mx6o6q] {
    width: 3.2rem;
    height: 1.6rem;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.45), 0 2px 4px rgb(0 0 0 / 0.35);
}

/* Les décors de bois et de pierre montrent leurs deux photographies, côte à côte. */
.pastille-plateau[data-valeur="marqueterie"][b-k2n9mx6o6q] {
    --claire: url("matieres/plateaux/erable.webp");
    --sombre: url("matieres/plateaux/noyer.webp");
}

.pastille-plateau[data-valeur="marbre"][b-k2n9mx6o6q] {
    --claire: url("matieres/plateaux/carrare.webp");
    --sombre: url("matieres/plateaux/vert-de-mer.webp");
}

.pastille-plateau[data-valeur="palissandre"][b-k2n9mx6o6q] {
    --claire: url("matieres/plateaux/erable-mouchete.webp");
    --sombre: url("matieres/plateaux/palissandre.webp");
}

.pastille-plateau[data-valeur="ardoise"][b-k2n9mx6o6q] {
    --claire: url("matieres/plateaux/calcaire.webp");
    --sombre: url("matieres/plateaux/ardoise.webp");
}

.pastille-plateau:is([data-valeur="marqueterie"], [data-valeur="marbre"], [data-valeur="palissandre"], [data-valeur="ardoise"])[b-k2n9mx6o6q] {
    background:
        var(--claire) 0 0 / 50% 200% no-repeat,
        var(--sombre) 100% 0 / 50% 200% no-repeat;
}

.pastille-plateau[data-valeur="classique"][b-k2n9mx6o6q] {
    background: linear-gradient(90deg, #ecdcb9 50%, #a7784f 50%);
}

.pastille-plateau[data-valeur="ludique"][b-k2n9mx6o6q] {
    background: linear-gradient(90deg, #ffd970 50%, #4fb0c6 50%);
}

.pastille-pieces[b-k2n9mx6o6q] {
    display: flex;
    gap: 0.1rem;
    height: 1.9rem;
}

.pastille-pieces .jeton[b-k2n9mx6o6q] {
    width: 1.9rem;
    height: 1.9rem;
}

/* La vue : l'échiquier vu d'en haut, ou de trois quarts. */
.pastille-vue[b-k2n9mx6o6q] {
    width: 2.4rem;
    height: 1.6rem;
    perspective: 5rem;
}

.pastille-vue[b-k2n9mx6o6q]::before {
    content: "";
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    margin-inline: auto;
    border-radius: 2px;
    background: repeating-conic-gradient(var(--erable-300) 0 25%, var(--noyer-500) 0 50%) 0 0 / 50% 50%;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.45);
}

.pastille-vue[data-valeur="relief"][b-k2n9mx6o6q]::before {
    transform: translateY(0.15rem) rotateX(48deg) scale(1.15);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.45), 0 6px 4px rgb(0 0 0 / 0.35);
}

.reglages-note[b-k2n9mx6o6q] {
    color: var(--ivoire-pale);
    font-size: 0.9rem;
}

#blazor-error-ui .dismiss[b-k2n9mx6o6q] {
    padding: 0.2rem 0.5rem;
    color: inherit;
    background: none;
    border: 0;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-9ii9ljsjvi],
.components-reconnect-repeated-attempt-visible[b-9ii9ljsjvi],
.components-reconnect-failed-visible[b-9ii9ljsjvi],
.components-pause-visible[b-9ii9ljsjvi],
.components-resume-failed-visible[b-9ii9ljsjvi],
.components-rejoining-animation[b-9ii9ljsjvi] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-retrying[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-failed[b-9ii9ljsjvi],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-9ii9ljsjvi] {
    display: block;
}


#components-reconnect-modal[b-9ii9ljsjvi] {
    width: min(22rem, calc(100vw - 2rem));
    margin: 18vh auto;
    padding: 1.6rem 1.4rem;
    color: var(--ivoire);
    background: url("matieres/feutrine.webp") var(--feutrine-700);
    border: 1px solid var(--laiton-500);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.6);
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: reconnexion-sortie-b-9ii9ljsjvi 0.4s both;
    &[open] {
        animation: reconnexion-entree-b-9ii9ljsjvi 0.5s var(--courbe-pose) 0.3s both;
    }
}

#components-reconnect-modal[b-9ii9ljsjvi]::backdrop {
    background-color: rgb(8 14 10 / 0.55);
    animation: reconnexion-fondu-b-9ii9ljsjvi 0.4s ease-out;
}

@keyframes reconnexion-entree-b-9ii9ljsjvi {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes reconnexion-sortie-b-9ii9ljsjvi {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes reconnexion-fondu-b-9ii9ljsjvi {
    from {
        opacity: 0;
    }
}

.components-reconnect-container[b-9ii9ljsjvi] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-9ii9ljsjvi] {
    margin: 0;
    text-align: center;
    font-weight: 600;
}

/* Deux anneaux de laiton qui s'élargissent, comme une onde sur la feutrine. */
.components-rejoining-animation[b-9ii9ljsjvi] {
    position: relative;
    width: 64px;
    height: 64px;
}

.components-rejoining-animation div[b-9ii9ljsjvi] {
    position: absolute;
    inset: 0;
    border: 2px solid var(--laiton-300);
    border-radius: 50%;
    animation: reconnexion-onde-b-9ii9ljsjvi 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-9ii9ljsjvi] {
    animation-delay: -0.8s;
}

@keyframes reconnexion-onde-b-9ii9ljsjvi {
    from {
        transform: scale(0);
        opacity: 1;
    }

    to {
        transform: scale(1);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-9ii9ljsjvi],
    #components-reconnect-modal[open][b-9ii9ljsjvi] {
        animation: none;
        opacity: 1;
    }

    .components-rejoining-animation div[b-9ii9ljsjvi] {
        animation-duration: 3s;
    }
}
/* /Components/Pages/Accueil.razor.rz.scp.css */
/* L'écran titre : le nom gravé, trois voies de procession sur la feutrine, et le menu entre elles.
   Les voies (echecs-procession) sont dessinées par js/procession.js ; leurs pièces, créées en JS,
   sont stylées dans vivants.css. Ici : leur place, la taille et la vitesse de leurs pièces. */

/* L'écran titre tient dans la fenêtre, centré dans la hauteur ; plus long (menu déplié), il défile. */
.accueil[b-htfzzyr1k7] {
    display: grid;
    align-content: center;
    min-height: calc(100dvh - var(--barre));
    padding: 0.5rem 0 max(1.5rem, env(safe-area-inset-bottom));
    overflow-x: clip;
}

.voie-loin[b-htfzzyr1k7] {
    --taille: 26px;
    --vitesse: 20;
    margin-top: 0.6rem;
}

.voie-proche[b-htfzzyr1k7] {
    --taille: 46px;
    --vitesse: 34;
    margin-top: 0.35rem;
}

.voie-sol[b-htfzzyr1k7] {
    --taille: 36px;
    --vitesse: 26;
    margin-top: 0.9rem;
}

/* ------------------------------------------------------------------ le titre */

.titre-jeu[b-htfzzyr1k7] {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    padding: 0.3rem 1rem 0;
    text-align: center;
}

/* Le nom du jeu sur une grande plaque de laiton vissée. */
.plaque-titre[b-htfzzyr1k7] {
    font-family: var(--police-gravee);
    font-weight: 400;
    font-size: clamp(2.3rem, 1.7rem + 3.2vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: 0.1em;
    padding: 0.16em 1.05em 0.1em 1.15em;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgb(0 0 0 / 0.5), 0 12px 26px rgb(0 0 0 / 0.35);
}

.accroche[b-htfzzyr1k7] {
    color: var(--ivoire-doux);
    font-size: 1.06rem;
}

/* ------------------------------------------------------------------ le menu */

.menu[b-htfzzyr1k7] {
    justify-self: center;
    width: min(100% - 1.5rem, 30rem);
    margin-top: 0.35rem;
}

/* Un encart de feutrine sombre au filet de laiton : la procession passe derrière, le menu se lit. */
.menu-liste[b-htfzzyr1k7] {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: rgb(7 20 13 / 0.78);
    border: 1px solid rgb(224 193 116 / 0.26);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 10px 26px rgb(0 0 0 / 0.35);
}

.entree[b-htfzzyr1k7] {
    display: block;
    border-radius: var(--rayon);
}

.entree-tete[b-htfzzyr1k7] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 60px;
    padding: 0.45rem 0.7rem 0.45rem 0.5rem;
    color: var(--ivoire);
    text-decoration: none;
    list-style: none;
    border: 1px solid transparent;
    border-radius: var(--rayon);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 140ms, border-color 140ms;
}

summary.entree-tete[b-htfzzyr1k7]::-webkit-details-marker {
    display: none;
}

:is(a, summary).entree-tete:hover[b-htfzzyr1k7],
.entree[open] > .entree-tete[b-htfzzyr1k7] {
    color: var(--ivoire);
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(224 193 116 / 0.45);
}

.entree[open] > .entree-tete[b-htfzzyr1k7] {
    border-color: var(--laiton-400);
}

:is(a, summary).entree-tete:active[b-htfzzyr1k7] {
    background: rgb(255 255 255 / 0.09);
}

/* Le signe de l'entrée : une pièce couchée dans un petit logement rond, creusé dans la feutrine. */
.entree-signe[b-htfzzyr1k7] {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--laiton-200);
    background: rgb(0 0 0 / 0.3);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.06);
}

.entree-signe .jeton[b-htfzzyr1k7] {
    width: 34px;
    height: 34px;
}

.entree-signe-double[b-htfzzyr1k7] {
    display: flex;
    justify-content: center;
}

.entree-signe-double .jeton[b-htfzzyr1k7] {
    width: 27px;
    height: 27px;
}

.entree-signe-double .jeton + .jeton[b-htfzzyr1k7] {
    margin-left: -11px;
}

/* Le cavalier d'Échecs vivants se cabre. */
.jeton.cabre[b-htfzzyr1k7] {
    transform: rotate(-14deg) translateY(-1px);
}

.entree-texte[b-htfzzyr1k7] {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 0.05rem;
}

.entree-nom[b-htfzzyr1k7] {
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.2;
}

.entree-detail[b-htfzzyr1k7] {
    color: var(--ivoire-pale);
    font-size: 0.9rem;
    line-height: 1.3;
}

.a-ton-tour .entree-detail[b-htfzzyr1k7] {
    color: var(--laiton-200);
}

.entree-fleche[b-htfzzyr1k7] {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--laiton-300);
    transition: transform 200ms var(--courbe-pose);
}

.entree[open] > .entree-tete .entree-fleche[b-htfzzyr1k7] {
    transform: rotate(90deg);
}

.entree-contenu[b-htfzzyr1k7] {
    padding: 0.7rem 0.55rem 0.75rem;
}

/* ------------------------------------------------------------------ ce que déplie une entrée */

.nouvelle-partie[b-htfzzyr1k7] {
    display: grid;
    gap: 0.85rem;
}

.explication[b-htfzzyr1k7] {
    color: var(--ivoire-doux);
    font-size: 0.95rem;
}

.choix-couleur[b-htfzzyr1k7] {
    margin: 0;
    padding: 0;
    border: 0;
}

.choix-couleur legend[b-htfzzyr1k7] {
    margin-bottom: 0.45rem;
    padding: 0;
    color: var(--ivoire-doux);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Trois cases de feutre, l'une enfoncée : le choix de couleur. */
.segments[b-htfzzyr1k7] {
    display: grid;
    /* « Au hasard » prend sa largeur, les deux couleurs se partagent le reste : rien ne passe à la ligne. */
    grid-template-columns: repeat(2, minmax(0, 1fr)) max-content;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: calc(var(--rayon) + 4px);
    background: rgb(0 0 0 / 0.22);
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.45);
}

.segment[b-htfzzyr1k7] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 48px;
    padding: 0.35rem 0.5rem;
    border-radius: var(--rayon);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    color: var(--ivoire-doux);
    transition: background-color 140ms, color 140ms, box-shadow 140ms;
}

.segment input[b-htfzzyr1k7] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segment:hover[b-htfzzyr1k7] {
    color: var(--ivoire);
}

.segment:has(input:checked)[b-htfzzyr1k7] {
    color: var(--ivoire);
    background: var(--feutrine-600);
    box-shadow: inset 0 0 0 1px var(--laiton-400), 0 1px 2px rgb(0 0 0 / 0.4);
}

.segment:has(input:focus-visible)[b-htfzzyr1k7] {
    outline: 3px solid var(--laiton-200);
    outline-offset: 2px;
}

.segment .jeton[b-htfzzyr1k7] {
    width: 26px;
    height: 26px;
}

/* Cinq niveaux, du pion à la dame : la silhouette au-dessus du nom, qu'un enfant reconnaît sans lire. */
.segments-niveaux[b-htfzzyr1k7] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
}

.segment-niveau[b-htfzzyr1k7] {
    flex-direction: column;
    gap: 0.1rem;
    min-height: 58px;
    padding: 0.3rem 0.1rem;
    font-size: 0.8rem;
}

.segment-niveau .jeton[b-htfzzyr1k7] {
    width: 28px;
    height: 28px;
}

.segments-jeu[b-htfzzyr1k7],
.segments-adversaire[b-htfzzyr1k7] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Échecs vivants : contre l'ordinateur, le niveau paraît, et l'explication comme le bouton changent
   de phrase. Sans :has(), on reste sur le cas d'un ami, et l'ordinateur jouerait au niveau proposé. */
.si-ordinateur[b-htfzzyr1k7] {
    display: none;
}

.nouvelle-partie:has(input[name="adversaire"][value="ordinateur"]:checked) .si-ordinateur[b-htfzzyr1k7] {
    display: revert;
}

.nouvelle-partie:has(input[name="adversaire"][value="ordinateur"]:checked) .si-ami[b-htfzzyr1k7] {
    display: none;
}

.jetons-hasard[b-htfzzyr1k7] {
    display: inline-flex;
}

/* Sous 22rem, les deux rois du hasard laissent la place au mot. */
@media (max-width: 22rem) {
    .jetons-hasard[b-htfzzyr1k7] {
        display: none;
    }
}

.jetons-hasard .jeton[b-htfzzyr1k7] {
    width: 20px;
    height: 20px;
}

.jetons-hasard .jeton + .jeton[b-htfzzyr1k7] {
    margin-left: -8px;
}

.bouton-grand[b-htfzzyr1k7] {
    min-height: 54px;
    font-size: 1.12rem;
    padding-inline: 1.6rem;
}

.liste-parties[b-htfzzyr1k7] {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carte-partie[b-htfzzyr1k7] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 60px;
    padding: 0.6rem 0.9rem;
    color: var(--ivoire);
    text-decoration: none;
    background: rgb(8 24 16 / 0.45);
    border: 1px solid rgb(224 193 116 / 0.16);
    border-radius: var(--rayon);
    transition: border-color 140ms, background-color 140ms;
}

.carte-partie:hover[b-htfzzyr1k7] {
    color: var(--ivoire);
    border-color: rgb(224 193 116 / 0.5);
    background: rgb(8 24 16 / 0.6);
}

.carte-partie .jeton[b-htfzzyr1k7] {
    width: 34px;
    height: 34px;
}

.carte-partie-texte[b-htfzzyr1k7] {
    display: grid;
    flex: 1;
    min-width: 0;
}

.carte-partie-etat[b-htfzzyr1k7] {
    font-weight: 700;
}

.a-ton-tour .carte-partie-etat[b-htfzzyr1k7] {
    color: var(--laiton-200);
}

.carte-partie-detail[b-htfzzyr1k7] {
    color: var(--ivoire-pale);
    font-size: 0.9rem;
}

.code-partie[b-htfzzyr1k7] {
    flex: none;
    font: 600 0.9rem / 1 ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--ivoire-pale);
    letter-spacing: 0.04em;
}

/* Les chemins d'Apprendre : une carte par chemin, sa pièce dans son logement, et où l'on en est. */
.liste-chemins[b-htfzzyr1k7] {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carte-chemin[b-htfzzyr1k7] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 60px;
    padding: 0.5rem 0.8rem 0.5rem 0.5rem;
    color: var(--ivoire);
    text-decoration: none;
    background: rgb(8 24 16 / 0.45);
    border: 1px solid rgb(224 193 116 / 0.16);
    border-radius: var(--rayon);
    transition: border-color 140ms, background-color 140ms;
}

.carte-chemin:hover[b-htfzzyr1k7] {
    color: var(--ivoire);
    border-color: rgb(224 193 116 / 0.5);
    background: rgb(8 24 16 / 0.6);
}

.carte-chemin-texte[b-htfzzyr1k7] {
    display: grid;
    flex: 1;
    min-width: 0;
}

.carte-chemin-nom[b-htfzzyr1k7] {
    font-weight: 700;
}

.carte-chemin-detail[b-htfzzyr1k7] {
    color: var(--ivoire-pale);
    font-size: 0.9rem;
}

.avancee[b-htfzzyr1k7] {
    display: grid;
    justify-items: end;
    flex: none;
    gap: 0.1rem;
    font-weight: 700;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    color: var(--ivoire-pale);
}

.fini .avancee-compte[b-htfzzyr1k7],
.avancee-couronnes[b-htfzzyr1k7] {
    color: var(--laiton-200);
}

.avancee-couronnes[b-htfzzyr1k7],
.couronnes[b-htfzzyr1k7] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Un conteneur flex mange les blancs de bord : l'écart avant le « · » se donne en marge. */
.couronnes[b-htfzzyr1k7] {
    margin-inline-start: 0.3em;
    color: var(--laiton-200);
}

.explication-chemins[b-htfzzyr1k7] {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--ivoire-pale);
}

.form-code[b-htfzzyr1k7] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 28rem;
}

.champ-code[b-htfzzyr1k7] {
    flex: 1 1 12rem;
    min-height: 48px;
    padding: 0.5rem 0.9rem;
    color: var(--ivoire);
    font: 600 1.1rem / 1 ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: 0.08em;
    background: rgb(0 0 0 / 0.25);
    border: 1px solid rgb(224 193 116 / 0.3);
    border-radius: var(--rayon);
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.4);
}

.champ-code[b-htfzzyr1k7]::placeholder {
    color: var(--ivoire-pale);
    opacity: 0.6;
}

.champ-code:focus-visible[b-htfzzyr1k7] {
    outline: 3px solid var(--laiton-200);
    outline-offset: 2px;
    border-color: var(--laiton-300);
}

/* Le rouge est réservé à l'échec : un code inconnu se signale en laiton, comme toute indication. */
.champ-code[aria-invalid="true"][b-htfzzyr1k7] {
    border-color: var(--laiton-200);
    box-shadow: 0 0 0 1px var(--laiton-200);
}

.erreur-code[b-htfzzyr1k7] {
    margin-top: 0.6rem;
    color: var(--laiton-100);
    font-weight: 600;
}

/* ------------------------------------------------------------------ l'arrivée

   La plaque se pose, puis les entrées montent l'une après l'autre ; une entrée ouverte déplie son
   contenu. Rien de plus : la procession est le seul mouvement qui dure. */

@media (prefers-reduced-motion: no-preference) {
    .plaque-titre[b-htfzzyr1k7] {
        animation: s-plaque-b-htfzzyr1k7 560ms var(--courbe-pose) both;
    }

    .accroche[b-htfzzyr1k7] {
        animation: s-monte-b-htfzzyr1k7 480ms var(--courbe-pose) 120ms both;
    }

    .menu-liste > li[b-htfzzyr1k7] {
        animation: s-monte-b-htfzzyr1k7 460ms var(--courbe-pose) both;
        animation-delay: calc(180ms + var(--i, 0) * 50ms);
    }

    .entree[open] > .entree-contenu[b-htfzzyr1k7] {
        animation: s-deplie-b-htfzzyr1k7 260ms var(--courbe-pose);
    }
}

@keyframes s-plaque-b-htfzzyr1k7 {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
}

@keyframes s-monte-b-htfzzyr1k7 {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes s-deplie-b-htfzzyr1k7 {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ------------------------------------------------------------------ grand écran */

@media (min-width: 52rem) {
    .voie-loin[b-htfzzyr1k7] {
        --taille: 34px;
        --vitesse: 26;
    }

    .voie-proche[b-htfzzyr1k7] {
        --taille: 66px;
        --vitesse: 48;
        margin-top: 0.8rem;
    }

    .voie-sol[b-htfzzyr1k7] {
        --taille: 50px;
        --vitesse: 36;
        margin-top: 1.4rem;
    }

    .titre-jeu[b-htfzzyr1k7] {
        gap: 0.8rem;
    }

    .menu[b-htfzzyr1k7] {
        width: 32rem;
    }
}
/* /Components/Pages/Apprendre.razor.rz.scp.css */
.introuvable[b-1qk3esgvhc] {
    display: grid;
    gap: 1rem;
    justify-items: start;
    width: min(34rem, calc(100% - 2rem));
    margin: 3rem auto;
}

.introuvable h1[b-1qk3esgvhc] {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
}

.introuvable p[b-1qk3esgvhc] {
    color: var(--ivoire-doux);
}
/* /Components/Pages/Error.razor.rz.scp.css */
.perdu[b-7dc23hxcik] {
    display: grid;
    gap: 1rem;
    justify-items: start;
    width: min(34rem, calc(100% - 2rem));
    margin: 3rem auto;
}

h1[b-7dc23hxcik] {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
}

p[b-7dc23hxcik] {
    color: var(--ivoire-doux);
}

.reference[b-7dc23hxcik] {
    font-size: 0.9rem;
    color: var(--ivoire-pale);
}
/* /Components/Pages/NotFound.razor.rz.scp.css */
.perdu[b-4bz6ul537x] {
    display: grid;
    gap: 1rem;
    justify-items: start;
    width: min(34rem, calc(100% - 2rem));
    margin: 3rem auto;
}

h1[b-4bz6ul537x] {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
}

p[b-4bz6ul537x] {
    color: var(--ivoire-doux);
}
/* /Components/Pages/Partie.razor.rz.scp.css */
.partie[b-lzs7arw3gs] {
    display: grid;
    gap: 0.9rem;
    padding: 0.4rem 0 2rem;
}

.zone-plateau[b-lzs7arw3gs] {
    display: grid;
    gap: 0.35rem;
    /* Téléphone : bord à bord. Tablette en portrait : grand, mais sans pousser les sièges hors de l'écran. */
    width: min(100%, max(20rem, calc(100dvh - var(--barre) - 12rem)));
    margin: 0 auto;
}

.zone-cote[b-lzs7arw3gs] {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    width: min(100%, 46rem);
    margin: 0 auto;
    padding: 0 max(0.75rem, env(safe-area-inset-right)) 0 max(0.75rem, env(safe-area-inset-left));
    min-width: 0;
}

/* ------------------------------------------------------------------ statut */

.ligne-statut[b-lzs7arw3gs] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* La case en cours de saisie au clavier, tenue hors du plateau pour ne rien y cacher. */
.saisie[b-lzs7arw3gs] {
    padding: 0.15em 0.55em;
    font: 700 1rem / 1.2 ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--laiton-100);
    background: rgb(23 13 7 / 0.7);
    border: 1px solid var(--laiton-500);
    border-radius: var(--rayon-petit);
}

.saisie:empty[b-lzs7arw3gs] {
    display: none;
}

/* Le nom du mode, en étiquette au bout de la ligne de statut : la partie se reconnaît sans phrase.
   Même police que le statut : la gravure reste aux plaques. */
.mode-partie[b-lzs7arw3gs] {
    margin-left: auto;
    flex: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--laiton-200);
    white-space: nowrap;
}

.statut[b-lzs7arw3gs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.6rem;
    font-weight: 600;
    color: var(--ivoire-doux);
}

.statut.a-toi[b-lzs7arw3gs] {
    color: var(--laiton-100);
}

.statut.a-toi[b-lzs7arw3gs]::before {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--laiton-100), var(--laiton-400));
    box-shadow: 0 0 10px rgb(239 217 152 / 0.8);
}

.statut.en-echec[b-lzs7arw3gs] {
    color: #f4c2bb;
}

/* ------------------------------------------------------------------ panneaux */

.panneau[b-lzs7arw3gs] {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.05rem 1.1rem;
    background: rgb(8 24 16 / 0.5);
    border: 1px solid rgb(224 193 116 / 0.26);
    border-radius: var(--rayon);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 6px 18px rgb(0 0 0 / 0.25);
    animation: s-panneau-b-lzs7arw3gs 260ms var(--courbe-pose) both;
}

@keyframes s-panneau-b-lzs7arw3gs {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

.panneau h2[b-lzs7arw3gs] {
    font-family: var(--police-gravee);
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--laiton-200);
}

.panneau p[b-lzs7arw3gs] {
    color: var(--ivoire-doux);
}

.rangee-boutons[b-lzs7arw3gs] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rangee-boutons > .bouton[b-lzs7arw3gs] {
    flex: 1 1 10rem;
}

.lien-partie[b-lzs7arw3gs] {
    padding: 0.65rem 0.8rem;
    font: 600 0.95rem / 1.35 ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--ivoire) !important;
    background: rgb(0 0 0 / 0.28);
    border: 1px solid rgb(224 193 116 / 0.22);
    border-radius: var(--rayon-petit);
    word-break: break-all;
    user-select: all;
    -webkit-user-select: all;
}

.code-dicte[b-lzs7arw3gs] {
    font-size: 0.95rem;
}

.code-dicte strong[b-lzs7arw3gs] {
    font: 700 1.05rem / 1 ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: 0.08em;
    color: var(--laiton-200);
}

.attente[b-lzs7arw3gs] {
    flex-basis: 100%;
    color: var(--ivoire-doux);
    font-style: italic;
}

/* La fin : la plaque gravée descend se visser sur le panneau. */
.panneau-fin[b-lzs7arw3gs] {
    border-color: var(--laiton-400);
}

.panneau .titre-fin[b-lzs7arw3gs] {
    color: var(--noyer-900);
}

.titre-fin[b-lzs7arw3gs] {
    justify-self: start;
    font-size: 1.45rem;
    padding: 0.3em 1.3em 0.24em;
    animation: s-plaque-b-lzs7arw3gs 520ms var(--courbe-pose) 180ms both;
}

@keyframes s-plaque-b-lzs7arw3gs {
    from {
        opacity: 0;
        transform: translateY(-14px) rotate(-3deg) scale(1.06);
    }
}

.explication-fin[b-lzs7arw3gs] {
    color: var(--ivoire) !important;
    font-size: 1.05rem;
}

/* ------------------------------------------------------------------ actions */

.actions[b-lzs7arw3gs] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4.4rem, 1fr));
    gap: 0.45rem;
}

.bouton-action[b-lzs7arw3gs] {
    flex-direction: column;
    gap: 0.2rem;
    min-height: 58px;
    padding: 0.45rem 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.bouton-action svg[b-lzs7arw3gs] {
    width: 1.4rem;
    height: 1.4rem;
}

.tribune[b-lzs7arw3gs] {
    color: var(--ivoire-pale);
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------ coups */

/* Le nom de l'ouverture, au-dessus des coups, derrière un livre ouvert : une information de lecture,
   comme l'étiquette de mode, pas une gravure. Pas de mot « Ouverture » à l'écran, la moitié des noms
   commencent déjà par lui ; le lecteur d'écran l'entend. Le nom passe à la ligne, il ne déborde jamais. */
.ouverture[b-lzs7arw3gs] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    min-width: 0;
    font-size: 0.85rem;
}

.ouverture-icone[b-lzs7arw3gs] {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--ivoire-pale);
}

.ouverture-nom[b-lzs7arw3gs] {
    font-weight: 600;
    color: var(--laiton-200);
    overflow-wrap: anywhere;
}

.coups-vide[b-lzs7arw3gs] {
    color: var(--ivoire-pale);
    font-size: 0.92rem;
}

.coups[b-lzs7arw3gs] {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.2rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    background: rgb(0 0 0 / 0.18);
    border-radius: var(--rayon-petit);
}

.paire[b-lzs7arw3gs] {
    display: flex;
    flex: none;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.2rem 0.35rem;
}

/* Le dernier coup est le premier élément, posé à droite par row-reverse. Sa marge automatique
   ramène la bande à gauche tant qu'elle est courte ; dès qu'elle déborde, la marge tombe à zéro et
   le défilement part de la droite, calé sur le dernier coup. (justify-content: flex-end ferait
   déborder du mauvais côté, hors d'atteinte.) */
.paire:first-child[b-lzs7arw3gs] {
    margin-right: auto;
}

.numero[b-lzs7arw3gs] {
    color: var(--ivoire-pale);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.san[b-lzs7arw3gs] {
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.san.dernier[b-lzs7arw3gs] {
    color: var(--noyer-900);
    background: var(--laiton-300);
}

/* ------------------------------------------------------------------ partie introuvable */

.introuvable[b-lzs7arw3gs] {
    display: grid;
    gap: 1rem;
    justify-items: start;
    width: min(34rem, calc(100% - 2rem));
    margin: 3rem auto;
}

.introuvable h1[b-lzs7arw3gs] {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
}

.introuvable p[b-lzs7arw3gs] {
    color: var(--ivoire-doux);
}

/* ------------------------------------------------------------------ grand écran et téléphone couché

   Le plateau à gauche prend la hauteur. À droite, une seule colonne : la plaque de l'adversaire en
   haut, la tienne en bas, la partie entre les deux. Les sièges sortent de .zone-plateau (display:
   contents) pour se placer dans cette colonne ; leur ordre dans le DOM reste celui du téléphone. */

@media (min-width: 60rem), (orientation: landscape) and (max-height: 32rem) {
    .partie[b-lzs7arw3gs] {
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "plateau haut"
            "plateau cote"
            "plateau bas";
        justify-content: center;
        /* La colonne a exactement la hauteur du plateau : ce qui déborde défile dedans. */
        height: calc(var(--cote) + 2 * var(--marge-haut));
        padding: var(--marge-haut) max(var(--marge-cote), env(safe-area-inset-right)) var(--marge-haut) max(var(--marge-cote), env(safe-area-inset-left));
    }

    .zone-plateau[b-lzs7arw3gs] {
        display: contents;
    }

    .zone-plateau[b-lzs7arw3gs]  .cadre-plateau {
        grid-area: plateau;
        width: var(--cote);
    }

    .zone-plateau[b-lzs7arw3gs]  .siege {
        padding: 0;
    }

    .zone-plateau[b-lzs7arw3gs]  .siege.en-haut {
        grid-area: haut;
    }

    .zone-plateau[b-lzs7arw3gs]  .siege.en-bas {
        grid-area: bas;
    }

    .zone-cote[b-lzs7arw3gs] {
        grid-area: cote;
        display: flex;
        flex-direction: column;
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .zone-cote > *[b-lzs7arw3gs] {
        flex: none;
    }
}

@media (min-width: 60rem) {
    .partie[b-lzs7arw3gs] {
        /* Le plateau prend la hauteur, moins la barre et les marges ; la colonne garde 24rem. */
        --cote: clamp(22rem, calc(100dvh - var(--barre) - 2.5rem), calc(100vw - 24rem - 6rem));
        --marge-haut: 1.25rem;
        --marge-cote: 1.5rem;
        grid-template-columns: var(--cote) minmax(19rem, 24rem);
        column-gap: 2.25rem;
        row-gap: 1rem;
    }

    /* Dans la colonne, le logement passe sous la plaque, sur toute la largeur. */
    .zone-plateau[b-lzs7arw3gs]  .siege {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .zone-plateau[b-lzs7arw3gs]  .logement {
        flex: 1 1 100%;
        height: 3rem;
    }

    /* La liste prend la hauteur de ses coups, et défile quand elle atteint la plaque du bas. */
    .zone-cote > .coups[b-lzs7arw3gs] {
        flex: 0 1 auto;
        min-height: 4.5rem;
    }

    .coups[b-lzs7arw3gs] {
        flex-direction: column-reverse;
        background: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .paire[b-lzs7arw3gs] {
        display: grid;
        grid-template-columns: 2.6rem 1fr 1fr;
        padding: 0.1rem 0.4rem;
    }

    /* Même ressort qu'au téléphone, à la verticale : la marge du dernier coup pousse la liste en
       haut tant qu'elle est courte, et tombe à zéro quand elle déborde, calée sur le dernier coup. */
    .paire:first-child[b-lzs7arw3gs] {
        margin-right: 0;
        margin-bottom: auto;
    }

    .paire:nth-child(even)[b-lzs7arw3gs] {
        background: rgb(255 255 255 / 0.03);
    }
}

/* Téléphone couché : le plateau prend toute la hauteur sous la barre. */
@media (orientation: landscape) and (max-height: 32rem) and (max-width: 59.99rem) {
    .partie[b-lzs7arw3gs] {
        --cote: max(13rem, calc(100dvh - var(--barre) - 1rem));
        --marge-haut: 0.5rem;
        --marge-cote: 0.75rem;
        grid-template-columns: var(--cote) minmax(13rem, 1fr);
        column-gap: 1rem;
        row-gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panneau[b-lzs7arw3gs],
    .titre-fin[b-lzs7arw3gs] {
        animation: none;
    }
}

/* « Niveau Fou » : l'invitation à monter d'un cran tient toute la ligne, la pièce debout dans le bouton. */
.rangee-boutons > .bouton-suivant[b-lzs7arw3gs] {
    flex-basis: 100%;
}

.rangee-boutons .jeton[b-lzs7arw3gs] {
    width: 1.6em;
    height: 1.6em;
    margin-block: -0.3em;
}
