/* poker-gratuit.fr — MOD-GRANDE (30/10/2026) : mode « grande table » — chargé APRÈS tous les autres modules.
   Bouton en haut à gauche ; « Dernières mains » et « Le comptoir » disparaissent, la table prend presque tout l'écran ;
   le chat reste joignable par une bulle qui ouvre un panneau PAR-DESSUS la table. Ordinateur seulement (même seuil que MOD-SALLE).
   --gt-k (posé par mod-grande.js) = facteur d'agrandissement de la table ; --gt-s0 / --gt-c0 / --gt-pt = valeurs normales de MOD-TABLE. */

.gt-btn,.gt-dock{display:none}

@media (min-width:1100px) and (min-height:701px){
  /* ── le bouton (toujours là en partie, dans les deux modes) ── */
  .pk-en-jeu .gt-btn{display:inline-flex;flex:none;gap:7px;padding:8px 13px 8px 10px;font-size:15px;letter-spacing:.05em;color:var(--laiton,#e7ad45);
    box-shadow:inset 0 1px 0 #ffffff26,0 0 0 1px #e7ad4566,0 4px 0 #2a170b,0 10px 18px #0008;white-space:nowrap}
  .pk-en-jeu .gt-btn .ico{width:20px;height:20px;flex:none}
  .pk-en-jeu .gt-btn .lbl{display:inline}
  .pk-en-jeu .gt-btn:hover,.pk-en-jeu .gt-btn:focus-visible{color:#ffe3a1;box-shadow:inset 0 1px 0 #ffffff33,0 0 0 2px var(--laiton,#e7ad45),0 4px 0 #2a170b,0 10px 18px #0008;outline:none}
  .pk-en-jeu .gt-btn[aria-pressed=true]{background:linear-gradient(180deg,#ffd27a,var(--laiton,#e7ad45) 45%,var(--laiton-2,#c98a24));color:#2b1704;text-shadow:none}

  /* ── les colonnes s'effacent en douceur avant que la table s'agrandisse (et reviennent en fondu) ── */
  .pk-en-jeu .pk-col{transition:opacity .22s ease}
  html.gt-fade.pk-en-jeu .pk-col{opacity:0}

  /* ── grande table ── */
  html.pk-gt{--gt-s0:.88;--gt-c0:54px;--gt-pt:58px}
  html.pk-gt.pk-en-jeu .game{--pk-col:0px;grid-template-columns:0 minmax(0,1fr) 0;grid-template-rows:auto auto minmax(0,1fr) auto 176px}
  html.pk-gt.pk-en-jeu .felt-wrap{width:min(100%,calc((100dvh / var(--pke-z,1) - 270px) * 1.75));height:100%;max-height:none;align-self:center}
  html.gt-anim.pk-en-jeu .felt-wrap{transition:width .5s cubic-bezier(.4,0,.2,1),height .5s cubic-bezier(.4,0,.2,1)}
  html.gt-anim.pk-en-jeu .seat{transition:transform .5s cubic-bezier(.4,0,.2,1),top .5s,left .5s}
  html.pk-gt.pk-en-jeu .seat{transform:translate(-50%,-50%) scale(calc(var(--gt-s0) * var(--gt-k,1)))}
  html.pk-gt.pk-en-jeu .board .card{--w:calc(var(--gt-c0) * var(--gt-k,1))}
  html.pk-gt.pk-en-jeu .seat.pt{top:max(8%,calc(70px * var(--gt-s0) * var(--gt-k,1) + 10px))!important}

  /* mes cartes : en bas à gauche, par-dessus le coin du tapis (la table gagne les 100 px de la rangée du dessous) */
  html.pk-gt.pk-en-jeu .mine{grid-area:felt;align-self:end;justify-self:start;flex-direction:column;align-items:center;gap:6px;width:auto;margin:0 0 4px 14px;padding:0}
  html.pk-gt.pk-en-jeu .mine .cards{margin:0}
  html.pk-gt.pk-en-jeu .mine .myhand{max-width:200px;text-align:center}

  /* la barre d'action du bas : gardée, un peu plus large et plus grosse ; de la place pour la bulle de chat à droite */
  html.pk-gt.pk-en-jeu .bar{grid-area:bar;align-self:end;width:min(calc(100% - 300px),920px)}
  html.pk-gt.pk-en-jeu .jx .act{min-height:62px;font-size:21px}
  html.pk-gt.pk-en-jeu .act{font-size:20px}

  /* ── les deux panneaux deviennent des tiroirs par-dessus la table, fermés tant qu'on ne les demande pas ── */
  html.pk-gt.pk-en-jeu .pk-col{position:fixed;right:14px;top:66px;bottom:auto;left:auto;width:min(360px,calc(100vw - 28px));height:min(560px,calc(100dvh / var(--pke-z,1) - 270px));
    z-index:60;padding:0;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px) scale(.98);transform-origin:100% 0;
    transition:opacity .22s ease,transform .22s ease,visibility 0s linear .22s}
  html.pk-gt.pk-en-jeu.gt-od #pk-col-droite,html.pk-gt.pk-en-jeu.gt-og #pk-col-gauche{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
  html.pk-gt.pk-en-jeu .pk-col .mcg,html.pk-gt.pk-en-jeu .pk-col .mcd{max-width:none;width:100%;
    background:linear-gradient(180deg,#3b2416f7,#24150df7);box-shadow:0 0 0 2px #1a0e07,0 0 0 3px #e7ad4555,0 16px 40px #000c}
  .gt-x{display:none}
  html.pk-gt.pk-en-jeu .gt-x{display:grid;place-items:center;position:absolute;z-index:3;top:9px;right:10px;width:34px;height:34px;padding:0;border:0;border-radius:50%;
    background:#00000066;color:var(--creme,#f6ead2);font:700 24px/1 Barlow,sans-serif;cursor:pointer}
  html.pk-gt.pk-en-jeu .gt-x:hover,html.pk-gt.pk-en-jeu .gt-x:focus-visible{background:var(--laiton,#e7ad45);color:#2b1704;outline:none}
  html.pk-gt.pk-en-jeu .pk-col .mc-h{padding-right:52px}
  html.pk-gt.pk-en-jeu .pk-col .mc-who{display:none}

  /* ── la bulle de chat (et celle de l'historique) en bas à droite ── */
  html.pk-gt.pk-en-jeu .gt-dock{display:flex;position:fixed;right:16px;bottom:16px;z-index:61;gap:10px;align-items:flex-end}
  .gt-bulle{position:relative;width:56px;height:56px;margin:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;
    background:radial-gradient(circle at 50% 30%,#5a3720,#24150d);color:var(--laiton,#e7ad45);box-shadow:0 0 0 2px #1a0e07,0 0 0 3px #e7ad4588,0 8px 18px #000b;transition:transform .15s,box-shadow .15s}
  .gt-bulle svg{width:28px;height:28px;filter:drop-shadow(0 2px 0 #0008)}
  .gt-bulle.gt-chat{width:62px;height:62px;background:radial-gradient(circle at 50% 30%,#ffd27a,var(--laiton,#e7ad45) 55%,var(--laiton-2,#c98a24));color:#2b1704}
  .gt-bulle.gt-chat svg{width:32px;height:32px}
  .gt-bulle:hover,.gt-bulle:focus-visible{transform:translateY(-2px);box-shadow:0 0 0 2px #1a0e07,0 0 0 3px var(--laiton,#e7ad45),0 10px 20px #000c;outline:none}
  .gt-bulle.on{box-shadow:0 0 0 2px #1a0e07,0 0 0 4px #fff3c4,0 10px 20px #000c}
  .gt-n{position:absolute;top:-6px;right:-6px;min-width:24px;height:24px;padding:0 6px;border-radius:12px;display:grid;place-items:center;background:#d65249;color:#fff;
    font:800 14px/1 Barlow,sans-serif;box-shadow:0 0 0 2px #1a0e07}
  .gt-n.hidden{display:none}
  .gt-ping{animation:gtPing .7s ease 2}
  @keyframes gtPing{0%,100%{transform:scale(1)}35%{transform:scale(1.18) rotate(-6deg)}70%{transform:scale(.97)}}
  .gt-preview{position:absolute;right:0;bottom:74px;width:max-content;max-width:300px;padding:9px 14px 10px;border-radius:14px 14px 4px 14px;cursor:pointer;
    background:var(--creme,#f6ead2);color:var(--encre,#2b1704);box-shadow:0 0 0 2px #3b2416,0 10px 22px #000a;font:600 14px/1.25 Barlow,sans-serif;
    opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .22s,transform .22s,visibility 0s .22s}
  .gt-preview.on{opacity:1;visibility:visible;transform:none;transition-delay:0s}
  .gt-preview b{display:block;font-weight:800;font-size:12.5px;letter-spacing:.03em;color:#8a4a12}
  .gt-preview span{display:block;overflow-wrap:anywhere}
}
@media (min-width:1100px) and (min-height:701px) and (max-height:840px){
  html.pk-gt{--gt-s0:.8;--gt-c0:48px;--gt-pt:52px}
}
@media (min-width:1100px) and (min-height:701px) and (max-height:760px){
  html.pk-gt{--gt-s0:.72;--gt-c0:42px;--gt-pt:44px}
}
@media (prefers-reduced-motion:reduce){
  html.gt-anim.pk-en-jeu .felt-wrap,html.gt-anim.pk-en-jeu .seat,.gt-bulle,.gt-preview,html.pk-gt.pk-en-jeu .pk-col{transition:none!important}
  .gt-ping{animation:none}
}
