.opening-utilities{flex-wrap:wrap;column-gap:20px;row-gap:0}
.player-profile-link{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin:0 0 14px;padding:13px 15px;border:1px solid #d4b77a44;text-align:left}
.player-profile-link span{min-width:0;overflow-wrap:anywhere;color:var(--gold)}
.player-profile-link small{flex-shrink:0;font-size:12px;color:var(--muted)}
.modal.player-profile-modal{width:min(520px,calc(100vw - 28px));padding:28px;max-height:calc(100dvh - 28px)}
.player-profile-modal h2{margin:10px 0 12px}
.profile-intro{font-size:14px;line-height:1.8;color:var(--muted);margin:0 0 24px}
.player-profile-modal label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:14px;margin:18px 0 8px}
.player-profile-modal label small{color:var(--muted);font-size:12px}
.player-profile-modal input,.player-profile-modal textarea{display:block;width:100%;min-width:0;font:16px/1.6 var(--sans);color:var(--ink);background:#080f1b;border:1px solid #8d9ab355;border-radius:3px;padding:10px 12px}
.player-profile-modal textarea{resize:vertical;max-height:180px}
.player-profile-modal input:focus,.player-profile-modal textarea:focus{outline:2px solid var(--gold);outline-offset:2px}
.profile-help{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0}
.profile-preview{background:linear-gradient(110deg,#c59c4b18,transparent);border-left:2px solid var(--gold);padding:14px 16px;margin:20px 0 14px;overflow-wrap:anywhere}
.profile-preview>span{display:block;color:var(--gold);font-size:11px;letter-spacing:.14em;margin-bottom:9px}
.profile-preview>b{font-size:13px;font-weight:500;color:#b9d2df}
.profile-preview>p{font:16px/1.8 var(--serif);margin:6px 0 0}
.profile-status{font-size:13px;line-height:1.7;min-height:22px;margin:16px 0;color:var(--muted)}
.profile-status.is-saved{color:#a8dbc0}
.profile-actions{display:flex;gap:12px;margin-top:14px}
.profile-actions>button{flex:1;min-width:0}
.you-bar .player-label{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.you-bar .player-name{font-weight:inherit}
.result-scores>div{min-width:0;max-width:42%;overflow-wrap:anywhere}
.tenpai-result>span,.end-scores>span,.result-overview>h2{overflow-wrap:anywhere}
.cutin.player-riichi .cutin-copy>p{overflow-wrap:anywhere;font-size:clamp(14px,1.6vw,20px);line-height:1.6}
.cutin.player-riichi .cutin-copy>p>small{font-size:12px;line-height:1.5}
.compact-landscape .cutin.player-riichi .cutin-copy>strong{font-size:clamp(36px,calc(var(--view-height,100dvh)*.15),65px)}
.compact-landscape .cutin.player-riichi .cutin-copy>p{font-size:13px;margin-top:4px}
@media(max-width:540px){
  .modal.player-profile-modal{padding:22px 20px}
  .opening-utilities{column-gap:18px;row-gap:0}
  .opening-utilities .text-button{font-size:13px}
  .profile-intro{margin-bottom:18px}
}

.player-profile-modal [hidden]{display:none}

.you-bar .player-identity,.you-bar .player-identity>div{min-width:0}
.compact-landscape .you-bar .player-identity{flex:1}
.compact-landscape .you-bar .player-name{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
