/* Belote (static/js/games/belote.js): an Art Deco card room — a deep felt framed by a brass inlay with stepped
   corners, the players on frosted plates round it (your partner across the table), the trick round a brass medallion
   that carries the trumps, the scores of the two teams on a small brass plaque. Five tables (.blt-*) and five card backs
   (drawn in the js). Its own look. */

/* ---------- the tables ---------- */
.blt-deco { --f1: #23604f; --f2: #0c2a23; --brass: #c9a24e; --brass2: #f0d58e; --ink: #f4ecd8; --mut: #b8c9bf;
  --plate: rgba(9,30,25,.62); --plateb: rgba(201,162,78,.42); --pink: #f4ecd8; --pmut: #b8c9bf; --pan: #0f2a24; --pan2: #173a32; --panb: #c9a24e; --acc: #d4b062; }
.blt-navy { --f1: #22386a; --f2: #0a1430; --brass: #d8b46a; --brass2: #f6dd9f; --ink: #eef1f8; --mut: #a9b6d0;
  --plate: rgba(8,16,40,.62); --plateb: rgba(216,180,106,.42); --pink: #eef1f8; --pmut: #a9b6d0; --pan: #0e1834; --pan2: #182549; --panb: #d8b46a; --acc: #e2c27a; }
.blt-bordeaux { --f1: #7a2333; --f2: #2a0910; --brass: #e2c48b; --brass2: #fbe6b8; --ink: #fbeee8; --mut: #e0b9b9;
  --plate: rgba(40,8,14,.6); --plateb: rgba(226,196,139,.45); --pink: #fbeee8; --pmut: #e0b9b9; --pan: #2c0b12; --pan2: #431620; --panb: #e2c48b; --acc: #e8c98a; }
.blt-marble { --f1: #f1eee7; --f2: #cbc5b7; --brass: #9a7a32; --brass2: #c9a24e; --ink: #1d1c1a; --mut: #5e5a52;
  --plate: rgba(255,255,255,.72); --plateb: rgba(154,122,50,.45); --pink: #1d1c1a; --pmut: #645f55; --pan: #f6f3ec; --pan2: #e8e3d7; --panb: #9a7a32; --acc: #8a6a22; }
.blt-graphite { --f1: #34373c; --f2: #111214; --brass: #d08a4f; --brass2: #f0b987; --ink: #f2efe9; --mut: #b4b0a8;
  --plate: rgba(16,17,19,.6); --plateb: rgba(208,138,79,.42); --pink: #f2efe9; --pmut: #b4b0a8; --pan: #18191b; --pan2: #242528; --panb: #d08a4f; --acc: #e09a5c; }

/* ---------- a card ---------- */
.blc { position: relative; display: block; width: var(--cw, 70px); aspect-ratio: 2 / 3; flex: none; border-radius: calc(var(--cw, 70px) * .09); }
.blc .blsvg, .bl-hc .blsvg { display: block; width: 100%; height: 100%; }
.bl-ghost { position: fixed; z-index: 95; pointer-events: none; will-change: transform; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.bl-ghost .blc { width: 100%; }
.bl-si { display: inline-block; vertical-align: -3px; }

/* ---------- the page ---------- */
html:has(body.game-belote[data-page="table"]) { overflow: hidden; }
body.game-belote[data-page="table"] .site-foot { display: none; }
body.game-belote[data-page="table"] .chat-fab { display: none !important; }
body.game-belote[data-page="table"] #table.page { max-width: none; height: calc(100dvh - var(--top)); box-sizing: border-box; overflow: hidden; padding: 10px 14px; }
body.game-fs .bl-wrap { height: 100%; }
.bl-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; height: 100%;
  --cw: clamp(54px, 5.2vw, 80px); }

/* ---------- the bar ---------- */
.bl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 5px 6px 5px 14px; border-radius: 14px;
  background: var(--pan); border: 1px solid color-mix(in srgb, var(--panb) 50%, transparent); color: var(--ink); }
.bl-info { min-width: 0; font: 700 12.5px 'Inter', system-ui, sans-serif; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.bl-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; padding: 0; border-radius: 10px; cursor: pointer;
  color: var(--ink); font: 700 12.5px 'Inter', system-ui, sans-serif; background: var(--plate); border: 1px solid var(--plateb); backdrop-filter: blur(10px); transform: rotate(0); }
.bl-tool:hover { color: var(--brass2); border-color: var(--brass); }
.bl-tool svg.i { width: 17px; height: 17px; }
.bl-tool.wide { width: auto; padding: 0 14px; white-space: nowrap; }
.bl-tool.hidden { display: none; }
.bl-tool > b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; display: grid; place-items: center;
  font-size: 10.5px; color: #fff; background: #c2343c; }
.bl-tool > b.hidden { display: none; }
.bl-mute .tv-snd-off { display: none; }
body.tv-muted .bl-mute .tv-snd-off { display: inline; } body.tv-muted .bl-mute .tv-snd-on { display: none; }

/* ---------- the table: deep felt, a brass inlay with stepped corners ---------- */
.bl-table { position: relative; min-height: 0; border-radius: 30px; isolation: isolate; color: var(--ink);
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,255,255,.1), transparent 70%), radial-gradient(ellipse 95% 85% at 50% 50%, var(--f1), var(--f2));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--brass) 70%, transparent), inset 0 0 0 9px rgba(0,0,0,.25), inset 0 2px 40px rgba(0,0,0,.35), 0 22px 40px -22px rgba(0,0,0,.6); }
.bl-table::before { content: ''; position: absolute; inset: 16px; pointer-events: none; z-index: -1; border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, calc(100% - 22px) 10px, calc(100% - 10px) 10px, calc(100% - 10px) 22px, 100% 22px, 100% calc(100% - 22px),
    calc(100% - 10px) calc(100% - 22px), calc(100% - 10px) calc(100% - 10px), calc(100% - 22px) calc(100% - 10px), calc(100% - 22px) 100%, 22px 100%, 22px calc(100% - 10px),
    10px calc(100% - 10px), 10px calc(100% - 22px), 0 calc(100% - 22px), 0 22px, 10px 22px, 10px 10px, 22px 10px); border-radius: 0; opacity: .6; }
