/* Account dropdown: compact version of the gold and navy profile design. */
#profile-dropdown {
    width: min(420px, calc(100vw - 32px));
    padding: 18px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    border: 1px solid rgba(224, 173, 64, .65);
    border-radius: 14px;
    background: radial-gradient(ellipse at top, rgba(29, 45, 59, .35), transparent 65%), #09131c;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    color: #f8edce;
}
#profile-dropdown .profile-dropdown-header { position: relative; padding: 0 26px 16px; }
#profile-dropdown .profile-dropdown-header h3 {
    margin: 0;
    color: #ffdf8f;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}
#profile-dropdown .profile-dropdown-close {
    position: absolute; top: -8px; right: -8px;
    display: grid; place-items: center;
    width: 32px; height: 32px; padding: 0;
    border: 0; background: transparent; color: #ffdf8f;
    font: 300 32px/1 Arial, sans-serif; cursor: pointer;
}
#profile-dropdown .player-dlc-profile { margin: 0; padding: 12px; background: rgba(5, 13, 20, .35); border-color: rgba(255, 223, 143, .2); border-radius: 10px; }
#profile-dropdown .profile-player-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
#profile-dropdown .profile-player-details { min-width: 0; }
#profile-dropdown .player-dlc-heading { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.45; }
#profile-dropdown .player-dlc-heading strong { color: #ffdf8f; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
#profile-dropdown .player-dlc-note { font-size: 12px; color: #adb3bf; margin: 5px 0 0; }
#profile-dropdown .player-dlc-profile.is-unlinked { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#profile-dropdown .is-unlinked .player-dlc-heading strong { display: block; color: #f8edce; }
#profile-dropdown .is-unlinked .player-dlc-button { flex-shrink: 0; padding: 8px 10px; font-size: 12px; }
#profile-dropdown .player-dlc-form { margin-top: 12px; padding: 12px; gap: 10px; border: 1px solid rgba(137, 154, 175, .2); border-radius: 9px; }
#profile-dropdown .player-dlc-option { gap: 10px; font-size: 13px; line-height: 1.4; }
#profile-dropdown .player-dlc-option input { appearance: none; margin: 0; width: 18px; height: 18px; flex-shrink: 0; border: 2px solid #aab1ba; border-radius: 3px; background: transparent; display: grid; place-items: center; cursor: pointer; }
#profile-dropdown .player-dlc-option input:checked { border-color: #f4c75a; background: #070b10; }
#profile-dropdown .player-dlc-option input:checked::after { content: ''; width: 5px; height: 9px; border: solid #f4c75a; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
#profile-dropdown .player-dlc-option input:focus-visible { outline: 2px solid #ffdf8f; outline-offset: 3px; }
#profile-dropdown .player-dlc-button,
#profile-dropdown .change-password-form button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 42px; padding: 9px 12px;
    border: 1px solid rgba(255, 224, 138, .5); border-radius: 8px;
    background: linear-gradient(180deg, #ffe08a, #e6b447);
    color: #101820; font-size: 14px; font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
    text-transform: uppercase; letter-spacing: 0; cursor: pointer;
}
#profile-dropdown .is-unlinked .player-dlc-button { text-transform: none; }
#profile-dropdown .player-dlc-form .player-dlc-button {
    justify-self: end;
    width: calc(100% / 3);
    min-height: 36px;
    padding: 6px;
    gap: 4px;
    font-size: 12px;
    text-transform: none;
}
#profile-dropdown .player-dlc-form .player-dlc-button .profile-ui-icon { width: 16px; height: 16px; }
#profile-dropdown .player-dlc-button:hover:not(:disabled),
#profile-dropdown .change-password-form button:hover { background: linear-gradient(180deg, #ffe9a8, #efc461); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); transform: none; }
#profile-dropdown .player-dlc-button:disabled { opacity: .58; cursor: not-allowed; }
#profile-dropdown .player-dlc-cooldown { display: flex; align-items: flex-start; justify-content: center; gap: 6px; font-size: 11px; text-align: center; }
#profile-dropdown .player-dlc-cooldown .profile-ui-icon { width: 16px; height: 16px; color: #e6b447; flex-shrink: 0; }
#profile-dropdown .player-dlc-message:empty { display: none; }
#profile-dropdown .player-dlc-message { color: #ffdf8f; }
#profile-dropdown .player-dlc-message.is-error { color: #ff9b9b; }
#profile-dropdown .profile-divider { display: flex; align-items: center; gap: 9px; margin: 12px 4px; color: #b88a32; line-height: 1; }
#profile-dropdown .profile-divider::before,
#profile-dropdown .profile-divider::after { content: ''; height: 1px; flex: 1; background: rgba(224, 173, 64, .25); }
#profile-dropdown .change-password-form { gap: 12px; }
#profile-dropdown .profile-password-field { display: flex; align-items: center; height: 42px; border: 1px solid #334054; border-radius: 8px; background: #0b1520; overflow: hidden; }
#profile-dropdown .profile-password-field > .profile-ui-icon { width: 18px; height: 18px; margin: 0 14px; flex-shrink: 0; color: #bdc3cf; }
#profile-dropdown .change-password-form input { min-width: 0; height: 100%; padding: 10px 12px; border: 0; border-left: 1px solid #334054; border-radius: 7px; background: linear-gradient(135deg, #1b2737, #16202d); color: #f8edce; font-size: 13px; }
#profile-dropdown .profile-password-field:focus-within { border-color: #ffdf8f; box-shadow: 0 0 0 2px rgba(255,223,143,.12); }
#profile-dropdown .change-password-form input:focus { box-shadow: none; border-color: #334054; }
#profile-dropdown .profile-actions { margin: 0; }
#profile-dropdown .profile-logout-btn { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 10px; font-size: 14px; border-radius: 8px !important; border-color: #334054 !important; background: linear-gradient(135deg, #1b2737, #16202d) !important; color: #c8cbd2 !important; }
#profile-dropdown button:focus-visible { outline: 2px solid #ffdf8f; outline-offset: 3px; }
#profile-dropdown .profile-ui-icon { display: inline-block; width: 20px; height: 20px; background: currentColor; flex-shrink: 0; mask: var(--profile-icon) center / contain no-repeat; }
#profile-dropdown .is-lock { --profile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V6a4 4 0 0 1 8 0v4m-4 5v3'/%3E%3C/svg%3E"); }
#profile-dropdown .is-logout { --profile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M13 5V3H4v18h9v-2m-4-7h12m-4-4 4 4-4 4'/%3E%3C/svg%3E"); }
#profile-dropdown .is-link { --profile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m10 14 4-4m-6 3-3 3a4 4 0 0 0 6 6l4-4m-1-7 3-3a4 4 0 0 0-6-6L7 6'/%3E%3C/svg%3E"); }
#profile-dropdown .is-save { --profile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 2h6v10h5l-8 8-8-8h5zM4 21h16v2H4z'/%3E%3C/svg%3E"); }
#profile-dropdown .is-info { --profile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 10v7m0-11v2'/%3E%3C/svg%3E"); }
#profile-dropdown .profile-player-avatar { display: grid; place-items: center; position: relative; width: 40px; height: 40px; border: 1px solid rgba(224,173,64,.4); border-radius: 50%; background: rgba(204,158,44,.22); color: #f4c75a; mask: none; }
#profile-dropdown .profile-player-avatar::after { content: ''; width: 23px; height: 23px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='5'/%3E%3Cpath d='M2 23v-3a10 10 0 0 1 20 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }

