/* Isolated editor and avatar interiors: no board, seat or iPad geometry changes. */
.custom-avatar-builder{margin:16px 0;padding:18px;border:1px solid #b49a71;border-radius:16px;background:#f4e8cd;color:#38291f;box-shadow:inset 0 1px #fff9e8}
.custom-avatar-builder h3{font:700 23px Georgia,serif;margin:0 0 5px;color:#563520}
.custom-avatar-help{font-size:13px;line-height:1.5;margin:0 0 12px;color:#6c543e}
.custom-avatar-preview{width:min(100%,210px);height:222px;margin:0 auto 15px;border:1px solid #b6996f;border-radius:90px 90px 18px 18px;background:radial-gradient(ellipse at 50% 30%,#fff3ce 0,#e2c58b 60%,#b58e5c 100%);box-shadow:inset 0 0 0 5px #f4dfb1,0 5px 12px #54362024;overflow:hidden;display:flex;justify-content:center;align-items:flex-end}
.custom-avatar-preview svg{width:188px;height:216px;flex-shrink:0}
.custom-avatar-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.custom-avatar-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#563c2a;min-width:0}
.custom-avatar-fields select{width:100%;min-width:0;min-height:44px;background:#fff8e9;color:#372a20;border:1px solid #b9a17c;border-radius:8px;padding:8px;font:inherit}
.custom-avatar-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}
.custom-avatar-actions button{min-height:44px;flex:1 1 140px}
.custom-avatar-builder :focus-visible{outline:3px solid #916029;outline-offset:3px}
.player-avatar.custom-avatar{background:#dfc08b;overflow:hidden}
.player-avatar.custom-avatar svg{width:100%;height:100%;transform:scale(1.18);transform-origin:50% 42%}
.profile-custom-preview{width:90px;height:102px;margin:8px 0;background:#e4c894;border:1px solid #b79b6e;border-radius:44px 44px 8px 8px;overflow:hidden}
.profile-custom-preview svg{width:100%;height:100%}
@media(max-width:400px){.custom-avatar-builder{padding:12px}.custom-avatar-fields{grid-template-columns:1fr;gap:10px}.custom-avatar-preview{height:190px;width:180px}.custom-avatar-preview svg{height:188px;width:164px}}
@media(prefers-reduced-motion:reduce){.custom-avatar-builder *{animation:none!important;transition:none!important}}
