/* Личное дело игрока: тёмная обложка, портреты и понятная цена смены имени. */
button.player-avatar{padding:0;cursor:pointer;text-align:inherit}
button.player-avatar:hover{border-color:#d5b576;box-shadow:0 0 0 2px #d5b57624}
button.player-avatar:focus-visible{outline:2px solid #dfbc78;outline-offset:4px}
.player-avatar-picture{display:block;width:100%;height:100%;overflow:hidden;border-radius:inherit}
.player-avatar-picture>img,.player-avatar-picture>.cast-portrait{display:block;width:100%;height:100%;object-fit:cover}
.modal.modal-profile,.modal.modal-profile-payment{width:min(100%,620px);padding:25px 28px;background:linear-gradient(135deg,#2d332c,#1d2821);border-color:#7a8265;color:#c6d1b9}
.modal-profile>h2,.modal-profile-payment>h2{font-size:29px;margin-bottom:15px}
.player-profile-preview{display:flex;align-items:center;gap:14px;padding:10px 13px;border:1px solid #7b885650;border-radius:5px;background:#18231b;margin-bottom:16px}
#profile-preview-avatar{display:block;flex:none;width:68px;height:68px;border:1px solid #9d8b5c;border-radius:5px;overflow:hidden}
.player-profile-preview>div{min-width:0}
.player-profile-preview small{display:block;font-size:11px;letter-spacing:1px;color:#a1b08e}
.player-profile-preview strong{display:block;overflow-wrap:anywhere;font:500 25px/1.2 var(--display);color:#eee3c8;margin:4px 0}
.player-profile-preview>div>span{display:block;font-size:12px;color:#acba9b}
.profile-avatar-field{min-width:0;border:0;margin:0 0 17px;padding:0}
.profile-avatar-field legend{display:flex;align-items:center;gap:9px;padding:0;margin-bottom:9px;font-size:14px;color:#d6dec1}
.profile-avatar-field legend small{font-size:12px;color:#b7bc89}
.profile-avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.modal-profile .profile-avatar-choice{position:relative;display:block;min-width:0;margin:0;cursor:pointer}
.modal-profile .profile-avatar-choice input[type=radio]{position:absolute;width:1px;height:1px;padding:0!important;margin:0;border:0;opacity:0;clip-path:inset(50%)}
.profile-avatar-option{position:relative;display:flex;height:100%;align-items:center;flex-direction:column;gap:7px;padding:8px 5px;border:1px solid #68774e66;border-radius:5px;background:#202b22;color:#bdc9ae}
.profile-avatar-option>.player-avatar-picture{width:78px;height:78px;border-radius:4px;border:1px solid #8d8b61;box-shadow:0 2px 4px #0005}
.profile-avatar-option>span:last-child{font-size:13px;line-height:1.4;text-align:center}
.profile-avatar-choice:hover .profile-avatar-option{border-color:#b7a76e;background:#303a29}
.profile-avatar-choice input:checked+.profile-avatar-option{background:#3d422d;border-color:#c7a768;color:#edd4a0}
.profile-avatar-choice input:checked+.profile-avatar-option::after{content:'';position:absolute;right:7px;top:7px;width:10px;height:6px;border-bottom:2px solid #ead09a;border-left:2px solid #ead09a;transform:rotate(-45deg)}
.profile-avatar-choice input:focus-visible+.profile-avatar-option{outline:2px solid #dfbd7e;outline-offset:3px}
.modal-profile .profile-name-field{display:block;margin:0;font-size:14px;color:#d1dbbf}
.modal-profile .profile-name-field input{margin-top:6px;min-height:44px;padding:10px 12px;font-size:16px;background:#18241c;border-color:#718058;color:#e3e6d0}
.modal-profile .profile-current-name{font-size:12px;color:#acb99a;line-height:1.5;margin:6px 0 10px;overflow-wrap:anywhere}
.modal-profile .profile-name-rule{margin:0 0 12px;font-size:14px;line-height:1.5;color:#e0d9bd}
.profile-name-rule small{display:block;font-size:12px;line-height:1.6;color:#aab996;margin-top:2px}
.profile-rename-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.profile-rename-method{display:flex;align-items:center;text-align:left;gap:10px;min-width:0;min-height:64px;padding:11px 12px;border:1px solid #9c8858;border-radius:4px;background:#383d2c;color:#e4d4ac;cursor:pointer}
.profile-rename-method>.ico{flex:none;width:23px;height:23px;color:#c7ac6b}
.profile-rename-method>span{min-width:0}
.profile-rename-method strong{display:block;font-size:14px;line-height:1.3}
.profile-rename-method small{display:block;font-size:12px;line-height:1.4;color:#b5c19f;margin-top:4px}
.profile-rename-method:hover:not(:disabled),.profile-rename-method.is-ready{background:#4a4a30;border-color:#c9ac6b}
.profile-rename-method:disabled{cursor:default;opacity:.58}
.profile-rename-method:focus-visible{outline:2px solid #e1bd7b;outline-offset:3px}
.modal-profile .profile-demo-note{font-size:12px;line-height:1.5;color:#9fae8e;margin:11px 0 0}
.modal-profile .player-profile-feedback{font-size:13px;color:#d0c496;line-height:1.5;min-height:20px;margin:12px 0 0;overflow-wrap:anywhere}
.modal-profile-payment .profile-rename-preview{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 14px;background:#18241b;border:1px solid #73825155;border-radius:4px;font-size:16px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 17px}
.profile-rename-preview>span,.profile-rename-preview>strong{min-width:0}
.profile-rename-preview>strong{color:#e3c78c}
.profile-rename-preview>.ico{width:15px;height:15px;color:#9dab87;flex:none}
.profile-ad-screen{position:relative;width:min(100%,300px);height:150px;margin:0 auto 17px;padding:9px 18px 17px 9px;border:1px solid #6c755d;border-radius:9px;background:#101813;box-shadow:inset -7px -5px #394032,0 4px 7px #0004}
.profile-ad-screen>img{width:100%;height:100%;object-fit:cover;filter:sepia(.4) saturate(.55);border-radius:5px;opacity:.6}
.profile-ad-screen>span{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;font:500 19px/1.3 var(--display);letter-spacing:1px;color:#e4ddba;text-shadow:0 1px 3px #000}
.profile-vote-summary{margin:0 0 15px;padding:11px 15px;border:1px solid #7b855b77;border-radius:4px;background:#1a261c}
.profile-vote-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0}
.profile-vote-summary dt{font-size:14px;color:#b7c4a2}
.profile-vote-summary dd{margin:0;font-size:18px;font-weight:600;color:#e6c98b}
.modal-profile-payment .profile-payment-explanation{font-size:14px;line-height:1.65;color:#becbab;margin:0 0 18px}
.profile-payment-actions{display:flex;gap:9px;flex-wrap:wrap}
.profile-payment-actions>.btn{flex:1 1 180px;min-height:44px;font-size:14px;white-space:normal}
@media(max-width:600px){
 .modal.modal-profile,.modal.modal-profile-payment{padding:21px 18px}
 .modal-profile>h2,.modal-profile-payment>h2{font-size:27px}
 .player-profile-preview{gap:11px;padding:9px 10px;margin-bottom:14px}
 #profile-preview-avatar{width:61px;height:61px}
 .player-profile-preview strong{font-size:24px}
 .profile-avatar-grid{gap:7px}
 .profile-avatar-option{padding:7px 3px;gap:6px}
 .profile-avatar-option>.player-avatar-picture{width:62px;height:62px}
 .profile-avatar-option>span:last-child{font-size:12px}
 .profile-avatar-choice input:checked+.profile-avatar-option::after{width:8px;height:5px;right:4px;top:4px}
 .profile-rename-methods{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .profile-rename-method{display:block;min-height:88px;padding:9px 8px}
 .profile-rename-method>.ico{display:none}
 .profile-rename-method strong{font-size:13px}
 .profile-ad-screen{height:135px}
 .profile-payment-actions{flex-direction:column}
 .profile-payment-actions>.btn{flex:auto}
}