#profile-dropdown .profile-password-section {
    margin-block: 12px;
    border: 1px solid rgba(224, 173, 64, .4);
    border-radius: 10px;
    background: rgba(5, 13, 20, .35);
    overflow: hidden;
}
#profile-dropdown .profile-password-section > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 14px;
    color: #ffdf8f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
#profile-dropdown .profile-password-section > summary::-webkit-details-marker { display: none; }
#profile-dropdown .profile-password-section > summary:hover { background: rgba(224, 173, 64, .05); }
#profile-dropdown .profile-password-section > summary:focus-visible { outline: 2px solid #ffdf8f; outline-offset: -3px; border-radius: 9px; }
#profile-dropdown .profile-password-chevron {
    width: 9px;
    height: 9px;
    margin-left: auto;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}
#profile-dropdown .profile-password-section[open] .profile-password-chevron { transform: translateY(2px) rotate(225deg); }
#profile-dropdown .profile-password-section .change-password-form { margin: 0; padding: 14px; border-top: 1px solid rgba(224, 173, 64, .15); }
#profile-dropdown .profile-password-section .error-message { margin: 0; padding: 0 14px 14px; }
#profile-dropdown .profile-player-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-color: rgba(224, 173, 64, .4);
    background: radial-gradient(circle at 50% 30%, #202c35, #0a141d);
    color: #d4b66f;
}
#profile-dropdown .profile-player-avatar::after {
    width: 28px;
    height: 28px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='10' r='4'/%3E%3Cpath d='M10 24v-3a6 6 0 0 1 12 0v3zM8 25C2 20 2 12 6 7l1 1c-3 5-3 12 2 16zm16 0c6-5 6-13 2-18l-1 1c3 5 3 12-2 16zM5 12l-3-2 1 5 3 1zm0 6-3-1 2 5 3 1zm22-6 3-2-1 5-3 1zm0 6 3-1-2 5-3 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#profile-dropdown .player-dlc-profile:not(.is-unlinked) { padding: 0; border: 0; background: none; }
