/*
 * Gomoku : pages de jeu (ordinateur, à deux, entraînement, duel, défi du jour).
 * Le socle (police, #app, boutons, barre du haut, encart de classement) vient
 * de jeu.css partagé, chargé avant. Ici : l'écran de réglages, le salon, le
 * plateau, le panneau de fin.
 *
 * Le plateau est dimensionné par la LARGEUR et par la HAUTEUR disponibles :
 * --gk-reserve est la hauteur occupée au-dessus et au-dessous de lui. Sur un
 * téléphone tenu à la verticale il prend toute la largeur de l'écran ; tenu à
 * l'horizontale, il passe à gauche sur toute la hauteur.
 */

body { --gk-bois: #cfa55b; --gk-bois-bord: #8b6914; --gk-trait: rgba(40, 26, 4, 0.62); --gk-reserve: 300px; }
#app { max-width: 760px; position: relative; z-index: 1; }
.top-bar h1 { font-size: 1.35rem; }
.top-bar .etiquette { min-width: 60px; text-align: right; font-size: 0.8rem; font-weight: 700; color: var(--color-light); }
[hidden] { display: none !important; }

/* ============================== RÉGLAGES ============================== */

.reglages { max-width: 560px; margin: 0 auto; text-align: left; }
.reglages h2 { font-family: var(--font-display); font-size: 1.15rem; color: #f0f3f6; text-align: center; margin-bottom: 14px; }
.reglage { margin-bottom: 18px; }
.reglage-titre { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); margin-bottom: 8px; }
.reglage-aide { font-size: 0.86rem; line-height: 1.5; color: var(--texte-doux); margin-top: 8px; min-height: 1.3em; }
.reglage-option { font-size: 0.86rem; color: var(--texte-doux); text-align: center; margin: 0 0 14px; }
.reglage-option label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.reglage-option input { width: 18px; height: 18px; accent-color: var(--color-btn1); }

.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button {
  flex: 1 1 96px;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--texte);
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.choix button:hover { border-color: var(--color-light); }
.choix button[aria-pressed="true"] { background: color-mix(in srgb, var(--color-btn1) 46%, var(--surface-2)); border-color: var(--color-light); color: #fff; }
.choix button:focus-visible, .btn:focus-visible, .gk-case:focus-visible, .fin-fermer:focus-visible, .btn-son:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bilan { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 0.88rem; line-height: 1.6; text-align: center; color: var(--texte-doux); }
.bilan strong { color: var(--texte); }
.bilan a { color: var(--color-light); }
.action { text-align: center; margin: 6px 0 14px; }
.btn { min-height: 44px; }
.btn-grand { min-height: 50px; padding: 14px 38px; font-size: 1.02rem; }
.btn-discret { background: transparent; border-color: transparent; color: var(--texte-doux); }
.btn-discret:hover:not(:disabled) { color: var(--texte); border-color: var(--line-forte); }
.liens-modes { text-align: center; font-size: 0.88rem; line-height: 2; color: var(--texte-faible); }
.liens-modes a { color: var(--texte-doux); text-decoration: none; }
.liens-modes a:hover { color: var(--color-light); text-decoration: underline; }
.regles-rappel { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 0.88rem; line-height: 1.6; color: var(--texte); }
.regles-rappel summary { cursor: pointer; font-weight: 700; color: var(--texte-doux); min-height: 28px; }
.regles-rappel p { margin-top: 8px; }

/* Réglage du son : hors du tableau de bord de la partie, visible avant de jouer. */
.btn-son {
  min-width: 44px; min-height: 44px;
  font: inherit; font-size: 1.05rem;
  color: var(--texte-doux);
  background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.btn-son:hover { border-color: var(--line-forte); }

/* ============================== EN PARTIE ============================== */

.info-bar { margin-bottom: 10px; min-height: 46px; }
.pastille { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.pastille-1 { background: #1b1b1b; border: 2px solid #c9c9c9; }
.pastille-2 { background: #f1f1f1; border: 1px solid #9a9a9a; }
.hint { font-size: 0.86rem; line-height: 1.45; color: var(--texte-doux); margin: 8px 0 6px; min-height: 1.3em; }
.outils-partie { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 8px; }
.outils-partie .btn { padding: 8px 14px; font-size: 0.85rem; }

/* Ouverture swap2 : les choix du joueur qui a la main. */
.choix-ouverture { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 10px; padding: 12px; border: 1px solid var(--color-light); border-radius: 10px; background: var(--surface-2); }
.choix-ouverture p { width: 100%; font-size: 0.9rem; color: var(--texte); margin-bottom: 4px; }
.choix-ouverture .btn { min-height: 46px; }

/* Temps restant pour jouer (duel) */
.minuteur { height: 5px; background: var(--surface-2); border-radius: 3px; margin: 0 auto 10px; overflow: hidden; max-width: 460px; }
.minuteur span { display: block; height: 100%; width: 100%; background: var(--color-light); transform-origin: left; }
.minuteur.urgent span { background: #d07070; }

/* ---------- Le plateau ---------- */

.gk-plateau {
  --gk-larg: min(100%, 620px, calc(100vh - var(--gk-reserve)));
  --gk-larg: min(100%, 620px, calc(100svh - var(--gk-reserve)));
  width: var(--gk-larg);
  min-width: 270px;
  margin: 0 auto;
  position: relative;
}
.gk-cadre {
  display: grid;
  grid-template-columns: 1.15em minmax(0, 1fr);
  grid-template-rows: auto 1.25em;
  padding: 5px 7px 2px 3px;
  background: var(--gk-bois);
  border: 2px solid var(--gk-bois-bord);
  border-radius: 8px;
  font-size: 11px;
  color: rgba(40, 26, 4, 0.78);
  font-weight: 700;
  user-select: none;
}
.gk-nombres { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: repeat(15, 1fr); align-items: center; justify-items: center; }
.gk-lettres { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(15, 1fr); align-items: center; justify-items: center; }
.gk-goban { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 1; touch-action: manipulation; }
.gk-lignes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gk-lignes line { stroke: var(--gk-trait); stroke-width: 0.32; }
.gk-lignes .bord { stroke-width: 0.6; }
.gk-lignes circle { fill: rgba(40, 26, 4, 0.8); }
.gk-cases { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(15, 1fr); grid-template-rows: repeat(15, 1fr); }
/* Plateau réduit, 11 × 11 */
.gk-t11 .gk-nombres { grid-template-rows: repeat(11, 1fr); }
.gk-t11 .gk-lettres { grid-template-columns: repeat(11, 1fr); }
.gk-t11 .gk-cases { grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(11, 1fr); }
.gk-case {
  position: relative;
  min-width: 0; min-height: 0;
  padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 50%;
  font: inherit; color: inherit;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.gk-cases.actif .gk-case.libre { cursor: pointer; }
/* La pierre, et son aperçu au survol ou à la sélection. */
.gk-case::before {
  content: '';
  position: absolute; inset: 6%;
  border-radius: 50%;
  opacity: 0;
}
.gk-case.c1::before { opacity: 1; background: radial-gradient(circle at 34% 30%, #5a5a5a, #111 62%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.gk-case.c2::before { opacity: 1; background: radial-gradient(circle at 34% 30%, #fff, #d2d2d2 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
@media (hover: hover) and (pointer: fine) {
  .gk-cases.actif.trait-1 .gk-case.libre:hover::before { opacity: 0.42; background: #111; }
  .gk-cases.actif.trait-2 .gk-case.libre:hover::before { opacity: 0.6; background: #fff; }
}
.gk-cases.trait-1 .gk-case.choisie::before { opacity: 0.6; background: #111; box-shadow: 0 0 0 2px #fff; }
.gk-cases.trait-2 .gk-case.choisie::before { opacity: 0.8; background: #fff; box-shadow: 0 0 0 2px #111; }
.gk-case.pose::before { animation: gk-pose 0.2s ease-out; }
/* Dernière pierre posée : un point au centre, visible sur le noir comme sur le blanc. */
.gk-case.dernier::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; margin: -13% 0 0 -13%; border-radius: 50%; background: #e0483c; }
.gk-case.gagnante::before { box-shadow: 0 0 0 3px #2fae5f; }
.gk-plateau.victoire-autre .gk-case.gagnante::before { box-shadow: 0 0 0 3px #d04a4a; }
.gk-case.indice::after { content: ''; position: absolute; inset: 14%; border: 3px solid #1f7ad1; border-radius: 50%; margin: 0; width: auto; height: auto; background: none; }
/* Pierres du problème du jour posées au départ. */
.gk-case.depart::before { filter: saturate(0.6); }
.gk-case .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.72em; font-weight: 800; pointer-events: none; }
.gk-case.c1 .num { color: #fff; }
.gk-case.c2 .num { color: #111; }
.gk-case.dernier.numerote::after { display: none; }

/* Valider la pierre choisie (pose en deux temps, pour le doigt). */
.gk-valider { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; }
.gk-valider .btn { min-height: 50px; padding: 12px 22px; font-size: 1rem; }

.gk-attente {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700; color: #f0f3f6;
  background: rgba(8, 10, 14, 0.72);
  border-radius: 8px;
  pointer-events: none;
}

@keyframes gk-pose { from { transform: scale(0.4); opacity: 0.3; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gk-case.pose::before { animation: none; } }

/* ---------- Relecture de la partie ---------- */

.relecture { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 10px 0 4px; }
.relecture .btn { min-width: 46px; min-height: 44px; padding: 8px 12px; }
.relecture .position { min-width: 92px; font-size: 0.88rem; font-weight: 700; color: var(--texte); font-variant-numeric: tabular-nums; }
.relecture .btn-quitter { margin-left: 6px; }

/* ---------- Fin de partie : À CÔTÉ ou SOUS le plateau, jamais dessus ---------- */

.fin-partie {
  position: relative;
  max-width: 480px;
  margin: 14px auto 4px;
  padding: 20px 18px 16px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 12px;
}
.fin-partie h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 6px; padding: 0 34px; }
.win-text { color: #64ab7c; }
.lose-text { color: #d07070; }
.draw-text { color: #d2973a; }
.fin-fermer {
  position: absolute; top: 6px; right: 6px;
  width: 44px; height: 44px;
  font-size: 1.4rem; line-height: 1;
  color: var(--texte-doux);
  background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer;
}
.fin-fermer:hover { color: var(--texte); border-color: var(--line-forte); }
.fin-message { color: var(--texte); font-size: 0.93rem; line-height: 1.5; margin-bottom: 8px; }
.fin-statut { font-size: 0.86rem; line-height: 1.5; color: var(--texte-doux); margin-bottom: 12px; min-height: 1.3em; }
.fin-statut.ok { color: #8cc7a0; }
.fin-statut.alerte { color: #e0a0a0; }
.fin-statut a, .fin-liens a { color: var(--color-light); }
.fin-boutons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fin-boutons .btn { min-height: 46px; }
.fin-liens { margin: 10px 0 14px; font-size: 0.86rem; line-height: 1.9; }
.fin-liens:empty { margin: 0 0 12px; }
.cta-score-msg { color: var(--texte); font-size: 0.88rem; margin-bottom: 10px; }
.cta-auth-btns { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.partage-score { margin-bottom: 12px; }

.barre-fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.barre-fin .resume { width: 100%; font-weight: 700; color: #f0f3f6; }

.confetti { position: fixed; top: -10px; z-index: 200; pointer-events: none; font-size: 1.2rem; animation: gk-confetti 3s ease-in forwards; }
@keyframes gk-confetti { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ============================== SALON DU DUEL ============================== */

.lobby-msg { color: var(--texte-doux); margin: 4px 0 14px; font-size: 0.95rem; min-height: 1.4em; }
.salon-bloc { max-width: 480px; margin: 0 auto 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); text-align: left; }
.salon-titre { font-family: var(--font-display); font-size: 1.1rem; color: #f0f3f6; margin-bottom: 12px; }
.salon-code { display: flex; gap: 10px; flex-wrap: wrap; }
.salon-code input, .salon-pseudo input {
  flex: 1 1 130px; min-width: 0; min-height: 48px; padding: 8px 12px;
  font: inherit; font-weight: 700;
  color: var(--texte); background: var(--surface-0); border: 1px solid var(--line-forte); border-radius: 8px;
}
.salon-code input { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.3em; text-align: center; text-transform: uppercase; }
.salon-pseudo input { width: 100%; font-size: 1rem; }
.salon-code input:focus, .salon-pseudo input:focus { outline: 2px solid var(--color-light); outline-offset: 1px; }
.salon-code .btn { flex: 1 1 110px; min-height: 48px; }
.salon-bloc .reglage { margin-bottom: 14px; }
.salon-bloc .choix button { flex-basis: 84px; }
.salon-bloc .btn-creer { width: 100%; min-height: 48px; }
.salon-attente { max-width: 480px; margin: 0 auto 16px; text-align: center; }
.code-affiche { font-size: 2.4rem; font-weight: 800; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--color-light); margin: 8px 0 6px; }
.salon-explication { font-size: 0.9rem; line-height: 1.6; color: var(--texte-doux); margin: 8px auto 14px; }
.salon-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.partie-publique { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.partie-publique:last-child { border-bottom: 0; }
.partie-publique .qui { font-weight: 700; overflow-wrap: anywhere; }
.partie-publique .quoi { display: block; font-size: 0.8rem; font-weight: 400; color: var(--texte-doux); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-forte); border-top-color: var(--color-light); border-radius: 50%; animation: gk-tourne 0.8s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes gk-tourne { to { transform: rotate(360deg); } }

.joueurs { display: flex; gap: 10px; justify-content: center; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.joueur { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; border: 1px solid var(--line); background: var(--surface-2); max-width: 100%; }
/* Le nom n'est jamais coupé : la mention « (visiteur) » qui le termine doit rester lisible. */
.joueur .nom { overflow-wrap: anywhere; text-align: left; }
.joueur.actif { border-color: var(--color-light); background: color-mix(in srgb, var(--color-btn1) 34%, var(--surface-2)); }
.score-manches { font-weight: 800; color: #f0f3f6; font-size: 0.95rem; }
.bandeau-alerte { background: color-mix(in srgb, #d2973a 16%, var(--surface-2)); border: 1px solid #d2973a; color: #f0d9b0; border-radius: 8px; padding: 9px 12px; font-size: 0.88rem; line-height: 1.45; margin-bottom: 10px; }

.compte-a-rebours { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 11, 0.82); }
.compte-a-rebours span { font-family: var(--font-display); font-size: 6rem; font-weight: 700; color: var(--color-light); }

/* ============================== DÉFI DU JOUR ============================== */

.page-defi #app { max-width: 800px; }
#entree-defi { text-align: center; }
#entree-defi h1 { font-size: 1.45rem; margin-bottom: 6px; }
.defi-date { color: var(--texte-doux); font-size: 0.92rem; margin-bottom: 12px; }
.btn-lancer { margin: 8px auto 6px; }
.etat-defi { min-height: 1.2em; color: var(--texte-doux); font-size: 0.92rem; margin: 6px 0 10px; }
.defi-avertissement { font-size: 0.8rem; color: var(--texte-faible); margin-bottom: 18px; }
.classement-titre { font-family: var(--font-display); font-size: 1.1rem; color: #f0f3f6; text-align: center; margin-bottom: 10px; }
.lb-echec { color: #d07070; font-weight: 800; }
.titre-jeu-defi { font-family: var(--font-display); font-size: 1.15rem; color: #f0f3f6; }
.info-restants { color: var(--texte-doux); }
.info-restants strong { color: #fff; }
.defi-compte { margin: 14px auto 18px; padding: 16px; max-width: 520px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 0.92rem; line-height: 1.55; }
.defi-compte-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.defi-btn-inscription, .defi-btn-connexion { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.defi-btn-inscription { background: var(--color-btn1); color: #fff; }
.defi-btn-connexion { border: 1px solid var(--line-forte); color: var(--texte); }

/* ============================== ÉCRANS ÉTROITS OU BAS ============================== */

/* Pendant la partie, sur un écran peu haut, la bannière du site (déjà doublée
   par « Accueil ») laisse sa place au plateau. */
@media (max-height: 900px) {
  body.gk-en-jeu .jeu-banner { display: none; }
  body.gk-en-jeu { --gk-reserve: 250px; }
}

/* Pendant qu'on joue, rien d'autre que la partie : les blocs latéraux du site
   reviennent dès qu'elle est finie, si l'écran est assez large pour eux. */
body.gk-blocs-caches .bandeau-infos-wrap, body.gk-blocs-caches .bloc-jeux-une-wrap { display: none !important; }
@media (max-width: 1699px) {
  body.gk-en-jeu .bandeau-infos-wrap, body.gk-en-jeu .bloc-jeux-une-wrap { display: none !important; }
}

/* Écran large : le plateau à gauche, les informations et le résultat à droite.
   Le résultat s'affiche à côté du plateau, sans le couvrir ni faire défiler. */
@media (min-width: 980px) and (min-height: 521px) {
  body.gk-en-jeu { --gk-reserve: 110px; }
  body.gk-en-jeu #app { max-width: 1080px; }
  body.gk-en-jeu .zone-jeu { display: grid; grid-template-columns: minmax(0, 620px) minmax(260px, 1fr); grid-template-rows: auto 1fr; gap: 0 28px; align-items: start; }
  body.gk-en-jeu .colonne-plateau { grid-column: 1; grid-row: 1 / span 2; }
  body.gk-en-jeu .colonne-infos { grid-column: 2; grid-row: 1; }
  body.gk-en-jeu .colonne-fin { grid-column: 2; grid-row: 2; }
  body.gk-en-jeu .fin-partie { margin: 8px 0 0; max-width: none; }
  body.gk-en-jeu .barre-fin { justify-content: flex-start; }
  body.gk-en-jeu .top-bar h1 { font-size: 1.15rem; }
  body.gk-en-jeu .back-link { white-space: nowrap; }
  body.gk-en-jeu .gk-plateau { margin: 0; }
}

/* Téléphone à la verticale : le plateau prend presque toute la largeur de
   l'écran, en débordant des marges de la page (sans toucher à celles-ci : la
   bannière du site est calée dessus). */
@media (max-width: 560px) {
  .top-bar h1 { font-size: 1.1rem; }
  .joueur { padding: 5px 10px; font-size: 0.8rem; }
  .compte-a-rebours span { font-size: 4.5rem; }
  .code-affiche { font-size: 2rem; }
  body.gk-en-jeu .jeu-banner { display: none; }
  body.gk-en-jeu { --gk-reserve: 260px; }
  .gk-plateau {
    --gk-larg: min(calc(100vw - 6px), calc(100vh - var(--gk-reserve)));
    --gk-larg: min(calc(100vw - 6px), calc(100svh - var(--gk-reserve)));
    min-width: 0;
    margin-left: calc((100% - var(--gk-larg)) / 2);
    margin-right: 0;
  }
  .gk-cadre { font-size: 9px; padding: 3px 4px 1px 1px; border-width: 1px; border-radius: 4px; grid-template-columns: 1.3em minmax(0, 1fr); }
  .info-bar { min-height: 40px; margin-bottom: 6px; }
}

/* Très petit écran : champ du code et bouton l'un sous l'autre. */
@media (max-width: 380px) {
  .salon-code input, .salon-code .btn { flex-basis: 100%; }
}

/* Téléphone tenu à l'horizontale : plateau à gauche sur toute la hauteur, infos à droite. */
@media (orientation: landscape) and (max-height: 520px) {
  body.gk-en-jeu { padding: 4px; padding-top: 4px; }
  body.gk-en-jeu .jeu-banner, body.gk-en-jeu footer { display: none; }
  body.gk-en-jeu #app { max-width: none; padding: 6px 10px; }
  body.gk-en-jeu .zone-jeu { display: grid; grid-template-columns: auto minmax(180px, 1fr); grid-template-rows: auto 1fr; gap: 0 14px; align-items: start; }
  body.gk-en-jeu .colonne-plateau { grid-column: 1; grid-row: 1 / span 2; }
  /* La barre de connexion du site, fixée en haut à droite, tombe sur la colonne d'infos. */
  body.gk-en-jeu .colonne-infos { grid-column: 2; grid-row: 1; text-align: left; padding-top: 46px; }
  body.gk-en-jeu .colonne-fin { grid-column: 2; grid-row: 2; }
  body.gk-en-jeu .top-bar { border-bottom: 0; margin-bottom: 6px; padding-bottom: 0; }
  body.gk-en-jeu .info-bar { flex-direction: column; align-items: flex-start; }
  body.gk-en-jeu .gk-plateau { --gk-larg: min(calc(100vh - 22px), 58vw); --gk-larg: min(calc(100svh - 22px), 58vw); width: var(--gk-larg); min-width: 0; margin: 0; }
  body.gk-en-jeu .gk-valider { margin-top: 4px; }
  body.gk-en-jeu .fin-partie { margin: 8px 0 0; padding: 14px 12px 12px; }
  body.gk-en-jeu .fin-partie h2 { font-size: 1.2rem; }
  body.gk-en-jeu .hint, body.gk-en-jeu .reglage-option { display: none; }
}
