/* Center each label in its own cell. Game-card faces and prose/list layout are intentionally untouched. */

/* Around the table: names and counts share the same center as their portrait. */
body .table-arena .opponent-name,body .table-arena .opponent-info{
 display:flex!important;align-items:center;justify-content:center;
 text-align:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
 overflow-wrap:anywhere;word-break:normal;max-height:none;line-height:1.25;
}
/* A one-line announcement uses the same physical center as a wrapped announcement. */
body .table-feedback :is(.last-action.table-status,.banter-bubble){
 display:flex!important;align-items:center;justify-content:center;text-align:center!important;
 min-height:48px;height:auto!important;max-height:none!important;padding:12px 14px;
 line-height:1.35;white-space:normal;overflow:visible!important;text-wrap:balance;
 -webkit-line-clamp:unset;-webkit-box-orient:initial;
}
body .table-feedback :is(.last-action.table-status,.banter-bubble)[hidden]{display:none!important}
body .table-feedback{grid-template-columns:minmax(0,1fr)!important;align-items:stretch}
body .table-feedback:has(.banter-bubble:not([hidden]))>.last-action{display:none!important}
body .sidebar :is(.round-heading,.session-label,.standing-meta),body .round-meta,
body .hand-heading :is(.session-label,.hand-meta),body .selection-help,body .pile-caption{text-align:center!important;white-space:normal;overflow-wrap:break-word;text-wrap:balance}
body .sidebar .round-heading{width:100%;white-space:normal!important;max-width:100%;margin-inline:auto}
body .standing-info{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;text-align:center!important}
body .standing-info>span{width:100%;max-width:100%;text-align:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
body :is(.standing-place,.standing-rank-icon,.result-rank){text-align:center!important}
body .standing-rank-icon{display:grid;place-items:center}
body .hand-heading>div{align-items:center;text-align:center}
body .autoplay-control{justify-content:center;text-align:center}

/* Brag board: center text inside its original row/stat/podium cells. */
body :is(.score-section-title,.score-podium-name,.score-podium-value,.score-podium-place,.score-mode-chip,.score-live-label,.score-list-place,.score-list-points,.score-profile h4,.score-stats dt,.score-stats dd,.score-verdict>strong,.score-controls label){text-align:center!important}
body .score-player-name{align-items:center;text-align:center!important;min-width:0}
body .score-player-name>strong,body .score-player-name>span{display:block;width:100%;max-width:100%;text-align:center!important;white-space:normal!important;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
body .score-podium-name{white-space:normal!important;overflow:visible;overflow-wrap:anywhere;max-height:none}
body .score-podium-name,body .mood-description>strong{display:flex;align-items:center;justify-content:center}
body .score-player-name{justify-content:center}
body :is(.result-name,.result-tag){text-align:center;white-space:normal;overflow-wrap:anywhere}
body .score-stats :is(dt,dd){margin-inline:0;overflow-wrap:break-word}
body .score-verdict>strong{display:block;width:100%}
body .score-trophies{justify-content:center}
body .score-trophies>span{justify-content:center;text-align:center}
body .score-round-counter>*,body .score-sprint>div>*,body .score-topline>*{text-align:center!important;min-width:0;overflow-wrap:break-word}
body .score-controls{justify-content:center}
body .score-controls>span{width:100%;margin-inline:0;text-align:center}
body .score-roast>button{justify-self:center;text-align:center}
body .results-list .result-row>div:not(.standing-avatar){text-align:center}

/* Settings and forms: keep the control column; center the copy inside its own text column. */
body :is(.form-label,.music-track-name,.music-volume-label,.soundboard-section-kicker,.soundboard-voice-copy,.soundboard-voice-status,.soundboard-toolbar>span,.deck-current,.deck-follow>span:first-child){text-align:center!important;overflow-wrap:break-word;text-wrap:balance}
body .form-label{width:100%}
body .setting-row>div,body .setting-row>span{flex:1;min-width:0;text-align:center!important}
body .setting-row :is(strong,p,small){text-align:center!important;white-space:normal;overflow-wrap:break-word}
body .music-volume-label{justify-content:center;gap:10px;flex-wrap:wrap}
body .soundboard-voice-copy label{display:block;text-align:center}
body .soundboard-voice-copy p{text-align:center}
body .deck-follow>span:first-child{align-items:center}
body .banter-settings label{justify-content:center;text-align:center;min-height:44px}
body :is(input.field,textarea.field,select.field,.theme-select){text-align:center!important;text-align-last:center;min-height:44px;min-width:0}
body :is(input.field,textarea.field)::placeholder{text-align:center!important}
/* Equal select padding keeps the chosen label centered despite a right-side chevron. */
body :is(select.field,.theme-select){padding-inline:32px!important}
body :is(select.field,.theme-select) option{text-align:center}

/* Moods, deck editions, sound names and other named menu cards. */
body :is(.mood-description,.mood-description strong,.mood-tag,.mood-copy,.mood-selection-text,.meme-sound-button strong,.meme-sound-duration,.achievement-tile strong,.achievement-tile small){text-align:center!important;white-space:normal;overflow-wrap:break-word;text-wrap:balance}
body .mood-description{align-items:center}
body .mood-description>*,body .meme-sound-button strong{width:100%;max-width:100%}
body .public-table-card>div{flex:1;min-width:0;text-align:center}
body .public-table-card :is(strong,p,span){text-align:center;overflow-wrap:anywhere}

/* Close controls reserve their own row; headings use the full content width. */
body .modal>:is(.modal-title,.modal-eyebrow){box-sizing:border-box;width:100%;max-width:100%;margin-inline:auto;padding-inline:0!important;text-align:center!important;white-space:normal;overflow-wrap:break-word;text-wrap:balance}
body .modal:has(>.modal-close)>:is(.modal-title,.modal-eyebrow){clear:both;padding-inline:0!important}
body .moods-dialog>.moods-heading{box-sizing:border-box;width:100%;max-width:100%;clear:both;padding-inline:0!important;text-align:center}
body .moods-heading>:is(.moods-title,.modal-eyebrow,.moods-intro){width:100%;max-width:100%;margin-inline:auto;padding-inline:0!important;text-align:center!important;white-space:normal;overflow-wrap:break-word;text-wrap:balance}
body .modal>.modal-description{margin-inline:auto;text-align:center;overflow-wrap:break-word}
body .soundboard-voice-panel :is(label,.soundboard-section-kicker){text-align:center}

/* Regular button labels only. Complex player/card buttons keep their own child geometry. */
body :is(.primary-button,.secondary-button,.quiet-button,.text-button,.icon-button,.stepper-btn,.mode-tab,.install-trigger,.moods-tabs button){text-align:center!important;justify-content:center;align-items:center;min-height:44px;white-space:normal!important;overflow-wrap:break-word;text-wrap:balance;line-height:1.25}
body :is(.primary-button,.secondary-button,.quiet-button,.text-button){height:auto}
body .score-ranking-toggle{text-align:center!important}
body :is(.modal-close,.moods-close){text-align:center!important;place-items:center;min-width:44px;min-height:44px}
body .modal:not(#lobby)>.modal-close,body .moods-dialog>.moods-close{position:sticky!important;top:0!important;right:auto!important;left:auto!important;float:none!important;display:grid!important;clear:both;margin:-14px 0 12px auto!important;width:44px!important;height:44px!important}
body .soundboard-modal.modal{width:min(860px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
body #soundboard-title{hyphens:none;word-break:normal;overflow-wrap:normal;max-width:100%;padding-inline:0!important}

@media(max-width:600px){
 body .modal:has(>.modal-close)>:is(.modal-title,.modal-eyebrow),body .moods-dialog>.moods-heading{clear:both;padding-inline:0!important}
 body .soundboard-modal.modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
 body .score-player-name small{margin-inline:3px}
 body .setting-row{column-gap:12px}
 body .score-controls label{width:100%}
}
