/* Литые знаки: чернёный металл, латунь и эмаль в духе 1990-х. */
.crew-emblem{display:grid;place-items:center;flex:none;width:70px;height:70px}
.crew-emblem-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #0008);pointer-events:none;user-select:none}
.crew-banner .crew-emblem-trigger{display:block;flex:none;padding:0;background:none;border:0;border-radius:50%;cursor:pointer}
.crew-emblem-trigger:hover .crew-emblem-art{filter:brightness(1.12) drop-shadow(0 3px 3px #0008)}
.crew-emblem-trigger:focus-visible{outline:2px solid #e1bd7e;outline-offset:3px}
.modal.modal-crew-identity{width:min(100%,700px);padding:24px 28px;background:linear-gradient(135deg,#2e342c,#202920);border-color:#7a8265;color:#dbe3cb}
.modal-crew-identity>h2{font-size:28px;margin-bottom:12px}
.crew-identity-preview{display:flex;align-items:center;gap:16px;padding:8px 16px;border:1px solid #84936455;border-radius:5px;background:linear-gradient(110deg,#151e18,#253022);box-shadow:inset 0 1px #e7ce9310;margin-bottom:13px}
.crew-identity-preview .crew-emblem{width:78px;height:78px}
.crew-identity-preview>div{min-width:0;flex:1}
.crew-identity-preview small{display:block;font-size:11px;line-height:1.4;letter-spacing:1px;color:#aebc98}
.crew-identity-preview strong{display:block;font:500 25px/1.2 var(--display);color:#e9dfc1;margin:4px 0;overflow-wrap:anywhere}
.crew-identity-preview>div>span{font-size:12px;line-height:1.4;color:#b9c79e}
.modal-crew-identity .crew-name-field{display:block;margin:0;font-size:14px;color:#c8d5b2}
.modal-crew-identity .crew-name-field input{margin-top:6px;min-height:44px;padding:10px 12px;font-size:16px;background:#1a251c;border-color:#6b7a55;color:#e5e8d0}
.crew-emblem-field{min-width:0;border:0;padding:0;margin:14px 0 0}
.crew-emblem-field legend{font-size:14px;font-weight:500;color:#d6dec1;margin-bottom:9px;padding:0}
.crew-emblem-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.modal-crew-identity .crew-emblem-choice{display:block;position:relative;min-width:0;margin:0;cursor:pointer}
.modal-crew-identity .crew-emblem-choice input[type=radio]{position:absolute;width:1px;height:1px;padding:0!important;margin:0;border:0;opacity:0;clip-path:inset(50%)}
.crew-emblem-option{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:108px;padding:7px 5px 8px;border:1px solid #6d795444;border-radius:5px;background:radial-gradient(ellipse at 50% 37%,#35402e,#202b22 75%);color:#bac7a9;transition:background-color .15s,border-color .15s}
.crew-emblem-option>.crew-emblem{width:72px;height:72px}
.crew-emblem-option>span:last-child{font-size:13px;line-height:1.4;text-align:center}
.crew-emblem-choice:hover .crew-emblem-option{border-color:#b5a373;background-color:#35412b}
.crew-emblem-choice:hover .crew-emblem-art{filter:brightness(1.1) drop-shadow(0 3px 2px #0008)}
.crew-emblem-choice input:checked+.crew-emblem-option{background:radial-gradient(ellipse at 50% 36%,#5c5332,#303422 85%);border-color:#cfaf68;color:#f0dbad;box-shadow:inset 0 0 0 1px #c1a66a33}
.crew-emblem-choice input:checked+.crew-emblem-option::after{content:'';position:absolute;top:7px;right:7px;width:10px;height:6px;border-bottom:2px solid #e2c183;border-left:2px solid #e2c183;transform:rotate(-45deg)}
.crew-emblem-choice input:focus-visible+.crew-emblem-option{outline:2px solid #e2c183;outline-offset:3px}
.crew-identity-actions{display:flex;gap:10px;margin-top:16px}
.crew-identity-actions>.btn{flex:1;min-height:44px;font-size:14px}
@media(max-width:850px){.crew-banner .crew-emblem{width:64px;height:64px}}
@media(max-width:600px){
 .modal.modal-crew-identity{padding:20px 18px}
 .modal-crew-identity>h2{font-size:26px}
 .crew-identity-preview{padding:7px 9px;gap:10px;margin-bottom:13px}
 .crew-identity-preview .crew-emblem{width:70px;height:70px}
 .crew-identity-preview strong{font-size:24px}
 .crew-emblem-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .crew-emblem-option{min-height:91px;padding:5px 3px 7px;gap:2px}
 .crew-emblem-option>.crew-emblem{width:60px;height:60px}
 .crew-emblem-option>span:last-child{font-size:12px}
 .crew-emblem-choice input:checked+.crew-emblem-option::after{top:5px;right:5px;width:8px;height:5px}
 .crew-identity-actions{margin-top:14px}
}
@media(prefers-reduced-motion:reduce){.crew-emblem-option{transition:none}}
