/* polish-v1: visual refinements layered last over the generated styles */

/* 混儿：金色描边 + 角标贴在牌边上，不再压住牌面 */
.tile.joker{overflow:visible;box-shadow:0 0 0 2px #e6c573cc,0 2px 4px #0003}
.tile.joker:after{top:-7px;right:-6px;left:auto;min-width:15px;height:15px;padding:0 2px;border-radius:8px;
  background:linear-gradient(#f6dc94,#d6ae52);color:#4f3510;font:700 9px/15px "PingFang SC","Microsoft YaHei",sans-serif;
  text-align:center;box-shadow:0 1px 3px #0005;border:1px solid #fff6d6}
#river .tile.joker:after,.opponent-discard-tiles .tile.joker:after{top:-5px;right:-4px;min-width:11px;height:11px;font-size:7px;line-height:11px}

/* 左右两家的暗牌：竖排叠放的横向牌背，代替 4 列小方块 */
.west .backs,.east .backs{display:flex !important;flex-direction:column;align-items:center;gap:0;max-width:none}
.west .back,.east .back{width:18px !important;height:9px !important;margin-top:-3px;border-radius:2px;
  border-right-width:0 !important;border-bottom-width:3px !important}

/* 出牌区：空的时候只留淡淡的虚线框，不再显示“待出牌”字样 */
.opponent-discard-tiles:empty:after{content:''}
.opponent-discard{border-style:dashed !important;border-color:#e4d39a2e !important;background:#08261a24}
.opponent-discard small{font-size:10px;letter-spacing:1px;color:#eadfb4b3;white-space:nowrap;text-overflow:clip;overflow:visible}

/* 桌面水印降低存在感，小屏直接隐藏，避免压在左家头像上 */
.table-watermark{color:#d5d4aa1f}
@media (max-width:520px){.table-watermark{display:none}}

/* 剩余张数更醒目 */
.compact-wall-count,.center .wall-count,.center [class*=remain]{font-weight:600}

/* 自己门前的占位字也去掉，留空框即可 */
.discard-layout .self-discard-tiles:empty:after,.network-game .self-discard-tiles:empty:after{content:''}

/* 竖屏时左右两家的出牌区很窄，名字改成竖排，不再被截成“老陈…” */
@media (min-width:0px){
  .opponent-discard-1 small,.opponent-discard-3 small{writing-mode:vertical-rl;letter-spacing:2px;align-self:center;margin:4px 0;height:auto !important;width:auto !important;line-height:1.2 !important;overflow:visible !important;flex-shrink:0}
}
