/* 轮到出牌的提示占一整行，不再挤占手牌左侧空间。 */
#points-page .mj-table-mode .mj-hand-panel{padding-left:8px!important;padding-right:8px!important}
#points-page .mj-table-mode .mj-hand-panel .mj-turn-anchor{position:relative!important;left:auto;top:auto!important;width:100%!important;height:28px!important;grid-column:1/-1;grid-row:1;display:flex;align-items:center;margin:0 0 4px}
#points-page .mj-table-mode .mj-hand-panel .mj-turn-notice{position:static!important;inset:auto!important;transform:none!important;display:flex;flex-direction:row!important;justify-content:flex-start!important;align-items:center;gap:7px;width:100%;height:26px;background:#f4d998;border:1px solid #f8e5b4;border-radius:7px;padding:3px 10px;color:#453d23;box-shadow:0 2px 6px #0c302522}
#points-page .mj-table-mode .mj-hand-panel .mj-turn-notice[hidden]{display:none!important}
#points-page .mj-table-mode .mj-hand-panel .mj-turn-notice strong{font-size:12px!important;font-weight:700;line-height:18px!important;padding:0!important;margin:0;background:none;box-shadow:none;color:#453d23;-webkit-text-fill-color:#453d23}
.mj-turn-dot{width:6px;height:6px;background:#826627;border-radius:50%;flex:none;box-shadow:0 0 0 3px #8266271a}.mj-turn-help{margin-left:auto;font-size:10px;color:#806935;white-space:nowrap}
#points-page .mj-table-mode .mj-hand-panel .mj-hand{padding-top:21px;margin-top:0}
#points-page .mj-table-mode[data-orientation=landscape] .mj-hand-panel{grid-template-rows:28px auto;row-gap:0;column-gap:8px}
#points-page .mj-table-mode[data-orientation=landscape] .mj-hand-panel .mj-hand{grid-row:2;grid-column:1}
#points-page .mj-table-mode[data-orientation=landscape] .mj-hand-panel .mj-buttons{grid-row:2;grid-column:2;margin-top:14px}
#points-page .mj-player-avatar{position:relative;overflow:visible;background:#ccdbc9;border:2px solid #dac58e;box-shadow:0 2px 8px #001d1633}
#points-page .mj-player-avatar>img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}
#points-page .mj-player-avatar>i{z-index:2;font-style:normal;box-shadow:0 1px 3px #0004}
#points-page .mj-player-avatar>.mj-dealer-badge{z-index:3}
#points-page .mj-active-seat .mj-player-avatar{border-color:#ffe2a7;box-shadow:0 0 0 3px #f5d28235}
.mj-lobby-preferences{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border:1px solid #e0e7da;border-radius:12px;background:#f8faf3;margin:0 0 16px;color:#62734d;font-size:12px}.mj-lobby-preferences label{display:flex;align-items:center;gap:10px;white-space:nowrap}.mj-lobby-preferences select{width:100px;min-height:36px;padding:5px 9px!important;background:white;border:1px solid #d8dfcd;border-radius:7px;color:#3d593b}.mj-lobby-preferences>span{font-size:11px;color:#87917b}
@media(max-width:600px){.mj-lobby-preferences{padding:12px;flex-wrap:wrap;gap:8px}.mj-lobby-preferences>span{font-size:10px}#points-page .mj-table-mode .mj-hand-panel .mj-turn-notice strong{font-size:11px!important}.mj-turn-help{font-size:9px}#points-page .mj-table-mode .mj-hand-panel .mj-turn-anchor{height:26px!important;margin-bottom:1px}}
@media(orientation:landscape) and (max-height:500px){#points-page .mj-table-mode .mj-hand-panel .mj-turn-anchor{height:22px!important;margin:0}#points-page .mj-table-mode .mj-hand-panel .mj-turn-notice{height:21px;padding:1px 8px}#points-page .mj-table-mode[data-orientation=landscape] .mj-hand-panel{grid-template-rows:22px auto}}

/* Keep the opposite player's identity together above the concealed hand. */
#points-page .mj-table-mode .mj-table-seat-2{column-gap:7px;row-gap:1px}
#points-page .mj-table-mode .mj-table-seat-2>.mj-player-avatar{grid-row:1/3;justify-self:center;align-self:center}
#points-page .mj-table-mode .mj-table-seat-2>strong,#points-page .mj-table-mode .mj-table-seat-2>small{justify-self:stretch;text-align:left;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#points-page .mj-table-mode .mj-table-seat-2>.mj-concealed,#points-page .mj-table-mode .mj-table-seat-2>.mj-ready-state{grid-column:1/-1;grid-row:3;justify-self:center;justify-content:center;margin-top:3px}
