/* WIGUEL Tables: built by build/tables_build.py from build/classics. */
  .bg { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 6px; user-select: none; -webkit-user-select: none; }
  .bg-players { display: flex; flex-direction: column; gap: 4px; }
  .bg.duo .bg-players { flex-direction: row; } .bg.duo .bg-pl { flex: 1 1 0; }
  .bg-pl { display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 10px; background: rgba(255,255,255,.07); border: 2px solid transparent; font-size: 14px; min-width: 0; }
  .bg-pl.on { border-color: #fde68a; background: rgba(253,230,138,.1); }
  .bg-pl .bt-name { flex: 1 1 auto; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bg-pl .bt-name i { font-style: normal; font-weight: 600; font-size: 11px; opacity: .75; padding: 1px 6px; border: 1px solid currentColor; border-radius: 6px; margin-left: 4px; }
  .bg-pc { display: inline-flex; width: 20px; height: 20px; flex: none; align-items: center; justify-content: center; }
  .bg-pc svg { width: 100%; height: 100%; }
  .bg-x { font-family: var(--font-num, monospace); font-size: 13px; font-weight: 500; opacity: .9; white-space: nowrap; }
  .bg .bt-time { font-family: var(--font-num, monospace); font-size: 13px; padding: 1px 7px; border-radius: 6px; background: rgba(253,230,138,.18); color: #fde68a; }
  .bg .bt-time.low { background: rgba(255,107,122,.25); color: #ffb3bd; }
  .bg-badge { justify-self: center; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
  .bg-board { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; }
  .bg .bg-msg { text-align: center; min-height: 24px; font-weight: 700; font-size: 15px; color: #fde68a; padding: 2px 0; }
  .bg .bg-msg.err { color: #ffb4b4; }
  .bg-rev { position: absolute; left: 8%; right: 8%; top: 32%; z-index: 30; background: rgba(5,10,25,.88); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
  .bg-rev h3 { margin: 0; font-size: 19px; } .bg-next { font-size: 12px; opacity: .7; }
  .bg .bt-end { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(5,10,25,.72); border-radius: 14px; }
  .bg .bt-endbox { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 22px; width: min(320px, 86%); display: flex; flex-direction: column; gap: 12px; text-align: center; }
  .bg .bt-score { font-family: var(--font-num, monospace); font-size: 26px; }
  .bg .bt-acts { display: flex; flex-direction: column; gap: 10px; }
  .bg .no { animation: bgNo .32s; } @keyframes bgNo { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
  .bg-players { grid-row: 1; } .bg-badge { grid-row: 2; } .bg-board { grid-row: 3; } .bg .bg-msg { grid-row: 4; }
  .d3 { --s: 58px; --h: 29px; position: relative; width: var(--s); height: var(--s); padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; perspective: 260px; overflow: visible; flex: none; }
  .d3:disabled { cursor: default; }
  .d3-hop, .d3-cube { position: absolute; inset: 0; transform-style: preserve-3d; }
  .d3-face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 -5px 10px rgba(0,0,0,.12); }
  .d3-face svg { width: 100%; height: 100%; display: block; }
  .d3:disabled .d3-face { filter: brightness(.88); }
  .d3-shadow { position: absolute; left: 8%; right: 8%; bottom: -9px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(4px); opacity: .55; }
  .d3.go { box-shadow: 0 0 0 3px #fde68a, 0 0 22px rgba(253,230,138,.7); animation: d3Go 1s ease-in-out infinite; }
  .d3.rolling .d3-cube { animation: d3Tumble .45s linear infinite; } .d3.rolling .d3-hop { animation: d3Bob .45s ease-in-out infinite alternate; }
  @keyframes d3Go { 50% { transform: scale(1.07); } }
  @keyframes d3Tumble { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(720deg); } }
  @keyframes d3Bob { from { transform: translateY(0); } to { transform: translateY(-18px); } }
  @media (prefers-reduced-motion: reduce) { .d3.go, .d3.rolling .d3-cube, .d3.rolling .d3-hop { animation: none; } }
  .bt { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); --cw: min(118px, 27vw, calc((100cqh - 178px) / 4.45)); --ch: calc(var(--cw) * 1.53); --tk: var(--cw); --sm: calc(var(--cw) * .62); user-select: none; -webkit-user-select: none; }
  .bt .card { width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .1); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
  .bt .card svg { width: 100%; height: 100%; display: block; }
  .bt-pl { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 14px; padding: 4px 10px; border-radius: 999px; min-height: 30px; }
  .bt-pl[data-r="2"] { grid-row: 1; justify-self: center; flex-direction: column; gap: 4px; }
  .bt-pl[data-r="1"], .bt-pl[data-r="3"] { position: absolute; top: 40%; flex-direction: column; gap: 4px; max-width: 34%; padding: 4px 2px; }
  .bt.n4 .bt-deck { top: 0; transform: none; left: 2%; }
  .bt.n4 .bt-pl[data-r="1"] .bt-name, .bt.n4 .bt-pl[data-r="3"] .bt-name { font-size: 13px; }
  .bt-pl[data-r="1"] { right: 0; } .bt-pl[data-r="3"] { left: 0; }
  .bt-pl.on .bt-name { color: #fde68a; text-shadow: 0 0 12px rgba(253,230,138,.8); }
  .bt-pl.bt-mate .bt-name::before { content: "♥ "; color: #86efac; }
  .bt-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bt-name i { font-style: normal; font-weight: 600; font-size: 11px; opacity: .75; padding: 1px 6px; border: 1px solid currentColor; border-radius: 6px; margin-left: 4px; }
  .bt-backs { display: flex; } .bt-backs b { width: 18px; height: 26px; margin-left: -6px; border-radius: 3px; background: repeating-linear-gradient(45deg, #9e1626 0 3px, #cd4650 3px 5px); border: 1.5px solid #fffdf7; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .bt-time { font-family: var(--font-num, monospace); font-size: 13px; padding: 1px 7px; border-radius: 6px; background: rgba(253,230,138,.18); color: #fde68a; }
  .bt-time.low { background: rgba(255,107,122,.25); color: #ffb3bd; }
  .bt-mid { grid-row: 2; position: relative; min-height: calc(var(--ch) * 1.9); }
  .bt.n4 { --tk: calc(var(--cw) * .85); }   /* 4 cards in the trick: a bit smaller, clear of the side players */
  .bt-deck { position: absolute; left: 4%; top: 50%; transform: translateY(-50%); width: calc(var(--sm) * 1.5); height: calc(var(--sm) * 1.53); }
  .bt-deck .card { width: var(--sm); height: calc(var(--sm) * 1.53); position: absolute; }
  .bt-trump .card { left: calc(var(--sm) * .45); transform: rotate(90deg); top: 0; }
  .bt-trump .card.ghost { opacity: .35; }
  .bt-stack .card { left: 0; top: 0; }
  .bt-dn { position: absolute; left: 0; top: 100%; width: var(--sm); text-align: center; font-family: var(--font-num, monospace); font-size: 13px; margin-top: 4px; }
  .bt-trick { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
  .bt-trick .card { position: absolute; width: var(--tk); height: calc(var(--tk) * 1.53); left: calc(var(--tk) * -.5 + var(--x) * var(--tk) * .58); top: calc(var(--tk) * 1.53 * -.5 + var(--y) * var(--tk) * 1.53 * .42); transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s; }
  .bt-trick .card.in { animation: btIn .3s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes btIn { from { transform: translate(calc(var(--x) * 160px), calc(var(--y) * 220px)) rotate(12deg); opacity: .2; } }
  .bt-trick .card.win { box-shadow: 0 0 0 3px #fde68a, 0 0 22px rgba(253,230,138,.7); }
  .bt-trick .card.sweep { transform: translate(calc(var(--sx) * 260px), calc(var(--sy) * 320px)) scale(.4); opacity: 0; }
  .bt-msg { grid-row: 3; text-align: center; min-height: 24px; font-weight: 700; font-size: 15px; color: #fde68a; padding: 4px 0; }
  .bt-me { grid-row: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 6px; }
  .bt-hand { display: flex; justify-content: center; min-height: var(--ch); }
  .bt-hand .card:not(.can) { box-shadow: -3px 2px 8px rgba(0,0,0,.45); }
  .bt-hand .card { transition: transform .15s; }
  .bt-hand .card.can { cursor: pointer; box-shadow: 0 0 0 2px rgba(253,230,138,.85), 0 6px 14px rgba(0,0,0,.5); transform: translateY(-6px); }
  .bt-hand .card.sent { transform: translateY(-40px); opacity: .5; }
  .bt-swap { font: inherit; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 0; background: #fde68a; color: #3a2a00; cursor: pointer; }
  .bt-end { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(5,10,25,.72); border-radius: 14px; }
  .bt-endbox { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 22px; width: min(320px, 86%); display: flex; flex-direction: column; gap: 12px; text-align: center; }
  .bt-score { font-family: var(--font-num, monospace); font-size: 30px; }
  .bt-acts { display: flex; flex-direction: column; gap: 10px; }
  .bt-xtra { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .bt-msg.err { color: #ffb4b4; }
  .bt-hand .card.no { animation: btNo .35s ease-in-out; }
  @keyframes btNo { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
  .bt-singl { font-weight: 800; font-size: 14px; align-self: center; }
  .bt-sing { padding: 8px 10px; }
  .mt-badge { position: absolute; left: 2px; top: 2px; max-width: 30%; line-height: 1.3; z-index: 6; padding: 4px 8px; border-radius: 10px; background: rgba(0,0,0,.35); font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; }
  .mt-endline { margin: 4px 0 8px; font-size: 15px; font-weight: 700; opacity: .9; }
  .mt-rev { position: absolute; inset: 12% 4% auto; z-index: 32; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 16px 14px; background: #0b1424; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: mtIn .25s ease both; }
  .mt-rev h3 { margin: 0 0 4px; color: #fde68a; font-size: 18px; }
  .mt-rev p { margin: 0; font-size: 15px; } .mt-rev .mt-big { font-weight: 800; font-size: 16px; } .mt-rev .mt-next { opacity: .7; font-size: 13px; margin-top: 4px; }
  .mt-rev table { width: 100%; max-width: 320px; }
  @keyframes mtIn { from { opacity: 0; transform: scale(.94); } }
  .et { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); --cw: min(104px, 24vw, calc((100cqh - 270px) / 3.76)); --ch: calc(var(--cw) * 1.53); --tw: min(76px, 18vw, calc(var(--cw) * .73)); user-select: none; -webkit-user-select: none; }
  .et .card { width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .1); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
  .et .card svg { width: 100%; height: 100%; display: block; }
  .et .bt-pl[data-r="2"] { grid-row: 1; }
  .et-score { grid-row: 2; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 6px; opacity: .92; }
  .et-mid { grid-row: 3; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 4%; }
  .et.n4 .et-mid { padding: 0 20%; }
  .et-deck { position: absolute; left: 2px; top: 4px; font-family: var(--font-num, monospace); font-size: 12px; opacity: .8; } .et-deck:not(:empty)::before { content: "🂠 "; }
  .et-table { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-content: center; }
  .et-table .card { width: var(--tw); height: calc(var(--tw) * 1.53); transition: transform .15s, box-shadow .15s; }
  .et-table.many .card { width: calc(var(--tw) * .72); height: calc(var(--tw) * .72 * 1.53); }   /* more cards than two rows hold */
  .et-table .card.can { box-shadow: 0 0 0 2px rgba(34,211,238,.6), 0 3px 10px rgba(0,0,0,.45); cursor: pointer; }
  .et-table .card.pick { transform: translateY(-8px); box-shadow: 0 0 0 3px #22d3ee, 0 0 16px rgba(34,211,238,.8); }
  .et-cap { position: absolute; inset: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; align-content: center; background: rgba(0,0,0,.35); border-radius: 12px; animation: etCap .25s ease both; }
  .et-cap .card { width: var(--tw); height: calc(var(--tw) * 1.53); box-shadow: 0 0 0 2px #fde68a; }
  .et-cap b { flex-basis: 100%; text-align: center; font-size: 28px; font-weight: 900; color: #fde68a; text-shadow: 0 0 18px rgba(253,230,138,.8); letter-spacing: .06em; }
  @keyframes etCap { from { opacity: 0; transform: scale(.9); } }
  .et .bt-msg { grid-row: 4; } .et .bt-me { grid-row: 5; }
  .et .bt-hand .card.sel { transform: translateY(-16px); box-shadow: 0 0 0 3px #22d3ee, 0 0 18px rgba(34,211,238,.8); }
  .et-bar { display: flex; align-items: center; gap: 10px; justify-content: center; min-height: 40px; flex-wrap: wrap; }
  .et-sum { font-family: var(--font-num, monospace); font-size: 15px; }
  .et-go { font: inherit; font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 10px; border: 0; background: #22d3ee; color: #05060f; cursor: pointer; }
  .et-go:disabled { background: rgba(255,255,255,.2); color: #fff; cursor: default; }
  .et-rows { width: 100%; border-collapse: collapse; font-size: 14px; } .et-rows td, .et-rows th { padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.15); text-align: center; } .et-rows td:first-child { text-align: left; }
  .et-rows tr.tot td { font-weight: 900; font-size: 17px; border-bottom: 0; }
  .pa { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 8px; user-select: none; -webkit-user-select: none; }
  .pa-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pa-p { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 13px; min-width: 0; border: 2px solid transparent; }
  .pa-p i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,.3); }
  .pa-p span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .pa-p b { font-family: var(--font-num, monospace); font-size: 12px; opacity: .85; }
  .pa-p.on { border-color: var(--c); background: rgba(255,255,255,.12); }
  .pa-board { display: flex; align-items: center; justify-content: center; min-height: 0; }
  .pa-svg { width: 100%; height: 100%; max-width: 100%; max-height: 100%; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); }
  .pa-pawn { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .pa-pawn.mine { cursor: pointer; }
  /* owner: your pawns are clearly marked when it is your move (all of them: no hint about which can move) */
  .pa-ring { opacity: 0; transition: opacity .2s; } .pa-pawn.mine .pa-ring { opacity: 1; animation: paRing 1s ease-in-out infinite; }
  @keyframes paRing { 50% { opacity: .35; } }
  .pa-msg.err { color: #ffb4b4; }
  @keyframes paPulse { 50% { opacity: .55; } }
  .pa-ctl { display: flex; align-items: center; gap: 14px; justify-content: center; min-height: 64px; }
  .pa-msg { font-weight: 700; font-size: 15px; color: #fde68a; width: 60%; text-wrap: balance; }   /* fixed width: the die does not jump when the message changes */
  /* The die: a 3D cube (faces placed by parchis-ui.js) with its shadow on the table; thrown with bounces when it is rolled. */
  .pa-die { --s: 58px; --h: 29px; position: relative; width: var(--s); height: var(--s); padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; perspective: 260px; overflow: visible; }
  .pa-die:disabled { cursor: default; }
  .pa-hop, .pa-cube { position: absolute; inset: 0; transform-style: preserve-3d; }
  .pa-face { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 -5px 10px rgba(0,0,0,.12); }
  .pa-face svg { width: 100%; height: 100%; display: block; }
  .pa-shadow { position: absolute; left: 8%; right: 8%; bottom: -9px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(4px); opacity: .55; }
  .pa-die:disabled .pa-face { filter: brightness(.88); }   /* on the faces: a filter on the cube would flatten the 3D */
  .pa-die.go { border-radius: 14px; box-shadow: 0 0 0 3px #fde68a, 0 0 22px rgba(253,230,138,.7); animation: paDie 1s ease-in-out infinite; }
  .pa-die.rolling .pa-cube { animation: paTumble .45s linear infinite; } .pa-die.rolling .pa-hop { animation: paBob .45s ease-in-out infinite alternate; }
  @keyframes paDie { 50% { transform: scale(1.07); } }
  @keyframes paTumble { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(720deg); } }
  @keyframes paBob { from { transform: translateY(0); } to { transform: translateY(-18px); } }
  @media (prefers-reduced-motion: reduce) { .pa-pawn.mine .pa-ring, .pa-die.go, .pa-die.rolling .pa-cube, .pa-die.rolling .pa-hop { animation: none; } }
  .wtb-game[data-game="tute"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  .ct { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); --cw: min(100px, 22vw, calc((100cqh - 216px) / 3.06)); --ch: calc(var(--cw) * 1.53); --sm: min(64px, 15vw); user-select: none; -webkit-user-select: none; }
  .ct .card { width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .1); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
  .ct .card svg { width: 100%; height: 100%; display: block; }
  .ct .bt-pl[data-r="2"] { grid-row: 1; }
  .ct-sc { font-family: var(--font-num, monospace); font-size: 12px; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.12); }
  .ct-mid { grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 26px; }
  .ct-deck, .ct-pile { position: relative; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .1); outline: 2px dashed rgba(255,255,255,.18); outline-offset: 3px; }
  .ct-deck .card, .ct-pile .card { position: absolute; inset: 0; }
  .ct.many .ct-mid { gap: 14px; } .ct.many .ct-deck, .ct.many .ct-pile { width: calc(var(--cw) * .8); height: calc(var(--ch) * .8); } .ct.many .ct-deck .card, .ct.many .ct-pile .card { width: 100%; height: 100%; }   /* 3-4 players: clear of the side players */
  .ct-dn { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; text-align: center; font-family: var(--font-num, monospace); font-size: 13px; }
  .ct-deck.can, .ct-pile.can { cursor: pointer; }
  .ct .bt-msg { grid-row: 3; } .ct .bt-me { grid-row: 4; }
  .ct-hand { display: flex; justify-content: center; align-items: flex-end; gap: 8px; min-height: calc(var(--ch) + 8px); padding-top: 8px; flex-wrap: nowrap; }
  .ct-grp { display: flex; padding: 3px; border-radius: 10px; }
  .ct-grp .card + .card { margin-left: calc(var(--cw) * -.45); }
  .ct-grp.meld { background: rgba(134,239,172,.22); box-shadow: inset 0 0 0 2px rgba(134,239,172,.6); }
  .ct-hand .card { transition: transform .15s; }
  .ct-hand .card.new { transform: translateY(-8px); }
  .ct-hand .card[role="button"] { cursor: pointer; }
  .ct-hand .card[role="button"]:hover { transform: translateY(-10px); }
  .ct-hand .card.no { animation: btNo .35s ease-in-out; }
  .ct-hand .card.closing { box-shadow: 0 0 0 3px #f472b6, 0 0 16px rgba(244,114,182,.8); }
  .ct-bar { display: flex; align-items: center; gap: 12px; justify-content: center; min-height: 38px; flex-wrap: wrap; }
  .ct-loose { font-family: var(--font-num, monospace); font-size: 14px; opacity: .9; }
  .ct-close { font: inherit; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 0; background: #f472b6; color: #2a0418; cursor: pointer; }
  .ct-close.on { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
  .ct-rev { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; gap: 8px; justify-content: center; padding: 12px; background: rgba(5,10,25,.86); border-radius: 14px; animation: etCap .25s ease both; }
  .ct-rev h3 { margin: 0 0 4px; text-align: center; color: #fde68a; font-size: 17px; }
  .ct-row { display: grid; grid-template-columns: minmax(0, 72px) minmax(0, 1fr) 40px; align-items: center; gap: 6px; padding: 4px; border-radius: 10px; }
  .ct-row.closer { background: rgba(253,230,138,.12); }
  .ct-row b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ct-rc { display: flex; flex-wrap: wrap; gap: 4px; --cw: min(30px, 7vw); }
  .ct-rc .card { width: var(--cw); height: calc(var(--cw) * 1.53); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .ct-rc .ct-grp { padding: 2px; } .ct-rc .ct-grp .card + .card { margin-left: calc(var(--cw) * -.3); }
  .ct-pts { font-family: var(--font-num, monospace); font-weight: 800; text-align: right; }
  .ct-endsub { margin: 0; opacity: .85; }
  .wtb-game[data-game="chinchon"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  .pt { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); --cw: min(100px, 23vw, calc((100cqh - 340px) / 1.4)); --ch: calc(var(--cw) * 1.4); --sm: min(66px, 17vw, 10cqh); user-select: none; -webkit-user-select: none; }
  .pt .card { width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .1); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
  .pt .card svg { width: 100%; height: 100%; display: block; }
  .pt .bt-pl[data-r="2"] { grid-row: 1; }
  .pt-seat { flex-direction: column; gap: 3px; }
  .pt .pt-seat[data-r="2"], .pt .pt-seat[data-r="0"] { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }   /* top player and you: one line, so the board has room */
  .pt-seat.fold { opacity: .5; } .pt-seat.gone { opacity: .3; }
  .pt-top { display: flex; align-items: center; gap: 6px; max-width: 100%; }
  .pt-d { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #111; font-size: 11px; font-weight: 900; }
  .pt-chips { font-family: var(--font-num, monospace); font-size: 13px; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.12); white-space: nowrap; }
  .pt-cards { display: flex; gap: 3px; } .pt-cards .card { width: calc(var(--sm) * .62); height: calc(var(--sm) * .87); box-shadow: 0 1px 4px rgba(0,0,0,.5); }
  .pt-bet { font-family: var(--font-num, monospace); font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fde68a; color: #3a2a00; }
  .pt-bet::before { content: "● "; color: #b45309; }
  .pt-mid { grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 18%; }
  .pt.n4 .pt-mid { padding: 0 22%; }
  .pt-info { font-size: 12px; opacity: .8; text-align: center; }
  .pt-board { display: flex; gap: 4px; justify-content: center; }
  .pt-board .card, .pt-slot { width: var(--sm); height: calc(var(--sm) * 1.4); border-radius: calc(var(--sm) * .1); }
  .pt-slot { border: 2px dashed rgba(255,255,255,.18); box-sizing: border-box; }
  .pt-pot { font-family: var(--font-num, monospace); font-weight: 800; font-size: 16px; color: #fde68a; min-height: 20px; }
  .pt .bt-msg { grid-row: 3; } .pt .bt-me { grid-row: 4; }
  .pt-hole { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: var(--ch); }
  .pt-hn { font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(134,239,172,.2); color: #bbf7d0; }
  .pt-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 44px; }
  .pt-raise { display: flex; gap: 6px; justify-content: center; flex-basis: 100%; flex-wrap: wrap; }
  .pt-btn { font: inherit; font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 10px; border: 0; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; }
  .pt-btn.pt-fold { background: rgba(255,107,122,.3); } .pt-btn.pt-call, .pt-btn.pt-check { background: #22d3ee; color: #05060f; }
  .pt-btn.pt-up { display: flex; flex-direction: column; align-items: center; padding: 5px 10px; background: #fde68a; color: #3a2a00; line-height: 1.1; }
  .pt-btn.pt-up small { font-size: 10px; font-weight: 700; } .pt-btn.pt-up span { font-family: var(--font-num, monospace); }
  .pt-sum { position: absolute; left: 6%; right: 6%; top: 50%; transform: translateY(-50%); z-index: 30; padding: 10px 12px; border-radius: 12px; background: rgba(5,10,25,.82); text-align: center; animation: etCap .25s ease both; pointer-events: none; }
  .pt-sum p { margin: 3px 0; font-weight: 800; color: #fde68a; }
  .wtb-game[data-game="poker"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  .pt .bt-pl[data-r="1"], .pt .bt-pl[data-r="3"] { top: 16%; } .pt.n4 .pt-mid, .pt-mid { padding: 0 4%; } .pt-mid { justify-content: safe flex-end; padding-bottom: 6px; }
  /* 3-4 players: every rival in one row at the top (left, middle, right), so the board and your cards have room */
  .pt.many .bt-pl[data-r="1"], .pt.many .bt-pl[data-r="3"], .pt.many .pt-seat[data-r="2"] { position: static; grid-row: 1; grid-column: 1; max-width: 33%; flex-direction: column; flex-wrap: nowrap; gap: 3px; padding: 2px; }
  .pt.many .bt-pl[data-r="3"] { justify-self: start; } .pt.many .bt-pl[data-r="1"] { justify-self: end; } .pt.many .pt-seat[data-r="2"] { justify-self: center; }
  .pt.many { --cw: min(100px, 23vw, calc((100cqh - 426px) / 1.4)); }
  /* Omaha (4 cards) and 5 Card Draw (5 cards): smaller cards in your hand; in the draw, the cards picked to change rise */
  .pt.k4 .pt-hole { gap: 5px; } .pt.k4 .pt-hole .card { width: calc(var(--cw) * .8); height: calc(var(--ch) * .8); }
  .pt.k5 .pt-hole { gap: 4px; } .pt.k5 .pt-hole .card { width: min(calc(var(--cw) * .8), 18vw); height: calc(min(calc(var(--cw) * .8), 18vw) * 1.4); transition: transform .12s; }
  .pt.k5 .pt-hole .card.sel { transform: translateY(-12px); box-shadow: 0 0 0 3px #fde68a, 0 4px 10px rgba(0,0,0,.5); }
  .pt.k5 .pt-hole { padding-top: 12px; }
  .pt.k4 .pt-cards .card, .pt.k5 .pt-cards .card { width: calc(var(--sm) * .4); height: calc(var(--sm) * .56); }
  .pt.k4 .pt-cards .card + .card, .pt.k5 .pt-cards .card + .card { margin-left: calc(var(--sm) * -.2); }
  .wtb-game[data-game="omaha"], .wtb-game[data-game="five-card-draw"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  /* Siete y media and Blackjack at a table: bank on top, the other players in the middle, you at the bottom */
  .bk { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; user-select: none; -webkit-user-select: none;
    --cw: min(84px, 20vw, calc((100cqh - 300px) / 3.8)); --sw: calc(var(--cw) * .62); }   /* fits the height: bank, a row of players, you */
  .bk.many { --sw: calc(var(--cw) * .52); }
  .bk .card { width: var(--sw); height: calc(var(--sw) * 1.45); border-radius: calc(var(--sw) * .1); box-shadow: 0 2px 6px rgba(0,0,0,.45); flex: none; }
  .bk .card svg, .bk .card img { width: 100%; height: 100%; display: block; }
  .bk-top { display: flex; justify-content: center; font-size: 12px; opacity: .85; min-height: 16px; }
  .bk-bank { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .bk-bank .card { width: var(--cw); height: calc(var(--cw) * 1.45); border-radius: calc(var(--cw) * .1); }
  .bk-who { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
  .bk-who b, .bk-tot { font-family: var(--font-num, monospace); font-size: 18px; letter-spacing: 0; color: #fde68a; margin-left: 4px; }
  .bk-who b.over, .bk-tot.over { color: #fda4af; }
  .bk-row { display: flex; justify-content: center; min-height: calc(var(--sw) * 1.45); padding-left: calc(var(--sw) * .45); }
  .bk-row .card { margin-left: calc(var(--sw) * -.45); }
  .bk-bank .bk-row { min-height: calc(var(--cw) * 1.45); padding-left: calc(var(--cw) * .5); } .bk-bank .bk-row .card { margin-left: calc(var(--cw) * -.5); }
  .bk-others { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: center; gap: 6px; }
  .bk-o { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; flex: 0 1 50%; }   /* everyone else side by side */
  .bk.many .bk-o .bk-pl { font-size: 12px; gap: 3px; padding: 2px 2px; } .bk.many .bk-o .bt-name { max-width: 6.5em; }
  .bk-pl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 13px; padding: 2px 8px; border-radius: 999px; }
  .bk-pl.on .bt-name { color: #fde68a; text-shadow: 0 0 12px rgba(253,230,138,.8); } .bk-pl.gone { opacity: .45; }
  .bk-pl .bt-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
  .bk-pl .bt-name i { font-style: normal; font-weight: 600; font-size: 11px; opacity: .75; padding: 1px 6px; border: 1px solid currentColor; border-radius: 6px; margin-left: 4px; }
  .bk-chips { font-family: var(--font-num, monospace); font-size: 12px; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.12); white-space: nowrap; }
  .bk-bet { font-family: var(--font-num, monospace); font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #fde68a; color: #3a2a00; } .bk-bet::before { content: "● "; color: #b45309; }
  .bk-hs { display: flex; gap: 10px; justify-content: center; }
  .bk-h { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; border: 2px solid transparent; }
  .bk-h.on { border-color: #fde68a; background: rgba(253,230,138,.08); }
  .bk-h .bk-tot { font-size: 14px; margin: 0; }
  .bk-h.big .card { width: var(--cw); height: calc(var(--cw) * 1.45); border-radius: calc(var(--cw) * .1); }
  .bk-h.big .bk-row { min-height: calc(var(--cw) * 1.45); padding-left: calc(var(--cw) * .5); } .bk-h.big .bk-row .card { margin-left: calc(var(--cw) * -.5); }
  .bk-h.big .bk-tot { font-size: 18px; }
  .bk-res { font-size: 12px; font-weight: 800; text-align: center; } .bk-res.big { font-size: 15px; display: block; margin-top: 2px; }
  .bk-res.up { color: #86efac; } .bk-res.down { color: #fda4af; }
  .bk-msg { text-align: center; min-height: 22px; font-weight: 700; font-size: 15px; color: #fde68a; } .bk-msg.err { color: #ffb4b4; }
  .bk-me { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; }
  .bk-me[hidden] { display: none; }
  .bk-ctl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 44px; width: 100%; }
  .bk-act { font: inherit; font-weight: 800; font-size: 15px; padding: 10px 14px; border-radius: 10px; border: 0; cursor: pointer; background: #fff; color: #0b1424; flex: 1 1 22%; max-width: 160px; }
  .bk-act.alt { background: #fde68a; }
  .bk-chipset { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .bk-chip { width: 54px; height: 54px; border-radius: 50%; border: 4px dashed rgba(255,255,255,.85); font: 700 16px var(--font-num, monospace); color: #fff; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.35), inset 0 0 0 4px rgba(0,0,0,.2); }
  .bk-chip.c5 { background: #dc2626; } .bk-chip.c10 { background: #2563eb; } .bk-chip.c25 { background: #16a34a; } .bk-chip.c20 { background: #7c3aed; } .bk-chip.c50 { background: #111827; } .bk-chip.c100 { background: #b45309; }
  .bk-end { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(5,10,25,.78); border-radius: 14px; }
  .bk-end[hidden] { display: none; }
  .bk-endbox { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 20px; width: min(320px, 88%); display: flex; flex-direction: column; gap: 10px; text-align: center; }
  .bk-endbox h2 { margin: 0; }
  .bk-rank { margin: 0; padding-left: 1.4em; text-align: left; font-family: var(--font-num, monospace); font-size: 15px; } .bk-rank li.me { color: #fde68a; font-weight: 800; }
  .bk-acts { display: flex; flex-direction: column; gap: 10px; }
  .wtb-game[data-game="siete-y-media"], .wtb-game[data-game="blackjack"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  .tt-grid { width: min(100cqw, 100cqh, 420px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; padding: 3%; background: rgba(255,255,255,.08); border-radius: 18px; }
  .tt-c { background: rgba(5,10,30,.55); border-radius: 12%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
  .tt-c svg { width: 78%; height: 78%; animation: ttIn .22s cubic-bezier(.2,.8,.2,1); }
  .tt-c.last { box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
  .tt-c.win { background: rgba(253,230,138,.28); }
  @keyframes ttIn { from { transform: scale(.4); opacity: 0; } }
  .c4-frame { width: min(100cqw, calc(100cqh * 7 / 6.3), 520px); aspect-ratio: 7 / 6.3; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: repeat(7, 1fr); gap: 1.4%; padding: 2%; background: linear-gradient(180deg, #2563eb, #1d4ed8); border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.25); }
  .c4-col { display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); justify-items: center; align-items: center; row-gap: 1.2cqh; padding: 2% 0; border-radius: 10px; cursor: pointer; min-height: 0; }
  .c4-col.on:hover { background: rgba(255,255,255,.1); }
  .c4-h { width: 88%; aspect-ratio: 1; max-height: 100%; border-radius: 50%; background: #0b1440; box-shadow: inset 0 3px 6px rgba(0,0,0,.6); position: relative; overflow: visible; }
  .c4-h i { position: absolute; inset: 4%; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.22), inset 0 3px 0 rgba(255,255,255,.35); }
  .c4-h i.drop { animation: c4Drop calc(.08s * var(--rows) + .12s) cubic-bezier(.45,0,.9,.6) both; }
  .c4-h.last i { outline: 2px solid rgba(255,255,255,.7); outline-offset: 1px; }
  .c4-h.win i { box-shadow: 0 0 0 3px #fff, 0 0 14px #fff; }
  @keyframes c4Drop { from { transform: translateY(calc(-118% * var(--rows))); } 80% { transform: translateY(6%); } }
  .ck-board { width: min(100cqw, 100cqh, 560px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border: 6px solid #5b3a1e; border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.5); }
  .ck-sq { background: #ecd9b4; position: relative; display: flex; align-items: center; justify-content: center; }
  .ck-sq.dark { background: #8b5a2b; cursor: pointer; }
  .ck-sq svg { width: 84%; height: 84%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
  .ck-sq.sel { box-shadow: inset 0 0 0 3px #fde68a; }
  .ck-sq.from { background: #a87a45; } .ck-sq.to { background: #b98a4f; }
  .ck-sq.gone::after { content: ""; position: absolute; width: 30%; height: 30%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.45); }
  .ch-board { width: min(100cqw, 100cqh, 560px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border: 6px solid #3b2a1a; border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.5); }
  .ch-sq { background: #eedbb5; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .ch-sq.dark { background: #b07d4f; }
  .ch-sq svg { width: 90%; height: 90%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
  .ch-sq.last { box-shadow: inset 0 0 0 100cqw rgba(250,204,21,.28); }
  .ch-sq.sel { box-shadow: inset 0 0 0 3px #22d3ee; }
  .ch-sq.chk { background: radial-gradient(circle, #ef4444 0%, rgba(239,68,68,.4) 55%, transparent 75%); }
  .ch-sq::before { content: attr(data-f); position: absolute; left: 2px; top: 1px; font-size: 9px; font-weight: 700; opacity: .55; color: #3b2a1a; }
  .ch-sq::after { content: attr(data-r); position: absolute; right: 2px; bottom: 0; font-size: 9px; font-weight: 700; opacity: .55; color: #3b2a1a; }
  .ch-promo { position: absolute; z-index: 20; inset: auto 6% 40% 6%; background: rgba(10,10,20,.92); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .ch-promo p { width: 100%; margin: 0; text-align: center; font-weight: 700; }
  .ch-promo button { width: 22%; aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: #eedbb5; padding: 4px; }
  .ch-promo svg { width: 100%; height: 100%; }
  .sb-wrap { width: min(100cqw, calc((100cqh - 62px) / 1.62), 520px); display: flex; flex-direction: column; gap: 4px; align-items: center; }
  .sb-lbl { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; align-self: flex-start; }
  .sb-sea { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 3px; border-radius: 8px; background: #0b3a5c; width: 100%; aspect-ratio: 1; }
  .sb-mine { width: 58%; }
  .sb-c { background: linear-gradient(180deg, #1d6fa5, #155e8f); border-radius: 3px; position: relative; }
  .sb-them .sb-c { cursor: pointer; }
  .sb-c.ship { background: #94a3b8; box-shadow: inset 0 0 0 1px #cbd5e1; }
  .sb-c.water::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: rgba(255,255,255,.55); }
  .sb-c.hit { background: #ef4444; } .sb-c.hit::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 70%; }
  .sb-c.sunk { background: #7f1d1d; box-shadow: inset 0 0 0 1px #fca5a5; }
  .sb-c.last { outline: 2px solid #fde68a; outline-offset: -1px; z-index: 1; }
  .sb-place { display: flex; gap: 8px; width: 100%; margin-top: 6px; } .sb-place .btn { flex: 1 1 0; padding: 12px 6px; font-size: 16px; } .sb-place .sb-go { background: #fde68a; }
  .sb.placing .sb-them, .sb.placing .sb-l1 { display: none; } .sb.placing .sb-mine { width: 100%; }
  .sb.placing .sb-wrap { width: min(100cqw, calc(100cqh - 124px), 520px); }
  .oc .bg-board { flex-direction: column; gap: 10px; }
  .oc-board { position: relative; width: min(100cqw, calc(100cqh - 80px), 560px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); gap: 2px; padding: 4px; background: #14532d; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
  .oc-sq { position: relative; background: #fef3c7; border-radius: 4px; overflow: hidden; color: #422006; }
  .oc-sq:nth-child(odd) { background: #fde68a; }
  .oc-sq b { position: absolute; left: 3px; top: 1px; font-family: var(--font-num, monospace); font-size: clamp(8px, 2.4cqw, 12px); line-height: 1.1; }
  .oc-sq svg { position: absolute; inset: 22% 14% 6%; width: 72%; height: 72%; }
  .oc-sq.k-goose { background: #bae6fd; } .oc-sq.k-death { background: #e2e8f0; } .oc-sq.k-goal { background: #fde047; } .oc-sq.k-well, .oc-sq.k-prison { background: #cbd5e1; }
  .oc-sq.start { background: #86efac; }
  .oc-tok { position: absolute; width: 5.4%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid rgba(0,0,0,.4); box-shadow: 0 3px 5px rgba(0,0,0,.5); transition: left .3s, top .3s; z-index: 2; }
  .oc-tok.on { box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0,0,0,.6); z-index: 3; }
  .oc-ctl { display: flex; align-items: center; justify-content: center; min-height: 66px; }
  .dm .bg-board { flex-direction: column; gap: 8px; justify-content: space-between; }
  .dm-table { flex: 1 1 auto; width: 100%; min-height: 0; display: flex; align-items: center; gap: 4px; background: radial-gradient(circle, #1e6b3f, #14532d); border-radius: 14px; padding: 8px 4px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
  .dm-chain { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 3px; max-height: 100%; overflow: hidden; --tw: clamp(30px, 12.5cqw, 72px); }
  .dm-c { display: inline-flex; width: var(--tw); height: calc(var(--tw) / 2); } .dm-c.dbl { width: calc(var(--tw) / 2); height: var(--tw); }
  .dm-c svg { width: 100%; height: 100%; } .dm-c.last svg rect { stroke: #f59e0b; stroke-width: 7; }
  .dm-empty { opacity: .75; font-size: 14px; text-align: center; }
  .dm-end { width: 30px; align-self: stretch; border-radius: 10px; border: 1px dashed rgba(255,255,255,.3); background: transparent; color: rgba(255,255,255,.5); font-size: 14px; }
  .dm-end.pick { background: #fde68a; color: #3a2a00; border-style: solid; animation: d3Go 1s infinite; }
  .dm-me { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; }
  .dm-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .dm-t { width: clamp(30px, 11cqw, 52px); aspect-ratio: 1 / 2; cursor: pointer; transition: transform .15s; } .dm-t svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
  .dm-t.sel { transform: translateY(-8px); } .dm-t.sel svg rect { stroke: #f59e0b; stroke-width: 7; }
  .dm-acts .btn { padding: 8px 18px; font-size: 15px; }
  .dm-rev { position: absolute; left: 6%; right: 6%; top: 25%; z-index: 30; background: rgba(5,10,25,.9); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
  .dm-rev h3 { margin: 0; } .dm-rev .mt-big { font-family: var(--font-num, monospace); font-size: 20px; }
  .dm.pairs .bg-players { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .wtb-game[data-game="guinote"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  .cq .bg-board { flex-direction: column; gap: 6px; justify-content: space-between; --tw: min(66px, 18cqw, calc((100cqh - 64px) / 8.3)); --cw: calc(var(--tw) * 1.35); }
  .cq .card { border-radius: calc(var(--tw) * .1); box-shadow: 0 2px 6px rgba(0,0,0,.45); overflow: hidden; }
  .cq-rows { width: 100%; display: flex; flex-direction: column; gap: 4px; }
  .cq-row { position: relative; height: calc(var(--tw) * 1.53); border-radius: 8px; background: rgba(0,0,0,.12); }
  .cq-row > * { position: absolute; top: 0; left: calc(var(--k) * (100% - var(--tw)) / 9); width: var(--tw); height: calc(var(--tw) * 1.53); }
  .cq-row .card.last { box-shadow: 0 0 0 3px #f59e0b, 0 2px 6px rgba(0,0,0,.45); z-index: 2; }
  .cq-slot { border: 2px dashed rgba(255,255,255,.3); border-radius: calc(var(--tw) * .1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-weight: 800; font-size: calc(var(--tw) * .4); box-sizing: border-box; }
  .cq-me { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; }
  .cq-hand { display: flex; justify-content: center; width: 100%; min-height: calc(var(--cw) * 1.53); }
  .cq-hand .card { flex: none; width: var(--cw); height: calc(var(--cw) * 1.53); cursor: pointer; }
  .cq-acts .btn { padding: 7px 20px; font-size: 15px; }
  .cq .bg-players { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .wtb-game[data-game="cinquillo"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  .lr .bg-board { flex-direction: column; gap: 8px; justify-content: space-between; --cw: min(74px, 17cqw, calc((100cqh - 150px) / 3.4)); --pw: calc(var(--cw) * .8); }
  .lr .card { border-radius: calc(var(--cw) * .1); overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
  .lr-mid { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; }
  .lr-pile { position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1.6); }
  .lr-pile .card { position: absolute; left: 50%; top: 0; width: var(--pw); height: calc(var(--pw) * 1.53); margin-left: calc(var(--pw) * -.5); transform: rotate(calc((var(--i) * 37deg) - (var(--i) * var(--i) * 3deg))) translate(calc(var(--i) * .6px), 0); }
  .lr-n { position: absolute; right: -6px; bottom: -4px; z-index: 20; background: #fde68a; color: #3a2a00; font-family: var(--font-num, monospace); font-size: 15px; padding: 2px 8px; border-radius: 999px; }
  .lr-said { margin: 0; text-align: center; font-size: 14px; font-weight: 700; min-height: 20px; }
  .lr-rev { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(5,10,25,.88); border-radius: 14px; padding: 10px; text-align: center; }
  .lr-rev h3 { margin: 0; font-size: 18px; } .lr-rev p { margin: 0; }
  .lr-rc { display: flex; gap: 6px; } .lr-rc .card { width: var(--cw); height: calc(var(--cw) * 1.53); }
  .lr-me { width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .lr-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .lr-nums button { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 2px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.2); color: #fff; }
  .lr-nums button.on { background: #fde68a; color: #3a2a00; border-color: #fde68a; }
  .lr-hand { display: flex; justify-content: center; width: 100%; min-height: calc(var(--cw) * 1.53 + 12px); padding-top: 12px; box-sizing: border-box; }
  .lr-hand .card { flex: none; width: var(--cw); height: calc(var(--cw) * 1.53); cursor: pointer; transition: transform .12s; }
  .lr-hand .card.sel { transform: translateY(-12px); box-shadow: 0 0 0 3px #fde68a, 0 4px 10px rgba(0,0,0,.5); }
  .lr-acts { display: flex; gap: 8px; } .lr-acts .btn { padding: 8px 18px; font-size: 15px; } .lr-call { background: #f43f5e; color: #fff; }
  .lr .bg-players { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .wtb-game[data-game="liar"] { background: radial-gradient(130% 90% at 50% 40%, #6b2141 0%, #4c1730 55%, #2a0b1a 100%); }
  .ms .bg-board { flex-direction: column; gap: 8px; justify-content: space-between; --cw: min(84px, 20cqw, calc((100cqh - 230px) / 1.53)); }
  .ms .card { border-radius: calc(var(--cw) * .1); overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
  .ms-score { display: flex; justify-content: space-between; align-items: center; width: 100%; font-weight: 800; }
  .ms-score .us { color: #7dd3fc; } .ms-score .them { color: #fda4af; } .ms-to { font-size: 12px; opacity: .7; }
  .ms-lances { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .ms-l { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border-radius: 10px; background: rgba(0,0,0,.18); border: 2px solid transparent; font-size: 12px; text-align: center; min-height: 40px; }
  .ms-l b { font-size: 13px; } .ms-l span { opacity: .9; } .ms-l.on { border-color: #fde68a; background: rgba(253,230,138,.12); }
  .ms-me { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; }
  .ms-hand { display: flex; gap: 6px; justify-content: center; padding-top: 12px; }
  .ms-hand .card { width: var(--cw); height: calc(var(--cw) * 1.53); transition: transform .12s; }
  .ms-hand .card.sel { transform: translateY(-12px); box-shadow: 0 0 0 3px #fde68a, 0 4px 10px rgba(0,0,0,.5); }
  .ms-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; min-height: 40px; }
  .ms-acts .btn { padding: 8px 14px; font-size: 14px; } .ms-acts .ms-ord { background: #f43f5e; color: #fff; } .ms-acts .ms-fold, .ms-acts .ms-pass { background: rgba(255,255,255,.16); color: #fff; }
  .ms-amt { display: flex; align-items: center; gap: 6px; } .ms-amt button { font: inherit; font-weight: 800; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; } .ms-amt b { font-family: var(--font-num, monospace); font-size: 18px; min-width: 22px; text-align: center; }
  .ms-rev { position: absolute; inset: 0; z-index: 30; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; align-items: center; background: rgba(5,10,25,.92); border-radius: 14px; padding: 10px; text-align: center; }
  .ms-rev h3 { margin: 0; } .ms-hands { display: flex; flex-direction: column; gap: 4px; width: 100%; }
  .ms-hr { display: flex; align-items: center; gap: 6px; } .ms-hr span { flex: 0 0 64px; font-size: 12px; font-weight: 700; text-align: right; color: #fda4af; } .ms-hr.us span { color: #7dd3fc; }
  .ms-hr div { display: flex; gap: 3px; } .ms-hr .card { width: calc(var(--cw) * .45); height: calc(var(--cw) * .69); }
  .ms-rev table { border-collapse: collapse; font-size: 13px; } .ms-rev td { padding: 2px 8px; } .ms-tot { margin: 0; font-weight: 800; }
  .ms .bg-players { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .wtb-game[data-game="mus"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
  .ms-acts .btn { width: auto; flex: 0 0 auto; }
  .cu .bg-board { flex-direction: column; gap: 6px; justify-content: space-between; --cw: min(70px, 17cqw, calc((100cqh - 150px) / 3.3)); }
  .cu .card { border-radius: calc(var(--cw) * .1); overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
  .cu-info { font-size: 12px; opacity: .9; text-align: center; min-height: 16px; }
  .cu-trick { flex: 1 1 auto; min-height: 0; display: flex; gap: 6px; align-items: center; justify-content: center; }
  .cu-tc { display: flex; flex-direction: column; align-items: center; gap: 3px; } .cu-tc .card { width: var(--cw); height: calc(var(--cw) * 1.53); }
  .cu-tc span { font-size: 11px; opacity: .85; max-width: var(--cw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cu-tc.win .card { box-shadow: 0 0 0 3px #fde68a, 0 2px 6px rgba(0,0,0,.45); }
  .cu-me { width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .cu-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .cu-acts .btn { width: auto; flex: 0 0 auto; padding: 8px 14px; font-size: 14px; } .cu-acts .btn.ghost { background: rgba(255,255,255,.16); color: #fff; }
  .cu-hand { display: flex; justify-content: center; width: 100%; }
  .cu-hand .card { flex: none; width: var(--cw); height: calc(var(--cw) * 1.53); cursor: pointer; } .cu-hand .card.tr { box-shadow: 0 0 0 2px rgba(253,230,138,.55), 0 2px 6px rgba(0,0,0,.45); }
  .cu-rev { position: absolute; inset: 8% 4%; z-index: 30; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; background: rgba(5,10,25,.92); border-radius: 14px; padding: 12px; text-align: center; }
  .cu-rev h3 { margin: 0; } .cu-why { margin: 0; font-size: 13px; } .cu-rev td { padding: 2px 10px; font-family: var(--font-num, monospace); } .cu-rev td:first-child { font-family: inherit; text-align: left; }
  .cu .bg-players { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .wtb-game[data-game="cuatrola"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
.wtb { --line: rgba(148,163,255,.22); --ink: #e8eaff; --muted: #9aa0c8; --acc: #22d3ee; color: var(--ink); display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 0 auto; }
.wtb h2 { font-size: 1.25rem; margin: 0 0 10px; } .wtb h3 { font-size: 1rem; margin: 0 0 8px; }
.wtb-card { background: linear-gradient(180deg, rgba(22,25,54,.85), rgba(9,10,24,.9)); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.wtb-seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .wtb-seg > span { color: var(--muted); font-size: .85rem; min-width: 100%; }
.wtb-seg button { font: inherit; font-weight: 700; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.wtb-seg button.on { background: var(--acc); color: #05060f; border-color: var(--acc); }
.wtb-check { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); }
.wtb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wtb-btn { font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 12px 18px; background: var(--acc); color: #05060f; cursor: pointer; flex: 1 1 auto; }
.wtb-btn.alt { background: #fde68a; color: #3a2a00; } .wtb-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.wtb-btn.sm { padding: 8px 14px; font-size: .9rem; flex: 0 0 auto; } .wtb-btn.xs { padding: 4px 10px; font-size: .8rem; flex: 0 0 auto; margin-left: auto; }
.wtb-in { font: inherit; font-size: 1rem; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--ink); flex: 1 1 140px; min-width: 0; }
.wtb-note { color: var(--muted); font-size: .9rem; margin: 0; }
.wtb-list { display: flex; flex-direction: column; gap: 8px; }
.wtb-item { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.wtb-nm { display: block; } .wtb-sub { display: block; color: var(--muted); font-size: .85rem; }
.wtb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wtb-head > .wtb-btn { flex: 0 0 auto; }
.wtb-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; font-size: 1.3rem; }
.wtb-code { font-family: ui-monospace, Menlo, monospace; font-size: .95rem; letter-spacing: .15em; color: var(--muted); }
.wtb-rated { font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: rgba(250, 204, 21, .14); color: #facc15; white-space: nowrap; }
.wtb-elo { margin: 0 0 .5rem; font-weight: 800; font-size: 1.05rem; }
.wtb-elo.up { color: #4ade80; } .wtb-elo.down { color: #f87171; }
.wtb-invite { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.wtb-big { font-family: ui-monospace, Menlo, monospace; font-size: 2.2rem; letter-spacing: .25em; color: var(--acc); }
.wtb-qr { width: 150px; background: #fff; border-radius: 10px; padding: 6px; } .wtb-qr svg { display: block; width: 100%; height: auto; }
.wtb-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wtb-seat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.wtb-seat.open { opacity: .6; border: 1px dashed var(--line); background: transparent; }
.wtb-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: .85rem; }
.wtb-team { font-size: .75rem; font-weight: 800; padding: 1px 7px; border-radius: 6px; } .wtb-team.t0 { background: #86efac; color: #052e16; } .wtb-team.t1 { background: #fda4af; color: #4c0519; }
.wtb-tag { font-style: normal; font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.wtb-game { position: relative; container-type: size; height: min(720px, calc(100svh - 150px)); min-height: 520px; border-radius: 18px; overflow: hidden; background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); box-shadow: inset 0 0 0 1px var(--line); }
.wtb-gi { position: absolute; inset: 10px; }
.wtb-away { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(253,230,138,.12); color: #fde68a; }
.wtb-chat { background: rgba(9,10,24,.85); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; }
.wtb-msgs { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: .92rem; }
.wtb-msg { display: flex; gap: 4px; align-items: baseline; } .wtb-msg b { color: var(--acc); white-space: nowrap; }
.wtb-rep { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; opacity: .5; } .wtb-rep:hover { opacity: 1; }
.wtb-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; background: rgba(5,6,15,.95); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(148,163,255,.3); font-size: .95rem; }
.wtb .bt { --font-num: ui-monospace, Menlo, monospace; color: #fff; }
.wtb .bt .btn { width: 100%; }
@media (max-width: 600px) { .wtb-game { height: calc(100svh - 120px); min-height: 480px; border-radius: 14px; } .wtb-gi { inset: 6px; } }
.wtb [hidden] { display: none !important; }
.wtb-game > .wtb-gi { position: absolute; width: auto; height: auto; }   /* every game view fills the felt inside its margin (their own rules say 100%) */
.wtb-game[data-game="escoba"] { background: radial-gradient(130% 90% at 50% 40%, #237a43 0%, #18603a 55%, #0e4027 100%); }
.wtb-game[data-game="parchis"] { background: radial-gradient(130% 90% at 50% 40%, #b98a55 0%, #94683c 60%, #6b4826 100%); }
.wtb-round { margin-top: 14px; } .wtb-round h3 { margin: 0 0 8px; font-size: 15px; opacity: .85; }
.wtb-champ { font-size: 20px; font-weight: 900; text-align: center; padding: 14px; border-radius: 14px; background: rgba(253,230,138,.14); color: #fde68a; margin-bottom: 12px; }
.wtb-champ::before { content: "🏆 "; }
.wtb-credit { font-size: 12px; opacity: .7; margin: 8px 4px 16px; }
