/* La page de préparation, dans la charte d'arithmétiK (titre, niveaux,
   annonce) — recopiée ici pour ne pas dépendre de sa feuille. */
main { flex: 1; max-width: 800px; margin: 0 auto; padding: 1rem; width: 100%; box-sizing: border-box; }
.ap-titre-page { text-align: center; font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 900; margin: 1rem 0 0.1rem; color: #C8267D; }   /* tout en rose framboise, le K incliné reste bleu (Julien, 17 oct.) */
.ap-sous-titre { text-align: center; font-style: italic; color: #666; margin: 0 0 0.9rem; font-size: 0.95rem; }
.ap-bientot { max-width: 520px; margin: 0 auto; padding: 1rem 0 2rem; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.ap-bientot[hidden] { display: none; }
.ap-bientot-date { align-self: center; background: #FFD700; color: #3a2a22; font-weight: 800; border-radius: 50px; padding: 0.5rem 1.2rem; margin: 0; font-size: 1.05rem; }
.ap-bientot-intro { margin: 0; font-size: 1rem; line-height: 1.5; color: #3a2a22; }
.ak-niveaux { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.ak-niveaux .level-btn {
    min-height: 44px; padding: 0.45rem 0.75rem; border: none; border-radius: 8px; cursor: pointer;
    font-family: inherit; font-weight: 700; font-size: 0.9rem; line-height: 1.25; opacity: 0.45;
    transition: opacity 0.15s, transform 0.15s;
}
.ak-niveaux .level-btn > span { display: block; font-size: 0.75rem; font-weight: 600; }
.ak-niveaux .level-btn[data-level="1"] { background-color: #c2185b; color: #fff; }
.ak-niveaux .level-btn[data-level="2"] { background-color: #FFD700; color: #333; }
.ak-niveaux .level-btn[data-level="3"] { background-color: #0089D4; color: #fff; }
.ak-niveaux .level-btn[data-level="4"] { background-color: #4CAF50; color: #fff; }
.ak-niveaux .level-btn[data-level="5"] { background-color: #333333; color: #fff; }
.ak-niveaux .level-btn.active { opacity: 1; transform: scale(1.05); }
@media (max-width: 480px) {
    .ak-niveaux { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
    .ak-niveaux .level-btn { padding: 0.35rem 0.1rem; font-size: 0.875rem; min-width: 0; }
    .ak-niveaux .level-btn.active { transform: scale(1.04); }
}

/* ============================================================
   apprendre-spikto.css — « Apprendre le spiKto® » (apprendre-spikto.js).
   Tient dans un 360 × 640 sans défiler : la carte garde une hauteur fixe
   d'une étape à l'autre (Julien, 12 oct. : des encadrés de taille qui ne
   varie pas), game-focus la met à l'échelle de l'écran.
   ============================================================ */
.ap-page-titre .titre-mot { color: #3a2a22; }

/* La carte de préparation : les tours du niveau. */
.ap-vignette { width: 100%; margin-bottom: 0.8rem; }
.ap-v-titre { margin: 0 0 0.5rem; font-weight: 800; font-size: 1.05rem; color: #55524e; text-align: center; }
.ap-tours { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ap-tour-puce { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; border-radius: 12px; border: 2px solid #e4d8c6;
                background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: #4a3f31; text-align: left; cursor: pointer; }
.ap-tour-puce.on { border-color: #0089D4; background: #eaf6fd; }
.ap-tour-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #f1ece3; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.ap-tour-puce.fait .ap-tour-num { background: #4CAF50; color: #fff; }

/* La carte de jeu, dans le mode jeu. */
.ap-scene { width: 100%; }
.ap-carte {
    /* Une hauteur FIXE pour tout le tour (relecture du 13 oct.) : avec un
       simple plancher, la carte grandissait à la présentation ou à une
       correction, et game-focus changeait l'échelle — l'effet de dézoom
       au premier toucher. L'encadré absorbe la différence. */
    box-sizing: border-box; width: 100%; height: 570px;
    background: rgba(255, 255, 255, 0.92); border-radius: 20px; box-shadow: 0 6px 22px rgba(60, 40, 15, .12);
    padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #3a2a22;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ap-tour { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8b7d6f; }
.ap-titre { margin: 0; font-size: 1.2rem; font-weight: 900; line-height: 1.3; }
.ap-question { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.35; }
.ap-etape { display: block; font-size: 13px; font-weight: 700; color: #8b7d6f; margin-bottom: 2px; }
.ap-valeur { display: inline-block; min-width: 1.6em; padding: 0 0.3em; border-radius: 8px; background: #e9f4fb; color: #0b5c8a; font-size: 1.2em; letter-spacing: .04em; }
.ap-texte { margin: 0; font-size: 15px; line-height: 1.45; color: #5b4f42; }

/* L'encadré : la même boîte sable à chaque étape, elle prend la hauteur libre. */
.ap-encadre { flex: 1 1 auto; width: 100%; box-sizing: border-box; background: #faf7f0; border-radius: 16px; padding: 12px 8px;
              display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; overflow: hidden; }
.ap-encadre.ap-ligne { flex-direction: row; gap: 16px; }
/* Niveau 5 : le clavier prend la place, l'encadré se contente de la sienne
   (les touches gardent leurs 44 px sur un 360 × 640). */
.ap-encadre.compact { flex: 0 0 auto; min-height: 0; padding: 8px; }
.ap-presentation { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.ap-presentation.serree { gap: 6px; }
.ap-presentation.serree .ap-pik > span { width: 38px; height: 38px; }
.ap-pik { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ap-pik > span { width: 50px; height: 50px; background: #fff; border: 2px solid #e4d8c6; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ap-pik img { width: 82%; height: 82%; object-fit: contain; }
.ap-pik small { font-size: 15px; font-weight: 800; color: #0089D4; white-space: nowrap; }
.ap-pik.grand > span { width: 84px; height: 84px; border-radius: 16px; }
/* Peu de piKto à retenir : on les montre en grand. */
.ap-presentation.n2 .ap-pik > span, .ap-presentation.n3 .ap-pik > span, .ap-presentation.n4 .ap-pik > span { width: 66px; height: 66px; border-radius: 14px; }
.ap-presentation.n5 .ap-pik > span { width: 54px; height: 54px; }
.ap-presentation.n2 .ap-pik small, .ap-presentation.n3 .ap-pik small, .ap-presentation.n4 .ap-pik small { font-size: 17px; }
.ap-pik.grand small { font-size: 22px; }
.ap-cache { display: flex; gap: 10px; }
.ap-dos { width: 50px; height: 50px; border-radius: 12px; background: #e9dfcf; border: 2px solid #d9cdb8; color: #a8987f; font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.ap-cible-txt { font-size: 52px; font-weight: 900; color: #0b5c8a; line-height: 1; }
.ap-kadran-mini { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 10px rgba(60,40,15,.15); }

.ap-zone { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ap-pastille { display: inline-block; padding: 0.35rem 1.1rem; border-radius: 50px; background: #FFD600; color: #3A2A00; font-size: 1.15rem; font-weight: 900; }
.ap-go, .ap-second { width: 100%; max-width: 300px; min-height: 50px; border-radius: 50px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
/* GO en bleu, comme partout (Julien, 14 oct.) ; seul le disque de l'entraînement reste jaune. */
.ap-go { border: 0; background: linear-gradient(145deg, #0089D4, #00699F); color: #fff; }
.ap-second { border: 2px solid #e0d8cb; background: #fff; color: #4a3f31; }

/* Les propositions. */
.ap-choix { display: grid; gap: 10px; width: 100%; max-width: 330px; justify-content: center; }
.ap-choix.n2 { grid-template-columns: repeat(2, 1fr); max-width: 220px; }
.ap-choix.n3 { grid-template-columns: repeat(3, 1fr); max-width: 300px; }
.ap-choix.n4 { grid-template-columns: repeat(4, 1fr); }
.ap-choix button { font: inherit; cursor: pointer; border: 2px solid #e4d8c6; border-radius: 14px; background: #fff; color: #3a2a22; touch-action: manipulation; min-height: 64px; }
.ap-choix.pik button { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 6px; }
.ap-choix.pik img { width: 84%; height: 84%; object-fit: contain; }
.ap-choix.val button { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.ap-choix button.juste { border-color: #2E7D32; background: #e8f5e9; color: #2E7D32; }
.ap-choix button.faux { border-color: #b3261e; background: #fdecea; color: #b3261e; }
.ap-choix button:disabled { cursor: default; }
.ap-choix.fige { pointer-events: none; }
.ap-verdict { margin: 0; font-size: 15px; line-height: 1.4; }
.ap-verdict:empty { display: none; }
.ap-v { color: #2E7D32; } .ap-r { color: #b3261e; }
.ap-pied { width: 100%; display: flex; justify-content: center; margin-top: auto; }

/* Le bouton Kadran : la vignette du Kadran et son nom. */
.ap-kadran-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 50px; border: 2px solid #8cc8ec;
                 background: #eaf6fd; color: #0b5d8a; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.ap-kadran-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ap-kadran-grand { display: block; width: 100%; max-width: 340px; aspect-ratio: 1; height: auto; margin: 0 auto; border-radius: 14px; }
.ap-kadran-box .ap-kadran-grand { margin-bottom: 0.7rem; }

/* Niveau 5 : la saisie. */
.ap-saisie { min-width: 64px; height: 56px; padding: 0 10px; border: 2px dashed #d9cdb8; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
             font-size: 30px; font-weight: 900; letter-spacing: .08em; background: #fff; }
.ap-saisie-mot { min-width: 140px; }
.ap-saisie.juste { border: 2px solid #2E7D32; color: #2E7D32; background: #e8f5e9; }
.ap-saisie.faux { border: 2px solid #b3261e; color: #b3261e; background: #fdecea; }
.ap-pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 280px; }
.ap-clavier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: 100%; max-width: 340px; }
.ap-pave button, .ap-clavier button { font: inherit; font-size: 21px; font-weight: 800; min-height: 44px; border: 0; border-radius: 10px; background: #f1ece3; color: #3a2a22; cursor: pointer; touch-action: manipulation; }
.ap-clavier .ap-large { grid-column: span 2; }
.ap-clavier button { font-size: 20px; min-height: 46px; }
.ap-ok { background: #0089D4 !important; color: #fff !important; font-size: 17px !important; }
.ap-palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 100%; max-width: 312px; }
.ap-palette button { aspect-ratio: 1; border: 2px solid #e4d8c6; border-radius: 10px; background: #fff; padding: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.ap-palette img { width: 86%; height: 86%; object-fit: contain; }
.ap-palette .ap-effacer { font: inherit; font-size: 20px; font-weight: 800; color: #6b5c4a; background: #f1ece3; border: 0; }
.ap-composition { display: flex; gap: 8px; justify-content: center; }
.ap-case { width: 52px; height: 52px; border-radius: 12px; border: 2px dashed #d9cdb8; background: #fff; display: flex; align-items: center; justify-content: center; }
.ap-case img { width: 82%; height: 82%; object-fit: contain; }
.ap-case.juste { border: 2px solid #2E7D32; background: #e8f5e9; }
.ap-case.faux { border: 2px solid #b3261e; background: #fdecea; }

/* La fin du tour. */
.ap-score { margin: 0.2rem 0 0; font-size: 18px; color: #6b5c4a; }
.ap-score b { font-size: 46px; color: #3a2a22; }
/* « À revoir » en couleur neutre (audit du 14 oct.) : le rouge grondait. */
.ap-revoir-titre { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6b5c4a; }
/* Le second essai reconnu, en vert. */
.ap-second-essai { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.4; color: #2E7D32; }
/* La carte qui annonce le second essai : sa phrase, en grand. */
.ap-texte-grand { font-size: 17px; line-height: 1.5; color: #3a2a22; padding: 0 10px; }
/* Les règles ouvertes pendant une question préviennent qu'elle reviendra. */
.ap-regles-note { margin: 0 0 0.6rem; padding: 6px 10px; border-radius: 10px; background: #fff6cc; color: #4a3f31; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; }
.ap-fin-boutons { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; }

/* Les règles : deux cartes empilées dans la même case, la boîte à la taille
   de la plus grande (comme les règles du défi). */
.ap-regles { max-width: 400px; }
.ap-pile { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
.ap-pile-carte { display: contents; }
.ap-pile-carte > .ap-titre { grid-row: 1; grid-column: 1; margin-bottom: 0.5rem; }
.ap-pile-carte > .ap-encadre { grid-row: 2; grid-column: 1; margin-bottom: 0.7rem; }
.ap-pile-carte > .instr-text { grid-row: 3; grid-column: 1; }
.ap-pile-carte:not(.on) > * { visibility: hidden; }
.ap-encadre-regle .ap-kadran-grand { max-width: min(300px, calc(100vh - 340px)); }

@media (max-width: 380px) {
    .ap-carte { padding: 12px 10px 12px; }
    .ap-pik > span, .ap-dos { width: 44px; height: 44px; }
    .ap-choix button { min-height: 58px; }
}

.ap-pik-texte { width: 1.45em; height: 1.45em; object-fit: contain; vertical-align: -0.38em; }

/* ---- Le Kadran dessiné (13 oct.) : le bloc travaillé en couleur, le reste
   en transparence ; sur la page de préparation, un toucher choisit le bloc. */
.kadran-dessin { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; overflow: visible; }
.kadran-dessin .kd-lettre { font: 900 17px/1 'Fredoka', -apple-system, 'Segoe UI', sans-serif; text-anchor: middle; dominant-baseline: central; }
.kadran-dessin .kd-num { font: 800 14px/1 -apple-system, 'Segoe UI', sans-serif; text-anchor: middle; dominant-baseline: central; }
.kadran-dessin .kd-pik { transition: opacity .25s; }
.kadran-dessin .kd-estompe { opacity: .16; }
.kadran-dessin .kd-lien { fill: none; stroke: #8b7d6f; stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .7; }
.kadran-dessin .kd-coin { fill: transparent; cursor: pointer; }
.kadran-dessin .kd-coin:hover { fill: rgba(0, 137, 212, .06); }
.ap-encadre-kadran { gap: 6px; padding: 8px; }
.ap-encadre-kadran .kadran-dessin { max-width: min(290px, calc(100vh - 330px)); }
.ap-presentation-tour .ap-pik > span { width: 44px !important; height: 44px !important; }
.ap-presentation-tour .ap-pik small { font-size: 15px !important; }
.ap-kadran-aide .kadran-dessin { max-width: min(330px, calc(100vh - 230px)); margin-bottom: .6rem; }
.ap-vignette .kadran-dessin { max-width: 230px; max-width: min(230px, calc(100vh - 500px)); max-width: min(230px, calc(100dvh - 500px)); margin-bottom: 4px; }
/* Écran bas : la phrase d'aide cède sa ligne au GO. */
@media (max-height: 700px) { .ap-v-aide { display: none; } }
/* Sur un écran large, le Kadran à gauche, les tours à droite : le GO reste
   dans l'écran d'un ordinateur. */
@media (min-width: 700px) {
    .ap-vignette { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "titre titre" "kadran tours" "kadran aide"; column-gap: 18px; align-items: center; }
    .ap-vignette .ap-v-titre { grid-area: titre; }
    .ap-vignette .kadran-dessin { grid-area: kadran; width: 230px; max-width: none; }
    .ap-vignette .ap-tours { grid-area: tours; grid-template-columns: 1fr 1fr; align-self: end; }
    .ap-vignette .ap-v-aide { grid-area: aide; align-self: start; margin-top: 6px; }
}
/* Les tours en trois colonnes sous le Kadran : le GO reste dans l'écran. */
.ap-vignette .ap-tours { grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ap-vignette .ap-tour-puce { padding: 3px 6px; gap: 5px; font-size: 14px; line-height: 1.15; }
.ap-vignette .ap-tour-num { width: 22px; height: 22px; font-size: 12px; }
/* Un nom de niveau trop long passe sur deux lignes au lieu d'être coupé. */
.ak-niveaux .level-btn > span { white-space: normal; line-height: 1.1; }
/* Sur téléphone, comme dans les autres jeux : « Niveau 2 » seul (le nom du
   niveau est redit en tête de la carte) — c'est ce qui garde le GO dans
   l'écran d'un 360 × 640. */
@media (max-width: 600px) {
    .ak-niveaux .level-btn > span { display: none; }
    .ak-niveaux .level-btn { white-space: nowrap; min-height: 44px; }
}
.ap-v-aide { margin: 0 0 6px; font-size: 13px; color: #8b7d6f; text-align: center; }

/* Les règles : le déroulé en deux temps (niveaux 1 à 3). */
.ap-deroule { margin: 0; padding-left: 1.4rem; text-align: left; display: grid; gap: 0.35rem; }
.ap-deroule li { padding-left: 0.2rem; }
.ap-encadre-regle .kadran-dessin { max-width: min(280px, calc(100vh - 360px)); }

/* Le petit titre des règles garde la casse de la marque (« spiKto », jamais
   « SPIKTO ») : pas de capitales forcées ici. */
.ap-regles .instr-step { text-transform: none; letter-spacing: .02em; font-size: 0.8rem; }

/* ---- Page de préparation sur téléphone (relecture du 13 oct.) ----
   Les tours sur une seule rangée de pastilles numérotées (44 px), le nom du
   tour choisi dans le titre : deux rangées de tours faisaient sortir le GO
   d'un 360 × 640. */
.ap-v-tour { font-weight: 700; color: #6b5c4a; }
@media (max-width: 600px) {
    .ap-vignette .ap-tours { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44px; justify-content: center; gap: 6px; }
    .ap-vignette .ap-tour-puce { padding: 0; justify-content: center; min-height: 44px; }
    .ap-vignette .ap-tour-nom { display: none; }
    .ap-vignette .ap-tour-num { width: 30px; height: 30px; font-size: 14px; }
}
@media (min-width: 601px) { .ap-v-tour { display: none; } }
/* Écran bas : le petit Kadran ne sert plus que de plan — ses lettres seraient
   illisibles et ses coins trop petits pour le doigt ; on choisit le tour par
   les pastilles. */
@media (max-height: 700px) {
    .ap-vignette .kd-lettre, .ap-vignette .kd-num { display: none; }
    .ap-vignette .kd-coin { pointer-events: none; }
}

/* La fin du tour (audit du 14 oct.) : « À revoir » prend sa hauteur
   naturelle — s'il ne tient pas, ses piKto se réduisent (ajusterVisuel) au
   lieu d'être rognés —, et les deux boutons secondaires vont côte à côte. */
.ap-encadre.ap-revoir { flex: none; overflow: visible; padding: 8px; gap: 6px; }
.ap-fin-autres { display: flex; gap: 8px; width: 100%; max-width: 300px; }
.ap-fin-autres .ap-second { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 4px 8px; font-size: 15px; line-height: 1.2; }

/* ---- Le parcours unique (17 oct.) : les nouvelles questions ---- */
/* Quatre écritures en piKto : une par ligne, en pleine largeur, pour que les
   piKto restent lisibles et comparables (le piège tient souvent à un seul). */
.ap-choix.ecr { grid-template-columns: 1fr; gap: 8px; max-width: 330px; }
.ap-choix.ecr button { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 6px 8px; }
.ap-ecriture { display: inline-flex; gap: 4px; align-items: center; }
.ap-ecriture img { width: 34px; height: 34px; object-fit: contain; }
/* Les mots à lire ou à écrire : en lettres capitales, moins grand qu'un
   numéro seul pour tenir sur un téléphone. */
.ap-cible-txt.ap-cible-mot { font-size: 40px; letter-spacing: .06em; }
.ap-choix.val.n4 button { font-size: 22px; }
.ap-presentation-mot .ap-pik > span { width: 54px; height: 54px; }
/* Un calcul en piKto : deux piKto, l'opération, « = ? ». */
.ap-calcul { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.ap-calcul .ap-pik > span { width: 60px; height: 60px; }
.ap-op { font-size: 32px; font-weight: 900; color: #0b5c8a; }
/* La fin de série : le Kadran de la progression un peu plus petit. */
.ap-progres .kadran-dessin { max-width: 230px; }
/* La page de préparation sans niveaux ni tours : le Kadran de la progression
   prend la place libérée (c'est la jauge, il doit se lire). */
.ap-vignette { display: block !important; text-align: center; }
.ap-vignette .kadran-dessin { width: 100%; max-width: min(270px, calc(100vh - 430px)); max-width: min(270px, calc(100dvh - 430px)); margin: 4px auto; display: block; }

/* ---- Une mise en page commune à toutes les questions (Julien, 17 oct. : « les
   4 propositions sont étriquées et l'encadré de l'exemple est énorme […]
   homogène sur tous les niveaux ») : l'exemple dans un encadré compact, de la
   même hauteur pour un piKto, une lettre, un mot ou un calcul ; les quatre
   propositions en grand, deux par deux, qui prennent la place libre. ---- */
.ap-carte.ap-mode-q .ap-encadre { flex: 0 0 136px; padding: 10px 8px; }
.ap-carte.ap-mode-q .ap-pik.grand > span { width: 92px; height: 92px; }
.ap-carte.ap-mode-q .ap-cible-txt { font-size: 56px; }
.ap-carte.ap-mode-q .ap-cible-txt.ap-cible-mot { font-size: 44px; }
.ap-carte.ap-mode-q .ap-presentation-mot { flex-wrap: nowrap; gap: 6px; }
.ap-carte.ap-mode-q .ap-presentation-mot .ap-pik > span { width: 56px; height: 56px; }
.ap-carte.ap-mode-q .ap-zone { flex: 1 1 auto; min-height: 0; justify-content: stretch; }
.ap-carte.ap-mode-q .ap-choix { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 1fr; width: 100%; max-width: 340px; height: 100%; gap: 10px; }
.ap-carte.ap-mode-q .ap-choix button { aspect-ratio: auto !important; min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 16px; }
.ap-carte.ap-mode-q .ap-choix.pik img { width: auto; height: 72%; max-width: 72%; object-fit: contain; }
.ap-carte.ap-mode-q .ap-choix.val button { font-size: 34px; letter-spacing: .05em; }
.ap-carte.ap-mode-q .ap-choix.ecr { max-width: 340px; }
.ap-carte.ap-mode-q .ap-choix.ecr .ap-ecriture { flex-wrap: wrap; justify-content: center; gap: 3px; }
.ap-carte.ap-mode-q .ap-choix.ecr .ap-ecriture img { width: 30px; height: 30px; }
/* « Règles du jeu » sur la page de préparation : le jaune du bouton Règles des
   jeux, avec son livre, pour qu'on le voie (Julien, 17 oct.). */
#ap-btn-regles { display: flex; align-items: center; justify-content: center; gap: 8px; background: #FFD600; color: #3a2a00; border: 2px solid #f2c200; font-weight: 800; }
#ap-btn-regles .gf-icone { width: 22px; height: 22px; }
/* ---- Le carrousel Kadran / Klavier, et le Klavier dessiné (17 oct.) ---- */
.ap-carrousel { --h: min(250px, calc(100vh - 510px)); --h: min(250px, calc(100dvh - 510px)); display: flex; flex-direction: column; align-items: center; }
.ap-car-vue { display: none; height: var(--h); }
.ap-car-vue.on { display: block; }
.ap-car-vue svg { height: 100%; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.ap-vignette .ap-car-vue .kadran-dessin { max-width: none; width: auto; height: 100%; margin: 0 auto; }
.ap-car-points { display: flex; justify-content: center; gap: 0; margin-top: 2px; }
.ap-car-points button { width: 26px; height: 30px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.ap-car-points button span { width: 10px; height: 10px; border-radius: 50%; background: #d8cfc0; }
.ap-car-points button.on span { background: #0089D4; }
.klavier-dessin .kv-lettre, .klavier-dessin .kv-num { font: 900 28px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.klavier-dessin .kv-estompe { opacity: 0.22; }
.kadran-33 .kd-num-jok { font-weight: 900; fill: #0089D4; }
.ap-encadre-regle .klavier-dessin { height: 100%; max-height: 300px; width: auto; }
.ap-car-legende { margin: 2px 0 0; font-size: 14px; line-height: 1.35; color: #5b4f42; }
.ap-car-legende .ap-pik-texte { width: 20px; height: 20px; vertical-align: -4px; }
/* Les titres des cartes des règles (« Le Kadran alpha-numériK », le Klavier,
   les spéciaux) dans le gris du titre de la vignette : ni noir, ni ocre (Julien, 17 oct.). */
.ap-regles .ap-titre, .ap-kadran-box .instr-step { color: #55524e; }
