/* ================= Tarbieah table v2 (approved 2026-10-16 · docs/design/table-v2.png) =================
   One look for every game: a gold metal frame around the felt (default burgundy, store skins and uploaded images
   still apply through --f1..3 / --img), the gold ornament in the middle, large-index cards, avatars with a gold
   turn ring that empties (with a spark at its end) and a bottom bar with my avatar, chat / gift and the actions. */
:root{--ornament:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23F2C14E' stroke-width='1.3'%3E%3Cg stroke-opacity='.34'%3E%3Crect x='45' y='45' width='110' height='110' transform='rotate%2845 100 100%29'/%3E%3Crect x='45' y='45' width='110' height='110'/%3E%3C/g%3E%3Cg stroke-opacity='.2'%3E%3Crect x='62' y='62' width='76' height='76' transform='rotate%2845 100 100%29'/%3E%3Crect x='62' y='62' width='76' height='76'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='94' stroke-opacity='.16'/%3E%3Ccircle cx='100' cy='100' r='86' stroke-opacity='.12' stroke-dasharray='2 5'/%3E%3Cpath d='M100 6v20M100 174v20M6 100h20M174 100h20' stroke-opacity='.26'/%3E%3C/g%3E%3Cg fill='%23F2C14E' fill-opacity='.13' font-family='DejaVu Sans,sans-serif' font-size='20' text-anchor='middle'%3E%3Ctext x='100' y='40'%3E%E2%99%A0%3C/text%3E%3Ctext x='164' y='107'%3E%E2%99%A5%3C/text%3E%3Ctext x='100' y='175'%3E%E2%99%A6%3C/text%3E%3Ctext x='36' y='107'%3E%E2%99%A3%3C/text%3E%3C/g%3E%3C/svg%3E");
  --bezel:linear-gradient(145deg,#FFF0B8 0%,#E2A62C 18%,#7A520C 38%,#D9A43A 55%,#FCE6A0 70%,#9B6B12 88%,#E7B54A 100%)}

/* ---- the framed table ---- */
.felt,.tbl2{--f1:#6E1A2C;--f2:#3D0B17;--f3:#1C0409;border:9px solid transparent;border-radius:30px;
  background:radial-gradient(80% 60% at 50% 40%,rgba(255,255,255,.08),rgba(255,255,255,0) 70%) padding-box,
    var(--img,none) center/cover padding-box,var(--ornament) center/min(76%,290px) no-repeat padding-box,
    radial-gradient(90% 75% at 50% 45%,var(--f1) 0%,var(--f2) 58%,var(--f3) 100%) padding-box,var(--bezel) border-box;
  box-shadow:0 0 0 1px #2A1C02,0 0 0 4px rgba(0,0,0,.55),0 18px 40px rgba(0,0,0,.75),inset 0 0 0 1px rgba(0,0,0,.6),inset 0 0 46px rgba(0,0,0,.72)}
.felt{margin:40px 30px 6px;max-height:440px}
.felt:before{inset:6px;border-radius:22px;border-color:rgba(242,193,78,.18)}
.felt:after{display:none}
/* the felt must not be scaled by the old desktop / landscape pill shapes */
#app.land .felt{border-radius:30px}
@media (min-width:900px){.felt{border-radius:34px;margin:48px 70px 0}}

/* ---- cards: big corner index + big pip; J Q K a gold court plate; back: black + gold lattice + «ت» ---- */
.pc{font:700 20px/1 'Poppins',sans-serif;letter-spacing:-.05em;padding:4px 0 0 5px}
.pc b{font-size:.8em;margin:1px 0 0 1px}
.pc .pip{right:6%;bottom:0;font-size:2.2em}
.pc .pip.face{right:7%;bottom:7%;width:46%;height:38%;border-radius:4px;display:none;align-items:center;justify-content:center;gap:1px;
  background:linear-gradient(180deg,#FFF3C4,#F7CB5A 60%,#E2A62C);border:1px solid #B9800F;font:700 12px/1 'Poppins',sans-serif;letter-spacing:-.04em;text-shadow:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  min-width:46%;width:auto;max-width:80%;padding:0 2px;overflow:hidden;white-space:nowrap}
.fan .pc .pip.face,.jk-hand .pc .pip.face{font-size:13px}
.pc .pip.face em{font:400 .9em/1 'DejaVu Sans',sans-serif;font-style:normal}
.felt-wrap .pc .pip.face,.fan-wrap .pc .pip.face,.last .pc .pip.face,.mfx .pc .pip.face,.pipped .pc .pip.face,.pc.pipped .pip.face{display:flex}
.fan .pc{width:64px;height:92px;font-size:23px}
.pc.bk:after{content:"ت";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:700 15px/1 'IBM Plex Sans Arabic',sans-serif;color:#F7CB5A;text-shadow:0 0 6px #000,0 0 2px #000;letter-spacing:0}
/* trick cards: full faces too */
.pc.t{width:58px;height:84px;font-size:21px;align-items:flex-start;justify-content:flex-start;padding:4px 0 0 5px;gap:1px}
.pc.t b{font-size:.8em}
.felt-wrap .pc.t .pip{display:block}.felt-wrap .pc.t .pip.face{display:flex}
.pc.t.t0{left:calc(50% - 29px)}.pc.t.t2{left:calc(50% - 29px)}

/* ---- players: gold turn ring with a spark, name plate, cards-left tile ---- */
.seat .av{border:2px solid #0B0B0D;box-shadow:0 4px 12px rgba(0,0,0,.6)}
.ring{position:relative;padding:3px;background:conic-gradient(#FFF0B8 0deg,#F7CB5A calc(var(--p,1)*360deg),rgba(255,255,255,.1) calc(var(--p,1)*360deg))}
.ring:after{content:"";position:absolute;inset:-4px;border-radius:50%;pointer-events:none;transform:rotate(calc(var(--p,1)*1turn));
  background:radial-gradient(circle at 50% 4px,#FFFBE6 0 2.5px,rgba(247,203,90,.95) 3.5px,rgba(247,203,90,0) 8px)}
.ring.low{background:conic-gradient(#FFB4BC 0deg,#FF4D5E calc(var(--p,1)*360deg),rgba(255,255,255,.1) calc(var(--p,1)*360deg))}
.ring.low:after{background:radial-gradient(circle at 50% 4px,#FFF0F2 0 2.5px,rgba(255,77,94,.95) 3.5px,rgba(255,77,94,0) 8px)}
.turn .ring{box-shadow:0 0 0 1px rgba(0,0,0,.6),0 0 18px 2px rgba(247,203,90,.65)}
.turn .ring.low{box-shadow:0 0 0 1px rgba(0,0,0,.6),0 0 18px 2px rgba(255,77,94,.6)}
.nm{background:#0B0B0D;border:1px solid rgba(242,193,78,.4);border-radius:12px;padding:2px 10px;font-size:11.5px}
.cb{top:auto;bottom:-2px;left:-10px;width:auto;min-width:22px;height:22px;padding:0 4px;border-radius:7px;transform:none;background:linear-gradient(180deg,#FFFFFF,#ECE6D8);
  border:1px solid #B9800F;color:#141418;font:700 11px/1 'Poppins';box-shadow:0 2px 6px rgba(0,0,0,.6)}

/* ---- bottom bar: my avatar · chat / gift · the game's actions ---- */
.mebar{display:flex;align-items:center;gap:10px;flex:none;margin-top:auto;position:relative;z-index:6;padding:9px 12px 10px;
  background:linear-gradient(180deg,#1B1B20,#0E0E11);border-top:1px solid rgba(242,193,78,.24);box-shadow:0 -12px 26px rgba(0,0,0,.55)}
.mebar:before{content:"";position:absolute;left:18%;right:18%;top:-1px;height:1px;background:linear-gradient(90deg,rgba(242,193,78,0),rgba(242,193,78,.75),rgba(242,193,78,0))}
.mebar.my:before{left:4%;right:4%}
.mebar .bb-seat,.mebar>.seat{position:static;flex:none;gap:3px}
.mebar .bb-seat .av,.mebar>.seat .av{width:54px;height:54px;font-size:20px}
.mebar .seat .nm{font-size:10.5px;padding:1px 8px}
.mebar .seat .chip{font-size:10px;padding:1px 6px}
.bb-ic{display:flex;flex-direction:column;gap:6px;flex:none}
.bb-ic .ib,.mebar .bb-last{width:36px;height:36px;border-radius:11px;color:#E9DFC6}
.bb-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;justify-content:center}
.bb-btns{display:flex;gap:6px;align-items:stretch;min-height:44px}
.bb-btns .btn{flex:1;min-width:0;height:44px;border-radius:12px;font-size:15px;font-weight:700;padding:0 6px}
.bb-wait{flex:1;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#0A0A0C;border:1px solid #232328;color:var(--mu);font-size:13px}
.mebar .turnchip{display:inline-flex!important;align-self:center;justify-content:center;height:34px;padding:0 16px;border-radius:17px;font-size:13px;font-weight:700;background:#0A0A0C;border:1px solid #2A2A30;color:var(--mu)}
.mebar .turnchip.y{background:rgba(242,193,78,.12);color:var(--gd);border-color:rgba(242,193,78,.7);box-shadow:0 0 16px rgba(242,193,78,.25)}
.fan-wrap{padding-bottom:16px}
.scr-table .tfoot.mebar{padding-bottom:10px}
@media (max-height:700px){.mebar{padding:6px 10px 7px;gap:8px}.mebar .bb-seat .av,.mebar>.seat .av{width:44px;height:44px}.bb-btns .btn{height:40px}.bb-btns{min-height:40px}}
/* landscape: the games' own bars sit in a narrow column — drop my avatar there (it is on the side) */
#app.land .mebar:not(.tfoot) .bb-seat{display:none}
#app.land .mebar:not(.tfoot){gap:6px;padding:6px 6px 8px}
#app.land .bb-btns .btn{font-size:13px;padding:0 4px;min-width:44px}
/* desktop: chat / gift live in the side column */
@media (min-width:900px){.mebar .bb-ic{display:none}.mebar{border-radius:18px;border:1px solid rgba(242,193,78,.2);margin:10px 0 0}}
/* landscape phone: the bar becomes a compact column at the end side */
#app.land .tfoot.mebar{flex-direction:row;align-items:center;gap:8px;padding:6px 8px;border-radius:16px;border:1px solid rgba(242,193,78,.22);margin:0}
#app.land .tfoot.mebar .bb-mid{display:none}
#app.land .mebar .bb-seat .av{width:40px;height:40px}

/* ===== Hand / Saudi Hand (games/hand.js): framed table with the piles, two rows of big cards, bar with the actions ===== */
.scr-table .hand-wrap{gap:6px;padding:6px 10px 0}
.scr-table .hand-table{flex:1;min-height:150px;padding:8px 8px 6px;border-radius:26px;overflow-y:auto}
.scr-table .hand-mid{position:sticky;bottom:-6px;margin-top:auto;display:flex;justify-content:center;align-items:flex-end;gap:20px;padding:8px 0 2px;direction:ltr}
.scr-table .hand-stock,.scr-table .hand-dpile{width:50px;height:70px}
.scr-table .hand-pl{color:rgba(255,255,255,.6);font-size:10px}
.scr-table .hand-dpile .hand-c{font-size:19px}.scr-table .hand-dpile .hand-c i{font-size:20px}
.scr-table .hand-note{flex:none;min-height:0;font-size:12px}
.scr-table .hand-mine{--hw:min(68px,calc((min(100vw,480px) - 22px) / var(--cols)));grid-template-columns:repeat(var(--cols),var(--hw));gap:0 1px;
  grid-auto-rows:calc(var(--hw) * .9);padding-top:10px;margin:0 auto calc(var(--hw) * .5);direction:ltr}
.scr-table .hand-mine:not(.two){grid-auto-rows:auto;margin-bottom:0}
.scr-table .hand-mine .hand-c{font-size:calc(var(--hw) * .4);padding:3px 0 0 4px;border-radius:calc(var(--hw) * .1)}
.scr-table .hand-mine .hand-c em{display:block;position:absolute;left:6%;top:calc(var(--hw) * .45);font:400 calc(var(--hw) * .3)/1 'DejaVu Sans',sans-serif;font-style:normal}
.scr-table .hand-mine .hand-c i{font-size:calc(var(--hw) * .66);right:5%;bottom:2%}
.scr-table .hand-mine .hand-c.jk em{display:none}
.scr-table .hand-c em{display:none}
.scr-table .hand-c.mi em{display:block;font-style:normal;font-family:'DejaVu Sans',sans-serif;font-size:1em;line-height:1}.scr-table .hand-c.mi:not(.jk) i{display:none}
.scr-table .hand-c.fcd i{display:flex;align-items:center;justify-content:center;gap:1px;width:46%;height:36%;border-radius:4px;background:linear-gradient(180deg,#FFF3C4,#F7CB5A 60%,#E2A62C);
  border:1px solid #B9800F;font:700 .5em/1 'Poppins',sans-serif!important;color:inherit;letter-spacing:-.04em;width:auto!important;min-width:46%;padding:0 2px;white-space:nowrap}
.scr-table .hand-c.fcd i s{text-decoration:none;font:400 .95em/1 'DejaVu Sans',sans-serif}
.scr-table .hand-mine .hand-c.fcd i{right:7%;bottom:6%;font-size:calc(var(--hw) * .26)!important}
.scr-table .hand-dpile .hand-c.fcd i{position:absolute;right:7%;bottom:7%;font-size:11px!important}
.scr-table .hand-c.bk:after{content:"ت";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:700 14px/1 'IBM Plex Sans Arabic',sans-serif;color:#F7CB5A;text-shadow:0 0 6px #000}
.scr-table .hand-c.bk.flip:after{content:""}
.scr-table .hand-ctl.mebar{margin:4px -10px 0;min-height:0}
.scr-table .hand-ctl .hand-bar{min-height:0;gap:6px}
.scr-table .hand-ctl .rum-meter{flex:1;justify-content:space-between;height:30px;border-radius:9px;background:#0A0A0C}
.scr-table .hand-ctl .hand-sort{flex:none}.scr-table .hand-ctl .hand-sort button{height:28px;padding:0 9px;font:700 12px/1 'DejaVu Sans','Poppins',sans-serif}
.scr-table .hand-ctl .bb-btns .btn{height:44px}
.scr-table .hand-ctl .hand-hint{flex:.5!important}
#app.land .hand-wrap{grid-template-areas:"table note" "table mine" "table ctl";grid-template-rows:auto minmax(0,1fr) auto}
#app.land .hand-felt{grid-area:table;margin:30px 34px 8px}
#app.land .hand-note{grid-area:note}

/* ===== Banakil (games/pinochle.js): same frame, piles inside the table, overlapping rows of big cards ===== */
.scr-table .pin-melds{border-radius:26px;padding:8px 8px 6px}
.scr-table .pin-tpiles{position:sticky;bottom:-6px;margin-top:auto;padding-top:6px}
.scr-table .pin-tpiles .pin-piles{min-height:0;justify-content:center}
.scr-table .pin-stock{width:46px;height:64px}
.scr-table .pin-pile{flex:0 1 auto}
.scr-table .pin-note{flex:none}
.scr-table .pin-hand .pin-c{padding:3px 0 0 4px;border-radius:calc(var(--cw) * .1)}
.scr-table .pin-hand .pin-c b{font-size:calc(var(--cw) * .4)}
.scr-table .pin-hand .pin-c em{display:block;position:absolute;left:6%;top:calc(var(--cw) * .45);font:400 calc(var(--cw) * .3)/1 'DejaVu Sans',sans-serif;font-style:normal}
.scr-table .pin-hand .pin-c i{position:absolute;right:5%;bottom:2%;font-size:calc(var(--cw) * .66)}
.scr-table .pin-c em{display:none}
.scr-table .pin-hand .pin-c.jk em{display:none}.scr-table .pin-hand .pin-c.jk i{position:static;font-size:9px}
.scr-table .pin-c.fcd i{display:flex;align-items:center;justify-content:center;gap:1px;width:46%;height:36%;border-radius:4px;background:linear-gradient(180deg,#FFF3C4,#F7CB5A 60%,#E2A62C);
  border:1px solid #B9800F;font:700 .5em/1 'Poppins',sans-serif!important;color:inherit;letter-spacing:-.04em;width:auto!important;min-width:46%;padding:0 2px;white-space:nowrap}
.scr-table .pin-c.fcd i s{text-decoration:none;font:400 .95em/1 'DejaVu Sans',sans-serif}
.scr-table .pin-hand .pin-c.fcd i{right:7%;bottom:6%;font-size:calc(var(--cw) * .26)!important}
.scr-table .pin-pile .pin-c.fcd i,.scr-table .pin-c.sm.fcd i{display:none}
.scr-table .pin-c.bk:after{content:"ت";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:700 13px/1 'IBM Plex Sans Arabic',sans-serif;color:#F7CB5A;text-shadow:0 0 6px #000}
.scr-table .pin-c.bk.flip:after{content:""}
.scr-table .pin-me.mebar{margin:4px -10px 0;min-height:0;padding-bottom:10px}
.scr-table .pin-me .pin-bar{min-height:0;padding:0;gap:6px}
.scr-table .pin-me .rum-meter{flex:1;justify-content:space-between;height:30px;border-radius:9px;background:#0A0A0C}
.scr-table .pin-me .pin-sort{flex:none}.scr-table .pin-me .pin-sort button{height:28px;padding:0 9px;font:700 12px/1 'DejaVu Sans','Poppins',sans-serif}

/* ===== Domino (games/domino.js): green felt in the same gold frame; hand above the bar ===== */
.scr-table .dm-felt.tbl2{--f1:#16725A;--f2:#0B4A3A;--f3:#04231C;border:9px solid transparent;border-radius:30px;
  background:radial-gradient(60% 46% at 50% 44%,rgba(255,255,255,.1),rgba(255,255,255,0) 70%) padding-box,var(--img,none) center/cover padding-box,
    var(--ornament) center/min(70%,280px) no-repeat padding-box,radial-gradient(80% 70% at 50% 42%,var(--f1) 0%,var(--f2) 60%,var(--f3) 100%) padding-box,var(--bezel) border-box;
  box-shadow:0 0 0 1px #2A1C02,0 18px 40px rgba(0,0,0,.75),inset 0 0 44px rgba(0,0,0,.6);margin:8px 10px 4px}
.scr-table .dm-felt.tbl2:before{inset:5px;border-radius:22px;border-color:rgba(242,193,78,.16)}
.scr-table .dm-felt.tbl2:after{display:none}
.scr-table .dm-low{display:flex;flex-direction:column}
.scr-table .dm-me.mebar{min-height:0;padding:9px 12px 10px}
.scr-table .dm-me .btn{max-width:none}
.scr-table .dm-me .dm-say{flex:1;min-width:0}

/* ===== Screw / Uno: actions in the bar ===== */
.scr-table .screw-me.mebar,.scr-table .uno-me.mebar{margin:4px -10px 0;min-height:0;padding-bottom:10px}
.scr-table .screw-ctl,.scr-table .uno-ctl{flex:1}

/* game modules style their own table boxes: the shared frame wins (domino keeps its green, above) */
.scr-table .tbl2{border:9px solid transparent;border-radius:26px;
  background:radial-gradient(80% 60% at 50% 40%,rgba(255,255,255,.08),rgba(255,255,255,0) 70%) padding-box,
    var(--img,none) center/cover padding-box,var(--ornament) center/min(76%,290px) no-repeat padding-box,
    radial-gradient(90% 75% at 50% 45%,var(--f1) 0%,var(--f2) 58%,var(--f3) 100%) padding-box,var(--bezel) border-box;
  box-shadow:0 0 0 1px #2A1C02,0 0 0 4px rgba(0,0,0,.55),0 18px 40px rgba(0,0,0,.75),inset 0 0 0 1px rgba(0,0,0,.6),inset 0 0 46px rgba(0,0,0,.72)}
.scr-table .pin-melds.tbl2,.scr-table .hand-table.tbl2{--f1:#6E1A2C;--f2:#3D0B17;--f3:#1C0409}

/* board games: a slim bar (chat · gift · turn) so the board keeps its room */
.mebar.slim{padding:6px 12px 7px}.mebar.slim .bb-ic{flex-direction:row}
#app.land .felt{border-width:6px}

/* court plate sized by the card itself (container query), fixed size as the fallback */
.pc{container-type:inline-size}
@supports (width:1cqw){.pc .pip.face,.fan .pc .pip.face,.jk-hand .pc .pip.face{font-size:clamp(7px,21cqw,14px)}}
/* narrow phones: the felt gives the bidding box more room */
@media (max-width:360px){.felt{margin-left:22px;margin-right:22px}.center{width:min(240px,80%)}}
/* landscape: compact dialogs on the felt */
#app.land .center{width:min(226px,54%);padding:10px;gap:8px;top:56%}
#app.land .center .bid{height:36px;font-size:14px}
#app.land .center:has(.trix-con){top:auto;bottom:4px;transform:translateX(-50%);width:min(440px,84%);display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px}
#app.land .center:has(.trix-con)>:not(.trix-con){grid-column:1/-1}
#app.land .center .trix-con{height:38px;min-height:0;padding:0 8px;font-size:12px}
#app.land .bb-btns .btn{font-size:12px}

/* ===== step 1 · the approved mockup: top bar, floating score box, bar info + hint ===== */
.tbar2{gap:8px;padding:10px 12px;background:linear-gradient(180deg,#1A1A1F,#141418);border-bottom:1px solid rgba(242,193,78,.18)}
.tbar2 .tb-side{gap:8px;flex:none}
.tbar2 .ib{width:38px;height:38px;border-radius:12px;position:relative}
.tbar2 .tb-bd{position:absolute;top:-5px;inset-inline-start:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#E0263F;color:#fff;font:700 10px/18px 'Poppins';font-style:normal;text-align:center;border:2px solid #16161A}
.tbar2 .tt{gap:8px;justify-content:center;min-width:0}
.tbar2 .tt h2{font-size:17px}
.tbar2 .tt-ic{display:flex;flex:none}.tbar2 .tt-ic .gi{width:26px!important;height:26px!important;border-radius:8px}
/* the score box: a small vertical box in the start corner, the round / trump badge under it */
.tmain{position:relative}
.tmain.hud-float>.hud{position:absolute;top:8px;left:10px;right:10px;z-index:7;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:6px;padding:0;pointer-events:none}
.tmain.hud-float>.hud>*{pointer-events:auto}
.tmain.hud-float .sb{flex-direction:column;border-radius:12px;background:#0B0B0D;border-color:rgba(242,193,78,.35);box-shadow:0 4px 12px rgba(0,0,0,.5)}
.tmain.hud-float .sb div{padding:4px 10px 3px;min-width:58px}.tmain.hud-float .sb div+div{border-top:1px solid rgba(242,193,78,.18)}
.tmain.hud-float .sb b{font-size:16px}.tmain.hud-float .sb span{font-size:9px}
.tmain.hud-float .tr{height:auto;padding:4px 6px 4px 10px;border-radius:14px;gap:6px;background:rgba(0,0,0,.6);max-width:130px}
.tmain.hud-float .tr i{width:24px;height:24px;border-radius:8px;font-size:15px}
.tmain.hud-float .tr b{font-size:11px!important}.tmain.hud-float .tr .mu{font-size:9.5px}
.tmain.hud-float .felt-wrap{padding-top:22px}
/* bar: an info line (tricks, contract…) and the gold hint */
.bb-info{display:flex;align-items:center;justify-content:center;height:30px;padding:0 12px;border-radius:9px;background:#0A0A0C;border:1px solid rgba(255,255,255,.07);font-size:12px;color:var(--mu);min-width:0}
.bb-hint{display:flex;align-items:center;justify-content:center;height:42px;border-radius:12px;padding:0 10px;font-size:14px;font-weight:700;text-align:center;
  background:linear-gradient(180deg,#2E2E35,#1A1A1F);border:1px solid #2A2A30;color:var(--mu)}
.bb-hint.my{background:var(--gold);color:#2A1A00;border-color:transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 0 #7A520C,0 8px 16px rgba(0,0,0,.5)}
.mebar.slim .bb-info{display:none}
@media (max-height:700px){.bb-info{height:26px}.bb-hint{height:36px;font-size:13px}}
#app.land .tbar2{background:none;border:0}
#app.land .tbar2 .tt{display:none}

/* ===== step 1 · the approved mockup: top bar, floating score box, bar info + hint ===== */
.tbar2{gap:8px;padding:10px 12px;background:linear-gradient(180deg,#1A1A1F,#141418);border-bottom:1px solid rgba(242,193,78,.18)}
.tbar2 .tb-side{gap:8px;flex:none}
.tbar2 .ib{width:38px;height:38px;border-radius:12px;position:relative}
.tbar2 .tb-bd{position:absolute;top:-5px;inset-inline-start:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#E0263F;color:#fff;font:700 10px/18px 'Poppins';font-style:normal;text-align:center;border:2px solid #16161A}
.tbar2 .tt{gap:8px;justify-content:center;min-width:0}
.tbar2 .tt h2{font-size:17px}
.tbar2 .tt-ic{display:flex;flex:none}.tbar2 .tt-ic .gi{width:26px!important;height:26px!important;border-radius:8px}
.tmain{position:relative}
.tmain.hud-float>.hud{position:absolute;top:8px;left:10px;right:10px;z-index:7;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:6px;padding:0;pointer-events:none}
.tmain.hud-float>.hud>*{pointer-events:auto}
.tmain.hud-float .sb{flex-direction:column;border-radius:12px;background:#0B0B0D;border-color:rgba(242,193,78,.35);box-shadow:0 4px 12px rgba(0,0,0,.5)}
.tmain.hud-float .sb div{padding:4px 10px 3px;min-width:58px}.tmain.hud-float .sb div+div{border-top:1px solid rgba(242,193,78,.18)}
.tmain.hud-float .sb b{font-size:16px}.tmain.hud-float .sb span{font-size:9px}
.tmain.hud-float .tr{height:auto;padding:4px 6px 4px 10px;border-radius:14px;gap:6px;background:rgba(0,0,0,.6);max-width:130px}
.tmain.hud-float .tr i{width:24px;height:24px;border-radius:8px;font-size:15px}
.tmain.hud-float .tr b{font-size:11px!important}.tmain.hud-float .tr .mu{font-size:9.5px}
.bb-info{display:flex;align-items:center;justify-content:center;height:30px;padding:0 12px;border-radius:9px;background:#0A0A0C;border:1px solid rgba(255,255,255,.07);font-size:12px;color:var(--mu);min-width:0}
.bb-hint{display:flex;align-items:center;justify-content:center;height:42px;border-radius:12px;padding:0 10px;font-size:14px;font-weight:700;text-align:center;
  background:linear-gradient(180deg,#2E2E35,#1A1A1F);border:1px solid #2A2A30;color:var(--mu)}
.bb-hint.my{background:var(--gold);color:#2A1A00;border-color:transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 0 #7A520C,0 8px 16px rgba(0,0,0,.5)}
.mebar.slim .bb-info{display:none}
@media (max-height:700px){.bb-info{height:26px}.bb-hint{height:36px;font-size:13px}}
#app.land .tbar2{background:none;border:0}
#app.land .tbar2 .tt{display:none}

/* ===== step 2 · Hand / Banakil: the melds my arrangement forms (gold corner + a coloured strip per group) ===== */
.scr-table .hand-mine .hand-c.ag,.scr-table .pin-hand .pin-c.ag{--agc:#F2C14E;
  background:linear-gradient(225deg,var(--agc) 0 15%,rgba(0,0,0,0) 15.5%),radial-gradient(120% 70% at 22% 0%,#fff 0%,rgba(255,255,255,0) 60%),linear-gradient(168deg,#FDFCF8 0%,#F4F1E8 56%,#E6E1D4 100%);
  box-shadow:inset 0 -5px 0 var(--agc),inset 0 0 0 1.5px rgba(255,255,255,.75),0 3px 8px rgba(0,0,0,.5)}
.scr-table .hand-c.ag1,.scr-table .pin-c.ag1{--agc:#3DDC97}.scr-table .hand-c.ag2,.scr-table .pin-c.ag2{--agc:#5BC0FF}.scr-table .hand-c.ag3,.scr-table .pin-c.ag3{--agc:#FF9F5A}
.scr-table .hand-mine .hand-c.ag.jk,.scr-table .pin-hand .pin-c.ag.jk,.scr-table .pin-hand .pin-c.ag.wd{background:linear-gradient(225deg,var(--agc) 0 15%,rgba(0,0,0,0) 15.5%),linear-gradient(160deg,#FFF6D6 0%,#F7D77A 45%,#E0A92A 100%)}
.scr-table .hand-ctl .hand-bar,.scr-table .pin-me .pin-bar{width:100%}
.scr-table .hand-ctl .rum-meter,.scr-table .pin-me .rum-meter,.scr-table .hand-ctl .hand-cnt{width:100%;justify-content:space-between}
.scr-table .hand-cnt{display:flex;align-items:center;height:30px;padding:0 11px;border-radius:9px;background:#0A0A0C;border:1px solid #2E2E35}

/* ===== step 3 · Tarneeb-style tables: the players sit on the frame of the same table ===== */
.scr-table .hand-felt,.scr-table .pin-felt{position:relative;flex:1;min-height:190px;display:flex;flex-direction:column;margin:34px 26px 0;padding:8px 8px 4px;border-radius:28px}
.scr-table .hand-felt.n2,.scr-table .pin-felt.n2{margin-left:10px;margin-right:10px}
.scr-table .hand-felt>.seat,.scr-table .pin-felt>.seat{position:absolute;z-index:5;gap:2px}
.scr-table .hand-felt>.seat.p2,.scr-table .pin-felt>.seat.p2{top:-32px;left:0;right:0}
.scr-table .hand-felt>.seat.p1,.scr-table .pin-felt>.seat.p1{top:26%;right:-22px}
.scr-table .hand-felt>.seat.p3,.scr-table .pin-felt>.seat.p3{top:26%;left:-22px}
.scr-table .hand-felt .av,.scr-table .pin-felt .av{width:44px;height:44px;font-size:17px}
.scr-table .hand-felt .hand-table,.scr-table .pin-felt .pin-melds{flex:1;min-height:0;background:none!important;box-shadow:none!important;border:0!important;border-radius:0;padding:26px 4px 2px;overflow-y:auto}
.scr-table .hand-felt.n4 .hand-table,.scr-table .pin-felt.n4 .pin-melds{padding-left:22px;padding-right:22px}
.scr-table .hand-felt .hand-mid{position:static;margin:0;padding:4px 0 2px}
.scr-table .hand-felt:before,.scr-table .pin-felt:before{content:"";position:absolute;inset:5px;border-radius:21px;border:1px solid rgba(242,193,78,.16);pointer-events:none}
.scr-table .pin-felt .pin-tpiles{position:static;margin:0;padding:4px 0 2px}
.scr-table .hand-felt.n4 .hand-table,.scr-table .hand-felt.n3 .hand-table,.scr-table .pin-felt .pin-melds{padding-top:64px}
.scr-table .hand-ctl .rum-meter.ok,.scr-table .pin-me .rum-meter.ok{background:var(--gold);color:#241800}
.scr-table .hand-ctl .rum-meter.ok b,.scr-table .pin-me .rum-meter.ok b,.scr-table .pin-me .rum-meter.ok .mu{color:#241800}
/* screw / uno: the opponents sit on the frame of the same table */
.scr-table .cg-felt{position:relative;flex:1;min-height:200px;display:flex;flex-direction:column;justify-content:space-between;margin:30px 6px 4px;padding:0 0 10px;border-radius:28px}
.scr-table .cg-felt>.screw-opp.up,.scr-table .cg-felt>.uno-top{margin-top:-30px;position:relative;z-index:5}
.scr-table .cg-felt .screw-mid,.scr-table .cg-felt .uno-row{flex:1;margin:0 -4px}
.scr-table .cg-felt:before{content:"";position:absolute;inset:5px;border-radius:21px;border:1px solid rgba(242,193,78,.16);pointer-events:none}
#app.land .cg-felt{grid-area:felt;margin:26px 6px 6px}
#app.land .scr-table .hand-felt.n4 .hand-table,#app.land .scr-table .hand-felt.n3 .hand-table{padding-top:40px}
#app.land .scr-table .cg-felt .uno-row{gap:10px;margin:0 2px}
#app.land .scr-table .cg-felt .uno-side{flex:0 0 auto;max-width:96px}
@media (max-width:700px){#app.land .scr-table .cg-felt .uno-side{max-width:70px}#app.land .scr-table .cg-felt .uno-side .av{width:28px;height:28px}#app.land .scr-table .cg-felt .uno-row{gap:4px}}
@media (max-width:700px){#app.land .scr-table .cg-felt .uno-pl{zoom:.8}}
