/* J'étais à Bollène — table de poker du 4 place Bastet (jeu/poker/interface.mjs). Téléphone couché ou tenu droit. */
.jeb-pk{position:fixed;inset:0;z-index:27;pointer-events:none;color:#fff;font:500 14px/1.3 var(--bv-text,system-ui,-apple-system,"Segoe UI",sans-serif);-webkit-user-select:none;user-select:none}
.jeb-pk[hidden],.jeb-pk [hidden]{display:none!important}
.jeb-pk>*{pointer-events:auto}
.jeb-pk button{appearance:none;-webkit-appearance:none;border:0;border-radius:12px;min-height:40px;padding:8px 14px;font:700 14px/1.1 inherit;color:#fff;background:#2c3648;box-shadow:0 2px 0 rgba(0,0,0,.35);cursor:pointer;touch-action:manipulation}
.jeb-pk button:active{transform:translateY(1px)}
.jeb-pk button:disabled{opacity:.42;cursor:default}
.jeb-pk button.principal{background:#f5b301;color:#1d1500}
.jeb-pk button.danger{background:#b7352f}
.jeb-pk button[aria-pressed="true"]{background:#f5b301;color:#1d1500}
/* Haut de l'écran : bandeau (table, blindes, pot), autres joueurs (téléphone tenu droit). */
.jeb-pk-haut{position:absolute;top:max(8px,env(safe-area-inset-top));left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}
.jeb-pk-haut>*{pointer-events:auto}
.jeb-pk-bandeau{display:flex;align-items:center;gap:10px;max-width:calc(100vw - 150px);padding:5px 6px 5px 14px;border-radius:999px;background:rgba(12,16,24,.84);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);white-space:nowrap;font-size:13px}
.jeb-pk-bandeau b{font-weight:800;overflow:hidden;text-overflow:ellipsis}
.jeb-pk-bandeau span{color:#ffd98a}
.jeb-pk-bandeau button{min-height:32px;padding:5px 12px;border-radius:999px;background:#48526a;font-size:12px}
/* Téléphone couché : les joueurs ont leur étiquette dans la salle (table-3d.mjs). */
.jeb-pk-joueurs{display:none}
.jeb-pk-tableau{padding-left:9px;border-left:1px solid rgba(255,255,255,.22)}
.jeb-pk-tableau:empty,.jeb-pk-joueurs:empty{display:none}
/* Cartes. */
.jeb-pk-carte{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:46px;height:64px;border-radius:7px;background:#f6f3ea;color:#1b1d22;box-shadow:0 3px 10px rgba(0,0,0,.45);font-size:21px;line-height:1;animation:jeb-pk-pose .28s ease-out both}
.jeb-pk-carte b{font-weight:800}.jeb-pk-carte i{font-style:normal;font-size:1.05em}
.jeb-pk-carte.rouge{color:#c0262d}
.jeb-pk-carte.dos{background:repeating-linear-gradient(45deg,#7a1f2b 0 6px,#8f2c38 6px 12px);border:2px solid #efe6d2}
.jeb-pk-carte.petite{width:31px;height:44px;border-radius:5px;font-size:15px}
@keyframes jeb-pk-pose{from{transform:translateY(-10px) rotateY(80deg);opacity:0}to{transform:none;opacity:1}}
/* Bas de l'écran : ma main, les cartes communes et mon tapis à gauche ; à droite, la dernière annonce puis les enchères. */
.jeb-pk-bas{position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;justify-content:space-between;gap:10px;pointer-events:none}
.jeb-pk-bas>*{pointer-events:auto}
.jeb-pk-moi{display:flex;flex-direction:column;gap:5px;padding:8px 10px;border-radius:14px;background:rgba(12,16,24,.72)}
.jeb-pk-cartes{display:flex;align-items:flex-end;gap:9px;min-height:0}
.jeb-pk-cartes>span{display:flex;gap:5px}
.jeb-pk-cartes>span:empty{display:none}
.jeb-pk-cartes>span:empty+.jeb-pk-tableau{padding-left:0;border-left:0}
.jeb-pk-moi small{font-size:12.5px;color:#d7deea}.jeb-pk-moi small b{color:#ffd98a}
.jeb-pk-bas>.jeb-pk-droite{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0;pointer-events:none}
.jeb-pk-droite>*{pointer-events:auto}
.jeb-pk-fil{margin:0;max-width:min(62vw,460px);padding:4px 12px;border-radius:999px;background:rgba(12,16,24,.74);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jeb-pk-fil:empty{display:none}
.jeb-pk-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:62vw}
.jeb-pk-actions button{min-height:46px;min-width:92px;font-size:15px}
.jeb-pk-attente{padding:10px 14px;border-radius:999px;background:rgba(12,16,24,.72);font-size:13px;color:#d7deea}
/* Réglette de mise. */
.jeb-pk-mise{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:calc(max(10px,env(safe-area-inset-bottom)) + 62px);width:min(430px,92vw);padding:10px 12px;border-radius:16px;background:rgba(14,18,28,.94);box-shadow:0 10px 30px rgba(0,0,0,.45)}
.jeb-pk-reglette{display:flex;align-items:center;gap:8px}
.jeb-pk-reglette input{flex:1;min-width:0;height:36px;accent-color:#f5b301}
.jeb-pk-reglette button{min-width:40px;padding:8px 0}
.jeb-pk-reglette b{min-width:74px;text-align:right;font-size:17px;color:#ffd98a}
.jeb-pk-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.jeb-pk-presets button{flex:1;min-width:58px;padding:8px 6px;font-size:13px}
/* Cartons : choix de la table, recave, bilan. */
.jeb-pk-carton{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,94vw);max-height:92vh;max-height:92dvh;overflow:auto;padding:16px 18px;border-radius:18px;background:rgba(14,18,28,.96);box-shadow:0 18px 50px rgba(0,0,0,.55);-webkit-user-select:text;user-select:text}
.jeb-pk-carton h3{margin:0 0 6px;font:italic 800 19px/1.1 var(--bv-display,inherit);letter-spacing:.02em}
.jeb-pk-carton h4{margin:14px 0 6px;padding-top:12px;border-top:1px solid rgba(255,255,255,.14);font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#9fb0c8}
.jeb-pk-carton p{margin:6px 0}
.jeb-pk-regle{font-size:13px;color:#d7deea}.jeb-pk-regle b{color:#ffd98a}
.jeb-pk-note{font-size:13px;color:#c3cddc}
.jeb-pk-blocage{padding:8px 10px;border-radius:10px;background:rgba(183,53,47,.22);border:1px solid rgba(255,120,110,.4);font-size:13px}
.jeb-pk-modes{display:flex;gap:8px;margin:10px 0 4px}.jeb-pk-modes button{flex:1}
.jeb-pk-ia{display:flex;align-items:center;gap:10px;margin:10px 0}
.jeb-pk-ia span{flex:1}.jeb-pk-ia b{min-width:22px;text-align:center;font-size:18px}.jeb-pk-ia button{min-width:44px;font-size:18px;padding:6px 0}
.jeb-pk-boutons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.jeb-pk-boutons button{flex:1;min-width:130px}
.jeb-pk-ami{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;font-size:13px}
.jeb-pk-ami button{min-height:34px;padding:6px 10px;font-size:12.5px}
.jeb-pk.est-choix .jeb-pk-haut,.jeb-pk.est-choix .jeb-pk-bas{display:none}
/* Assis à la table : pas de manette de marche. */
.app.is-poker #play-joystick{display:none!important}
/* Téléphone tenu droit : on ne voit que le joueur d'en face ; les autres sont rappelés en ligne sous le bandeau. */
@media (max-width:560px){
 .jeb-pk-haut{top:calc(max(8px,env(safe-area-inset-top)) + 52px)}
 .jeb-pk-bandeau{max-width:calc(100vw - 24px);font-size:12px}
 .jeb-pk-joueurs{display:flex;gap:4px;width:calc(100vw - 24px)}
 .jeb-pk-joueurs span{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;padding:4px 3px;border-radius:10px;border:1.5px solid transparent;background:rgba(12,16,24,.78);font-size:11.5px;line-height:1.2}
 .jeb-pk-joueurs b,.jeb-pk-joueurs small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .jeb-pk-joueurs small{font-size:11px;color:#ffd98a}
 .jeb-pk-joueurs i{font-style:normal;font-size:9.5px;padding:0 4px;border-radius:50%;background:#f1ece0;color:#1d1500}
 .jeb-pk-joueurs .tour{border-color:#ffd24a}
 .jeb-pk-joueurs .eteint{opacity:.5}
 .jeb-pk-bas{flex-direction:column;align-items:stretch}
 .jeb-pk-bas>.jeb-pk-droite{align-items:stretch}.jeb-pk-fil{align-self:flex-start;max-width:100%}
 .jeb-pk-actions{max-width:none;justify-content:stretch}.jeb-pk-actions button{flex:1;min-width:0}
 .jeb-pk-moi{align-self:flex-start}.jeb-pk-mise{bottom:calc(max(10px,env(safe-area-inset-bottom)) + 205px)}
}
@media (prefers-reduced-motion:reduce){.jeb-pk-carte{animation:none}}
