/* Player identity controls inherit the existing table and chat geometry. */
.seat .avatar.player-profile-trigger{padding:0;cursor:pointer}
.seat .seat-info.player-profile-trigger{display:block;width:100%;text-align:inherit;cursor:pointer}
.seat-info .seat-player-name,.chat-message .chat-player-name,.lobby-chat-byline .chat-player-name{display:inline;background:transparent;padding:0;border:0;border-radius:3px;color:inherit;font:inherit;line-height:inherit;text-align:inherit}
.seat-info .seat-player-name,.seat-info.player-profile-trigger:hover .seat-player-name{text-decoration:none}
.seat-info .seat-player-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}
.chat-message .chat-player-name:hover,.lobby-chat-byline .chat-player-name:hover{color:var(--cream);text-decoration:underline;text-underline-offset:3px}
.chat-avatar.player-profile-trigger,.lobby-chat-avatar.player-profile-trigger{padding:0;overflow:hidden}
#app-dialog.player-profile-dialog{width:min(640px,calc(100vw - 28px));max-width:640px;max-height:calc(100dvh - 32px);padding:18px;overflow-y:auto}
#app-dialog.player-profile-dialog .dialog-header{margin-bottom:12px}
#app-dialog.player-profile-dialog #dialog-title{font-size:20px;line-height:1.2;margin:0}
.player-profile-identity{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;align-items:start}
.player-profile-avatar{width:54px;height:54px;border-radius:50%;overflow:hidden;background:var(--surface-raised,#242b30)}
.player-profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}
#dialog-body .player-profile-identity h3{font:650 22px/1.2 Outfit,system-ui,sans-serif;margin:0 0 6px;overflow-wrap:anywhere}
.player-level-line{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:12px;line-height:1.4}
.player-level-line strong{color:var(--gold);font-weight:650}
.player-level-line>span{color:var(--muted);font-variant-numeric:tabular-nums}
.player-level progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:6px;overflow:hidden;margin:5px 0;background:var(--surface-raised,#242b30);color:var(--brass,var(--gold))}
.player-level progress::-webkit-progress-bar{background:var(--surface-raised,#242b30);border-radius:6px}.player-level progress::-webkit-progress-value{background:var(--brass,var(--gold));border-radius:6px}.player-level progress::-moz-progress-bar{background:var(--brass,var(--gold));border-radius:6px}
.player-level>p{font-size:11px!important;line-height:1.5!important;color:var(--muted);margin:9px 0 0!important}
.player-level-unavailable{font-size:12px;color:var(--muted)}
.player-profile-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.player-profile-filters label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}
#dialog-body .player-profile-filters select{appearance:none;-webkit-appearance:none;width:100%;min-width:0;min-height:38px;padding:7px 36px 7px 10px;border:1px solid var(--line);border-radius:7px;background-color:var(--bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23aeb5bd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right 12px center;background-size:16px 16px;background-repeat:no-repeat;color:var(--cream);font-size:13px}
.player-profile-tabs{display:flex;gap:4px;padding:0;border-radius:0;background:transparent;border-bottom:1px solid var(--line);margin:12px 0}
#app-dialog #dialog-body .player-profile-tabs button{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;flex:1;width:auto;min-width:0;text-align:center;min-height:40px;margin:0;padding:8px 12px;font-size:13px;line-height:1.4;font-weight:600;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted)}
#app-dialog #dialog-body .player-profile-tabs button[aria-selected=true]{background:transparent;color:var(--gold)}
#app-dialog #dialog-body .player-profile-tabs button[aria-selected=true]::after{content:"";position:absolute;bottom:-1px;left:24%;right:24%;height:2px;border-radius:2px;background:var(--brass,var(--gold))}
#app-dialog #dialog-body .player-profile-tabs button:hover{color:var(--cream);background:var(--surface-raised,#242b30)}
#app-dialog #dialog-body .player-profile-tabs button[aria-selected=true]:hover{color:var(--gold)}
.player-profile-sample{color:var(--muted);font-size:12px!important;line-height:1.5;margin:0 0 9px!important}.player-profile-sample strong{font-weight:600;color:var(--cream)}
.player-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.player-stat{min-width:0;padding:10px;background:var(--surface-raised,#242b30);border-radius:8px}
.player-stat>div{display:block}
.player-stat>div>strong{display:block;margin-top:5px;color:var(--cream);font:600 22px/1.15 Outfit,system-ui,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
.player-stat-help small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:5px}
.player-stat-help{min-width:0}.player-stat-help summary{display:flex;gap:5px;align-items:center;list-style:none;cursor:pointer;font-weight:550;font-size:12px;color:var(--muted);line-height:1.45}.player-stat-help summary::-webkit-details-marker{display:none}
.player-info-symbol{display:inline-grid;place-items:center;font:500 9px Georgia,serif;width:12px;height:12px;border:1px solid currentColor;border-radius:50%;opacity:.7;flex-shrink:0}
.player-stat-help>p{font-size:11px!important;line-height:1.5!important;color:var(--muted);margin:8px 0 0!important}
.player-profile-footnote{font-size:11px!important;line-height:1.6!important;color:var(--muted);margin:10px 0 0!important}
.player-profile-loading,.player-profile-error{font-size:14px!important;line-height:1.6!important;color:var(--muted);padding:22px 0;margin:0!important}
.player-profile-error{color:var(--gold)}
.player-profile-content{min-height:180px}.player-profile-content>.secondary-button{position:static!important}
.player-profile-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:10px;margin-top:12px}
.player-profile-footer>span{font-size:12px;color:var(--muted)}
#dialog-body .player-profile-footer>button{position:static;margin:0;width:auto;flex:none;min-height:40px;padding:8px 14px;font-size:13px;white-space:nowrap;border-radius:7px}
.player-showdown-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.player-showdown-totals>div{padding:12px 10px;text-align:center;background:var(--surface-raised,#242b30);border-radius:8px}
.player-showdown-totals span{display:block;color:var(--muted);font-size:12px}.player-showdown-totals strong{display:block;font:600 25px Outfit,sans-serif;margin-top:6px}.player-showdown-totals .is-won strong{color:var(--gold)}
#dialog-body .player-showdown-recent h3{font:600 15px Outfit,system-ui,sans-serif;margin:15px 0 10px}
.player-showdown-recent ol{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:0;padding:0}.player-showdown-recent li{padding:9px 11px;background:var(--surface-raised,#242b30);border-radius:6px;display:flex;flex-direction:column;gap:5px;font-size:12px}.player-showdown-recent li.is-won{color:var(--gold);background:var(--gold-surface,#332b1d)}.player-showdown-recent time{color:var(--muted);font-size:9px}.player-showdown-recent>p{font-size:13px;color:var(--muted);line-height:1.6}
.profile-own-summary{margin:20px 0 22px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.profile-own-summary .player-level{max-width:280px;margin:auto;text-align:left}
.profile-own-summary>.secondary-button{position:static;width:100%;margin:16px 0 0;min-height:44px;font-size:13px;justify-content:center}
@media(max-width:600px){#app-dialog.player-profile-dialog{padding:14px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.player-profile-identity{grid-template-columns:46px minmax(0,1fr);gap:10px}.player-profile-avatar{width:46px;height:46px}#dialog-body .player-profile-identity h3{font-size:21px}.player-level-line{font-size:11px}.player-profile-filters{gap:9px}.player-profile-footer{align-items:center}.player-profile-footer>span{max-width:125px;line-height:1.5}.player-stat{padding:9px 10px}.player-stat>div>strong{font-size:21px}.player-stat-help summary{font-size:12px}#app-dialog #dialog-body .player-profile-tabs button{min-height:44px}#dialog-body .player-profile-filters select{min-height:44px}}
.player-tip-recipient{display:flex;align-items:center;gap:15px;margin:0 0 18px}.player-tip-recipient>span{display:block;flex:none;width:56px;height:56px;border-radius:50%;overflow:hidden;background:var(--surface-raised,#242b30)}.player-tip-recipient img{width:100%;height:100%;object-fit:cover}.player-tip-recipient small{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.player-tip-recipient strong{font:650 24px/1.2 Outfit,sans-serif;overflow-wrap:anywhere}
.player-tip-summary{margin:20px 0}.player-tip-summary>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;font-size:14px}.player-tip-summary dt{color:var(--muted)}.player-tip-summary dd{font-weight:600;margin:0}.player-tip-summary .is-total{border-top:1px solid var(--line);margin-top:6px;padding-top:16px}
.player-tip-form{display:flex;flex-direction:column;gap:18px;margin-top:22px}.player-tip-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}.player-tip-form input{width:100%;min-height:46px;padding:12px 14px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--cream);font-size:16px}.player-tip-form>.primary-button{justify-content:center;min-height:46px;font-size:15px}
.player-tip-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.player-tip-actions>button{flex:1;justify-content:center;min-height:44px;font-size:13px;position:static!important}
#dialog-body .player-tip-title{font:600 23px Outfit,system-ui,sans-serif;margin:5px 0 18px}.player-tip-result{text-align:center;padding:20px 0}.player-tip-result>span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--gold-surface,#332b1d);color:var(--gold);font-size:28px;margin:0 auto 17px}.player-tip-result h3{font:650 26px Outfit,system-ui,sans-serif!important;margin:0 0 12px!important}.player-tip-result>strong{font:650 34px Outfit,system-ui,sans-serif;color:var(--gold)}.player-tip-result p{color:var(--muted);font-size:13px!important;line-height:1.7!important;margin:18px 0 0!important}
.player-tip-history{list-style:none;padding:0;margin:16px 0}.player-tip-history li{display:flex;gap:14px;justify-content:space-between;border-bottom:1px solid var(--line);padding:15px 0}.player-tip-history li>div{min-width:0}.player-tip-history li>div:last-child{text-align:right;flex-shrink:0}.player-tip-history strong{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.4}.player-tip-history small,.player-tip-history span{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:6px}.player-tip-history b{font-size:14px;font-weight:600}
.player-tip-pending{padding:14px;border-radius:8px;background:var(--gold-surface,#332b1d)}.player-tip-pending p{font-size:13px!important;color:var(--gold);margin:0 0 10px!important}.player-tip-pending .secondary-button{position:static!important;width:100%;justify-content:center}

@media(min-width:601px){.player-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.player-stats-grid>.player-stat:nth-last-child(-n+2){grid-column:span 2}}
.tip-admin-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;border-top:1px solid var(--line);padding:17px 0}.tip-admin-row>div{min-width:0;flex:1}.tip-admin-row strong{font-size:14px;overflow-wrap:anywhere}.tip-admin-row p{color:var(--muted);font-size:12px;line-height:1.6;margin:7px 0 0}.tip-admin-row>.secondary-button{position:static!important;min-height:44px;padding:10px 16px;font-size:13px;flex-shrink:0}
.tip-review-form{display:flex;flex-direction:column;gap:17px;width:100%;max-width:440px}.tip-review-form>p{font-size:14px;line-height:1.6;margin:0}.tip-review-form>label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}.tip-review-form :is(input,select){width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid var(--line);border-radius:7px;color:var(--cream);background:var(--bg);font-size:15px}.tip-review-form>.primary-button{justify-content:center;min-height:44px;font-size:14px}.tip-review-form [data-tip-review-status]:empty{display:none}

.player-level-help{margin-top:6px;color:var(--muted)}.player-level-help summary{cursor:pointer;font-size:11px;line-height:1.5}.player-level-help>p{font-size:11px!important;line-height:1.6!important;margin:7px 0 0!important;color:var(--muted)}

/* Tips use a focused, compact dialog while profiles retain their stats grid. */
#app-dialog.player-profile-dialog.player-tip-dialog{width:min(440px,calc(100vw - 24px));padding:20px}
#app-dialog.player-tip-dialog .dialog-header{margin-bottom:18px}
.player-tip-dialog .player-tip-recipient{gap:12px;margin:0 0 16px}
.player-tip-dialog .player-tip-recipient>span{width:44px;height:44px}
.player-tip-dialog .player-tip-recipient strong{font-size:21px;color:var(--cream)}
.player-tip-dialog .player-tip-recipient small{font-size:11px;margin-bottom:3px}
.player-tip-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:8px;background:var(--surface-raised,#242b30)}
.player-tip-balance>span{font-size:12px;color:var(--muted)}
.player-tip-balance>strong{font:600 20px/1.3 Outfit,system-ui,sans-serif;color:var(--cream);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0;text-align:right}
.player-tip-dialog .player-tip-form{gap:12px;margin-top:18px}
.player-tip-amount-field{display:flex;align-items:center;gap:9px;padding:0 12px;min-height:52px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.player-tip-amount-field>span:first-child{font-size:20px;color:var(--muted)}
.player-tip-amount-field>span:last-child{font-size:11px;color:var(--muted);letter-spacing:.5px}
#app-dialog #dialog-body .player-tip-amount-field input{min-width:0;flex:1;width:100%;margin:0;padding:10px 0;border:0;background:transparent;box-shadow:none;font-size:22px;line-height:1.4;font-variant-numeric:tabular-nums}
.player-tip-amount-field:focus-within{border-color:var(--brass,var(--gold))}
#dialog-body .player-tip-eligibility{margin:0;font-size:11px;line-height:1.6;color:var(--muted)}
.player-tip-entry-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:10px;margin-top:6px}
#app-dialog #dialog-body .player-tip-entry-actions>button{position:static;inset:auto;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;margin:0;padding:10px 12px;font-size:13px;line-height:1.4;border-radius:7px;white-space:nowrap}
.player-tip-dialog .player-tip-summary{margin:14px 0}
.player-tip-dialog .player-tip-summary>div{padding:7px 0}
.player-tip-dialog .player-tip-actions{margin-top:12px}
#app-dialog #dialog-body .player-tip-actions>button{margin:0}
@media(max-width:600px){#app-dialog.player-profile-dialog.player-tip-dialog{padding:16px}}

/* A quiet brass level chip, outside the avatar crop and clear of seat markers. */
.has-avatar-level{overflow:visible!important}
.has-avatar-level:not(.avatar){position:relative}
.has-avatar-level>img{border-radius:50%}
.avatar-level-badge{position:absolute;right:-3px;bottom:-3px;z-index:6;display:flex;align-items:center;justify-content:center;min-width:16px;height:14px;padding:0 3px;box-sizing:border-box;border:1px solid #9f8754;border-radius:4px;background:#171c20;color:#f4dfad;font:700 10px/1 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:0;text-shadow:none;box-shadow:0 1px 2px #0005;pointer-events:none}
.avatar.has-avatar-level>.avatar-level-badge{right:-2px;bottom:-4px;min-width:19px;height:16px;font-size:10px}
.sidebar-profile.has-avatar-level>.avatar-level-badge{left:28px;right:auto;bottom:8px}
.player-profile-avatar>.avatar-level-badge,.profile-avatar>.avatar-level-badge{min-width:21px;height:17px;font-size:11px}
@media(max-width:700px){.avatar.has-avatar-level>.avatar-level-badge{min-width:17px;height:14px;font-size:10px}}