#profile-dropdown .profile-player-header { padding: 12px; border: 1px solid rgba(255, 223, 143, .2); border-radius: 10px; background: rgba(5, 13, 20, .35); }
#profile-dropdown .profile-dlc-section { margin-top: 10px; border: 1px solid rgba(224, 173, 64, .4); border-radius: 10px; background: rgba(5, 13, 20, .35); overflow: hidden; }
#profile-dropdown .profile-dlc-section > summary { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; color: #ffdf8f; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
#profile-dropdown .profile-dlc-section > summary::-webkit-details-marker { display: none; }
#profile-dropdown .profile-dlc-section > summary:hover { background: rgba(224, 173, 64, .05); }
#profile-dropdown .profile-dlc-section > summary:focus-visible { outline: 2px solid #ffdf8f; outline-offset: -3px; border-radius: 9px; }
#profile-dropdown .profile-dlc-section[open] .profile-password-chevron { transform: translateY(2px) rotate(225deg); }
#profile-dropdown .profile-dlc-section .player-dlc-form { margin: 0; padding: 12px; border: 0; border-top: 1px solid rgba(224, 173, 64, .15); border-radius: 0; background: none; }
#profile-dropdown .profile-dlc-section .player-dlc-note,
#profile-dropdown .profile-dlc-section .player-dlc-message { margin: 0; padding: 0 12px 12px; }
#profile-dropdown .profile-dlc-section .player-dlc-message:empty { display: none; }
#profile-dropdown .profile-password-section { margin-block: 10px 14px; }
#profile-dropdown .profile-divider { display: none; }
#profile-dropdown .profile-password-field input { flex: 1 1 auto; width: 0; }
#profile-dropdown .change-password-form .profile-password-toggle { flex: 0 0 38px; width: 38px; min-height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #adb3bf; box-shadow: none; }
#profile-dropdown .change-password-form .profile-password-toggle:hover { background: rgba(255, 255, 255, .05); color: #ffdf8f; box-shadow: none; }
#profile-dropdown .profile-password-hint { margin: 0; font-size: 11px; line-height: 16px; color: #adb3bf; }
#profile-dropdown .is-dlc { --profile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 10 6-10 6L2 8zm-8 9 8 5 8-5 2 2-10 6L2 13zm0 5 8 5 8-5 2 2-10 6L2 18z'/%3E%3C/svg%3E"); }
#profile-dropdown .is-eye { --profile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
/* User-provided profile medallion. */
#profile-dropdown .profile-player-avatar {
    border: 0;
    background: url('/static/image/profile-medallion.png') center / contain no-repeat;
    mask: none;
}
#profile-dropdown .profile-player-avatar::after {
    content: none;
}