/* player-desktop-text-clipping-fix-v1-20260907
   三处被裁掉的文字，互不相干，合成一张表发。
   每条的压制方都用「特异性更高 + 排在更后面」的未分层规则覆盖，
   这次压的都不是 theme 的分层 !important，所以不需要 @layer vip-source-lock。 */

/* ── A. Games 页厂商名被截断（≥901px） ────────────────────────────
   player-desktop-safari-game-nav-v50 把 .provider-section 钉死 62px 高，
   卡片里留给名字的只有 142–146px，而最长的 "PP Live Casino Transfer" /
   "Spade Gaming Transfer" 需要 171px，7 个名字被 ellipsis 截掉。
   不改字号、不改卡片高度，改成两行 —— 2×18px = 36px，62px 的卡片放得下。

   压制方：player-desktop-provider-index-compact-v25-20260826.css 的
   `html body #root .player-shell .provider-section .provider-heading strong`
   （1 id + 3 class + 2 元素）。这里多带一个 .app-shell 才压得住。 */
@media screen and (min-width: 901px) {
  html body #root .app-shell.player-shell .provider-section .provider-heading strong {
    white-space: normal !important;
    line-height: 1.2 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
}

/* ── D. My account 的「VIP 3」徽标被切掉一半 ──────────────────────
   主题基线 .profile-name 是 `minmax(0,max-content) auto`，第二列按内容撑。
   player-profile-nickname-logo-safe-v3 把它改成 `minmax(0,1fr) 18px` ——
   18px 是按图标尺寸写的，而这一格里现在是「VIP 3」文字徽标，需要 36px。
   恢复成按内容撑；昵称那一列仍是 1fr，长昵称照样能缩。 */
html body #root .app-shell.player-shell:has(.profile-page) .profile-page .profile-name {
  grid-template-columns: minmax(0, 1fr) max-content !important;
}

html body #root .app-shell.player-shell .profile-page .profile-option3-vip-badge {
  min-width: max-content !important;
  overflow: visible !important;
}

/* ── G. 钱包页「流水已完成 / 剩余」金额被拦腰切 ────────────────────
   .balance-stats.balance-amount-grid 的格子是 height/max-height:52px +
   overflow:hidden，里面 flex 竖排「标签 + 金额」，金额被挤到 13px 高
   （需要 21px），数字下半截整个没了。桌面和手机都发作。
   让金额不参与压缩，格子按内容撑高（实测 52 → 58px，其余排版不动）。 */
html body #root .app-shell.player-shell .wallet-page .balance-stats.balance-amount-grid > * {
  min-height: max-content !important;
  padding-block: 2px !important;
}

html body #root .app-shell.player-shell .wallet-page .balance-stats.balance-amount-grid > * > strong {
  flex: 0 0 auto !important;
  min-height: max-content !important;
  overflow: visible !important;
}
