
.gamesPage{padding-bottom:70px}.gameHero{border:1px solid var(--line);border-radius:22px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:radial-gradient(circle at 90% 20%,rgba(114,84,255,.2),transparent 34%),linear-gradient(135deg,#111723,#0b1018)}.gameHero span{font-size:8px;color:#a998ff;font-weight:900;letter-spacing:.12em}.gameHero h2{font-size:27px;margin:8px 0}.gameHero p{max-width:740px;color:#9cabc0;font-size:10px;line-height:1.6}.gameCatalogGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.gameCatalogCard{border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#151c28,#0e141d);padding:17px;cursor:pointer;min-height:178px;position:relative;overflow:hidden}.gameCatalogCard:hover{border-color:rgba(114,84,255,.45);transform:translateY(-2px)}.gameCatalogIcon{font-size:42px}.gameCatalogCard h4{margin:9px 0 4px;font-size:14px}.gameCatalogCard p{font-size:9px;color:var(--muted);line-height:1.45}.gameCatalogCard small{position:absolute;left:17px;bottom:15px;color:#a998ff;font-size:8px}.activeGameRooms{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gameLobbyCard{border:1px solid var(--line);background:#111821;border-radius:15px;padding:14px}.gameLobbyTop{display:flex;align-items:center;gap:9px}.gameLobbyTop .gameIcon{font-size:28px;width:44px;height:44px;border-radius:12px;background:#1c2533;display:grid;place-items:center}.gameLobbyTop div:nth-child(2){flex:1}.gameLobbyTop b,.gameLobbyTop small{display:block}.gameLobbyTop b{font-size:11px}.gameLobbyTop small{font-size:8px;color:var(--muted);margin-top:3px}.gameLobbyStats{display:flex;gap:8px;margin:12px 0;font-size:8px;color:#9facc0}.gameLobbyActions{display:flex;gap:6px}.gameLobbyActions .btn{flex:1;font-size:8px}.gameInvitesBox{margin-top:12px;border:1px solid rgba(114,84,255,.35);background:rgba(114,84,255,.08);border-radius:15px;padding:11px}.gameInviteRow{display:flex;align-items:center;gap:10px;padding:8px}.gameInviteRow>div{flex:1}.gameInviteRow b,.gameInviteRow small{display:block}.gameInviteRow b{font-size:10px}.gameInviteRow small{font-size:8px;color:var(--muted)}
.gameRoomPage{padding:12px!important;height:calc(100vh - 76px)}.gameRoomShell{height:100%;display:grid;grid-template-columns:230px minmax(0,1fr) 290px;gap:10px}.gameMembersPane,.gameBoardPane,.gameChatPane{border:1px solid var(--line);border-radius:16px;background:#0f151e;min-height:0}.gameMembersPane{display:flex;flex-direction:column;overflow:hidden}.gameRoomIdentity{display:flex;gap:9px;align-items:center;padding:13px;border-bottom:1px solid var(--line)}.gameRoomIdentity>div:last-child{min-width:0}.gameRoomIdentity b,.gameRoomIdentity small{display:block}.gameRoomIdentity b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gameRoomIdentity small{font-size:8px;color:var(--muted)}.gameBigIcon{font-size:31px;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#1b2431}.gamePermissionNote{font-size:8px;line-height:1.45;padding:9px 11px;background:rgba(114,84,255,.07);color:#b7c2d2}.gamePaneTitle{font-size:8px;font-weight:850;color:#8fa0b8;padding:10px 10px 5px;text-transform:uppercase}.gameMemberList{padding:0 7px;overflow:auto;max-height:34%}.gameMemberList.spectators{flex:1}.gameMemberRow{display:flex;align-items:center;gap:7px;padding:7px;border-radius:9px}.gameMemberRow:hover{background:#18212d}.gameMemberRow .avatar{width:31px;height:31px}.gameMemberInfo{flex:1;min-width:0}.gameMemberInfo b,.gameMemberInfo small{display:block}.gameMemberInfo b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gameMemberInfo small{font-size:7px;color:#8391a5}.gameMemberTools{display:flex;gap:2px}.gameMemberTools button{width:24px;height:24px;border:0;border-radius:7px;background:#202b39;color:white;cursor:pointer;font-size:9px}.gameMemberActions{padding:9px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:5px}.gameMemberActions .btn{font-size:8px}.gameBoardPane{display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(circle at 50% 10%,rgba(114,84,255,.1),transparent 35%),#0c1118}.gameBoardTop{height:62px;padding:10px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px}.gameBoardTop>div:first-child{display:flex;align-items:center;gap:8px}.gameBoardTop strong{font-size:10px}.gameTopBtns{display:flex;gap:5px}.gameTopBtns .btn{font-size:8px;padding:7px 9px}.gameBoard{flex:1;min-height:0;overflow:auto;display:grid;place-items:center;padding:16px}.gameWaiting{text-align:center;color:#8d99aa}.gameWaiting b,.gameWaiting span{display:block}.gameWaiting b{font-size:16px;color:#d9e0eb;margin-bottom:7px}.gameWaiting span{font-size:9px}.gameChatPane{display:flex;flex-direction:column}.gameChatHead{padding:13px;border-bottom:1px solid var(--line)}.gameChatHead b,.gameChatHead small{display:block}.gameChatHead b{font-size:11px}.gameChatHead small{font-size:8px;color:var(--muted)}.gameChatLog{flex:1;overflow:auto;padding:9px;display:flex;flex-direction:column;gap:6px}.gameChatMsg{background:#161f2b;border-radius:10px;padding:7px 8px;font-size:8px}.gameChatMsg b{color:#b8aaff;margin-right:5px}.gameChatMsg small{display:block;color:#65758b;font-size:6px;margin-top:3px}.gameChatLocked{margin:8px;padding:9px;border-radius:10px;background:rgba(239,83,80,.08);border:1px solid rgba(239,83,80,.15);font-size:8px;color:#ffc0be;line-height:1.45}.gameChatComposer{display:flex;gap:5px;padding:8px;border-top:1px solid var(--line)}.gameChatComposer input{flex:1;min-width:0;border:1px solid var(--line);background:#090e15;color:white;border-radius:9px;padding:8px;font-size:8px}.gameChatComposer button{width:34px;border:0;border-radius:9px;background:var(--accent);color:white}.gameChatComposer.disabled{opacity:.4;pointer-events:none}#gameAudioSink{width:1px;height:1px;overflow:hidden}
/* chess */.chessWrap{display:flex;flex-direction:column;align-items:center;gap:9px}.chessBoard{width:min(64vh,600px);aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);border:5px solid #3a2b20;border-radius:5px;box-shadow:0 18px 45px rgba(0,0,0,.35)}.chessSq{border:0;font-size:clamp(23px,4.2vh,42px);display:grid;place-items:center;cursor:pointer;padding:0}.chessSq.light{background:#e6d1ad}.chessSq.dark{background:#8b6648}.chessSq.selected{box-shadow:inset 0 0 0 5px #7658ff}.chessSq.last{box-shadow:inset 0 0 0 4px rgba(255,211,75,.55)}.boardInfo{font-size:9px;color:#9eabc0}
/* okey */.okeyTable{width:min(920px,100%);min-height:520px;border-radius:45%;background:radial-gradient(circle,#237a5c,#0e4a38 72%);border:12px solid #5c3a22;position:relative;padding:45px 24px 120px;box-shadow:inset 0 0 40px rgba(0,0,0,.35)}.okeyCenter{text-align:center}.okeyIndicator{display:inline-flex;gap:8px;align-items:center;background:rgba(0,0,0,.3);padding:8px 12px;border-radius:12px;color:white;font-size:9px}.okeyHand{position:absolute;left:20px;right:20px;bottom:18px;display:flex;gap:3px;justify-content:center;flex-wrap:wrap;background:#714d2f;padding:12px;border-radius:13px}.okeyTile{width:36px;height:52px;border:2px solid #d9cfb6;background:#f6ecd2;border-radius:5px;color:#111;font-weight:900;font-size:12px;cursor:pointer;position:relative}.okeyTile[data-c="R"]{color:#d32727}.okeyTile[data-c="B"]{color:#1c58d1}.okeyTile[data-c="K"]{color:#111}.okeyTile[data-c="Y"]{color:#d49b00}.okeyTile.selected{transform:translateY(-9px);box-shadow:0 0 0 3px #7b61ff}.okeyControls{display:flex;justify-content:center;gap:7px;margin-top:20px}.okeyPlayers{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:20px}.okeySeat{padding:8px;border-radius:10px;background:rgba(0,0,0,.25);font-size:8px;color:#fff}.okeySeat.turn{outline:2px solid #ffcf47}
/* tombala */.tombalaWrap{width:min(900px,100%)}.tombalaTop{display:flex;justify-content:center;gap:15px;align-items:center;margin-bottom:15px}.tombalaBall{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#fff,#e8e8ee 42%,#8d93a3);color:#161922;font-size:31px;font-weight:950;box-shadow:0 10px 30px rgba(0,0,0,.3)}.tombalaCard{display:grid;grid-template-columns:repeat(9,1fr);background:#f3ecd6;border:8px solid #c59e4b;border-radius:10px;overflow:hidden}.tombalaCell{aspect-ratio:1.35;display:grid;place-items:center;border:1px solid #bfae83;color:#292515;font-size:17px;font-weight:900}.tombalaCell.blank{background:#2a2a31}.tombalaCell.drawn{background:#ffcf47;color:#111}.tombalaDrawn{display:flex;flex-wrap:wrap;gap:4px;margin-top:12px}.drawnBall{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#202938;font-size:8px}.tombalaBtns{display:flex;gap:6px;justify-content:center;margin-top:12px}
/* tavla */.tavlaWrap{width:min(920px,100%)}.tavlaBoard{background:#6d4528;border:12px solid #3c2517;border-radius:9px;padding:10px;display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:220px 220px;gap:2px}.tavlaPoint{position:relative;border:0;background:transparent;color:white;cursor:pointer;display:flex;align-items:center;justify-content:center}.tavlaPoint:before{content:"";position:absolute;left:4px;right:4px;height:92%;clip-path:polygon(50% 0,100% 100%,0 100%);background:#d7aa69;opacity:.85}.tavlaPoint.dark:before{background:#6d2630}.tavlaPoint.bottom{transform:rotate(180deg)}.tavlaPoint span{position:relative;z-index:2;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f0e4cd;color:#161616;font-weight:900;font-size:9px;box-shadow:0 2px 8px #0007}.tavlaPoint span.p2{background:#222;color:white}.tavlaPoint.selected{outline:3px solid #7a5cff;border-radius:6px}.tavlaControls{display:flex;justify-content:center;gap:7px;align-items:center;margin-top:10px}.diceChip{width:33px;height:33px;border-radius:7px;background:#fff;color:#111;display:grid;place-items:center;font-weight:900}
@media(max-width:1150px){.gameRoomShell{grid-template-columns:200px 1fr}.gameChatPane{position:fixed;right:10px;bottom:10px;width:300px;height:420px;z-index:20;box-shadow:var(--shadow)}.gameCatalogGrid{grid-template-columns:repeat(2,1fr)}.activeGameRooms{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.gameRoomPage{height:auto}.gameRoomShell{display:block}.gameMembersPane{margin-bottom:8px;max-height:280px}.gameBoardPane{min-height:620px}.gameChatPane{position:relative;right:auto;bottom:auto;width:auto;height:360px;margin-top:8px}.activeGameRooms,.gameCatalogGrid{grid-template-columns:1fr}.gameHero{display:block}.gameHero .btn{margin-top:10px}.chessBoard{width:min(92vw,520px)}.tavlaBoard{grid-template-rows:150px 150px}.okeyTable{min-height:480px}.okeyTile{width:31px;height:46px}}

/* V3.2.1 - instant invite & presence */
.gamePresenceDot{width:8px;height:8px;border-radius:50%;background:#5d6675;flex:0 0 8px;box-shadow:0 0 0 2px rgba(255,255,255,.05)}
.gamePresenceDot.online{background:#21da84;box-shadow:0 0 0 2px rgba(33,218,132,.15),0 0 12px rgba(33,218,132,.48)}
.gameMemberRow.stale{opacity:.72}
.gameInvitePopup{position:fixed;z-index:160;right:20px;bottom:20px;width:min(440px,calc(100vw - 30px));display:grid;grid-template-columns:46px 1fr auto 24px;gap:10px;align-items:center;padding:14px;border:1px solid rgba(145,110,255,.5);border-radius:18px;background:rgba(19,14,34,.97);box-shadow:0 22px 60px rgba(0,0,0,.48),0 0 36px rgba(114,84,255,.16);backdrop-filter:blur(18px);transform:translateY(140%);opacity:0;pointer-events:none;transition:.24s ease}
.gameInvitePopup.show{transform:none;opacity:1;pointer-events:auto}
.gameInvitePopupIcon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:24px;background:linear-gradient(135deg,#7958ff,#4b2ad0)}
.gameInvitePopupText{min-width:0}.gameInvitePopupText b,.gameInvitePopupText span{display:block}.gameInvitePopupText b{font-size:12px}.gameInvitePopupText span{margin-top:4px;font-size:9px;color:#b8c0cf}
.gameInvitePopupActions{display:flex;gap:5px}.gameInvitePopupActions .btn{padding:8px 10px;font-size:9px}
.gameInvitePopupClose{align-self:start;border:0;background:transparent;color:#99a5b5;font-size:18px;cursor:pointer}
@media(max-width:620px){.gameInvitePopup{right:10px;bottom:10px;grid-template-columns:40px 1fr 24px}.gameInvitePopupIcon{width:40px;height:40px}.gameInvitePopupActions{grid-column:1/-1}.gameInvitePopupActions .btn{flex:1}}

/* V3.2.2 invite action fix */
.gameInvitePopupText em{display:block;min-height:13px;margin-top:5px;font-size:8px;font-style:normal;color:#9aa6b8}
.gameInvitePopupText em.ok{color:#5be3a0}.gameInvitePopupText em.err{color:#ff8f8b;font-weight:700}
.gameInvitePopupActions button.busy{opacity:.62;cursor:wait}
.gameInvitePopupActions button:disabled{pointer-events:none}
#toast{z-index:220!important}

/* V3.2.3 TAVLA PRO */
.autoStartBox{margin-top:18px;display:flex;align-items:end;justify-content:center;gap:8px;padding:16px 24px;border-radius:18px;border:1px solid rgba(117,87,255,.35);background:rgba(100,70,220,.12)}
.autoStartBox small{align-self:center;font-size:8px;color:#b7aaff;font-weight:900}.autoStartBox strong{font-size:48px;line-height:.9;color:#fff;text-shadow:0 0 28px rgba(120,85,255,.55)}.autoStartBox em{font-style:normal;font-size:9px;color:#9ba7b7}
.tavlaPro{width:min(1000px,100%);margin:auto;user-select:none}.tvPlayerBar{height:58px;display:flex;align-items:center;gap:10px;padding:8px 13px;border:1px solid rgba(255,255,255,.09);background:rgba(10,14,19,.72);backdrop-filter:blur(10px)}.tvPlayerBar.top{border-radius:16px 16px 5px 5px}.tvPlayerBar.bottom{border-radius:5px 5px 16px 16px}.tvPlayerBar.active{border-color:rgba(38,220,135,.4);box-shadow:inset 0 0 0 1px rgba(38,220,135,.08),0 0 26px rgba(38,220,135,.07)}.tvPlayerBar .avatar{width:38px;height:38px}.tvPlayerBar>div:nth-child(2){flex:1}.tvPlayerBar b,.tvPlayerBar small{display:block}.tvPlayerBar b{font-size:10px}.tvPlayerBar small{font-size:7px;color:#9daabd;margin-top:3px}.tvTurnBadge{padding:4px 8px;border-radius:999px;background:#1bd184;color:#062818;font-size:7px;font-weight:1000}
.tvTable{display:grid;grid-template-columns:58px 1fr;gap:8px;background:#15100c;padding:8px;border-left:1px solid rgba(255,255,255,.07);border-right:1px solid rgba(255,255,255,.07)}.tvWoodFrame{position:relative;height:520px;overflow:hidden;border:12px solid #4e2b17;border-radius:8px;background:linear-gradient(90deg,#a8703d 0,#b8814b 49%,#6a3d20 49.3%,#6a3d20 50.7%,#b8814b 51%,#a8703d 100%);box-shadow:inset 0 0 0 3px #d2a066,inset 0 0 38px #2d160a,0 12px 30px #0007}.tvWoodFrame:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(96deg,rgba(255,255,255,.025) 0 1px,transparent 1px 11px);pointer-events:none}
.tvHalf{position:absolute;left:0;right:0;height:47%;display:grid;grid-template-columns:repeat(6,1fr) 48px repeat(6,1fr);padding:0 8px;z-index:2}.tvHalf.topRow{top:0}.tvHalf.bottomRow{bottom:0}.tvPoint{position:relative;min-width:0;cursor:pointer;overflow:visible}.tvPoint:before{content:"";position:absolute;left:4%;right:4%;height:91%;filter:drop-shadow(0 2px 1px rgba(0,0,0,.2));transition:.15s}.tvPoint.top:before{top:0;clip-path:polygon(0 0,100% 0,50% 100%)}.tvPoint.bottom:before{bottom:0;clip-path:polygon(50% 0,100% 100%,0 100%)}.tvPoint.light:before{background:linear-gradient(90deg,#dfc79e,#f0dab3,#c6a777)}.tvPoint.dark:before{background:linear-gradient(90deg,#632124,#8d3439,#50191d)}.tvPoint.selected:before{filter:brightness(1.25) drop-shadow(0 0 8px #8e75ff)}.tvPoint.legal:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#23dc88;box-shadow:0 0 0 5px rgba(35,220,136,.15),0 0 18px rgba(35,220,136,.6);left:50%;transform:translateX(-50%);z-index:8}.tvPoint.top.legal:after{bottom:28%}.tvPoint.bottom.legal:after{top:28%}.tvPoint.dragOver:after{transform:translateX(-50%) scale(1.35);background:#fff}.tvPointNo{position:absolute;z-index:3;font-size:6px;color:rgba(25,17,12,.58);font-weight:900;left:50%;transform:translateX(-50%)}.tvPoint.top .tvPointNo{top:4px}.tvPoint.bottom .tvPointNo{bottom:4px}
.tvStack{position:absolute;z-index:5;left:50%;transform:translateX(-50%);display:flex;width:44px;align-items:center}.tvStack.top{top:7px;flex-direction:column}.tvStack.bottom{bottom:7px;flex-direction:column-reverse}.tvChecker{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;flex:0 0 39px;margin:-2px 0;border:2px solid;box-shadow:inset 0 0 0 2px rgba(255,255,255,.22),0 3px 6px rgba(0,0,0,.42);cursor:grab;position:relative}.tvChecker:active{cursor:grabbing}.tvChecker.p1{background:radial-gradient(circle at 35% 28%,#fff,#eee1cf 50%,#bca98e);border-color:#f8f0e5;color:#22160f}.tvChecker.p2{background:radial-gradient(circle at 35% 28%,#555,#1d2024 58%,#050607);border-color:#777;color:white}.tvChecker b{font-size:10px;background:#7d5cff;color:white;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center}
.tvCenterBar{position:absolute;z-index:6;top:0;bottom:0;left:50%;width:48px;transform:translateX(-50%);display:grid;grid-template-rows:1fr 84px 1fr;padding:5px;background:linear-gradient(90deg,#4f2b18,#784526,#4f2b18);box-shadow:inset 0 0 0 2px rgba(255,225,184,.18)}.tvBarZone{display:flex;align-items:center;justify-content:flex-start;flex-direction:column;overflow:hidden}.tvBarZone.p1{justify-content:flex-end}.tvBarZone.selected{box-shadow:inset 0 0 0 2px #7b5cff;border-radius:8px}.tvBarZone .tvChecker{width:34px;height:34px;flex-basis:34px}.tvDiceArea{align-self:center;display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:wrap}.tvDiceHint{font-size:8px;color:#d8b487;font-weight:900}.tvDie{width:34px;height:34px;border-radius:7px;background:linear-gradient(145deg,#fff,#dedede);box-shadow:0 4px 8px #0008,inset 0 0 0 1px #bbb;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:5px}.tvDie i{display:grid;place-items:center}.tvDie i.pip:before{content:"";width:5px;height:5px;border-radius:50%;background:#171717}
.tvOffTray{border:4px solid #5c351e;border-radius:8px;background:linear-gradient(90deg,#a16a39,#c08b52);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#23150d;box-shadow:inset 0 0 13px #4a2817}.tvOffTray.legal{outline:3px solid #22db86;cursor:pointer;box-shadow:0 0 24px rgba(34,219,134,.35),inset 0 0 13px #4a2817}.tvOffTray small{font-size:6px;font-weight:1000;writing-mode:vertical-rl;transform:rotate(180deg);opacity:.65}.tvOffTray>b{font-size:9px}.tvOffDivider{width:78%;height:1px;background:#4d2c1a;margin:5px 0}.tvOffPile{height:72px;display:flex;flex-direction:column;justify-content:center}.tvOffPile i{width:30px;height:9px;border-radius:6px;margin:-1px}.tvOffPile.p1 i{background:#eadfce;border:1px solid #fff}.tvOffPile.p2 i{background:#17191d;border:1px solid #555}
.tvActionStrip{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-top:0;border-radius:0 0 14px 14px;background:#10161e}.tvStatus{flex:1;font-size:8px;color:#aab6c7}.tvActionStrip .btn:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:820px){.tvTable{grid-template-columns:42px 1fr}.tvWoodFrame{height:410px;border-width:8px}.tvHalf{grid-template-columns:repeat(6,1fr) 38px repeat(6,1fr);padding:0 4px}.tvCenterBar{width:38px}.tvStack{width:31px}.tvChecker{width:30px;height:30px;flex-basis:30px}.tvBarZone .tvChecker{width:27px;height:27px;flex-basis:27px}.tvDie{width:28px;height:28px;padding:4px}.tvOffPile i{width:22px}.tvPlayerBar{height:52px}}
@media(max-width:560px){.tvWoodFrame{height:340px}.tvChecker{width:24px;height:24px;flex-basis:24px;margin:-1px}.tvStack{width:25px}.tvBarZone .tvChecker{width:22px;height:22px;flex-basis:22px}.tvCenterBar{grid-template-rows:1fr 70px 1fr}.tvTable{grid-template-columns:32px 1fr;gap:4px;padding:4px}.tvOffTray{border-width:2px}.tvPointNo{display:none}.tvActionStrip{flex-wrap:wrap}.tvStatus{flex-basis:100%}}

/* V3.2.4 tavla double-dice display fix */
.tvDiceArea{align-self:center;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;padding:2px}
.tvDicePanel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:40px}
.tvDicePanel .tvDiceFaces{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:wrap}
.tvDicePanel.double .tvDiceFaces{gap:8px}
.tvDicePanel .tvRollMeta{display:flex;flex-direction:column;align-items:center;gap:3px}
.tvDiceLabel{font-size:6px;line-height:1;color:#e9d3ae;font-weight:1000;letter-spacing:.8px}
.tvDicePanel small{font-size:6px;line-height:1.05;color:#ceb28a;text-align:center}
.tvMoveDots{display:flex;gap:3px;flex-wrap:wrap;justify-content:center;max-width:38px}
.tvMoveDots i{width:12px;height:12px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:6px;font-weight:900;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.12);color:#9e815c}
.tvMoveDots i.on{background:linear-gradient(180deg,#f6d6a4,#d5964a);color:#3c2311;box-shadow:0 0 10px rgba(245,179,81,.28)}
.tvMoveDots i.off{background:rgba(0,0,0,.22);color:#7f6a50}
.tvDicePanel.used .tvDiceLabel,.tvDicePanel.used small{opacity:.72}
.tvDie.used{opacity:.65;filter:saturate(.65)}
.tvDie.extra{transform:scale(.94)}
@media(max-width:820px){
  .tvMoveDots i{width:10px;height:10px;font-size:5px}
  .tvDicePanel .tvDiceFaces{gap:4px}
}

/* ==========================================================
   V3.2.5 TAVLA FX + MOBILE GAME ROOM
   ========================================================== */
.gameMobileTabs{display:none}

/* tavla polished visual effects */
.tavlaPro{perspective:1200px}
.tvWoodFrame{background:
  radial-gradient(circle at 22% 34%,rgba(255,230,180,.10),transparent 18%),
  radial-gradient(circle at 78% 66%,rgba(60,18,7,.14),transparent 24%),
  linear-gradient(90deg,#a96f3c 0,#bd8750 49%,#63371d 49.3%,#63371d 50.7%,#bd8750 51%,#a96f3c 100%)}
.tvWoodFrame:after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.12),transparent 22%,transparent 72%,rgba(0,0,0,.12));mix-blend-mode:soft-light}
.tvChecker{transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.tvChecker:hover{transform:translateY(-2px) scale(1.035);filter:brightness(1.06)}
.tvPlayerBar.active{animation:tvTurnGlow 1.7s ease-in-out infinite alternate}
@keyframes tvTurnGlow{from{box-shadow:inset 0 0 0 1px rgba(38,220,135,.06),0 0 10px rgba(38,220,135,.04)}to{box-shadow:inset 0 0 0 1px rgba(38,220,135,.18),0 0 28px rgba(38,220,135,.15)}}
.tvPoint.legal:after{animation:tvLegalPulse 1s ease-in-out infinite}
@keyframes tvLegalPulse{0%,100%{transform:translateX(-50%) scale(.82);opacity:.6}50%{transform:translateX(-50%) scale(1.12);opacity:1}}
.tvDicePanel.rolling .tvDie{animation:tvDiceRoll .52s cubic-bezier(.2,.8,.2,1)}
.tvDicePanel.rolling .tvDie:nth-child(2){animation-delay:.055s}
@keyframes tvDiceRoll{0%{transform:translateY(-18px) rotate(-18deg) scale(.72);opacity:.45}42%{transform:translateY(4px) rotate(9deg) scale(1.08);opacity:1}72%{transform:translateY(-2px) rotate(-3deg) scale(.97)}100%{transform:none}}
.tavlaPro.rollPulse .tvWoodFrame{animation:tvBoardPulse .48s ease-out}
@keyframes tvBoardPulse{0%{filter:brightness(.92)}45%{filter:brightness(1.09)}100%{filter:none}}
.tvPoint.moveFlash:after,.tvOffTray.moveFlash:after{content:"";position:absolute;inset:8%;border-radius:18px;border:3px solid #4af0a4;box-shadow:0 0 24px rgba(74,240,164,.58);animation:tvMoveFlash .75s ease-out;pointer-events:none;z-index:30}
.tvPoint.hitFlash:after,.tvOffTray.hitFlash:after{content:"";position:absolute;inset:7%;border-radius:18px;border:3px solid #ff746d;box-shadow:0 0 30px rgba(255,80,72,.7);animation:tvHitFlash .75s ease-out;pointer-events:none;z-index:30}
@keyframes tvMoveFlash{0%{opacity:0;transform:scale(.75)}25%{opacity:1;transform:scale(1.03)}100%{opacity:0;transform:scale(1.15)}}
@keyframes tvHitFlash{0%{opacity:0;transform:scale(.75) rotate(-2deg)}28%{opacity:1;transform:scale(1.04) rotate(1deg)}100%{opacity:0;transform:scale(1.18)}}
.tvDiceArea{border-radius:12px;background:rgba(35,17,8,.18);box-shadow:inset 0 0 0 1px rgba(255,225,180,.08);padding:5px 3px}
.tvDie{transition:filter .2s,transform .2s}
.tvMoveDots i.on{animation:tvDotGlow 1.3s ease-in-out infinite alternate}
@keyframes tvDotGlow{from{box-shadow:0 0 5px rgba(245,179,81,.15)}to{box-shadow:0 0 13px rgba(245,179,81,.52)}}

@media(max-width:760px){
  .gamesPage{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
  .gameHero{padding:16px;border-radius:16px}
  .gameHero h2{font-size:22px;line-height:1.15;margin:8px 0}
  .gameHero p{font-size:9px;line-height:1.5}
  .gameCatalogGrid,.activeGameRooms{grid-template-columns:1fr 1fr;gap:8px}
  .gameCatalogCard,.gameLobbyCard{padding:11px;border-radius:14px}
  .gameCatalogIcon{font-size:28px}
  .gameInviteRow{grid-template-columns:1fr auto auto;gap:5px;padding:8px}
  .gameInviteRow .btn{padding:7px 8px;font-size:8px}

  .gameRoomPage.active{height:100dvh!important;padding:0!important;overflow:hidden}
  .gameMobileTabs{position:fixed;z-index:70;left:8px;right:8px;bottom:calc(7px + env(safe-area-inset-bottom));height:50px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:16px;background:rgba(11,15,22,.95);border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 35px rgba(0,0,0,.42);backdrop-filter:blur(16px)}
  .gameMobileTabs button{border:0;border-radius:12px;background:transparent;color:#8997aa;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:5px}
  .gameMobileTabs button.active{background:rgba(114,84,255,.2);color:#fff}
  .gameRoomShell{display:block!important;height:100dvh;padding:0 0 calc(64px + env(safe-area-inset-bottom));overflow:hidden;background:#090d13}
  .gameRoomShell>.gameMembersPane,.gameRoomShell>.gameBoardPane,.gameRoomShell>.gameChatPane{display:none!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;max-height:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important}
  .gameRoomShell.mobile-view-members>.gameMembersPane{display:flex!important}
  .gameRoomShell.mobile-view-board>.gameBoardPane{display:flex!important}
  .gameRoomShell.mobile-view-chat>.gameChatPane{display:flex!important}
  .gameMembersPane{padding:10px;overflow:auto;flex-direction:column}
  .gameMemberList{max-height:none}
  .gameMemberActions{position:sticky;bottom:0;background:#0d131c;padding:8px 0 calc(4px + env(safe-area-inset-bottom))}
  .gameBoardPane{min-height:0!important;padding:0;overflow:hidden;flex-direction:column}
  .gameBoardTop{position:relative;z-index:5;padding:7px 8px;min-height:54px;gap:5px;background:#0c1119}
  .gameBoardTop>div:first-child{min-width:0}
  .gameBoardTop strong{font-size:8px;max-width:42vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gameTopBtns{display:flex;gap:3px;overflow-x:auto;max-width:58vw;scrollbar-width:none}
  .gameTopBtns::-webkit-scrollbar{display:none}
  .gameTopBtns .btn{flex:0 0 auto;padding:6px 7px;font-size:7px;white-space:nowrap}
  .gameBoard{flex:1;min-height:0!important;overflow:auto;padding:8px;-webkit-overflow-scrolling:touch}
  .gameChatPane{flex-direction:column;background:#0c121b}
  .gameChatLog{flex:1;min-height:0;overflow:auto;padding-bottom:10px}
  .gameChatComposer{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .gameChatComposer input{font-size:16px!important}

  /* tavla: scale instead of crop */
  .tavlaPro{width:100%;height:auto;max-width:none}
  .tvPlayerBar{height:48px;padding:6px 8px}
  .tvPlayerBar .avatar{width:32px;height:32px}
  .tvPlayerBar b{font-size:9px}.tvPlayerBar small{font-size:6px}
  .tvTable{grid-template-columns:30px minmax(0,1fr);gap:4px;padding:4px}
  .tvWoodFrame{height:auto!important;aspect-ratio:1.62/1;border-width:6px;border-radius:6px;min-width:0}
  .tvHalf{height:47%;grid-template-columns:repeat(6,minmax(0,1fr)) 30px repeat(6,minmax(0,1fr));padding:0 2px}
  .tvCenterBar{width:30px;grid-template-rows:1fr 74px 1fr;padding:2px}
  .tvPoint:before{left:2%;right:2%}
  .tvStack{width:clamp(20px,6.2vw,30px)}
  .tvChecker{width:clamp(19px,6vw,29px);height:clamp(19px,6vw,29px);flex-basis:clamp(19px,6vw,29px);border-width:1px;margin:-1px 0}
  .tvBarZone .tvChecker{width:clamp(18px,5.5vw,25px);height:clamp(18px,5.5vw,25px);flex-basis:clamp(18px,5.5vw,25px)}
  .tvChecker b{font-size:7px;min-width:15px;height:15px}
  .tvDie{width:25px;height:25px;padding:4px;border-radius:6px}
  .tvDie i.pip:before{width:4px;height:4px}
  .tvDiceArea{padding:2px 1px}
  .tvDicePanel{gap:2px;min-width:28px}
  .tvDicePanel .tvDiceFaces{gap:3px}
  .tvDiceLabel,.tvDicePanel small{font-size:5px}
  .tvMoveDots{gap:2px;max-width:28px}
  .tvMoveDots i{width:8px;height:8px;font-size:0}
  .tvOffTray{border-width:2px;border-radius:5px}
  .tvOffTray small{display:none}
  .tvOffPile{height:52px}
  .tvOffPile i{width:18px;height:6px}
  .tvOffTray>b{font-size:7px}
  .tvActionStrip{position:sticky;bottom:0;z-index:10;padding:6px;gap:4px;background:rgba(14,20,29,.96);backdrop-filter:blur(10px)}
  .tvStatus{font-size:7px;line-height:1.25}
  .tvActionStrip .btn{padding:7px 8px;font-size:8px}
  .tvPoint.legal:after{width:11px;height:11px}
  .tvTurnBadge{font-size:6px;padding:3px 5px}
}

@media(max-width:430px){
  .gameCatalogGrid,.activeGameRooms{grid-template-columns:1fr}
  .gameBoard{padding:4px}
  .tvTable{grid-template-columns:25px minmax(0,1fr)}
  .tvHalf{grid-template-columns:repeat(6,minmax(0,1fr)) 26px repeat(6,minmax(0,1fr))}
  .tvCenterBar{width:26px;grid-template-rows:1fr 65px 1fr}
  .tvPlayerBar{height:44px}
}

@media(max-width:760px) and (orientation:landscape){
  .gameMobileTabs{left:auto;right:6px;top:62px;bottom:auto;width:52px;height:auto;grid-template-columns:1fr;padding:4px}
  .gameMobileTabs button{height:46px;flex-direction:column;gap:1px}
  .gameMobileTabs button span{font-size:6px}
  .gameRoomShell{padding:0 62px 0 0}
  .gameBoardTop{height:48px;min-height:48px}
  .gameBoard{padding:4px}
  .tavlaPro{max-width:920px;margin:auto}
  .tvPlayerBar{height:38px}
  .tvWoodFrame{max-height:calc(100dvh - 140px);aspect-ratio:1.8/1}
  .tvActionStrip{padding:4px}
}

/* V3.3.2 online invite presence */
.gameInviteRow{align-items:center}
.gameInvitePerson{min-width:0;flex:1}
.gameInvitePerson b,.gameInvitePerson small{display:block}
.gameInvitePerson b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gameInvitePerson small{font-size:7px;color:#95a2b5;margin-top:2px}
.gameInviteRow .gamePresenceDot{margin-right:1px}
@media(max-width:760px){
  .inviteUserList{max-height:58dvh;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .gameInviteRow{display:grid!important;grid-template-columns:8px 36px minmax(0,1fr) auto!important;gap:7px!important;padding:8px 4px!important}
  .gameInviteRow .avatar{width:36px!important;height:36px!important}
  .gameInviteRow .btn{padding:7px 8px!important;font-size:8px!important;white-space:nowrap}
}

/* V3.3.3 authorized game bots */
.botBtn{background:linear-gradient(135deg,#253853,#182334)!important;border-color:rgba(92,168,255,.28)!important;color:#d9ecff!important}
.botBtn.active{background:linear-gradient(135deg,#2f214f,#1d1730)!important;border-color:rgba(165,110,255,.38)!important;color:#eadcff!important}
.botMember{background:linear-gradient(90deg,rgba(73,114,170,.10),transparent)!important}
.botAvatar{background:radial-gradient(circle at 35% 30%,#6da8ff,#263d62 64%,#162338)!important;font-size:20px!important;box-shadow:0 0 0 2px rgba(96,170,255,.17),0 0 18px rgba(62,135,235,.16)!important}
@media(max-width:760px){#gameBotBtn{flex:0 0 auto!important}}

/* V3.3.5 natural bot identity */
.botMember .botAvatar{
  background:linear-gradient(135deg,#217a68,#345f9f);
  box-shadow:0 0 0 2px rgba(94,221,190,.16);
}
.botMember .gameMemberInfo small{color:#9fcbbf}
