/* Clear table hierarchy and quick responses inside the scalable game stage. */
#gameStage .player .avatar{width:104px;height:112px;border-radius:18px}
#gameStage .player-name{margin-top:5px;min-height:30px}
#gameStage .player-name b{font-size:19px}
#gameStage .player-detail{font-size:12px!important;margin-top:2px}
#gameStage .opponent-fan{transform:scale(.83);transform-origin:center}
#gameStage .four .seat2,#gameStage .six .seat3{top:6px!important}
#gameStage .six .seat2,#gameStage .six .seat4{top:22%!important}
#gameStage .six .seat1,#gameStage .six .seat5{top:49%!important}
#gameStage .seat0{top:calc(100% - 166px)!important}
#gameStage .match-strip{width:362px;height:86px;grid-template-columns:85px 1fr 85px;grid-template-rows:38px 28px;top:14px;padding:7px 11px}
#gameStage .score-team .match-points b{font-size:32px;font-variant-numeric:tabular-nums}
#gameStage .score-team .match-points::before{font-size:12px}
#gameStage #scoreDetails{font-size:27px;min-height:36px}
#gameStage .match-pips i{width:11px;height:11px;flex-shrink:0}
#gameStage .match-pips{gap:5px}
#gameStage .chat-dock{position:absolute;left:24px;bottom:20px;z-index:16;display:flex;direction:rtl;gap:8px}
/* Equal tiles, icon over label (owner, 2026-11-22: «ترتيب أحلى»): the row
   stays clear of the hand's last card even with «كشف» and nine cards. */
#gameStage .chat-dock button{width:96px;min-width:0;height:54px;border-radius:14px;border:1px solid #b9eee7;background:#197f8a;color:white;font:700 16px/1.15 Tahoma,Arial,sans-serif;box-shadow:0 4px 0 #053a49;padding:5px 6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
#gameStage .chat-dock button:last-child{background:#a55339;border-color:#edba93;box-shadow:0 4px 0 #492a20}
#gameStage .chat-dock svg{width:21px;height:21px;flex:none}
/* Above the tiles one status line, centred under the turn title: the table
   message, at most two lines. The hand label repeated the card count under the
   player's portrait and overlapped it; the drag hint now shows in this line
   on the player's turn (public/pound.js). */
#gameStage .hand-heading{display:none}
#gameStage .notice{left:6px;bottom:82px;width:231px;max-height:none;font-size:16px;line-height:1.35;color:#d9e6ee;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
#gameStage .phrase-shade{position:absolute;inset:0;z-index:21;background:#03121c88}
#gameStage .phrase-shade[hidden]{display:none}
#gameStage .social-panel{display:none;position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:680px;max-width:calc(100% - 60px);height:auto;max-height:calc(100% - 48px);margin:0;padding:22px;overflow:auto;z-index:22;border:1px solid #b5a378;border-radius:22px;background:#102d3c;box-shadow:0 18px 65px #0008}
#gameStage .social-panel.open{display:block}
#gameStage .social-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
#gameStage .social-heading h2{font-size:25px;margin:0;color:#fff1d0}
#gameStage #closePhrases{width:48px;height:48px;font-size:24px;padding:0;border-radius:12px}
#gameStage .phrase-tabs{display:flex;gap:8px;margin:0 0 16px}
#gameStage .phrase-tabs button{flex:1;min-height:49px;font-size:20px;border-radius:12px}
#gameStage .phrase-tabs button.selected{background:#258c95;border-color:#a3ebe6;color:white}
#gameStage .phrase-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#gameStage .phrase-choices button{min-height:64px;font-size:22px;line-height:1.45;padding:11px 12px;background:#1d7180;color:#fff;border:1px solid #55a7b0;border-radius:12px;box-shadow:0 3px #082c3a}
#gameStage .social-panel[data-group=opponent] .phrase-choices button{background:#984d38;border-color:#d6946f;box-shadow:0 3px #48251e}
#gameStage .phrase-choices button:disabled{opacity:.55}
#gameStage .phrase-hint{font-size:15px;color:#c1d4dd;margin:15px 0 0}
#gameStage #chatStatus{display:block;font-size:16px;color:#f2d8a5;margin:8px 0 0;min-height:24px}
#gameStage .chat-feed{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0;border:0}
#gameStage .speech-bubble{font-size:20px;line-height:1.45;max-width:250px;padding:10px 14px}
#gameStage .seat0 .speech-bubble{max-width:230px;left:-105px}
#gameStage :is(.chat-dock button,.phrase-tabs button,.phrase-choices button,#closePhrases):focus-visible{outline:3px solid #fff0b9;outline-offset:3px}
