/* Belote Bizouk (/games/belote). S'appuie sur domino.css (page, boutons, fenêtres, table verte). */
.blt-card { --w: 46px; width: var(--w); height: calc(var(--w) * 1.42); border-radius: 7px; background: linear-gradient(165deg, #fff, #f1ede2);
    border: 1px solid #c9c0aa; box-shadow: 0 2px 4px rgba(0,0,0,.35); display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    color: #1d1d1d; font-weight: 800; line-height: 1; flex: none; position: relative; }
.blt-card b { font-size: calc(var(--w) * .42); }
.blt-card i { font-style: normal; font-size: calc(var(--w) * .5); }
.blt-red { color: #c62828; }
.blt-red-txt { color: #ff8a80; }
.blt-hero-cards { display: flex; justify-content: center; gap: 8px; }
.blt-hero-cards .blt-card { --w: 54px; }
.blt-hero-cards .blt-card:nth-child(1) { transform: rotate(-12deg) translateY(6px); }
.blt-hero-cards .blt-card:nth-child(3) { transform: rotate(12deg) translateY(6px); }

.blt-table { gap: 6px; }
.blt-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; }
.blt-score { display: flex; gap: 14px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.blt-score b { color: #f5c518; font-size: 20px; }
.blt-score small { opacity: .7; }
.blt-trump { font-size: 15px; }
.blt-trump b { font-size: 24px; vertical-align: middle; }

.blt-felt { position: relative; flex: 1; min-height: 300px; }
.blt-seat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.blt-felt .blt-seat { position: absolute; }
.blt-partner { top: 0; left: 50%; transform: translateX(-50%); }
.blt-left { left: 0; top: 50%; transform: translateY(-50%); }
.blt-right { right: 0; top: 50%; transform: translateY(-50%); }
.blt-name { display: flex; align-items: center; gap: 6px; font-size: 13px; background: rgba(0,0,0,.28); padding: 4px 10px 4px 4px; border-radius: 999px; max-width: 150px; }
.blt-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.blt-name small { display: block; font-size: 11px; opacity: .75; }
.blt-name .dmn-avatar { width: 30px; height: 30px; font-size: 13px; flex: none; }
.blt-bot { background: #f5c518; color: #2b2219; }
.blt-active .blt-name { box-shadow: 0 0 0 2px #f5c518; }
.blt-backs { display: flex; }
.blt-back { width: 14px; height: 22px; border-radius: 3px; margin-left: -6px; border: 1px solid #3d0f0f; background: repeating-linear-gradient(45deg, #7b1f1f, #7b1f1f 3px, #962a2a 3px, #962a2a 6px); }
.blt-back:first-child { margin-left: 0; }

.blt-center { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); }
.blt-center .blt-card { position: absolute; --w: 44px; animation: dmnDrop .3s ease-out; }
.blt-at-me { left: 50%; bottom: 0; transform: translateX(-50%); }
.blt-at-partner { left: 50%; top: 0; transform: translateX(-50%); }
.blt-at-left { left: 0; top: 50%; transform: translateY(-50%) rotate(-8deg); }
.blt-at-right { right: 0; top: 50%; transform: translateY(-50%) rotate(8deg); }
.blt-win { box-shadow: 0 0 0 3px #f5c518, 0 2px 4px rgba(0,0,0,.35); }
.blt-turned { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.blt-turned .blt-card { position: static; --w: 56px; }
.blt-banner { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); white-space: nowrap; }

.blt-bid { text-align: center; padding: 4px; }
.blt-bid p { margin: 0 0 4px; }
.blt-suit { min-width: 64px; }
.blt-suit-red { color: #c62828 !important; }
.blt-hand { display: flex; justify-content: center; padding: 8px 2px; min-height: 80px; }
.blt-hand .blt-card { --w: clamp(36px, 11vw, 58px); margin-left: calc(var(--w) * -0.28); transition: transform .15s; }
.blt-hand .blt-card:first-child { margin-left: 0; }
.dmn-my-turn .blt-playable { box-shadow: 0 0 0 3px #f5c518, 0 2px 4px rgba(0,0,0,.35); cursor: pointer; transform: translateY(-8px); z-index: 1; }
.blt-me { padding-bottom: env(safe-area-inset-bottom); }
.blt-seated { font-size: 26px; font-weight: 800; margin: 4px 0; }
@media (min-width: 640px) {
    .blt-felt { min-height: 360px; }
    .blt-center { width: 190px; height: 190px; }
    .blt-center .blt-card { --w: 54px; }
}

/* ====================================================================== Design v2 (15/11/2026) : vraies cartes */
.gm-face { background: linear-gradient(160deg, #fff 0%, #fbf8f1 60%, #efe8d8 100%); border: 1px solid #cfc5ae; border-radius: calc(var(--w) * .12);
    box-shadow: 0 1px 0 #fff inset, 0 3px 8px rgba(0,0,0,.35); overflow: hidden; color: #1b1b1b; }
.gm-face.blt-red { color: #c4161c; }
.gm-face .gm-c { position: absolute; font-size: calc(var(--w) * .27); line-height: .95; font-weight: 900; text-align: center; white-space: pre-line; letter-spacing: -.5px; }
.gm-face .gm-tl { left: calc(var(--w) * .07); top: calc(var(--w) * .07); }
.gm-face .gm-br { right: calc(var(--w) * .07); bottom: calc(var(--w) * .07); transform: rotate(180deg); }
.gm-face .gm-mid { font-size: calc(var(--w) * .62); font-weight: 900; line-height: 1; }
.gm-face b, .gm-face i { display: none; }
.blt-hand { padding: 18px 6px 6px; min-height: 110px; align-items: flex-end; }
.blt-hand .gm-face { --w: clamp(44px, 12.5vw, 66px); margin-left: calc(var(--w) * -0.42); transform-origin: 50% 120%;
    transform: translateY(var(--y, 0)) rotate(var(--r, 0)); transition: transform .15s ease-out; }
.blt-hand .gm-face:first-child { margin-left: 0; }
.dmn-my-turn .blt-hand .blt-playable { transform: translateY(calc(var(--y, 0px) - 14px)) rotate(var(--r, 0)); box-shadow: 0 0 0 3px var(--g-gold, #f5c518), 0 0 18px rgba(245,197,24,.5), 0 3px 8px rgba(0,0,0,.35); }
.blt-hand .dmn-dim { opacity: 1; filter: brightness(.62) saturate(.6); }
.blt-center { border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%); }
.blt-center .gm-face { --w: 50px; }
.blt-at-me { transform: translateX(-50%) rotate(2deg); }
.blt-at-partner { transform: translateX(-50%) rotate(-3deg); }
.blt-turned .gm-face { --w: 64px; }
.blt-win { box-shadow: 0 0 0 3px var(--g-gold, #f5c518), 0 0 22px rgba(245,197,24,.6); }
.blt-back { background: linear-gradient(135deg, #8d2a2a, #5c1414); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); width: 16px; height: 24px; border-radius: 3px; }
/* Score : deux équipes, barre vers la cible */
.gm-score { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; flex: 1; margin-right: 54px; }
.gm-team { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 8px; }
.gm-team span { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; opacity: .8; }
.gm-team b { font-size: 22px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.gm-team i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.gm-team em { display: block; height: 100%; border-radius: 3px; background: var(--g-gold, #f5c518); transition: width .6s ease-out; }
.gm-them em { background: #9fd0ff; }
.gm-score small { grid-column: 1 / -1; font-size: 11px; opacity: .6; }
/* Atout */
.gm-trump { display: flex; align-items: center; gap: 8px; background: #fff; color: #1b1b1b; border-radius: 14px; padding: 4px 12px 4px 8px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.gm-trump b { font-size: 28px; line-height: 1; }
.gm-trump small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; opacity: .6; }
.gm-trump strong { font-size: 14px; }
.gm-trump-red b { color: #c4161c; }
.blt-top { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; padding: 4px 6px; flex-wrap: wrap; gap: 8px; }
.blt-table { padding-top: 92px; }
.blt-name { background: rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.blt-bid { background: rgba(0,0,0,.3); border-radius: 18px; padding: 10px; }
.blt-bid .dmn-btn { min-height: 54px; }
.blt-suit { background: #fff; color: #1b1b1b; font-size: 18px; }
/* Barre du haut : place laissée à la croix Quitter ; bouton du chat au-dessus de la main (15/11/2026) */
.blt-table .blt-top { right: 58px; }
.blt-table .gm-score { margin-right: 0; }
.blt-table .gc-btn { top: auto; bottom: 150px; }
.blt-table .gc-bubble { top: auto; bottom: 210px; }
.blt-table .blt-top { right: 100px; }
.blt-lasttrick { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); z-index: 2; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.35);
    color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.blt-lasttrick[hidden] { display: none; }
.blt-lt-cards { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.blt-lt-one { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.blt-lt-one .gm-face { --w: 52px; }
.blt-lt-win .gm-face { box-shadow: 0 0 0 3px #f5c518; }
