/* Presentation only. Game rules, transport and accounting remain in index.html. */
:root{
  --ui-gold:#eac77f;--ui-gold-bright:#ffdf99;--ui-green:#102e25;
  --ui-panel:#173c30;--ui-border:rgba(234,199,127,.2);
  --ui-muted:#b2c5b8;--ui-ease:cubic-bezier(.22,.75,.25,1);
  --ui-safe-top:env(safe-area-inset-top,0px);
  --ui-safe-bottom:env(safe-area-inset-bottom,0px);
}
body{background:#081a14}
#frame{background:#10291f;height:100vh;height:100dvh}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
button:focus-visible,[role="button"]:focus-visible{outline:3px solid var(--ui-gold-bright);outline-offset:4px}
button:disabled{cursor:default}
button:disabled:active{transform:none}
.uiIcon{width:24px;height:24px;display:inline-block;flex:none;vertical-align:middle;pointer-events:none;stroke-width:1.8}
.hSideBtn svg,.navBtn svg,.hBig svg{stroke-width:1.8}
#home{background:radial-gradient(ellipse at 50% 22%,#285442 0,#123527 43%,#0c231b 100%)}
.homeWrap{padding-bottom:calc(100px + var(--ui-safe-bottom));overscroll-behavior-y:contain;scrollbar-width:none}
.homeWrap::-webkit-scrollbar{display:none}
.homeWrap>svg{height:8px!important;opacity:.65!important}
.hHead{padding:calc(16px + var(--ui-safe-top)) 20px 0;gap:10px}
.hProf{gap:10px;min-height:52px;min-width:0;text-align:right;flex:1;max-width:calc(100% - 108px);padding-inline:10px}
.hProf>span:last-child{min-width:0;overflow:hidden}
.hNm{overflow:hidden;text-overflow:ellipsis}
.hAva{width:48px;height:48px;border:1px solid var(--ui-gold);box-shadow:0 4px 14px #0003}
.hNm{font-size:17px;color:#fff5df;line-height:1.4}
.hGold{min-height:44px;border:1px solid var(--ui-border);background:#0b2119;color:var(--ui-gold-bright);box-shadow:inset 0 1px #ffffff0a;padding:6px 10px;gap:8px}
.hGold b{display:grid;place-items:center;min-width:26px;min-height:26px;border-radius:9px;background:#eac77f;color:#173c30;font-size:20px}
.hSide{top:calc(98px + var(--ui-safe-top));right:20px;gap:10px;grid-template-columns:44px}
.hSideLeft{right:auto;left:20px}
.hSideBtn{width:44px;height:44px;border:1px solid var(--ui-border);border-radius:15px;background:#102b21;color:var(--ui-gold);box-shadow:0 4px 12px #0002}
.hSideBtn.daily{background:#254331;color:#ffdf99;animation:none}
.hSideBtn .badge{box-shadow:0 0 0 3px #133426}
.hLogo{padding-top:26px;padding-bottom:10px}
.hLogoCards{height:108px}
.hLogoCards::before{background:radial-gradient(ellipse,#eac77f26,transparent 70%)}
.hLogoCards img{border:1px solid #ffefc555;box-shadow:0 12px 22px #0005;animation:none}
.hTitle{font-size:48px;color:#f8e6bc;text-shadow:0 2px 0 #07190e,0 8px 24px #0004;line-height:1.2}
.hMenu{flex:0 0 auto;justify-content:flex-start;gap:14px;padding:20px 20px 24px}
.hBig{border-radius:20px;transition:transform .16s var(--ui-ease),box-shadow .2s;isolation:isolate}
.hBig.onl{height:116px;min-height:116px;padding:32px 20px 14px;background:linear-gradient(115deg,#f5d99d,#dfb35c);color:#193222;box-shadow:0 4px 0 #947033,0 12px 24px #0004;border:1px solid #fff0c2;animation:none}
.hBig.onl>span:not(.live){opacity:1;font-size:14px}
.hBig.onl>span>span>b{font-size:29px!important;line-height:1.25}
.hBig.onl>span>span>span{display:block;font-size:14px;color:#395035;margin-top:4px}
.hBig.onl .live{top:10px;left:14px;font-size:12px;padding:2px 8px;background:#18362612;color:#25452f}
.hBig.onl .live i{width:6px;height:6px;background:#39784a;box-shadow:none;animation:none}
.hBig.onl svg{width:32px;height:32px}
.hBig.sess{min-height:72px;height:auto;padding:15px 16px;background:#1e4233;border:1px solid #83a58b44;box-shadow:0 4px 0 #091e16,0 8px 18px #0002;flex-wrap:wrap}
.hBig.sess .sessIcoWrap{gap:9px;display:flex!important}
.hBig.sess .sessCount{font-size:12px;color:#cae3d0;padding:5px 9px;display:flex!important}
.hBig.sess .sessCount i{width:5px;height:5px;box-shadow:none;animation:none}
.hMenu .row2{gap:12px;align-items:stretch}
.hMenu .row2 .hBig{min-width:0;height:112px;min-height:112px;border-radius:18px}
.hBig.grp{border:1px solid var(--ui-border);background:linear-gradient(140deg,#264835,#173628);color:#f5e6c8;box-shadow:0 4px 0 #091e16}
.hBig.grp>span{font-size:13px!important;color:#bdd1bc}
.hBig.grp>img{opacity:.16!important}
.hBig.rank{border:1px solid #eac77f44;box-shadow:0 4px 0 #091e16;padding:12px!important}
.hBig.rank .rcRemain{font-size:12px!important}
.hBig.rank .rcNext{font-size:12px!important}
.hBig.rank .rcBar{height:5px;margin-top:6px}
.navBar{height:calc(78px + var(--ui-safe-bottom));padding:8px 12px calc(8px + var(--ui-safe-bottom));background:#0b221bf5;border-top:1px solid var(--ui-border);box-shadow:0 -8px 24px #0003;gap:4px}
.navBtn{font-size:12px;font-weight:700;color:#a7bdae;min-height:52px;gap:4px;border-radius:14px;position:relative}
.navBtn .ic{width:23px;height:23px;stroke-width:1.8}
.navBtn.on{color:#ffe1a0;background:#eac77f12}
.navBtn.on::before{content:"";position:absolute;top:0;width:18px;height:2px;border-radius:2px;background:var(--ui-gold)}
.navBtn.on .ic{transform:none}
.hBig:active,.hBig.onl:active,.hBig.sess:active{transform:translateY(2px) scale(.99)}
/* The selected table artwork and the player's avatar remain unchanged. */
#game,#onl{image-rendering:auto}
.tableWood{max-width:calc(100% - 16px);filter:drop-shadow(0 10px 14px #0003)}
.tableWood .rg2{box-shadow:inset 0 0 0 1px #ffe5ae30,inset 0 0 32px #0003}
.seat{background:#0b2019bd;border:1px solid #d7e7d11a;box-shadow:0 4px 12px #0002;border-radius:18px}
.seat.turnGlow{border-color:#eac77f;box-shadow:0 0 0 1px #eac77f55,0 6px 16px #0003}
.seat.turnGlow .ava,#meIdent.turnGlow .ava,#oIdent.turnGlow .ava{border-color:var(--ui-gold);box-shadow:0 0 0 3px #eac77f24}
.seat .nm{font-size:12px;color:#f5f2e5;line-height:1.4}
#seatT .nm,#oSeat .nm{font-size:12px;max-width:100px}
.seat .pts{font-size:12px;background:#071a13;color:#f8e8c1;padding:2px 7px}
.seat .pts .ptsFill,#myPile .pts .ptsFill,#oMyPile .pts .ptsFill{background:#55794a}
.seat .bubble,#meIdent .bubble,#oIdent .bubble{width:auto;min-width:36px;height:23px;padding:0 7px;font-family:var(--fb);font-size:11px;font-weight:800;background:var(--ui-gold);color:#173c30;box-shadow:0 3px 8px #0004;animation:none;white-space:nowrap}
.seat .holderVal{animation:none;color:#153022;box-shadow:0 3px 10px #0004,0 0 0 1px var(--ui-gold)}
.handCountBadge{font-size:11px;min-width:20px;height:20px;background:#143527;border:1px solid #a9bd9255}
.avaSec{min-width:23px;height:21px;background:#f5dfab;color:#173c30;font-size:13px;font-variant-numeric:tabular-nums}
.avaRing{--timerColor:var(--ui-gold)}
#topbar .ttl,#topbar .meta{font-size:12px}
#exitBtn,#sndBtn,#boardBtn{min-height:40px}
#sndBtn,#boardBtn{min-width:40px}
#exitBtn{padding:0 12px;font-size:12px}
#oExit,#oSnd,#oBoardBtn{min-height:40px;min-width:40px}
#oSnd{display:flex;align-items:center;justify-content:center}
#onl #fieldRing{border:1px solid #efd59826!important}
#oReactBtn,#chatBtn,#oChatBtn{min-height:44px}
/* Faces are the original card assets, with consistent edges and elevation. */
.card{border:1px solid #e5ddc9;border-radius:8px;background-color:#fffef9;box-shadow:0 2px 2px #0002,0 7px 12px #0004;backface-visibility:hidden}
.card.back{background-color:#173f31;border:1px solid #d4b87688}
.card.back::before{border-color:#e6c880aa;background:repeating-linear-gradient(45deg,transparent 0 5px,#eac77f20 5px 6px),repeating-linear-gradient(-45deg,transparent 0 5px,#eac77f20 5px 6px)}
#hand .card,#oHand .card{transition:transform .18s var(--ui-ease),box-shadow .18s;box-shadow:0 2px 2px #0003,0 8px 15px #0005}
#hand .card.sel,#oHand .card.sel{transform:translateY(-18px) scale(1.04);box-shadow:0 0 0 2px #ffe0a0,0 13px 19px #0006}
#hand .card.eatable,#oHand .card.eatable{box-shadow:0 0 0 1.5px #dfc688,0 6px 12px #0005}
#hand .card.waqfPlayable,#oHand .card.waqfPlayable{box-shadow:0 0 0 2px #ffe0a0,0 0 16px #eac77f55,0 10px 16px #0004}
#field .card,#oField .card{transition:transform .28s var(--ui-ease),box-shadow .16s;box-shadow:0 2px 2px #0003,0 5px 9px #0005}
#field .card.match,#oField .card.match{animation:none;box-shadow:0 0 0 2px #ffdf99,0 5px 14px #0006}
.stealable{animation:none;outline:2px solid #edcf87;outline-offset:3px;box-shadow:0 0 12px #edcf8733}
.match.dropHighlight,.stealable.dropHighlight{outline:2px solid #fff0bf;outline-offset:3px;box-shadow:0 0 0 2px #dfc07a,0 0 18px #eac77f88!important}
.dimmed{opacity:.5;filter:saturate(.65)}
#fieldLbl,#oFieldLbl{font-size:12px;background:#102e24e8;color:#ecdbb4;border:1px solid var(--ui-border);box-shadow:none;padding:3px 12px}
#hint,#oHint{font-size:14px;line-height:1.5;color:#d2dfd0;min-height:28px;padding:4px 12px}
#hint b,#oHint b{color:#ffdf99}
#meIdent .nm,#oIdent .nm{max-width:115px;overflow:hidden;text-overflow:ellipsis;font-size:13px}
#myPile .pts,#oMyPile .pts{font-size:12px;border:1px solid #d7e7d11a}
#thumb,#oThumb{background:linear-gradient(transparent,#071b16c9 34%,#071b16ed);padding-bottom:4px}
#throwBtn,#oThrow,#cancelBtn,#oPass,#meWaqfBtn{min-height:44px;border-radius:14px}
#throwBtn,#oThrow{background:linear-gradient(#f1d49b,#d9b16a);color:#153527;box-shadow:0 3px 0 #896a39;font-size:17px}
#throwBtn:disabled,#oThrow:disabled{opacity:.45;box-shadow:none}
#cancelBtn,#oPass{border:1px solid #aebfa533;background:#193b2a;color:#d2dfc9}
.eatFxPts{font-size:18px;color:#ffe4a9;text-shadow:0 2px 5px #000;background:#153326eb;border:1px solid #efd08c88;border-radius:14px;padding:7px 14px;white-space:nowrap;animation:uiPoints 900ms var(--ui-ease) both}
.eatFxRing{border-color:#eac77f!important;animation:eatRipple 650ms ease-out both}
#waqf .big,#oWaqf .big{color:#ffe0a0;text-shadow:0 3px 12px #0006}
#waqfWho{font-size:14px;line-height:1.6;color:#f0e4c8}
#oWaqfBannerTxt{font-size:14px!important;line-height:1.5}
#cdNum,#oWaqfCntL{font-variant-numeric:tabular-nums}
@keyframes uiPoints{0%{opacity:0;transform:translate(-50%,-30%) scale(.92)}20%,65%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-85%) scale(1)}}
#toast span,#oToast span,#toastG span{border:1px solid #eac77f44;background:#10291ff5;color:#fff0ce;box-shadow:0 6px 18px #0004;font-size:14px;line-height:1.5}
#toastG{padding-inline:12px}
#toastG span{max-width:100%;border-radius:16px}
#board,#oBoard{border:1px solid var(--ui-border);background:#10291ff5;box-shadow:0 12px 32px #0005}
.bRow{padding-block:7px}
.bRow .nm{font-size:13px}
.bRow .pt{font-size:18px;color:#f0d18e}
#rulesCard,#miniProfileCard,#quitCard{border:1px solid var(--ui-border);box-shadow:0 20px 60px #0006;border-radius:24px}
#rulesX,#mpClose{min-width:44px;min-height:44px}
#nameIn,input[type="email"],input[type="password"],input[type="text"],textarea{font-size:16px}
/* Preserve reachability on narrow/short phones; never shrink the touch targets. */
@media(max-width:360px){
 .hHead{padding-inline:14px}.hMenu{padding-inline:14px}.hSide{right:14px}.hSideLeft{right:auto;left:14px}
 .hBig.sess{gap:8px;padding:14px}.hBig.sess .sessCount{margin-inline-start:31px}
 .hMenu .row2{gap:10px}.hBig.grp>span{font-size:12px!important}
 #seatT,#oSeat{gap:6px;padding-inline:8px;max-width:calc(100% - 20px)}
 #seatT .nm,#oSeat .nm{max-width:72px}
 #fieldWrap,#oFieldWrap{max-width:calc(100% - 42px)}
}
@media(max-height:740px){
 .hLogo{padding-top:18px;padding-bottom:0}.hLogoCards{height:90px;transform:scale(.88);transform-origin:50% 100%}
 .hTitle{font-size:40px}.hMenu{padding-top:14px;gap:12px}.hBig.onl{min-height:104px;height:104px}
 .hMenu .row2 .hBig{min-height:100px;height:100px}
 #me,#me2{height:calc(260px + var(--ui-safe-bottom))}
 #thumb,#oThumb{height:172px}
 #seatR,#seatL,#oSeatR,#oSeatL{top:calc(132px + var(--ui-safe-top))!important;padding:6px}
 #deckStack,#oDeckStack{top:calc(330px + var(--ui-safe-top))}
 .tableWood{top:calc(180px + var(--ui-safe-top));width:310px;height:272px}
 #fieldWrap,#oFieldWrap{top:calc(194px + var(--ui-safe-top));transform:translateX(-50%) scale(.82);transform-origin:50% 0}
}
@media(hover:hover){.hSideBtn:hover{background:#284835}.navBtn:hover{color:#ffdf99}.hBig:hover{filter:brightness(1.035)}}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
 .eatFxPts{animation:none!important;opacity:1;transform:translate(-50%,-50%)}
}

#oWaqfBannerTxt,#oSettleBannerTxt{max-width:calc(100% - 28px);white-space:normal!important;text-align:center;border-radius:14px!important;line-height:1.5;background:#173b2cf5!important;color:#ffe6b4!important;box-shadow:0 0 0 1px #eac77f99,0 6px 14px #0004!important}
.waqfBidBox{border-radius:18px;background:linear-gradient(#355036,#193628);box-shadow:0 0 0 1px #eac77f,0 5px 0 #0a2116;animation:none}

/* Second pass: menus, account, community and result surfaces. */
:root{--ui-paper:#faf8f1;--ui-paper-line:#e1e5d8;--ui-text:#203b2d;--ui-secondary:#64745e;--ui-danger:#a43f36}
#profile,#signup,#gcomplete,#addfr,#tiers{background:var(--ui-paper)}
#chat,#friends,#match,#lboard>[data-navholder],#shop>[data-navholder],#awardsScr>[data-navholder]{background:radial-gradient(ellipse at 50% 0,#285442,#102d23 65%)!important}
.qBtn{min-width:44px;min-height:44px;border-radius:14px!important;display:inline-flex;align-items:center;justify-content:center;flex:none}
.qBtn svg{width:21px;height:21px;stroke-width:1.8}
#chHead .t,#frHead .t{color:#f7e6c2;font-size:27px;text-shadow:none}
#chWrap,#frWrap{padding-top:calc(16px + var(--ui-safe-top));padding-inline:16px;min-height:0}
#chHead,#frHead{min-height:48px;gap:10px}
#chHead .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#frHead .t{flex:1}
#frAdd{min-height:44px;height:auto;padding:9px 12px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;border-radius:14px;background:var(--ui-gold);color:var(--ui-text);box-shadow:0 3px 0 #8d703c}
#frAdd .uiIcon{width:19px;height:19px}
#frBody,#lbList{min-height:0;overscroll-behavior:contain;padding-bottom:calc(96px + var(--ui-safe-bottom))!important}
#frBody .frSec{font-size:14px;letter-spacing:0;color:#d5e2cd;margin:20px 4px 10px}
.frRow,.chRow,.inboxRow,.sessCard{border:1px solid var(--ui-paper-line);background:var(--ui-paper);border-radius:18px;padding:14px;box-shadow:0 4px 12px #0002}
.frRow{gap:10px;flex-wrap:wrap}
.frRow .fAva,.chRow .cAva{background:#e4eadc;border:1px solid #c8d3bd;box-shadow:0 2px 6px #0001}
.frRow .fNm,.chRow .cNm{font-size:15px;color:var(--ui-text);overflow-wrap:anywhere;line-height:1.5}
.frRow .fSt,.chRow .cMsg{font-size:13px;color:var(--ui-secondary);line-height:1.5}
.frRow .fSt.on{color:#357b42}
.frRow .fBody{min-width:100px}
.frRow>div:last-child:not(.fBody):not(.fAva){flex-wrap:wrap;justify-content:flex-end;margin-inline-start:auto}
.frRow.req{background:#f6efd9;border:1px solid #dcc68c;box-shadow:0 3px 10px #0002}
.frBtn{min-height:44px;height:auto;min-width:44px;border-radius:12px;font-size:13px;padding:8px 11px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.frBtn.inv,.frBtn.acc{background:#25563d;color:#fff9e7}
.frBtn.x{width:44px;height:44px;background:#eceee4;color:#75544b}
.frBtn[data-dm]{background:#e4eadc!important;color:#30533c!important}
.frBtn.watch{background:#dfebdb!important;color:#31523a!important}
.chRow{margin-bottom:0;gap:10px;min-height:80px}
.chRow .cTime{font-size:12px;color:#6b785f;white-space:nowrap}
.chRow .cBadge{background:#31583b;font-size:12px}
.cDelBtn,.inboxDel,#chClearBtn{min-width:44px;min-height:44px;border-radius:12px!important;color:#9b5147!important;display:inline-flex;align-items:center;justify-content:center}
#chTabs,#lbTabs{border:1px solid #dbdabb24;border-radius:16px!important;background:#0b2119!important;padding:5px!important;gap:5px;flex:none}
.chTab,.lbTab{min-height:44px;border-radius:12px!important;font-size:14px!important;line-height:1.4}
.chTab.on,.lbTab.on{background:#d9c48a!important;color:#203b2d!important;box-shadow:0 2px 6px #0002}
#chList{min-height:0;gap:12px;padding-top:14px;overscroll-behavior-y:contain}
#chInput{padding:12px 0 calc(90px + var(--ui-safe-bottom));gap:10px;flex:none;min-width:0;background:linear-gradient(transparent,#102d23 24%)}
#chInput input{min-width:0;height:50px;border-radius:16px;background:var(--ui-paper);box-shadow:0 0 0 1px #d6dcca;font-size:16px;padding-inline:14px;color:var(--ui-text)}
#chInput input:focus{box-shadow:0 0 0 2px var(--ui-gold)}
#chSend{height:50px;width:50px;border-radius:16px;display:grid;place-items:center;background:var(--ui-gold);color:#213d2d;box-shadow:0 3px 0 #8e743e}
.uiMessageText{font-size:15px!important;line-height:1.7!important;overflow-wrap:anywhere;box-shadow:0 2px 6px #0002;border:1px solid #d9e1ca}
.uiMessageText.uiMine{background:#e8d7a6!important;color:#273b26!important}
.uiMessageText:not(.uiMine){background:#f8f6ee!important;color:#273b26!important}
.uiEmpty{margin:18px 0;padding:28px 20px!important;border:1px dashed #a9c29d55;border-radius:20px;background:#ffffff08;color:#cfddc6!important;font-size:14px!important;line-height:1.8;text-align:center}
#addfr .uiEmpty{color:#66785d!important;background:#eef1e7;border-color:#c5d0b9}
.uiEmpty b{color:inherit!important}
#afSearch{min-height:50px;border-radius:16px!important;border:1px solid #a4b896!important;box-shadow:0 3px 10px #0001;color:var(--ui-text)}
#afSearch:focus{outline:2px solid #bb9a53;outline-offset:2px}
#afResults{min-height:0;padding-block:12px!important;overscroll-behavior:contain}
#afResults>div{border-radius:16px!important}
#afRecent button{min-height:40px;border:1px solid #d8dfcb;border-radius:12px!important}
#afRecentWrap{padding-bottom:calc(20px + var(--ui-safe-bottom))!important}
/* Profile: dark identity header, readable paper cards and separate account actions. */
#profile>div{padding-bottom:calc(28px + var(--ui-safe-bottom));overscroll-behavior:contain}
#pfHead{background:radial-gradient(ellipse at 50% 0,#365a40,#123527 80%);border-radius:0 0 28px 28px;padding-top:calc(22px + var(--ui-safe-top));padding-bottom:28px;border-bottom:1px solid #eac77f55}
#pfBack,#pfEdit{top:calc(16px + var(--ui-safe-top));min-height:44px;border-radius:14px}
#pfEdit{font-size:14px;padding-inline:14px;border:1px solid #d9d7af33;background:#112e23}
#pfAva{width:88px;height:88px;margin-top:44px;box-shadow:0 0 0 3px var(--rankColor,#d6bd7d),0 0 0 8px #eac77f12}
#pfName{font-size:30px;color:#f9edcf;line-height:1.5;padding-inline:10px;overflow-wrap:anywhere}
#pfMeta{flex-wrap:wrap;gap:6px}
#pfMeta span{font-size:12px;line-height:1.5}
#pfCode{direction:ltr;unicode-bidi:isolate}
#pfStats{gap:9px;padding:18px 16px 0}
.pfStat{border:1px solid #e0e5d5;border-radius:18px;background:#fffef8;box-shadow:0 4px 12px #132c1708;padding:14px 6px}
.pfStat b{font-size:28px;color:#294d34;font-variant-numeric:tabular-nums;line-height:1.4}
.pfStat span{font-size:12px;color:#69785f}
.pfStatIc{color:#a78b49!important;margin-bottom:6px}
#pfWin,#pfRankProgress{margin:12px 16px 0!important;border:1px solid #e0e5d5!important;border-radius:18px!important;box-shadow:0 4px 12px #132c1708;background:#fffef8!important;padding:16px!important}
#pfWin .row{font-size:14px;color:#5b7051}
#pfBar{background:#e8edde;height:7px}
#pfBar i{background:linear-gradient(90deg,#7b9f6a,#375f3f)}
#pfRankPtsNum{font-size:27px!important;color:#294d34!important}
#pfRankRemain{font-size:14px!important;line-height:1.6}
#pfHistoryRow{flex-wrap:wrap}
#pfAchievementsList>div{border-radius:16px!important;border:1px solid #e0e5d5;box-shadow:none!important}
#pfOut{margin:22px 16px 0;min-height:48px;height:48px;flex:none;border:1px solid #bccbb1;border-radius:15px;background:#eef2e7;color:#395237;font-size:14px}
#pfDeleteAcc{width:calc(100% - 32px)!important;margin:10px 16px 0!important;min-height:44px;flex:none;color:#a43f36!important;font-size:13px!important;border-radius:14px;background:#a43f3607!important;text-decoration:none!important}
/* Results preserve the actual score, prize and rank values. */
#results,#oOver{background:#061a14e8;padding:calc(20px + var(--ui-safe-top)) 18px calc(20px + var(--ui-safe-bottom));overflow-y:auto;overscroll-behavior:contain}
#results>#resCard,#oOver>#resCard{width:100%;max-width:370px!important;max-height:100%;overflow-y:auto;background:var(--ui-paper)!important;border:1px solid #ead5a3;border-radius:26px!important;padding:24px 18px!important;box-shadow:0 20px 55px #0005}
#resCard h2,#oResTtl{color:#294d34!important;font-size:32px!important;line-height:1.4}
#resCard .sub,#oResSub{font-size:14px;line-height:1.6;color:#66775d!important}
.resRow{background:#eef1e6;border:1px solid #e0e5d5;border-radius:16px;padding:13px 10px;gap:8px}
.resRow.win{background:linear-gradient(110deg,#f5e8c4,#eee4c3);border:1px solid #ccb474;box-shadow:inset 3px 0 #b19a54}
.resRow .rk{color:#8a7548;font-size:19px;flex:none}
.resRow .nm{font-size:14px;min-width:0;overflow-wrap:anywhere;color:#29422f}
.resRow .nm small{font-size:12px;color:#69785d;margin-top:3px}
.resRow .pt{font-size:24px;color:#294d34;font-variant-numeric:tabular-nums;flex:none}
.resRow .gold{font-size:13px;color:#856a35}
.resRow .ava{flex:none}
#oMyStats{gap:10px!important}
#oMyGoldNum,#oMyRankNum{font-size:22px!important}
#oMyGoldDelta,#oMyRankDelta{font-size:13px!important}
#oFeeWinLine{font-size:13px!important;flex-wrap:wrap;gap:8px!important;line-height:1.5}
#oForfeitBanner{background:#e9dbab!important;box-shadow:none!important;border:1px solid #c7b477;line-height:1.5}
#resBtns{gap:10px;flex-wrap:wrap}
#resBtns button,#oMenu{min-height:50px;border-radius:15px!important;font-size:19px}
#againBtn,#oMenu{background:linear-gradient(#ecd399,#d6b56f)!important;color:#263e2b!important;border:1px solid #c4a564!important;box-shadow:0 3px 0 #927541}
#menuBtn{border:1px solid #bacaad!important;background:#eaf0e2;color:#385232}
/* Quit: a bounded dialog with the existing penalty text and actions. */
#quitConfirm{background:#061a14e8!important;padding:calc(18px + var(--ui-safe-top)) 18px calc(18px + var(--ui-safe-bottom))!important;overflow:auto}
.uiQuitSurface{width:100%;max-width:356px;max-height:100%;overflow:auto;background:linear-gradient(150deg,#234834,#102d23);border:1px solid #eac77f55;border-radius:26px;padding:24px 20px;box-shadow:0 24px 60px #0005;display:flex;flex-direction:column;align-items:center}
.uiQuitSurface>div:first-child{font-size:0!important;width:58px;height:58px;display:grid;place-items:center;background:#eac77f12;color:#eac77f;border:1px solid #eac77f44;border-radius:18px;margin-bottom:14px}
.uiQuitSurface>div:first-child .uiIcon{width:28px;height:28px}
#quitWarnTxt{font-size:15px!important;line-height:1.8;max-width:100%;color:#d2dfca!important}
#quitRankCard{background:#f7f4e8!important;border:1px solid #e0d2aa;border-radius:18px!important;box-shadow:none!important}
#quitCancelBtn,#quitConfirmBtn{min-height:50px;border-radius:14px!important;line-height:1.5;font-size:15px!important}
#quitCancelBtn{background:#eac77f!important;color:#213d2c!important;box-shadow:0 3px 0 #8e743e}
#quitConfirmBtn{background:#a43f361a!important;border:1px solid #b6786b!important;color:#efb7a5!important}
/* Leaderboard and tiers: keep podium medals, tier art and meaningful rank colours. */
#lbPrizeBanner{border:1px solid #eac77f33;border-radius:16px!important;background:#eac77f0c!important;flex-wrap:wrap;line-height:1.6}
#lbCountdown{color:#ffdf99!important;font-size:16px!important;font-variant-numeric:tabular-nums}
#lbPodium{gap:10px!important;padding:22px 12px 4px!important}
#lbPodium>div{border-radius:16px;transition:transform .15s}
#lbList{gap:10px!important;padding-inline:16px!important}
#lbList>.uiRankRow{min-height:76px;border:1px solid #dce3cf;border-radius:17px!important;box-shadow:0 3px 10px #0002!important;padding:12px!important;gap:9px!important}
#lbList>.uiRankRow.uiSelf{background:#f5e8c4!important;border-color:#d0b271;box-shadow:inset 3px 0 #b19755!important}
.uiRankRow>div:nth-child(1){color:#7b714e!important;font-size:19px!important;flex:none}
.uiRankRow>div:nth-child(3)>div:first-child{overflow-wrap:anywhere;line-height:1.5}
.uiRankRow>div:nth-child(4){font-size:13px!important;color:#49603c!important;flex-wrap:wrap;justify-content:center;max-width:85px}
#tiersList>div,#shopList>div,#awardsGrid>div{border-radius:20px!important;border:1px solid #d6dfcb;box-shadow:0 4px 12px #0002!important}
#tiersList button,#shopList button{min-height:44px;border-radius:13px!important}
#tiersList,#awardsGrid{padding-bottom:calc(96px + var(--ui-safe-bottom))!important}
.sessCard{margin-bottom:12px}
.sessJoinBtn,.sessSpecBtn{min-height:44px;border-radius:13px;font-size:14px}
.sessJoinBtn{background:#325c3d;color:#fff9e4}.sessSpecBtn{background:#eef2e6;color:#3e5835;border-color:#bdcbb0}
.teamZone{border:1px dashed #a7bc9166;border-radius:18px;background:#ffffff05}
.lobbyRow{border:1px solid #becdb122;background:#ffffff0a;min-height:64px}
.lmBtn,.lpTab{min-height:44px}
.lmBtn.on,.lpTab.on{background:#d6c086;color:#223e2b}
#onlWait{overflow-y:auto;background:#10291f}
/* Secondary sheets share borders, spacing and close controls. */
#rulesCard,#miniProfileCard{background:var(--ui-paper);border-color:#d5dec8}
#rulesHead{padding-top:18px}
#rulesHead .t{color:#305238}
.rCard{border:1px solid #e0e6d5;box-shadow:none}
.rCard .n{background:#305b3d;color:#fff5d8}
.rCard p{font-size:14px;line-height:1.85;color:#657454}
#rulesOk,#dailyClaim,#suGo,#gcGo,#lgGo{background:linear-gradient(#ecd399,#d6b56f)!important;color:#263e2b!important;box-shadow:0 3px 0 #927541!important;border-radius:16px!important}
#dailyScr>div,#rewardScr>div{padding:calc(18px + var(--ui-safe-top)) 18px calc(18px + var(--ui-safe-bottom))!important;background:#061a14d9!important;backdrop-filter:none!important}
#dailyScr>div>div,#rewardScr>div>div{max-height:100%;overflow-y:auto;border-radius:24px!important;border:1px solid #e0d3ae;background:var(--ui-paper)!important;padding-top:64px!important;box-shadow:0 20px 55px #0005!important}
#dailyX,#rewardX,#mpClose{width:44px!important;height:44px!important;border-radius:13px!important;background:#e9eedf!important;color:#4b6040!important}
#dailySub,#rwDailySub,#rwAdSub{font-size:14px!important;line-height:1.6}
#dailyGrid>div{border-radius:14px!important;min-height:86px}
#rwDaily,#rwAd{border:1px solid #dce3cd!important;border-radius:17px!important;box-shadow:none!important}
#inbox .inboxRow,.inboxRow{line-height:1.65}
#mpName{color:#294d34;font-size:24px}
#mpStats{gap:8px}
#mpStats>div{border:1px solid #dce3cd;border-radius:14px;background:#edf1e6}
#mpFriendBtn{min-height:48px;border-radius:14px}
#lgFields{padding-inline:24px}.lgField input{border-radius:15px;font-size:16px}
#lgForgot{font-size:14px;color:#e0c58b;min-height:40px;padding-block:8px}
#lgTerms{font-size:12px;color:#b5c5a9;line-height:1.8}
#lgBottom{padding-bottom:calc(24px + var(--ui-safe-bottom))}
#pageLoader{background:radial-gradient(ellipse at 50% 30%,#284b35,#0c231b)}
#pageLoaderTxt{color:#efd8a4;font-size:20px}
@media(max-width:360px){
 #chWrap,#frWrap{padding-inline:12px}.frRow{padding:12px;gap:8px}.frRow>div:last-child:not(.fBody):not(.fAva){width:100%;padding-top:4px}
 #pfStats{gap:6px;padding-inline:12px}.pfStat{padding-inline:4px}.pfStat b{font-size:25px}
 #lbPodium{gap:6px!important}.uiRankRow>div:nth-child(4){max-width:60px;font-size:12px!important}
 .resRow{gap:6px;padding-inline:8px}.resRow .pt{font-size:21px}.resRow .nm{font-size:13px}
 #dailyGrid{gap:6px!important}#dailyScr>div>div{padding-inline:12px!important}
}
@media(max-height:680px){#lbPodium{padding-top:12px!important}#pfAva{margin-top:34px}.uiQuitSurface{padding:18px 16px}#results>#resCard,#oOver>#resCard{padding:18px 14px!important}}
#avBackdrop{background:#061a14d9!important;padding-top:var(--ui-safe-top)}
#avBackdrop>div{background:var(--ui-paper)!important;border:1px solid #d7dec9;border-bottom:0;border-radius:26px 26px 0 0!important;padding-bottom:calc(20px + var(--ui-safe-bottom))!important}
#avFreeGrid button{min-height:48px;border-radius:14px!important}
#avUploadBtn{min-height:48px;border-color:#899f70!important;color:#3e633f!important;background:#f0f3e8!important}
#onlineFriendsModal{padding:calc(20px + var(--ui-safe-top)) 18px calc(20px + var(--ui-safe-bottom))!important;background:#061a14db!important}
#onlineFriendsModal>div{background:linear-gradient(#254b36,#102d23)!important;border-radius:24px!important;border-color:#eac77f44!important}
#ofmClose{min-width:44px;min-height:44px;border-radius:13px!important}
#ofmBody{min-height:0;overscroll-behavior:contain}
.inviteMsgRow>div{background:linear-gradient(135deg,#294e38,#102d23)!important;border:1px solid #eac77f55}
.invJoinBtn{min-height:48px;background:#eac77f!important;color:#213d2d!important}
.cbReport{min-width:36px;min-height:36px}
#frBody>div:only-child:not(.frRow):not(.frSec),#chList>div:only-child[style*="text-align:center"],#lbList>div:only-child[style*="text-align:center"]{margin:18px 0;padding:28px 18px!important;border:1px dashed #a9c29d55;border-radius:20px;background:#ffffff08;color:#cfddc6!important;font-size:14px!important;line-height:1.8;text-align:center}
.pfStatIc .uiIcon{width:25px;height:25px}
/* Vector table collection, rank insignia and tactile card motion. */
.uiRankBadge{display:inline-flex;align-items:center;gap:4px;max-width:100%;font-weight:800;line-height:1.4;white-space:nowrap;border:1px solid var(--badge-color);border-radius:9px;padding:2px 7px 2px 3px;background:#f7f5ed;vertical-align:middle}
.uiRankBadge img{width:24px;height:24px;object-fit:contain;flex:none}
#hRankBadge .uiRankBadge,#rcBadge .uiRankBadge{background:#0b201de6;color:#f6e7c6!important}
#ranksList{gap:12px!important;padding-bottom:calc(20px + var(--ui-safe-bottom))!important}
#ranksList>div{min-height:86px;border-radius:17px!important}
#ranksList>div>div:nth-child(2){left:16px!important;right:80px!important;overflow:visible!important}
#ranksList>div>div:nth-child(2)>span{white-space:normal!important;line-height:1.6}
#rankCard{background-position:center!important}
#uiAppearanceBtn{display:flex;align-items:center;justify-content:center;gap:9px;margin:18px 16px 0;width:calc(100% - 32px);min-height:50px;border:1px solid #becdaf;background:#edf2e6;color:#305239;border-radius:15px;font-weight:800;cursor:pointer}
#uiAppearance{position:absolute;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:calc(20px + var(--ui-safe-top)) 16px calc(20px + var(--ui-safe-bottom));background:#061813e8}
.uiAppearanceCard{width:100%;max-width:420px;max-height:100%;overflow:auto;overscroll-behavior:contain;border:1px solid #dbc28c55;border-radius:25px;background:#102d23;padding:20px;color:#f4e5c5;box-shadow:0 20px 50px #0006}
.uiAppearanceHead{display:flex;align-items:center;justify-content:space-between;gap:10px}.uiAppearanceHead h2{font-family:var(--fh);font-size:27px;margin:0}
.uiAppearanceHead .qBtn{border:1px solid #eac77f44;background:#eac77f0c;color:#eac77f}
.uiAppearanceCard>p{font-size:13px;line-height:1.7;color:#bacdb9;margin:8px 0 18px}
.uiThemeGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.uiThemeChoice{overflow:hidden;border:1px solid #a9ba9b44;border-radius:17px;padding:0 0 10px;background:#0b211a;color:#e3eada;font-size:13px;font-weight:700;line-height:1.5;cursor:pointer}
.uiThemeChoice>span:not(.uiThemePreview){display:block;padding:9px 5px 2px}
.uiThemePreview{display:flex;height:106px;align-items:center;justify-content:center;background:#193c2c;background-size:cover;background-position:center}
.uiThemePreview img{width:96px;height:88px;object-fit:contain;filter:drop-shadow(0 6px 6px #0005)}
.uiThemePreview>.uiIcon{width:40px;height:40px;color:#c6b580}
.uiThemeChoice[aria-pressed="true"]{border-color:#eac77f;box-shadow:0 0 0 1px #eac77f}
.uiThemeState{display:block;color:#b0c6ab;font-size:12px}.uiThemeChoice[aria-pressed="true"] .uiThemeState{color:#ffdf99}
.tableWood .rg1{box-shadow:inset 0 1px 1px #fff1;pointer-events:none}
.fieldGhostLayer .card{box-shadow:0 8px 12px #0005;border-color:#f0ddaf}
.eatFxRing{border:1px solid #f4d68e;box-shadow:0 0 12px #eac77f33,inset 0 0 10px #eac77f22;animation:uiCollectRing .65s ease-out both}
.eatFxPts{padding:5px 12px;border-radius:12px;background:#10291fe8;border:1px solid #eac77f66;font-size:18px;color:#ffe4ac;box-shadow:0 6px 14px #0003}
@keyframes uiCollectRing{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}25%{opacity:.75}100%{opacity:0;transform:translate(-50%,-50%) scale(1.7)}}
@media(max-width:360px){.uiAppearanceCard{padding:15px}.uiThemeGrid{gap:9px}.uiThemePreview{height:90px}.uiRankBadge{gap:2px;padding-inline:3px}.uiRankBadge img{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){.eatFxRing{display:none}.uiThemeChoice{transition:none}}
/* Group lobby: scrollable setup, readable seats, and clear primary action. */
#onlWait{justify-content:flex-start;padding:calc(76px + var(--ui-safe-top)) 18px calc(26px + var(--ui-safe-bottom));background:radial-gradient(ellipse at 50% 0,#2c503c,#0c231c 65%);overscroll-behavior:contain;scrollbar-width:thin}
#onlWait>*{flex-shrink:0}
#onlWait h2{font-size:32px;line-height:1.3;color:#f7e6c2;margin:0}
#onlWait>.sub{font-size:13px;line-height:1.8;max-width:340px;margin:8px 0 18px;padding:0 8px;color:#b7cbb8}
#pubInviteBtn,#onlineFriendsBtn{min-height:48px;max-width:370px!important;border:1px solid #b7c59b44!important;border-radius:15px!important;background:#254734!important;color:#efdfbc!important;font-size:14px!important}
#onlineFriendsBtn{background:#eac77f!important;color:#203b2b!important;border-color:#eac77f!important}
#lobbyMode,#lobbyGoal,#lobbyPublic{max-width:370px!important;flex-wrap:wrap;gap:6px!important;padding:12px!important;background:#ffffff06;border:1px solid #c5d7b722;border-radius:18px!important;margin-top:12px!important}
#lobbyMode::before,#lobbyGoal::before,#lobbyPublic::before{display:block;flex-basis:100%;text-align:right;padding:0 2px 5px;font-size:12px;font-weight:800;color:#bcd0b9}
#lobbyMode::before{content:'طريقة اللعب'}#lobbyGoal::before{content:'نهاية الجولة'}#lobbyPublic::before{content:'خصوصية المجموعة'}
#onlWait .lmBtn{flex:1;min-width:0;min-height:46px;height:auto;padding:9px 6px;font-size:12px;border-radius:11px;background:#0c241c;color:#becfbb;border:1px solid transparent;line-height:1.5;box-shadow:none}
#onlWait .lmBtn.on{background:#d9c58e;color:#203d2b;border-color:#f1dca0}
#onlWait .lmBtn:disabled{opacity:.7}
#lobbyTierTag{font-family:var(--fb)!important;font-size:13px!important;line-height:1.6;border:1px solid #dcc68c55;background:#d9c58e17!important;color:#edd8a7!important;border-radius:12px!important;max-width:370px;flex-wrap:wrap;justify-content:center}
#lobbyPlayers{max-width:370px!important;margin-top:20px!important;text-align:right}
#lobbyPlayers::before{content:'مقاعد الطاولة';display:block;font-size:14px;color:#eee0be;font-weight:800;margin-bottom:12px}
#lobbyPlayers .lobbyRow{padding:12px;gap:10px;border:1px solid #c5d7b729;border-radius:15px;background:#213c2d;min-height:68px}
#lobbyPlayers .lr-ava{width:40px;height:40px;background:#e7e8d6;box-shadow:0 0 0 1px #c2ac73}
#lobbyPlayers .lr-nm{min-width:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:#f1edda}
#lobbyPlayers .lr-tag{font-size:10px;max-width:64px;line-height:1.6;text-align:center;color:#e6cc8c}
#lobbyPlayers .draggableRow{border-color:#d8bf79;background:#2f4d35}
#lobbyPlayers .teamZone{padding:12px 10px 3px;border:1px solid #85b7c555;background:#78b3c509;border-radius:19px;margin-bottom:12px}
#lobbyPlayers .teamZone[data-team="1"]{border-color:#dfb77955;background:#dfb77909}
#lobbyPlayers .teamZoneLabel{font-size:13px;line-height:1.6;color:#b4d8dd;margin-bottom:10px}
#lobbyPlayers .teamZone[data-team="1"] .teamZoneLabel{color:#e5c48f}
#lobbyPlayers .teamZone.dropTarget{border-color:#ffe2a0;background:#eac77f1a}
#lobbyStart{max-width:370px!important;min-height:54px;background:linear-gradient(#f0dca5,#d2ae68)!important;color:#233c2a!important;border-radius:16px!important;box-shadow:0 3px 0 #88703e,0 8px 20px #0003!important;font-size:21px!important}
#lobbyHint{animation:none!important;margin-top:16px!important;max-width:350px;line-height:1.8;font-size:12px!important;color:#b7cbb1!important}
/* Chat rank insignia remain distinct from message text and wrap with long names. */
.uiChatIdentity{flex-wrap:wrap;align-items:center!important;column-gap:8px!important;row-gap:4px;margin-bottom:7px!important;border-bottom:1px solid #80947722;padding-bottom:7px}
.uiChatIdentity>span:first-child{font-size:12px!important;line-height:1.5;overflow-wrap:anywhere;color:#31533b!important}
#chList .uiRankBadge{font-size:10px!important;line-height:1.4;padding:2px 7px 2px 3px;border-radius:8px;background:#f0f2e8;border-color:#d6deca;color:#40593a!important;gap:4px;box-shadow:none}
#chList .uiRankBadge img{width:22px;height:22px;filter:drop-shadow(0 1px 1px #0002)}
#chList .cBody>span{flex-wrap:wrap;row-gap:4px}
/* Player page: club identity cover, large stats, and grouped account controls. */
#profile{background:#edf0e6}
#profile>div{padding-bottom:calc(28px + var(--ui-safe-bottom));gap:0}
#pfHead{position:relative;flex-shrink:0;isolation:isolate;background:#102d23 url('ui-art/room-emerald.svg') center 22%/cover;border-bottom:1px solid #d8bf7b77;border-radius:0 0 32px 32px;padding:calc(20px + var(--ui-safe-top)) 18px 29px;box-shadow:0 10px 22px #18351d16}
#pfHead::before{content:'بطاقة اللاعب';display:block;position:absolute;top:calc(25px + var(--ui-safe-top));left:75px;right:75px;text-align:center;color:#d8c28c;font-weight:800;font-size:13px;letter-spacing:0}
#pfBack,#pfEdit{z-index:2;top:calc(16px + var(--ui-safe-top));background:#071d17cc;color:#f5dfad;border:1px solid #d8bf7b44}
#pfBack{left:16px}#pfEdit{right:16px;min-width:58px}
#pfAva{width:96px;height:96px;margin:52px auto 13px;flex-shrink:0;background:#dfe5d5;box-shadow:0 0 0 3px var(--rankColor,#d6bd7d),0 0 0 9px #eac77f0f,0 8px 22px #0004}
#pfAva img,#pfAva>svg{width:100%!important;height:100%!important;object-fit:cover}
#pfName{font-size:30px;line-height:1.4;margin:0 0 8px;color:#fff1d1}
#pfMeta{display:flex;flex-direction:column;align-items:center;gap:9px}
#pfRankBadge .uiRankBadge{font-size:12px!important;background:#081e19cc;color:#f1dfb8!important;border-color:#bdac7744;padding:3px 10px 3px 5px;border-radius:11px}
#pfRankBadge .uiRankBadge img{width:30px;height:30px}
#pfCode{font-size:12px!important;color:#bfd0b9!important;letter-spacing:.6px;background:none!important;padding:0!important}
#pfCode:empty{display:none}
#pfStats{position:relative;gap:8px;padding:20px 16px 0}
#pfStats .pfStat{padding:16px 4px;border:1px solid #d9e1ce;border-radius:20px;background:#fffdf5;box-shadow:0 4px 10px #20382008}
#pfStats .pfStat b{font-size:30px;line-height:1.3;color:#284d34}
#pfStats .pfStat>span:last-child{font-size:12px;line-height:1.6;margin-top:5px;color:#6b7b60}
#pfWin,#pfRankProgress{background:#fffdf5!important;border:1px solid #d9e1ce!important;border-radius:20px!important;padding:18px!important;margin:12px 16px 0!important}
#pfWin .row{align-items:center;margin-bottom:10px}
#stRate{font-family:var(--fh);font-size:25px;color:#30563a}
#pfBar{height:8px;border-radius:9px;background:#e7eddd}
#pfRankProgress::before{content:'المسيرة التنافسية';display:block;font-size:13px;font-weight:800;color:#6b7b60;margin-bottom:12px}
#pfRankPtsNum{font-size:32px!important;color:#294e34!important}
#pfRankProgress>div:nth-child(2){height:8px!important;background:#e7eddd!important}
#pfRankRemain{font-size:13px!important;line-height:1.8;color:#6b7b60!important}
#pfHistory{padding:16px;background:#fffdf5;border:1px solid #d9e1ce;border-radius:20px}
#pfHistoryRow{gap:8px!important}#pfHistoryRow>div{border-radius:12px!important;min-height:44px;min-width:40px}
#pfAchievements{padding:8px 0 0}#pfAchievements>.t{font-size:15px;margin-bottom:12px;color:#315339}
#pfAchievementsList>div{background:#fffdf5!important;border-radius:17px!important;padding:14px!important;border-color:#d9e1ce!important}
#pfAchievementsList b{font-size:16px!important}#pfAchievementsList span{line-height:1.7}
#pfAddFriend{width:calc(100% - 32px)!important;min-height:50px;margin:18px 16px 0!important;background:#2a563b!important;border-radius:16px!important;box-shadow:0 3px 0 #193a27!important}
#profile.uiOtherProfile #pfDeleteAcc,#profile.uiOtherProfile #uiAppearanceBtn{display:none!important}
#pfOut{background:#e3eadd;border-color:#c5d2bb;margin-top:12px;border-radius:15px}
/* In-game player card: compact dark cover with contrasting paper stats. */
#miniProfileOverlay{padding:calc(22px + var(--ui-safe-top)) 18px calc(22px + var(--ui-safe-bottom));background:#041810d9;backdrop-filter:none;overflow:auto}
#miniProfileCard{width:100%;max-width:350px;max-height:100%;overflow-y:auto;overscroll-behavior:contain;border:1px solid #cfb67488;border-radius:27px;padding:60px 20px 22px;background:#102d23 url('ui-art/room-emerald.svg') center top/cover;box-shadow:0 22px 60px #0006;text-align:center}
#miniProfileCard::before{content:'بطاقة اللاعب';position:absolute;top:23px;right:22px;font-size:13px;font-weight:800;color:#d5c291}
#mpClose{top:13px;left:13px;width:44px;height:44px;background:#071c17!important;color:#eddbad!important;border:1px solid #d8bf7b44;border-radius:13px!important}
#mpAva{width:80px;height:80px;margin:4px auto 15px;box-shadow:0 0 0 3px var(--rankColor,#d6bd7d),0 0 0 8px #eac77f0f,0 8px 20px #0004}
#mpAva img,#mpAva>svg{width:100%!important;height:100%!important;object-fit:cover}
#mpName{font-size:27px;line-height:1.5;color:#fff0ce;margin-bottom:9px;overflow-wrap:anywhere}
#mpBadge{margin-bottom:19px}#mpBadge .uiRankBadge{background:#071f19;color:#f0dfbd!important;border-color:#c1b47c55;font-size:12px!important;padding:3px 10px 3px 5px}
#mpStats{gap:7px;background:none;padding:0;margin-bottom:15px}
#mpStats>div{flex:1;min-width:0;border:1px solid #dedfca;border-radius:16px;background:#f4f3e7;padding:13px 3px;gap:5px}
#mpStats b{font-size:25px;line-height:1.3;color:#294c34;font-variant-numeric:tabular-nums}
#mpStats span{font-size:11px;line-height:1.5;color:#6a775e}
#mpRankLine{min-height:24px;font-size:13px;line-height:1.7;color:#d9ca99;margin:4px 0 18px}
#mpFriendBtn{min-height:49px;background:linear-gradient(#efdaa2,#d2b271);color:#233e2c;border:1px solid #e6cc8c;border-radius:15px;box-shadow:0 3px 0 #87703e}
#mpFriendBtn:disabled{opacity:1;background:#ffffff08;color:#c0d1b7;border-color:#b1c59c44;box-shadow:none}
@media(max-width:360px){#onlWait{padding-inline:12px}#onlWait .lmBtn{font-size:11px}#lobbyPlayers .lr-tag{max-width:52px}#pfStats{padding-inline:12px;gap:6px}#pfStats .pfStat b{font-size:27px}#miniProfileCard{padding-inline:15px}.uiChatIdentity{gap:5px!important}}
#profile>div>*{flex-shrink:0}
#lobbyPlayers .lobbyRow:not(.draggableRow){touch-action:pan-y}
#pfHistoryRow>span{min-width:40px;min-height:40px;border-radius:12px!important}
.uiMessageText.uiMine .uiChatIdentity{border-bottom-color:#88764433}
/* Fix conflicting physical insets inherited from the original profile controls. */
#pfBack{right:16px;left:auto;width:44px;height:44px;padding:0;min-width:44px}
#pfEdit{left:16px;right:auto;width:auto;max-width:76px}
#pfHead::before{left:98px;right:76px}
/* One scroll surface for podium, prize banner and all ranking rows. */
#uiLeaderboardScroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(96px + var(--ui-safe-bottom))}
#uiLeaderboardScroll #lbList{flex:none;overflow:visible!important;padding-bottom:16px!important}
#uiLeaderboardScroll #lbPodium{flex:none}
/* Dedicated friend discovery page. */
#addfr>div{background:radial-gradient(ellipse at 50% 0,#2d533d,#102d23 58%)!important;padding-top:var(--ui-safe-top)}
.uiAfHeader{display:flex;align-items:center;gap:14px;padding:22px 18px 12px;flex:none}
.uiAfHeader h2{font-family:var(--fh);font-size:30px;color:#f5e4be;margin:0;line-height:1.4}
.uiAfHeader p{font-size:12px;line-height:1.7;color:#bdd0b8;margin:4px 0 0}
#afBack{width:44px;height:44px;border:1px solid #d6c08a44;background:#071f19;color:#e9d19c}
.uiAfSearch{display:flex;gap:12px;padding:8px 18px 18px;flex:none}
#afSearch{background:#f8f7ed!important;border:1px solid #d3dcbc!important;border-radius:16px!important;padding:15px 16px 15px 46px!important;color:#25472f!important;font-size:16px!important;text-align:right}
#afSearch::placeholder{color:#7a896d;font-size:13px}
.uiAfSearch>div>span{color:#6b8057!important;font-size:17px!important}
#afResults{padding:0 18px 18px!important;gap:12px!important}
#afResults>.uiFriendResult{background:#f8f7ed!important;border:1px solid #d8dfc9;border-radius:19px!important;padding:15px!important;gap:11px!important;margin:0!important;box-shadow:0 5px 15px #0002;flex-wrap:wrap;flex-shrink:0}
.uiFriendResult>div:nth-child(2)>div:first-child{color:#264a31!important;font-size:15px!important;line-height:1.6}
.uiFriendResult>div:nth-child(2)>div:nth-child(2){flex-wrap:wrap;gap:6px!important}
.uiFriendResult>div:nth-child(2)>div:nth-child(2)>span:not(.uiRankBadge){color:#77866a!important;font-size:12px!important}
.uiFriendResult .frSearchAva{width:48px!important;height:48px!important;background:#e3e8d8!important;box-shadow:0 0 0 2px var(--rankColor,#b1c29d)}
.uiFriendResult>button{min-height:44px;min-width:72px;border:1px solid #436d4655!important;background:#28573b!important;color:#f8f4df!important;border-radius:13px!important;margin-inline-start:auto}
.uiFriendResult>button:disabled{background:#e4ebda!important;color:#536c45!important}
#afResults>div:only-child:not(.uiFriendResult){margin-top:18px;padding:30px 20px!important;border:1px dashed #bbcca855;background:#ffffff06;border-radius:22px!important;color:#c3d5bc!important;font-size:14px!important;line-height:1.9}
#afRecentWrap{flex:none;margin:0 18px 16px;border:1px solid #b5c59c33;border-radius:20px;padding:14px 14px calc(16px + var(--ui-safe-bottom))!important;background:#071f1966}
#afRecentWrap>div{color:#b9cdb1!important;line-height:1.8}
#afRecent>span{background:#26462f!important;color:#e3e9d3!important;border:1px solid #b5c59c33;min-height:40px;border-radius:12px!important}
#afMyCode{color:#eed69b!important}
/* Conversation entry, new messages and unread previews. */
#chWrap{position:absolute;inset:0;display:flex;flex-direction:column}
#chHead{padding-bottom:4px}#chHead .t{font-size:25px;line-height:1.5}
#chList{position:relative;scrollbar-width:thin;overflow-anchor:none;padding-inline:2px}
#uiNewMessages{align-self:center;flex:none;max-width:90%;min-height:42px;margin:8px 0 0;padding:9px 18px;border:1px solid #f4deb0;border-radius:99px;background:#eac77f;color:#25412d;font-size:13px;font-weight:800;box-shadow:0 4px 12px #0003;z-index:3}
#chList>.chRow{flex-shrink:0;background:#f5f5e9;border:1px solid #dce3d0;border-radius:20px;padding:15px 12px;margin-bottom:10px;text-align:right}
#chList>.chRow.uiUnreadConversation{background:#f6edce;border-color:#dac384;box-shadow:inset -3px 0 #b8974e,0 4px 12px #0002}
.uiUnreadConversation .cMsg{font-weight:800;color:#355438!important}
.uiUnreadLabel{display:inline-block;margin-top:6px;padding:3px 7px;background:#2b573d;color:#fff3d3;font-size:10px;border-radius:8px}
#chList .cSide{flex:none;text-align:center;align-self:center;min-width:42px}
#chList .cMsg{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.6}
#chList .cDelBtn{width:36px!important;min-width:36px;background:#a54e3c08!important;border-radius:11px!important}
#chInput{padding-top:12px;border-top:1px solid #b5c59c1a}
#chList:empty::before{content:'جاري تحميل المحادثة…';display:block;text-align:center;padding:28px 16px;color:#b9cbb0;font-size:13px}
@media(max-width:360px){.uiAfHeader{padding-inline:12px}.uiAfHeader h2{font-size:27px}.uiAfSearch{padding-inline:12px}#afResults{padding-inline:12px!important}.uiFriendResult>button{padding-inline:10px!important}#chList .cAva{width:38px;height:38px}#chList>.chRow{gap:7px;padding:12px 9px}#chList .cNm{font-size:13px}}
/* Quick-play waiting room: real seat status, no artificial progress timers. */
#match{background:#0b211a url('ui-art/room-emerald.svg') center/cover!important}
#matchWrap{padding:calc(18px + var(--ui-safe-top)) 18px calc(20px + var(--ui-safe-bottom));overflow-y:auto;overscroll-behavior:contain;gap:0}
#matchWrap>*{flex-shrink:0}
#matchHead{gap:10px;max-width:390px;flex-wrap:wrap}
#matchHead .t{order:1;font-size:24px;line-height:1.4;color:#f6e7c6}
#matchHead .tag{order:2;margin-inline-start:auto;padding:6px 9px;border:1px solid #eac77f2a;background:#ffffff06;color:#b9cbb5;font-size:11px}
#mBack{width:44px;height:44px;order:0;border:1px solid #eac77f33;background:#081d17;color:#eed9ab;border-radius:14px}
#mCircle{margin:30px 0 22px;width:140px;height:130px;background:radial-gradient(ellipse,#eac77f15,transparent 70%);border-radius:24px;animation:none;isolation:isolate}
#mCircle::before{inset:7px;border:1px solid #eac77f26;animation:uiSearchHalo 3s ease-in-out infinite;z-index:-1}
#mCircle::after{inset:20px;border:1px dashed #eac77f33;animation:none;z-index:-1}
.uiMatchCard{position:absolute;width:48px;height:68px;display:grid;place-items:center;border:1px solid #e0c78f;border-radius:8px;background:#f5efd9;color:#244532;font-size:33px;box-shadow:0 5px 14px #0005;transform-origin:50% 100%}
.uiMatchCard:nth-child(1){transform:translateX(24px) rotate(22deg);background:#d9dfcf}
.uiMatchCard:nth-child(2){transform:translateX(-24px) rotate(-22deg);color:#9c4a3d;background:#e8dec3}
.uiMatchCard:nth-child(3){transform:translateY(-7px);background:#fff9e6}
#mTitle{font-size:28px;line-height:1.5;text-align:center;color:#f9ebcc;margin:0}
#mSub{max-width:360px;font-size:13px;line-height:1.8;color:#b5c9b4;padding:0 8px;margin:7px 0 20px}
#mTierBadge{width:100%;max-width:370px;justify-content:center;flex-wrap:wrap;line-height:1.8;background:#eac77f0d!important;color:#ecd5a1!important;border:1px solid #eac77f44;border-radius:15px!important;padding:11px 12px!important;font-family:var(--fb)!important;font-size:13px!important;box-shadow:none!important;margin-bottom:18px!important}
#uiMatchProgress{width:100%;max-width:370px;margin-bottom:17px;display:flex;align-items:center;justify-content:space-between;gap:14px}
#uiMatchCount{font-size:13px;color:#c6d7bd;font-weight:700;font-variant-numeric:tabular-nums}
#uiMatchSteps{display:flex;gap:5px;direction:ltr}#uiMatchSteps i{width:20px;height:5px;border-radius:6px;background:#d5e2c51a;transition:background .25s}
#uiMatchSteps i.ready{background:#eac77f}
#mGrid{max-width:370px;gap:12px}
#mGrid .mSlot{position:relative;min-height:150px;gap:9px;border:1px solid #d3e0bb33;border-radius:21px;padding:18px 10px 14px;background:linear-gradient(145deg,#254b36,#173527);box-shadow:0 6px 15px #0002;animation:uiSeatReady .25s ease-out both}
#mGrid .mSlot.me{border-color:#eac77f88;box-shadow:inset 0 2px #eac77f,0 6px 15px #0002;background:linear-gradient(145deg,#355039,#1b392a)}
#mGrid .mAva{width:57px;height:57px;border:3px solid #203c2b;background:#dce3cc;box-shadow:0 0 0 1px #c3ae73;font-size:27px}
#mGrid .mAva img,#mGrid .mAva>svg{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%}
#mGrid .mNm{font-size:13px;line-height:1.5;color:#f4efdc;min-width:0;max-width:100%;overflow-wrap:anywhere}
#mGrid .mTag{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:3px 8px;background:#a6ce8d12;color:#bddba5;font-size:11px;font-weight:700}
#mGrid .mTag::before{content:'';width:5px;height:5px;border-radius:50%;background:#91b875}
#mGrid .mSlot.empty{background:#081e1755;border:1px dashed #b6cba544;box-shadow:none;animation:none}
#mGrid .empty .mAva{border:1px dashed #a4ba8655;background:#122d20;box-shadow:none;color:#c5d5b4;animation:none}
#mGrid .empty .mNm{color:#a6bea0}#mGrid .empty .mTag{color:#9fb996;background:none}
#mGrid .empty .mTag::before{background:#c4ae7c;animation:uiWaitingDot 1.8s ease-in-out infinite}
#mGrid .uiBotSlot .mTag{background:#eac77f10;color:#d4c398}#mGrid .uiBotSlot .mTag::before{background:#c2ac77}
#mCancel{flex-shrink:0;width:100%;max-width:370px;height:50px;min-height:50px;margin:24px 0 0;padding:10px 20px;border:1px solid #d3dcc23d;border-radius:16px;background:#ffffff06;color:#c7d6be;font-size:14px;box-shadow:none}
@keyframes uiSearchHalo{0%,100%{transform:scale(.95);opacity:.45}50%{transform:scale(1.06);opacity:1}}
@keyframes uiWaitingDot{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes uiSeatReady{from{transform:translateY(7px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(max-height:740px){#mCircle{margin:16px 0 12px;width:110px;height:94px}.uiMatchCard{width:40px;height:56px;font-size:28px}#mTitle{font-size:24px}#mSub{margin-bottom:14px}#mGrid .mSlot{min-height:130px;padding:13px 8px}#mCancel{margin-top:18px}}
@media(max-width:360px){#matchWrap{padding-inline:12px}#matchHead .t{font-size:21px}#matchHead .tag{font-size:10px}#mGrid{gap:9px}#mGrid .mNm{font-size:12px}}
@media(prefers-reduced-motion:reduce){#mCircle::before,#mGrid .empty .mTag::before,#mGrid .mSlot{animation:none!important}#uiMatchSteps i{transition:none}}

#shopList>[data-theme="theme-popular"]>div:first-child{height:150px!important;background-position:center 22%!important}

/* QUICK-MATCH — العدد الحقيقي وخيارات البحث فقط */
.uiTierSearching{font-size:12px;color:var(--ui-gold-bright);font-weight:700;margin-top:4px}
.uiQuickActions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.uiQuickActions button{font:inherit;color:var(--ui-gold-bright);background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:14px;padding:10px 16px;min-height:44px;cursor:pointer}
/* MATCH VIEWPORT — keep search controls inside the available screen */
#matchWrap{overflow-y:auto;gap:6px}
#matchHead{flex-wrap:nowrap}
#matchHead .t{font-size:clamp(18px,5vw,24px)}
#matchHead .tag{white-space:nowrap}
#match #mCircle{width:100px;height:80px;margin:4px 0;flex:0 1 80px;min-height:0}
#match .uiMatchCard{width:36px;height:50px;font-size:25px}
#match #mTitle{font-size:clamp(19px,5vw,26px);line-height:1.3}
#match #mSub{margin:0;line-height:1.5;font-size:12px;text-align:center}
#match #mTierBadge{padding:5px 10px!important;margin-bottom:0!important;font-size:12px!important;line-height:1.5}
#match #uiMatchProgress{margin-bottom:0;min-height:22px}
#match #mGrid{flex:1 1 0;min-height:160px;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#match #mGrid .mSlot{min-height:0;padding:6px;gap:4px;animation:none}
#match #mGrid .mAva{width:40px;height:40px;font-size:22px;flex-shrink:0}
#match #mGrid .mNm{line-height:1.2;font-size:12px}
#match #mGrid .mTag{padding:2px 5px;font-size:10px;line-height:1.2}
#match .uiQuickActions{width:100%;max-width:370px;margin:0;flex-wrap:nowrap;gap:8px}
#match .uiQuickActions button{flex:1;min-width:0;padding:6px 8px;font-size:12px;min-height:44px}
#match #mCancel{margin:0;min-height:44px;height:44px;padding:8px 16px}
@media(max-height:650px){
  #match #mCircle{display:none}
  #match #mGrid .mTag{display:none}
}
@media(max-height:500px) and (min-width:500px){
  #match #mGrid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);min-height:72px}
  #match #mTitle{font-size:18px}
  #match #mSub{font-size:11px}
}
@media(max-height:650px){
  #matchWrap{padding-top:calc(8px + var(--ui-safe-top));padding-bottom:calc(8px + var(--ui-safe-bottom));gap:3px}
  #match #mGrid{min-height:122px;gap:6px}
  #match #mGrid .mAva{width:32px;height:32px;font-size:18px}
  #match #mGrid .mSlot{padding:4px;gap:3px}
  #match #mTitle{font-size:19px}
  #match #mSub{font-size:11px}
  #match #mTierBadge{padding:3px 8px!important}
}

/* ENTRY DESIGN — welcome, loading and account screens only. */
#welcome,#login,#pageLoader{background-color:var(--ui-green);background-image:radial-gradient(ellipse at 50% 24%,#335b444d,transparent 65%),linear-gradient(145deg,#143e30,#0a231c);color:var(--ui-paper);isolation:isolate}
#welcome::before,#login::before,#pageLoader::before{content:'';position:absolute;inset:12px;border:1px solid var(--ui-border);border-radius:28px;pointer-events:none;z-index:-1}
#welcome::after,#pageLoader::after{content:'';position:absolute;width:360px;height:360px;max-width:90%;left:50%;top:15%;transform:translateX(-50%) rotate(45deg);border:1px solid #eac77f10;border-radius:46px;pointer-events:none;z-index:-1}
#welcome #wWrap{padding-top:var(--ui-safe-top);padding-bottom:calc(18px + var(--ui-safe-bottom));overflow-y:auto;overscroll-behavior:contain}
#welcome #wWrap>*{flex-shrink:0}
#welcome .saduSvg{height:14px;margin-top:12px;opacity:.5}
#welcome #wMid{flex:1 0 auto;min-height:360px;padding:30px 22px 18px;justify-content:center}
.uiEntryEyebrow{font-family:var(--fb);font-size:11px;font-weight:600;line-height:1.8;letter-spacing:.18em;color:var(--ui-gold);text-align:center}
#welcome #wCards{width:280px;max-width:100%;height:205px;margin:20px 0 16px;flex:none;isolation:isolate}
#welcome #wCards::before{content:'';position:absolute;inset:0;border:1px solid #eac77f24;border-radius:50%;background:radial-gradient(ellipse,#eac77f15,transparent 68%);filter:none;transform:none;z-index:-1}
#welcome #wCards::after{content:'';position:absolute;inset:-12px 18px;border:1px dashed #eac77f1a;border-radius:50%;z-index:-1}
#welcome #wCards img{position:absolute;left:calc(50% - 53px);right:auto;top:22px;width:106px;height:154px;object-fit:contain;padding:5px;border:1px solid #e5cf9b;border-radius:11px;background:var(--ui-paper);box-shadow:0 13px 25px #0005;transform-origin:50% 85%;transform:translate(var(--entry-x),var(--entry-y)) rotate(var(--entry-angle));animation:uiEntryCards 5.4s ease-in-out infinite;animation-delay:var(--entry-delay)}
#welcome #wCards img:nth-child(1){--entry-x:-73px;--entry-y:19px;--entry-angle:-24deg;--entry-delay:-1.1s;z-index:1}
#welcome #wCards img:nth-child(2){--entry-x:-27px;--entry-y:-4px;--entry-angle:-9deg;--entry-delay:-.5s;z-index:3}
#welcome #wCards img:nth-child(3){--entry-x:27px;--entry-y:-4px;--entry-angle:9deg;--entry-delay:-1.8s;z-index:2}
#welcome #wCards img:nth-child(4){--entry-x:73px;--entry-y:19px;--entry-angle:24deg;--entry-delay:-2.6s;z-index:1}
#welcome #wTitle{font-family:var(--fh);font-size:clamp(60px,18vw,78px);font-weight:400;line-height:1.3;color:var(--ui-gold-bright);text-shadow:0 3px 0 #70593655,0 10px 32px #0004;animation:none;padding-inline:8px}
#welcome #wSub{font-family:var(--fb);font-size:16px;font-weight:500;line-height:1.8;color:var(--ui-muted);margin-top:0;animation:none;max-width:100%;text-align:center}
#welcome #wBtns{padding:16px 28px 0;gap:12px;animation:none}
#welcome #wLogin{height:auto;min-height:56px;padding:10px 20px;border:1px solid #f4dcab;border-radius:17px;background:linear-gradient(135deg,var(--ui-gold-bright),var(--ui-gold));color:var(--ui-green);font-family:var(--fb);font-size:18px;font-weight:800;line-height:1.8;box-shadow:0 5px 0 #846a3d,0 10px 24px #0003;animation:none}
#welcome #wLogin:active{transform:translateY(3px);box-shadow:0 2px 0 #846a3d}
#welcome #wLoading{flex-direction:column;gap:10px;padding:5px 0;min-height:58px;font-size:14px;font-weight:600;line-height:1.8;color:var(--ui-gold-bright)}
#welcome #wLoading .wSpinner{display:none}
.uiEntryRail{display:block;position:relative;width:100%;height:4px;background:#eac77f1a;border-radius:9px;overflow:hidden;isolation:isolate}
.uiEntryRail::after{content:'';position:absolute;inset:0 auto 0 0;width:38%;background:linear-gradient(90deg,transparent,var(--ui-gold-bright),var(--ui-gold));border-radius:inherit;animation:uiEntryLoading 1.8s ease-in-out infinite}
.uiEntryTips{flex:none;width:calc(100% - 56px);max-width:374px;margin:0 auto;padding:14px 16px;text-align:center;border:1px solid var(--ui-border);border-radius:18px;background:#eac77f05}
.uiEntryTipsTitle{display:block;font-family:var(--fb);font-size:11px;line-height:1.8;font-weight:700;color:var(--ui-gold);margin-bottom:3px}
.uiEntryTipsText{display:grid;align-items:center;font-family:var(--fb);font-size:13px;line-height:1.9;font-weight:500;color:var(--ui-muted)}
.uiEntryTipsText>span{grid-area:1/1;opacity:0;animation:uiEntryTip 18s linear infinite}
.uiEntryTipsText>span:nth-child(2){animation-delay:6s}
.uiEntryTipsText>span:nth-child(3){animation-delay:12s}
.uiEntrySr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}
#welcome #wVer{padding:18px 12px 4px;color:var(--ui-muted);opacity:.7;font-size:10px;line-height:1.8;animation:none}
#welcome #buildTag{bottom:var(--ui-safe-bottom)!important}
#pageLoader{padding:calc(28px + var(--ui-safe-top)) 28px calc(28px + var(--ui-safe-bottom));gap:18px;overflow-y:auto}
#pageLoader>*{flex-shrink:0}
#pageLoader .uiEntryBrand{font-family:var(--fh);font-size:42px;line-height:1.5;font-weight:400;color:var(--ui-gold-bright);margin-bottom:10px}
#pageLoader #plCards{width:220px;max-width:100%;height:150px;margin:0}
#pageLoader #plCards img{width:76px;height:110px;object-fit:contain;padding:4px;border:1px solid var(--ui-gold);border-radius:9px;background:var(--ui-paper);box-shadow:0 9px 20px #0004;animation:uiEntryLoaderCard 3s ease-in-out infinite}
#pageLoader #plCards img:nth-child(1){left:25px;right:auto;top:24px;transform:rotate(-19deg);animation-delay:-.4s}
#pageLoader #plCards img:nth-child(2){left:72px;right:auto;top:8px;transform:none;z-index:2;animation-delay:-1.2s}
#pageLoader #plCards img:nth-child(3){left:119px;right:auto;top:24px;transform:rotate(19deg);animation-delay:-2s}
#pageLoader #pageLoaderTxt{font-family:var(--fb);font-size:17px;font-weight:700;line-height:1.8;max-width:340px;text-align:center;color:var(--ui-gold-bright);overflow-wrap:anywhere}
#pageLoader>.uiEntryRail{max-width:260px;margin-bottom:12px}
#pageLoader>.uiEntryTips{width:100%;max-width:340px}
/* Let every field keep its height; the account page itself scrolls. */
#login #lgWrap{overscroll-behavior:contain;scroll-padding-block:20px}
#login #lgWrap>*,#login #lgFields>*,#signup #suWrap>*,#gcomplete #suWrap>*{flex-shrink:0;min-width:0}
#login .saduSvg{height:12px;position:absolute;top:0;opacity:.35!important;pointer-events:none}
#login #lgTopRow{flex-direction:row;align-items:center;justify-content:space-between;padding-inline:24px}
.uiEntryWordmark{font-family:var(--fh);font-size:24px;line-height:1.7;color:var(--ui-gold);font-weight:400}
.uiEntryWordmark i{font-family:serif;font-style:normal;font-size:16px;margin-inline-start:6px}
#login #lgBack{width:44px;height:44px;border:1px solid var(--ui-border);border-radius:14px;background:#ffffff05;color:var(--ui-gold-bright)}
#login #lgBack svg{transform:rotate(180deg)}
#login #lgHead{padding:26px 24px 0}
#login #lgHead .t{font-family:var(--fh);font-size:36px;font-weight:400;line-height:1.55;color:var(--ui-paper)}
#login #lgHead .sub{font-size:14px;font-weight:500;line-height:1.9;color:var(--ui-muted);margin-top:0}
#login #lgFields{padding:25px 24px 0;gap:14px}
#login .lgLbl,#signup .lgLbl,#gcomplete .lgLbl{display:block;font-family:var(--fb);font-size:14px;font-weight:700;line-height:1.8;margin:0 2px 6px}
#login .lgLbl{color:var(--ui-muted)}
#login .lgField,#signup .lgField,#gcomplete .lgField{min-width:0;width:100%;flex:none}
#login .lgField input,#signup .lgField input,#gcomplete .lgField input{display:block;min-width:0;width:100%;height:auto;min-height:54px;padding:11px 44px!important;border:1px solid var(--ui-paper-line);border-radius:14px;background:var(--ui-paper);font-family:var(--fb);font-size:16px;font-weight:500;line-height:1.8;color:var(--ui-text);box-shadow:none;scroll-margin-block:24px}
#login .lgField input::placeholder,#signup .lgField input::placeholder,#gcomplete .lgField input::placeholder{color:var(--ui-secondary);opacity:.9}
#login .lgField input:focus,#signup .lgField input:focus,#gcomplete .lgField input:focus{border-color:var(--ui-gold);box-shadow:0 0 0 3px #eac77f30}
#login .lgField .fic,#signup .lgField .fic,#gcomplete .lgField .fic{left:auto!important;right:15px!important;line-height:1;pointer-events:none;color:var(--ui-secondary);font-size:15px}
#login #lgEmail,#signup #suEmail,#signup #suUser,#gcomplete #gcUser{direction:ltr;text-align:left}
#signup #suName,#gcomplete #gcName,#signup #suPass,#signup #suPass2{direction:rtl!important;text-align:right!important}
#login #lgForgot{align-self:flex-start;min-height:44px;padding:9px 2px;margin:-4px 0 0;border:0;background:none;color:var(--ui-gold);font-family:var(--fb);font-size:13px;font-weight:600;line-height:1.8;text-align:right}
#login #lgGo,#signup #suGo,#gcomplete #gcGo{height:auto;min-height:56px;padding:10px 18px;font-family:var(--fb);font-size:17px;font-weight:800;line-height:1.8;background:linear-gradient(135deg,var(--ui-gold-bright),var(--ui-gold))!important;color:var(--ui-green)!important;border:1px solid #f4dcab;box-shadow:0 4px 0 #846a3d!important;border-radius:16px!important}
#login .lgOr{margin:4px 0;color:var(--ui-muted);font-size:12px;font-weight:500;line-height:1.8}
#login .lgOr::before,#login .lgOr::after{background:var(--ui-border)}
#login .lgSoc{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#login .lgSoc button{height:auto;min-height:52px;padding:10px 14px;border:1px solid #e9e4d5;border-radius:14px;background:var(--ui-paper);font-family:var(--fb);font-size:14px;font-weight:700;line-height:1.8;gap:10px;box-shadow:none;white-space:normal}
#login .lgSoc svg{flex:none;width:19px;height:19px}
#login #lgBottom{padding:22px 24px calc(26px + var(--ui-safe-bottom));margin-top:auto}
#login #lgSignupLink{display:inline-block;min-height:44px;padding:9px 4px;border:0;background:none;color:var(--ui-gold-bright);font-family:var(--fb);font-size:14px;font-weight:600;line-height:1.8}
#login #lgTerms{max-width:310px;margin:12px auto 0;font-size:11px;font-weight:400;line-height:1.9;color:var(--ui-muted)}
#signup,#gcomplete{background:var(--ui-paper);color:var(--ui-text)}
#signup #suWrap,#gcomplete #suWrap{padding-inline:24px;overscroll-behavior:contain;scroll-padding-block:20px}
#signup .suTopHead,#gcomplete .suTopHead{align-items:flex-start;gap:14px;padding:0 0 20px;margin-bottom:22px;border-bottom:1px solid var(--ui-paper-line)}
#signup .suTopHead .qBtn{width:44px;height:44px;border:1px solid var(--ui-paper-line);border-radius:14px;background:#eeeede;color:var(--ui-text);margin-top:5px}
#signup .suTopHead .t,#gcomplete .suTopHead .t{display:block;min-width:0;font-family:var(--fh);font-size:31px;line-height:1.5!important;font-weight:400;color:var(--ui-text)}
#signup .suTopHead small,#gcomplete .suTopHead small{display:block;font-family:var(--fb)!important;font-size:13px!important;font-weight:500!important;line-height:1.9;color:var(--ui-secondary)!important;margin-top:2px}
#gcomplete .suTopHead>span:first-child:not(.t){display:none}
#signup .lgLbl,#gcomplete .lgLbl{color:var(--ui-text);margin-top:0}
#signup .lgField,#gcomplete .lgField{margin-bottom:16px}
#signup #suUserHint,#gcomplete #suUserHint{font-size:11px;font-weight:500;line-height:1.9;color:var(--ui-secondary);margin:-8px 2px 17px;overflow-wrap:anywhere}
.uiEntryAvatarPicker{display:block;border:1px solid var(--ui-paper-line);border-radius:16px;background:#ffffff80;margin:4px 0 16px;overflow:hidden}
.uiEntryAvatarPicker>summary{padding:14px 16px;cursor:pointer;font-family:var(--fb);font-size:14px;font-weight:700;line-height:1.9;color:var(--ui-text);min-height:54px}
.uiEntryAvatarPicker>summary::marker{color:var(--ui-secondary)}
.uiEntryAvatarPicker>summary>span{font-size:11px;font-weight:500;color:var(--ui-secondary);margin-inline-start:8px}
.uiEntryAvatarPicker[open]>summary{border-bottom:1px solid var(--ui-paper-line);margin-bottom:12px}
#signup .uiEntryAvatarPicker .suLbl2,#gcomplete .uiEntryAvatarPicker .suLbl2{color:var(--ui-secondary);font-size:12px;line-height:1.8;margin:0 16px 12px;font-weight:500}
#signup #suUploadBtn,#gcomplete #gcUploadBtn{width:calc(100% - 32px)!important;margin:0 16px 14px!important;padding:11px 10px!important;min-height:46px;font-size:12px!important;line-height:1.9;border-color:var(--ui-paper-line)!important;color:var(--ui-text)!important;background:var(--ui-paper)!important;white-space:normal}
#signup #suAvGrid,#gcomplete #gcAvGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:5px 17px 17px;margin:0;max-height:250px;overflow-y:auto;overscroll-behavior:contain}
#signup .suAv,#gcomplete .suAv{min-width:0;width:100%;max-width:62px;justify-self:center;background:var(--ui-paper-line);border:2px solid transparent}
#signup .suAv img,#gcomplete .suAv img{width:100%!important;height:100%!important;object-fit:cover}
#signup .suAv.sel,#gcomplete .suAv.sel{box-shadow:0 0 0 2px var(--ui-gold);border-color:var(--ui-green);transform:none}
#signup #suGo,#gcomplete #gcGo{margin-top:4px}
#signup #suToLogin{min-height:44px;margin-top:18px;padding:8px 4px;background:none;border:0;color:var(--ui-secondary);font-family:var(--fb);font-size:14px;font-weight:500;line-height:1.9;text-align:center}
#signup #suToLogin b{color:var(--ui-text);font-weight:700}
#welcome button:focus-visible,#login button:focus-visible,#signup button:focus-visible,#gcomplete button:focus-visible,.uiEntryAvatarPicker>summary:focus-visible{outline:3px solid var(--ui-gold);outline-offset:4px}
@keyframes uiEntryCards{0%,100%{transform:translate(var(--entry-x),var(--entry-y)) rotate(var(--entry-angle))}50%{transform:translate(var(--entry-x),calc(var(--entry-y) - 7px)) rotate(var(--entry-angle))}}
@keyframes uiEntryLoaderCard{0%,100%{translate:0 0}50%{translate:0 -8px}}
@keyframes uiEntryLoading{0%{left:-38%}100%{left:100%}}
@keyframes uiEntryTip{0%,28%{opacity:1}32%,96%{opacity:0}100%{opacity:1}}
@media(max-height:700px){#welcome #wMid{min-height:270px;padding-top:15px;padding-bottom:12px}#welcome #wCards{height:162px;margin:12px 0 8px}#welcome #wCards img{width:88px;height:128px;left:calc(50% - 44px);top:7px}#welcome #wTitle{font-size:58px}#welcome .uiEntryTips{padding:10px 14px}#welcome #wVer{padding-top:13px}#login #lgHead{padding-top:14px}#login #lgFields{padding-top:16px}#pageLoader{gap:12px}#pageLoader .uiEntryBrand{font-size:34px;margin:0}}
@media(max-height:600px){#welcome #wMid{min-height:240px;padding-block:8px}#welcome #wCards{height:140px;margin:8px 0 4px}#welcome #wCards img{width:82px;height:120px;left:calc(50% - 41px);top:4px}#welcome #wTitle{font-size:50px}#welcome #wSub{font-size:14px}#welcome .uiEntryTips{padding-block:9px}#welcome .uiEntryTipsText{font-size:12px}#welcome #wBtns{padding-top:13px}#welcome #wVer{padding-top:11px}}
@media(max-width:350px){#welcome #wBtns{padding-inline:20px}.uiEntryTips{width:calc(100% - 40px)}#welcome #wMid{padding-inline:14px}#welcome #wCards{width:254px}#login #lgTopRow,#login #lgFields,#login #lgBottom,#signup #suWrap,#gcomplete #suWrap{padding-inline:18px}#login #lgHead .t{font-size:32px}#signup .suTopHead .t,#gcomplete .suTopHead .t{font-size:28px}}
@media(max-height:520px){#welcome #wMid{min-height:240px}#welcome .uiEntryEyebrow{display:none}#pageLoader{justify-content:flex-start}#pageLoader #plCards{height:128px}}
@media(prefers-reduced-motion:reduce){#welcome #wCards img,#pageLoader #plCards img,.uiEntryRail::after,.uiEntryTipsText>span{animation:none!important}.uiEntryRail::after{left:31%}.uiEntryTipsText>span{opacity:0}.uiEntryTipsText>span:first-child{opacity:1}#welcome button,#login button,#signup button,#gcomplete button{transition:none!important}}

/* v317 — table identity, control recovery and spectator status. */
#game #topbar,#onl #topbar{gap:6px;isolation:isolate}
#game #topbar .uiMatchHeader,#onl #oHeaderTtl{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:7px;margin:0;line-height:1.25;font-family:var(--fb);white-space:normal;color:var(--ui-gold-bright)}
.uiMatchWords{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:right}
.uiMatchTitleLine{display:flex;align-items:center;gap:5px;min-width:0}
#uiOnlineTitle,#game #modeTtl{font-family:var(--fb);font-size:13px;font-weight:900;color:var(--ui-gold-bright);white-space:nowrap;line-height:1.3}
.uiMatchDetail{font-size:10px;font-weight:700;color:var(--ui-muted);white-space:nowrap;line-height:1.4}
#game .uiMatchGoal,#onl .uiMatchGoal{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 7px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-panel);color:var(--ui-gold-bright);font-family:var(--fb);font-size:11px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap;box-shadow:inset 0 1px 0 var(--ui-border)}
#oHeaderTtl #connDot{flex:none;margin:0;width:6px;height:6px}
#oSpecCount{flex:none;font-size:9px;color:var(--ui-muted);white-space:nowrap;line-height:1}
#game #topbar>button,#onl #topbar>button{flex:none;min-width:36px;min-height:40px;padding-inline:7px;border-radius:12px;text-decoration:none}
#game .seat .pts,#onl .seat .pts,#myPile .pts,#oMyPile .pts{border:1px solid var(--ui-border);border-radius:9px;padding:3px 6px;font-family:var(--fb);font-size:12px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1.2;color:var(--ui-gold-bright)}
#game .pts b,#onl .pts b{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap}
#game .pts small,#onl .pts small{font-family:var(--fb);font-size:8px;font-weight:700;color:var(--ui-muted)}
.uiAutoBadge{position:absolute;z-index:4;bottom:-2px;left:50%;transform:translateX(-50%);padding:2px 5px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-green);color:var(--ui-gold-bright);font-family:var(--fb);font-size:8px;font-weight:800;line-height:1.3;white-space:nowrap;pointer-events:none}
.uiSelfName{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;max-width:115px}
#uiResumeControl{min-height:32px;padding:4px 8px;border:1px solid var(--ui-gold);border-radius:9px;background:var(--ui-gold);color:var(--ui-green);font-family:var(--fb);font-size:10px;font-weight:900;line-height:1.2;white-space:nowrap;cursor:pointer}
.uiAutoText{font-size:9px;font-weight:800;color:var(--ui-gold)}
#specNotice.uiSpectatorNotice{position:fixed;top:calc(12px + var(--ui-safe-top));left:12px;right:12px;z-index:500;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;max-width:406px;max-height:calc(100dvh - 24px - var(--ui-safe-top) - var(--ui-safe-bottom));overflow:auto;margin-inline:auto;padding:18px;border:1px solid var(--ui-border);border-radius:22px;background:var(--ui-green);color:var(--ui-gold-bright);box-shadow:0 18px 48px #0008;font-family:var(--fb);text-align:right;direction:rtl}
.uiNoticeEmblem{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--ui-border);border-radius:13px;background:var(--ui-panel);color:var(--ui-gold)}
.uiNoticeEmblem svg{width:24px;height:24px}
#uiSpecTitle{display:block;font-size:16px;font-weight:900;line-height:1.6}
#specNoticeTxt{margin:6px 0 0;font-size:12px;font-weight:600;line-height:1.9;color:var(--ui-muted);overflow-wrap:anywhere}
.uiNoticeActions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.uiNoticeActions button{flex:1;min-height:44px;min-width:110px;padding:8px 10px;border:1px solid var(--ui-border);border-radius:12px;font-family:var(--fb);font-size:12px;font-weight:800;line-height:1.5;cursor:pointer}
#specDismissBtn{background:var(--ui-gold);color:var(--ui-green)}
#specLeaveBtn{background:var(--ui-panel);color:var(--ui-muted)}
@media(max-width:360px){
 #game #topbar .uiMatchHeader,#onl #oHeaderTtl{gap:4px}
 #uiOnlineTitle,#game #modeTtl{font-size:12px}
 .uiMatchDetail{font-size:9px}
 #game .uiMatchGoal,#onl .uiMatchGoal{padding-inline:5px;font-size:10px}
 #game #topbar>button,#onl #topbar>button{min-width:32px;padding-inline:5px}
}

/* v318 — merged top-seat layout; card count stays within the pile column. */
#seatT,#oSeat{display:grid!important;grid-template-columns:54px 56px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px!important;row-gap:3px!important;width:278px!important;max-width:calc(100% - 28px)!important;min-height:82px;padding:10px 12px!important;border-radius:18px!important;align-items:center;background:var(--ui-panel);border:1px solid var(--ui-border);box-shadow:0 5px 16px #0003;direction:rtl}
#seatT .pileBox,#oSeat .pileBox{grid-column:1;grid-row:1 / 3;display:grid;grid-template-columns:44px;grid-template-rows:62px auto;justify-content:center;justify-items:center;align-items:center;row-gap:3px;min-width:0;width:54px;max-width:100%;margin:0;justify-self:center}
#seatT .pileBox>.card,#oSeat .pileBox>.card{grid-column:1;grid-row:1;margin:0;max-width:100%}
#seatT .pileBox>.pileCntX,#oSeat .pileBox>.pileCntX,#seatT .pileBox>.cnt,#oSeat .pileBox>.cnt{grid-column:1;grid-row:2;position:static;inset:auto;transform:none;justify-self:center;max-width:100%;min-width:0;margin:0;padding:1px 4px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-green);color:var(--ui-gold-bright);font-family:var(--fb);font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.3;white-space:nowrap;direction:ltr;unicode-bidi:isolate;text-shadow:none}
#seatT .pileBox>.runB,#oSeat .pileBox>.runB{grid-column:1;grid-row:1;position:relative;inset:auto;transform:none;align-self:start;justify-self:start;max-width:100%;margin:0;direction:ltr;unicode-bidi:isolate;white-space:nowrap;z-index:3}
#seatT .avaWrap,#oSeat .avaWrap{grid-column:2;grid-row:1 / 3;justify-self:center}
#seatT .nm,#oSeat .nm{grid-column:3;grid-row:1;max-width:100%!important;min-width:0;font-family:var(--fb);font-size:12px!important;font-weight:800;text-align:right;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;color:var(--ui-gold-bright)}
#seatT .inf,#oSeat .inf{grid-column:3;grid-row:2;justify-self:start;max-width:100%}
#seatT .pts,#oSeat .pts{font-size:10px;white-space:nowrap;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-green);color:var(--ui-gold);padding:3px 7px}
#seatT .pileBox>div:not(.card):not(.runB):not(.cnt),#oSeat .pileBox>div:not(.card):not(.runB):not(.cnt){grid-column:1;grid-row:1 / 3;align-self:center;font-size:9px!important;line-height:1.6;text-align:center;color:var(--ui-muted)!important}
#seatT .oppHandFan,#oSeat .oppHandFan{opacity:.85}
.seat .team{font-size:9px;color:var(--ui-gold);background:var(--ui-green);padding:1px 5px}
@media(max-width:360px){#seatT,#oSeat{width:258px!important;column-gap:7px!important;padding-inline:9px!important}}
/* v320 — Majabeed results and unified store. */
:root{--ui-result-paper:#fcf6e9;--ui-result-ink:#213d30;--ui-result-soft:#e9e5d5;--ui-result-muted:#7b806d;--ui-result-positive:#427858;--ui-result-negative:#aa5845}
#results,#oOver{background:radial-gradient(ellipse at 50% 12%,#345a3b 0,#123629 45%,#071e17 100%);padding:calc(12px + var(--ui-safe-top)) 14px calc(12px + var(--ui-safe-bottom));isolation:isolate}
#results::before,#oOver::before{content:"";position:absolute;inset:16px;border:1px solid var(--ui-border);border-radius:32px;pointer-events:none;z-index:-1}
#results>#resCard,#oOver>#resCard{position:relative;width:100%;max-width:450px!important;max-height:100%;padding:22px 18px 16px!important;background:var(--ui-result-paper)!important;border:1px solid var(--ui-gold);border-radius:28px!important;color:var(--ui-result-ink);box-shadow:0 18px 70px #0006;text-align:center;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
.uiResultKind{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 12px;border:1px solid #d6cbb0;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.15px;color:var(--ui-result-muted)}
.uiResultArt{width:150px;height:108px;margin:4px auto 0;color:#ad8644}
.uiResultArt svg{width:100%;height:100%;display:block}
[data-outcome="win"] .uiResultArt{animation:uiSealArrive .6s var(--ui-ease) both}
[data-outcome="loss"] .uiResultArt{color:#88977c}
#resCard #resTtl,#resCard #oResTtl{font-family:var(--fh);font-size:clamp(25px,7vw,34px)!important;line-height:1.5;color:var(--ui-result-ink)!important;margin:0 0 2px;overflow-wrap:anywhere}
#resCard #resSub,#resCard #oResSub{font-family:var(--fb);font-size:12px!important;font-weight:600!important;line-height:1.7;color:var(--ui-result-muted)!important;margin:0 auto 15px!important;max-width:340px}
#teamLine{font-family:var(--fh);font-size:15px;margin:0 0 12px;color:var(--ui-result-ink);background:#f1eadc;border-radius:12px;padding:7px 10px}
#oForfeitBanner{font-family:var(--fb)!important;font-size:12px!important;line-height:1.6!important;padding:9px 12px!important;background:#eee0b8!important;box-shadow:none!important;color:#735b30!important;border:1px solid #d8c189}
.uiRewardGrid{display:grid!important;grid-template-columns:minmax(0,1fr);gap:9px;margin:0 0 15px;text-align:center}
.uiRewardGrid.hidden{display:none!important}
.uiRewardTile{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px 6px;min-width:0;min-height:103px;padding:12px 14px;border:1px solid #dbc895;border-radius:17px;background:linear-gradient(130deg,#f9e7b1,#f4edd6);overflow:hidden;text-align:start}
.uiRewardTile>span:not(.uiRewardIcon){grid-column:1;font-size:11px;font-weight:800;color:#857143}
.uiRewardIcon{grid-column:2;grid-row:1/4;display:grid;place-items:center;width:35px;height:35px;border:1px solid #b7954f;border-radius:50%;background:linear-gradient(135deg,#fff4c1,#e4b858);box-shadow:inset 0 0 0 3px #f5d991;color:#9d742f;font-size:23px}
.uiRewardTile>strong{grid-column:1;font-size:24px;font-family:var(--fh);line-height:1.25;font-variant-numeric:tabular-nums;direction:ltr;text-align:start;unicode-bidi:plaintext;color:#5f4b25;overflow-wrap:anywhere}
.uiRewardIcon>.uiGoldArt{width:43px;height:41px;max-width:none;flex:none}
.uiRewardDelta{grid-column:1;justify-self:start;min-width:28px;border-radius:6px;padding:2px 5px;font-size:12px;background:#ffffff70;color:var(--ui-result-positive);direction:ltr;unicode-bidi:isolate}
.uiRewardDelta.is-negative,#oMyRankDelta.is-negative{color:var(--ui-result-negative)}
.uiRewardXp{background:linear-gradient(135deg,#dfebdc,#e9eddf);border-color:#c2d0b8}
.uiRewardXp>.uiRewardIcon{border-color:#89a486;background:linear-gradient(135deg,#edf5df,#b4cdb0);box-shadow:inset 0 0 0 3px #dbe6ce;color:#5c795a}
.uiRewardXp>strong{color:#35513d}.uiRewardXp>span:not(.uiRewardIcon){color:#61785c}
.uiXpProgress{grid-column:1/-1;text-align:start;padding:3px 2px 1px}
.uiXpProgress>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--ui-result-muted);margin-bottom:7px}
.uiXpProgress>div:first-child span:first-child{font-weight:800;color:var(--ui-result-ink)}
.uiXpTrack{height:6px;background:#dce1cf;border-radius:99px;overflow:hidden;direction:rtl}
.uiXpTrack>i{display:block;height:100%;width:0;background:linear-gradient(90deg,#93b278,#416e52);border-radius:inherit;transition:width .85s var(--ui-ease)}
.uiRankReward{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:10px;padding-top:3px;color:var(--ui-result-muted);font-size:11px}
.uiRankReward strong{font-family:var(--fh);font-size:16px;color:var(--ui-result-ink)}
.uiRankReward b{font-size:11px;color:var(--ui-result-positive);direction:ltr}
.uiRankReward.hidden{display:none!important}
.uiRewardNote{grid-column:1/-1;margin:0;font-size:10px;color:var(--ui-result-muted);line-height:1.5}
.uiRewardSpark{position:absolute;font-size:17px;color:#b59048;opacity:0;inset-inline-end:22px;bottom:15px;pointer-events:none}
.is-gaining .uiRewardSpark{animation:uiRewardLift .9s var(--ui-ease)}
.is-gaining>.uiRewardIcon{animation:uiCoinReceive .7s var(--ui-ease)}
.uiResultSectionLabel{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:800;color:var(--ui-result-muted);margin:12px 0 9px}
.uiResultSectionLabel::after{content:"";height:1px;background:#ded8c5;flex:1}
#resRows,#oResRows{display:grid;gap:7px;margin:0 0 12px}
#resRows>.resRow,#oResRows>.resRow{display:grid;grid-template-columns:18px 42px minmax(0,1fr) auto auto;gap:7px;align-items:center;margin:0;min-height:65px;padding:10px 9px;border:1px solid #dfddcd;border-radius:14px;background:#f3f0e5;box-shadow:none;color:var(--ui-result-ink)}
#resRows>.resRow.win,#oResRows>.resRow.win{background:#e7ebda;border-color:#c0c9a7;box-shadow:inset -3px 0 #849761}
.uiResultCard .resRow .rk{font-family:var(--fh);font-size:15px;color:#8c927b;text-align:center;width:auto;height:auto;background:none}
.uiResultCard .resRow .ava{width:38px;height:38px;font-size:24px;display:flex;align-items:center;justify-content:center;background:#e0dfcf;border:1px solid #d3cba9;border-radius:50%;overflow:hidden}
.uiResultCard .resRow .avaDuo{width:42px;height:auto;min-height:47px;background:none;border:0;overflow:visible;flex-direction:column;gap:0}
.uiResultCard .avaDuo>span{display:block;width:27px;height:27px;border:1px solid #d1bd89;border-radius:50%;overflow:hidden;background:var(--ui-result-paper)}
.uiResultCard .avaDuo>span+span{margin-top:-7px;margin-inline-start:15px}
.uiResultCard .resRow .nm{text-align:start;font-size:11px;font-weight:800;line-height:1.7;min-width:0;overflow-wrap:anywhere;color:var(--ui-result-ink)}
.uiResultCard .resRow .nm small{font-size:10px;color:var(--ui-result-muted)!important;display:block;font-weight:500}
.uiResultCard .resRow .pt{font-family:var(--fh);font-size:22px;display:flex;flex-direction:column;gap:1px;align-items:center;line-height:1.2;color:var(--ui-result-ink);min-width:35px}
.uiResultCard .resRow .pt>span{font-size:9px!important;font-weight:600;color:var(--ui-result-muted)}
.uiResultCard .resRow .gold{font-size:10px;color:var(--ui-result-muted);text-align:center;white-space:normal;min-width:25px;max-width:43px}
.uiResultCard .resRow .gold small{display:block;font-size:9px}
#oFeeWinLine{font-size:11px!important;margin:0 0 12px!important;line-height:1.6;flex-wrap:wrap;gap:6px 14px!important}
.uiResultCard .oAddFriendBtn{width:23px!important;height:23px!important;font-size:12px!important;background:#d9e2cb!important;color:#547146!important;box-shadow:none;min-height:23px!important}
#oMenu,#againBtn,#menuBtn{min-height:47px;font-family:var(--fh)!important;font-size:16px!important;border-radius:14px!important;border:1px solid #234b37!important;padding:10px 14px!important;background:linear-gradient(140deg,#365b3f,#173f30)!important;color:#fff3d4!important;box-shadow:0 3px 0 #0a2c1e;cursor:pointer}
#menuBtn{background:var(--ui-result-paper)!important;color:var(--ui-result-ink)!important;border-color:#c9cdb7!important;box-shadow:none}
#resBtns{gap:9px;padding-top:3px;margin:0;display:flex}#resBtns>button{flex:1}
.uiResultCard>div:last-child:has(#oMenu),#resBtns{position:sticky;bottom:-16px;margin-bottom:-1px;background:var(--ui-result-paper);padding-bottom:3px;z-index:2}

/* Store: a fixed header and tabs, one scrolling content area above navigation. */
#shop>[data-navholder]{background:radial-gradient(ellipse at 45% 0,#325c43,#0c2b21 70%)!important;overflow:hidden}
#shop>[data-navholder]>div:first-child{flex-shrink:0;padding-bottom:4px}
#shop>[data-navholder]>div:first-child>span:first-of-type{font-size:24px!important;color:var(--ui-gold-bright)!important;text-shadow:none!important}
#shopGold{font-variant-numeric:tabular-nums}
.uiStoreTabs{display:grid;grid-template-columns:1fr 1fr;margin:17px 18px 0;padding:4px;gap:4px;border:1px solid var(--ui-border);border-radius:16px;background:#091e1870;flex-shrink:0}
.uiStoreTabs>button{display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:12px;padding:10px 7px;min-height:45px;color:var(--ui-muted);background:none;font-size:13px;font-weight:800;cursor:pointer}
.uiStoreTabs>button.active{background:linear-gradient(120deg,#f2d496,#dfb875);color:#26412e;box-shadow:0 2px 7px #0002}
.uiStoreTabs svg{width:22px;height:22px;flex:none}
.uiStoreScroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px calc(104px + var(--ui-safe-bottom));-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.uiStoreIntro{text-align:start;margin:1px 0 18px}
.uiStoreIntro>span{font-size:10px;color:var(--ui-gold);font-weight:800}
.uiStoreIntro h2{font-family:var(--fh);font-size:25px;line-height:1.5;margin:4px 0;color:#fff2d6}
.uiStoreIntro p{font-size:12px;line-height:1.7;margin:2px 0 0;color:var(--ui-muted)}
#uiShopShowcase{border:1px solid #bf9d61;border-radius:22px;overflow:hidden;background:var(--ui-result-paper);box-shadow:0 12px 24px #0003}
#uiShopScene{position:relative;aspect-ratio:1.75;background-size:cover;background-position:center 40%;isolation:isolate;overflow:hidden}
.uiPreviewTable{position:absolute;width:65%;height:82%;object-fit:contain;inset:12% 17.5% 0;filter:drop-shadow(0 9px 6px #0006)}
.uiPreviewCards{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;padding-top:22px;pointer-events:none}
.uiPreviewCards>i{display:grid;place-items:center;width:33px;height:47px;border:1px solid #dccca8;border-radius:5px;background:#fff3d9;color:#294537;font:25px Georgia;box-shadow:0 3px 7px #0004;font-style:normal}
.uiPreviewCards>i:first-child{transform:rotate(-17deg) translate(3px,3px);color:#ab6348}.uiPreviewCards>i:last-child{transform:rotate(17deg) translate(-3px,3px);color:#ab6348}
.uiSceneBadge{position:absolute;top:12px;inset-inline-start:12px;padding:5px 9px;border:1px solid #eac77f50;border-radius:7px;background:#0d271cba;color:#ffefd0;font-size:9px;font-weight:800}
.uiSceneDetails{padding:14px 15px 15px;display:grid;gap:12px}
.uiSceneDetails h3{font-family:var(--fh);font-size:20px;color:var(--ui-result-ink);margin:0;line-height:1.4}
.uiSceneDetails p{font-size:10px;color:var(--ui-result-muted);margin:4px 0 0;line-height:1.5}
#uiShopActivate{min-height:42px;padding:9px 12px;border-radius:11px;border:1px solid #244531;background:linear-gradient(125deg,#365b40,#1c402f);color:#fff1d1;font-size:13px;font-weight:800;cursor:pointer}
#uiShopActivate:disabled{background:#e2e6d6;border-color:#ced4ba;color:#6d7d62;cursor:default}
.uiCatalogHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:25px 0 12px;color:var(--ui-gold-bright)}
.uiCatalogHeading h3{font-family:var(--fh);font-size:17px;margin:0}.uiCatalogHeading span{font-size:10px;color:var(--ui-muted)}
#shopList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;overflow:visible}
#shopList>.uiCatalogCard{padding:0 0 12px!important;display:flex;flex-direction:column;text-align:start;min-width:0;overflow:hidden;background:#183e30;border:1px solid #6c80684d;border-radius:16px!important;box-shadow:none;cursor:pointer;color:var(--ui-gold-bright);min-height:0}
#shopList>.uiCatalogCard[aria-pressed="true"]{border-color:var(--ui-gold);box-shadow:0 0 0 1px var(--ui-gold)}
.uiCatalogImage{position:relative;width:100%;height:106px;background-size:cover;background-position:center;display:block}
.uiCatalogStatus{position:absolute;top:8px;inset-inline-start:8px;padding:3px 7px;background:#0b251acf;border:1px solid #eac77f44;color:#f7e5bb;border-radius:6px;font-size:9px}
.uiCatalogName{font-size:12px;font-weight:800;line-height:1.5;padding:10px 10px 1px;overflow-wrap:anywhere}
.uiCatalogCard>small{font-size:10px;color:var(--ui-muted);padding:3px 10px 0}
.uiStoreAd{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:13px 14px;border:1px solid #c2ac6d70;border-radius:16px;background:#c8b67818;color:var(--ui-gold-bright);text-align:start;font-size:12px;font-weight:800;margin:0 0 18px;cursor:pointer}
.uiAdPlay{flex:none;display:grid;place-items:center;width:33px;height:33px;background:#ddbc7240;border-radius:10px;font-size:24px}.uiStoreAd>span:last-child{font-size:20px}
#goldPkgList{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.uiGoldPackage{display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid #d8bd81;border-radius:20px;background:radial-gradient(ellipse at 50% 30%,#fff9e8,#ede2c9);padding:8px 10px 12px;min-width:0;color:#614d2e;cursor:pointer;box-shadow:0 5px 15px #0002;overflow:hidden}
.uiGoldArt{display:block;width:126px;max-width:100%;height:102px}
.uiGoldPackageName{font-size:10px;font-weight:700;color:#897753}.uiGoldPackage strong{font-family:var(--fh);font-size:25px;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap;color:#3a4530}.uiGoldPackage strong small{font-family:var(--fb);font-size:10px;font-weight:600}
.uiGoldPackagePrice{display:block;width:100%;text-align:center;padding:7px 9px;margin-top:6px;border-radius:10px;background:#244835;color:#fff0c9;font-size:12px;font-weight:800}
.uiGoldPackage:last-child{grid-column:1/-1;display:grid;grid-template-columns:116px 1fr;text-align:start;padding:12px 15px;gap:2px 15px}
.uiGoldPackage:last-child>.uiGoldArt{grid-row:1/4;grid-column:1;height:111px}.uiGoldPackage:last-child>.uiGoldPackageName,.uiGoldPackage:last-child>strong,.uiGoldPackage:last-child>.uiGoldPackagePrice{grid-column:2}
.uiGoldPackage:hover,.uiCatalogCard:hover{filter:brightness(1.04)}
@keyframes uiSealArrive{from{opacity:0;transform:translateY(7px) scale(.93)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes uiRewardLift{0%{opacity:0;transform:translate(0,8px) scale(.7)}30%{opacity:1}100%{opacity:0;transform:translate(-12px,-46px) scale(1.2)}}
@keyframes uiCoinReceive{35%{transform:translateY(-5px) rotate(-12deg) scale(1.1)}100%{transform:none}}
@media(max-width:350px){#results>#resCard,#oOver>#resCard{padding:16px 12px 12px!important}.uiRewardTile{padding:10px;gap:2px;min-height:94px}.uiRewardIcon{width:28px;height:28px;font-size:20px}.uiRewardTile>strong{font-size:21px}.uiResultCard .resRow .pt{font-size:19px}#resRows>.resRow,#oResRows>.resRow{grid-template-columns:14px 33px minmax(0,1fr) auto auto;gap:5px;padding:9px 6px}.uiResultCard .resRow .avaDuo{width:33px}.uiStoreScroll{padding-inline:13px}.uiStoreTabs{margin-inline:13px}.uiCatalogImage{height:92px}.uiCatalogName{font-size:11px}.uiStoreIntro h2{font-size:23px}.uiGoldPackage strong{font-size:22px}.uiStoreTabs>button{font-size:12px}}
@media(max-height:720px){.uiResultArt{height:76px;width:116px;margin-top:0}#results>#resCard,#oOver>#resCard{padding-top:14px!important}.uiResultKind{min-height:23px;font-size:10px}#resCard #resTtl,#resCard #oResTtl{font-size:26px!important}.uiRewardTile{min-height:88px;padding-block:9px}.uiRewardGrid{margin-bottom:9px;gap:7px}#resCard #resSub,#resCard #oResSub{margin-bottom:10px!important}.uiResultCard .resRow{min-height:57px!important}}
@media(prefers-reduced-motion:reduce){.uiResultArt,.uiRewardSpark,.uiRewardIcon{animation:none!important}.uiXpTrack>i{transition:none!important}}

/* v321 — التعبيرات المصورة؛ نفس قناة الإرسال وتكلفتها الحالية */
#reactSheet{background:linear-gradient(150deg,#f9f0dd,#eee0c5);color:#234b3b;box-shadow:0 -12px 45px #061a1766;max-height:88%;overscroll-behavior:contain}
#reactSheet .expressionHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#reactSheet h3{margin:0;font-size:22px;color:#234b3b}
.expressionHeader p{margin:3px 0 0;font-size:12px;color:#6a705c}
.expressionClose{width:40px;height:40px;border:1px solid #b2a680;border-radius:50%;background:transparent;color:#234b3b;font-size:26px;flex-shrink:0}
#reactGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#reactGrid .reactBtn{min-width:0;padding:5px 2px 8px;border:1px solid #c6b792;background:#ffffff66;border-radius:16px;box-shadow:none;color:#294b3a}
#reactGrid .reactBtn[aria-pressed="true"]{background:#deebd6;border-color:#315e43;box-shadow:inset 0 0 0 2px #315e43}
.expressionArt{display:block;width:100%;aspect-ratio:1;background-image:url('reactions/expressions-v321.png');background-size:400% 200%;background-repeat:no-repeat;font-style:normal}
#reactGrid .reactBtn span{display:block;font-size:clamp(11px,3.2vw,14px);line-height:1.5;white-space:normal;font-weight:900}
.expressionFooter{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid #c5b68e}
.expressionPreview{display:flex;align-items:center;gap:5px;min-width:0;margin:0;font-size:12px;line-height:1.5}
.expressionPreview .expressionArt{width:44px;flex-shrink:0}
.expressionSend{flex-shrink:0;border:0;border-radius:14px;padding:12px;background:#28573f;color:#fff4d8;font:inherit;font-size:13px;font-weight:900}
.expressionSend:disabled{opacity:.45}
#reactSheet button:focus-visible{outline:3px solid #bd762c;outline-offset:2px}
.reactBubble:has(.expressionArt){background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;pointer-events:none;min-width:82px;max-width:100px;white-space:normal}
.reactBubble .expressionArt{width:82px;margin:auto}
.reactBubble .expressionCaption{display:block;width:max-content;max-width:100%;margin:-5px auto 0;padding:2px 8px;border:1px solid #c8ad6e;border-radius:9px;background:#fff1d6;color:#294332;font-size:13px;font-weight:900;line-height:1.4;box-shadow:0 3px 8px #0003}
@media(max-height:550px){#reactGrid{grid-template-columns:repeat(8,minmax(0,1fr))}#reactSheet{max-height:94%}.expressionHeader p{display:none}#reactGrid .reactBtn span{font-size:11px}}
/* v322: recipient selection and temporary avatar expressions */
.expressionTargets{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.expressionTargets p{width:100%;margin:0;font-weight:800;font-size:13px}
.expressionTargets button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;border:1px solid #b7ad8c;border-radius:12px;padding:7px;background:#fff7e5;color:#264b3a;font:inherit;font-size:12px}
.expressionTargets button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.expressionTargets button[aria-pressed=true]{outline:2px solid #28573f;background:#deebd6}
.expressionAvatarActive{position:relative!important;overflow:visible!important}
.expressionAvatarActive>*:not(.targetExpression){visibility:hidden!important}
.targetExpression{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.targetExpression .expressionArt{width:100%;flex-shrink:0}
.targetExpression>span{margin-top:-4px;white-space:nowrap;font-size:10px;line-height:16px;padding:0 4px;border-radius:6px;background:#fff1d6;color:#294332;font-weight:900}
.expressionFlight{position:fixed;width:56px;height:56px;z-index:10000;pointer-events:none}
.uiRewardXp,.uiXpProgress{display:none!important}
#oOver[data-kind=friendly] #oMyStats{display:none!important}
/* v323 daily tournament, beneath rank and group buttons */
/* v325: horizontal card; navigation is outside the home scroll container. */
#home>.navBar{position:absolute;bottom:0;inset-inline:0;z-index:40}
#home .homeWrap{bottom:calc(78px + var(--ui-safe-bottom));padding-bottom:12px;scroll-padding-bottom:24px}
#hTournament{display:flex;flex-direction:row;flex:0 0 auto;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:80px;margin:0;padding:14px 16px;border:1px solid var(--ui-gold);background:linear-gradient(120deg,#214b3c,#12392f);color:#f7e5b4;text-align:right;border-radius:18px;box-shadow:0 4px 0 #091e16}
#hTournament .cupButtonIcon{display:flex;align-items:center;justify-content:center;flex:0 0 42px}
#hTournament .cupButtonIcon svg{display:block;width:42px;height:42px}
#hTournament .cupButtonText{flex:1;min-width:0;line-height:1.5}
#hTournament b{display:block;font-size:20px;line-height:1.5}
#hTournament small{display:block;font-size:12px;color:#d4dbc2;white-space:normal}
#hTournament .cupButtonTime{flex:none;font-size:12px;white-space:nowrap;background:#0b221b88;border-radius:10px;padding:6px 8px}
@media(max-width:360px){#hTournament{padding:12px;gap:8px}#hTournament b{font-size:18px}#hTournament .cupButtonTime{font-size:11px;padding:5px}}
#cupBackdrop{position:fixed;inset:0;z-index:1500;background:#061c17d9;display:flex;align-items:center;justify-content:center;padding:12px}
#cupSheet{width:min(100%,560px);max-height:92dvh;overflow:auto;background:#f6edda;border-radius:24px;color:#284b3a;padding:18px;direction:rtl;overscroll-behavior:contain}
#cupSheet header{display:flex;align-items:center;gap:10px}#cupSheet header h2{flex:1;margin:0;font-size:21px}#cupSheet button{border:1px solid #b4ab87;border-radius:12px;padding:10px;background:#254f3d;color:#fff0d2;font:inherit;font-size:13px;cursor:pointer}#cupBody>button{width:100%;margin:10px 0}
.cupHero{text-align:center;padding:14px 0}.cupHero h2{margin:4px 0;font-size:28px}.cupHero p,.cupHero>span{font-size:12px}.cupTrophy{display:block;font-size:56px!important;color:#a67626}
.cupPrizes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cupPrizes>div{background:#e7d5aa;border:1px solid #c4a365;border-radius:16px;padding:12px;text-align:center}.cupPrizes b{display:block;font-size:26px}.cupPrizes small{font-size:11px}.cupFee{text-align:center;font-size:12px}
.cupTeams{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cupTeams article{padding:10px;border:1px solid #d1c3a3;border-radius:12px;min-width:0}.cupTeams span,.cupTeams small{display:block;font-size:12px;overflow-wrap:anywhere}.cupTeams small{color:#68745d}
.cupMine,.cupTomorrow{padding:14px;border:1px solid #b7a675;border-radius:16px;background:#e6ead7;margin:14px 0}.cupSignup{display:grid;grid-template-columns:1fr;gap:8px;margin:14px 0}.cupSignup input{width:100%;box-sizing:border-box;border-radius:10px;border:1px solid #baad8b;padding:12px;font:inherit;background:#fff9ed;color:#284b3a}.cupNote{font-size:12px;line-height:1.9;color:#66705c}.cupMatch{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #d0c3a6;padding:10px}.cupMatch small{font-size:11px}.cupMatch b{font-size:13px}
#cupTableNotice{position:absolute;top:45%;inset-inline:15%;padding:15px;border:1px solid #d7b36b;border-radius:15px;background:#163e35;color:#fff1c7;text-align:center;z-index:80;pointer-events:none}

#onl[data-tournament="true"] #pubInviteBtn,#onl[data-tournament="true"] #lobbyStart{display:none!important}

/* v330: opaque, muted cards keep overlapping faces readable. Geometry is unchanged. */
#hand .card.dimmed-card,#oHand .card.dimmed-card{opacity:1;filter:grayscale(.65) brightness(.78);pointer-events:none;transition:filter .18s,box-shadow .18s}
#hand .card.eatable,#oHand .card.eatable{box-shadow:0 0 0 2px #f6d786,0 0 0 4px #183e31,0 7px 14px #0005}
#hand .card.waqfPlayable,#oHand .card.waqfPlayable{filter:none;box-shadow:0 0 0 2.5px #ffe4a0,0 0 0 5px #204c39,0 10px 18px #0006}
#hand .card.eatable::after,#oHand .card.eatable::after,#hand .card.waqfPlayable::after,#oHand .card.waqfPlayable::after{content:'أكل';position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);z-index:3;border:1px solid #efd392;border-radius:8px;background:#214c39;color:#fff3d1;padding:1px 6px;font:800 10px/1.6 var(--fb);white-space:nowrap;pointer-events:none}
#hand .card.waqfPlayable::after,#oHand .card.waqfPlayable::after{content:'مزايدة'}
#hand .card:focus-visible,#oHand .card:focus-visible{outline:2px solid #fff0ba;outline-offset:5px}

/* Two equally sized rewards, with separate confirmed deltas and current totals. */
#oOver{z-index:395}
#oMyStats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;background:none;border:0;border-radius:0;align-items:stretch}
#oMyStats>.uiRewardTile{display:grid;grid-template-columns:minmax(0,1fr) 28px;grid-template-rows:auto 1fr auto;grid-column:auto;min-width:0;min-height:126px;gap:8px 3px;padding:13px 11px;text-align:start;align-items:center}
#oMyStats>.uiRewardTile>span:not(.uiRewardIcon){grid-column:1/-1;grid-row:1;font-size:11px;line-height:1.7}
#oMyStats>.uiRewardTile>.uiRewardIcon{grid-column:2;grid-row:2;width:27px;height:27px}
#oMyStats>.uiRewardTile>strong{grid-column:1;grid-row:2;font-size:clamp(19px,5.2vw,26px);line-height:1.4;direction:ltr;unicode-bidi:isolate;text-align:start}
#oMyStats>.uiRewardTile>.uiRewardDelta{grid-column:1/-1;grid-row:3;justify-self:start;font-family:var(--fb);font-size:16px;line-height:1.5;font-weight:900;min-width:36px;padding:2px 8px;border-radius:8px}
#oMyStats>.uiRewardRank{background:linear-gradient(135deg,#dfebdd,#eef1e6);border-color:#b6cbb0;color:#335940}
#oMyStats>.uiRewardRank>strong,#oMyStats>.uiRewardRank>span{color:#335940}
#oMyStats>.uiRewardRank>.uiRewardIcon{background:#c8ddbd;border-color:#87a47b;box-shadow:none;color:#356140;border-radius:9px}
.uiRewardIcon svg{width:22px;height:22px}
#oMyStats .uiRewardDelta.is-pending{font-size:10px;font-weight:700;color:#756e59;background:#ffffff60;direction:rtl}
#oMyStats .uiRewardDelta.is-negative{color:var(--ui-result-negative)}
#oMyStats .uiRewardNote{padding:1px 4px;font-size:11px;line-height:1.7}
#oRewardRefresh{grid-column:1/-1;justify-self:center;border:1px solid #becab0;background:#edf0e2;color:#345740;border-radius:10px;padding:7px 16px;font:800 12px/1.5 var(--fb);min-height:36px;cursor:pointer}
#oRewardRefresh[hidden]{display:none}
#oRewardRefresh:disabled{opacity:.6;cursor:wait}
@media(max-width:350px){#oMyStats>.uiRewardTile{padding:10px 8px;min-height:116px;grid-template-columns:minmax(0,1fr)}#oMyStats>.uiRewardTile>.uiRewardIcon{display:none}#oMyStats>.uiRewardTile>strong{font-size:21px}}
@media(max-height:600px){#oMyStats>.uiRewardTile{min-height:100px;gap:3px;padding-block:8px}}
@media(prefers-reduced-motion:reduce){#hand .card.dimmed-card,#oHand .card.dimmed-card{transition:none}}

/* v332: complete result reveal, confirmed net gold, and one currency icon on every platform. */
.uiGoldCoin{display:inline-block;width:20px;height:20px;max-width:none;object-fit:contain;vertical-align:middle;flex:none}
.uiRewardIcon>.uiGoldCoin{width:34px;height:34px}
#oMyStats>.uiRewardTile>.uiRewardChange{grid-column:1/-1;grid-row:3;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.uiRewardChange>small{font-size:10px;line-height:1.5;color:#796740}
#oMyStats .uiRewardChange>.uiRewardDelta{font:900 16px/1.5 var(--fb);min-width:36px;padding:2px 8px;border-radius:8px}
#oFeeWinLine>span{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
#oFeeWinLine bdi{font-variant-numeric:tabular-nums;font-weight:800}
#oOver[data-ready="false"]>#resCard{display:none!important}
.uiResultLoading{display:flex;flex-direction:column;align-items:center;gap:18px;max-width:300px;color:#f7e8c4;text-align:center;font-weight:800}
.uiResultLoading[hidden]{display:none}
.uiResultLoading p{margin:0;font-size:18px;line-height:1.7}
.uiResultLoadingMark{width:38px;height:38px;border:3px solid #ddc48b40;border-top-color:#e6c579;border-radius:50%;animation:uiResultLoadingSpin 1s linear infinite}
.uiResultLoading button{border:1px solid #e0c99477;border-radius:14px;background:#244b3b;color:#fff0cf;padding:12px 18px;font:800 14px/1.5 var(--fb);cursor:pointer}
.uiResultRankPending{font-size:10px;line-height:1.5;color:#7a7c68}
.expressionSend{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:102px}
.expressionCost{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.expressionCost bdi{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.expressionCost .uiGoldCoin{width:18px;height:18px}
.expressionPreview small{display:block;margin-top:3px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.expressionTargets{display:grid;grid-template-columns:1fr}
.expressionTargets button{justify-content:flex-start;min-height:42px;padding:10px 12px;text-align:start}
.expressionTargets button .expressionTargetName{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.6;font-weight:800}
@keyframes uiResultLoadingSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.uiResultLoadingMark{animation:none}}

/* v333 — keep the avatar clock; hide only the duplicate header bar. */
#oTimerTop{display:none!important}
#lgSeatJoin[hidden]{display:none!important}
#lgSeatJoin{min-width:0;min-height:48px;height:48px;padding:4px 6px;border-radius:14px;background:linear-gradient(#f1d49b,#d9b16a);color:#153527;box-shadow:0 3px 0 #896a39;font-size:13px;line-height:1.35}
#onl[data-lg-can-seat="true"] #oThrow{display:none}
.lg-seat-options{display:grid;gap:10px}
.lg-seat-options h3,.lg-seat-options p{margin:0}

/* v334 — verified live UI findings: keep session controls outside the scrolling list. */
#sessionsModal>div{display:flex;flex-direction:column;overflow:hidden!important}
#sessionsModal>div>div:first-child{flex-shrink:0}
#sessionsList{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#sessionsEmpty{flex-shrink:0}
#sessionsClose{width:44px!important;height:44px!important;flex-shrink:0}
/* Keep the @ prefix on the left without changing Arabic player names or live status. */
.frRow[data-fpid] .fSt:not(.on){direction:ltr;unicode-bidi:isolate;text-align:right}
/* A faded toast must also leave the accessibility tree when its display time ends. */
#toastGTxt:not(.show){visibility:hidden}

/* v335 — home-only identity and finite motion. No timers or gameplay selectors. */
#home .hTitle{position:relative;isolation:isolate;font-weight:400;text-shadow:none}
#home .uiHomeWordmark{display:inline-block;color:var(--ui-gold-bright);filter:drop-shadow(0 2px 0 #99713a) drop-shadow(0 5px 8px #0005);white-space:nowrap}
#home .hTitle::before,#home .hTitle::after{content:"";position:absolute;top:54%;width:28px;height:1px;pointer-events:none;opacity:.7;background:linear-gradient(90deg,transparent,var(--ui-gold),transparent)}
#home .hTitle::before{right:calc(50% + 82px)}
#home .hTitle::after{left:calc(50% + 82px)}
#home .hLogoCards{isolation:isolate}
#home .hLogoCards::before{background:radial-gradient(ellipse,#eac77f38,transparent 70%);pointer-events:none}
#home .hLogoCards img{transform-origin:50% 85%}
#home .hLogoCards img:nth-child(1){--home-card-angle:-14deg;--home-card-lift:-4px;--home-card-tilt:-1deg}
#home .hLogoCards img:nth-child(2){--home-card-angle:-1deg;--home-card-lift:-6px;--home-card-tilt:1deg}
#home .hLogoCards img:nth-child(3){--home-card-angle:13deg;--home-card-lift:-4px;--home-card-tilt:1deg}
#home #hOnl{overflow:hidden}
#home #hOnl::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:0;background:linear-gradient(105deg,transparent 32%,#fff8df55 48%,transparent 64%);transform:translateX(110%)}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 #home .uiHomeWordmark{background-image:linear-gradient(110deg,var(--ui-gold) 15%,var(--ui-gold-bright) 38%,#fff9df 47%,var(--ui-gold-bright) 56%,var(--ui-gold) 78%);background-size:240% 100%;background-position:100% 50%;background-clip:text;-webkit-background-clip:text;color:transparent}
}
@media(prefers-reduced-motion:no-preference){
 #home:not(.hidden) .hLogo{animation:uiHomeArrive .65s var(--ui-ease) both}
 #home:not(.hidden) .hLogoCards img{animation:uiHomeCardDrift 5.6s ease-in-out 3}
 #home:not(.hidden) .hLogoCards img:nth-child(1){animation-delay:.15s}
 #home:not(.hidden) .hLogoCards img:nth-child(2){animation-delay:.55s}
 #home:not(.hidden) .hLogoCards img:nth-child(3){animation-delay:.9s}
 #home:not(.hidden) .hLogoCards::before{animation:uiHomeHalo 5.6s ease-in-out 3}
 #home:not(.hidden) .uiHomeWordmark{animation:uiHomeGold 7s ease-in-out 2}
 #home:not(.hidden) .hMenu{animation:uiHomeArrive .5s .08s var(--ui-ease) backwards}
 #home:not(.hidden) .hMenu>#hOnl{animation:uiHomeReveal .38s .1s ease-out backwards}
 #home:not(.hidden) .hMenu>#hSessions{animation:uiHomeReveal .38s .17s ease-out backwards}
 #home:not(.hidden) .hMenu>.row2{animation:uiHomeReveal .38s .24s ease-out backwards}
 #home:not(.hidden) .hMenu>#hTournament{animation:uiHomeReveal .38s .31s ease-out backwards}
 #home:not(.hidden) #hOnl::after{animation:uiHomeSweep 6.8s 1.1s ease-in-out 2}
}
@keyframes uiHomeArrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes uiHomeReveal{from{opacity:.3}to{opacity:1}}
@keyframes uiHomeCardDrift{0%,100%{transform:translateY(0) rotate(var(--home-card-angle))}50%{transform:translateY(var(--home-card-lift)) rotate(calc(var(--home-card-angle) + var(--home-card-tilt)))}}
@keyframes uiHomeHalo{0%,100%{opacity:.65;transform:scale(.96)}50%{opacity:1;transform:scale(1.06)}}
@keyframes uiHomeGold{0%,68%,100%{background-position:100% 50%}82%,94%{background-position:0% 50%}}
@keyframes uiHomeSweep{0%,62%,100%{opacity:0;transform:translateX(110%)}65%{opacity:.6;transform:translateX(110%)}83%{opacity:.6;transform:translateX(-110%)}86%{opacity:0;transform:translateX(-110%)}}
@media(prefers-reduced-motion:reduce){
 #home .hLogo,#home .hLogoCards img,#home .hLogoCards::before,#home .uiHomeWordmark,#home .hMenu,#home .hMenu>*,#home #hOnl::after{animation:none!important}
}
@media(forced-colors:active){
 #home .uiHomeWordmark{background:none;color:CanvasText;filter:none}
 #home .hTitle::before,#home .hTitle::after,#home #hOnl::after{display:none}
}

/* v336 — fixed application viewport, independently scrollable content. */
html{overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;width:100%;overscroll-behavior:none}
#frame{overscroll-behavior:none}
.screen{overscroll-behavior:none}
#pfRecovery{margin:16px 18px 0;padding:16px;border:1px solid var(--ui-paper-line);border-radius:18px;background:var(--ui-paper);color:var(--ui-text)}
#pfRecovery[hidden],#profile.uiOtherProfile #pfRecovery{display:none!important}
#pfResetPassword{width:100%;min-height:46px;padding:10px 14px;border-radius:13px;border:1px solid var(--ui-border);background:var(--ui-green);color:var(--ui-gold-bright);font-weight:800}
#pfRecovery p{font-size:12px;line-height:1.8;margin-top:8px;overflow-wrap:anywhere}
#pfResetStatus:empty{display:none}
#pfResetPassword:disabled{opacity:.65}
.uiWatchIcon{display:inline-block;width:22px;height:22px;flex:0 0 22px;vertical-align:middle;pointer-events:none}
.sessSpecBtn,.frBtn.watch{gap:8px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
#oSpecCount{display:inline-flex;align-items:center;gap:4px;font-size:12px;min-height:24px;color:var(--ui-gold-bright);font-variant-numeric:tabular-nums}
#oSpecCount.hidden{display:none!important}
#oSpecCount .uiWatchIcon{width:20px;height:20px;flex-basis:20px}
.lg-fixed-fee{padding:14px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-paper);color:var(--ui-text);line-height:1.8}
.lg-fixed-fee p{font-size:12px;margin-top:4px}
/* Move each side seat as a unit, including its pile. Field/card layout stays unchanged. */
#seatR,#seatL,#oSeatR,#oSeatL{transform:translateY(28px)}
@media(max-height:740px){#seatR,#seatL,#oSeatR,#oSeatL{transform:translateY(52px)}}

/* v337 — home content fits above its navigation; only short-screen menus may scroll. */
#home{--ui-home-height:calc(100vh - var(--ui-safe-top) - var(--ui-safe-bottom))}
@supports(height:100dvh){#home{--ui-home-height:calc(100dvh - var(--ui-safe-top) - var(--ui-safe-bottom))}}
#home .homeWrap{overflow:hidden;overscroll-behavior:none;touch-action:none;-webkit-overflow-scrolling:auto}
#home .hHead{flex:0 0 auto}
#home .hSide{top:calc(88px + var(--ui-safe-top));gap:8px}
#home .hLogo{flex:0 0 auto;min-height:110px;padding-top:clamp(0px,calc(var(--ui-home-height) - 680px),18px);padding-bottom:4px}
#home .hLogoCards{display:block;margin:0 auto;height:clamp(52px,calc(var(--ui-home-height) - 600px),108px);transform:none}
#home .hLogoCards img{height:clamp(48px,calc(var(--ui-home-height) - 610px),87px);width:auto;max-width:62px;object-fit:contain}
#home .hTitle{font-size:clamp(36px,calc(var(--ui-home-height) / 14),48px)}
#home .hMenu{flex:1 1 auto;min-height:0;max-height:450px;display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:stretch;grid-template-rows:minmax(84px,1.2fr) minmax(52px,.72fr) minmax(88px,1.1fr) minmax(64px,.8fr);gap:clamp(6px,calc(var(--ui-home-height) - 620px),10px);padding-top:8px;padding-bottom:8px}
#home .hMenu>.hBig,#home .hMenu>.row2,#home .hMenu>.row2>.hBig{height:100%;min-height:0;margin:0}
#home #hOnl{padding:26px 14px 8px}
#home #hOnl>span>span>b{font-size:26px!important;line-height:1.2}
#home #hOnl>span>span>span{font-size:12px;line-height:1.4;margin-top:2px}
#home #hOnl .live{top:5px;font-size:11px;line-height:1.5}
#home #hSessions{flex-wrap:nowrap;gap:6px;padding:8px 10px}
#home #hSessions .sessIcoWrap{gap:5px;min-width:0}
#home #hSessions .sessIcoWrap>b{font-size:15px!important;line-height:1.4}
#home #hSessions .sessCount{margin-inline-start:0;gap:4px;padding:4px 6px;font-size:11px}
#home .hMenu .hBig.rank{padding:7px 9px!important;gap:2px!important;justify-content:center}
#home .hMenu .hBig.rank .rcRemain,#home .hMenu .hBig.rank .rcNext{font-size:11px!important;line-height:1.4}
#home .hMenu .hBig.rank .rcBar{margin-top:2px}
#home #rcBadge .uiRankBadge{font-size:12px!important;line-height:1.2;padding-block:1px}
#home #rcBadge .uiRankBadge img{width:20px;height:20px}
#home #hGroup{padding:8px 10px;justify-content:center;line-height:1.4}
#home #hGroup>b{font-size:16px!important}
#home #hGroup>span{font-size:12px!important}
#home #hTournament{padding:8px 12px;gap:8px}
#home #hTournament b{font-size:18px;line-height:1.4}
#home #hTournament small{font-size:11px;line-height:1.5}
#home #hTournament .cupButtonIcon{flex-basis:32px}
#home #hTournament .cupButtonIcon svg{width:32px;height:32px}
@media(max-height:740px){
 #home .hLogo{height:110px;padding-top:0;padding-bottom:0}
 #home .hLogoCards{height:64px}
 #home .hLogoCards img{height:60px}
 #home .hTitle{font-size:36px}
 #home .hMenu{grid-template-rows:minmax(76px,1.2fr) minmax(48px,.72fr) minmax(88px,1.1fr) minmax(60px,.8fr);gap:6px}
 #home #hOnl{padding-top:23px;padding-bottom:6px}
 #home #hOnl>span>span>b{font-size:23px!important}
}
/* Preserve every action on very short/landscape screens; the header and nav stay fixed. */
@media(max-height:700px){
 #home .homeWrap{touch-action:pan-y}
 #home .hMenu{overflow-x:hidden;overflow-y:auto;overscroll-behavior:none;touch-action:pan-y;-webkit-overflow-scrolling:touch}
}

/* v345 — readable level cards and optional computer fallback in search. */
#tiers .uiTiersSurface{background:radial-gradient(ellipse at 50% 0,#2d533e,#0d2b23 70%)!important}
#tiers .uiTiersTitle{color:var(--ui-gold-bright)!important;font-size:24px!important}
#tiers #tiersSubRow{padding-top:12px!important;color:#c3d2c5;line-height:1.7;font-size:13px}
#tiers #tiersBack{background:#0a211bbd!important;color:var(--ui-gold-bright)!important;min-width:44px;min-height:44px}
#tiersList{gap:14px!important;padding-bottom:calc(22px + var(--ui-safe-bottom))!important}
#tiersList .uiTierCard{position:relative;flex:none;height:auto;min-height:180px;overflow:hidden;border:1px solid #d4bc805e;border-radius:20px;background:linear-gradient(125deg,#214b3cf5,#102f27f5),var(--ui-tier-art);background-size:cover;color:#fff3d5;padding:15px;box-shadow:0 4px 12px #00130e40!important}
.uiTierHeading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.uiTierEyebrow{font-size:11px;color:#c4cbb2}
.uiTierHeading h3{font:800 23px/1.35 var(--fb);margin:2px 0 0;color:var(--ui-gold-bright)}
#tiersList .tierInfoBtn{width:44px;min-width:44px;height:44px;background:#08291e;border:1px solid #d8be8059;color:var(--ui-gold-bright);font:700 18px var(--fb);cursor:pointer}
.uiTierDetails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid #dec98c24;padding:12px 0;gap:8px}
.uiTierDetails>span{font-size:11px;color:#cbd6c8;line-height:1.65}
.uiTierDetails b{display:block;font-size:19px;font-weight:800;color:#fff2cf;font-variant-numeric:tabular-nums}
.uiTierDetails small{font-size:10px;font-weight:500;color:#d8caaa}
.uiTierFooter{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px}
.uiTierFooter .uiTierSearching{font-size:11px;color:#c1d5bb;margin:0}
#tiersList .uiTierChoose{flex:none;padding:7px 12px;border:1px solid #f7d998;background:linear-gradient(#f2d899,#dbb569);color:#183b2e;font:800 12px var(--fb);cursor:pointer}
#tiersList .uiTierChoose:disabled{background:#18362c;border-color:#8c9b8266;color:#b5c2b3;cursor:default}
#tiersList button:focus-visible{outline:2px solid #ffe6a9;outline-offset:3px}
#match #matchHead{width:100%;max-width:400px;gap:8px}
#match #matchHead .t{font-family:var(--fb);font-size:19px;font-weight:800}
#match #matchHead .tag{font-size:10px;padding:5px 8px}
#match #mTitle{font-family:var(--fb);font-size:22px;font-weight:800;line-height:1.55}
#match #mSub{font-family:var(--fb);font-size:12px;color:#c7d6c8;max-width:370px;line-height:1.7}
#match #mTierBadge{width:100%;max-width:370px;display:flex;flex-wrap:wrap;justify-content:center;gap:5px 13px;background:#082a23!important;color:#f9e4b7!important;border:1px solid #dec18440;border-radius:14px!important;font-family:var(--fb)!important;padding:9px 12px!important}
#match #mTierBadge b{flex-basis:100%;text-align:center;font-size:14px}
#match #mTierBadge span{font-size:11px;font-variant-numeric:tabular-nums}
#match #mGrid{flex:1 0 140px;max-height:250px}
#uiQuickBotOption{width:100%;max-width:370px;border:1px solid #d4bf8259;border-radius:16px;background:#173c2ff2;padding:10px 12px;margin:4px 0}
.uiQuickBotLabel{position:relative;display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer;text-align:right}
.uiQuickBotLabel>span:not(.uiQuickBotSwitch){flex:1;min-width:0}
.uiQuickBotLabel b{display:block;font:700 13px/1.6 var(--fb);color:#f9e9c1}
.uiQuickBotLabel small{font:500 11px/1.6 var(--fb);color:#bed2bd}
#uiQuickAllowBots{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.uiQuickBotSwitch{position:relative;width:42px;height:26px;border:1px solid #bcc3a570;border-radius:20px;background:#071f19;flex:none;transition:background .15s}
.uiQuickBotSwitch::before{content:"";position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:#b1c2ae;transition:transform .15s}
#uiQuickAllowBots:checked~.uiQuickBotSwitch{background:#e2c37e;border-color:#fff1b9}
#uiQuickAllowBots:checked~.uiQuickBotSwitch::before{transform:translateX(-16px);background:#17392a}
#uiQuickAllowBots:focus-visible~.uiQuickBotSwitch{outline:2px solid #fff0be;outline-offset:3px}
#uiQuickAllowBots:disabled~span{opacity:.6}
#uiQuickBotNote{font:500 11px/1.65 var(--fb);color:#c9d4c5;margin:6px 0 0;text-align:right}
@media(max-height:740px){#match #mCircle{display:none}#match #mTitle{font-size:19px}#match #mGrid{max-height:180px}#uiQuickBotOption{padding:7px 10px}}
@media(max-width:350px){.uiTierDetails b{font-size:16px}.uiTierFooter{flex-wrap:wrap}.uiTierFooter .uiTierChoose{width:100%}#match #matchHead .t{font-size:16px}}
@media(prefers-reduced-motion:reduce){.uiQuickBotSwitch,.uiQuickBotSwitch::before{transition:none}}

/* v346 — net profit is distinct from payout; deadline is a local display. */
.uiTierDetails .uiTierNet{color:#e3edcd}
.uiTierDetails .uiTierNet b{color:#f9db8e}
.uiTierPayout{margin:10px 0 0;font:500 11px/1.8 var(--fb);color:#c4d0c1;overflow-wrap:anywhere}
.uiTierPayout bdi{color:#f9e4b7;font-weight:700;font-variant-numeric:tabular-nums}
#match #mTierBadge small{flex-basis:100%;font-size:10px;line-height:1.6;text-align:center;color:#c4d0c1}
#lobbyTierTag{flex-wrap:wrap;justify-content:center;line-height:1.65}
#uiQuickBotCountdown{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;margin-top:8px;border:1px solid #e6c98966;border-radius:12px;background:#092b22;color:#f8e5bc}
#uiQuickBotCountdown.hidden{display:none}
#uiQuickBotTimeLabel{font:600 11px/1.6 var(--fb);text-align:right}
#uiQuickBotTime{flex:none;font:800 27px/1.1 var(--fb);font-variant-numeric:tabular-nums;unicode-bidi:isolate;letter-spacing:1px;color:#ffe3a2}
