/* belote.css — belote à 4 (portrait) */
.belote { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 70% at 50% 42%, color-mix(in srgb, var(--primaire) 55%, #0e5c45) 0%, #0b2a20 70%); color: #fff; font-family: var(--police-texte); }
.belote__siege { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: transform .2s ease; }
.belote__siege b { font-family: var(--police-titre); font-weight: 800; font-size: 14px; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 999px; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.belote__siege small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-top: -2px; }
.belote__siege--actif b { background: var(--secondaire); color: var(--encre); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.belote__siege--haut { left: 50%; top: calc(58px + env(safe-area-inset-top)); transform: translateX(-50%); }
.belote__siege--gauche { left: 4px; top: 34%; }
.belote__siege--gauche b, .belote__siege--droite b { max-width: 70px; font-size: 12px; line-height: 1.15; padding: 4px 7px; white-space: normal; border-radius: 10px; }
.belote__siege--droite { right: 4px; top: 34%; }
.belote__dos { display: flex; }
.belote__siege--gauche .belote__dos, .belote__siege--droite .belote__dos { flex-direction: column; }
.belote__dos span { width: 22px; height: 31px; border-radius: 4px; background: repeating-linear-gradient(45deg, var(--primaire) 0 4px, color-mix(in srgb, var(--primaire) 70%, #000) 4px 8px); border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); margin-left: -12px; display: grid; place-items: center; font: italic 800 8px var(--police-titre); color: var(--secondaire); }
.belote__siege--gauche .belote__dos span, .belote__siege--droite .belote__dos span { margin-left: 0; margin-top: -24px; }
.belote__dos span:first-child { margin-left: 0; margin-top: 0; }
.belote__tapis { position: absolute; left: 70px; right: 70px; top: calc(140px + env(safe-area-inset-top)); bottom: 200px; min-height: 230px; }
.belote__atout { position: absolute; left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.92); color: var(--encre); padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.3); z-index: 2; }
.belote__atout b { font-size: 17px; }
/* 08/11 (Leeroy : « mettre plus en évidence l'atout, un fond jaune ») : pastille d'atout jaune vif, cartes d'atout sur fond jaune */
.belote__atout { background: #ffd84a; color: #1b1410; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,.35), 0 0 0 2px #b8841c; }
.belote .belote__carte--atout { background: linear-gradient(160deg, #fff8c4, #ffe36b); box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 0 0 2px #e7b52f; }
.belote .belote__carte--atout.belote__carte--ok { box-shadow: 0 0 0 2.5px var(--secondaire), inset 0 0 0 2px #e7b52f, 0 6px 14px rgba(0,0,0,.45); }
.belote__atout b.rouge, .belote__coul.rouge { color: #c8102e; }
.belote__atout[hidden], .belote__enchere[hidden], .belote__bilan[hidden] { display: none; }
.belote__pli { position: absolute; inset: 30px 0 0; transition: transform .45s ease, opacity .45s ease; }
.belote__pose { position: absolute; left: 50%; top: 50%; }
.belote__pose .belote__carte { width: 54px; height: 78px; margin: -39px 0 0 -27px; cursor: default; animation: belote-pose .25s ease-out; }
.belote__pose--bas { transform: translateY(42px); } .belote__pose--haut { transform: translateY(-42px); }
.belote__pose--gauche { transform: translateX(-46px) rotate(-6deg); } .belote__pose--droite { transform: translateX(46px) rotate(6deg); }
@keyframes belote-pose { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
.belote__pli--ramasse { opacity: 0; }
.belote__pli--vers-bas { transform: translateY(160px); } .belote__pli--vers-haut { transform: translateY(-160px); } .belote__pli--vers-gauche { transform: translateX(-160px); } .belote__pli--vers-droite { transform: translateX(160px); }
.belote__enchere { position: absolute; left: -40px; right: -40px; top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 3; }
.belote__retournee .belote__carte { width: 64px; height: 92px; cursor: default; box-shadow: 0 0 0 3px var(--secondaire), 0 8px 20px rgba(0,0,0,.4); }
.belote__choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.belote__choix .mc-btn { width: auto; flex: none; min-height: 48px; padding: 0 18px; font-size: 16px; }
.belote__coul { min-width: 56px; font-size: 26px !important; background: #fff !important; color: var(--encre) !important; }
.belote__message { position: absolute; left: 12px; right: 12px; bottom: 150px; margin: 0; min-height: 22px; text-align: center; font-family: var(--police-titre); font-weight: 700; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.belote__main { position: absolute; left: 8px; right: 8px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; --w: min(66px, calc((100vw - 28px) / (var(--n) * .64 + .36))); }
.belote__main .belote__carte { width: var(--w); height: calc(var(--w) * 1.45); margin-left: calc(var(--w) * -.36); transition: transform .15s ease, opacity .15s ease; }
.belote__main .belote__carte:first-child { margin-left: 0; }
.belote__main .belote__carte--ok { transform: translateY(-12px); box-shadow: 0 0 0 2.5px var(--secondaire), 0 6px 14px rgba(0,0,0,.45); }
.belote__main .belote__carte--non { opacity: .55; filter: grayscale(.4); }
.belote__carte { position: relative; flex: none; padding: 0; border: 0; border-radius: 8px; background: linear-gradient(160deg, #fff, #f3eee4); color: #16131a; box-shadow: 0 3px 8px rgba(0,0,0,.4); cursor: pointer; font-family: var(--police-titre); }
.belote__carte--rouge { color: #c8102e; }
.belote__coin { position: absolute; left: 5px; top: 4px; display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 15px; line-height: 1; }
.belote__coin i { font-style: normal; font-size: 13px; }
.belote__centre { position: absolute; right: 6px; bottom: 4px; font-size: 26px; line-height: 1; }
.belote__carte:focus-visible { outline: 3px solid var(--secondaire); outline-offset: 2px; }
.belote__bilan { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); }
.belote__bilan-carte { width: 100%; max-width: 340px; background: #fffaf2; color: var(--encre); border-radius: 18px; padding: 18px; display: grid; gap: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: mc-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.belote__bilan-carte small { font-weight: 800; font-size: 11px; letter-spacing: .12em; color: var(--primaire); }
.belote__bilan-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f1ebe0; font-weight: 700; }
.belote__bilan-ligne.gagne { background: color-mix(in srgb, var(--secondaire) 45%, #fff); }
.belote__bilan-ligne b { font-family: var(--police-titre); font-size: 20px; }
.belote__bilan-carte p { margin: 0; font-size: 14px; }
.belote__bilan-total { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .belote__pose .belote__carte, .belote__bilan-carte { animation: none; } .belote__pli { transition: none; } }

/* 07/11 (Claude Design) : cartes des adversaires et du partenaire un peu plus grandes, plus réalistes */
.belote__dos span { width: 28px; height: 40px; margin-left: -15px; border-radius: 5px; border-width: 2px; box-shadow: 0 2px 5px rgba(0,0,0,.5); font-size: 10px; }
.belote__siege--gauche .belote__dos span, .belote__siege--droite .belote__dos span { width: 40px; height: 28px; margin-left: 0; margin-top: -17px; }
.belote__siege--gauche .belote__dos span:first-child, .belote__siege--droite .belote__dos span:first-child { margin-top: 0; }
.belote__siege--gauche { left: 2px; } .belote__siege--droite { right: 2px; }

/* 09/11 (Leeroy : « sur la table de belote, un logo au milieu, le logo d'une marque ») : médaillon du sponsor imprimé dans le feutre,
   au centre de la table, sous les cartes du pli. Réglage game.logoTable : image (défaut = brand.logo), false = rien. */
.belote__logo { position: absolute; left: 50%; top: calc(50% + 15px); width: 126px; height: 126px; margin: -63px 0 0 -63px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.12), rgba(0,0,0,.26) 72%); box-shadow: inset 0 0 0 3px rgba(242,196,90,.8), inset 0 0 0 7px rgba(0,0,0,.28), 0 6px 16px rgba(0,0,0,.35); }
.belote__logo img { width: 88px; height: 88px; object-fit: contain; border-radius: 50%; background: #fff; padding: 9px; box-shadow: 0 3px 8px rgba(0,0,0,.45); }
.belote__pli { z-index: 1; }