.bl-table::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: .35;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px); }
.blt-marble .bl-table::after { opacity: .5; background: repeating-linear-gradient(125deg, transparent 0 40px, rgba(120,110,95,.08) 40px 41px, transparent 41px 90px),
  repeating-linear-gradient(35deg, transparent 0 70px, rgba(120,110,95,.06) 70px 71px, transparent 71px 140px); }

/* ---------- the scores: a brass plaque in the corner ---------- */
.bl-score { position: absolute; left: 22px; top: 20px; z-index: 6; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--plate); border: 1px solid var(--plateb);
  backdrop-filter: blur(10px); box-shadow: 0 8px 18px -10px rgba(0,0,0,.45); }
.bl-sc { display: grid; justify-items: center; min-width: 58px; padding: 4px 8px; border-radius: 9px; line-height: 1.15; }
.bl-sc small { font: 800 9.5px 'Inter', system-ui, sans-serif; letter-spacing: .8px; text-transform: uppercase; color: var(--pmut); }
.bl-sc b { font: 700 20px 'Playfair Display', Georgia, serif; color: var(--pink); font-variant-numeric: tabular-nums; }
.bl-sc em { font: 700 10px 'Inter', system-ui, sans-serif; font-style: normal; color: var(--pmut); }
.bl-sc.us { background: color-mix(in srgb, var(--brass) 20%, transparent); }
.bl-sc.us b { color: var(--brass2); }
.blt-marble .bl-sc.us b { color: var(--brass); }
.bl-sc.to b { font-size: 15px; color: var(--pmut); }
.bl-sc em.hang { color: var(--brass2); }

/* ---------- the others ---------- */
.bl-opps { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.bl-opp { position: absolute; display: grid; justify-items: center; gap: 6px; }
.bl-opp.at-t { left: 50%; top: 22px; transform: translateX(-50%); }
.bl-opp.at-l { left: 26px; top: 50%; transform: translateY(-50%); } .bl-opp.at-r { right: 26px; top: 50%; transform: translateY(-50%); }
.bl-plate { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; background: var(--plate); border: 1px solid var(--plateb);
  backdrop-filter: blur(10px); box-shadow: 0 8px 18px -10px rgba(0,0,0,.45); }
.bl-opp.mate .bl-plate { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 60%, transparent), 0 8px 18px -10px rgba(0,0,0,.45); }
.bl-opp.turn .bl-plate { border-color: var(--brass2); box-shadow: 0 0 0 2px var(--brass), 0 8px 22px -8px var(--brass); }
.bl-av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 3px; box-sizing: border-box; border-radius: 50%; flex: none; }
.bl-tring { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.18); }
.bl-opp.turn .bl-tring, .bl-dock.my-turn .bl-tring { background: conic-gradient(var(--brass2) calc(var(--k, 1) * 360deg), rgba(0,0,0,.18) 0); }
.bl-avi { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; font-size: 16px;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.4), transparent 45%), var(--bg); box-shadow: 0 0 0 2px var(--brass); }
.bl-avi svg.i { width: 20px; height: 20px; } .bl-avi .ava-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-pn { display: grid; line-height: 1.15; color: var(--pink); }
.bl-pn b { font-size: 12.5px; font-weight: 800; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-pn small { font-size: 10.5px; font-weight: 600; color: var(--pmut); }
.bl-buy { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--f2); background: linear-gradient(145deg, var(--brass2), var(--brass)); }
.bl-backs { position: relative; display: block; width: 104px; height: 42px; }
.bl-backs i { position: absolute; left: calc(50% - 14px + var(--k) * 11px); bottom: 0; width: 28px; aspect-ratio: 2 / 3; transform: rotate(calc(var(--k) * 6deg)); transform-origin: 50% 120%;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.bl-backs i .blsvg { display: block; width: 100%; height: 100%; }
/* what a player said while buying */
.bl-say { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font: 800 11.5px 'Inter', system-ui, sans-serif; white-space: nowrap;
  color: var(--pink); background: var(--plate); border: 1px solid var(--plateb); animation: blSay .25s ease-out; }
.bl-say.take { color: var(--f2); background: linear-gradient(145deg, var(--brass2), var(--brass)); border-color: transparent; }
.bl-say.take .bl-si path[fill="currentColor"] { fill: var(--f2); }
.bl-say.pass { opacity: .8; }
.bl-say.me { margin-left: 4px; }
@keyframes blSay { from { transform: scale(.7); opacity: 0; } }
/* the air shown at the seat for a moment */
.bl-airpop { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 30; display: flex; gap: 8px; padding: 6px 8px; border-radius: 12px;
  background: var(--plate); border: 1px solid var(--plateb); backdrop-filter: blur(10px); animation: blSay .25s ease-out; pointer-events: none; white-space: nowrap; }
.bl-airpop.on { border-color: var(--brass2); box-shadow: 0 0 18px -4px var(--brass); }
.bl-opp.at-t .bl-airpop { bottom: auto; top: calc(100% + 6px); }
.bl-airset { display: flex; } .bl-airset .blc.mini { --cw: 26px; margin-left: -8px; } .bl-airset .blc.mini:first-child { margin-left: 0; }

/* ---------- the middle: the deck and the turned card, the medallion, the trick ---------- */
.bl-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; display: flex; align-items: center; justify-content: center; gap: calc(var(--cw) * .5); }
.bl-mid { position: relative; width: calc(var(--cw) * 3.2); height: calc(var(--cw) * 3.4); display: grid; place-items: center; }
.bl-medal { position: relative; z-index: 0; display: grid; place-items: center; align-content: center; gap: 0; width: calc(var(--cw) * 1.15); aspect-ratio: 1; border-radius: 50%; text-align: center;
  color: var(--f2); background: radial-gradient(circle at 35% 30%, var(--brass2), var(--brass) 60%, color-mix(in srgb, var(--brass) 70%, #000)); line-height: 1.05;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--f2) 70%, transparent), 0 0 0 4px var(--brass), 0 10px 22px -8px rgba(0,0,0,.6); }
.bl-medal b { font: 700 calc(var(--cw) * .5) 'Playfair Display', Georgia, serif; }
.bl-medal small { font: 900 calc(var(--cw) * .11) 'Inter', system-ui, sans-serif; letter-spacing: .6px; text-transform: uppercase; }
.bl-medal em { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 calc(var(--cw) * .11) 'Inter', system-ui, sans-serif; font-style: normal; opacity: .85; }
.bl-medal.on { animation: blMedal .5s cubic-bezier(.3,1.4,.5,1); }
.bl-medal .bl-si path[fill="currentColor"] { fill: #15161a; }
@keyframes blMedal { from { transform: scale(.6) rotate(-30deg); } }
.bl-trick { position: absolute; inset: 0; z-index: 2; }
.bl-trick .blc.tk { position: absolute; left: 50%; top: 50%; width: var(--cw); filter: drop-shadow(0 6px 8px rgba(0,0,0,.35));
  transform: translate(-50%, -50%) translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg)); }
.bl-trick .p-b { --ty: calc(var(--cw) * .86); } .bl-trick .p-t { --ty: calc(var(--cw) * -.86); }
.bl-trick .p-l { --tx: calc(var(--cw) * -1.02); } .bl-trick .p-r { --tx: calc(var(--cw) * 1.02); }
.bl-deck { position: relative; width: var(--cw); aspect-ratio: 2 / 3; flex: none; }
.bl-deck.hidden, .bl-open.hidden { visibility: hidden; }
.bl-deck .blc.d { position: absolute; inset: 0; width: 100%; transform: translate(calc(var(--i) * -1.5px), calc(var(--i) * -2px)); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.bl-open { position: relative; width: var(--cw); aspect-ratio: 2 / 3; flex: none; }
.bl-open .blc { width: 100%; filter: drop-shadow(0 0 0 var(--brass)) drop-shadow(0 0 12px color-mix(in srgb, var(--brass) 70%, transparent)) drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.bl-open .blc.flip { animation: blFlip .45s cubic-bezier(.3,1.2,.5,1); }
@keyframes blFlip { from { transform: rotateY(90deg) scale(.8); } }

/* ---------- the word in the middle ---------- */
.bl-banner { position: absolute; left: 50%; top: 20%; z-index: 25; transform: translateX(-50%); max-width: min(92%, 560px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; padding: 8px 18px; border-radius: 10px; font: 800 14px 'Inter', system-ui, sans-serif; color: var(--pink); background: var(--plate);
  border: 1px solid var(--plateb); backdrop-filter: blur(12px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); animation: blBan .3s ease-out; }
.bl-banner.blank { display: none; }
.bl-banner.good { color: var(--f2); background: linear-gradient(145deg, var(--brass2), var(--brass)); border-color: transparent; }
.bl-banner.gold { color: #2b2110; background: linear-gradient(145deg, #f6dd9f, #d4b062); border-color: #b8913a; }
.bl-banner b { font-weight: 900; } .bl-banner i { font-weight: 600; opacity: .8; }
.bl-banner.gold .bl-si path[fill="currentColor"], .bl-banner.good .bl-si path[fill="currentColor"] { fill: #15161a; }
@keyframes blBan { from { opacity: 0; transform: translate(-50%, -6px); } }
.bl-table > .paused21 { z-index: 26; }

/* ---------- the time round the table ---------- */
/* (the turn's line round the table: on its own layer — it changes every frame, the table under it is not drawn again) */
.bl-timer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; will-change: transform; }
.bl-timer rect { fill: none; stroke-width: 3; }
.bl-timer .tr-bg { stroke: rgba(0,0,0,.12); }
.bl-timer .tr-fg { stroke: color-mix(in srgb, var(--brass) 55%, transparent); stroke-linecap: round; stroke-dasharray: 100 100; }
.bl-timer.mine .tr-fg { stroke: var(--brass2); }
.bl-timer.low .tr-fg { stroke: #e0505a; animation: blLow .55s ease-in-out infinite alternate; }
.bl-timer.idle .tr-fg, .bl-timer.idle .tr-head { opacity: 0; }
.bl-timer .tr-head { fill: #fff; stroke: var(--brass); stroke-width: 2; }
@keyframes blLow { to { stroke-width: 5; } }

/* ---------- you ---------- */
.bl-me { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.bl-dock { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 9px 240px; border-radius: 14px; min-width: 0; text-align: center;
  background: var(--pan); border: 1px solid color-mix(in srgb, var(--panb) 50%, transparent); color: var(--pink); }
.bl-dock.my-turn { border-color: var(--brass); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brass) 40%, transparent); }
.bl-who { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.bl-meinfo { display: grid; text-align: left; line-height: 1.2; } .bl-meinfo b { font-size: 13px; font-weight: 800; } .bl-meinfo small { font-size: 10.5px; font-weight: 600; color: var(--pmut); }
.bl-dock .turnlbl { display: flex; justify-content: center; gap: 10px; margin: 0; max-width: 100%; }
.bl-dock .turnlbl b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-dock .turnlbl span { font-size: 12px; font-weight: 600; color: var(--pmut); white-space: nowrap; }
.bl-dock .tbar { display: none; }
/* the buying: take / pass, the suits, the swap */
.bl-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 4px 8px 0; }
.bl-acts.hidden { display: none; }
.bl-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 10px; cursor: pointer; color: var(--pink);
  background: var(--pan2); border: 1px solid color-mix(in srgb, var(--panb) 60%, transparent); font: 800 14px 'Inter', system-ui, sans-serif; transition: transform .12s, box-shadow .2s; }
.bl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px var(--brass); }
.bl-btn.take { color: #1b1a14; background: linear-gradient(145deg, var(--brass2), var(--brass)); border-color: transparent; }
.bl-btn.take .bl-si path[fill="currentColor"] { fill: #15161a; }
.bl-btn.suit { padding: 8px 14px; }
.bl-btn:disabled { opacity: .6; cursor: default; }
.bl-hand { display: flex; justify-content: center; align-items: flex-end; min-width: 0; overflow: hidden;
  padding: 22px 8px calc(16px + env(safe-area-inset-bottom)); min-height: calc(var(--cw) * 1.5 + 30px); }
.bl-hc { position: relative; flex: none; width: calc(var(--cw) * 1.08); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer; margin: 0 calc(var(--cw) * -.12);
  border-radius: calc(var(--cw) * .1); filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); transform: translateY(calc(var(--d) * var(--d) * 1.2px)) rotate(calc(var(--d) * 2.6deg));
  transform-origin: 50% 130%; transition: transform .18s, filter .2s, opacity .2s; }
/* (under the pointer only the picture rises: the card's place in the fan stays, so it never flickers, from below or
   from the sides) */
.bl-hc .blsvg { transition: transform .18s; }
.bl-hc.ok:hover { z-index: 5; }
.bl-hc.ok:hover .blsvg { transform: translateY(-16px); }
.bl-hc.no { filter: brightness(.62) saturate(.7) drop-shadow(0 4px 6px rgba(0,0,0,.35)); cursor: not-allowed; }
.bl-hc.ok { filter: drop-shadow(0 0 0 var(--brass)) drop-shadow(0 0 6px color-mix(in srgb, var(--brass) 55%, transparent)) drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.bl-hc.tr::after { content: ''; position: absolute; left: 50%; top: -7px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: var(--brass2); box-shadow: 0 0 6px var(--brass); }
.bl-hc.gone { opacity: 0; transform: translateY(-20px) scale(.9); transition: opacity .08s, transform .08s; }
.bl-hc.nope { animation: blNope .35s; }
@keyframes blNope { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
.bl-hand.dealt .bl-hc { animation: blDeal .5s cubic-bezier(.3,1.15,.5,1) backwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes blDeal { from { transform: translateY(-140px) rotate(-6deg) scale(.7); opacity: 0; } }

/* ---------- the end of a hand: the points of both teams ---------- */
.bl-res { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 12px; pointer-events: none; }
.bl-res.hidden { display: none; }
.bl-res-in { pointer-events: auto; width: min(440px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box; padding: 18px; border-radius: 18px;
  color: var(--pink); background: var(--pan); border: 1px solid var(--panb); box-shadow: inset 0 0 0 4px var(--pan), inset 0 0 0 5px color-mix(in srgb, var(--panb) 45%, transparent), 0 30px 70px -20px rgba(0,0,0,.7);
  animation: blIn .3s ease-out; }
@keyframes blIn { from { transform: translateY(8px) scale(.97); opacity: 0; } }
.bl-res-tr { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 12px 'Inter', system-ui, sans-serif; color: var(--pmut); }
.bl-res-in h3 { margin: 6px 0 12px; text-align: center; font: 700 22px 'Playfair Display', Georgia, serif; color: var(--brass2); }
.blt-marble .bl-res-in h3 { color: var(--brass); }
.bl-rt { width: 100%; border-collapse: separate; border-spacing: 0 5px; font: 600 13px 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.bl-rt th { font-size: 11.5px; font-weight: 700; color: var(--pmut); text-align: center; padding: 0 6px; }
.bl-rt th.us { color: var(--brass2); }
.bl-rt tr > th:first-child { text-align: left; }
.bl-rt td, .bl-rt tr:not(:first-child) th { padding: 8px 8px; background: var(--pan2); text-align: center; }
.bl-rt tr:not(:first-child) th { border-radius: 9px 0 0 9px; color: var(--pink); text-align: left; }
.bl-rt td:last-child { border-radius: 0 9px 9px 0; }
.bl-rt td.sum, .bl-rt tr.got td { font-weight: 800; color: var(--brass2); }
.blt-marble .bl-rt td.sum, .blt-marble .bl-rt tr.got td { color: var(--brass); }
.bl-rt tr.tot td { font: 700 18px 'Playfair Display', Georgia, serif; }
.bl-res-note { margin: 8px 0 0; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--brass2); }
.bl-res-n { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--pmut); }

/* ---------- home and my look ---------- */
.hero-bl .bl-art { display: flex; justify-content: center; padding: 4px 0 10px; }
.hero-bl .bl-art img { display: block; width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.bl-target { display: grid; grid-template-columns: repeat(3, 1fr); }
.bl-target button { font-size: 12.5px; font-weight: 900; }
.bl-lk { position: relative; display: block; width: 100%; height: 100%; min-height: 60px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, var(--f1), var(--f2)); box-shadow: inset 0 0 0 2px var(--brass); }
.bl-lk-c { position: absolute; top: 50%; width: 28%; max-width: 46px; aspect-ratio: 2 / 3; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.bl-lk-c .blsvg { width: 100%; height: 100%; display: block; }
.bl-lk-c.b { left: 32%; transform: translate(-50%, -50%) rotate(-8deg); } .bl-lk-c.f { left: 64%; transform: translate(-50%, -50%) rotate(6deg); }
.logo-bl { width: 36px; height: 36px; flex: none; } .logo-bl img { width: 36px; height: 36px; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
/* the seats in the setup: your partner across the table, the two others */
.seat-wrap.bl-mate .seat-row { box-shadow: inset 3px 0 0 #d4b062; }
.seat-wrap.bl-foe .seat-row { box-shadow: inset 3px 0 0 #8c96a8; }
.bl-team { align-self: flex-start; margin-top: 4px; padding: 2px 9px; border: 0; border-radius: 999px; cursor: pointer; font: 900 10px/1.4 'Inter', system-ui, sans-serif;
  letter-spacing: .4px; text-transform: uppercase; transition: background .2s, color .2s, box-shadow .2s; }
.bl-team.foe:hover { background: rgba(212,176,98,.14); color: #f0d58e; box-shadow: inset 0 0 0 1px rgba(212,176,98,.45); }
.bl-team.mate { background: rgba(212,176,98,.2); color: #f0d58e; box-shadow: inset 0 0 0 1px rgba(212,176,98,.55); }
.bl-team.foe { background: rgba(140,150,168,.14); color: #c2c9d6; box-shadow: inset 0 0 0 1px rgba(140,150,168,.35); }

/* ---------- a computer: the tools on the table's corner ---------- */
@media (min-width: 761px) and (min-height: 521px) {
  .bl-wrap { grid-template-rows: minmax(0, 1fr) auto; }
  .bl-top { position: absolute; top: 18px; right: 22px; z-index: 30; padding: 0; background: none; border: 0; }
  .bl-top .bl-info { display: none; }
}
/* ---------- a phone ---------- */
@media (max-width: 760px) {
  .bl-wrap { --cw: clamp(38px, 10.5vw, 54px); }
  .bl-av { width: 32px; height: 32px; padding: 2px; } .bl-pn b { font-size: 11px; max-width: 64px; } .bl-pn small { display: none; }
  .bl-backs { width: 70px; height: 30px; } .bl-backs i { width: 20px; left: calc(50% - 10px + var(--k) * 7px); }
  .bl-opp.at-l { left: 8px; } .bl-opp.at-r { right: 8px; } .bl-opp.at-t { top: 62px; }
  .bl-score { left: 50%; top: 10px; transform: translateX(-50%); } .bl-sc { min-width: 46px; padding: 3px 6px; } .bl-sc b { font-size: 16px; }
  .bl-dock { padding: 7px 10px; } .bl-who { display: none; }
  .bl-tool { width: 34px; height: 34px; }
  .bl-hc { margin: 0 calc(var(--cw) * -.2); }
  .bl-btn { padding: 9px 13px; font-size: 13px; } .bl-btn.suit span { display: none; }
}
@media (max-width: 760px) and (orientation: portrait) { .bl-table { align-self: center; height: min(100%, 140vw); }
  .bl-opp.at-l, .bl-opp.at-r { top: 46%; } .bl-center { top: 56%; } }
@media (orientation: landscape) and (max-height: 520px) {
  body.game-belote[data-page="table"] .top { display: none; }
  body.game-belote[data-page="table"] #table.page { height: 100dvh; margin: 0; padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(2px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .bl-wrap { --cw: clamp(30px, 8.6vh, 46px); gap: 4px; grid-template-rows: minmax(0, 1fr) auto; }
  /* (a low screen: the tools on the table's corner, the scores at the bottom left, the others small round the trick) */
  .bl-top { position: absolute; top: 8px; right: 10px; z-index: 30; padding: 0; background: none; border: 0; } .bl-top .bl-info { display: none; }
  .bl-score { left: 12px; top: auto; bottom: 10px; transform: none; } .bl-sc { min-width: 38px; padding: 2px 5px; } .bl-sc b { font-size: 14px; } .bl-sc em { display: none; }
  .bl-opp.at-t { top: 6px; } .bl-opp.at-t .bl-backs { display: none; } .bl-opp.at-l, .bl-opp.at-r { top: 46%; }
  .bl-opp .bl-backs { width: 60px; height: 24px; } .bl-opp .bl-backs i { width: 16px; left: calc(50% - 8px + var(--k) * 6px); }
  .bl-av { width: 28px; height: 28px; padding: 2px; } .bl-pn small { display: none; }
  .bl-center { top: 56%; }
  .bl-dock { padding: 4px 8px; gap: 3px; flex-direction: row; justify-content: center; } .bl-who { display: none; }
  .bl-hand { padding-top: 12px; min-height: calc(var(--cw) * 1.5 + 14px); }
  .bl-tool { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .bl-hand.dealt .bl-hc { animation: none !important; } }
